@import url("fonts.css");

/* ============ Tokens ============ */
:root {
  color-scheme: light;
  --bg: #f6f4ef;
  --surface: #ffffff;
  --surface-2: #f1efe9;
  --surface-3: #e9e6de;
  --line: #e3e0d8;
  --line-2: #d4d0c6;
  --ink: #14171c;
  --ink-2: #464c55;
  --ink-3: #6c717a;
  --brand: #0f2a4a;
  --accent: #1f56c4;
  --accent-ink: #1a4aa8;
  --accent-soft: #e9f0fc;
  --accent-line: #bcd0f3;
  --series-1: #2a78d6;
  --series-2: #eb6834;
  --grid: #ebe8e1;
  --ja: #1d7a4c;  --ja-soft: #e5f3ec;
  --nein: #b23a22; --nein-soft: #fbeae6;
  --enth: #8a6a00; --enth-soft: #f8f0d8;
  --fakt: #1f56c4; --wert: #7a4fbf; --wert-soft: #f1ebfa;
  --seq-0: #eef3fa; --seq-1: #c7dbf4; --seq-2: #8fb6ea; --seq-3: #4f8ddc; --seq-4: #1d5fae;
  --shadow-1: none;
  --shadow-2: none;
  --r: 6px; --r-s: 4px;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0f1115; --surface: #171a20; --surface-2: #1d2128; --surface-3: #252a33; --line: #2a2f38; --line-2: #363c47;
    --ink: #eef0f3; --ink-2: #b9bec7; --ink-3: #8b919b; --brand: #eef0f3;
    --accent: #6ea0ff; --accent-ink: #8fb5ff; --accent-soft: #1a2436; --accent-line: #2c3f63;
    --series-1: #3987e5; --series-2: #d95926; --grid: #262b33;
    --ja: #4cc38a; --ja-soft: #16291f; --nein: #f0806a; --nein-soft: #2d1a16; --enth: #e0b84a; --enth-soft: #2a2412;
    --fakt: #6ea0ff; --wert: #b294f0; --wert-soft: #231c33;
    --seq-0: #1f2530; --seq-1: #1f3a5e; --seq-2: #2a5590; --seq-3: #3d77c4; --seq-4: #7fb0ee;
    --shadow-1: none; --shadow-2: none;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0f1115; --surface: #171a20; --surface-2: #1d2128; --surface-3: #252a33; --line: #2a2f38; --line-2: #363c47;
  --ink: #eef0f3; --ink-2: #b9bec7; --ink-3: #8b919b; --brand: #eef0f3;
  --accent: #6ea0ff; --accent-ink: #8fb5ff; --accent-soft: #1a2436; --accent-line: #2c3f63;
  --series-1: #3987e5; --series-2: #d95926; --grid: #262b33;
  --ja: #4cc38a; --ja-soft: #16291f; --nein: #f0806a; --nein-soft: #2d1a16; --enth: #e0b84a; --enth-soft: #2a2412;
  --fakt: #6ea0ff; --wert: #b294f0; --wert-soft: #231c33;
  --seq-0: #1f2530; --seq-1: #1f3a5e; --seq-2: #2a5590; --seq-3: #3d77c4; --seq-4: #7fb0ee;
  --shadow-1: none; --shadow-2: none;
}

