/* ============================================================
   Postalia Langenfeld – Haupt-Stylesheet
   Mobile-First | Keine externen Frameworks
   ============================================================ */

/* ── 0. Schriften (selbst gehostet, DSGVO-konform, kein Google-CDN)
   Libre Franklin = Display (Franklin-Gothic-Erbe, Plakat-Charakter)
   Source Sans 3  = Lesetext (ruhige humanistische Sans)
   Lizenz beider: SIL Open Font License 1.1 ──────────────────── */
@font-face {
  font-family: 'Libre Franklin';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/assets/fonts/libre-franklin-latin-800-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Libre Franklin';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('/assets/fonts/libre-franklin-latin-900-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/source-sans-3-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/source-sans-3-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/source-sans-3-latin-700-normal.woff2') format('woff2');
}

/* ── 1. Custom Properties ───────────────────────────────────── */
:root {
  /* Marke / Tinte & Siegel */
  --blau:    #061C6F;
  --blau-m:  #0a2da0;
  --blau-tief: #04123f;   /* tiefere Tinte: gedrenchte Felder, Hover auf Blau */
  --gelb:    #E7AB17;
  --gold-tief: #c4900f;   /* Siegel-Gold dunkler: Hover/Active als FLÄCHE (Buttons) */
  --gold-text: #8a6209;   /* dunkles Gold für Text auf hellem Grund (WCAG AA ≥4,5) */
  --weiss:   #FFFFFF;
  --papier:  #FBFAF6;     /* leicht getöntes Briefpapier (warm-neutral, sehr dezent) */
  --grau:    #F4F6FB;
  --border:  #E5E7EB;
  --linie:   #D8C9A0;     /* Posthalterei-Hairline auf Hell (gedämpftes Gold) */
  --text:    #1A1A2E;
  --muted:   #5A616E;  /* WCAG AA: ≥4,5:1 auch auf --grau (vorher #6B7280 ~4,3:1) */
  --danger:  #C62828;
  --radius:  10px;
  --shadow:  0 4px 20px rgba(6,28,111,.09);

  /* Schrift-Tokens */
  --font-display: 'Libre Franklin', 'Segoe UI', system-ui, sans-serif;
  --font-body:    'Source Sans 3', 'Segoe UI', system-ui, sans-serif;

  /* Fluide Typo-Skala (≥1.25-Ratio, clamp; Display-Deckel ≤ 6rem) */
  --text-xs:      .78rem;
  --text-sm:      .9rem;
  --text-base:    1rem;
  --text-lg:      1.15rem;
  --text-xl:      clamp(1.3rem, 1.1rem + 1vw, 1.75rem);
  --text-2xl:     clamp(1.65rem, 1.3rem + 1.8vw, 2.5rem);
  --text-3xl:     clamp(1.5rem, 1rem + 2.5vw, 3.4rem);
  --text-display: clamp(2.1rem, 1.3rem + 4vw, 5rem);

  /* Spacing-Skala (8er-Basis, für Rhythmus mit Varianz) */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 36px;
  --space-5: 56px;
  --space-6: 88px;
  --space-7: 132px;

  /* Semantische z-index-Skala (statt willkürlicher 999) */
  --z-tooltip: 10;
  --z-sticky:  100;
  --z-skip:    200;
}

/* ── Skip-Link (Tastatur/Screenreader: direkt zum Inhalt) ───── */
.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: var(--z-skip);
  background: var(--gelb);
  color: var(--blau);
  font-weight: 700;
  font-size: .9rem;
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0,0,0,.3);
  transition: top .15s ease;
}
.skip-link:focus { top: 12px; }

/* ── Sichtbarer Tastatur-Fokus (WCAG 2.2 AA) ────────────────── */
/* Standard: blauer Ring – hoher Kontrast auf hellem Grund */
:focus-visible {
  outline: 3px solid var(--blau);
  outline-offset: 2px;
}
/* Auf dunkelblauen Flächen wäre Blau unsichtbar → goldener Ring */
.nav :focus-visible,
.nav-toggle:focus-visible,
.hero :focus-visible,
.page-hero :focus-visible,
.section--blau :focus-visible,
footer :focus-visible {
  outline-color: var(--gelb);
}

/* ── 2. Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--weiss);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
footer { margin-top: auto; }
/* main ist Flex-Item des body (column-flex) → min-width:0, sonst verhindert
   die Default-min-width:auto, dass lange Wörter umbrechen (Seiten-Overflow) */
main { min-width: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; }

/* Überschriften tragen die Display-Schrift (Franklin-Gothic-Erbe) */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  letter-spacing: -.01em;
}

/* ── 3. Navigation ──────────────────────────────────────────── */
.nav {
  background: var(--blau);
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,.25);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo {
  height: 40px;
  width: auto;
  display: block;
}
.nav-brand-text {
  color: var(--weiss);
  font-weight: 700;
  font-size: .95rem;
  line-height: 1.2;
}
.nav-brand-sub {
  color: var(--gelb);
  font-size: .68rem;
  font-weight: 400;
  display: block;
  letter-spacing: .02em;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: rgba(255,255,255,.85);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 10px 8px;
  margin-left: auto;
  min-height: 44px;
  min-width: 44px;
  line-height: 1;
  align-items: center;
  justify-content: center;
}

.nav-links {
  display: flex;
  gap: 2px;
  margin-left: auto;
}
.nav-links a {
  color: rgba(255,255,255,.8);
  text-decoration: none;
  padding: 8px 11px;
  border-radius: 6px;
  font-size: .84rem;
  white-space: nowrap;
  transition: background .15s, color .15s;
}
.nav-links a:hover,
.nav-links a.aktiv { background: rgba(255,255,255,.12); color: var(--weiss); }

/* Mobile nav */
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--blau);
    flex-direction: column;
    padding: 10px 16px 16px;
    gap: 2px;
    box-shadow: 0 6px 24px rgba(0,0,0,.25);
    border-top: 1px solid rgba(255,255,255,.1);
  }
  .nav-links.offen { display: flex; }
  .nav-links a { padding: 11px 12px; font-size: .92rem; border-radius: 6px; }
}

/* ── 4. Hero (Startseite) – Leitidee „Posthalterei 1820" ──────
   Gedrenchtes Tinten-Blau, asymmetrische typografische Komposition,
   Posthorn als off-bleed Wasserzeichen, Poststempel-Siegel als
   charakterstiftendes Detail. Kein zentrierter Verlaufs-Hero. */
