.local-flags-modern {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 12px;
  padding: 0 15px;
  margin-top: 0,5rem;
}

.local-flags-modern a {
  text-decoration: none;
}

.flag-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  font-weight: 500;
  color: #333;
}

.flag-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
  background: #f0f0f0;
}

.flag-container div {
  font-size: 24px;
}

.flag-container span {
  font-size: 14px;
}

@media (max-width: 768px) {
  .flag-container {
    flex-direction: column;
    gap: 5px;
    padding: 8px 16px;
  }
  .flag-container span {
    font-size: 12px;
  }
}

/* ===== Responsive Anpassungen ===== */
@media (max-width: 990px) {
    .local-flags table td {
        flex: 1 1 30%; /* Flexibles Wachstum auf mittleren Bildschirmen */
    }

    .local-flags table td .flag-container {
        flex-direction: column; /* Flagge über Text */
        align-items: center;
        justify-content: center;
        text-align: center;
        gap: 6px;
    }

    .local-flags table td .flag-container span {
        font-size: 12px;
        color: #777;
    }

    .local-flags table td .flag-container img {
        max-width: 100%;
        height: auto;
        border-radius: 8px;
        transition: transform 0.3s ease;
    }

    .local-flags table td .flag-container img:hover {
        transform: scale(1.1);
    }
}

/* Mobile Extra */
@media (max-width: 480px) {
    .local-flags table td {
        flex: 1 1 45%; /* Zwei Flags pro Reihe */
    }
    .local-flags table td .flag-container span {
        display: none; /* Text auf kleineren Displays ausblenden */
    }
}
