/* 80 Jahre FDP Darmstadt – Jubiläumsseite
   Corporate Design 2026: Gelb + Dunkelblau, Cyan als Akzent, Hausschrift Public Sans,
   Gestaltungselement „Balken“ zur Hervorhebung. */

@font-face {
  font-family: "Public Sans";
  src: url("../fonts/public-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Public Sans";
  src: url("../fonts/public-sans-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Font Awesome Free 6.5.2 (Solid), auf die verwendeten Icons reduziert; Dateiname enthält eine Inhalts-Prüfsumme (Schriften werden ein Jahr gecacht) – – Icons CC BY 4.0, Schrift SIL OFL 1.1, fontawesome.com */
@font-face {
  font-family: "Font Awesome 6 Free";
  src: url("../fonts/fa-solid-1f2b5b7c.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: block;
}
.fa-solid { font-family: "Font Awesome 6 Free"; font-weight: 900; font-style: normal; display: inline-block; line-height: 1; -webkit-font-smoothing: antialiased; text-rendering: auto; }
.fa-file-arrow-down::before { content: "\f56d"; }
.fa-file-pdf::before { content: "\f1c1"; }
.fa-arrow-left::before { content: "\f060"; }
.fa-arrow-right::before { content: "\f061"; }
.fa-xmark::before { content: "\f00d"; }
.fa-chevron-left::before { content: "\f053"; }
.fa-chevron-right::before { content: "\f054"; }
.fa-arrow-up-right-from-square::before { content: "\f35d"; }
.fa-moon::before { content: "\f186"; }
.fa-sun::before { content: "\f185"; }

@font-face {
  font-family: "Dancing Script";
  src: url("../fonts/dancing-script-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --yellow: #ffe000;
  --yellow-soft: #fff4a8;
  --yellow-pale: #fffbe0;
  --blue-900: #032d67;
  --blue-700: #0546a0;
  --blue-500: #1f5fbf;
  --cyan: #0076a8; /* Cyan für Text, abgedunkelt für ausreichenden Kontrast */
  --cyan-bright: #00a7e7;
  --paper: #ffffff;
  --paper-old: #f7f0df;
  --ink: #032d67;
  --ink-soft: #3b4f72;
  --ink-muted: #6a7a96;
  --line: #e3e9f2;
  --surface: #ffffff;
  --surface-2: #f4f7fb;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(2, 45, 101, 0.06), 0 8px 24px rgba(2, 45, 101, 0.08);
  --shadow-lg: 0 2px 4px rgba(2, 45, 101, 0.06), 0 24px 48px rgba(2, 45, 101, 0.14);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1180px;
  --header-h: 76px;
  --tl-old: 247, 240, 223; /* Zeitstrahl-Hintergrund: von altem Papier … */
  --tl-new: 255, 255, 255; /* … zu Weiß */
}

*,
*::before,
*::after { box-sizing: border-box; }

html { overflow-x: hidden; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: clamp(16px, 0.25vw + 15px, 18px);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue-700); text-underline-offset: 3px; }
a:hover { color: var(--cyan); }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { line-height: 1.12; margin: 0 0 0.5em; font-weight: 800; letter-spacing: -0.015em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--blue-900); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 12px; color: #fff; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  display: flex; align-items: center;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), transform 0.4s var(--ease);
}
/* In der Titelansicht ausgeblendet, erscheint nach etwas Scrollen (bzw. bei Tastaturfokus) */
.site-header:not(.is-solid):not(:focus-within) { transform: translateY(-100%); opacity: 0; pointer-events: none; }
.site-header { transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), transform 0.45s var(--ease), opacity 0.3s; }
.site-header.is-solid { background: rgba(255, 255, 255, 0.92); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); box-shadow: 0 1px 0 var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; white-space: nowrap; flex: none; text-decoration: none; color: var(--blue-900); font-weight: 800; letter-spacing: -0.01em; }
.brand { gap: 14px; }
.brand img { width: 20px; height: auto; padding: 2px 0; }
.brand__logo--gelb { display: none; }
.brand > span { line-height: 1.2; }
.brand small { display: block; font-weight: 600; font-size: 0.72rem; color: var(--ink-soft); letter-spacing: 0.02em; margin-top: 3px; }
.nav { display: flex; gap: 4px; }
.nav a {
  text-decoration: none; color: var(--blue-900); font-weight: 650; font-size: 0.92rem;
  padding: 8px 12px; border-radius: 999px; transition: background 0.25s, color 0.25s;
}
.nav a:hover { background: rgba(2, 45, 101, 0.06); }
.nav a.is-active { background: var(--blue-900); color: #fff; }
.menu-btn { display: none; background: none; border: 0; padding: 10px; margin-right: -10px; }
.menu-btn span { display: block; width: 24px; height: 2px; background: var(--blue-900); border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.2s; }
.menu-btn span + span { margin-top: 6px; }

@media (max-width: 960px) {
  .menu-btn { display: block; }
  .nav {
    position: fixed; inset: 0; background: var(--yellow); flex-direction: column; justify-content: center; align-items: center; gap: 6px;
    opacity: 0; visibility: hidden; transition: opacity 0.35s var(--ease), visibility 0.35s; z-index: -1;
  }
  .nav a { font-size: 1.5rem; font-weight: 800; padding: 10px 20px; }
  .nav a.is-active { background: transparent; color: var(--blue-900); text-decoration: underline; text-decoration-color: var(--cyan); text-decoration-thickness: 3px; }
  body.menu-open .nav { opacity: 1; visibility: visible; }
  /* backdrop-filter würde das fixierte Menü an den Header binden – im geöffneten Zustand abschalten */
  body.menu-open .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--yellow); box-shadow: none; }
  .nav { background: var(--yellow); }
  body.menu-open { overflow: hidden; }
  body.menu-open .menu-btn span:first-child { transform: translateY(4px) rotate(45deg); }
  body.menu-open .menu-btn span:last-child { transform: translateY(-4px) rotate(-45deg); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 100%, #fff6b0 0%, var(--yellow) 55%, #ffd900 100%);
  isolation: isolate; text-align: center; padding: calc(var(--header-h) + 24px) var(--gutter) 96px;
}
.hero__rays {
  position: absolute; inset: -50%; z-index: -2;
  background: repeating-conic-gradient(from 0deg at 50% 50%, rgba(255, 255, 255, 0.34) 0deg 7deg, transparent 7deg 18deg);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 0%, rgba(0, 0, 0, 0.6) 30%, transparent 62%);
          mask-image: radial-gradient(circle at 50% 50%, #000 0%, rgba(0, 0, 0, 0.6) 30%, transparent 62%);
  animation: spin 160s linear infinite;
}
@keyframes spin { to { transform: rotate(1turn); } }
.hero__emblem {
  position: absolute; z-index: -1; bottom: -2%; right: max(4vw, 16px); width: clamp(90px, 14vw, 190px);
  opacity: 0; transform: translateY(40px); color: #fff;
  animation: rise 1.4s 1.6s var(--ease) forwards;
}
.hero__emblem img { width: 100%; height: auto; opacity: 0.6; filter: brightness(0) invert(1); }
@keyframes rise { to { opacity: 1; transform: none; } }
.hero__count {
  font-weight: 700; letter-spacing: 0.32em; font-size: clamp(0.85rem, 1.6vw, 1.05rem); color: var(--blue-900);
  font-variant-numeric: tabular-nums; margin-bottom: 0.4em; padding-left: 0.32em;
}
.hero__title { margin: 0; display: flex; align-items: flex-end; justify-content: center; gap: 0.08em; line-height: 0.85; }
.hero__80 {
  font-size: clamp(7rem, 28vw, 17rem); font-weight: 900; letter-spacing: -0.05em;
  background: linear-gradient(90deg, var(--blue-900) 0 48%, var(--blue-700) 52%, var(--cyan) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  display: inline-block; transform-origin: 50% 80%;
  animation: pop 1.1s 0.25s var(--ease) both;
}
@keyframes pop { from { opacity: 0; transform: scale(0.82) translateY(16px); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
.hero__jahre { position: relative; display: inline-block; margin-left: -0.08em; margin-bottom: 0.38em; }
.hero__jahre span {
  display: block; font-family: "Dancing Script", cursive; font-weight: 700; color: var(--blue-900);
  font-size: clamp(3rem, 10vw, 6.4rem); line-height: 1; letter-spacing: 0;
  clip-path: inset(0 100% 0 0); animation: write 1.2s 0.9s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}
@keyframes write { to { clip-path: inset(0 -10% 0 0); } }
.hero__swoosh { position: absolute; left: -4%; right: -6%; bottom: -0.32em; width: 110%; height: auto; overflow: visible; }
.hero__swoosh path { stroke: var(--cyan); stroke-width: 7; fill: none; stroke-linecap: round; stroke-dasharray: 320; stroke-dashoffset: 320; animation: draw 0.9s 1.8s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.hero__name {
  font-size: clamp(2rem, 7vw, 4.4rem); font-weight: 900; color: var(--blue-900); letter-spacing: -0.02em; margin: 0.2em 0 0.3em;
  opacity: 0; animation: fadeup 0.9s 1.3s var(--ease) forwards;
}
.hero__sub { font-size: clamp(1rem, 2vw, 1.25rem); color: var(--blue-900); font-weight: 600; max-width: 34ch; margin: 0 auto; opacity: 0; animation: fadeup 0.9s 1.6s var(--ease) forwards; }
@keyframes fadeup { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero__cue {
  position: absolute; left: 0; right: 0; margin-inline: auto; width: max-content; bottom: 26px; text-decoration: none; color: var(--blue-900);
  font-weight: 700; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; display: grid; justify-items: center; gap: 6px;
  opacity: 0; animation: fadeup 0.9s 2.3s var(--ease) forwards;
}
.hero__cue i { width: 26px; height: 40px; border: 2px solid currentColor; border-radius: 14px; position: relative; }
.hero__cue i::after { content: ""; position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: currentColor; animation: wheel 1.8s ease-in-out infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 11vw, 140px) 0; position: relative; }
.section--tint { background: var(--surface-2); }
.section--yellow { background: var(--yellow); }
.section--blue { background: var(--blue-900); color: #fff; }
.kicker {
  display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cyan); margin-bottom: 14px;
}
.kicker::before { content: ""; width: 28px; height: 3px; border-radius: 2px; background: currentColor; }
.section--blue .kicker { color: var(--yellow); }
.section-title { font-size: clamp(2rem, 5vw, 3.6rem); max-width: 18ch; font-weight: 900; }
/* CD-Gestaltungselement „Balken“: Unterstreichung eines Wortes, fährt beim Einblenden aus */
.section-title em, .finale h2 em { font-style: normal; position: relative; display: inline-block; z-index: 0; }
.section-title em::after, .finale h2 em::after {
  content: ""; position: absolute; left: -0.04em; right: -0.04em; bottom: 0.02em; height: 0.24em; z-index: -1;
  background: var(--cyan-bright); transform-origin: 0 50%; transform: scaleX(0); transition: transform 0.9s 0.35s var(--ease);
}
.section-title.is-in em::after, .finale h2.is-in em::after, .no-js .section-title em::after { transform: scaleX(1); }
.section--blue .section-title em::after { background: var(--yellow); }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.25rem); color: var(--ink-soft); max-width: 62ch; }
.section--blue .lead { color: rgba(255, 255, 255, 0.82); }
.section-head { margin-bottom: clamp(36px, 6vw, 64px); }

/* ---------- Reveal-Animationen ---------- */
[data-reveal] { opacity: 0; transform: translate3d(0, 28px, 0); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); will-change: opacity, transform; }
[data-reveal="left"] { transform: translate3d(-36px, 0, 0); }
[data-reveal="right"] { transform: translate3d(36px, 0, 0); }
[data-reveal="zoom"] { transform: scale(0.94); }
main { overflow-x: clip; }
@media (max-width: 640px) {
  [data-reveal="left"], [data-reveal="right"] { transform: translate3d(0, 28px, 0); }
}
[data-reveal].is-in { opacity: 1; transform: none; }
.no-js [data-reveal] { opacity: 1; transform: none; }

/* ---------- Intro & Kennzahlen ---------- */
.intro { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.intro p { color: var(--ink-soft); }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.stat { background: var(--surface); border-radius: var(--radius); padding: 22px 20px; box-shadow: var(--shadow); }
.stat b { display: block; white-space: nowrap; font-size: clamp(1.9rem, 3.6vw, 2.9rem); font-weight: 900; line-height: 1; color: var(--blue-900); font-variant-numeric: tabular-nums; }
.stat span { display: block; margin-top: 8px; font-size: 0.92rem; color: var(--ink-soft); line-height: 1.35; }
.stat:nth-child(1) { background: var(--yellow); }
.stat:nth-child(4) { background: var(--blue-900); }
.stat:nth-child(4) b { color: var(--yellow); }
.stat:nth-child(4) span { color: rgba(255, 255, 255, 0.8); }

/* ---------- Media / Bilder ---------- */
.media { position: relative; overflow: hidden; isolation: isolate; border-radius: var(--radius-sm); background-color: var(--surface-2); }
/* Blur-Fill: unscharfe, vergrößerte Mini-Version des Bildes füllt die Fläche hinter dem eingepassten Bild */
.media::before { content: ""; position: absolute; inset: -14%; z-index: -1; background: var(--lqip, none) center / cover no-repeat; filter: blur(22px) saturate(1.2) brightness(1.02); }
.media img { width: 100%; height: 100%; object-fit: contain; }
.media--cover img { object-fit: cover; }
.media img.is-loaded { opacity: 1; }
.zoomable { cursor: zoom-in; border: 0; padding: 0; display: block; width: 100%; text-align: left; background: none; }
.zoomable .media img { transition: opacity 0.6s var(--ease), transform 0.8s var(--ease); }
.zoomable:hover .media img { transform: scale(1.035); }
figure { margin: 0; }
figcaption { font-size: 0.86rem; color: var(--ink-muted); margin-top: 8px; line-height: 1.4; }

/* ---------- Zeitstrahl ---------- */
.timeline-section { background: var(--tl-bg, var(--paper-old)); transition: background-color 0.2s linear; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.chip {
  border: 1.5px solid rgba(2, 45, 101, 0.18); background: rgba(255, 255, 255, 0.6); border-radius: 999px; padding: 7px 14px; font-size: 0.9rem; font-weight: 650; color: var(--blue-900);
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.chip:hover { border-color: var(--blue-900); }
.chip[aria-pressed="true"] { background: var(--blue-900); border-color: var(--blue-900); color: #fff; }
.timeline-layout { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 48px; }
.timeline-layout > *, .intro > *, .founding > * { min-width: 0; }
.decade-rail { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; height: max-content; }
.decade-rail__now { font-size: 3.4rem; font-weight: 900; line-height: 1; color: var(--blue-900); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.decade-rail__now small { display: block; font-size: 1rem; font-weight: 700; letter-spacing: 0; color: var(--cyan); margin-top: 6px; }
.decade-rail nav { margin-top: 22px; display: grid; gap: 2px; }
.decade-rail nav a { text-decoration: none; color: var(--ink-muted); font-weight: 700; font-size: 0.92rem; padding: 3px 0 3px 14px; border-left: 2px solid rgba(2, 45, 101, 0.12); transition: color 0.2s, border-color 0.2s; }
.decade-rail nav a.is-active { color: var(--blue-900); border-color: var(--cyan); }
.timeline { position: relative; padding-left: 40px; }
.timeline::before, .timeline__fill { content: ""; position: absolute; left: 11px; top: 6px; bottom: 0; width: 3px; border-radius: 2px; background: rgba(2, 45, 101, 0.12); }
.timeline__fill { background: linear-gradient(var(--blue-700), var(--cyan)); transform-origin: 0 0; transform: scaleY(var(--tl, 0)); }
.decade { scroll-margin-top: calc(var(--header-h) + 16px); }
.decade + .decade { margin-top: 32px; }
.decade__label { font-size: clamp(2.6rem, 6vw, 4rem); font-weight: 900; color: rgba(2, 45, 101, 0.1); letter-spacing: -0.04em; margin: 0 0 8px -4px; line-height: 1; }
.tl-item { position: relative; padding: 0 0 34px; }
.tl-item::before {
  content: ""; position: absolute; left: -36px; top: 6px; width: 17px; height: 17px; border-radius: 50%; background: var(--yellow);
  box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px rgba(3, 45, 103, 0.16); transition: box-shadow 0.45s var(--ease), transform 0.5s var(--ease);
}
.tl-item.is-reached::before { box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--blue-900); animation: dot 0.6s var(--ease); }
@keyframes dot { 0% { transform: scale(0); } 70% { transform: scale(1.35); } 100% { transform: scale(1); } }
.tl-card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr); }
.tl-card > *, .event > *, .place > * { min-width: 0; }
.tl-card--media { grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); }
.tl-card__body { padding: 22px 24px 20px; }
.tl-date { font-weight: 900; color: var(--cyan); font-size: 0.95rem; letter-spacing: 0.04em; font-variant-numeric: tabular-nums; }
.tl-card h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); margin: 4px 0 8px; }
.tl-card p { color: var(--ink-soft); margin: 0; font-size: 0.98rem; }
.tl-card .tag { display: inline-block; margin-top: 12px; font-size: 0.74rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue-700); background: var(--yellow-pale); border-radius: 6px; padding: 3px 8px; }
.tl-card .zoomable, .tl-card .media, .tl-card .slides, .tl-card .slides__track, .tl-card .slides__item { height: 100%; min-height: 200px; border-radius: 0; }
.tl-item--major .tl-card { box-shadow: var(--shadow-lg); outline: 3px solid var(--yellow); }
.tl-item--major::before { width: 23px; height: 23px; left: -39px; top: 3px; }
.tl-old .media img { filter: sepia(0.25) saturate(0.85); }