.hero {
  position: relative;
  overflow: hidden;
  color: var(--weiss);
  background:
    radial-gradient(120% 90% at 85% 0%, var(--blau) 0%, var(--blau-tief) 70%);
  padding: var(--space-6) 20px var(--space-5);
  isolation: isolate;
}
/* Feines „graviertes" Linienraster – kaum sichtbar, gibt Papier-Tiefe */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 1px, transparent 1px 64px);
  mask-image: linear-gradient(90deg, transparent, #000 40%);
}
.hero__grid {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
}
.hero__content { max-width: 32ch; }

/* Posthalterei-Linie + Ortsmarke (statt generischem Pillen-Badge) */
.hero__kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: var(--space-2);
  color: var(--gelb);
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.hero__kicker::before {
  content: '';
  width: 38px;
  height: 2px;
  background: var(--gelb);
  flex-shrink: 0;
}
.hero__title {
  font-weight: 900;
  font-size: var(--text-display);
  line-height: .98;
  letter-spacing: -.025em;
  text-wrap: balance;
  overflow-wrap: break-word;
  hyphens: auto;
  margin: 0;
}
.hero__title span { color: var(--gelb); }
.hero__lead {
  margin: var(--space-3) 0 var(--space-4);
  font-size: var(--text-lg);
  line-height: 1.6;
  color: rgba(255,255,255,.82);
  max-width: 46ch;
  text-wrap: pretty;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Echtes Wappen-Emblem als Hero-Marke: angeschrägt und rechts angeschnitten
   (wie die erste Version, nur sichtbar statt invertiert). Liegt hinter dem
   Text (z-index 0), der Text bleibt links frei. */
.hero__seal {
  position: absolute;
  z-index: 0;
  right: -50px;
  top: 50%;
  width: clamp(190px, 52vw, 300px);
  transform: translateY(-50%) rotate(-8deg);
  filter: drop-shadow(0 12px 30px rgba(0,0,0,.4));
  pointer-events: none;
  /* taucht rechts auf, löst sich nach links auf → Text bleibt lesbar */
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 44%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 44%);
}
.hero__emblem { display: block; width: 100%; height: auto; aspect-ratio: 1088 / 1129; }

@media (min-width: 860px) {
  .hero { padding: var(--space-7) 40px; }
  .hero__content { max-width: 38rem; }
  .hero__seal { right: -36px; width: clamp(340px, 34vw, 440px); }
}

/* ── 4b. Tagesstempel (wiederkehrendes Postmotiv) ────────────
   Brücken-Poststempel: Doppelring, Ort/Verein in den Bögen,
   Datums-Brücke (Tag·Monat / Jahr) in der Mitte. Gold auf Blau,
   Blau auf Hell. Skaliert über die SVG-Breite (currentColor). */
.poststempel { color: var(--gelb); display: block; }
.poststempel--blau { color: var(--blau); }
.poststempel .ps-arc {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 10.5px;
  letter-spacing: 1.3px;
  fill: currentColor;
}
.poststempel .ps-tag {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 2px;
  fill: currentColor;
}
.poststempel .ps-jahr {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 24px;
  letter-spacing: .5px;
  fill: currentColor;
}

/* Poststempel als angeschnittene Eckmarke einer Sektion (oben rechts) */
.section--stamped { position: relative; overflow: hidden; }
.section--stamped > .container { position: relative; z-index: 1; }
.section__stamp {
  position: absolute;
  top: -36px;
  right: -30px;
  z-index: 0;
  width: clamp(112px, 16vw, 184px);
  height: auto;
  color: var(--gelb);
  opacity: .9;
  transform: rotate(-7deg);
  pointer-events: none;
}
@media (max-width: 600px) {
  .section__stamp { width: 104px; top: -30px; right: -26px; opacity: .8; }
}

/* ── 5. Seiten-Hero (kompakt, für Unterseiten) ──────────────────
   Gleiche Leitidee wie der Startseiten-Hero, nur kompakt: gedrenchtes
   Tinten-Blau, linksbündig, Franklin-Headline, Gold-Posthalterei-Linie.
   Reine CSS-Lösung – Markup der Unterseiten bleibt unverändert. */
.page-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: var(--weiss);
  background: radial-gradient(120% 130% at 92% 0%, var(--blau) 0%, var(--blau-tief) 78%);
  padding: var(--space-5) 20px var(--space-4);
  /* feste Mindesthöhe → alle Unterseiten-Heroes gleich hoch */
  display: flex;
  align-items: center;
  min-height: 220px;
}
@media (min-width: 700px) { .page-hero { min-height: 300px; } }
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    repeating-linear-gradient(90deg, rgba(255,255,255,.03) 0 1px, transparent 1px 64px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 45%);
          mask-image: linear-gradient(90deg, transparent, #000 45%);
}
/* Emblem angeschrägt + rechts angeschnitten – wie im Haupt-Hero (CSS-only) */
.page-hero::after {
  content: '';
  position: absolute;
  z-index: -1;
  right: -38px;
  top: 50%;
  width: clamp(150px, 32vw, 280px);
  aspect-ratio: 1;
  transform: translateY(-50%) rotate(-8deg);
  background: url("/assets/img/logo/logo-hero-bg.webp") no-repeat center / contain;
  filter: drop-shadow(0 10px 24px rgba(0,0,0,.4));
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 46%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 46%);
  pointer-events: none;
}
.page-hero-inner { position: relative; z-index: 1; width: 100%; min-width: 0; max-width: 1100px; margin: 0 auto; }
/* Gold-Posthalterei-Linie über dem Titel (Markendetail, kein Markup nötig) */
.page-hero-inner::before {
  content: '';
  display: block;
  width: 52px;
  height: 3px;
  margin-bottom: 18px;
  background: var(--gelb);
  border-radius: 2px;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--text-3xl);
  line-height: 1.05;
  letter-spacing: -.02em;
  text-wrap: balance;
  /* lange dt. Komposita (Datenschutzerklärung, Kinderprinzenpaar): Floor der
     --text-3xl-Skala hält sie auch @320px in der Zeile; Trennung als Reserve */
  hyphens: auto;
  overflow-wrap: break-word;
}
.page-hero p {
  color: rgba(255,255,255,.8);
  margin-top: 14px;
  font-size: var(--text-lg);
  max-width: 56ch;
}

