/*
  LMLEV — Lohnsteuerberatung Mitteldeutschland Lohnsteuerhilfeverein e.V.
  Design system: weiss / grau / blau — edel, seriös, hochwertig, mobile-first.
  Token-Architektur: Marken-Tokens (fix) vs. adaptive Tokens (hell/dunkel) — siehe unten.
*/

/* ---------- Fonts (self-hosted, DSGVO-frei, keine externen Requests) ---------- */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/fraunces-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/fraunces-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-variable.woff2") format("woff2");
}

/* ---------- Design tokens ---------- */
:root {
  color-scheme: light dark;

  /* Marken-Tokens: fix, ändern sich NICHT mit Hell/Dunkel-Modus.
     Für bewusst immer-dunkle/-farbige Flächen (Hero-Statement, Footer,
     mobiles Menü, Buttons, Skip-Link) und feste Akzentfarben. */
  --white: #ffffff;
  --navy-950: #0d1826;
  --navy-900: #111e30;
  --navy-800: #16283f;
  --navy-700: #1e3554;
  --navy-600: #29456b;
  --blue-500: #3c6690;
  --blue-100: #e6ecf2;
  --blue-50: #f2f5f8;
  --focus: #3c6690;

  --radius-s: 6px;
  --radius-m: 12px;
  --radius-l: 22px;

  --shadow-s: 0 1px 2px rgba(13, 24, 38, 0.06), 0 1px 1px rgba(13, 24, 38, 0.04);
  --shadow-m: 0 8px 24px rgba(13, 24, 38, 0.08), 0 2px 6px rgba(13, 24, 38, 0.05);
  --shadow-l: 0 24px 60px rgba(13, 24, 38, 0.14), 0 6px 16px rgba(13, 24, 38, 0.06);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --container: 1160px;
  --gutter: clamp(1.25rem, 5vw, 3rem);

  /* Adaptive Tokens: wechseln mit prefers-color-scheme. Für Seitenhintergrund,
     Textfarben, Karten/Flächen, Linien und den (halbtransparenten) Header. */
  --text: #17222f;
  --heading: #111e30;
  --text-soft: #4c5866;
  --text-faint: #5f6b78;      /* >= 4.5:1 auch auf --surface-alt (WCAG AA) */
  --page-bg: #ffffff;
  --surface: #ffffff;
  --surface-alt: #f4f6f8;
  --surface-tint: #eef1f4;
  --surface-tint-strong: #e4e9ee;
  --line: #dde3e9;
  --line-strong: #c4ccd6;
  --header-bg: rgba(255, 255, 255, 0.86);
  --accent: var(--blue-500);          /* Akzent-SCHRIFT (Eyebrows, Tags, +/−) */
  --input-border: #8a96a3;            /* Formularrahmen >= 3:1 (WCAG 1.4.11) */
  --btn-primary-bg: var(--navy-900);
  --btn-primary-fg: #ffffff;
  --btn-primary-hover: var(--navy-800);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --text: #eef2f6;
    --heading: #f4f7fa;
    --text-soft: #a9b6c4;
    --text-faint: #8f9caa;
    --page-bg: #0f1620;
    --surface: #17202c;
    --surface-alt: #121924;
    --surface-tint: #1c2733;
    --surface-tint-strong: #243241;
    --line: #2a3648;
    --line-strong: #3a4a60;
    --header-bg: rgba(15, 22, 32, 0.8);
    --focus: #7ea3c9;
    --accent: #8fb0d6;
    --input-border: #5a6b82;
    --btn-primary-bg: #dfe8f2;
    --btn-primary-fg: #0d1826;
    --btn-primary-hover: #ffffff;
  }
}
:root[data-theme="dark"] {
  --text: #eef2f6;
  --heading: #f4f7fa;
  --text-soft: #a9b6c4;
  --text-faint: #8f9caa;
  --page-bg: #0f1620;
  --surface: #17202c;
  --surface-alt: #121924;
  --surface-tint: #1c2733;
  --surface-tint-strong: #243241;
  --line: #2a3648;
  --line-strong: #3a4a60;
  --header-bg: rgba(15, 22, 32, 0.8);
  --focus: #7ea3c9;
  --accent: #8fb0d6;
  --input-border: #5a6b82;
  --btn-primary-bg: #dfe8f2;
  --btn-primary-fg: #0d1826;
  --btn-primary-hover: #ffffff;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  background: var(--page-bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 100%; /* respektiert die im Browser eingestellte Schriftgröße */
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
ul, ol { padding-left: 1.15em; }
button { font: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; line-height: 1.15; margin: 0 0 0.5em; color: var(--heading); letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2.5px solid var(--focus); outline-offset: 3px; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.skip-link {
  position: absolute; left: 1rem; top: -3rem;
  background: var(--navy-900); color: #fff; padding: 0.6em 1em;
  border-radius: var(--radius-s); z-index: 200; transition: top 0.15s ease;
  text-decoration: none; font-size: 0.9rem;
}
.skip-link:focus { top: 1rem; }

/* ---------- Typography scale ---------- */
h1 { font-size: clamp(2.1rem, 5.2vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.35rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.55rem); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-family: var(--font-body); font-weight: 600; font-size: 0.78rem;
  letter-spacing: 0.11em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 0.9em;
}
.lede { font-size: clamp(1.05rem, 2vw, 1.2rem); color: var(--text-soft); max-width: 46rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  font-family: var(--font-body); font-weight: 600; font-size: 0.98rem;
  padding: 0.9em 1.5em; border-radius: 999px; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; transition: all 0.18s ease;
  line-height: 1.1;
}
/* Im Dark Mode hell invertiert – Navy auf Navy wäre unsichtbar. */
.btn-primary { background: var(--btn-primary-bg); color: var(--btn-primary-fg); box-shadow: var(--shadow-s); }
.btn-primary:hover { background: var(--btn-primary-hover); box-shadow: var(--shadow-m); transform: translateY(-1px); }
.btn-secondary { background: transparent; color: var(--heading); border-color: var(--line-strong); }
.btn-secondary:hover { background: var(--surface-tint); border-color: var(--heading); }
.btn-ghost-inverse { background: rgba(255,255,255,0.08); color: #fff; border-color: rgba(255,255,255,0.35); }
.btn-ghost-inverse:hover { background: rgba(255,255,255,0.16); border-color: rgba(255,255,255,0.6); }
.btn-sm { padding: 0.55em 1.1em; font-size: 0.88rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
}
/* Blur liegt bewusst auf einem ::before statt direkt auf .site-header:
   backdrop-filter auf dem Header selbst würde einen containing block für
   das position:fixed mobile Menü (Nachfahre im DOM) erzeugen und dessen
   Positionierung relativ zum Header statt zum Viewport kaputt machen. */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  pointer-events: none;
}
.site-header__bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-block: 0.85rem;
}
.site-header__controls { display: flex; align-items: center; gap: 0.75rem; }
.brand { display: inline-flex; align-items: center; gap: 0.7em; text-decoration: none; }
.brand__mark { width: 40px; height: 40px; flex: none; border-radius: 9px; overflow: hidden; box-shadow: var(--shadow-s); }
.brand__name { font-family: var(--font-display); font-weight: 500; font-size: 1.02rem; color: var(--heading); line-height: 1.15; }
.brand__name small { display: block; font-family: var(--font-body); font-weight: 500; font-size: 0.68rem; letter-spacing: 0.05em; color: var(--text-faint); text-transform: uppercase; margin-top: 0.15em; }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: var(--radius-s);
  border: 1px solid var(--line-strong); background: var(--surface); cursor: pointer;
}
.nav-toggle__box { position: relative; width: 18px; height: 12px; }
.nav-toggle__box span {
  position: absolute; left: 0; width: 100%; height: 1.6px; background: var(--heading);
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle__box span:nth-child(1) { top: 0; }
.nav-toggle__box span:nth-child(2) { top: 50%; margin-top: -0.8px; }
.nav-toggle__box span:nth-child(3) { bottom: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__box span:nth-child(1) { transform: translateY(5.2px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__box span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__box span:nth-child(3) { transform: translateY(-5.2px) rotate(-45deg); }

.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 40px; height: 40px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--heading);
  cursor: pointer; transition: background 0.18s ease, border-color 0.18s ease;
}
.theme-toggle:hover { background: var(--surface-tint); border-color: var(--heading); }
.theme-toggle__icon--moon { display: block; }
.theme-toggle__icon--sun { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle__icon--moon { display: none; }
  :root:not([data-theme="light"]) .theme-toggle__icon--sun { display: block; }
}
:root[data-theme="dark"] .theme-toggle__icon--moon { display: none; }
:root[data-theme="dark"] .theme-toggle__icon--sun { display: block; }
:root[data-theme="light"] .theme-toggle__icon--moon { display: block; }
:root[data-theme="light"] .theme-toggle__icon--sun { display: none; }

.site-nav {
  position: fixed; inset: 0 0 0 auto; width: min(86vw, 360px);
  background: var(--navy-900); color: #fff;
  padding: 5.5rem 1.75rem 2rem; transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(.22,.61,.36,1);
  overflow-y: auto; z-index: 90;
  /* Geschlossen unsichtbar UND nicht per Tab erreichbar (visibility erst
     nach der Ausblend-Animation umschalten). Fokusring hell auf Navy. */
  visibility: hidden; transition: transform 0.32s cubic-bezier(.22,.61,.36,1), visibility 0s linear 0.32s;
  --focus: #cfe0f0;
}
.site-nav[data-open="true"] { transform: translateX(0); visibility: visible; transition: transform 0.32s cubic-bezier(.22,.61,.36,1); }
.site-nav__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.site-nav__list a {
  display: block; padding: 0.95em 0; text-decoration: none; color: #fff;
  font-family: var(--font-display); font-size: 1.3rem; font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.site-nav__list a[aria-current="page"] { color: #9db6d3; }
.site-nav__meta { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.15); font-size: 0.92rem; color: rgba(255,255,255,0.75); }
.site-nav__meta a { color: #cfe0f0; text-decoration: none; }
.site-nav__meta p { margin: 0 0 0.6em; }

.nav-scrim {
  position: fixed; inset: 0; background: rgba(13, 24, 38, 0.42);
  opacity: 0; pointer-events: none; transition: opacity 0.28s ease; z-index: 80;
}
.nav-scrim[data-open="true"] { opacity: 1; pointer-events: auto; }

body[data-nav-open="true"] { overflow: hidden; }

@media (min-width: 880px) {
  .nav-toggle { display: none; }
  .nav-scrim { display: none; }
  .site-nav {
    position: static; width: auto; transform: none; background: transparent;
    color: var(--text); padding: 0; overflow: visible;
    visibility: visible; transition: none; --focus: inherit;
  }
  .site-nav__list { flex-direction: row; align-items: center; gap: 1.9rem; }
  .site-nav__list a {
    border-bottom: 0; padding: 0.4em 0; color: var(--text); font-family: var(--font-body);
    font-size: 0.97rem; font-weight: 600; position: relative;
  }
  .site-nav__list a::after {
    content: ""; position: absolute; left: 0; right: 100%; bottom: -4px; height: 2px;
    background: var(--heading); transition: right 0.22s ease;
  }
  .site-nav__list a:hover::after, .site-nav__list a[aria-current="page"]::after { right: 0; }
  .site-nav__list a[aria-current="page"] { color: var(--heading); }
  .site-nav__meta { display: none; }
  .site-nav__cta { margin-left: 0.4rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--surface-alt), var(--page-bg) 60%);
}
.hero__grid {
  position: relative; z-index: 1;
  display: grid; gap: 2.5rem; align-items: center;
  padding-block: clamp(2.5rem, 6vw, 5.5rem);
  min-width: 0;
}
.hero__grid > * { min-width: 0; }
.hero__art {
  border-radius: var(--radius-l); overflow: hidden; box-shadow: var(--shadow-l);
  aspect-ratio: 4 / 3; background: var(--surface-tint);
  min-width: 0;
}
.hero__art img { width: 100%; height: 100%; object-fit: cover; }
.hero__badges { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1.6rem 0 0; padding: 0; list-style: none; }
.badge {
  display: inline-flex; align-items: center; gap: 0.5em;
  background: var(--surface-tint); border: 1px solid var(--line);
  border-radius: 999px; padding: 0.5em 0.95em; font-size: 0.84rem; font-weight: 600; color: var(--heading);
}
.badge__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--blue-500); flex: none; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.9rem; }
.hero__cta--center { justify-content: center; }

@media (min-width: 960px) {
  .hero__grid { grid-template-columns: 1.05fr 0.95fr; }
}

/* ---------- Wasserzeichen (dezentes Markenmotiv €/§) ---------- */
.watermark {
  position: absolute; z-index: 0; pointer-events: none; user-select: none;
  font-family: var(--font-display); font-weight: 500; line-height: 1;
  color: var(--heading); opacity: 0.06; aspect-ratio: 1;
}
.watermark--invert { color: #fff; opacity: 0.05; }
.hero .watermark {
  left: -1.5rem; bottom: -3rem;
  font-size: clamp(11rem, 22vw, 19rem);
}
.statement .watermark--invert {
  left: 50%; top: 50%; transform: translate(-50%, -50%);
  font-size: clamp(13rem, 32vw, 22rem);
}
.site-footer .watermark--invert {
  right: -2vw; bottom: -4rem;
  font-size: clamp(10rem, 20vw, 16rem);
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(3rem, 7vw, 6rem); }
.section--soft { background: var(--surface-alt); }
.section--navy { background: linear-gradient(160deg, var(--navy-900), var(--navy-950)); color: #fff; }
.section--navy h2, .section--navy h3 { color: #fff; }
/* Auf den fest dunklen Flächen hätte der blaue Fokusring nur ~3:1 Kontrast. */
.section--navy, .statement, .site-footer { --focus: #cfe0f0; }
.section__head { max-width: 46rem; margin-bottom: clamp(2rem, 5vw, 3rem); }
.section__head--center { margin-inline: auto; text-align: center; }

/* Einheitliche Lesebreite für Fließtext-Inhalte, seitenübergreifend
   dieselbe Breite wie .section__head/.lede/.legal (~46rem). */
.measure { max-width: 46rem; }
.measure--center { margin-inline: auto; }

/* ---------- Feature grid ---------- */
.grid { display: grid; gap: 1.25rem; min-width: 0; }
.grid > * { min-width: 0; }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m);
  padding: 1.9rem; box-shadow: var(--shadow-s);
}
.card__icon {
  width: 46px; height: 46px; border-radius: 12px; background: var(--blue-100);
  display: flex; align-items: center; justify-content: center; color: var(--navy-800);
  margin-bottom: 1.1rem;
}
.card h3 { margin-bottom: 0.5em; }
.card p:last-child { margin-bottom: 0; color: var(--text-soft); }

.list-check { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.75rem; }
.list-check li { display: flex; gap: 0.75em; align-items: flex-start; color: var(--text-soft); }
.list-check li::before {
  content: ""; flex: none; width: 20px; height: 20px; margin-top: 0.15em; border-radius: 50%;
  /* Als eigene Datei statt data:-URI – die CSP (img-src 'self') blockiert data:. */
  background: var(--blue-100) url("../img/icon-check.svg");
  background-repeat: no-repeat; background-position: center;
}

/* ---------- Beratungsstellen / contact cards ---------- */
.office-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l);
  padding: clamp(1.6rem, 3vw, 2.4rem); box-shadow: var(--shadow-s);
  display: grid; gap: 1.5rem; min-width: 0;
}
.office-card > * { min-width: 0; }
@media (min-width: 640px) { .office-card { grid-template-columns: 140px 1fr; align-items: start; } }
.office-card__avatar {
  width: 96px; height: 96px; border-radius: 50%; overflow: hidden; box-shadow: var(--shadow-s);
  border: 3px solid var(--surface); outline: 1px solid var(--line);
}
.office-card__avatar img { width: 100%; height: 100%; object-fit: cover; }
.office-card dl { margin: 1rem 0 0; display: grid; gap: 0.35rem; font-size: 0.96rem; }
.office-card dt { font-weight: 600; color: var(--heading); }
.office-card dd { margin: 0 0 0.5rem; color: var(--text-soft); }
.office-card a { color: var(--heading); text-decoration-color: var(--line-strong); }
.office-card__tag { color: var(--accent); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.09em; text-transform: uppercase; margin-bottom: 0.4rem; display: block; }

/* ---------- Beitragsrechner ---------- */
.calculator {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m);
  padding: clamp(1.4rem, 3vw, 1.9rem); margin-bottom: 1.5rem;
}
.calculator label { display: block; font-weight: 600; color: var(--heading); margin-bottom: 0.6rem; }
.calculator__row { display: flex; align-items: center; gap: 0.7rem; max-width: 22rem; }
.calculator__row input {
  flex: 1; min-width: 0; padding: 0.7em 0.9em; border-radius: var(--radius-s);
  border: 1px solid var(--input-border); background: var(--page-bg); color: var(--text);
  font: inherit; font-size: 1.05rem;
}
.calculator__suffix { color: var(--text-soft); font-size: 0.92rem; white-space: nowrap; }
.calculator__result { margin: 1rem 0 0; font-weight: 600; color: var(--heading); font-size: 1.05rem; }