/* ============ Basis ============ */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 120px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-wrap: break-word; }
.card p, .card li { hyphens: auto; }
a { color: var(--accent-ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.18; margin: 0 0 .5em; letter-spacing: -.012em; color: var(--ink); }
h1 { font-size: clamp(1.85rem, 4.2vw, 2.9rem); overflow-wrap: anywhere; hyphens: auto; }
h2 { font-size: clamp(1.3rem, 2.4vw, 1.65rem); margin-top: 1.8em; }
h3 { font-size: 1.12rem; font-weight: 600; }
h4 { font-family: var(--sans); font-size: .95rem; margin: 0 0 4px; }
p { margin: 0 0 .85em; }
small, .muted { color: var(--ink-3); }
.klein { font-size: .86rem; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; background: var(--surface); padding: 8px; z-index: 10; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.ic { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: -.17em; }

/* ============ Kopf ============ */
.top { background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.top-in { display: flex; align-items: center; gap: 18px; min-height: 64px; flex-wrap: wrap; padding-top: 6px; padding-bottom: 6px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-weight: 700; color: var(--brand); text-decoration: none; font-size: 1.22rem; letter-spacing: -.01em; }
.logo svg { width: 30px; height: 30px; fill: none; stroke: var(--accent); stroke-width: 2.6; }
.logo .dot { fill: var(--accent); stroke: none; }
.ebenen { display: flex; background: var(--surface-2); border-radius: 999px; padding: 3px; gap: 2px; }
.ebene { padding: 5px 12px; border-radius: 999px; text-decoration: none; color: var(--ink-2); font-size: .86rem; white-space: nowrap; }
.ebene small { font-size: .68rem; }
.ebene.on { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: var(--shadow-1); }
.links { margin-left: auto; display: flex; gap: 4px; align-items: center; }
.links a { color: var(--ink-2); text-decoration: none; font-size: .94rem; font-weight: 500; padding: 6px 10px; border-radius: 8px; }
.links a:hover { color: var(--ink); background: var(--surface-2); }
.links a.on { color: var(--accent-ink); background: var(--accent-soft); }
.theme { border: 1px solid var(--line); background: transparent; color: var(--ink-2); border-radius: 9px; width: 36px; height: 36px; cursor: pointer; font-size: 1rem; margin-left: 6px; }
@media (max-width: 860px) { .ebenen { display: none; } }
@media (max-width: 640px) {
  .top-in { gap: 6px; min-height: 56px; }
  .links { margin-left: 0; width: 100%; justify-content: space-between; overflow-x: auto; }
  .links a { padding: 6px 8px; font-size: .9rem; }
  .links a.neben { display: none; }
}

main { padding-top: 28px; padding-bottom: 56px; min-height: 60vh; }
main:focus { outline: none; }
.laden { color: var(--ink-3); }
.crumb { font-size: .86rem; color: var(--ink-3); margin-bottom: 10px; }
.crumb a { color: var(--ink-3); }

/* ============ Bausteine ============ */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; box-shadow: var(--shadow-1); }
.card > h2:first-child, .card > h3:first-child { margin-top: 0; }
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: .74rem; font-weight: 500; padding: 2px 9px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); max-width: 100%; overflow-wrap: anywhere; line-height: 1.5; }
.badge.ki { background: var(--accent-soft); color: var(--accent-ink); }
.badge.ok { background: var(--ja-soft); color: var(--ja); }
.badge.nein { background: var(--nein-soft); color: var(--nein); }
.btn { display: inline-flex; align-items: center; gap: 8px; font: inherit; font-weight: 600; border: 0; background: var(--accent); color: #fff; padding: 11px 18px; border-radius: 11px; cursor: pointer; text-decoration: none; }
.btn:hover { filter: brightness(1.07); }
.btn.leise { background: var(--surface); color: var(--ink); border: 1px solid var(--line-2); font-weight: 500; padding: 8px 14px; font-size: .9rem; }
.chipbtn { font: inherit; font-size: .88rem; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); padding: 6px 13px; border-radius: 999px; cursor: pointer; }
.chipbtn:hover { border-color: var(--accent); color: var(--ink); }
.abschnitt { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 14px; }
.abschnitt h2 { margin: 0; }
.abschnitt a { font-size: .9rem; white-space: nowrap; font-weight: 500; }
.eyebrow { font-family: var(--sans); font-size: .74rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 8px; display: flex; gap: 8px; align-items: center; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); max-width: 100%; overflow-wrap: anywhere; }
.chip.deb-chip { border-color: var(--accent-line); color: var(--accent-ink); background: var(--accent-soft); }
.chip.gross { font-size: .92rem; padding: 8px 14px; text-decoration: none; color: var(--ink); }
.chip.gross .ic { color: var(--accent); }
.chip.gross small { color: var(--ink-3); font-variant-numeric: tabular-nums; }
a.chip.gross:hover { border-color: var(--accent); }
.leerstate { padding: 18px 20px; border: 1px dashed var(--line-2); border-radius: var(--r); color: var(--ink-2); background: var(--surface); }
.hinweis { font-size: .82rem; color: var(--ink-3); border-top: 1px dashed var(--line); padding-top: 9px; margin-top: 12px; }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; }
@media (max-width: 860px) { .grid-2 { grid-template-columns: minmax(0, 1fr); } }
.sp { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 960px) { .sp { grid-template-columns: minmax(0, 1fr); } }
.stack { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.prose { max-width: 760px; }
.prose li { margin-bottom: 6px; }
.lead { font-size: 1.12rem; color: var(--ink-2); max-width: 760px; }
details > summary { cursor: pointer; color: var(--accent-ink); font-size: .9rem; font-weight: 500; }
ul.punkte { padding-left: 1.2em; margin: 0; }
ul.punkte li { margin-bottom: 5px; }

/* ============ Startseite ============ */
.intro { max-width: 760px; margin: 4px 0 36px; }
.intro-text { font-family: var(--serif); font-size: clamp(1.2rem, 2.2vw, 1.45rem); line-height: 1.45; color: var(--ink); margin-bottom: 16px; }
.suche { display: flex; gap: 8px; max-width: 620px; }
.suche input { flex: 1; font: inherit; padding: 10px 12px; border-radius: 4px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); min-width: 0; }
.stand-zeile { font-size: .88rem; color: var(--ink-3); margin-top: 10px; }
.stand-zeile a { color: var(--ink-2); }
.start-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.start-grid > div > section + section { margin-top: 36px; }
@media (max-width: 900px) { .start-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; } }
.themen-liste { margin-top: 48px; }
.themen-liste ul { list-style: none; padding: 0; margin: 0; columns: 3 220px; column-gap: 32px; }
.themen-liste li { padding: 5px 0; border-bottom: 1px solid var(--line); break-inside: avoid; font-size: .95rem; display: flex; justify-content: space-between; gap: 8px; }
.themen-liste li a { color: var(--ink); text-decoration: none; }
.themen-liste li a:hover { text-decoration: underline; }
.themen-liste .muted { font-variant-numeric: tabular-nums; font-size: .85rem; }