/* ── 6. Layout / Sektionen ──────────────────────────────────── */
.section { padding: 56px 20px; }
.section--grau { background: var(--grau); }
.section--blau { background: var(--blau); color: var(--weiss); }

.container { max-width: 1100px; margin: 0 auto; }
.container--schmal { max-width: 760px; margin: 0 auto; }

.section-head { margin-bottom: var(--space-4); }
.section-head h2 {
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--blau);
  margin-bottom: 10px;
  line-height: 1.1;
  text-wrap: balance;
}
/* Gold-Posthalterei-Linie unter jeder Sektions-Überschrift (Markendetail) */
.section-head h2::after {
  content: '';
  display: block;
  width: 52px;
  height: 3px;
  margin-top: 14px;
  background: var(--gelb);
  border-radius: 2px;
}
.section-head.text-center h2::after { margin-left: auto; margin-right: auto; }
.section--blau .section-head h2 { color: var(--weiss); }
.section--blau .section-head h2::after { background: var(--gelb); }
.section-head p { color: var(--muted); font-size: var(--text-lg); max-width: 56ch; }
.section-head.text-center p { margin-left: auto; margin-right: auto; }
.section--blau .section-head p { color: rgba(255,255,255,.78); }

/* Kopf mit Aktion rechts (asymmetrisch): Überschrift links, Link rechts */
.section-head--row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}
.section-head--row .section-head__link {
  color: var(--blau);
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid var(--gelb);
  padding-bottom: 2px;
}
.section-head--row .section-head__link:hover { color: var(--gold-text); }

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 32px 0;
}

/* ── 7. Fließtext / Prosa ───────────────────────────────────── */
.prose { max-width: 720px; margin: 0 auto; }
.prose h2 {
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--blau);
  margin: var(--space-4) 0 12px;
  line-height: 1.15;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
  font-size: var(--text-lg);
  font-weight: 800;
  color: var(--blau);
  margin: var(--space-3) 0 8px;
}
.prose p { margin-bottom: 16px; color: var(--text); }
.prose p:last-child { margin-bottom: 0; }
.prose ul, .prose ol { margin: 0 0 16px 22px; }
.prose li { margin-bottom: 6px; }
.prose strong { color: var(--text); }
.prose a { color: var(--blau); text-decoration: underline; }
.prose a:hover { color: var(--blau-m); }
.prose .lead {
  font-size: var(--text-lg);
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 28px;
}
/* Pull-Quote mit großem Gold-Anführungszeichen statt Seitenstreifen */
.prose blockquote {
  margin: 28px 0;
  padding: 0;
  color: var(--blau);
  font-style: italic;
  font-weight: 500;
  font-size: var(--text-lg);
  line-height: 1.6;
}
.prose blockquote::before {
  content: '„';
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2.8rem;
  color: var(--gelb);
  line-height: 0;
  margin-right: 8px;
  vertical-align: -0.38em;
}

/* ── 8. Event-Karten (Startseite + Veranstaltungsseite) ─────── */
.events-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 580px) { .events-grid { gap: 20px; } }
@media (min-width: 880px) { .events-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Schmale Smartphones: zwei kompakte Karten nebeneinander */
@media (max-width: 579px) {
  .event-card-body { padding: 12px 13px; gap: 7px; }
  .event-date-badge { width: 54px; height: 54px; }
  .event-date-badge .day   { font-size: 1.2rem; }
  .event-date-badge .month { font-size: .56rem; margin-top: 2px; }
  .event-card h3 { font-size: .92rem; line-height: 1.25; }
  .event-card .subtitle { font-size: .8rem; }
  .event-card .description { display: none; }
  .event-meta { gap: 5px; }
  .event-meta span { font-size: .72rem; padding: 2px 6px; }
  .event-ticket { font-size: .78rem; padding: 7px 11px; }
}

.event-card {
  background: var(--weiss);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow .15s, transform .15s;
}
.event-card:hover { box-shadow: 0 8px 28px rgba(6,28,111,.14); transform: translateY(-2px); }

.event-card-img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
  background: var(--grau);
}
.event-card-body {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

/* Datums-Poststempel: runder Stempel mit Gold-Ring (Monat ohne Jahr,
   volles Datum steht in der Meta-Zeile) */
.event-date-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: var(--blau);
  color: var(--weiss);
  border: 2px solid rgba(231,171,23,.55);
  line-height: 1;
  text-align: center;
  flex-shrink: 0;
}
.event-date-badge .day   { font-family: var(--font-display); font-size: 1.55rem; font-weight: 900; }
.event-date-badge .month { font-size: .62rem; text-transform: uppercase; letter-spacing: .08em; color: var(--gelb); margin-top: 3px; }

.event-card h3 { font-size: var(--text-lg); font-weight: 800; color: var(--blau); margin-top: 4px; line-height: 1.2; }
.event-card .subtitle { color: var(--muted); font-size: .87rem; }
.event-card .description { color: var(--text); font-size: .87rem; line-height: 1.5; }

.event-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.event-meta span {
  font-size: .78rem;
  background: var(--grau);
  padding: 3px 8px;
  border-radius: 4px;
  color: var(--muted);
}

/* Adress-Tooltip auf Location-Span */
.event-meta span[data-address] {
  position: relative;
  cursor: default;
}
.event-meta span[data-address]::after {
  content: attr(data-address);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--text);
  color: var(--weiss);
  font-size: .74rem;
  padding: 5px 10px;
  border-radius: 5px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity .18s;
  z-index: 10;
}
.event-meta span[data-address]:hover::after { opacity: 1; }

.event-ticket {
  display: inline-block;
  margin-top: 4px;
  background: var(--gelb);
  color: var(--blau);
  font-weight: 700;
  font-size: .82rem;
  padding: 8px 14px;
  border-radius: 6px;
  text-decoration: none;
  width: fit-content;
  transition: filter .15s;
}
.event-ticket:hover { background: var(--gold-tief); }

.events-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--muted);
  padding: var(--space-5) 24px;
  background: var(--grau);
  border: 1px dashed var(--linie);
  border-radius: var(--radius);
  font-size: var(--text-base);
  line-height: 1.7;
}

.events-past-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 1.5px solid var(--border);
  color: var(--muted);
  font-size: .88rem;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 8px;
  cursor: pointer;
  transition: border-color .15s, color .15s;
  font-family: inherit;
}
.events-past-toggle:hover { border-color: var(--blau); color: var(--blau); }

