/* Language switcher (DE/EN) in the site header, plus notes on translated pages. */

.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 0 0 auto;
}

.lang-switch a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 9px;
  border-radius: 8px;
  color: var(--edih-ink);
  font-size: var(--edih-small);
  text-decoration: none;
}

.lang-switch a:hover,
.lang-switch a:focus-visible {
  color: var(--edih-blue);
}

/* Current language: font weight and underline, not colour only. */
.lang-switch a[aria-current="true"] {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Up to 1100 px the desktop nav is hidden; the switcher sits before the mobile
   menu button and needs a 44 px touch target. */
@media (max-width: 1100px) {
  .lang-switch a {
    min-height: 44px;
    padding: 0 12px;
  }
}

/* Keep the header inside 320 px: wrap instead of overflowing. */
@media (max-width: 480px) {
  .edih .site-header {
    flex-wrap: wrap;
  }
  .lang-switch a {
    padding: 0 8px;
  }
}

/* Note appended to booking links that lead to a German form. */
.lang-note {
  font-size: var(--edih-small);
}

/* Legal notice on translated legal pages: a light info box. */
.lang-notice {
  border: 1px solid var(--edih-line);
  padding: 12px 16px;
  /* Gleiche Seitenränder wie der Kopf (Korrektur Claude 18.11.2026) */
  margin: 24px max(3rem, calc((100vw - 84rem) / 2)) 0;
  font-size: var(--edih-small);
  border-radius: 8px;
}

@media (max-width: 1100px) { .lang-notice { margin-left: 2rem; margin-right: 2rem; } }
@media (max-width: 700px) { .lang-notice { margin-left: 1.5rem; margin-right: 1.5rem; } }
@media (max-width: 360px) { .lang-notice { margin-left: 1rem; margin-right: 1rem; } }
