/* Language switcher — floats top-right of viewport, sits above the header.
   top:21px vertically centres the box (≈35px tall) on the inline nav link
   text (centre at y≈38 in the 76px desktop header). */
.lang-switch {
  position: fixed;
  top: 21px;
  right: 24px;
  z-index: 1000;
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 4px 10px;
  background: rgba(0,0,0,0.35);
  border-radius: 2px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.lang-switch a {
  color: #fff;
  opacity: 0.65;
  text-decoration: none;
  padding: 2px 4px;
  transition: opacity 0.15s ease, color 0.15s ease;
}
.lang-switch a:hover { opacity: 1; }
.lang-switch a.lang-switch__active {
  opacity: 1;
  color: var(--main1, #e30613);
  pointer-events: none;
  cursor: default;
}
.lang-switch__sep {
  color: #fff;
  opacity: 0.4;
}

/* On scrolled pages where the header turns solid white, switcher needs contrast */
.body.window-scroll .lang-switch,
.body.header-solid .lang-switch {
  background: rgba(255,255,255,0.92);
  color: #333;
}
.body.window-scroll .lang-switch a,
.body.window-scroll .lang-switch__sep,
.body.header-solid .lang-switch a,
.body.header-solid .lang-switch__sep {
  color: #333;
}
.body.window-scroll .lang-switch a.lang-switch__active,
.body.header-solid .lang-switch a.lang-switch__active {
  color: var(--main1, #e30613);
}

/* Vertically centre the box on the header content at each breakpoint. The
   fixed header height changes by breakpoint (≈76–78px on desktop, but the
   icon-only burger header is taller below 1024px: ≈118px from 720–1023px and
   ≈104px below 720px), so the `top` is tuned per range to keep the DE/EN box
   centred on the logo/nav row instead of floating near the top. */

/* Tablet / large phone (720–1023px): tall icon-only header (~118px). */
@media (max-width: 1023px) {
  .lang-switch { top: 43px; }
}

/* Small phones (<720px): header ~104px; smaller switcher. */
@media (max-width: 719px) {
  .lang-switch {
    top: 36px;
    right: 12px;
    font-size: 11px;
    padding: 3px 7px;
  }
}