/* ── 10. Vorstand-Karten ─────────────────────────────────────── */
.board-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 500px) { .board-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 860px) { .board-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.board-card {
  background: var(--weiss);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  box-shadow: var(--shadow);
}
.board-card-img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--grau);
  flex-shrink: 0;
  border: 2px solid var(--border);
}
.board-card-img.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--muted);
}
.board-card-info h3 { font-size: .95rem; font-weight: 700; color: var(--blau); margin-bottom: 2px; }
.board-card-info .role { font-size: .82rem; color: var(--muted); margin-bottom: 8px; }
.board-card-info a {
  display: block;
  font-size: .8rem;
  color: var(--muted);
  text-decoration: none;
  word-break: break-all;
}
.board-card-info a:hover { color: var(--blau); }

.board-section-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--blau);
  border-bottom: 2px solid var(--gelb);
  padding-bottom: 8px;
  margin: 32px 0 16px;
  display: inline-block;
}

/* ── 11. Beitrags-Tabelle ───────────────────────────────────── */
.price-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.price-table th {
  background: var(--blau);
  color: var(--weiss);
  padding: 13px 18px;
  text-align: left;
  font-size: .88rem;
  font-weight: 700;
}
.price-table td {
  padding: 13px 18px;
  font-size: .92rem;
  border-bottom: 1px solid var(--border);
  background: var(--weiss);
}
.price-table tr:last-child td { border-bottom: none; }
.price-table tr:nth-child(even) td { background: var(--grau); }
.price-table td:last-child { font-weight: 700; color: var(--blau); white-space: nowrap; }

/* ── 12. CTAs / Buttons ─────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: .92rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: filter .15s, transform .1s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-gelb { background: var(--gelb); color: var(--blau); }
.btn-gelb:hover { background: var(--gold-tief); }
.btn-blau { background: var(--blau); color: var(--weiss); }
.btn-blau:hover { background: var(--blau-tief); }
.btn-ghost { background: transparent; color: var(--blau); border: 2px solid var(--blau); }
.btn-ghost:hover { background: var(--blau); color: var(--weiss); }
/* Heller Ghost-Button auf dunklen (blauen) Flächen, z. B. Hero */
.btn-licht {
  background: transparent;
  color: var(--weiss);
  border: 1.5px solid rgba(255,255,255,.55);
}
.btn-licht:hover { background: rgba(255,255,255,.12); border-color: var(--weiss); }

.cta-box {
  background: var(--grau);
  border-radius: var(--radius);
  padding: 32px 28px;
  text-align: center;
}
.cta-box h3 { font-size: 1.15rem; font-weight: 800; color: var(--blau); margin-bottom: 10px; }
.cta-box p  { color: var(--muted); margin-bottom: 20px; font-size: .92rem; }

/* ── 14. Galerie-Postkarte ──────────────────────────────────────
   Die Galerie als „Postkarte": Nachrichten-Teil links, Marke (Tages-
   stempel) + Adresszeilen rechts – verbindet die externe Galerie mit
   der Leitidee und setzt das Poststempel-Motiv ein. */
.postkarte {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--papier);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  box-shadow: var(--shadow);
  transition: transform .15s, box-shadow .15s;
}
.postkarte:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(6,28,111,.16); }
@media (min-width: 720px) { .postkarte { grid-template-columns: 1.5fr 1fr; } }
.postkarte__msg { padding: 32px 32px 34px; }
.postkarte__kicker {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .76rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-bottom: 10px;
}
.postkarte__msg h2 { font-family: var(--font-display); font-weight: 800; font-size: var(--text-xl); color: var(--blau); margin-bottom: 10px; }
.postkarte__msg p  { color: var(--text); font-size: .95rem; line-height: 1.6; max-width: 42ch; }
.postkarte__link {
  display: inline-block;
  margin-top: 18px;
  color: var(--blau);
  font-weight: 700;
  font-size: .95rem;
  border-bottom: 2px solid var(--gelb);
  padding-bottom: 2px;
}
.postkarte:hover .postkarte__link { color: var(--gold-text); }
.postkarte__stamp {
  padding: 28px 32px;
  border-top: 1px dashed var(--linie);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 20px;
}
@media (min-width: 720px) {
  .postkarte__stamp { border-top: none; border-left: 1px dashed var(--linie); }
}
.postkarte__stamp .poststempel { width: 104px; height: 104px; transform: rotate(-5deg); }
.postkarte__adresse { width: 100%; }
.postkarte__adresse span { display: block; height: 1px; background: var(--border); margin: 16px 0; }
.postkarte__adresse span:first-child { width: 60%; }

/* ── 15. Kontakt-Karten ─────────────────────────────────────── */
.kontakt-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .kontakt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.kontakt-card {
  background: var(--weiss);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.kontakt-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--blau);
  margin-bottom: 14px;
}
.kontakt-card h3::after {
  content: '';
  display: block;
  width: 34px;
  height: 2px;
  margin-top: 8px;
  background: var(--gelb);
}
.kontakt-card p  { font-size: .95rem; line-height: 1.7; color: var(--text); }
.kontakt-card a  { color: var(--blau); font-weight: 600; text-decoration: none; word-break: break-all; }
.kontakt-card a:hover { text-decoration: underline; }

/* ── 16. Lied / Verse-Block ─────────────────────────────────── */
/* Liedblatt: vollumrandete Karte (kein Seitenstreifen), Gold-Linie unter dem Titel */
.lied-block {
  background: var(--grau);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 30px;
  margin: 28px 0;
}
.lied-block h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--blau);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--gelb);
  display: inline-block;
}
.lied-block p  { font-size: .92rem; line-height: 1.8; color: var(--text); margin-bottom: 14px; }
.lied-block p:last-child { margin-bottom: 0; }
.lied-block strong { color: var(--blau); }

/* ── Uniformen-Marken: Sammlung der Länderpost-Uniformen (Signature) ──
   Jede Uniform als blaue „Briefmarke" mit Jahr (Gold) + Länderpost-Name.
   Eine bewusste Sammlung – wie ein Bogen historischer Postmarken. */
