body .header .n38-language-selector {
  position: relative;
  flex: 0 0 auto;
  margin: 0;
  font-family: var(--sans, Arial, sans-serif);
}
body .header .n38-language-selector > summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 48px;
  min-height: 44px;
  padding: 6px 0;
  cursor: pointer;
  list-style: none;
  color: var(--ink, #24281d);
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
}
body .header .n38-language-selector > summary::-webkit-details-marker { display: none; }
body .header .n38-language-selector > summary::after {
  content: "";
  width: 5px;
  height: 5px;
  margin-top: -3px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg);
}
body .header .n38-language-selector[open] > summary::after {
  margin-top: 3px;
  transform: rotate(225deg);
}
body .header .n38-language-selector > summary:focus-visible {
  outline: 2px solid var(--ink, #24281d);
  outline-offset: 3px;
}
body .header .n38-language-selector > ul {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 8;
  width: 160px;
  max-width: calc(100vw - 40px);
  margin: 0;
  padding: 6px 0;
  border: 1px solid var(--line, #d9d7cc);
  background: #fff;
  box-shadow: 0 4px 16px #0001;
  list-style: none;
}
body .header .n38-language-selector:not([open]) > ul { display: none; }
body .header .n38-language-selector li { margin: 0; padding: 0; list-style: none; }
body .header .n38-language-selector li > a {
  display: block;
  min-height: 44px;
  padding: 12px 14px;
  color: var(--ink, #24281d);
  font-size: 14px;
  line-height: 1.35;
  white-space: nowrap;
  text-decoration: none;
}
body .header .n38-language-selector li > a:hover,
body .header .n38-language-selector li > a[aria-current] {
  text-decoration: underline;
  text-underline-offset: 4px;
}
body .header .n38-language-selector li > a[aria-current] { font-weight: 600; }

/* Leave room for translated labels and the language control. */
body .header .nav { gap: 15px; }
html[lang^="de"] .hero .n38-hero-title { font-size: clamp(28px, 4.2vw, 64px); }
@media (max-width: 1280px) {
  body .header { height: 76px; }
  body .header .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 18px 0;
    background: var(--paper, #fff);
    border-bottom: 1px solid var(--line, #d9d7cc);
    box-shadow: 0 10px 20px #0001;
  }
  body .header .nav.open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  body .header .nav a { min-height: 45px; padding: 13px 0; }
  body .header .menu-button { display: block; }
}
@media (max-width: 760px) {
  html[lang^="de"] .hero .n38-hero-title { font-size: clamp(28px, 7.2vw, 60px); }
}
