/* Abi '87 – gemeinsame Gestaltung (Startseite, Anmeldung, Kopfzeile im internen Bereich) */
:root {
  /* Überschriften: DIN-artige Schrift wie auf Schul- und Straßenschildern (auf Windows vorhanden) */
  --display: "Bahnschrift SemiCondensed", "Bahnschrift", "DIN Alternate", "Avenir Next Condensed", "Arial Narrow", sans-serif;
  --bg: #fbfbfa;
  --surface: #ffffff;
  --ink: #1d2733;
  --muted: #5f6a76;
  --line: #d3d8de;
  --accent: #2f5d8a;
  --accent-ink: #ffffff;
  --accent-soft: rgba(47, 93, 138, .09);
  --danger: #a3302a;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1a1e23;
    --surface: #252a31;
    --ink: #e6e9ed;
    --muted: #9aa4ae;
    --line: #3a414a;
    --accent: #7fb0e0;
    --accent-ink: #10161d;
    --accent-soft: rgba(127, 176, 224, .12);
    --danger: #f08a83;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg); color: var(--ink);
  font: 18px/1.6 "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
}
a { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Kopfzeile mit Menü ---------- */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.site-header .inner {
  max-width: 62rem; margin: 0 auto; padding: 8px 16px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 4px 24px; min-height: 60px;
}
.site-header.wide .inner { max-width: none; min-height: 50px; padding-block: 4px; }
.brand {
  color: var(--ink); text-decoration: none; white-space: nowrap;
  font: 600 1.15rem/1.2 var(--display); letter-spacing: .01em;
}
.brand small { color: var(--muted); font-weight: 400; font-size: .9em; margin-left: .35em; }
.site-nav { display: flex; flex-wrap: wrap; gap: 2px; margin: 0 -10px; }
.site-nav a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px; border-radius: 6px;
  color: var(--ink); text-decoration: none; font-size: .97rem; line-height: 1.4;
}
.site-nav a:hover { color: var(--accent); background: var(--accent-soft); }
.site-nav a[aria-current="page"] { color: var(--accent); font-weight: 600; }
.site-nav svg { width: 14px; height: 14px; flex: none; }
.site-nav a.nav-button { border: 1px solid var(--line); margin-left: 8px; padding-inline: 14px; }
.site-nav a.nav-button:hover { border-color: var(--accent); }

/* ---------- Inhalt ---------- */
.content { max-width: 62rem; margin: 0 auto; padding: 0 16px; }

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px; border-radius: 8px;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  border: 1px solid var(--accent);
  background: var(--accent); color: var(--accent-ink);
}
.button:hover { filter: brightness(1.08); }
.button.secondary { background: transparent; color: var(--accent); }
.button.secondary:hover { background: var(--accent-soft); filter: none; }

.site-footer {
  margin-top: 64px; border-top: 1px solid var(--line);
  color: var(--muted); font-size: .9rem;
}
.site-footer .inner {
  max-width: 62rem; margin: 0 auto; padding: 20px 16px 32px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
}
.site-footer nav { display: flex; gap: 20px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--accent); }
.site-footer a[aria-current="page"] { color: var(--ink); text-decoration: none; }

/* ---------- Rechtstexte (Impressum, Datenschutz) ---------- */
.legal { padding-top: 48px; }
.legal > * { max-width: 42rem; }   /* angenehme Zeilenlänge, bündig mit der Kopfzeile */
.legal h1 {
  margin: 0 0 8px;
  font-family: var(--display); font-weight: 600; line-height: 1.2;
  font-size: clamp(1.6rem, 7vw, 2.2rem); overflow-wrap: break-word; hyphens: auto;
}
.legal h2 { margin: 36px 0 8px; font-size: 1.15rem; font-weight: 600; }
.legal p, .legal ul, .legal address { margin: 0 0 14px; }
.legal address { font-style: normal; }
.legal ul { padding-left: 1.3em; }
.legal li { margin-bottom: 4px; }
.legal .stand { color: var(--muted); font-size: .95rem; margin-bottom: 28px; }

/* Platzhalter – vor der Veröffentlichung ersetzen */
.todo {
  background: #fff1b8; color: #5c4400;
  padding: 0 .3em; border-radius: 3px; border: 1px dashed #c9a400;
}
@media (prefers-color-scheme: dark) {
  .todo { background: #4a3d00; color: #ffe27a; border-color: #8a7300; }
}