.uniformen {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
  /* feste Spaltenzahl → alle Marken exakt gleich breit */
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 560px) { .uniformen { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 880px) { .uniformen { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.uniform {
  background: var(--blau);
  color: var(--weiss);
  border: 1.5px solid rgba(231,171,23,.4);
  border-radius: 8px;
  padding: 16px;
  min-height: 108px;                 /* alle Marken exakt gleich hoch */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}
.uniform__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  line-height: 1.2;
  color: var(--weiss);
}
.uniform__jahr {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gelb);
}

/* ── 17. Chronik-Liste ──────────────────────────────────────── */
/* Chronik als vertikale Posthalterei-Timeline mit Gold-Stationen */
.chronik { list-style: none; padding: 0; margin: 0; position: relative; }
.chronik::before {
  content: '';
  position: absolute;
  left: 6px; top: 8px; bottom: 8px;
  width: 2px;
  background: var(--linie);
}
.chronik li {
  position: relative;
  padding: 0 0 var(--space-3) 30px;
}
.chronik li:last-child { padding-bottom: 0; }
.chronik li::before {
  content: '';
  position: absolute;
  left: 0; top: 4px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--gelb);
  border: 3px solid var(--weiss);
  box-sizing: border-box;
}
.chronik .jahr {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--blau);
  line-height: 1;
}
.chronik .ereignis {
  display: block;
  font-size: .95rem;
  color: var(--text);
  line-height: 1.55;
  margin-top: 4px;
}

/* ── Kinderprinzenpaar-Chronik (Flexbox) ───────────────────────────────
   Jede Zeile ist ein eigener flex-Container mit identischer Spaltenbreite –
   Header und Daten fluchten dadurch zwingend. */
.kpp-chronik {
  margin-top: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: .9rem;
}
.kpp-row {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid var(--border);
}
.kpp-row:last-child { border-bottom: none; }
.kpp-row > span {
  padding: 9px 14px;
  display: flex;
  align-items: center;
  line-height: 1.5;
}
.kpp-row > span:first-child {
  flex: 0 0 96px;
  font-size: .83rem;
  font-weight: 600;
  color: var(--blau);
  border-right: 1px solid var(--border);
  justify-content: center;
  white-space: nowrap;
}
.kpp-row > span:last-child { flex: 1; }
.kpp-row--head { background: var(--blau); }
.kpp-row--head > span {
  color: #fff;
  font-size: .73rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  justify-content: center;
}
.kpp-row--head > span:first-child { border-right-color: rgba(255,255,255,.25); }
.kpp-row:not(.kpp-row--head):nth-child(even) { background: rgba(6,28,111,.03); }
@media (max-width: 560px) {
  .kpp-chronik { border: none; border-radius: 0; }
  .kpp-row--head { display: none; }
  .kpp-row { display: block; padding: 10px 0; border-bottom: 1px solid var(--border); }
  .kpp-row:last-child { border-bottom: none; }
  .kpp-row > span { display: block; padding: 0; }
  .kpp-row > span:first-child {
    flex: none; border: none; white-space: normal;
    color: var(--blau); font-weight: 700; margin-bottom: 3px;
    justify-content: flex-start;
  }
  .kpp-row > span:last-child { flex: none; padding-left: 12px; font-size: .88rem; }
}

/* ── 18. DSGVO-Hinweis-Box ──────────────────────────────────── */
.dsgvo-box {
  background: #FFF8E1;
  border: 1px solid #F9D87B;
  border-radius: var(--radius);
  padding: 20px 24px;
  font-size: .88rem;
  color: #5C4B00;
  line-height: 1.65;
}
.dsgvo-box strong { color: #3D3000; }

/* ── 19. Skeleton-Loader ────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, #eee 25%, #f5f5f5 50%, #eee 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 8px;
  height: 160px;
}
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── 20. Footer ─────────────────────────────────────────────── */
footer {
  background: var(--blau);
  color: rgba(255,255,255,.7);
  text-align: center;
  padding: 36px 20px;
  font-size: .85rem;
}
.footer-links { margin-bottom: 14px; }
.footer-links a {
  color: rgba(255,255,255,.75);
  text-decoration: none;
  margin: 0 10px;
  font-size: .84rem;
  transition: color .15s;
}
.footer-links a:hover { color: var(--gelb); }
.footer-copy {
  font-size: .78rem;
  color: rgba(255,255,255,.65);  /* WCAG AA auf Blau: ~7:1 (vorher .4 ~3,4:1) */
  line-height: 1.6;
}

/* ── 21. Utilities ──────────────────────────────────────────── */
.text-center  { text-align: center; }
.text-muted   { color: var(--muted); }
.mt-1  { margin-top:  8px; }
.mt-2  { margin-top: 16px; }
.mt-3  { margin-top: 24px; }
.mb-2  { margin-bottom: 16px; }
.mb-3  { margin-bottom: 24px; }

/* ── 22. Mobile-Optimierungen ───────────────────────────────── */

/* Sehr kleine Bildschirme: Brand-Subzeile ausblenden */
@media (max-width: 380px) {
  .nav-brand-sub { display: none; }
  .nav-logo      { height: 34px; }
}

/* Abstände auf kleinen Bildschirmen reduzieren */
@media (max-width: 580px) {
  .hero        { padding: 56px 16px 64px; }
  .page-hero   { padding: 36px 16px 40px; }
  .section     { padding: 40px 16px; }
  .section-head { margin-bottom: 24px; }
}

/* Event-Ticket-Button: volle Breite für leichteres Tippen */
@media (max-width: 560px) {
  .event-ticket {
    display: block;
    text-align: center;
    padding: 11px 16px;
  }
  .events-past-toggle {
    width: 100%;
    justify-content: center;
  }
}

/* Preis-Tabelle: Padding reduzieren, horizontaler Scroll bei Bedarf */
@media (max-width: 480px) {
  .price-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .price-table th,
  .price-table td { padding: 10px 12px; font-size: .88rem; }
}

/* Beitrags-Tabelle: Schriften in der Admin-Vorschau */
@media (max-width: 480px) {
  .cta-box { padding: 24px 16px; }
  .postkarte__msg { padding: 26px 22px 28px; }
  .postkarte__stamp { padding: 22px 22px; }
}

/* CTA-Button volle Breite wenn er direkt in einer Sektion steht */
@media (max-width: 480px) {
  .cta-box .btn {
    display: flex;
    width: 100%;
    justify-content: center;
  }
}

/* DSGVO-Box: etwas weniger Padding */
@media (max-width: 480px) {
  .dsgvo-box { padding: 16px 18px; }
}

/* Footer-Links besser lesbar beim Umbruch */
@media (max-width: 520px) {
  .footer-links a { margin: 3px 8px; }
}

/* ── 22b. Meilensteine: Posthalterei-Route mit Jahres-Stationen ───
   Ersetzt die generische Zahlen-Kachel-Schablone. Vertikale Route auf
   Mobil, horizontale auf Desktop – eine durchgehende Gold-Linie mit
   Stations-Punkten (die „Poststationen" der Vereinsgeschichte). */
.route { list-style: none; padding: 0; margin: 0; position: relative; }
.route::before {
  content: '';
  position: absolute;
  left: 7px; top: 10px; bottom: 10px;
  width: 2px;
  background: rgba(231,171,23,.4);
}
.route__stop { position: relative; padding: 0 0 var(--space-3) 32px; }
.route__stop:last-child { padding-bottom: 0; }
.route__stop::before {
  content: '';
  position: absolute;
  left: 0; top: 5px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--gelb);
  border: 3px solid var(--blau);
  box-sizing: border-box;
}
.route__jahr {
  display: block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--text-xl);
  color: var(--gelb);
  line-height: 1;
}
.route__txt {
  display: block;
  color: rgba(255,255,255,.82);
  font-size: .95rem;
  line-height: 1.5;
  margin-top: 6px;
  max-width: 30ch;
}
@media (min-width: 760px) {
  .route { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 24px; }
  .route::before { left: 0; right: 0; top: 7px; bottom: auto; width: auto; height: 2px; }
  .route__stop { padding: 26px 14px 0 0; }
  .route__stop::before { top: 0; left: 0; }
  .route__txt { margin-top: 8px; }
}

