/* Hauptnavigation (gemeinsam fuer alle Seiten). Erzeugt von tools/build-nav.mjs. */
.skip { position: absolute; left: .5rem; top: -4rem; z-index: 100; background: var(--ink); color: var(--paper); padding: .6rem .9rem; font-family: var(--pixel); text-transform: uppercase; text-decoration: none; }
.skip:focus { top: .5rem; }

.top { background: var(--paper); color: var(--ink); border-bottom: 2px solid var(--ink); }
.top--sticky { position: sticky; top: 0; z-index: 50; }
html:has(.top--sticky) { scroll-padding-top: 4.5rem; scroll-behavior: smooth; }
.top .shell { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: .9rem; }
.top__brand { display: flex; align-items: center; gap: .7rem; font-family: var(--pixel); text-transform: uppercase; text-decoration: none; font-size: 1.15rem; line-height: 1; color: inherit; white-space: nowrap; }
.top__brand .mark { width: 1rem; height: 1.6rem; display: block; }

.top__nav ul { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .3rem 1.6rem; margin: 0; padding: 0; list-style: none; }
.top__nav a { display: inline-block; padding: .35rem .5rem; font-family: var(--pixel); text-transform: uppercase; font-size: .95rem; line-height: 1; text-decoration: none; color: var(--ink); }
.top__nav a:hover { text-decoration: underline; text-underline-offset: .3em; text-decoration-thickness: 2px; }
.top__nav a[aria-current="page"] { background: var(--ink); color: var(--paper); }
.top__toggle { display: none; }

/* Handy: "Menue"-Knopf, Punkte gross im Vollbild */
@media (max-width: 52rem) {
  .js .top__toggle { display: inline-block; padding: .5rem .8rem; background: var(--paper); color: var(--ink); border: 2px solid var(--ink); border-radius: 0; font-family: var(--pixel); text-transform: uppercase; font-size: .95rem; line-height: 1; cursor: pointer; }
  .js .top__toggle[aria-expanded="true"] { background: var(--ink); color: var(--paper); }
  .js .top__nav { display: none; position: fixed; inset: 0; z-index: 40; padding: 5.5rem var(--gutter) 2rem; background: var(--paper); overflow-y: auto; }
  .js .top__nav.is-open { display: block; }
  .js .top__nav ul { display: block; }
  .js .top__nav li { border-top: 2px solid var(--ink); }
  .js .top__nav li:last-child { border-bottom: 2px solid var(--ink); }
  .js .top__nav a { display: block; padding: 1.1rem .2rem; font-size: clamp(1.5rem, 7vw, 2.2rem); }
  .js .top__nav a[aria-current="page"] { padding-inline: .6rem; }
  .js .top--open { position: sticky; top: 0; z-index: 60; }
  .js .top--open .top__brand, .js .top--open .top__toggle { position: relative; z-index: 60; }
  html.nav-lock { overflow: hidden; }
}
@media (max-width: 52rem) { .top__nav ul { justify-content: flex-start; } }
/* Kiosk und Druck: keine Navigation */
html.kiosk .top, html.kiosk .skip { display: none !important; }
@media print { .top, .skip { display: none; } }
