/* Sprache/Flagge: zwei kleine Flaggen-Icons zum Umschalten */
.lang-switch {
  display: inline-flex; align-items: center; gap: 6px;
  margin-left: auto;
  padding: 4px 6px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  border-radius: 999px;
}
.lang-switch a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--muted);
  font-size: .85rem; font-weight: 600;
  text-decoration: none;
  transition: background .15s ease, color .15s ease;
  margin: 0;
}
.lang-switch a:hover { background: rgba(255,255,255,.06); color: var(--text); text-decoration: none; }
.lang-switch a.is-active { background: var(--accent); color: #001; }
.lang-switch svg { width: 18px; height: 12px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.4); flex-shrink: 0; }

@media (max-width: 880px) {
  .lang-switch { margin-left: 0; }
}
@media (max-width: 640px) {
  /* Im Burger-Modus: Sprache kommt in den Burger-Bereich oben */
  .lang-switch {
    width: 100%;
    justify-content: center;
    margin: 0 0 8px;
    padding: 6px;
  }
  .lang-switch a { padding: 6px 12px; }
}

@media (min-width: 641px) {
  /* Volle Nav sichtbar (kein Burger): Flaggen ans rechte Ende, hinter die Nav-Links */
  #primary-nav { order: 2; }
  .lang-switch { order: 3; margin-left: auto; }
}