/* ── 22c. „Über die Postalia": asymmetrischer Editorial-Block ─────
   Statt drei gleichförmiger Emoji-Karten: Intro links, Gruppen als
   typografische Liste rechts. */
.about-split { display: grid; gap: var(--space-4); }
@media (min-width: 820px) {
  .about-split {
    grid-template-columns: 0.85fr 1.15fr;
    gap: var(--space-6);
    align-items: start;
  }
}
.about-intro__lead {
  font-size: var(--text-lg);
  color: var(--text);
  line-height: 1.6;
  margin-bottom: var(--space-3);
}
.gruppen { list-style: none; padding: 0; margin: 0; }
.gruppen__item { padding: var(--space-3) 0; border-top: 1px solid var(--border); }
.gruppen__item:first-child { border-top: none; padding-top: 0; }
.gruppen__item h3 {
  font-size: var(--text-lg);
  color: var(--blau);
  font-weight: 800;
  margin-bottom: 6px;
}
.gruppen__item p { color: var(--muted); font-size: .95rem; line-height: 1.6; max-width: 62ch; }
.gruppen__link {
  display: inline-block;
  margin-top: 10px;
  color: var(--blau);
  font-weight: 700;
  font-size: .88rem;
  text-decoration: none;
  border-bottom: 2px solid var(--gelb);
  padding-bottom: 1px;
}
.gruppen__link:hover { color: var(--gold-text); }

/* Zwei-Spalten-Variante (z. B. „Unsere Gruppen" auf Über-uns) */
@media (min-width: 680px) {
  .gruppen--grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: var(--space-5);
  }
  /* obere Reihe (beide Spalten) ohne Trennlinie */
  .gruppen--grid .gruppen__item:nth-child(1),
  .gruppen--grid .gruppen__item:nth-child(2) { border-top: none; padding-top: 0; }
}

/* ── 23. Text-Umbruch: ausgewogene Überschriften, weniger Hurenkinder */
.hero h1,
.section-head h2, .prose h2, .prose h3,
.cta-box h3, .postkarte__msg h2 { text-wrap: balance; }
.hero p, .page-hero p,
.prose p, .prose .lead { text-wrap: pretty; }

/* ── 24. Reduzierte Bewegung (prefers-reduced-motion) ───────────
   Pflicht-Alternative: Animationen/Transitions neutralisieren,
   sanftes Scrollen abschalten, Shimmer einfrieren. Inhalte bleiben
   sichtbar – nichts ist hinter einer Animation versteckt. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  /* Karten-/Button-Hover nicht mehr „anheben" */
  .event-card:hover,
  .btn:hover,
  .hero-cta:hover,
  .event-ticket:hover { transform: none; }
  /* Skeleton: ruhige Fläche statt laufendem Shimmer */
  .skeleton { background: var(--grau); }
}

/* ── 25. Dezente Scroll-Reveals (Progressive Enhancement) ───────
   Greift NUR, wenn animations.js die Klasse .anim auf <html> setzt
   (also JS aktiv UND keine reduzierte Bewegung). Ohne JS / mit
   reduced-motion sind alle Inhalte ganz normal sichtbar. */