/* ---------- Kreisverband ---------- */
.founding { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.founding .media { aspect-ratio: 4 / 3; box-shadow: var(--shadow-lg); transform: rotate(-1.5deg); }
.founding blockquote { margin: 18px 0 0; padding: 14px 0 14px 20px; border-left: 4px solid var(--yellow); font-size: 1.08rem; color: var(--blue-900); font-weight: 600; }
.subhead { font-size: clamp(1.4rem, 3vw, 2rem); margin: clamp(56px, 9vw, 96px) 0 12px; }
.logos { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(180px, 1fr); gap: 16px; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; padding: 8px 4px 20px; margin: 0 -4px; scrollbar-width: thin; }
.logo-card { scroll-snap-align: start; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; display: grid; grid-template-rows: 130px auto auto; gap: 10px; }
.logo-card .media { background: transparent !important; border-radius: 0; height: 130px; }
.logo-card .media::before { display: none; }
.logo-card .media img { object-fit: contain; }
.logo-card b { font-size: 1.5rem; font-weight: 900; color: var(--blue-900); }
.logo-card span { font-size: 0.88rem; color: var(--ink-soft); line-height: 1.4; }
.places { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.place { background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.place .media { aspect-ratio: 3 / 2 !important; border-radius: 0; }
.place div.place__body { padding: 18px 20px; }
.place h4 { font-size: 1.1rem; margin-bottom: 4px; }
.place p { font-size: 0.95rem; color: var(--ink-soft); margin: 0; }
.place small { display: block; font-weight: 800; color: var(--cyan); margin-bottom: 4px; }
.prose-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px 40px; }
.prose-grid p { color: var(--ink-soft); }

/* ---------- Personen ---------- */
.tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 28px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; border: 0; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); border-radius: 999px; padding: 10px 18px; font-weight: 750; color: var(--blue-900); transition: background 0.25s, color 0.25s, box-shadow 0.25s; }
.tab:hover { box-shadow: inset 0 0 0 1.5px var(--blue-900); }
.tab[aria-selected="true"] { background: var(--blue-900); color: #fff; box-shadow: none; }
.people-note { font-size: 0.92rem; color: var(--ink-muted); margin: -8px 0 20px; }
.gantt { position: relative; }
.gantt__axis { display: grid; grid-template-columns: 240px 1fr; font-size: 0.78rem; color: var(--ink-muted); font-weight: 700; margin-bottom: 6px; }
.gantt__ticks { position: relative; height: 18px; }
.gantt__ticks span { position: absolute; transform: translateX(-50%); }
.person-row { display: grid; grid-template-columns: 240px 1fr; align-items: center; border: 0; background: none; width: 100%; text-align: left; padding: 6px 0; border-top: 1px solid var(--line); }
.person-row:hover .bar { filter: brightness(1.08); }
.person-row:hover .person-name b { color: var(--blue-700); }
.person-name { display: flex; align-items: center; gap: 12px; min-width: 0; }
.avatar { flex: none; width: 44px; height: 44px; border-radius: 50%; overflow: hidden; background: var(--yellow); display: grid; place-items: center; font-weight: 900; font-size: 0.9rem; color: var(--blue-900); }
.avatar img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.15); }
.person-name b { display: block; font-weight: 750; font-size: 0.98rem; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: color 0.2s; }
.person-name small { display: block; color: var(--ink-muted); font-size: 0.82rem; font-variant-numeric: tabular-nums; }
.track { position: relative; height: 26px; background: repeating-linear-gradient(90deg, transparent 0 calc(12.5% - 1px), var(--line) calc(12.5% - 1px) 12.5%); }
.bar { position: absolute; top: 5px; height: 16px; border-radius: 4px; background: var(--blue-500); transform-origin: 0 50%; transform: scaleX(0); transition: transform 1s var(--ease), filter 0.2s; transition-delay: calc(var(--i, 0) * 40ms); min-width: 6px; }
.bar--open { background: linear-gradient(90deg, var(--blue-500), var(--cyan-bright)); }
.gantt.is-in .bar { transform: scaleX(1); }
.person-detail { grid-column: 1 / -1; padding: 6px 0 14px 56px; color: var(--ink-soft); font-size: 0.95rem; display: none; }
.person-row[aria-expanded="true"] + .person-detail { display: block; animation: fadeup 0.4s var(--ease); }
.people-notes { margin-top: 24px; font-size: 0.92rem; color: var(--ink-muted); }
.portraits { display: grid; grid-auto-flow: column; grid-auto-columns: 150px; gap: 14px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x proximity; padding: 4px 4px 18px; margin: 48px -4px 0; scrollbar-width: thin; }
.portrait { scroll-snap-align: start; text-align: center; }
.portrait .media { aspect-ratio: 3 / 4; border-radius: 14px; }
.portrait .media img { filter: grayscale(0.1); }
.portrait b { display: block; font-size: 0.88rem; margin-top: 8px; line-height: 1.25; }
.portrait small { display: block; font-size: 0.78rem; color: var(--ink-muted); line-height: 1.3; }

