/* grundschule-hattersheim.de – dunkles Scroll-Layout, Leitfarbe Orange */
:root {
  --bg: #0b0b0c;
  --bg2: #141517;
  --anth: #1f2024;
  --line: #2c2d32;
  --text: #f4f4f2;
  --mute: #a7a8ad;
  --accent: #ff7a1a;
  --accent2: #ffa35c;
  --cyan: #45d4e0;
  --radius: 14px;
  --font: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --wrap: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 18px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--accent); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
button { font: inherit; color: inherit; }

/* ---------- Kopfzeile & Navigation ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60; }
.progress span { display: block; height: 100%; width: 0; background: var(--accent); }
.topbar { position: fixed; top: 0; left: 0; right: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between;
  padding: 14px clamp(16px, 4vw, 40px); background: linear-gradient(rgba(11,11,12,.85), rgba(11,11,12,0)); backdrop-filter: blur(0px); transition: background .3s, backdrop-filter .3s; }
.topbar.solid { background: rgba(11,11,12,.78); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid rgba(255,255,255,.06); }
.brand { color: var(--text); text-decoration: none; font-weight: 600; font-size: 15px; letter-spacing: .01em; display: flex; align-items: center; gap: 10px; }
.brand .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(255,122,26,.18); }
.menu-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); background: rgba(20,21,23,.6); cursor: pointer; display: grid; place-content: center; gap: 6px; }
.menu-btn span:not(.sr) { display: block; width: 18px; height: 2px; background: var(--text); transition: transform .3s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }
.nav { position: fixed; inset: 0; z-index: 45; background: rgba(11,11,12,.96); backdrop-filter: blur(16px); overflow-y: auto; padding: 90px clamp(20px, 6vw, 80px) 40px; }
.nav-inner { max-width: 900px; margin: 0 auto; columns: 2 280px; column-gap: 40px; }
.nav a { display: flex; gap: 14px; align-items: baseline; padding: 10px 0; color: var(--text); text-decoration: none; font-size: 20px; font-weight: 500; border-bottom: 1px solid var(--line); break-inside: avoid; }
.nav a:hover { color: var(--accent); }
.nav .num { color: var(--accent); font-size: 13px; font-variant-numeric: tabular-nums; }

/* ---------- Abschnitte ---------- */
.sec { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 120px 0 100px; overflow: hidden; isolation: isolate; }
.sec.plain { background: var(--bg); min-height: auto; padding: 120px 0; }
.sec.plain:nth-of-type(even) { background: var(--bg2); }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(20px, 5vw, 48px); position: relative; z-index: 2; }
.bg { position: absolute; inset: -8% 0; z-index: -2; }
.bg img { width: 100%; height: 100%; object-fit: cover; transform: translate3d(0, var(--py, 0px), 0) scale(1.06); will-change: transform; }
.shade { position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(180deg, rgba(11,11,12,var(--dim)) 0%, rgba(11,11,12,calc(var(--dim) + .1)) 55%, rgba(11,11,12,.96) 100%),
  linear-gradient(90deg, rgba(11,11,12,.55) 0%, rgba(11,11,12,0) 70%); }

.kicker { color: var(--accent); text-transform: uppercase; letter-spacing: .14em; font-size: 13px; font-weight: 700; margin: 0 0 14px; }
.title { font-size: clamp(2.4rem, 7vw, 5.6rem); line-height: 1.02; letter-spacing: -.035em; font-weight: 800; margin: 0 0 32px; max-width: 16ch; }
h1.title { font-size: clamp(3rem, 10vw, 8rem); max-width: 12ch; }
.lead { font-size: clamp(1.15rem, 2.2vw, 1.5rem); color: var(--mute); max-width: 40ch; margin: -12px 0 36px; }
.text { max-width: 68ch; font-size: clamp(1.02rem, 1.4vw, 1.2rem); }
.text p { margin: 0 0 1.1em; }
.text strong { color: #fff; }
.text h3 { font-size: 1.3rem; margin: 1.4em 0 .4em; }
.text ul, .text ol { padding-left: 1.2em; }
.text li { margin-bottom: .6em; }
.text li::marker { color: var(--accent); }
.text blockquote { margin: 1.4em 0; padding: 18px 22px; border-left: 3px solid var(--accent); background: rgba(31,32,36,.72); border-radius: 0 var(--radius) var(--radius) 0; font-size: 1.05em; }
.text a { color: var(--accent2); text-underline-offset: 3px; }

/* Einblenden beim Scrollen */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .bg img { transform: none !important; } html { scroll-behavior: auto; } }

/* ---------- Buttons ---------- */
.btn { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 999px; border: 0; background: var(--accent); color: #111; font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer; transition: transform .2s, background .2s; }
.btn:hover { background: var(--accent2); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text); border: 1.5px solid rgba(255,255,255,.35); }
.btn-ghost:hover { background: rgba(255,255,255,.08); border-color: var(--accent); }
.btn-small { min-height: 38px; padding: 0 16px; font-size: 14px; }