html.anim .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .55s ease-out, transform .55s ease-out;
  will-change: opacity, transform;
}
html.anim .reveal.is-revealed {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  html.anim .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* Hero-Emblem: nur faden + zart skalieren (das Bild im Seal hat keine eigene
   Layout-Transform → die Positionierung des .hero__seal bleibt unangetastet) */
html.anim .hero__emblem.reveal { transform: scale(.92); }
html.anim .hero__emblem.reveal.is-revealed { transform: none; }

/* Galerie-Poststempel: wird NACH der Postkarte aufgestempelt (von oben "gepresst"),
   behält dabei die Ruhe-Rotation rotate(-5deg) bei. */
html.anim .postkarte .poststempel { opacity: 0; }
html.anim .postkarte .poststempel.stamp-go {
  animation: stamp-on .42s cubic-bezier(.45, 0, .25, 1) .55s forwards;
}
@keyframes stamp-on {
  0%   { opacity: 0; transform: rotate(-5deg) scale(1.9); }
  55%  { opacity: 1; }
  100% { opacity: 1; transform: rotate(-5deg) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  html.anim .postkarte .poststempel { opacity: 1 !important; animation: none !important; }
}

/* ══════════════════════════════════════════════════════════════
   26. Inhalts-Bausteine „Kurz zuerst – mehr bei Interesse"
   Prinzip: Jede Seite zeigt zuerst das Wichtigste kompakt (Lead,
   Steckbrief, Bild). Ausführliche Texte und lange Listen stehen in
   aufklappbaren <details>-Blöcken (.mehr) – nativ, ohne JS, CSP-
   konform und per Tastatur/Screenreader bedienbar.
   ══════════════════════════════════════════════════════════════ */

/* ── 26a. Weiterlesen-Block (<details class="mehr">) ── */
.mehr {
  margin-top: var(--space-3);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.mehr + .mehr { margin-top: 0; border-top: none; }
.mehr > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;                     /* großes Touch-Ziel (≥ 44 px) */
  padding: 12px 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  line-height: 1.3;
  color: var(--blau);
}
.mehr > summary::-webkit-details-marker { display: none; }
/* Plus/Minus im Gold-Ring – Zustand auch ohne Farbe erkennbar (Form) */
.mehr > summary::after {
  content: '+';
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid var(--gelb);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
  color: var(--blau);
  transition: background .15s;
}
.mehr[open] > summary::after { content: '–'; background: var(--gelb); }
.mehr > summary:hover::after { background: rgba(231,171,23,.25); }
.mehr[open] > summary:hover::after { background: var(--gold-tief); }
.mehr__meta {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--text-sm);
  color: var(--muted);
  margin-top: 2px;
}
.mehr__inhalt { padding: 4px 0 var(--space-4); }
.mehr__inhalt > :first-child { margin-top: 0; }
/* Auf Hellgrau-Sektionen die Trennlinien etwas kräftiger */
.section--grau .mehr { border-color: #dfe3ee; }

/* ── 26b. Steckbrief: Eckdaten auf einen Blick (Frachtbrief-Optik) ──
   Flex statt Grid: Elemente füllen jede Zeile vollständig aus, egal
   ob 3 oder 4 Angaben – keine leeren Zellen auf schmalen Screens. */
.steckbrief {
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
  margin: 0 0 var(--space-4);
  padding: 0;
  background: var(--linie);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  overflow: hidden;
}
.steckbrief > div { flex: 1 1 140px; background: var(--papier); padding: 14px 16px; }
.steckbrief dt {
  font-family: var(--font-display);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-bottom: 4px;
}
.steckbrief dd {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1.25;
  color: var(--blau);
}

/* ── 26c. Bild + Text (asymmetrisch, mobil gestapelt) ── */
.bild-text { display: grid; gap: var(--space-3); align-items: start; }
@media (min-width: 760px) {
  .bild-text { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: var(--space-5); align-items: center; }
  .bild-text--rechts > .bild { order: 2; }
}
.bild { margin: 0; }
.bild img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--grau);
}
.bild figcaption {
  margin-top: 8px;
  font-size: var(--text-xs);
  line-height: 1.45;
  color: var(--muted);
}
/* Kleinere Bilder innerhalb von Prosa/Weiterlesen (z. B. Dokumente) */
.prose .bild { margin: var(--space-3) 0; }
.bild--schmal { max-width: 420px; }

/* ── 26d. Aufruf-Karte („Gesucht!"): Plakat + Text auf Post-Blau ── */
.aufruf {
  display: grid;
  gap: var(--space-3);
  align-items: center;
  background: var(--blau);
  color: var(--weiss);
  border-radius: var(--radius);
  padding: 24px 22px 28px;
  box-shadow: var(--shadow);
}
.aufruf__plakat {
  justify-self: center;
  width: min(100%, 240px);
  height: auto;
  border-radius: 6px;
  transform: rotate(-2deg);
  box-shadow: 0 12px 30px rgba(0,0,0,.35);
}
.aufruf__kicker {
  display: block;
  font-family: var(--font-display);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gelb);
  margin-bottom: 8px;
}
.aufruf h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-xl);
  line-height: 1.15;
  color: var(--weiss);
  margin-bottom: 10px;
  text-wrap: balance;
}
.aufruf p { color: rgba(255,255,255,.86); line-height: 1.6; margin-bottom: 18px; }
.aufruf p:last-child { margin-bottom: 0; }
.aufruf a:not(.btn) { color: var(--weiss); font-weight: 700; }
.aufruf :focus-visible { outline-color: var(--gelb); }
@media (min-width: 700px) {
  .aufruf { grid-template-columns: 220px minmax(0, 1fr); gap: var(--space-4); padding: 32px; }
}
/* Zwei Aufrufe nebeneinander (Startseite) */
.aufrufe { display: grid; gap: var(--space-3); }
@media (min-width: 1000px) {
  .aufrufe { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .aufrufe .aufruf { grid-template-columns: 150px minmax(0, 1fr); padding: 28px; }
}

/* ── 26e. Orden-Sammlung: mobil horizontal wischbar, Desktop als Raster ── */
.orden-reihe {
  list-style: none;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 44%;
  gap: 14px;
  margin: 0 -20px;                      /* randlos bis zur Bildschirmkante */
  padding: 4px 20px 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
}
.orden-reihe li {
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--papier);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 10px 16px;
}
.orden-reihe img { width: 100%; height: 170px; object-fit: contain; }
.orden__session {
  margin-top: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: .95rem;
  color: var(--blau);
}
.orden__motiv { font-size: var(--text-xs); line-height: 1.4; color: var(--muted); margin-top: 2px; }
@media (min-width: 560px) { .orden-reihe { grid-auto-columns: 30%; } }
@media (min-width: 900px) {
  .orden-reihe {
    grid-auto-flow: row;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin: 0;
    padding: 0;
    overflow: visible;
  }
}
.orden-hinweis { font-size: var(--text-sm); color: var(--muted); margin-top: 8px; }
@media (min-width: 900px) { .orden-hinweis--wischen { display: none; } }

/* ── 26f. Jubiläums-Band (Startseite) ── */
.jubilaeum { display: grid; gap: var(--space-4); align-items: center; }
@media (min-width: 820px) { .jubilaeum { grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: var(--space-6); } }
.jubilaeum__orden { justify-self: center; width: min(70%, 260px); height: auto; filter: drop-shadow(0 14px 28px rgba(6,28,111,.22)); }
.punkte { list-style: none; margin: var(--space-3) 0; padding: 0; }
.punkte li {
  position: relative;
  padding: 10px 0 10px 28px;
  border-top: 1px solid var(--border);
  line-height: 1.5;
}
.punkte li:first-child { border-top: none; }
/* Posthorn-Gold als Aufzählungs-Siegel (klein, ≤ 10 % Gold) */
.punkte li::before {
  content: '';
  position: absolute;
  left: 0; top: 16px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--gelb);
  border: 3px solid var(--blau);
  box-sizing: border-box;
}
.punkte strong { color: var(--blau); }

/* ── 26g. Mehrspaltige Namenslisten (Ehrennadel u. Ä.) ── */
.namensliste { columns: 2 130px; column-gap: var(--space-4); list-style: none; padding: 0; margin: 0 0 16px; }
.prose .namensliste { margin-left: 0; }
.namensliste li { break-inside: avoid; padding: 4px 0; border-bottom: 1px dotted var(--border); font-size: .95rem; }
.namensliste small { color: var(--muted); }