/* ---------- Wahlen / Galerie ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 22px 16px; }
.gallery .media { border-radius: 12px; box-shadow: var(--shadow); aspect-ratio: 3 / 4 !important; }
.gallery figcaption { margin: 8px 2px 0; }
.gallery figcaption b { color: var(--blue-900); font-weight: 750; }
.docs { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 22px; }
.doc { display: flex; flex-direction: column; align-items: flex-start; }
.doc__cover { display: block; position: relative; width: 100%; border: 0; padding: 0; background: none; text-decoration: none; color: inherit; cursor: pointer; }
/* Kompakter Download-Button: Icon · PDF · Größe */
.dl { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 4px 10px 4px 8px; border-radius: 6px; background: var(--yellow); color: var(--blue-900); font-weight: 800; font-size: 0.78rem; line-height: 1.4; text-decoration: none; transition: background 0.2s, color 0.2s; }
.dl .fa-solid { font-size: 0.85rem; }
.dl small, .doc .dl small { font-weight: 600; font-size: 0.72rem; color: inherit; opacity: 0.75; }
.dl:hover, .dl:focus-visible { background: var(--blue-900); color: #fff; }
.tl-card .tag + .dl { margin-left: 6px; }
.doc .media { aspect-ratio: 1 / 1.414; border-radius: 6px 10px 10px 6px; box-shadow: var(--shadow); transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease); }
.doc .media::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 8px; background: linear-gradient(90deg, rgba(0, 0, 0, 0.18), transparent); }
.doc__cover:hover .media { transform: translateY(-6px) rotate(-1deg); box-shadow: var(--shadow-lg); }
.doc b { display: block; margin-top: 12px; font-size: 0.95rem; line-height: 1.3; color: var(--blue-900); }
.doc small { color: var(--ink-muted); font-size: 0.8rem; }
.doc .pdf-badge { position: absolute; right: 8px; top: 8px; background: var(--blue-900); color: #fff; font-size: 0.7rem; font-weight: 800; padding: 3px 7px; border-radius: 5px; z-index: 1; }

/* ---------- Wahlergebnisse ---------- */
.chart-card { background: var(--blue-900); color: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: clamp(18px, 3vw, 32px); }
.chart-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 12px 24px; margin-bottom: 14px; }
.chart-head h3 { font-size: 1.25rem; margin: 0; color: #fff; }
.chart-head p { margin: 4px 0 0; color: rgba(255, 255, 255, 0.7); font-size: 0.9rem; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 0.86rem; color: rgba(255, 255, 255, 0.85); }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend i { width: 14px; height: 14px; border-radius: 3px; background: var(--yellow); }
.legend i.line { height: 3px; border-radius: 2px; background: var(--cyan-bright); width: 18px; position: relative; }
.legend i.line::after { content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px; border-radius: 50%; background: var(--cyan-bright); }
.legend i.ref { height: 0; border-top: 1.5px solid rgba(255, 255, 255, 0.7); width: 18px; border-radius: 0; background: none; }
.chart { position: relative; width: 100%; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .grid line { stroke: rgba(255, 255, 255, 0.12); stroke-width: 1; }
.chart .axis text { fill: rgba(255, 255, 255, 0.65); font-size: 12px; font-family: inherit; }
.chart .col { fill: var(--yellow); transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(0); transition: transform 0.9s var(--ease), opacity 0.2s; transition-delay: calc(var(--i, 0) * 35ms); }
.chart.is-in .col { transform: scaleY(1); }
.chart .col.is-dim { opacity: 0.35; }
.chart .cmp-line { fill: none; stroke: var(--cyan-bright); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .cmp-dot { fill: var(--cyan-bright); stroke: var(--blue-900); stroke-width: 2; }
.chart .ref line { stroke: rgba(255, 255, 255, 0.7); stroke-width: 1.5; }
.chart .lbl { fill: rgba(255, 255, 255, 0.85); font-size: 12px; font-weight: 700; font-family: inherit; }
.chart .lbl--best { fill: #fff; font-size: 13px; font-weight: 900; }
.chart .hit { fill: transparent; cursor: pointer; }
.chart .na { fill: rgba(255, 255, 255, 0.5); font-size: 11px; font-family: inherit; }
.tooltip {
  position: absolute; pointer-events: none; z-index: 5; background: #fff; color: var(--blue-900); border-radius: 10px; padding: 10px 12px; font-size: 0.85rem; line-height: 1.4;
  box-shadow: var(--shadow-lg); min-width: 170px; opacity: 0; transform: translate(-50%, calc(-100% - 10px)); transition: opacity 0.15s;
}
.tooltip.is-on { opacity: 1; }
.tooltip b { font-size: 0.95rem; }
.tooltip .row { display: flex; justify-content: space-between; gap: 14px; }
.tooltip .row i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 6px; background: var(--yellow); }
.tooltip .row i.c { border-radius: 50%; background: var(--cyan-bright); }
.tooltip .row i { box-shadow: inset 0 0 0 1px rgba(3, 45, 103, 0.25); }
.tooltip .note { color: var(--ink-muted); font-size: 0.78rem; margin-top: 4px; max-width: 240px; white-space: normal; }
.table-toggle { margin-top: 16px; }
.table-toggle summary { cursor: pointer; font-weight: 700; color: var(--yellow); font-size: 0.92rem; }
.table-scroll { overflow-x: auto; margin-top: 12px; }
table.data { border-collapse: collapse; width: 100%; font-size: 0.9rem; font-variant-numeric: tabular-nums; }
table.data th, table.data td { padding: 8px 12px; border-bottom: 1px solid rgba(255, 255, 255, 0.12); text-align: right; white-space: nowrap; }
table.data th:first-child, table.data td:first-child { text-align: left; }
table.data th { color: rgba(255, 255, 255, 0.6); font-weight: 700; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; }
table.data td.note { text-align: left; white-space: normal; color: rgba(255, 255, 255, 0.65); min-width: 200px; }
.result-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-top: 22px; }
.result-facts div { border-radius: 14px; background: var(--yellow-pale); padding: 16px 18px; }
.result-facts b { display: block; font-size: 1.6rem; font-weight: 900; color: var(--blue-900); line-height: 1.1; }
.result-facts span { font-size: 0.88rem; color: var(--ink-soft); }

/* ---------- Erfolge ---------- */
.wins { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 20px; }
.win { position: relative; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: var(--radius); padding: 26px 24px; overflow: hidden; transition: transform 0.5s var(--ease), background 0.4s; }
.win:hover { transform: translateY(-4px); background: rgba(255, 255, 255, 0.1); }
.win__big { font-size: clamp(2.2rem, 4vw, 2.8rem); font-weight: 900; color: var(--yellow); line-height: 1; letter-spacing: -0.02em; }
.win h3 { font-size: 1.15rem; margin: 12px 0 8px; color: #fff; }
.win p { color: rgba(255, 255, 255, 0.78); font-size: 0.96rem; margin: 0; }
.win__year { position: absolute; right: 18px; top: 18px; font-weight: 800; font-size: 0.8rem; color: var(--cyan-bright); letter-spacing: 0.06em; }

/* ---------- Veranstaltungen ---------- */
.carousel { position: relative; }
.carousel__track { display: grid; grid-auto-flow: column; grid-auto-columns: min(78vw, 360px); gap: 20px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; padding: 6px var(--gutter) 24px; margin: 0 calc(-1 * var(--gutter)); scrollbar-width: none; scroll-padding-inline: var(--gutter); }
.carousel__track::-webkit-scrollbar { display: none; }
.event { scroll-snap-align: start; background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.event .media { aspect-ratio: 4 / 3; border-radius: 0; }
.event .zoomable .media { aspect-ratio: 4 / 3; }
.event__ph { aspect-ratio: 4 / 3; background: var(--yellow); display: flex; align-items: flex-end; padding: 22px; position: relative; overflow: hidden; }
.event__ph::after { content: ""; position: absolute; right: -6%; top: -8%; width: 38%; height: 120%; background: url("../media/brand/emblem.svg") no-repeat center / contain; opacity: 0.14; }
.event__ph span { position: relative; font-weight: 900; font-size: clamp(1.8rem, 3vw, 2.4rem); line-height: 1.05; color: var(--blue-900); max-width: 9ch; }
.event__ph span::after { content: ""; display: block; width: 2.2em; height: 0.24em; margin-top: 0.25em; background: var(--cyan-bright); }
.event__ph--blue { background: var(--blue-900); }
.event__ph--blue span { color: var(--yellow); }
.event__ph--blue::after { filter: brightness(0) invert(1); opacity: 0.12; }
.event__body { padding: 18px 22px 22px; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
.event .zoomable .media, .slides .media { border-radius: 0; }
/* Bilderkarussell in Veranstaltungs-Karten */
.slides { position: relative; }
.slides__track { display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.slides__track::-webkit-scrollbar { display: none; }
.slides__item { flex: 0 0 100%; min-width: 0; width: 100%; scroll-snap-align: start; }
/* Im Zeitstrahl gibt die Kartenhöhe das Format vor – das Bild wird darin eingepasst und zentriert */
@media (min-width: 961px) { .tl-card .slides .media, .tl-card > .zoomable .media { aspect-ratio: auto !important; } }
.slides__btn { position: absolute; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(3, 45, 103, 0.75); color: #fff; font-size: 0.85rem; line-height: 1; display: grid; place-items: center; opacity: 0; transition: opacity 0.2s, background 0.2s; }
.slides__btn--prev { left: 8px; }
.slides__btn--next { right: 8px; }
.slides:hover .slides__btn:not(:disabled), .slides__btn:focus-visible { opacity: 1; }
.slides__btn:hover { background: var(--blue-900); }
@media (hover: none) { .slides__btn { display: none; } }
.slides__dots { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 6px; pointer-events: none; }
.slides__dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, 0.6); box-shadow: 0 0 0 1px rgba(3, 45, 103, 0.25); transition: width 0.3s var(--ease), background 0.3s; }
.slides__dots i.is-on { width: 18px; border-radius: 4px; background: var(--yellow); }
.event__date { font-weight: 800; color: var(--cyan); font-size: 0.85rem; letter-spacing: 0.04em; }
.event h3 { font-size: 1.12rem; margin: 6px 0 6px; }
.event p { font-size: 0.94rem; color: var(--ink-soft); margin: 0; }
.carousel__nav { display: flex; gap: 10px; justify-content: flex-end; margin-top: -8px; }
.carousel__nav button { width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--blue-900); color: #fff; font-size: 1.2rem; display: grid; place-items: center; transition: background 0.2s, transform 0.2s; }
.carousel__nav button:hover { background: var(--blue-700); transform: scale(1.06); }
.carousel__nav button:disabled { opacity: 0.3; cursor: default; transform: none; }

/* ---------- Abschluss & Footer ---------- */
.finale { text-align: center; overflow: hidden; position: relative; isolation: isolate; }
.finale .hero__rays { animation-duration: 220s; opacity: 0.8; }
.finale h2 { font-size: clamp(2.2rem, 6vw, 4.2rem); max-width: 16ch; margin-inline: auto; }
.finale h2 { font-weight: 900; }
.finale p { max-width: 54ch; margin: 0 auto 28px; color: var(--blue-900); font-size: 1.1rem; }
.finale__emblem { width: 70px; margin: 0 auto 22px; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.btn { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 800; padding: 14px 24px; border-radius: 999px; background: var(--blue-900); color: #fff; transition: transform 0.25s var(--ease), background 0.25s; }
.btn:hover { transform: translateY(-2px); background: var(--blue-700); color: #fff; }
.btn--ghost { background: transparent; color: var(--blue-900); box-shadow: inset 0 0 0 2px var(--blue-900); }
.btn--ghost:hover { background: var(--blue-900); color: #fff; }
.site-footer { background: var(--blue-900); color: rgba(255, 255, 255, 0.78); padding: 36px 0; font-size: 0.9rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; align-items: center; }
.site-footer a { color: #fff; }
.site-footer p { margin: 0; }

/* ---------- Lightbox ---------- */
.lightbox { border: 0; padding: 0; margin: 0; width: 100vw; height: 100vh; max-width: none; max-height: none; background: rgba(2, 20, 48, 0.94); color: #fff; }
.lightbox::backdrop { background: rgba(2, 20, 48, 0.6); }
.lightbox[open] { display: grid; grid-template-rows: 1fr auto; animation: lbin 0.35s var(--ease); }
@keyframes lbin { from { opacity: 0; } }
.lightbox__stage { position: relative; display: grid; place-items: center; padding: 56px 64px 8px; min-height: 0; overflow: hidden; touch-action: none; }
.lightbox__stage img { max-width: 100%; max-height: calc(100vh - 160px); width: auto; height: auto; object-fit: contain; border-radius: 6px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4); animation: lbimg 0.45s var(--ease); transform-origin: 0 0; cursor: zoom-in; user-select: none; -webkit-user-drag: none; will-change: transform; }
.lightbox.is-zoomed .lightbox__stage img { cursor: grab; border-radius: 0; }
.lightbox.is-zoomed .lightbox__stage img:active { cursor: grabbing; }
.lightbox.is-zoomed .lightbox__prev, .lightbox.is-zoomed .lightbox__next { opacity: 0.25; pointer-events: none; }
.lightbox__zoom { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); display: flex; gap: 6px; padding: 5px; border-radius: 999px; background: rgba(3, 45, 103, 0.7); backdrop-filter: blur(6px); z-index: 2; }
.lightbox .lightbox__zoom button { position: static; width: 40px; height: 40px; font-size: 1.15rem; font-weight: 800; }
.lightbox .lightbox__zoom button[data-zoom="reset"] { font-size: 0.78rem; }
.lightbox__text { display: block; max-width: 70ch; margin: 0 auto 4px; line-height: 1.45; }
.lightbox__count { opacity: 0.6; font-size: 0.85rem; }
@keyframes lbimg { from { opacity: 0; transform: scale(0.97); } }
.lightbox__cap { padding: 12px 24px 22px; text-align: center; font-size: 0.95rem; color: rgba(255, 255, 255, 0.85); }
.lightbox__cap a { color: var(--yellow); }
.lightbox button { position: absolute; z-index: 2; border: 0; background: rgba(255, 255, 255, 0.1); color: #fff; width: 48px; height: 48px; border-radius: 50%; font-size: 1.4rem; display: grid; place-items: center; transition: background 0.2s; }
.lightbox button[hidden], .slides__btn[hidden], [hidden] { display: none !important; }
.lightbox button:hover { background: rgba(255, 255, 255, 0.22); }
.lightbox__close { top: 12px; right: 12px; }
.lightbox__prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 10px; top: 50%; transform: translateY(-50%); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .intro, .founding { grid-template-columns: 1fr; }
  :root { --header-h: 64px; }
  .timeline-layout { grid-template-columns: minmax(0, 1fr); }
  .decade-rail { display: none; }
  .tl-card--media { grid-template-columns: minmax(0, 1fr); }
  .tl-card--media > :not(.tl-card__body) { order: -1; }
  .tl-card .media { min-height: 0; aspect-ratio: 16 / 10 !important; }
}
@media (max-width: 640px) {
  .timeline { padding-left: 30px; }
  .timeline::before, .timeline__fill { left: 6px; }
  .tl-item::before { left: -31px; width: 15px; height: 15px; }
  .tl-item--major::before { left: -33px; width: 19px; height: 19px; }
  .tl-card__body { padding: 18px 18px 16px; }
  .gantt__axis { grid-template-columns: 1fr; }
  .gantt__axis > span:first-child { display: none; }
  .person-row { grid-template-columns: 1fr; gap: 6px; }
  .person-detail { padding-left: 0; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 16px 10px; }
  .stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat { padding: 18px 16px; }
  .lightbox__stage { padding: 56px 8px 8px; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: -52px; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-delay: 0ms !important; transition-duration: 0.001ms !important; transition-delay: 0ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .hero__rays { animation: none; }
}

@media print {
  .site-header, .hero__cue, .carousel__nav, .chips, .tabs { display: none !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* Silbentrennung in schmalen Textspalten */
.tl-card p, .place p, .win p, .person-detail, .doc b, .event h3, .prose-grid p { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
.lightbox__stage img.is-svg { width: min(100%, 860px); max-height: calc(100vh - 160px); background: #fff; padding: clamp(16px, 4vw, 48px); box-sizing: border-box; object-fit: contain; }

.person-link { display: inline-flex; align-items: center; gap: 5px; margin-top: 4px; font-size: 0.82rem; font-weight: 700; color: var(--link, var(--blue-700)); text-decoration: none; }
.person-link:hover { text-decoration: underline; }
.person-link .fa-solid { font-size: 0.7em; }
.portrait .person-link { font-size: 0.75rem; }

/* ---------- Dark Mode ----------
   Folgt der Systemeinstellung. Helle Flächen werden tiefes Dunkelblau, Text hell; die gelben
   CD-Flächen (Hero, Abschluss, Menü, Akzente) bleiben gelb mit dunkelblauer Schrift. */
/* ---------- Dark Mode ----------
   Automatisch nach Systemeinstellung (sofern nicht „hell“ gewählt) oder manuell per Umschalter (data-theme am <html>). */
@media (prefers-color-scheme: dark) {
:root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #061529;
    --paper-old: #0d1e36;
    --surface: #0e2444;
    --surface-2: #0a1c37;
    --line: rgba(255, 255, 255, 0.1);
    --ink: #e8eef8;
    --ink-soft: #b7c4d9;
    --ink-muted: #8b9cb7;
    --cyan: #3cc3f2;
    --link: #8fd2ff;
    --yellow-pale: rgba(255, 224, 0, 0.12);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.3), 0 24px 48px rgba(0, 0, 0, 0.45);
    --tl-old: 13, 30, 54;
    --tl-new: 6, 21, 41;
  }
:root:not([data-theme="light"]) a { color: var(--link); }
:root:not([data-theme="light"]) a:hover { color: var(--yellow); }
:root:not([data-theme="light"]) .site-header.is-solid { background: rgba(6, 21, 41, 0.9); }
:root:not([data-theme="light"]) .site-header.is-solid .brand, :root:not([data-theme="light"]) .site-header.is-solid .nav a { color: var(--ink); }
:root:not([data-theme="light"]) .site-header.is-solid .brand small { color: var(--ink-soft); }
:root:not([data-theme="light"]) .site-header.is-solid .menu-btn span { background: var(--ink); }
:root:not([data-theme="light"]) .site-header.is-solid .nav a:hover { background: rgba(255, 255, 255, 0.08); }
:root:not([data-theme="light"]) .site-header.is-solid .nav a.is-active { background: var(--yellow); color: #032d67; }
:root:not([data-theme="light"]) .site-header.is-solid .brand__logo { display: none; }
:root:not([data-theme="light"]) .site-header.is-solid .brand__logo--gelb { display: block; }
:root:not([data-theme="light"]) body.menu-open .site-header .brand__logo { display: block; }
:root:not([data-theme="light"]) body.menu-open .site-header .brand__logo--gelb { display: none; }
@media (max-width: 960px) {
:root:not([data-theme="light"]) .site-header.is-solid .nav a, :root:not([data-theme="light"]) .site-header.is-solid .nav a.is-active { color: #032d67; background: transparent; }
:root:not([data-theme="light"]) body.menu-open .site-header .brand, :root:not([data-theme="light"]) body.menu-open .site-header .brand small { color: #032d67; }
:root:not([data-theme="light"]) body.menu-open .site-header .menu-btn span { background: #032d67; }
}
:root:not([data-theme="light"]) .stat b { color: var(--ink); }
:root:not([data-theme="light"]) .stat:nth-child(1) b, :root:not([data-theme="light"]) .stat:nth-child(1) span { color: #032d67; }
:root:not([data-theme="light"]) .stat:nth-child(4) { background: #0546a0; }
:root:not([data-theme="light"]) .chip { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.2); color: var(--ink); }
:root:not([data-theme="light"]) .chip:hover { border-color: var(--ink); }
:root:not([data-theme="light"]) .chip[aria-pressed="true"] { background: var(--yellow); border-color: var(--yellow); color: #032d67; }
:root:not([data-theme="light"]) .tab { color: var(--ink); }
:root:not([data-theme="light"]) .tab:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
:root:not([data-theme="light"]) .tab[aria-selected="true"] { background: var(--yellow); color: #032d67; }
:root:not([data-theme="light"]) .decade-rail__now, :root:not([data-theme="light"]) .decade-rail nav a.is-active { color: var(--ink); }
:root:not([data-theme="light"]) .decade__label { color: rgba(255, 255, 255, 0.07); }
:root:not([data-theme="light"]) .timeline::before { background: rgba(255, 255, 255, 0.14); }
:root:not([data-theme="light"]) .timeline__fill { background: linear-gradient(var(--cyan-bright), var(--yellow)); }
:root:not([data-theme="light"]) .tl-item::before { box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px rgba(255, 255, 255, 0.2); }
:root:not([data-theme="light"]) .tl-item.is-reached::before { box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--cyan-bright); }
:root:not([data-theme="light"]) .tl-card .tag { background: rgba(255, 224, 0, 0.14); color: var(--yellow); }
:root:not([data-theme="light"]) .founding blockquote { color: var(--ink); }
:root:not([data-theme="light"]) .logo-card { background: #fff; }
:root:not([data-theme="light"]) .logo-card b { color: #032d67; }
:root:not([data-theme="light"]) .logo-card span { color: #3b4f72; }
:root:not([data-theme="light"]) .gallery figcaption b, :root:not([data-theme="light"]) .doc b, :root:not([data-theme="light"]) .result-facts b { color: var(--ink); }
:root:not([data-theme="light"]) .person-row:hover .person-name b { color: var(--link); }
:root:not([data-theme="light"]) .carousel__nav button { background: var(--yellow); color: #032d67; }
:root:not([data-theme="light"]) .carousel__nav button:hover { background: #fff; }
:root:not([data-theme="light"]) .dl:hover, :root:not([data-theme="light"]) .dl:focus-visible { background: #fff; color: #032d67; }
:root:not([data-theme="light"]) .section--tint .chart-card { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), var(--shadow-lg); }
:root:not([data-theme="light"]) .site-footer { background: #03101f; }
:root:not([data-theme="light"]) .section--yellow, :root:not([data-theme="light"]) .hero { --ink: #032d67; --ink-soft: #032d67; color: #032d67; }
}
:root[data-theme="dark"] {
    color-scheme: dark;
    --paper: #061529;
    --paper-old: #0d1e36;
    --surface: #0e2444;
    --surface-2: #0a1c37;
    --line: rgba(255, 255, 255, 0.1);
    --ink: #e8eef8;
    --ink-soft: #b7c4d9;
    --ink-muted: #8b9cb7;
    --cyan: #3cc3f2;
    --link: #8fd2ff;
    --yellow-pale: rgba(255, 224, 0, 0.12);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.3), 0 24px 48px rgba(0, 0, 0, 0.45);
    --tl-old: 13, 30, 54;
    --tl-new: 6, 21, 41;
  }
:root[data-theme="dark"] a { color: var(--link); }
:root[data-theme="dark"] a:hover { color: var(--yellow); }
:root[data-theme="dark"] .site-header.is-solid { background: rgba(6, 21, 41, 0.9); }
:root[data-theme="dark"] .site-header.is-solid .brand, :root[data-theme="dark"] .site-header.is-solid .nav a { color: var(--ink); }
:root[data-theme="dark"] .site-header.is-solid .brand small { color: var(--ink-soft); }
:root[data-theme="dark"] .site-header.is-solid .menu-btn span { background: var(--ink); }
:root[data-theme="dark"] .site-header.is-solid .nav a:hover { background: rgba(255, 255, 255, 0.08); }
:root[data-theme="dark"] .site-header.is-solid .nav a.is-active { background: var(--yellow); color: #032d67; }
:root[data-theme="dark"] .site-header.is-solid .brand__logo { display: none; }
:root[data-theme="dark"] .site-header.is-solid .brand__logo--gelb { display: block; }
:root[data-theme="dark"] body.menu-open .site-header .brand__logo { display: block; }
:root[data-theme="dark"] body.menu-open .site-header .brand__logo--gelb { display: none; }
@media (max-width: 960px) {
:root[data-theme="dark"] .site-header.is-solid .nav a, :root[data-theme="dark"] .site-header.is-solid .nav a.is-active { color: #032d67; background: transparent; }
:root[data-theme="dark"] body.menu-open .site-header .brand, :root[data-theme="dark"] body.menu-open .site-header .brand small { color: #032d67; }
:root[data-theme="dark"] body.menu-open .site-header .menu-btn span { background: #032d67; }
}
:root[data-theme="dark"] .stat b { color: var(--ink); }
:root[data-theme="dark"] .stat:nth-child(1) b, :root[data-theme="dark"] .stat:nth-child(1) span { color: #032d67; }
:root[data-theme="dark"] .stat:nth-child(4) { background: #0546a0; }
:root[data-theme="dark"] .chip { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.2); color: var(--ink); }
:root[data-theme="dark"] .chip:hover { border-color: var(--ink); }
:root[data-theme="dark"] .chip[aria-pressed="true"] { background: var(--yellow); border-color: var(--yellow); color: #032d67; }
:root[data-theme="dark"] .tab { color: var(--ink); }
:root[data-theme="dark"] .tab:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
:root[data-theme="dark"] .tab[aria-selected="true"] { background: var(--yellow); color: #032d67; }
:root[data-theme="dark"] .decade-rail__now, :root[data-theme="dark"] .decade-rail nav a.is-active { color: var(--ink); }
:root[data-theme="dark"] .decade__label { color: rgba(255, 255, 255, 0.07); }
:root[data-theme="dark"] .timeline::before { background: rgba(255, 255, 255, 0.14); }
:root[data-theme="dark"] .timeline__fill { background: linear-gradient(var(--cyan-bright), var(--yellow)); }
:root[data-theme="dark"] .tl-item::before { box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px rgba(255, 255, 255, 0.2); }
:root[data-theme="dark"] .tl-item.is-reached::before { box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--cyan-bright); }
:root[data-theme="dark"] .tl-card .tag { background: rgba(255, 224, 0, 0.14); color: var(--yellow); }
:root[data-theme="dark"] .founding blockquote { color: var(--ink); }
:root[data-theme="dark"] .logo-card { background: #fff; }
:root[data-theme="dark"] .logo-card b { color: #032d67; }
:root[data-theme="dark"] .logo-card span { color: #3b4f72; }
:root[data-theme="dark"] .gallery figcaption b, :root[data-theme="dark"] .doc b, :root[data-theme="dark"] .result-facts b { color: var(--ink); }
:root[data-theme="dark"] .person-row:hover .person-name b { color: var(--link); }
:root[data-theme="dark"] .carousel__nav button { background: var(--yellow); color: #032d67; }
:root[data-theme="dark"] .carousel__nav button:hover { background: #fff; }
:root[data-theme="dark"] .dl:hover, :root[data-theme="dark"] .dl:focus-visible { background: #fff; color: #032d67; }
:root[data-theme="dark"] .section--tint .chart-card { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), var(--shadow-lg); }
:root[data-theme="dark"] .site-footer { background: #03101f; }
:root[data-theme="dark"] .section--yellow, :root[data-theme="dark"] .hero { --ink: #032d67; --ink-soft: #032d67; color: #032d67; }


/* Sichtbarer Bildnachweis für Fremdfotos */
.media__credit { position: absolute; right: 6px; bottom: 6px; z-index: 1; padding: 2px 6px; border-radius: 4px; background: rgba(0, 0, 0, 0.55); color: #fff; font-size: 0.66rem; font-weight: 600; line-height: 1.3; pointer-events: none; }

:root[data-theme="light"] { color-scheme: light; }

/* Umschalter Hell/Dunkel im Header */
.theme-btn { flex: none; width: 38px; height: 38px; margin-left: 4px; border: 0; border-radius: 50%; background: transparent; color: var(--blue-900); display: grid; place-items: center; font-size: 1rem; transition: background 0.2s, color 0.2s; }
.theme-btn:hover { background: rgba(2, 45, 101, 0.08); }
.theme-btn .fa-sun { display: none; }
@media (max-width: 960px) { .theme-btn { margin-left: auto; } }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn .fa-moon { display: none; }
  :root:not([data-theme="light"]) .theme-btn .fa-sun { display: inline-block; }
  :root:not([data-theme="light"]) .site-header.is-solid .theme-btn { color: var(--ink); }
  :root:not([data-theme="light"]) .site-header.is-solid .theme-btn:hover { background: rgba(255, 255, 255, 0.1); }
}
:root[data-theme="dark"] .theme-btn .fa-moon { display: none; }
:root[data-theme="dark"] .theme-btn .fa-sun { display: inline-block; }
:root[data-theme="dark"] .site-header.is-solid .theme-btn { color: var(--ink); }
:root[data-theme="dark"] .site-header.is-solid .theme-btn:hover { background: rgba(255, 255, 255, 0.1); }
body.menu-open .theme-btn { color: #032d67 !important; }
.site-header .nav { order: 2; }
.site-header .theme-btn { order: 3; }
.site-header .menu-btn { order: 4; }

/* Download-Button: immer dunkelblau auf Gelb (überstimmt die Linkfarbe im Dark Mode) */
a.dl, a.dl:visited { color: #032d67 !important; background: var(--yellow); font-size: 0.82rem; padding: 5px 12px 5px 10px; gap: 7px; }
a.dl small { color: inherit; opacity: 0.8; font-weight: 700; }
a.dl:hover, a.dl:focus-visible { background: #032d67; color: #fff !important; }
:root[data-theme="dark"] a.dl:hover, :root[data-theme="dark"] a.dl:focus-visible { background: #fff; color: #032d67 !important; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) a.dl:hover, :root:not([data-theme="light"]) a.dl:focus-visible { background: #fff; color: #032d67 !important; }
}