/* ---------- Beitragstabelle ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-m); }
table.rates { width: 100%; border-collapse: collapse; font-size: 0.94rem; min-width: 480px; }
table.rates th, table.rates td { padding: 0.75em 1em; text-align: left; border-bottom: 1px solid var(--line); }
table.rates thead th { background: var(--surface-tint); font-family: var(--font-body); font-weight: 700; color: var(--heading); }
table.rates tbody tr:hover { background: var(--surface-tint); }
table.rates tbody tr:last-child td { border-bottom: 0; }
table.rates td:last-child, table.rates th:last-child { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }

details.disclosure {
  border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--surface);
  padding: 0; overflow: hidden;
}
details.disclosure summary {
  cursor: pointer; list-style: none; padding: 1.1rem 1.4rem; font-weight: 700;
  color: var(--heading); display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
details.disclosure summary::-webkit-details-marker { display: none; }
details.disclosure summary::after {
  content: "+"; font-size: 1.4rem; color: var(--accent); flex: none; font-weight: 400;
  transition: transform 0.2s ease;
}
details.disclosure[open] summary::after { content: "\2212"; }
details.disclosure .disclosure__body { padding: 0 1.4rem 1.4rem; }

/* ---------- Checklist accordion ---------- */
.checklist-group { border-top: 1px solid var(--line); }
.checklist-group:last-child { border-bottom: 1px solid var(--line); }
.checklist-group summary {
  cursor: pointer; list-style: none; padding: 1.15rem 0.2rem; display: flex; align-items: center;
  justify-content: space-between; gap: 1rem; font-family: var(--font-display); font-size: 1.15rem; color: var(--heading);
}
.checklist-group summary::-webkit-details-marker { display: none; }
.checklist-group summary::after { content: "+"; font-size: 1.5rem; color: var(--accent); font-weight: 300; }
.checklist-group[open] summary::after { content: "\2212"; }
.checklist-group ul { margin: 0 0 1.25rem; padding: 0 0.2rem 0 1.1rem; color: var(--text-soft); display: grid; gap: 0.5rem; }