/* ---------- Hero mit Film ---------- */
.hero { justify-content: flex-start; padding-top: 104px; }
.hero .title { font-size: clamp(2.6rem, 6.4vw, 5.4rem); max-width: 14ch; margin-bottom: 14px; }
.hero .lead { margin: 0 0 26px; }
.hero .bg img { filter: saturate(.85); }
.player { position: relative; border-radius: 18px; overflow: hidden; box-shadow: 0 40px 120px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.08); background: #000; aspect-ratio: 16 / 9; margin-bottom: 36px; }
.player video { width: 100%; height: 100%; display: block; object-fit: cover; background: #000; }
.player .yt { position: absolute; inset: 0; background-size: cover; background-position: center; }
.player .yt iframe { width: 100%; height: 100%; border: 0; }
.yt-note { position: absolute; left: 0; right: 0; bottom: 10px; text-align: center; font-size: 12px; color: #ddd; margin: 0; text-shadow: 0 1px 3px #000; }
.bigplay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; background: radial-gradient(circle at center, rgba(0,0,0,.15), rgba(0,0,0,.55)); border: 0; cursor: pointer; }
.bigplay .tri { width: clamp(76px, 10vw, 110px); height: clamp(76px, 10vw, 110px); border-radius: 50%; background: var(--accent); position: relative; box-shadow: 0 0 0 0 rgba(255,122,26,.6); animation: pulse 2.4s infinite; transition: transform .25s; }
.bigplay .tri::after { content: ""; position: absolute; left: 54%; top: 50%; transform: translate(-50%, -50%); border-style: solid; border-width: 16px 0 16px 26px; border-color: transparent transparent transparent #111; }
.bigplay:hover .tri { transform: scale(1.07); }
.bp-label { font-weight: 700; font-size: 17px; background: rgba(11,11,12,.7); padding: 6px 16px; border-radius: 999px; }
.player.playing .bigplay { display: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,122,26,.55); } 70% { box-shadow: 0 0 0 26px rgba(255,122,26,0); } 100% { box-shadow: 0 0 0 0 rgba(255,122,26,0); } }
.scroll-hint { display: block; width: 28px; height: 46px; border: 2px solid rgba(255,255,255,.4); border-radius: 16px; margin: 10px auto 0; position: relative; }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--accent); animation: wheel 1.8s infinite; }
@keyframes wheel { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Zitat ---------- */
.quote { text-align: left; }
.bigquote { margin: 0 0 40px; font-size: clamp(2.1rem, 6.2vw, 5.4rem); line-height: 1.05; font-weight: 800; letter-spacing: -.03em; max-width: 18ch; }
.bigquote .qm { color: var(--accent); }
.attribution { max-width: 56ch; color: var(--mute); font-size: 1.05rem; border-top: 2px solid var(--accent); padding-top: 18px; }
.attribution p { margin: 0 0 .4em; }

/* ---------- Zeitleiste ---------- */
.tl { list-style: none; margin: 40px 0 0; padding: 0; position: relative; max-width: 760px; }
.tl::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--accent), rgba(255,122,26,.15)); }
.tl li { position: relative; padding: 0 0 30px 44px; }
.tl li::before { content: ""; position: absolute; left: 0; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 3px solid var(--accent); }
.tl li.in::before { animation: pop .5s ease-out; }
.tl li:last-child::before { background: var(--accent); }
.tl-date { display: block; font-weight: 800; color: var(--accent); font-size: 1.05rem; letter-spacing: .02em; }
.tl-text { display: block; font-size: 1.1rem; }
@keyframes pop { 0% { transform: scale(.2); } 70% { transform: scale(1.3); } 100% { transform: scale(1); } }

