/* Sprachumschalter DE/EN (16.11.2026). Unauffällig: Footer der Startseite, Kopfzeile der Rechtsseiten. */
.lang-switch {
  --ls-c: rgba(244, 239, 230, 0.4);
  --ls-on: rgba(244, 239, 230, 0.95);
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  font-family: var(--mono, 'Geist Mono', monospace);
  font-size: 12px;
  letter-spacing: 0.08em;
}
.lang-switch a, .lang-switch span { color: var(--ls-c); text-decoration: none; transition: color 0.15s ease; }
.lang-switch a:hover { color: var(--ls-on); }
.lang-switch a[aria-current] { color: var(--ls-on); }
.footer-legal .lang-switch { margin-left: 14px; }
.legal-nav .lang-switch { margin-left: auto; margin-right: 18px; }
@media (max-width: 600px) {
  .footer-legal .lang-switch { margin-left: 0; margin-top: 6px; }
}
/* Hinweis auf englischen Rechtsseiten: deutsche Fassung ist maßgeblich */
.legal-lang-note {
  margin: -40px 0 56px;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(244, 239, 230, 0.55);
}
.legal-lang-note a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 600px) { .legal-lang-note { margin: -24px 0 36px; } }

/* Flagge oben rechts neben dem Login-Button (16.11.2026): halbtransparent, führt zur anderen Sprache */
.lang-flag {
  position: absolute;
  top: calc(var(--nav-center-y, 55px) - 5.4px);
  right: calc(clamp(20px, 3vw, 40px) + 92px);
  z-index: 101;
  display: block;
  width: 16.2px;   /* 40 % kleiner als zuerst (27 x 18) */
  height: 10.8px;
  border-radius: 2px;
  overflow: hidden;
  opacity: 0.5;
  transition: opacity 0.2s ease;
  animation: lang-flag-in 0.6s ease 0.4s backwards;
}
.lang-flag svg { display: block; width: 100%; height: 100%; }
.lang-flag:hover, .lang-flag:focus-visible { opacity: 0.9; outline: none; }
@keyframes lang-flag-in { from { opacity: 0; } to { opacity: 0.5; } }
@media (max-width: 860px) {
  /* Login ist ausgeblendet, rechts sitzt der runde Menü-Button, das Logo steht mittig.
     Daneben ist kein Platz, deshalb links oben auf Höhe des Menü-Buttons (Mitte 48px). */
  .lang-flag { top: 42.6px; right: auto; left: 20px; }
}