/* ---------- Quote / statement block ---------- */
.statement {
  background: linear-gradient(150deg, var(--navy-900), var(--navy-700));
  color: #fff; border-radius: var(--radius-l); padding: clamp(2.2rem, 6vw, 3.6rem);
  text-align: center; position: relative; overflow: hidden;
}
.statement p {
  font-family: var(--font-display); font-size: clamp(1.4rem, 3.4vw, 2.1rem); font-weight: 400;
  line-height: 1.3; max-width: 34ch; margin: 0 auto; position: relative;
}

/* ---------- Legal pages ---------- */
.legal {
  max-width: 46rem;
}
.legal h2 { margin-top: 2.2em; padding-top: 0.2em; }
.legal h2:first-child { margin-top: 0; }
.legal h3 { margin-top: 1.6em; }
.legal p, .legal li { color: var(--text-soft); }
.legal ol.paragraphs { list-style: none; margin: 0; padding: 0; counter-reset: para; }
.legal ol.paragraphs > li { margin-bottom: 2.2rem; }
.legal .satzung-p__title { font-family: var(--font-display); font-size: 1.25rem; color: var(--heading); margin-bottom: 0.6rem; }
.legal .satzung-p__title .num {
  display: inline-flex; align-items: center; justify-content: center; width: 2em; height: 2em;
  border-radius: 50%; background: var(--blue-100); color: var(--navy-800); font-size: 0.62em;
  font-family: var(--font-body); font-weight: 700; margin-right: 0.5em; vertical-align: middle;
}
.legal-note {
  background: var(--surface-tint); border: 1px solid var(--line); border-left: 3px solid var(--navy-800);
  border-radius: var(--radius-s); padding: 1rem 1.2rem; font-size: 0.92rem; color: var(--text-soft); margin: 1.5rem 0;
}
.contact-block {
  background: var(--surface-tint); border-radius: var(--radius-m); padding: 1.4rem 1.6rem; margin: 1.4rem 0;
}
.contact-block p { margin: 0; color: var(--text); }

