/* ==========================================================================
   Surfpark Stade – unabhängig informiert
   Gemeinsames Stylesheet für alle Seiten.
   Gliederung: 1 Variablen · 2 Grundlagen · 3 Layout · 4 Typografie
               5 Kopf & Navigation · 6 Komponenten · 7 Seitenbereiche
               8 Fußbereich · 9 Responsive · 10 Bewegung · 11 Druck
   ========================================================================== */

/* 1 · Variablen ---------------------------------------------------------- */
:root {
  --bg: #f6f5f0;
  --surface: #ffffff;
  --surface-tint: #eaf2f1;
  --text: #173b3f;
  --link: #075e63;
  --link-hover: #04464a;
  --muted: #4b5f61;
  --sand: #dfcdb0;
  --sand-soft: #f1e8d8;
  --line: #d3dcdb;
  --line-strong: #a9bbbb;
  --placeholder-bg: #fff3c4;
  --placeholder-line: #8a6a00;

  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --radius: 10px;
  --radius-sm: 6px;
  --container: 1160px;
  --prose: 68ch;
  --gutter: 1rem;
  --space-section: clamp(2.75rem, 2rem + 3vw, 4.5rem);

  color-scheme: light;
}

/* 2 · Grundlagen ---------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 1.5rem;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem; /* 17 px */
  line-height: 1.6;
  overflow-wrap: break-word;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--link-hover);
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--link);
  outline-offset: 3px;
  border-radius: 3px;
}

/* Externe Links: kleiner Pfeil, für Screenreader ohne Ansage */
a.ext::after {
  content: "\2197";
  content: "\2197" / "";
  display: inline; /* bleibt in derselben Zeile wie das letzte Wort */
  margin-left: 0.2em;
  font-size: 0.85em;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--text);
  color: #fff;
  font-weight: 600;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  top: 1rem;
  color: #fff;
}

/* 3 · Layout -------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.prose {
  max-width: var(--prose);
}

/* Lesespalte innerhalb des Containers: linke Kante bleibt bündig mit den übrigen Bereichen */
.container.prose {
  max-width: var(--container);
}

.container.prose > * {
  max-width: var(--prose);
}

.container.prose > h2:not(:first-child) {
  margin-top: 2.5rem;
}

.container.prose > h3 {
  margin-top: 2rem;
}

.section {
  padding-block: var(--space-section);
}

.section + .section {
  border-top: 1px solid var(--line);
}

.section-tint {
  background: var(--surface-tint);
  border-top: 0 !important;
}

.section-tint + .section {
  border-top: 0;
}

.stack > * + * {
  margin-top: 1rem;
}

.grid-2 {
  display: grid;
  gap: 1.25rem;
}

/* 4 · Typografie ---------------------------------------------------------- */
h1,
h2,
h3,
h4 {
  line-height: 1.2;
  margin: 0 0 0.6em;
  color: var(--text);
  letter-spacing: -0.01em;
  hyphens: manual;
}

h1 {
  font-size: clamp(1.85rem, 1.25rem + 2.6vw, 3.1rem);
  font-weight: 750;
  letter-spacing: -0.02em;
  max-width: 22ch;
}

h2 {
  font-size: clamp(1.45rem, 1.2rem + 1vw, 1.95rem);
  font-weight: 700;
}

h3 {
  font-size: 1.2rem;
  font-weight: 700;
}

p,
ul,
ol,
dl {
  margin: 0 0 1em;
}

ul,
ol {
  padding-left: 1.3em;
}

li + li {
  margin-top: 0.35em;
}

strong {
  font-weight: 650;
}

.lead {
  font-size: clamp(1.1rem, 1rem + 0.45vw, 1.3rem);
  line-height: 1.55;
  max-width: 60ch;
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.section-intro {
  color: var(--muted);
  max-width: 62ch;
  margin-bottom: 1.75rem;
}

.small,
.source {
  font-size: 0.9rem;
  color: var(--muted);
}

.source {
  margin-top: 0.9rem;
}

.source:last-child {
  margin-bottom: 0;
}

.source a {
  color: var(--link);
}

time,
.nowrap {
  white-space: nowrap;
}

/* 5 · Kopf & Navigation --------------------------------------------------- */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-block: 0.85rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  text-decoration: none;
}