/* ============ Debatten-Liste ============ */
.debzeilen { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--ink); }
.debzeilen li { border-bottom: 1px solid var(--line); }
.debzeilen a { display: grid; gap: 2px; padding: 12px 0; color: inherit; text-decoration: none; }
.debzeilen a:hover .dz-titel { text-decoration: underline; text-decoration-thickness: 1px; }
.dz-titel { font-family: var(--serif); font-weight: 600; font-size: 1.12rem; line-height: 1.3; color: var(--ink); }
.dz-frage { color: var(--ink-2); font-size: .92rem; line-height: 1.45; }
.dz-meta { color: var(--ink-3); font-size: .8rem; font-variant-numeric: tabular-nums; }
.debzeilen li.ruhig { opacity: .7; }
.akteure { display: inline-flex; gap: 3px; align-items: center; }
.akteure i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); display: inline-block; }
.spark { display: none; }

/* ============ Listen & Vorgänge ============ */
.liste { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.vg { display: block; padding: 15px 17px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-s); text-decoration: none; color: inherit; transition: border-color .15s; }
.vg:hover { border-color: var(--accent-line); }
.vg .meta { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: .8rem; color: var(--ink-3); margin-bottom: 5px; }
.vg h3 { font-family: var(--sans); font-size: 1rem; font-weight: 600; margin: 0 0 4px; overflow-wrap: anywhere; line-height: 1.35; }
.vg p { margin: 0; color: var(--ink-2); font-size: .91rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bezug { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.liste.kompakt { gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.liste.kompakt li + li { border-top: 1px solid var(--line); }
.zeile { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; padding: 13px 16px; color: inherit; text-decoration: none; }
.zeile:hover { background: var(--surface-2); }
.z-meta { grid-column: 1 / -1; display: flex; gap: 8px; align-items: center; font-size: .78rem; }
.z-titel { font-weight: 600; font-size: .95rem; line-height: 1.35; overflow-wrap: anywhere; hyphens: auto; }
.zeile .chip { justify-self: start; grid-column: 1; }
.zeile .mini-vote { grid-column: 2; grid-row: 2; align-self: start; }
@media (max-width: 600px) { .zeile { grid-template-columns: minmax(0, 1fr); } .zeile .mini-vote { grid-column: 1; grid-row: auto; } }
.filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 14px; }
.filter button { font: inherit; font-size: .86rem; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); padding: 6px 13px; border-radius: 999px; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.filter button.on { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.filterblock { display: grid; gap: 2px; margin-bottom: 6px; }
.filterblock .filter { margin: 0 0 6px; }
.mehr { margin-top: 12px; }
.teil-von { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: 12px; padding: 11px 15px; margin: 2px 0 16px; font-size: .92rem; }
.teil-von a { font-weight: 600; }

/* ============ Fraktionen & Abstimmungen ============ */
.fr { display: inline-flex; align-items: center; gap: 6px; font-size: .88rem; white-space: nowrap; }
.fr i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; background: var(--c); box-shadow: 0 0 0 2px var(--surface); }
.vote { display: grid; grid-template-columns: 130px 1fr; gap: 8px 12px; align-items: baseline; margin: 12px 0; }
.vote dt { font-weight: 600; font-size: .9rem; }
.vote dt.ja { color: var(--ja); } .vote dt.nein { color: var(--nein); } .vote dt.enth { color: var(--enth); }
.vote dd { margin: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; }
@media (max-width: 600px) { .vote { grid-template-columns: 1fr; } }
.mini-vote { display: inline-flex; gap: 3px; align-items: center; font-size: .72rem; color: var(--ink-3); }
.mini-vote i { width: 9px; height: 9px; border-radius: 2px; display: inline-block; }
.zitat { border-left: 3px solid var(--line-2); padding: 2px 0 2px 12px; color: var(--ink-2); font-size: .92rem; margin: 8px 0; }

/* ============ Detailseiten ============ */
.kopf { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; }
.pos { display: grid; gap: 14px; }
.pos article { border-left: 3px solid var(--c, var(--line-2)); padding-left: 13px; }
.pos h4 { margin: 0 0 3px; font-size: .95rem; }
.pos p { margin: 0; color: var(--ink-2); }
.beleg { font-size: .8rem; color: var(--ink-3); }
.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 16px 18px; overflow-wrap: anywhere; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 2px solid var(--accent); }
.timeline .d { font-size: .8rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.timeline .s { font-weight: 600; font-size: .95rem; }
.reden { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 6px; font-size: .86rem; }
.stufen { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); margin: 10px 0 24px; padding: 18px 16px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.stufe { position: relative; padding-top: 30px; font-size: .78rem; color: var(--ink-3); text-align: center; line-height: 1.3; }
.stufe::before { content: ""; position: absolute; top: 11px; left: 0; right: 0; height: 3px; background: var(--line); }
.stufe:first-child::before { left: 50%; } .stufe:last-child::before { right: 50%; }
.stufe i { position: absolute; top: 4px; left: 50%; transform: translateX(-50%); width: 17px; height: 17px; border-radius: 50%; background: var(--surface); border: 3px solid var(--line-2); z-index: 1; }
.stufe.erledigt::before { background: var(--accent); } .stufe.erledigt i { background: var(--accent); border-color: var(--accent); }
.stufe.aktuell i { border-color: var(--accent); background: var(--surface); box-shadow: 0 0 0 5px var(--accent-soft); }
.stufe.aktuell { color: var(--ink); font-weight: 600; }
.stufe.gestoppt i { background: var(--nein); border-color: var(--nein); box-shadow: 0 0 0 5px var(--nein-soft); }
.stufe.gestoppt { color: var(--nein); font-weight: 600; }
.stufe.uebersprungen::before { background: var(--accent); } .stufe.uebersprungen i { width: 9px; height: 9px; top: 8px; border-width: 2px; border-color: var(--accent); border-style: dashed; } .stufe.uebersprungen { font-style: italic; }
@media (max-width: 600px) { .stufe { font-size: 0; padding-top: 22px; } .stufe.aktuell, .stufe.gestoppt { font-size: .72rem; } }

/* ============ Debatte ============ */
.deb-kopf { max-width: 820px; margin-bottom: 4px; }
.deb-kopf .lead { font-family: var(--serif); font-size: 1.25rem; color: var(--ink); line-height: 1.45; margin-bottom: 10px; font-weight: 400; }
.kopf-meta { font-size: .88rem; color: var(--ink-3); display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: baseline; font-variant-numeric: tabular-nums; }
.aktionen { display: inline-flex; gap: 12px; }
.textbtn { font: inherit; font-size: .88rem; background: none; border: 0; padding: 0; color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; cursor: pointer; }
.toc { position: sticky; top: 64px; z-index: 4; display: flex; gap: 20px; overflow-x: auto; padding: 0; margin: 14px 0 28px; background: var(--bg); border-bottom: 1px solid var(--line); scrollbar-width: none; }
.toc::-webkit-scrollbar { display: none; }
.toc a { font-size: .88rem; padding: 10px 0 9px; color: var(--ink-3); text-decoration: none; white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.toc a:hover { color: var(--ink); }
.toc a.on { color: var(--ink); border-bottom-color: var(--ink); }
@media (max-width: 640px) { .toc { top: 92px; gap: 16px; } }
section.block { margin-bottom: 44px; }
section.block > h2 { margin-top: 0; padding-top: 10px; border-top: 1px solid var(--ink); }
.ki-hinweis { display: block; font-size: .78rem; color: var(--ink-3); margin-bottom: 6px; }
.blick { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 40px; align-items: start; }
@media (max-width: 860px) { .blick { grid-template-columns: minmax(0, 1fr); gap: 24px; } }
.blick .gross { font-family: var(--serif); font-size: 1.14rem; line-height: 1.6; font-weight: 400; }
.blick h3 { font-size: 1rem; font-family: var(--sans); margin-top: 18px; }
.seiten-info h3 { font-family: var(--sans); font-size: .9rem; margin-bottom: 10px; }
.landkarte-wrap { overflow-x: auto; }
.landkarte { border-collapse: collapse; width: 100%; min-width: 640px; font-size: .9rem; }
.landkarte th { font-size: .76rem; font-weight: 600; color: var(--ink-2); padding: 0 4px 8px; text-align: center; vertical-align: bottom; }
.landkarte th:first-child { text-align: left; }
.landkarte td { padding: 9px 4px; border-top: 1px solid var(--line); text-align: center; }
.landkarte td:first-child { text-align: left; padding-right: 14px; }
.landkarte td:first-child a { color: var(--ink); text-decoration: none; }
.landkarte td:first-child a:hover { text-decoration: underline; }
.punkt { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--c); }
.punkt.leer { background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); width: 7px; height: 7px; }
.optionen { display: grid; gap: 0; border-top: 1px solid var(--line); }
.option { border-bottom: 1px solid var(--line); }
.option > summary { list-style: none; display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 2px 8px; align-items: baseline; padding: 14px 0; cursor: pointer; color: var(--ink); font-size: 1rem; }
.option > summary::-webkit-details-marker { display: none; }
.option .nr { font-family: var(--serif); font-weight: 600; color: var(--ink-3); grid-row: span 2; font-variant-numeric: tabular-nums; }
.option .otitel { font-family: var(--serif); font-weight: 600; font-size: 1.08rem; }
.option .osub { grid-column: 2 / 3; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; font-size: .8rem; color: var(--ink-3); }
.option .auf { grid-row: 1; grid-column: 3; color: var(--ink-3); transition: transform .2s; align-self: center; }
.option[open] .auf { transform: rotate(180deg); }
.option .inhalt { padding: 0 0 18px 36px; max-width: 980px; }
@media (max-width: 600px) { .option .inhalt { padding: 0 0 16px; } }
.pc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; margin-top: 10px; }
@media (max-width: 700px) { .pc { grid-template-columns: minmax(0, 1fr); gap: 16px; } }
.pc > div { border-left: 2px solid var(--line-2); padding-left: 14px; }
.pc .dafuer { border-left-color: var(--ja); } .pc .dagegen { border-left-color: var(--nein); }
.pc h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); margin-bottom: 6px; }
.pc ul { margin: 0; padding-left: 1.1em; } .pc li { font-size: .92rem; margin-bottom: 8px; }
.streit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
@media (max-width: 860px) { .streit { grid-template-columns: minmax(0, 1fr); gap: 24px; } }
.streit h3 { font-family: var(--sans); font-size: 1rem; margin-bottom: 0; }
.frage-b { border-top: 1px solid var(--line); padding-top: 11px; margin-top: 11px; }
.frage-b h4 { margin: 0 0 4px; font-family: var(--serif); font-size: 1.02rem; font-weight: 600; }
.frage-b p { margin: 0 0 4px; color: var(--ink-2); font-size: .92rem; }
.tab-wrap { overflow-x: auto; }
.tab { border-collapse: collapse; width: 100%; font-size: .9rem; }
.tab th { text-align: left; font-size: .76rem; font-weight: 600; color: var(--ink-2); padding: 6px 12px 6px 0; border-bottom: 1px solid var(--ink); }
.tab td { padding: 8px 12px 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.tab td.j { font-variant-numeric: tabular-nums; color: var(--ink-3); white-space: nowrap; width: 3.5em; }
.tab.ziele td.g { font-weight: 600; width: 32%; }
@media (max-width: 600px) { .tab.ziele, .tab.ziele tbody, .tab.ziele tr, .tab.ziele td { display: block; width: auto; } .tab.ziele thead { display: none; } .tab.ziele tr { border-bottom: 1px solid var(--line); padding: 8px 0; } .tab.ziele td { border: 0; padding: 1px 0; } }
.tab a { color: var(--ink); }
.aufklapp { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 10px; }
.aufklapp .tab { margin-top: 8px; }
.zeitstrahl svg { width: 100%; height: auto; display: block; overflow: visible; }
.zeitstrahl .achse { stroke: var(--line-2); stroke-width: 1.5; }
.zeitstrahl .jahr { font-size: 10px; fill: var(--ink-3); font-family: var(--sans); }
.zeitstrahl .gesetz { fill: var(--accent); stroke: var(--surface); stroke-width: 1.5; cursor: pointer; }
.zeitstrahl .gesetz:hover { fill: var(--accent-ink); }
.zeitstrahl .gescheitert { fill: var(--surface); stroke: var(--ink-3); stroke-width: 1.2; }
.zeitstrahl .heute { stroke: var(--ink-3); stroke-dasharray: 3 3; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--surface); padding: 10px 16px; border-radius: 10px; font-size: .9rem; z-index: 30; box-shadow: var(--shadow-2); }
.balken { display: grid; gap: 8px; }
.balken > div { display: grid; grid-template-columns: 130px minmax(0, 1fr) 28px; gap: 8px; align-items: center; font-size: .86rem; }
.balken .bahn { height: 9px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.balken .bahn span { display: block; height: 100%; background: var(--c, var(--ink-3)); border-radius: 999px; }
.balken b { text-align: right; font-variant-numeric: tabular-nums; }

/* Konflikt (Politikfeld-Lagebilder) */
.konflikt { border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: var(--surface); }
.haltungen { display: grid; gap: 8px; margin-top: 10px; }

/* Matrix */
.mx-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.mx { border-collapse: collapse; width: 100%; font-size: .9rem; min-width: 640px; }
.mx th, .mx td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.mx th { font-weight: 600; font-size: .8rem; color: var(--ink-2); white-space: nowrap; }
.mx td.st { text-align: center; font-size: 1.1rem; font-weight: 700; width: 72px; }
.mx a { color: var(--ink); text-decoration: none; } .mx a:hover { text-decoration: underline; }

/* Karte */
.karte svg { width: 100%; height: auto; display: block; }
.karte path { stroke: var(--surface); stroke-width: 1; cursor: pointer; transition: opacity .12s; }
.karte path:hover, .karte path:focus { stroke: var(--ink); stroke-width: 1.6; outline: none; }
.karte text { font-size: 11px; fill: var(--ink); pointer-events: none; font-weight: 600; paint-order: stroke; stroke: var(--surface); stroke-width: 3px; stroke-linejoin: round; font-family: var(--sans); }
.legende { display: flex; align-items: center; gap: 6px; font-size: .8rem; color: var(--ink-3); flex-wrap: wrap; margin-top: 8px; }
.legende i { width: 18px; height: 10px; display: inline-block; border-radius: 2px; }
.laender { columns: 2 200px; padding-left: 1.1em; }

/* Diagramme */
.charts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.charts .chart.wide { grid-column: 1 / -1; }
.chart { min-width: 0; }
.chart h3 { margin-bottom: 2px; font-size: 1.05rem; }
.chart .einheit { font-size: .82rem; color: var(--ink-3); margin-bottom: 6px; }
.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart .gridl { stroke: var(--grid); stroke-width: 1; }
.chart .axis { fill: var(--ink-3); font-size: 11px; font-variant-numeric: tabular-nums; font-family: var(--sans); }
.chart .zero { stroke: var(--ink-3); stroke-width: 1; }
.chart .ln { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .lbl { font-size: 11px; fill: var(--ink-2); font-weight: 600; font-family: var(--sans); }
.chart .cross { stroke: var(--ink-3); stroke-width: 1; stroke-dasharray: 3 3; }
.chart .leg { display: flex; gap: 14px; font-size: .82rem; color: var(--ink-2); margin-top: 4px; }
.chart .leg i { width: 14px; height: 3px; display: inline-block; vertical-align: middle; margin-right: 5px; border-radius: 2px; }
.chart table { width: 100%; border-collapse: collapse; font-size: .82rem; font-variant-numeric: tabular-nums; }
.chart td, .chart th { padding: 3px 6px; border-bottom: 1px solid var(--line); text-align: right; }
.chart td:first-child, .chart th:first-child { text-align: left; }
.chart .mkl { stroke: var(--ink-3); stroke-width: 1; stroke-dasharray: 2 3; }
.chart .mkc { fill: var(--surface); stroke: var(--ink-2); stroke-width: 1.2; }
.chart .mkt { font-size: 9px; font-weight: 700; fill: var(--ink); font-family: var(--sans); }
.mk-leg { margin: 6px 0 0; padding-left: 1.4em; font-size: .8rem; color: var(--ink-2); }
.chart.wide .mk-leg { columns: 2 280px; column-gap: 24px; }
.tbl-wrap { max-height: 220px; overflow: auto; margin-top: 8px; }
.tip { position: fixed; z-index: 20; pointer-events: none; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 9px; padding: 8px 11px; font-size: .82rem; box-shadow: 0 6px 24px rgba(0,0,0,.16); max-width: 280px; }
.tip b { font-variant-numeric: tabular-nums; }

/* Themen & Quellen */
.themen { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 12px; }
.thema { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: inherit; transition: border-color .15s; }
.thema:hover { border-color: var(--accent-line); }
.thema h3 { margin: 0; display: flex; gap: 8px; align-items: center; } .thema h3 .ic { color: var(--accent); }
.thema .frage { color: var(--ink-2); font-size: .9rem; margin: 0; }
.thema .zahlen { margin-top: auto; display: flex; flex-wrap: wrap; gap: 2px 12px; font-size: .84rem; color: var(--ink-3); }
.thema .zahlen b { color: var(--ink); }
.thema.leer { opacity: .65; }
.qgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 12px; }
.quelle { padding: 14px 16px; }
.quelle h4 { margin: 0 0 2px; font-size: .95rem; }
.quelle .tr { font-size: .78rem; color: var(--ink-3); margin-bottom: 4px; }
.quelle p { font-size: .88rem; color: var(--ink-2); margin: 0; }

.foot { border-top: 1px solid var(--line); padding-top: 22px; padding-bottom: 36px; font-size: .84rem; color: var(--ink-3); }
.foot a { color: var(--ink-2); }
.zeile .chip { align-self: start; }
.blick .gross, .deb-kopf .lead { font-weight: 400; }
@media (max-width: 600px) { .blick .gross { font-size: 1.04rem; } .deb-kopf .lead { font-size: 1.12rem; } .kennzahlen b { font-size: 1.45rem; } }

/* ============ Redaktionelle Optik: flach, Linien statt Kästen ============ */
.badge, .chip { border-radius: 3px; }
.badge.ki { background: transparent; padding: 0; color: var(--ink-3); }
.eyebrow { text-transform: none; letter-spacing: 0; font-weight: 500; font-size: .86rem; color: var(--ink-3); }
.btn { border-radius: 4px; padding: 10px 16px; }
.btn.leise, .chipbtn, .filter button { border-radius: 4px; }
.logo svg { width: 24px; height: 24px; }
.ebenen, .ebene { border-radius: 4px; }
.links a { border-radius: 4px; }
.links a.on { background: transparent; color: var(--ink); text-decoration: underline; text-underline-offset: 6px; }
.liste.kompakt { border-radius: 0; border-left: 0; border-right: 0; background: transparent; border-top: 1px solid var(--ink); }
.zeile { padding: 11px 0; }
.zeile:hover { background: transparent; }
.zeile:hover .z-titel { text-decoration: underline; }
.vg { border-radius: 4px; }
.leerstate { border-radius: 4px; }
.card { border-radius: 4px; }
h2 { font-size: clamp(1.25rem, 2.2vw, 1.5rem); }
/* Absicherung gegen seitliches Scrollen (iOS Safari) */
html, body { overflow-x: clip; }
.sp > *, .stack > *, .blick > *, .streit > *, .grid-2 > *, .start-grid > *, .pc > *, .charts > *, details { min-width: 0; max-width: 100%; }
.chart.wide { max-width: 860px; }
.charts:has(> .chart:only-child) { grid-template-columns: minmax(0, 860px); }
.chip.deb-chip { background: transparent; border: 0; padding: 0; color: var(--ink-3); font-size: .8rem; }
.chip.deb-chip::before { content: "Debatte: "; }
.landkarte-wrap.card { border: 0; padding: 0; background: transparent; }
.teil-von { background: transparent; border: 0; border-left: 2px solid var(--ink); border-radius: 0; padding: 2px 0 2px 12px; }

/* Statische Seiten (v/, t/, d/, uebersicht.html), erzeugt von pipeline/seiten.py */
main.statisch { padding-top: 20px; padding-bottom: 32px; }
.statisch .app-link { margin-top: 2rem; font-weight: 600; }
.statisch-liste { padding-left: 1.1rem; }
.statisch-liste li { margin-bottom: 10px; }
.statisch h3 { margin-top: 1.4rem; }