/* ---------- Footer ---------- */
.site-footer { position: relative; overflow: hidden; background: var(--navy-950); color: rgba(255,255,255,0.82); }
.site-footer__top {
  position: relative; z-index: 1;
  display: grid; gap: 2.4rem; padding-block: clamp(2.6rem, 6vw, 4rem);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
@media (min-width: 780px) { .site-footer__top { grid-template-columns: 1.2fr 1fr 1fr; } }
.site-footer__title { color: #fff; font-family: var(--font-body); font-size: 0.86rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 1.1rem; }
.site-footer .brand__name { color: #fff; }
.site-footer .brand__name small { color: rgba(255,255,255,0.55); }
.site-footer p { color: rgba(255,255,255,0.68); font-size: 0.95rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.65rem; }
.site-footer a { color: rgba(255,255,255,0.82); text-decoration: none; font-size: 0.95rem; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer__bottom {
  position: relative; z-index: 1;
  display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; align-items: center; justify-content: space-between;
  padding-block: 1.5rem; font-size: 0.85rem; color: rgba(255,255,255,0.55);
}
.site-footer__bottom nav { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.site-footer__bottom a { color: rgba(255,255,255,0.65); }

/* ---------- Page intro ---------- */
.page-intro { padding-block: clamp(2.4rem, 6vw, 3.6rem) clamp(1.5rem, 4vw, 2rem); }

/* ---------- Utilities ---------- */
/* Optik einer h3 für Überschriften, die in der Gliederung h2 sein müssen. */
.h3 { font-size: clamp(1.2rem, 2.2vw, 1.55rem); }
.m-0 { margin: 0; }
.mt-0 { margin-top: 0; }
.mt-sm { margin-top: 0.5rem; }
.mt-md { margin-top: 1rem; }
.mt-lg { margin-top: 1.5rem; }
.mt-xl { margin-top: 2rem; }
.mt-2xl { margin-top: 2.5rem; }
.mb-lg { margin-bottom: 1.5rem; }
.mb-xl { margin-bottom: 2rem; }
.pt-0 { padding-top: 0; }
.text-sm { font-size: 0.9rem; }
.text-soft { color: var(--text-soft); }
.measure-sm { max-width: 38ch; }
.measure-md { max-width: 44ch; }
.measure-narrow { max-width: 48ch; }
.lede--center { margin-inline: auto; }
.stack { display: grid; gap: 1rem; }
.stack--lg { gap: 1.5rem; }
.split-row {
  display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; justify-content: space-between;
}
.divider { height: 1px; background: var(--line); border: 0; margin: 2.4rem 0; }
.figure { border-radius: var(--radius-m); overflow: hidden; box-shadow: var(--shadow-s); background: var(--surface-tint); }
.figure img { width: 100%; height: auto; }
.figure--narrow { max-width: 560px; }
.figure figcaption { padding: 0.85rem 1.1rem; font-size: 0.85rem; color: var(--text-faint); background: var(--surface); border-top: 1px solid var(--line); }

.map-cta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem; justify-content: space-between;
  background: var(--surface-tint); border: 1px solid var(--line); border-radius: var(--radius-m);
  padding: 1.1rem 1.3rem; margin-top: 1rem;
}

/* Langer Vereinsname im Header auf kleinen Displays ausblenden – steht im
   Footer und im aria-label des Logo-Links, sonst quetscht er die Buttons. */
@media (max-width: 479px) {
  .site-header .brand__name small { display: none; }
}

/* Bewegung reduzieren, wenn im Betriebssystem so eingestellt (WCAG 2.3.3). */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important; transition-delay: 0s !important;
  }
  .btn-primary:hover { transform: none; }
}

@media print {
  .site-header, .site-footer, .hero__cta, .skip-link { display: none; }
}

/* ---------- Stats-Dashboard (stats.php) ---------- */
.stats-login {
  max-width: 26rem; margin-inline: auto; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-m);
  padding: clamp(1.6rem, 4vw, 2.4rem); box-shadow: var(--shadow-s);
}
.stats-login label { display: block; font-weight: 600; margin-bottom: 0.4rem; color: var(--heading); }
.stats-login input[type="text"] {
  width: 100%; padding: 0.7em 0.9em; border-radius: var(--radius-s);
  border: 1px solid var(--input-border); background: var(--page-bg); color: var(--text);
  font: inherit; margin-bottom: 1rem;
}
.stats-error {
  background: #fdeceb; border: 1px solid #f3b9b3; color: #7a2119;
  border-radius: var(--radius-s); padding: 0.8em 1em; margin-bottom: 1.2rem; font-size: 0.92rem;
}
.stats-login input[type="text"] { font-size: 1.3rem; letter-spacing: 0.15em; text-align: center; font-variant-numeric: tabular-nums; }
.stats-notice {
  background: var(--page-bg); border: 1px solid var(--line-strong); color: var(--text);
  border-radius: var(--radius-s); padding: 0.8em 1em; margin-bottom: 1.2rem; font-size: 0.92rem;
}
.stats-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.stats-table th, .stats-table td { padding: 0.6em 0.9em; text-align: left; border-bottom: 1px solid var(--line); }
.stats-table th { color: var(--heading); font-weight: 700; }
.stats-table td:last-child, .stats-table th:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.stats-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 1.4rem 1.6rem; margin-bottom: 1.8rem; }