.brand:hover {
  color: var(--text);
}

.brand-mark {
  width: 40px;
  height: 40px;
  flex: none;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-size: 1.15rem;
  font-weight: 750;
  letter-spacing: -0.01em;
}

.brand-tag {
  font-size: 0.8rem;
  color: var(--muted);
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav li + li {
  margin-top: 0;
}

.site-nav a {
  display: inline-block;
  padding: 0.55rem 0.8rem;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-weight: 550;
  text-decoration: none;
  min-height: 44px;
  line-height: 1.6;
}

.site-nav a:hover {
  background: var(--surface-tint);
  color: var(--link-hover);
}

.site-nav a[aria-current="page"] {
  color: var(--link);
  box-shadow: inset 0 -3px 0 var(--link);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

/* Menüschalter nur sichtbar, wenn JavaScript läuft (Klasse .js am <html>) */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.55rem;
  min-height: 44px;
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.nav-toggle:hover {
  background: var(--surface-tint);
}

.nav-toggle-icon,
.nav-toggle-icon::before,
.nav-toggle-icon::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.nav-toggle-icon {
  position: relative;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-icon::before {
  top: -6px;
}

.nav-toggle-icon::after {
  top: 6px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon::after {
  top: 0;
  transform: rotate(-45deg);
}

/* Unabhängigkeitshinweis */
.independence {
  background: var(--surface-tint);
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
  line-height: 1.5;
}

.independence p {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  margin: 0;
  padding-block: 0.65rem;
}

.independence svg {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 0.15rem;
  color: var(--link);
}

.independence a {
  white-space: nowrap;
  font-weight: 600;
}

/* Brotkrumen */
.breadcrumb {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumb li + li {
  margin-top: 0;
}

.breadcrumb li + li::before {
  content: "›";
  margin-right: 0.3rem;
  color: var(--line-strong);
}

/* 6 · Komponenten --------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 48px;
  padding: 0.7rem 1.25rem;
  border-radius: var(--radius-sm);
  border: 2px solid var(--link);
  font-weight: 650;
  text-decoration: none;
  line-height: 1.3;
  text-align: center;
}

.btn-primary {
  background: var(--link);
  color: #fff;
}

.btn-primary:hover {
  background: var(--link-hover);
  border-color: var(--link-hover);
  color: #fff;
}

.btn-secondary {
  background: var(--surface);
  color: var(--link);
}

.btn-secondary:hover {
  background: var(--surface-tint);
  color: var(--link-hover);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem;
}

.card > :last-child {
  margin-bottom: 0;
}

/* Aussage-Kennzeichnungen: Text trägt die Bedeutung, Farbe nur ergänzend */
.badge {
  display: inline-block;
  padding: 0.12rem 0.55rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  line-height: 1.6;
  white-space: nowrap;
  border: 1px solid transparent;
  vertical-align: 0.1em;
}

.badge-amtlich {
  background: var(--surface-tint);
  border-color: #9cc3c1;
  color: #0a4a4e;
}

.badge-plan {
  background: var(--sand-soft);
  border-color: #c9b28c;
  color: #4d3d22;
}

.badge-beobachtung {
  background: #eef0f6;
  border-color: #b4bcd3;
  color: #2f3a5a;
}

.badge-position {
  background: var(--surface);
  border-color: #b9c4c4;
  color: var(--muted);
}

.badge-offen {
  background: var(--surface);
  border: 1px dashed #7b8b8c;
  color: #3e5052;
}

/* Statusfelder */
.status-grid {
  display: grid;
  gap: 1rem;
}

.status-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 4px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem 1.35rem;
}

.status-card.is-amtlich {
  border-top-color: var(--link);
}

.status-card.is-offen {
  border-top-color: var(--sand);
}

.status-card h3 {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.65rem;
}

.status-answer {
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0.6rem 0 0.6rem;
}

.status-card .source {
  margin-top: auto;
  padding-top: 0.9rem;
}

/* Kennzahlen */
.facts {
  display: grid;
  gap: 0;
  margin: 0;
  border-top: 1px solid var(--line);
}

.facts > div {
  display: grid;
  gap: 0.15rem 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
}

.facts dt {
  font-weight: 650;
  color: var(--muted);
  font-size: 0.95rem;
}

.facts dd {
  margin: 0;
}

/* Tabellen */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  margin-bottom: 1rem;
}

.table-wrap:focus-visible {
  outline-offset: 2px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.97rem;
}

caption {
  text-align: left;
  padding: 0.9rem 1rem 0.4rem;
  font-weight: 650;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 0.7rem clamp(0.6rem, 1.5vw, 1rem);
  border-bottom: 1px solid var(--line);
}

thead th {
  background: var(--surface-tint);
  font-size: 0.88rem;
  letter-spacing: 0.02em;
}

tbody tr:last-child > * {
  border-bottom: 0;
}

/* Kleine Bildschirme: Tabellenzeilen untereinander statt seitlich scrollen */
@media (max-width: 599.98px) {
  .table-stack thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .table-stack tr {
    display: block;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--line);
  }

  .table-stack tbody tr:last-child {
    border-bottom: 0;
  }

  .table-stack th,
  .table-stack td {
    display: block;
    padding: 0.1rem 0;
    border: 0;
  }

  .table-stack tbody th {
    margin-bottom: 0.2rem;
  }

  .table-stack td::before {
    content: attr(data-label) ": ";
    color: var(--muted);
    font-size: 0.9rem;
  }
}

/* Hinweisboxen */
.callout {
  border-left: 4px solid var(--sand);
  background: var(--surface);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.2rem;
  margin: 1.5rem 0;
}

.callout > :last-child {
  margin-bottom: 0;
}

.callout-title {
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.callout-history {
  border-left-color: var(--line-strong);
  background: #f0efe9;
}

/* Inhaltsverzeichnis */
.toc {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  margin: 1.75rem 0 0;
  max-width: var(--prose);
}

.toc-title {
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.toc ol {
  margin: 0;
  columns: 1;
}

.toc li + li {
  margin-top: 0.2em;
}

/* Zeitachse */
.timeline {
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 0.6rem;
  bottom: 0.6rem;
  width: 2px;
  background: var(--line-strong);
}

.timeline-item {
  position: relative;
  padding-left: 2.1rem;
}

.timeline-item + .timeline-item {
  margin-top: 1.75rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--link);
}

.timeline-item.is-historic::before {
  border-color: var(--line-strong);
}

.timeline-date {
  font-weight: 700;
  color: var(--link);
  margin-bottom: 0.2rem;
}

.timeline-item.is-historic .timeline-date {
  color: var(--muted);
}

.timeline-item h3 {
  margin-bottom: 0.5rem;
}

.timeline .card {
  margin-top: 0.4rem;
}

.timeline-compact .timeline-item + .timeline-item {
  margin-top: 1.1rem;
}

.timeline-compact h3 {
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.timeline-compact p {
  margin-bottom: 0;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.4rem;
  margin: 0 0 0.9rem;
  font-size: 0.9rem;
}

.meta div {
  display: flex;
  gap: 0.35rem;
}

.meta dt {
  color: var(--muted);
}

.meta dt::after {
  content: ":";
}

.meta dd {
  margin: 0;
  font-weight: 600;
}

.history-note {
  display: inline-block;
  margin-bottom: 0.7rem;
  font-size: 0.85rem;
  font-weight: 650;
  color: var(--muted);
  background: #f0efe9;
  border-radius: var(--radius-sm);
  padding: 0.1rem 0.5rem;
}

/* Häufige Fragen */
.faq {
  max-width: var(--prose);
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  position: relative;
  padding: 1rem 2.4rem 1rem 0;
  font-weight: 650;
  font-size: 1.05rem;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 0.35rem;
  top: 0.8rem;
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--link);
  line-height: 1.2;
}

.faq details[open] summary::after {
  content: "−";
}

.faq summary:hover {
  color: var(--link);
}

.faq .answer {
  padding: 0 0 1.1rem;
}

.faq .answer > :last-child {
  margin-bottom: 0;
}

/* Bekannt / Offen */
.split-list h3 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.split-list ul {
  margin-bottom: 0;
}

.split-list li {
  padding-left: 0.1rem;
}

/* Begriffe */
.glossary {
  display: grid;
  gap: 1rem;
  margin: 0;
}

.glossary div {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
}

.glossary dt {
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.glossary dd {
  margin: 0;
}

/* Quellenverzeichnis */
.source-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
}

.source-list li + li {
  margin-top: 0;
}

.source-entry h3 {
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}

.source-id {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  padding: 0 0.35rem;
  margin-right: 0.4rem;
  vertical-align: 0.15em;
}

.source-entry .facts > div {
  padding: 0.45rem 0;
}

.source-entry .facts {
  margin: 0.75rem 0;
  font-size: 0.95rem;
}

/* Platzhalter für die lokale Vorschau – vor Veröffentlichung ersetzen */
.placeholder {
  background: var(--placeholder-bg);
  outline: 2px dashed var(--placeholder-line);
  outline-offset: 1px;
  color: #3d2f00;
  padding: 0 0.25rem;
  border-radius: 3px;
  font-weight: 600;
}

.preview-banner {
  background: var(--placeholder-bg);
  border: 2px dashed var(--placeholder-line);
  border-radius: var(--radius);
  padding: 0.9rem 1.1rem;
  margin-bottom: 1.5rem;
  color: #3d2f00;
}

.preview-banner > :last-child {
  margin-bottom: 0;
}

/* 7 · Seitenbereiche ------------------------------------------------------ */
.hero {
  position: relative;
  background: var(--surface);
  overflow: hidden;
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding-top: clamp(2.5rem, 1.5rem + 4vw, 4.75rem);
  padding-bottom: clamp(4.5rem, 3rem + 6vw, 7.5rem);
}

.hero .stand {
  margin: 0.25rem 0 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.hero .stand::before {
  content: "";
  display: inline-block;
  vertical-align: 0.1em;
  margin-right: 0.5rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--link);
}

.hero-waves {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  width: 100%;
  height: clamp(60px, 9vw, 120px);
  pointer-events: none;
}

.page-head {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(1.75rem, 1.2rem + 2.5vw, 3rem);
}

.page-head .lead {
  margin-bottom: 0;
}

.page-head .stand {
  margin: 1rem 0 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.answer-box {
  background: var(--surface-tint);
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
  margin-top: 1.25rem;
  max-width: var(--prose);
}

.answer-box > :last-child {
  margin-bottom: 0;
}

.operator-box {
  display: grid;
  gap: 1rem 2rem;
  align-items: center;
  background: var(--text);
  color: #fff;
  border-radius: var(--radius);
  padding: clamp(1.4rem, 1rem + 2vw, 2.25rem);
}

.operator-box h2 {
  color: #fff;
}

.operator-box p {
  color: #e3eeed;
  max-width: 60ch;
}

.operator-box .btn {
  background: #fff;
  border-color: #fff;
  color: var(--text);
  justify-self: start;
}

.operator-box .btn:hover {
  background: var(--surface-tint);
  border-color: var(--surface-tint);
  color: var(--text);
}

.operator-box :focus-visible {
  outline-color: #fff;
}

.more-link {
  font-weight: 650;
}

/* 8 · Fußbereich ---------------------------------------------------------- */
.site-footer {
  margin-top: var(--space-section);
  background: var(--text);
  color: #e3eeed;
  font-size: 0.95rem;
}

main + .site-footer {
  margin-top: 0;
}

.site-footer a {
  color: #fff;
}

.site-footer a:hover {
  color: var(--sand);
}

.site-footer :focus-visible {
  outline-color: #fff;
}

.footer-grid {
  display: grid;
  gap: 1.75rem;
  padding-block: 2.5rem 2rem;
}

.footer-brand {
  font-weight: 700;
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.footer-meta {
  font-size: 0.88rem;
  color: #c9d8d7;
}

.footer-heading {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 0.6rem;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer li + li {
  margin-top: 0.15rem;
}

.site-footer li a {
  display: inline-block;
  padding-block: 0.3rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-block: 1rem 1.5rem;
  font-size: 0.88rem;
  color: #c9d8d7;
}

.footer-bottom p {
  margin: 0;
}

/* Fehlerseite */
.error-page {
  padding-block: clamp(3rem, 2rem + 6vw, 6rem);
}

.error-more {
  margin-top: 1.5rem;
}

/* 9 · Responsive ---------------------------------------------------------- */
@media (max-width: 599.98px) {
  .timeline-item {
    padding-left: 1.7rem;
  }

  .card {
    padding: 1.05rem 1rem;
  }
}


@media (max-width: 859.98px) {
  .js .nav-toggle {
    display: inline-flex;
  }

  .js .site-nav {
    display: none;
    flex-basis: 100%;
  }

  .js .site-nav.is-open {
    display: block;
  }

  .js .site-nav ul {
    flex-direction: column;
    gap: 0;
    padding-top: 0.5rem;
    border-top: 1px solid var(--line);
  }

  .js .site-nav a {
    display: block;
    padding-inline: 0.5rem;
  }

  .js .site-nav a[aria-current="page"] {
    box-shadow: inset 4px 0 0 var(--link);
    border-radius: 0;
  }

  /* Ohne JavaScript: Navigation bleibt sichtbar und bricht um */
  .site-nav {
    flex-basis: 100%;
  }

  .site-nav a {
    padding-inline: 0.6rem;
  }

  .independence a {
    white-space: normal;
  }
}

@media (min-width: 760px) {
  body {
    font-size: 1.125rem; /* 18 px */
  }

  .grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
  }

  .facts > div {
    grid-template-columns: minmax(8rem, 11rem) 1fr;
  }

  .glossary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1.6fr 1fr 1fr;
  }

  .toc ol {
    columns: 2;
    column-gap: 2rem;
  }

  .operator-box {
    grid-template-columns: 1fr auto;
  }

  .operator-box .btn {
    justify-self: end;
  }
}

@media (min-width: 860px) {
  .site-nav {
    flex-basis: auto;
  }
}

@media (min-width: 1040px) {
  :root {
    --gutter: 1.5rem;
  }

  .status-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .two-col {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 3rem;
    align-items: start;
  }
}

@media (min-width: 760px) and (max-width: 1039.98px) {
  .status-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .status-grid > :last-child {
    grid-column: 1 / -1;
  }
}

/* 10 · Bewegung ----------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }

  .btn,
  .site-nav a,
  .nav-toggle {
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  }
}

/* 11 · Druck -------------------------------------------------------------- */
@media print {
  body {
    background: #fff;
    font-size: 11pt;
  }

  .site-nav,
  .nav-toggle,
  .skip-link,
  .hero-waves,
  .actions,
  .toc {
    display: none !important;
  }

  .site-header,
  .hero,
  .page-head,
  .card,
  .status-card,
  .section-tint {
    background: #fff;
    border-color: #999;
  }

  .site-footer,
  .operator-box {
    background: #fff;
    color: #000;
  }

  .site-footer a,
  .operator-box h2,
  .operator-box p {
    color: #000;
  }

  a.ext[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    word-break: break-all;
  }

  .faq details > .answer {
    display: block;
  }

  .timeline-item,
  .card {
    break-inside: avoid;
  }
}