/* ---------- Karte ---------- */
.mapsec { padding-bottom: 60px; }
.map { position: relative; width: min(100% - 24px, 1500px); margin: 30px auto 0; border-radius: 18px; overflow: hidden; box-shadow: 0 30px 90px rgba(0,0,0,.6); }
.map img { width: 100%; }
.radius { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.radius ellipse { fill: rgba(255,122,26,.12); stroke: var(--accent); stroke-width: .35; stroke-dasharray: 100; stroke-dashoffset: 100; opacity: 0; transform-origin: center; transform-box: fill-box; transform: scale(.4); transition: stroke-dashoffset 1.8s ease, opacity .6s, transform 1.4s cubic-bezier(.2,.8,.2,1); vector-effect: non-scaling-stroke; }
.map.show-radius .radius ellipse { stroke-dashoffset: 0; opacity: 1; transform: scale(1); stroke-width: 2.5px; }
.pin { position: absolute; transform: translate(-50%, -50%) scale(0); width: clamp(26px, 3vw, 44px); height: clamp(26px, 3vw, 44px); border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; font-weight: 800; font-size: clamp(12px, 1.3vw, 18px); background: rgba(11,11,12,.92); color: #fff; box-shadow: 0 0 0 2px #fff, 0 8px 20px rgba(0,0,0,.5); transition: transform .5s cubic-bezier(.2,1.4,.4,1) var(--d), background .2s; }
.map.in .pin { transform: translate(-50%, -50%) scale(1); }
.pin:hover, .pin:focus-visible { background: var(--accent); color: #111; transform: translate(-50%, -50%) scale(1.12) !important; outline: none; }
.pin-gewaehlt { background: var(--accent); color: #111; }
.pin-gewaehlt::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--accent); animation: ring 2s infinite; }
.pin-schule { background: rgba(69,212,224,.9); color: #062226; font-size: clamp(9px, 1vw, 12px); width: clamp(24px, 2.6vw, 38px); height: clamp(24px, 2.6vw, 38px); }
@keyframes ring { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(1.8); opacity: 0; } }
.map-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 22px; }
.radius-label { margin: 0; color: var(--mute); font-size: 15px; flex: 1 1 260px; }
.legend { display: flex; flex-wrap: wrap; gap: 16px; font-size: 14px; color: var(--mute); }
.lg { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
.lg-flaeche { background: #111; box-shadow: 0 0 0 2px #fff; }
.lg-gewaehlt { background: var(--accent); }
.lg-schule { background: var(--cyan); }

/* ---------- Bilder ---------- */
.figure { margin: 20px auto 30px; width: min(100% - 24px, 1400px); }
.zoomable { display: block; width: 100%; padding: 0; border: 0; background: #fff; border-radius: 16px; overflow: hidden; cursor: zoom-in; position: relative; }
.fit-cover .zoomable { background: #000; }
.figure.fit-small { width: min(100% - 32px, 900px); }
.fit-small .zoomable { width: fit-content; max-width: 100%; margin: 0 auto; background: transparent; }
.fit-small .zoomable img { display: block; width: auto; max-width: 100%; max-height: 70vh; margin: 0 auto; }
.fit-contain .zoomable img { width: 100%; max-height: 82vh; object-fit: contain; margin: 0 auto; }
.zoom-ico { position: absolute; right: 14px; bottom: 14px; width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: #111; font-size: 26px; line-height: 44px; font-weight: 700; }
.figure figcaption { color: var(--mute); font-size: 15px; margin-top: 12px; text-align: center; }

/* ---------- Zahlen ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; margin: 10px 0 40px; }
.stat { background: rgba(31,32,36,.78); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; backdrop-filter: blur(6px); }
.stat-num { white-space: nowrap; font-size: clamp(2rem, 3.8vw, 3.1rem); font-weight: 800; color: var(--accent); letter-spacing: -.02em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.stat-label { color: var(--mute); margin-top: 8px; font-size: 16px; }

/* ---------- Diagramm ---------- */
.chart { background: var(--anth); border: 1px solid var(--line); border-radius: 18px; padding: 28px clamp(16px, 3vw, 34px) 22px; margin: 10px 0 36px; }
.chart-title { margin: 0 0 8px; font-weight: 700; font-size: 1.15rem; }
.chart-legend { display: flex; gap: 20px; font-size: 14px; color: var(--mute); margin-bottom: 18px; }
.chart-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.ca { background: #5a5c63; } .cb { background: var(--accent); }
.bars { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: clamp(6px, 1.4vw, 18px); height: 300px; align-items: end; }
.bar-group { display: flex; flex-direction: column; align-items: center; height: 100%; justify-content: flex-end; }
.bar-pair { display: flex; gap: 4px; align-items: flex-end; height: calc(100% - 28px); width: 100%; justify-content: center; }
.bar { width: 42%; max-width: 34px; height: 0; border-radius: 6px 6px 0 0; position: relative; transition: height 1.3s cubic-bezier(.2,.8,.2,1); }
.bar.a { background: #5a5c63; } .bar.b { background: var(--accent); }
.bar.empty { background: transparent; }
.chart.in .bar { height: var(--h); }
.bar em { position: absolute; top: -22px; left: 50%; transform: translateX(-50%); font-style: normal; font-size: 12px; color: var(--mute); opacity: 0; transition: opacity .4s 1.1s; }
.chart.in .bar em { opacity: 1; }
.bar-label { font-size: 13px; color: var(--mute); margin-top: 8px; }
.chart-source { font-size: 13px; color: var(--mute); margin: 16px 0 0; }
.bars.has-dev .bar-pair { height: calc(100% - 58px); }
.bar-dev { margin-top: 6px; font-size: 13px; font-weight: 700; color: var(--text); padding: 2px 8px; border-radius: 999px; background: rgba(255,255,255,.06); white-space: nowrap; font-variant-numeric: tabular-nums; }
.bar-dev.neg { color: var(--accent); background: rgba(255,122,26,.12); }
.bar-dev.none { background: none; }
.chart-devnote { font-size: 13px; color: var(--mute); margin: 14px 0 0; }
.bars.has-dev { grid-auto-columns: minmax(0, 1fr); }
@media (max-width: 640px) { .bar-dev { font-size: 9.5px; padding: 1px 3px; letter-spacing: -.02em; } }

/* ---------- Bitten ---------- */
.action-list { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 14px; max-width: 820px; }
.action-list li { display: flex; gap: 18px; background: rgba(31,32,36,.82); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; backdrop-filter: blur(6px); }
.an { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: #111; display: grid; place-items: center; font-weight: 800; }
.action-list strong { font-size: 1.12rem; }
.action-list p { margin: 4px 0 0; color: #d9d9d6; }

/* ---------- Link-Karten ---------- */
.link-cards { display: grid; gap: 14px; margin-top: 26px; max-width: 760px; }
.link-card { display: flex; flex-direction: column; gap: 4px; position: relative; padding: 22px 60px 22px 24px; border-radius: var(--radius); background: var(--accent); color: #111; text-decoration: none; transition: transform .2s; }
.link-card:hover { transform: translateY(-2px); }
.link-card strong { font-size: 1.3rem; }
.link-card .arrow, .press .arrow { position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-style: normal; font-size: 24px; }

/* ---------- Medien ---------- */
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; margin-top: 30px; }
.media-card { text-align: left; padding: 0; border: 1px solid var(--line); background: var(--anth); border-radius: 16px; overflow: hidden; cursor: pointer; display: flex; flex-direction: column; transition: transform .3s, border-color .3s; }
.media-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.mc-thumb { position: relative; aspect-ratio: 16/9; overflow: hidden; display: block; }
.mc-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.media-card:hover .mc-thumb img { transform: scale(1.06); }
.mc-play { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(transparent 40%, rgba(0,0,0,.6)); }
.mc-play .tri { width: 58px; height: 58px; border-radius: 50%; background: var(--accent); position: relative; }
.mc-play .tri::after { content: ""; position: absolute; left: 55%; top: 50%; transform: translate(-50%, -50%); border-style: solid; border-width: 10px 0 10px 16px; border-color: transparent transparent transparent #111; }
.mc-meta { display: flex; gap: 10px; align-items: center; padding: 16px 18px 4px; font-size: 13px; color: var(--mute); }
.badge { background: rgba(255,122,26,.16); color: var(--accent2); padding: 3px 10px; border-radius: 999px; font-weight: 700; }
.mc-title { padding: 2px 18px 18px; font-weight: 700; font-size: 1.1rem; line-height: 1.3; }
.mc-ext { padding: 0 18px 18px; margin-top: -10px; font-size: 14px; color: var(--accent2); }
.sub { font-size: 1.6rem; margin: 60px 0 16px; }
.press-list { display: grid; gap: 10px; }
.press { position: relative; display: flex; flex-direction: column; padding: 18px 60px 18px 22px; border-radius: var(--radius); background: var(--anth); border: 1px solid var(--line); color: var(--text); text-decoration: none; transition: border-color .2s; }
.press:hover { border-color: var(--accent); }
.press-src { font-size: 13px; color: var(--mute); }
.press-title { font-weight: 700; font-size: 1.1rem; }
.press .arrow { color: var(--accent); }

/* ---------- Quellen ---------- */
.sources { display: grid; gap: 10px; margin-top: 26px; }
.src-group { background: var(--anth); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.src-group summary { list-style: none; cursor: pointer; padding: 18px 22px; font-weight: 700; font-size: 1.1rem; display: flex; justify-content: space-between; align-items: center; }
.src-group summary::-webkit-details-marker { display: none; }
.src-group summary::after { content: "+"; color: var(--accent); font-size: 26px; font-weight: 400; margin-left: 12px; }
.src-group[open] summary::after { content: "–"; }
.cnt { margin-left: auto; font-size: 13px; color: var(--mute); font-weight: 500; }
.src-group ul { list-style: none; margin: 0; padding: 0 22px 14px; }
.src-group li { display: flex; gap: 16px; justify-content: space-between; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); font-size: 16px; }

/* ---------- Kontakt & Fuß ---------- */
.contact-card { margin-top: 28px; background: rgba(31,32,36,.85); border: 1px solid var(--line); border-radius: 18px; padding: 28px; max-width: 520px; backdrop-filter: blur(8px); }
.contact-card strong { font-size: 1.3rem; }
.contact-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.contact-btns .btn { flex: 1 1 180px; }
.footer { border-top: 1px solid var(--line); padding: 30px 0 40px; color: var(--mute); font-size: 14px; }
.footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.foot-btns { display: flex; gap: 10px; }
.foot-btns .btn { min-width: 140px; }

/* ---------- Overlays ---------- */
.overlay { position: fixed; inset: 0; z-index: 80; background: rgba(0,0,0,.72); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; padding: 20px; animation: fade .25s; }
.overlay[hidden] { display: none; }
.ov-box { position: relative; background: var(--anth); border: 1px solid var(--line); border-radius: 18px; max-width: 760px; width: 100%; max-height: 88vh; overflow: auto; padding: 36px clamp(20px, 4vw, 40px); animation: rise .35s cubic-bezier(.2,.8,.2,1); }
.ov-close { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.1); font-size: 26px; cursor: pointer; z-index: 3; }
.ov-close:hover { background: var(--accent); color: #111; }
.ov-media { max-width: 1200px; padding: 0; background: #000; overflow: hidden; }
.ov-media video, .ov-media iframe { width: 100%; aspect-ratio: 16/9; display: block; border: 0; background: #000; }
.ov-media .mtitle { padding: 14px 20px; margin: 0; font-weight: 700; }
.ov-zoom { max-width: 96vw; padding: 0; background: #fff; }
.ov-zoom img { max-height: 90vh; width: auto; margin: 0 auto; }
#ov-zoom.is-doc { align-items: flex-start; overflow-y: auto; }
#ov-zoom.is-doc .ov-zoom { width: min(96vw, 900px); max-height: none; overflow: visible; margin: 3vh auto; }
#ov-zoom.is-doc .ov-zoom img { max-height: none; width: 100%; }
.ov-site .site-key { display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: #111; box-shadow: 0 0 0 2px #fff; font-weight: 800; font-size: 22px; margin-bottom: 14px; }
.ov-site .site-key.k-gewaehlt { background: var(--accent); color: #111; box-shadow: none; }
.ov-site .site-key.k-schule { background: var(--cyan); color: #062226; box-shadow: none; font-size: 14px; }
.ov-site h3 { font-size: 1.7rem; margin: 0 0 4px; line-height: 1.15; }
.ov-site .status { color: var(--accent2); font-weight: 700; margin: 0 0 16px; }
.ov-site .docs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.ov-site .site-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 26px; border-top: 1px solid var(--line); padding-top: 18px; }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { transform: translateY(30px); opacity: 0; } }

/* ---------- Mobil ---------- */
@media (max-width: 720px) {
  body { font-size: 17px; }
  .sec { padding: 100px 0 80px; min-height: auto; }
  .sec.hero { min-height: 100svh; }
  .sec.plain { padding: 90px 0; }
  .title { margin-bottom: 22px; }
  .bars { height: 220px; }
  .bar em { font-size: 10px; top: -18px; }
  .bar-label { font-size: 11px; }
  .src-group li { flex-direction: column; align-items: flex-start; gap: 8px; }
  .map { width: 100%; border-radius: 0; }
  .nav-inner { columns: 1; }
  .nav a { font-size: 18px; }
  .ov-box { max-height: 92vh; }
}

/* ---------- Pressearchiv ---------- */
.year-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 18px; }
.chip { min-height: 40px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--anth); cursor: pointer; font-weight: 600; font-size: 15px; }
.chip.active, .chip:hover { background: var(--accent); border-color: var(--accent); color: #111; }
.archive .press { padding-right: 22px; }
.press-teaser { color: var(--mute); font-size: 15px; margin-top: 4px; }
.press-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.press-btns .btn { min-width: 150px; }

.stat-suf { font-size: .5em; font-weight: 700; margin-left: .15em; white-space: nowrap; }

/* Anruf-Rückfrage */
.ov-call { max-width: 440px; text-align: center; }
.ov-call h2 { margin: 0 0 14px; }
.call-num { font-size: 1.6rem; font-weight: 800; color: var(--accent); margin: 0 0 4px; white-space: nowrap; }
.call-who { color: var(--mute); margin: 0; }
.call-btns { white-space: nowrap; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 26px; }

/* Fenster: kleine Fotos/PDFs als Pop-up */
.wins { display: grid; grid-template-columns: repeat(auto-fill, 220px); align-items: start; gap: 16px; margin: 26px 0 6px; }
.win { width: 100%; padding: 0; border: 0; background: none; color: var(--text); text-align: left; cursor: pointer; font: inherit; display: block; height: auto; align-self: start; vertical-align: top; }
.win-thumb { width: 100%; }
.win-thumb { position: relative; display: block; aspect-ratio: 4/3; border-radius: 12px; overflow: hidden; background: var(--anth); border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(0,0,0,.35); transition: transform .25s, border-color .25s; }
.win-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.win-doc { display: grid; place-items: center; height: 100%; font-weight: 800; font-size: 28px; color: var(--accent); }
.win-badge { position: absolute; right: 8px; bottom: 8px; min-width: 34px; height: 34px; padding: 0 8px; border-radius: 999px; background: var(--accent); color: #111; font-weight: 800; font-size: 13px; display: grid; place-items: center; }
.win:hover .win-thumb, .win:focus-visible .win-thumb { transform: translateY(-3px); border-color: var(--accent); }
.win-title { display: block; margin-top: 10px; font-size: 15px; line-height: 1.35; color: var(--mute); }
.quote .wins, .wins-center .wins { justify-content: center; }
.wins-center .wins { margin-top: 34px; }
.quote .wins:has(> .win:only-child) { justify-content: center; }
.quote .win { text-align: center; }
.ov-win { max-width: 1100px; padding: 0; background: #111; overflow: hidden; display: flex; flex-direction: column; }
.ov-win .ov-content { background: #000; display: flex; justify-content: center; }
.ov-win .ov-content img { max-height: 74vh; width: auto; max-width: 100%; display: block; }
.ov-win .ov-content video { max-height: 74vh; width: auto; max-width: 100%; display: block; background: #000; }
.ov-win.is-pdf .ov-content iframe { width: 100%; height: 74vh; border: 0; background: #111214; display: block; }
.win-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 14px 20px; }
.win-cap strong { display: block; }
.win-cap span { color: var(--mute); font-size: 14px; }
.win-btns { display: flex; gap: 10px; }
@media (max-width: 640px) {
  .wins { grid-template-columns: 1fr 1fr; }
  .ov-win.is-pdf .ov-content iframe { height: 68vh; }
  .win-cap span { display: none; }
  .win-foot { padding: 12px 16px; }
}

/* Quellenverweise im Text */
.fn { display: inline-grid; place-items: center; min-width: 1.45em; height: 1.45em; padding: 0 .3em; margin: 0 .08em 0 .15em; vertical-align: .45em; border-radius: 999px; border: 0; background: rgba(255,122,26,.18); color: var(--accent2); font-family: inherit; font-weight: 700; font-size: .62em; line-height: 1; cursor: pointer; transition: background .2s, color .2s; }
.fn:hover, .fn:focus-visible { background: var(--accent); color: #111; }
.ov-fn { max-width: 560px; }
.fn-head { color: var(--accent); font-weight: 800; letter-spacing: .04em; text-transform: uppercase; font-size: 14px; margin: 0 0 10px; }
.fn-text { font-size: 1.15rem; line-height: 1.5; margin: 0; }
.fn-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }
.fn-btns .btn[hidden] { display: none; }
.fn-btns .btn[hidden] + .btn { grid-column: 1 / -1; }
.src-nr { flex: 0 0 auto; display: inline-grid; place-items: center; min-width: 30px; height: 30px; padding: 0 6px; border-radius: 999px; background: rgba(255,122,26,.18); color: var(--accent2); font-weight: 800; font-size: 14px; }
.sources li.hl { background: rgba(255,122,26,.14); border-radius: 10px; transition: background .4s; }
.src-text { flex: 1; }
.win-btns [hidden] { display: none; }
.ov-win .ov-close { background: rgba(0,0,0,.65); color: #fff; }
.ov-win .ov-close:hover { background: var(--accent); color: #111; }
.wins:has(> .win:only-child) { grid-template-columns: min(100%, 300px); }
.archive .press[hidden], .press[hidden] { display: none; }

.quote-btn { display: flex; justify-content: center; margin-top: 22px; }
.quote-row { display: flex; align-items: center; justify-content: center; gap: 40px; margin-top: 30px; flex-wrap: wrap; }
.quote-row .quote-btn { margin-top: 0; flex: 0 0 auto; }
.quote-row .wins { margin: 0; flex: 0 0 auto; width: min(100%, 300px); }
@media (max-width: 760px) { .quote-row { flex-direction: column; gap: 22px; } }

/* ---------- Vorher-nachher-Vergleich ---------- */
.ab { position: relative; width: min(100%, 900px); margin: 44px auto 0; border-radius: 16px; overflow: hidden; background: #fff; user-select: none; -webkit-user-select: none; touch-action: pan-y; cursor: ew-resize; box-shadow: 0 20px 60px rgba(0,0,0,.45); }
.ab img { display: block; width: 100%; height: auto; pointer-events: none; }
.ab-layer { position: absolute; inset: 0; pointer-events: none; }
.ab-layer-a { clip-path: inset(0 calc(100% - var(--p)) 0 0); }
.ab-layer-b { clip-path: inset(0 0 0 var(--p)); }
.ab .ab-a { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ab-line { position: absolute; top: 0; bottom: 0; left: var(--p); width: 4px; margin-left: -2px; background: var(--accent); pointer-events: none; }
.ab-knob { position: absolute; top: 50%; left: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; background: var(--accent); color: #111; font-weight: 800; font-size: 22px; line-height: 56px; text-align: center; letter-spacing: -.05em; box-shadow: 0 6px 20px rgba(0,0,0,.35); }
.ab-lab { position: absolute; top: 66%; transform: translateY(-50%); padding: 8px 14px; border-radius: 999px; background: rgba(11,11,12,.86); color: #fff; font-size: 15px; line-height: 1.2; white-space: nowrap; pointer-events: none; }
.ab-lab strong { color: var(--accent); font-size: 20px; font-weight: 800; }
.ab-lab { box-shadow: 0 6px 18px rgba(0,0,0,.3); }
.ab-lab-a { right: calc(50% + 14px); }
.ab-lab-b { left: calc(50% + 14px); }
.ab-range { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; clip: rect(0 0 0 0); }
.ab:focus-within .ab-knob { outline: 3px solid #fff; outline-offset: 2px; }
.ab-hint { text-align: center; color: var(--mute); font-size: 15px; margin: 14px 0 0; }
@media (max-width: 560px) { .ab { margin-top: 32px; border-radius: 12px; } .ab-lab { top: auto; bottom: 10px; transform: none; padding: 6px 10px; font-size: 0; } .ab-lab strong { font-size: 14px; } .ab-lab-a { right: auto; left: 10px; } .ab-lab-b { left: auto; right: 10px; } .ab-knob { width: 44px; height: 44px; margin: -22px 0 0 -22px; line-height: 44px; font-size: 18px; } }

/* ---------- Ausschnitt mit Link aufs ganze Dokument ---------- */
.figure.has-full { width: min(100% - 32px, 960px); }
.full-btn { text-align: center; margin-top: 18px; }

/* ---------- Zitat-Sprechblasen als Karussell ---------- */
.bub-car { width: min(100% - 32px, 1240px); margin: 40px auto 10px; }
.bub-track { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 2px 26px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.bub-track::-webkit-scrollbar { display: none; }
.bub { flex: 0 0 calc((100% - 44px) / 3); scroll-snap-align: start; position: relative; text-align: left; font: inherit; color: var(--text); background: #1c1d21; border: 1px solid var(--line); border-radius: 22px; border-bottom-left-radius: 6px; padding: 18px 54px 16px 20px; cursor: pointer; display: flex; flex-direction: column; align-items: flex-start; transition: transform .25s ease, border-color .25s ease, background .25s ease; }
.bub::after { content: ""; position: absolute; bottom: -9px; left: 26px; width: 18px; height: 18px; background: inherit; border: 1px solid var(--line); border-top: 0; border-left: 0; transform: rotate(45deg); transition: border-color .25s ease; }
.bub:hover, .bub:focus-visible { transform: translateY(-4px); border-color: var(--accent); background: #24252a; }
.bub:hover::after, .bub:focus-visible::after { border-color: var(--accent); }
.bub-date { display: inline-block; background: var(--accent); color: #111; font-weight: 800; font-size: 13px; line-height: 1; padding: 6px 10px; border-radius: 999px; margin-bottom: 10px; }
.bub-q { display: block; font-size: 17px; line-height: 1.4; font-weight: 600; flex: 1; }
.bub-who { display: block; color: var(--mute); font-size: 13px; margin-top: 10px; }
.bub-plus { position: absolute; right: 14px; top: 14px; width: 28px; height: 28px; border-radius: 50%; background: rgba(255,122,26,.15); color: var(--accent); font-weight: 800; line-height: 28px; text-align: center; font-size: 16px; }
.bub-nav { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 4px; }
.bub-nav button { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: #1c1d21; color: #fff; font-size: 28px; line-height: 1; cursor: pointer; transition: background .2s, border-color .2s, opacity .2s; }
.bub-nav button:hover:not(:disabled) { background: var(--accent); border-color: var(--accent); color: #111; }
.bub-nav button:disabled { opacity: .3; cursor: default; }
.bub-count { color: var(--mute); font-size: 14px; min-width: 90px; text-align: center; }
.ov-bub { max-width: 680px; }
.bub-o-date { display: inline-block; background: var(--accent); color: #111; font-weight: 800; font-size: 14px; padding: 6px 12px; border-radius: 999px; margin: 0 0 16px; }
.bub-o-q { margin: 0 0 16px; font-size: clamp(22px, 3.4vw, 30px); line-height: 1.25; font-weight: 800; letter-spacing: -.01em; color: #fff; }
.bub-o-q.is-indirect { font-weight: 600; font-style: italic; }
.bub-o-who { color: var(--mute); font-size: 15px; margin: 0 0 14px; }
.bub-o-note { font-size: 16px; border-left: 3px solid var(--accent); padding-left: 14px; margin-bottom: 18px; }
.bub-o-note:empty { display: none; }
.bub-o-note p { margin: 0 0 8px; }
@media (max-width: 1000px) { .bub { flex-basis: calc((100% - 22px) / 2); } }
@media (max-width: 640px) { .bub { flex-basis: 84%; } .bub-q { font-size: 16px; } .bub-track { align-items: flex-start; } }
#ov-zoom.is-doc .ov-close { position: fixed; top: 16px; right: 16px; background: #111214; color: #fff; }

/* Cover-Flow-Darstellung (per JS aktiviert) */
.bub-car.cf { perspective: 1600px; overflow: hidden; padding: 10px 0 0; }
.bub-car.cf .bub-track { position: relative; overflow: visible; display: block; padding: 0; touch-action: pan-y; transform-style: preserve-3d; }
.bub-car.cf .bub { position: absolute; left: 50%; top: 50%; width: min(420px, 80vw); margin-left: calc(min(420px, 80vw) / -2); transition: transform .55s cubic-bezier(.2,.8,.2,1), filter .55s ease, opacity .55s ease, border-color .25s ease, background .25s ease; will-change: transform; }
.bub-car.cf .bub.is-active { border-color: rgba(255,122,26,.55); background: #22232a; box-shadow: 0 24px 60px rgba(0,0,0,.5); }
.bub-car.cf .bub:not(.is-active) { cursor: pointer; }
.bub-car.cf .bub-q { font-size: 19px; }
@media (max-width: 640px) { .bub-car.cf .bub-q { font-size: 17px; } }

/* ---------- Zwei Daten im Vergleich ---------- */
.vs { width: min(100% - 32px, 960px); margin: 6px auto 34px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; }
.vs-side { background: #1c1d21; border: 1px solid var(--line); border-radius: 18px; padding: 18px 22px; }
.vs-b { border-color: var(--accent); }
.vs-date { display: block; font-size: clamp(30px, 4.4vw, 48px); line-height: 1; font-weight: 800; letter-spacing: -.02em; color: #fff; }
.vs-b .vs-date { color: var(--accent); }
.vs-lab { display: block; margin-top: 8px; color: var(--mute); font-size: 15px; line-height: 1.35; }
.vs-mid { text-align: center; color: var(--accent); font-weight: 800; font-size: 15px; line-height: 1.25; max-width: 150px; }
.vs-arrow { display: block; width: 90px; height: 3px; background: var(--accent); margin: 0 auto 8px; position: relative; }
.vs-arrow::after { content: ""; position: absolute; right: -2px; top: -6px; border: 7.5px solid transparent; border-left: 11px solid var(--accent); border-right: 0; }
@media (max-width: 640px) { .vs { grid-template-columns: 1fr; gap: 10px; } .vs-mid { max-width: none; } .vs-arrow { width: 3px; height: 34px; } .vs-arrow::after { right: -6px; top: auto; bottom: -9px; border: 7.5px solid transparent; border-top: 11px solid var(--accent); border-bottom: 0; } }

/* ---------- Prüfliste ---------- */
.checks { width: min(100% - 32px, 900px); margin: 34px auto 10px; }
.checks-title { font-size: 22px; font-weight: 800; margin: 0 0 14px; letter-spacing: -.01em; }
.checks-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 10px; }
.checks-list li { display: flex; align-items: center; gap: 12px; background: #1c1d21; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; font-size: 16px; line-height: 1.3; }
.checks-ico { flex: 0 0 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 16px; }
.is-no .checks-ico { background: rgba(255,80,60,.16); color: #ff6a4d; }
.is-ok .checks-ico { background: rgba(80,200,120,.16); color: #5fd38a; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.textsec .vs { width: 100%; margin: 34px 0 30px; }
.vs-date.is-word { font-size: clamp(26px, 3.6vw, 40px); }


/* ---------- Unterlagen (Abschnitt und eigene Seite) ---------- */
.dk-head-btns { display: flex; flex-wrap: wrap; gap: 12px; margin: 8px 0 18px; }
.dk-head-btns .btn { white-space: normal; text-align: center; line-height: 1.25; padding-top: 10px; padding-bottom: 10px; }
.dk-note { max-width: 68ch; font-size: 15px; color: var(--mute); background: #1c1d21; border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 0 12px 12px 0; padding: 12px 16px; margin: 0; }
.dk-note strong { color: var(--text); }

.dk-grid { width: 100%; max-width: 1480px; margin: 0 auto; padding: 0 clamp(20px, 3vw, 40px); }
.dk-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
button.dk-card { font: inherit; text-align: left; width: 100%; cursor: pointer; }
.dk-card { display: flex; gap: 14px; align-items: flex-start; text-decoration: none; color: var(--text); background: #1c1d21; border: 1px solid var(--line); border-radius: 14px; padding: 12px; transition: border-color .2s, background .2s; height: 100%; }
.dk-card:hover { border-color: rgba(255,122,26,.6); }
.dk-card.is-active { border-color: var(--accent); background: #24211e; }
.dk-thumb { flex: 0 0 78px; height: 104px; border-radius: 8px; overflow: hidden; background: #fff; }
.dk-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.dk-meta { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.dk-anl { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.dk-t { font-weight: 700; font-size: 16px; line-height: 1.3; }
.dk-d { font-size: 14px; line-height: 1.4; color: var(--mute); }
.dk-s { font-size: 13px; color: var(--mute); opacity: .8; margin-top: 2px; }

.docsec .dk-note { margin: 0 0 22px; }
.docsec .dk-head-btns { margin-top: 24px; }
@media (max-width: 720px) { .docsec .dk-d { display: none; } .docsec .dk-thumb { flex-basis: 60px; height: 80px; } }
.link-btn { margin-top: 34px; }
.btn.win { width: auto; display: inline-flex; padding: 0 24px; border: 0; background: var(--accent); color: #111; text-align: center; font-weight: 700; height: auto; min-height: 48px; }
.btn.win:hover { background: var(--accent2); }

/* Zwei gleich große Kacheln: amtliches Dokument und unsere Recherche */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 760px; margin-top: 40px; align-items: stretch; }
.duo-card.win { display: flex; flex-direction: column; height: 100%; padding: 14px; border-radius: 16px; background: rgba(28,29,33,.92); border: 1px solid var(--line); }
.duo-card .win-thumb { aspect-ratio: 4/3; background: #fff; box-shadow: none; }
.duo-card .win-thumb img { object-position: top center; }
.duo-k { display: block; margin-top: 14px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.duo-b .duo-k { color: var(--cyan); }
.duo-t { display: block; margin: 6px 0 16px; font-size: 18px; font-weight: 700; line-height: 1.3; flex: 1; }
.duo-btn { width: 100%; pointer-events: none; }
.duo-b .duo-btn { background: transparent; color: var(--text); border: 1.5px solid rgba(255,255,255,.35); }
.duo-card:hover .duo-btn { background: var(--accent2); }
.duo-b:hover .duo-btn { background: rgba(255,255,255,.08); border-color: var(--accent); }
@media (max-width: 600px) { .duo { grid-template-columns: 1fr; } }
.ov-site .docs .btn { white-space: normal; text-align: center; line-height: 1.25; max-width: 100%; }

/* Sprungmarken („Worum geht es?“) */
.jumps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 34px; max-width: 980px; }
.jump { position: relative; display: flex; flex-direction: column; gap: 4px; min-height: 84px; justify-content: center; padding: 16px 38px 16px 16px; border-radius: 14px; background: rgba(28,29,33,.88); border: 1px solid var(--line); color: var(--text); text-decoration: none; transition: border-color .2s, transform .2s, background .2s; }
.jump:hover, .jump:focus-visible { border-color: var(--accent); transform: translateY(-2px); background: rgba(36,33,30,.95); }
.jump-t { font-weight: 700; font-size: 16px; line-height: 1.25; }
.jump-d { font-size: 14px; line-height: 1.4; color: var(--mute); }
.jump-arrow { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #111; font-weight: 800; font-size: 14px; display: grid; place-items: center; }
@media (max-width: 900px) { .jumps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .jumps { grid-template-columns: 1fr; } .jump { min-height: 0; } }

/* Einheitliche Ausrichtung: alles bündig mit der Textspalte, nur Infofenster zentriert */
:root { --pad: clamp(20px, 5vw, 48px); }
.figure, .checks, .vs, .bub-car, .dk-grid { width: min(100% - 2 * var(--pad), var(--wrap) - 2 * var(--pad)); margin-left: auto; margin-right: auto; }
.dk-grid { padding: 0; }
.wrap .figure, .wrap .checks, .wrap .vs, .wrap .bub-car, .wrap .dk-grid { width: 100%; margin-left: 0; margin-right: 0; }
.figure { margin-top: 20px; margin-bottom: 30px; }
.vs { margin-top: 6px; margin-bottom: 34px; }
.checks { margin-top: 34px; margin-bottom: 10px; }
.bub-car { margin-top: 40px; margin-bottom: 10px; }
.fit-small .zoomable, .fit-small .zoomable img { margin-left: 0; margin-right: 0; }
.fit-contain .zoomable img { margin-left: 0; }
.figure figcaption { text-align: left; }
.full-btn { text-align: left; }
.ab { margin-left: 0; margin-right: 0; }
/* Infofenster: zentriert zum Gesamtinhalt */
.wins { justify-content: center; }
.duo { margin-left: auto; margin-right: auto; }
.figure.fit-small, .figure.has-full { width: min(100% - 2 * var(--pad), var(--wrap) - 2 * var(--pad)); }
.fig-credit { display: block; font-size: 13px; margin-top: 6px; opacity: .75; }

/* Balkendiagramm senkrecht mit Grenzwertlinien */
.vb { margin: 34px 0 0; max-width: 980px; background: rgba(22,23,26,.92); border: 1px solid var(--line); border-radius: 18px; padding: 24px clamp(14px, 3vw, 30px) 20px; }
.vb-title { font-weight: 800; font-size: 1.2rem; margin: 0 0 10px; color: var(--text); text-align: left; }
.vb-legend { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; color: var(--mute); margin-bottom: 18px; }
.vb-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 7px; vertical-align: -1px; }
.vb-legend i.vb-dash { height: 0; width: 22px; border-top: 2px dashed #e8e8ea; border-radius: 0; vertical-align: 3px; }
.vb-c0 { background: #9a9ca3; } .vb-c1 { background: var(--accent); }
.vb-plot { position: relative; height: 340px; margin-left: 44px; margin-right: 120px; border-bottom: 1px solid rgba(255,255,255,.35); }
.vb-grid { position: absolute; left: 0; right: 0; height: 0; border-top: 1px solid rgba(255,255,255,.07); }
.vb-grid em { position: absolute; right: calc(100% + 8px); top: -9px; font-style: normal; font-size: 12px; color: var(--mute); font-variant-numeric: tabular-nums; }
.vb-cats { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); }
.vb-cat { display: flex; justify-content: center; align-items: flex-end; height: 100%; }
.vb-bars { display: flex; gap: 2px; align-items: flex-end; height: 100%; width: min(70%, 150px); }
.vb-bar { position: relative; flex: 1; height: var(--h); border-radius: 4px 4px 0 0; transform-origin: bottom; animation: vbgrow 1.1s cubic-bezier(.2,.8,.2,1) both; }
.vb-empty { visibility: hidden; }
.vb-v { position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); font-weight: 800; font-size: 15px; color: var(--text); white-space: nowrap; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.vb-d { font-size: 13px; font-weight: 800; color: #111; background: var(--accent); border-radius: 999px; padding: 2px 9px; }
.vb-plot.no-lines, .vb-xlab.no-lines { margin-right: 0; }
.vb-line { position: absolute; left: 0; right: 0; height: 0; border-top: 2px dashed #e8e8ea; z-index: 2; pointer-events: none; }
.vb-line.vb-l0 { border-top-color: #c9cbd0; } .vb-line.vb-l1 { border-top-color: #ffb27a; }
.vb-line b { position: absolute; left: calc(100% + 8px); top: -9px; width: 112px; font-size: 12px; line-height: 1.3; font-weight: 600; color: var(--text); }
.vb-xlab { font-weight: 700; hyphens: auto; -webkit-hyphens: auto; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); margin-left: 44px; margin-right: 120px; margin-top: 10px; text-align: center; font-size: 14px; color: var(--text); line-height: 1.3; gap: 8px; }
.vb-note { margin: 18px 0 0; font-size: 13px; color: var(--mute); }
@keyframes vbgrow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) { .vb-bar { animation: none; } }
@media (max-width: 600px) { .vb-plot { height: 280px; margin-left: 36px; margin-right: 76px; } .vb-xlab { margin-left: 36px; margin-right: 76px; font-size: 12.5px; } .vb-line b { width: 70px; font-size: 11px; top: -8px; } .vb-v { font-size: 12.5px; } .vb-bars { width: 84%; } }

/* Wachsendes Säulendiagramm (Kosten) */
.kc { margin: 0 0 40px; background: rgba(22,23,26,.9); border: 1px solid var(--line); border-radius: 18px; padding: 24px clamp(14px, 3vw, 30px) 20px; }
.kc-title { font-weight: 800; font-size: 1.2rem; margin: 0 0 10px; color: var(--text); text-align: left; }
.kc-legend { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; color: var(--mute); margin-bottom: 14px; }
.kc-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 7px; vertical-align: -1px; }
.kc-plot { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: clamp(10px, 3vw, 40px); height: 380px; align-items: end; border-bottom: 1px solid rgba(255,255,255,.35); padding-top: 70px; }
.kc-col { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; position: relative; }
.kc-stack { position: relative; width: min(100%, 150px); height: 0; display: flex; flex-direction: column; gap: 2px; transition: height 1.6s cubic-bezier(.33,1,.68,1); transition-delay: calc(var(--i) * .35s); }
.kc.in .kc-stack { height: var(--h); }
.kc-seg { display: block; min-height: 0; flex-basis: 0; }
.kc-seg:first-of-type { border-radius: 4px 4px 0 0; }
.kc-p0 { background: var(--accent); } .kc-p1 { background: #9a9ca3; } .kc-p2 { background: #c2763a; }
.kc-v { position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 6px; white-space: nowrap; font-weight: 800; font-size: clamp(1.3rem, 2.6vw, 2rem); color: var(--text); font-variant-numeric: tabular-nums; line-height: 1; }
.kc-v small { font-size: .55em; font-weight: 700; color: var(--mute); }
.kc-d { font-size: 14px; font-weight: 800; color: #111; background: var(--accent); border-radius: 999px; padding: 3px 10px; opacity: 0; transition: opacity .4s ease 1.9s; }
.kc.in .kc-d { opacity: 1; }
.kc-x { position: absolute; top: calc(100% + 10px); left: 0; right: 0; text-align: center; font-size: 14px; font-weight: 700; color: var(--text); line-height: 1.3; hyphens: auto; -webkit-hyphens: auto; }
.kc-note { margin: 64px 0 0; font-size: 13px; color: var(--mute); }
@media (prefers-reduced-motion: reduce) { .kc-stack { transition: none; } .kc-d { transition: none; } }
@media (max-width: 600px) { .kc-plot { height: 300px; padding-top: 62px; } .kc-x { font-size: 12.5px; } .kc-note { margin-top: 70px; } }

/* Sitzverteilung (Halbkreise) */
.seats { margin: 34px 0 0; max-width: 980px; background: rgba(22,23,26,.92); border: 1px solid var(--line); border-radius: 18px; padding: 24px clamp(14px, 3vw, 30px) 20px; }
.seats-title { font-weight: 800; font-size: 1.2rem; margin: 0 0 16px; color: var(--text); text-align: left; }
.seats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; }
.seats-p { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); margin: 0 0 6px; }
.seats-card svg { display: block; width: 100%; height: auto; overflow: visible; }
.seats-seg { stroke: #16171a; stroke-width: 1.2; transform-origin: 100px 100px; opacity: 0; transform: scale(.85); transition: opacity .5s ease, transform .6s cubic-bezier(.2,.8,.2,1); transition-delay: calc(var(--k) * .12s); }
.seats.in .seats-seg { opacity: 1; transform: none; }
.seats-maj { stroke: #fff; stroke-width: 1.6; stroke-dasharray: 3 2.5; }
.seats-big { font-size: 34px; font-weight: 800; fill: var(--accent); }
.seats-of { font-size: 10px; font-weight: 600; fill: var(--mute); }
.seats-cap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; margin: 8px 0 10px; font-size: 14px; }
.seats-gov { font-weight: 800; color: var(--text); }
.seats-need { color: var(--mute); }
.seats-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; color: var(--mute); }
.seats-legend li.is-gov { color: var(--text); }
.seats-legend i { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.seats-legend b { color: var(--text); }
.seats-note { margin: 18px 0 0; font-size: 13px; color: var(--mute); }
@media (prefers-reduced-motion: reduce) { .seats-seg { transition: none; } }
/* Lange Überschriften auf schmalen Bildschirmen sauber trennen statt abschneiden */
.title, .bigquote, .vb-title, .kc-title, .seats-title, .hb-title { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
/* Jahresfilter: alle Knöpfe gleich groß */
.year-filter { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; max-width: 760px; }
.year-filter .chip { width: 100%; padding: 0 10px; }
/* Überschriften auf Unterseiten ebenfalls trennen */
h1, h2 { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
/* Quellen-Fenster: Knöpfe auf schmalen Bildschirmen untereinander, volle Breite */
@media (max-width: 640px) { .fn-btns { grid-template-columns: 1fr; } .fn-btns .btn { width: 100%; justify-content: center; text-align: center; } }
