.nav-band > nav:has(.language-switcher) .nav-links {
  margin-inline-start: auto;
  justify-content: flex-end;
}

.language-switcher {
  position: relative;
  flex: none;
}

.language-switcher summary {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 6px 11px;
  border: 1px solid #687391;
  border-radius: 6px;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}

.language-switcher summary::-webkit-details-marker { display: none; }
.language-switcher summary::after {
  content: "";
  width: 6px;
  height: 6px;
  margin-inline-start: 2px;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  transform: translateY(-2px) rotate(45deg);
}
.language-switcher[open] summary::after {
  transform: translateY(2px) rotate(225deg);
}
.language-switcher summary:hover,
.language-switcher[open] summary { background: #182247; }
.language-switcher summary:focus-visible {
  outline: 3px solid var(--mint);
  outline-offset: 3px;
}

.language-switcher ul {
  position: absolute;
  z-index: 20;
  inset-inline-end: 0;
  top: calc(100% + 6px);
  width: max-content;
  min-width: 208px;
  margin: 0;
  padding: 4px;
  background: var(--navy);
  border: 1px solid #687391;
  border-radius: 8px;
  list-style: none;
}
.language-switcher a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 10px;
  border-radius: 4px;
  white-space: nowrap;
}
.language-switcher a[aria-current] {
  background: #182247;
  color: var(--mint);
  font-weight: 700;
}
.language-switcher a:not([aria-current]):is(:hover, :focus-visible) {
  font-weight: inherit;
}
.language-switcher a:hover { background: #29345a; }
.language-switcher a:focus-visible { outline-offset: -2px; }
.language-flag {
  flex: none;
  width: 16px;
  height: 12px;
  border-radius: 2px;
}
.language-flag-ch {
  width: 12px;
  margin-inline: 2px;
}

html:lang(en) .about-hero { --location-poster: url("../Bilder/leine-center-plakat-en.svg"); }
html:lang(fr) .about-hero { --location-poster: url("../Bilder/leine-center-plakat-fr.svg"); }
html:lang(it) .about-hero { --location-poster: url("../Bilder/leine-center-plakat-it.svg"); }
html:is(:lang(en), :lang(fr), :lang(it)) .about-hero .hero-backdrop {
  background-image: var(--location-poster), url("../Bilder/laatzen-leine-center-anonymisiert.png");
}
.about-photo figcaption { color: var(--muted); }

@media (max-width: 1050px) {
  .language-switcher {
    margin-inline-start: auto;
  }

  .nav-band > nav:has(.language-switcher) .nav-links {
    order: 1;
    flex-basis: 100%;
  }
}

@media (max-width: 720px) {
  .hero-stage > .hero-copy {
    margin: 0 auto;
  }

  .hero-stage:is([data-slide="0"], [data-slide="1"]) > .hero-copy {
    padding-bottom: 330px;
  }

  .hero-stage:is([data-slide="0"], [data-slide="1"]) > .hero-motif .hero-product {
    height: 245px;
    bottom: 60px;
  }
}