/* Zusatzzeile in Chronik-Tabellen (Uniform, Pagen, Hinweise) */
.kpp-row small { display: block; font-size: var(--text-xs); color: var(--muted); margin-top: 2px; }
.kpp-row--aktuell { background: #fff7df !important; }
.kpp-row--aktuell > span:first-child { color: var(--gold-text); }
.chronik-fussnote { font-size: .82rem; color: var(--muted); margin-top: 12px; }
/* Namensspalte als Block, damit Zusatzzeilen (<small>) sauber umbrechen */
.kpp-row > span:last-child { display: block; align-self: center; }
/* Freigestellte Objekte (Orden) ohne Karten-Schatten/Hintergrund */
.bild--frei img { box-shadow: none; background: transparent; border-radius: 0; filter: drop-shadow(0 10px 22px rgba(6,28,111,.18)); }
.prose .punkte { margin-left: 0; }
/* Mehrere Buttons nebeneinander, mobil mit Abstand umbrechend */
.knopfreihe { display: flex; flex-wrap: wrap; gap: 12px; }
/* Aufruf-Buttons mobil volle Breite (Touch-Ziel, lange Mailadresse) */
@media (max-width: 480px) {
  .aufruf .btn { display: flex; width: 100%; justify-content: center; overflow-wrap: anywhere; text-align: center; }
}

/* ── 26h. Feinschliff nach Sichtprüfung (mobil 390 px / Desktop 1280 px) ── */
/* Chronik-Kopf mobil wirklich ausblenden (die spätere .kpp-row-Regel im
   Media-Query überschrieb .kpp-row--head mit gleicher Spezifität) */
@media (max-width: 560px) {
  .kpp-row.kpp-row--head { display: none; }
}
/* Weiterlesen-Blöcke bündig mit der Prosa-Spalte (720 px) */
.container--schmal > .mehr { max-width: 720px; margin-left: auto; margin-right: auto; }
/* Hochformat-Plakate mobil nicht bildschirmfüllend */
@media (max-width: 759px) {
  .bild-text .bild--schmal { width: 100%; max-width: 300px; justify-self: center; }
}
/* Startseite: Aufrufe kompakt – kleines Plakat neben dem Text, auch mobil */
.aufrufe .aufruf { grid-template-columns: 92px minmax(0, 1fr); align-items: start; gap: 18px; padding: 22px 18px; }
.aufrufe .aufruf__plakat { width: 100%; }
@media (min-width: 700px) { .aufrufe .aufruf { grid-template-columns: 130px minmax(0, 1fr); padding: 28px; gap: 24px; } }
/* hidden-Attribut (z. B. von session-inhalte.js gesetzt) schlägt Klassen mit display-Wert */
[hidden] { display: none !important; }
/* Aufruf ohne Plakat (im Backend entfernt): Text über volle Breite */
.aufruf > [hidden] + div { grid-column: 1 / -1; }

/* ── 27. Fehlerseiten (404 / 403 / 500) ──────────────────────
   „Unzustellbar"-Motiv: blauer Retourenstempel mit Fehlercode,
   kurzer Text, Wege zurück. Mobile-first, zentriert. */
.fehler {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 20px;
  padding: 48px 16px 64px;
  max-width: 640px;
  margin: 0 auto;
}
.fehler__stempel { width: min(190px, 52vw); transform: rotate(-8deg); opacity: .92; }
.fehler__kicker {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}
.fehler h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2rem, 7vw, 3rem);
  line-height: 1.05;
  color: var(--blau);
  margin: 0;
}
.fehler p { margin: 0; max-width: 34rem; font-size: 1.05rem; line-height: 1.6; }
.fehler .knopfreihe { justify-content: center; margin-top: 8px; }
@media (max-width: 480px) {
  .fehler .knopfreihe { flex-direction: column; width: 100%; }
  .fehler .knopfreihe .btn { justify-content: center; }
}
@media (min-width: 760px) { .fehler { padding: 80px 24px 96px; } }

/* ── 28. Startseiten-Header mit Hintergrundfoto/-galerie (Backend: Header-Bild) ──
   Galerie liegt unter allem (z -3), darüber eine blaue Abdunklung (z -2),
   damit weißer Text auf jedem Motiv lesbar bleibt (Kontrast ≥ 4,5 : 1).
   Mobil steht der Text über der ganzen Breite → gleichmäßige Abdunklung;
   ab 860 px links kräftig (Text), rechts heller (Motiv sichtbar).
   Übergangseffekte: /assets/css/hero-galerie.css */
.hero__galerie {
  position: absolute;
  inset: 0;
  z-index: -3;
  opacity: 0;
  transition: opacity .6s ease;
}
.hero--foto .hero__galerie { opacity: 1; }
.hero--foto::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background: rgba(4, 18, 63, .74);
}
@media (min-width: 860px) {
  .hero--foto::after {
    background: linear-gradient(90deg, rgba(4, 18, 63, .9) 0%, rgba(4, 18, 63, .75) 55%, rgba(6, 28, 111, .35) 100%);
  }
}
@media (prefers-reduced-motion: reduce) { .hero__galerie { transition: none; } }

/* Pause-Knopf für den Bildwechsel (WCAG 2.2.2) – unten rechts, 44 px Trefferfläche */
.hero__pause {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1.5px solid rgba(255, 255, 255, .55);
  border-radius: 50%;
  background: rgba(4, 18, 63, .45);
  color: var(--weiss);
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.hero__pause:hover { background: rgba(4, 18, 63, .75); border-color: var(--weiss); }
.hero__pause:focus-visible { outline: 3px solid var(--gelb); outline-offset: 2px; }
/* Symbol: zwei Balken (läuft) bzw. Dreieck (pausiert) – reines CSS */
.hero__pause-icon { display: block; width: 12px; height: 14px; border-left: 4px solid currentColor; border-right: 4px solid currentColor; }
.hero__pause[aria-pressed="true"] .hero__pause-icon {
  width: 0; height: 0; border-right: 0;
  border-top: 8px solid transparent; border-bottom: 8px solid transparent; border-left: 13px solid currentColor;
  margin-left: 3px;
}
@media (min-width: 860px) { .hero__pause { right: 24px; bottom: 24px; } }

/* Nur für Screenreader sichtbar */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
