.site-header { gap: 20px; }
.site-nav { margin-left: auto; gap: clamp(12px, 1.1vw, 18px); }
.site-nav a, .brand small { white-space: nowrap; }
.brand { flex-shrink: 0; }
.language-switcher { display: flex; flex: 0 0 auto; align-items: center; gap: 6px; font-size: .875rem; }
.language-switcher a { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 7px 10px; color: #e9e5dc; text-decoration: none; border: 1px solid transparent; border-radius: 3px; white-space: nowrap; }
.language-switcher a[aria-current="true"] { color: #f3dca6; background: rgba(226,199,137,.1); border-color: rgba(226,199,137,.4); }
.language-switcher a:hover { background: rgba(255,255,255,.1); }
.language-switcher a:focus-visible, .language-notice a:focus-visible, .language-notice button:focus-visible { outline: 3px solid #e2c789; outline-offset: 3px; }
.language-code { display: none; }
.language-divider { color: #82909b; }
.language-notice { display: none; position: fixed; z-index: 120; right: max(24px, calc((100vw - 1180px)/2)); bottom: 24px; width: min(480px, calc(100% - 32px)); padding: 26px; color: #f4f0e8; background: #142332; border: 1px solid #887345; border-radius: 8px; box-shadow: 0 18px 55px #0006; font-family: var(--sans); }
.language-notice.is-open, .language-notice:target { display: block; }
.language-notice p { margin: 0 22px 18px 0; font-size: 1rem; line-height: 1.6; }
.language-notice .language-secondary { margin-top: -8px; color: #c9d0d4; font-size: .875rem; }
.language-notice-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.language-notice .button { min-height: 44px; padding: 9px 14px; font-size: .875rem; }
.language-notice .language-dismiss { position: absolute; top: 9px; right: 9px; display: grid; place-items: center; width: 36px; height: 36px; color: #d7dfe5; background: transparent; border: 0; font-size: 1.5rem; cursor: pointer; text-decoration: none; }
.translation-badge { display: inline-block; margin-left: 5px; color: #765f35; font-size: .8em; }
.translation-note { font-size: .85rem; color: var(--muted, #6b655c); line-height: 1.65; }
html[lang="de"] h1, html[lang="de"] h2, html[lang="de"] h3 { overflow-wrap: break-word; hyphens: auto; }
html[lang="de"] .hero h1 { font-size: clamp(3.5rem, 7vw, 7.5rem); line-height: .98; }
html[lang="de"] .footer-links { flex-wrap: wrap; }
@media (max-width: 1350px) { .language-name { display: none; } .language-code { display: inline; } }
@media (min-width: 1051px) and (max-width: 1279px) { html[lang="de"] .brand small { display: none; } }
@media (min-width: 901px) and (max-width: 1140px) {
  .brand small { display: none; }
  .site-header { gap: 12px; padding-inline: 18px; }
  .site-nav { gap: 12px; }
  .site-nav a { font-size: .875rem; }
  .language-switcher a { padding-inline: 6px; }
}
@media (max-width: 1050px) {
  .site-header { flex-wrap: nowrap; }
  .menu-toggle { display: block; order: 3; flex-shrink: 0; }
  .language-switcher { margin-left: auto; order: 2; }
  .brand { order: 1; }
  .site-nav { position: fixed; inset: 76px 0 auto; display: grid; max-height: calc(100svh - 76px); overflow-y: auto; gap: 0; padding: 20px; visibility: hidden; opacity: 0; transform: translateY(-12px); background: rgba(8,17,27,.98); }
  .site-nav.is-open { visibility: visible; opacity: 1; transform: translateY(0); }
  .site-nav a { padding: 14px 6px; border-bottom: 1px solid #ffffff24; font-size: 1rem; white-space: normal; }
}
@media (max-width: 600px) {
  .site-header { gap: 5px; }
  .brand { gap: 7px; }
  .brand-mark, .brand-mark svg { width: 32px; }
  .brand small { display: none; }
  .language-switcher { gap: 2px; }
  .language-switcher a { padding-inline: 6px; }
  .language-notice { right: 16px; bottom: 16px; padding: 22px; }
  .site-nav { top: 70px; }
  html[lang="de"] .hero h1 { font-size: clamp(3rem, 12vw, 4.5rem); }
}

/* Home-page credit sits before the book mark in both languages. */
.home-header { padding-inline: clamp(16px, 2vw, 36px); min-height: 88px; gap: 16px; }
.header-identity { display: flex; align-items: center; gap: 20px; flex-shrink: 0; }
.header-credit { max-width: 190px; padding-right: 20px; border-right: 1px solid #ffffff26; }
.header-credit strong { display: block; font-family: var(--serif); font-size: 1.125rem; font-weight: 400; line-height: 1.3; }
.header-credit span { display: block; margin-top: 4px; color: var(--gold-bright); font-size: .75rem; line-height: 1.4; }
.home-header .language-name { display: none; }
.home-header .language-code { display: inline; }
@media (max-width: 1320px) {
  .home-header .menu-toggle { display: block; order: 3; flex-shrink: 0; }
  .home-header .language-switcher { margin-left: auto; order: 2; }
  .home-header .site-nav { position: absolute; inset: 100% 0 auto; display: grid; max-height: calc(100svh - 88px); overflow-y: auto; gap: 0; padding: 20px; visibility: hidden; opacity: 0; transform: translateY(-12px); background: rgba(8,17,27,.98); }
  .home-header .site-nav.is-open { visibility: visible; opacity: 1; transform: translateY(0); }
  .home-header .site-nav a { padding: 14px 6px; border-bottom: 1px solid #ffffff24; font-size: 1rem; white-space: normal; }
}
@media (max-width: 600px) {
  .home-header { display: grid; grid-template-columns: 1fr auto; gap: 0 12px; padding-block: 10px 4px; background: rgba(8,17,27,.96); }
  .home-header .header-identity { grid-column: 1 / -1; justify-content: space-between; gap: 14px; }
  .header-credit { max-width: 220px; padding-right: 14px; }
  .header-credit strong { font-size: 1rem; }
  .home-header .language-switcher { margin-left: 0; }
  .home-header .menu-toggle { justify-self: end; }
  .home-header .site-nav { top: 100%; max-height: calc(100svh - 138px); }
}
