/* ==========================================================================
   Wohnkrise – design system
   Direction: "Papier" – print vocabulary on the web.
   Warm paper, ink text, hairline rules, one red signal, tabular figures.
   No shadows, no rounded cards, no external requests. One family (Geist).
   ========================================================================== */

:root {
    /* paper and ink */
    --paper: #FBFAF6;
    --paper-2: #F3F0E7;
    --card: #FFFFFF;
    --ink: #14110D;
    --body: #3B352D;
    --muted: #6F675B;

    /* lines */
    --rule: #E3DDD0;
    --rule-strong: #C9C1B0;

    /* accents */
    --signal: #B33A1F;
    --signal-soft: #F3DED6;
    --data: #22365A;
    --sand: #F1EBDC;
    --moss: #2C6449;
    --amber: #7A5410;

    /* type */
    --sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

    /* layout */
    --wrap: 1220px;
    --gutter: clamp(1rem, 4vw, 2.5rem);
    --read: 34rem;
    --radius: 3px;
    --radius-pill: 2px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 6rem;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 1.0625rem;
    line-height: 1.65;
    font-feature-settings: "kern" 1, "ss01" 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-variant-numeric: tabular-nums;
}

img,
svg {
    max-width: 100%;
}

a {
    color: inherit;
}

::selection {
    background: var(--signal-soft);
    color: var(--ink);
}

:focus-visible {
    outline: 2px solid var(--signal);
    outline-offset: 2px;
    border-radius: 1px;
}

/* ---------- Layout ---------- */

.wrap {
    width: min(var(--wrap), 100% - 2 * var(--gutter));
    margin-inline: auto;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -4rem;
    z-index: 100;
    padding: .55rem .9rem;
    background: var(--ink);
    color: var(--paper);
    text-decoration: none;
    font-size: .875rem;
    border-radius: var(--radius);
}

.skip-link:focus {
    top: .75rem;
}

/* ---------- Type ---------- */

h1,
h2,
h3,
h4 {
    margin: 0;
    font-weight: 500;
    letter-spacing: -.03em;
    line-height: 1.1;
    text-wrap: balance;
}

p {
    margin: 0;
    text-wrap: pretty;
}

.label {
    display: inline-block;
    font-size: .6875rem;
    font-weight: 500;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
}

.kicker {
    display: flex;
    align-items: center;
    gap: .625rem;
    margin: 0 0 1.25rem;
    font-size: .8125rem;
    font-weight: 500;
    letter-spacing: .01em;
    color: var(--signal);
}

.kicker::before {
    content: "";
    width: 1.5rem;
    height: 1px;
    background: currentColor;
    flex: none;
}

.kicker-light {
    color: #E9A08B;
}

.muted {
    color: var(--muted);
}

.dek {
    max-width: 46ch;
    font-size: clamp(1.0625rem, 1.4vw, 1.1875rem);
    line-height: 1.6;
    color: var(--body);
}

.link-more {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .875rem;
    font-weight: 500;
    text-decoration: none;
    color: var(--ink);
    border-bottom: 1px solid var(--rule-strong);
    padding-bottom: .1rem;
    transition: color .15s ease, border-color .15s ease;
}

.link-more:hover {
    color: var(--signal);
    border-color: currentColor;
}

.link-more::after {
    content: "→";
    color: var(--signal);
    transition: transform .15s ease;
}

.link-more:hover::after {
    transform: translateX(2px);
}

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    height: 2.75rem;
    padding: 0 1.15rem;
    border: 1px solid var(--ink);
    border-radius: var(--radius);
    background: var(--ink);
    color: var(--paper);
    font-size: .9375rem;
    font-weight: 500;
    text-decoration: none;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}

.btn:hover {
    background: #2A241C;
    border-color: #2A241C;
}

.btn-outline,
.btn-ghost {
    background: transparent;
    color: var(--ink);
    border-color: var(--rule-strong);
}

.btn-outline:hover,
.btn-ghost:hover {
    background: var(--sand);
    border-color: var(--ink);
    color: var(--ink);
}

.btn-light,
.btn-paper {
    background: var(--paper);
    color: var(--ink);
    border-color: var(--paper);
}

.btn-light:hover,
.btn-paper:hover {
    background: var(--sand);
    border-color: var(--sand);
}

/* ---------- Tags and stamps ---------- */

.tag {
    display: inline-flex;
    align-items: center;
    height: 1.4rem;
    padding: 0 .45rem;
    border: 1px solid var(--rule-strong);
    border-radius: var(--radius-pill);
    font-size: .6875rem;
    font-weight: 500;
    letter-spacing: .04em;
    color: var(--body);
    white-space: nowrap;
}

.tag-draft {
    border-style: dashed;
    border-color: var(--rule-strong);
    color: var(--body);
}

.tag-level {
    border-color: var(--rule);
    color: var(--muted);
    background: var(--paper);
}

.badge {
    display: inline-flex;
    align-items: center;
    height: 1.4rem;
    padding: 0 .45rem;
    border: 1px solid var(--rule-strong);
    border-radius: var(--radius-pill);
    background: transparent;
    color: var(--body);
    font-size: .6875rem;
    font-weight: 500;
    letter-spacing: .05em;
    text-transform: uppercase;
    white-space: nowrap;
}

.badge-draft {
    border-style: dashed;
    color: var(--muted);
}

.badge-widerlegt {
    border-color: #D8B4A8;
    color: #93301A;
    background: #FBEFEB;
}

.badge-teilweise {
    border-color: #DCC69B;
    color: var(--amber);
    background: #FBF4E4;
}

.badge-belegt {
    border-color: #A9C9B6;
    color: var(--moss);
    background: #EDF5F0;
}

.badge-vorlaeufig,
.badge-angekuendigt,
.badge-sondierung,
.badge-gerichtlich-geprueft,
.badge-format {
    border-color: #B7C4D6;
    color: var(--data);
    background: #EFF3F8;
}

.badge-in-arbeit {
    color: var(--muted);
}

/* ---------- Header ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    border-bottom: 1px solid var(--rule);
    background: rgba(251, 250, 246, .9);
    backdrop-filter: saturate(140%) blur(10px);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    min-height: 4rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    text-decoration: none;
    flex: none;
    color: var(--ink);
}

.brand-mark {
    position: relative;
    width: .8rem;
    height: .8rem;
    background: var(--signal);
    flex: none;
}

.brand-mark::after {
    content: "";
    position: absolute;
    inset: .22rem -.25rem -.25rem .22rem;
    border: 1px solid var(--ink);
}

.brand-name {
    font-size: 1.0625rem;
    font-weight: 600;
    letter-spacing: -.025em;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 1.35rem;
    margin-left: auto;
    overflow-x: auto;
    scrollbar-width: none;
}

.site-nav::-webkit-scrollbar {
    display: none;
}

.nav-link {
    position: relative;
    padding: .35rem 0;
    font-size: .875rem;
    font-weight: 500;
    color: var(--muted);
    text-decoration: none;
    white-space: nowrap;
    transition: color .15s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: var(--ink);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .18s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--ink);
}

.nav-link:hover::after,
.nav-link.is-active::after {
    transform: scaleX(1);
}

.header-cta {
    flex: none;
    display: inline-flex;
    align-items: center;
    height: 2.125rem;
    padding: 0 .85rem;
    border: 1px solid var(--ink);
    border-radius: var(--radius);
    font-size: .875rem;
    font-weight: 500;
    text-decoration: none;
    color: var(--ink);
    transition: background-color .15s ease, color .15s ease;
}

.header-cta:hover {
    background: var(--ink);
    color: var(--paper);
}

/* ---------- Hero ---------- */

.hero {
    padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(2rem, 4vw, 3.5rem);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: stretch;
}

.hero-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-title {
    margin: 0 0 1.5rem;
    max-width: 18ch;
    font-size: clamp(2.2rem, 4.6vw, 3.8rem);
    font-weight: 500;
    line-height: 1.02;
    letter-spacing: -.045em;
}

.hero-title em {
    font-style: normal;
    color: var(--signal);
}

.hero-dek {
    margin: 0 0 2rem;
    max-width: 44ch;
}

/* Die drei Einstiege stehen unter dem Hero in einer Zeile und teilen sich die
   Breite gleichmäßig; lange Beschriftungen dürfen umbrechen. */
.hero-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .75rem;
    margin-bottom: clamp(2rem, 4vw, 3rem);
}

.hero-actions .btn {
    height: auto;
    min-height: 2.75rem;
    padding-block: .7rem;
    text-align: center;
}

.hero-note {
    margin-top: 2rem;
    padding-top: .875rem;
    border-top: 1px solid var(--rule);
    width: 100%;
    max-width: 30rem;
    font-size: .8125rem;
    line-height: 1.55;
    color: var(--body);
}

.hero-note a {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: var(--rule-strong);
    text-underline-offset: 3px;
}

.hero-note a:hover {
    color: var(--signal);
    text-decoration-color: currentColor;
}

/* Chart card: plain paper with a hairline frame, no shadow. */
.hero-figure {
    display: flex;
    flex-direction: column;
    height: 100%;
    margin: 0;
    padding: 1.25rem 1.25rem 1rem;
    border: 1px solid var(--rule);
    background: var(--card);
}

.hero-figure svg {
    display: block;
    width: 100%;
    height: auto;
    margin-block: auto;
}

.figure-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: .875rem;
    border-bottom: 1px solid var(--rule);
}

.figure-head h2 {
    font-size: .9375rem;
    font-weight: 500;
    letter-spacing: -.01em;
}

.hero-figure figcaption {
    padding-top: .75rem;
    border-top: 1px solid var(--rule);
    font-size: .8125rem;
    line-height: 1.55;
    color: var(--body);
}

/* Chart primitives */
.chart-grid line {
    stroke: var(--rule);
    stroke-width: 1;
    stroke-dasharray: 1 5;
}

.chart-axis {
    stroke: var(--rule-strong);
    stroke-width: 1;
    stroke-dasharray: 2 4;
}

.chart-area {
    fill: url(#rentFade);
}

.chart-line {
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.chart-line-rent {
    stroke: var(--signal);
}

/* Zweite Startgrafik: Löhne nominal, Löhne real, Mieten. */
.chart-line-wage {
    stroke: var(--data);
}

.chart-line-real {
    stroke: var(--data);
    stroke-dasharray: 6 4;
}

/* Zwei Schaubilder im selben Rahmen, umschaltbar ohne JavaScript: zwei
   Radiobuttons steuern, welches Panel sichtbar ist, die Labels sind die Reiter. */
.figure-radio {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    border: 0;
}

.figure-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: .25rem 1.25rem;
    margin-bottom: .875rem;
    border-bottom: 1px solid var(--rule);
}

.figure-tab {
    padding: .3rem 0 .55rem;
    margin-bottom: -1px;
    border-bottom: 2px solid transparent;
    font-size: .8125rem;
    color: var(--muted);
    cursor: pointer;
    transition: color .15s ease, border-color .15s ease;
}

.figure-tab:hover {
    color: var(--ink);
}

.figure-panel {
    display: none;
    flex-direction: column;
    flex: 1;
    margin: 0;
}

#fig-bestand:checked ~ .figure-panel-bestand,
#fig-lohn:checked ~ .figure-panel-lohn {
    display: flex;
}

#fig-bestand:checked ~ .figure-tabs label[for="fig-bestand"],
#fig-lohn:checked ~ .figure-tabs label[for="fig-lohn"] {
    color: var(--ink);
    border-bottom-color: var(--signal);
}

#fig-bestand:focus-visible ~ .figure-tabs label[for="fig-bestand"],
#fig-lohn:focus-visible ~ .figure-tabs label[for="fig-lohn"] {
    outline: 2px solid var(--signal);
    outline-offset: 2px;
}

.chart-label {
    font-weight: 500;
}

.chart-label-wage {
    fill: var(--data);
}

.chart-label-real {
    fill: var(--data);
}

.chart-label-rent {
    fill: var(--signal);
}

.chart-dot-wage {
    fill: var(--data);
}

.chart-dot-real {
    fill: var(--data);
}

.chart-dot-rent {
    fill: var(--signal);
}

.chart-line-income {
    stroke: var(--data);
    stroke-dasharray: 6 4;
}

/* Lücke in der Reihe: die Jahre dazwischen fehlen, also gestrichelt. */
.chart-line-gap {
    stroke-dasharray: 5 5;
}

/* Punktreihe im Glossar: Median und Mittel an derselben Verteilung. */
.block-figure {
    margin: 1.75rem 0 0;
    max-width: 34rem;
}

.block-figure svg {
    display: block;
    width: 100%;
    height: auto;
}

.block-figure figcaption {
    margin-top: .6rem;
    font-size: .8125rem;
    line-height: 1.55;
    color: var(--muted);
}

.plot-dot {
    fill: var(--ink);
    stroke: var(--card);
    stroke-width: 1.5;
}

.plot-line {
    stroke-width: 1.5;
}

.plot-line-median {
    stroke: var(--ink);
}

.plot-line-mean {
    stroke: var(--signal);
    stroke-dasharray: 4 4;
}

.plot-label {
    fill: var(--ink);
    font-size: 11.5px;
}

.plot-label-mean {
    fill: var(--signal);
}

.chart-value {
    font-size: 11px;
    font-variant-numeric: tabular-nums;
    fill: var(--ink);
}

.chart-dot {
    fill: var(--signal);
    stroke: var(--card);
    stroke-width: 2;
}

.chart-text {
    font-family: var(--sans);
    font-size: 12px;
    font-weight: 500;
    fill: var(--muted);
}

.chart-text-rent {
    fill: var(--signal);
}

.chart-text-income {
    fill: var(--data);
}

.chart-tick {
    font-size: 10.5px;
    font-weight: 400;
    fill: var(--muted);
    letter-spacing: .02em;
}

/* ---------- Section frames ---------- */

.section {
    padding-top: clamp(3rem, 6vw, 5rem);
}

.section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    justify-content: space-between;
    gap: 1rem 2rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--ink);
}

/* Raum zwischen der Haarlinie der Überschrift und dem Inhalt darunter. */
.section-head + * {
    margin-top: clamp(1.25rem, 2.4vw, 1.75rem);
}

.section-head h2 {
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    letter-spacing: -.035em;
    line-height: 1.12;
}

.section-head .label {
    display: block;
    margin-bottom: .5rem;
}

.section-head-aside {
    max-width: 34ch;
    font-size: .875rem;
    color: var(--muted);
}

/* ---------- Figures band ---------- */

.figures {
    padding-top: clamp(2rem, 4vw, 3rem);
}

.figure-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0;
    padding: 0;
    list-style: none;
}

.figure-item {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    padding: 1.75rem 1.75rem 1.5rem 0;
    border-top: 1px solid var(--rule);
}

.figure-item + .figure-item {
    padding-left: 1.75rem;
    border-left: 1px solid var(--rule);
}

.figure-value {
    display: flex;
    align-items: baseline;
    gap: .35rem;
    font-size: clamp(1.75rem, 3.2vw, 2.6rem);
    font-weight: 500;
    letter-spacing: -.045em;
    line-height: 1;
}

.figure-item-lead .figure-value {
    font-size: clamp(2.4rem, 5vw, 3.6rem);
}

.figure-unit {
    font-size: .45em;
    font-weight: 500;
    letter-spacing: -.01em;
    color: var(--body);
}

.figure-label {
    max-width: 26ch;
    font-size: .9375rem;
    line-height: 1.45;
    color: var(--body);
}

.figure-note {
    margin-top: auto;
    padding-top: .75rem;
    font-size: .8125rem;
    line-height: 1.5;
    color: var(--muted);
}

.figure-note b {
    font-weight: 500;
    color: var(--body);
}

.figure-source {
    display: block;
    padding-top: .75rem;
    font-size: .8125rem;
    color: var(--muted);
}

.figure-source a {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: var(--rule-strong);
    text-underline-offset: 3px;
}

.figure-source a:hover {
    color: var(--signal);
    text-decoration-color: currentColor;
}

/* ---------- Brief (60 seconds) ---------- */

.brief-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 clamp(2rem, 4vw, 3.5rem);
    margin: 0;
    padding: 0;
    list-style: none;
}

.brief-item {
    display: grid;
    grid-template-columns: 2.25rem minmax(0, 1fr);
    gap: 1rem;
    padding: 1.5rem 0;
    border-top: 1px solid var(--rule);
}

.brief-item:nth-child(1),
.brief-item:nth-child(2) {
    border-top: 0;
}

.brief-rule {
    width: 1.5rem;
    height: 1px;
    margin-top: .8rem;
    background: var(--signal);
}

.brief-item p {
    max-width: 38ch;
    font-size: 1rem;
    line-height: 1.65;
    color: var(--body);
}

.brief-item strong {
    font-weight: 500;
    color: var(--ink);
}

/* ---------- Three ways (bento) ---------- */

.paths {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: 1rem;
}

.paths-column {
    display: grid;
    gap: 1rem;
}

.path-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: .75rem;
    padding: 1.75rem;
    border: 1px solid var(--rule);
    background: var(--card);
    text-decoration: none;
    color: var(--ink);
    transition: background-color .18s ease, border-color .18s ease;
}

.path-card:hover {
    background: var(--sand);
    border-color: var(--rule-strong);
}

.path-card-lg {
    justify-content: space-between;
    min-height: 22rem;
    padding: 2rem;
}

.path-kicker {
    font-size: .75rem;
    font-weight: 500;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
}

.path-title {
    max-width: 22ch;
    font-size: clamp(1.25rem, 2.2vw, 1.75rem);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -.03em;
}

.path-card:not(.path-card-lg) .path-title {
    max-width: none;
    font-size: 1.1875rem;
}

.path-text {
    max-width: 40ch;
    font-size: .9375rem;
    line-height: 1.6;
    color: var(--body);
}

.path-index {
    max-width: 26rem;
    margin: .25rem 0 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--rule);
}

.path-index li {
    display: flex;
    align-items: baseline;
    gap: .6rem;
    padding: .5rem 0;
    border-bottom: 1px solid var(--rule);
    font-size: .875rem;
    color: var(--body);
}

.path-index li::before {
    content: "";
    flex: none;
    width: .4rem;
    height: 1px;
    background: var(--rule-strong);
    transform: translateY(-.25rem);
}

.path-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--rule);
    font-size: .8125rem;
    color: var(--muted);
}

.arrow {
    color: var(--signal);
    font-size: 1rem;
    line-height: 1;
    transition: transform .18s ease;
}

.path-card:hover .arrow {
    transform: translateX(3px);
}

/* ---------- Topic tiles under the hero ---------- */

.topics {
    padding-top: clamp(2.5rem, 5vw, 4rem);
}

/* Mehr Luft als üblich zwischen der Haarlinie der Überschrift und den Kacheln. */
.topics .section-head + * {
    margin-top: clamp(1.75rem, 3.2vw, 2.5rem);
}

/* Drei Kacheln in einer Reihe über die Satzbreite, jede ein Drittel. */
.topic-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.topic-grid > li {
    display: flex;
}

.topic-card {
    flex: 1;
    gap: .625rem;
    padding: 2rem 1.75rem 1.4rem;
}

.topic-card .path-title {
    max-width: 22ch;
    font-size: clamp(1.25rem, 1.9vw, 1.5rem);
}

.topic-card .path-text {
    max-width: 34ch;
}

/* Ohne Seitenzahl im Fuß bleibt nur der Pfeil, er steht rechts an der Haarlinie. */
.topic-card .path-foot {
    justify-content: flex-end;
    padding-top: .75rem;
}

/* ---------- Split: news and myths ---------- */

.split {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    gap: clamp(2rem, 5vw, 4rem);
    padding-top: clamp(3rem, 6vw, 4.5rem);
}

.split-aside {
    border-left: 1px solid var(--rule);
    padding-left: clamp(1.5rem, 3vw, 2.5rem);
}

.news-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.news-item {
    border-top: 1px solid var(--rule);
}

.news-item:last-child {
    border-bottom: 1px solid var(--rule);
}

.news-link {
    display: grid;
    grid-template-columns: 5.5rem minmax(0, 1fr);
    gap: 1.25rem;
    padding: 1.15rem .75rem 1.15rem 0;
    text-decoration: none;
    transition: background-color .15s ease;
}

.news-link:hover {
    background: var(--paper-2);
}

.news-date {
    padding-top: .2rem;
    font-size: .8125rem;
    color: var(--muted);
}

.news-kicker {
    display: block;
    margin-bottom: .25rem;
    font-size: .6875rem;
    font-weight: 500;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--signal);
}

.news-title {
    max-width: 40ch;
    font-size: 1.0625rem;
    line-height: 1.45;
    color: var(--ink);
}

.myth-list {
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--rule);
}

.myth-list li {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    padding: .95rem 0;
    border-bottom: 1px solid var(--rule);
}

.myth-mark {
    flex: none;
    display: grid;
    place-items: center;
    width: 1.1rem;
    height: 1.1rem;
    margin-top: .2rem;
    border: 1px solid currentColor;
    font-size: .6rem;
    line-height: 1;
}

.myth-mark-widerlegt {
    color: var(--signal);
}

.myth-mark-teilweise {
    color: var(--amber);
}

.myth-mark-belegt {
    color: var(--moss);
}

.myth-claim {
    font-size: .9375rem;
    line-height: 1.45;
}

.verdict {
    display: block;
    margin-top: .2rem;
    font-size: .6875rem;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
}

.verdict-widerlegt {
    color: #93301A;
}

.verdict-teilweise {
    color: var(--amber);
}

.verdict-belegt {
    color: var(--moss);
}

.aside-foot {
    margin-top: 1.25rem;
}

/* ---------- Contribute band ---------- */

.band {
    margin-top: clamp(3.5rem, 7vw, 6rem);
    background: var(--ink);
    color: var(--paper);
}

.band-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: end;
    padding: clamp(2.5rem, 5vw, 4rem) 0;
}

.band .label {
    color: #C9BDB0;
}

.band h2 {
    max-width: 24ch;
    margin: .75rem 0 1rem;
    font-size: clamp(1.75rem, 3.4vw, 2.6rem);
    line-height: 1.05;
    letter-spacing: -.04em;
    color: var(--paper);
}

.band p {
    max-width: 48ch;
    font-size: 1rem;
    line-height: 1.65;
    color: #C6BCAE;
}

.band-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .75rem 1.5rem;
}

.band-actions .link-more {
    color: var(--paper);
    border-color: #4A4238;
}

.band-actions .link-more:hover {
    color: #E9A08B;
    border-color: currentColor;
}

/* ---------- Footer ---------- */

.site-footer {
    padding: 3rem 0 3.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, .8fr));
    gap: clamp(1.5rem, 4vw, 3rem);
    padding-top: 2rem;
    border-top: 1px solid var(--ink);
}

.footer-about p {
    max-width: 42ch;
    margin-top: .875rem;
    font-size: .875rem;
    line-height: 1.6;
    color: var(--muted);
}

.footer-col h2 {
    margin: 0 0 .625rem;
    font-size: .6875rem;
    font-weight: 500;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
}

.footer-col a {
    display: block;
    padding: .22rem 0;
    font-size: .875rem;
    color: var(--body);
    text-decoration: none;
    transition: color .15s ease;
}

.footer-col a:hover {
    color: var(--ink);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ==========================================================================
   Document pages
   ========================================================================== */

.doc-head {
    padding-top: clamp(1.75rem, 4vw, 3rem);
}

.crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .45rem;
    margin-bottom: 2rem;
    font-size: .75rem;
    color: var(--muted);
}

.crumbs a {
    color: var(--muted);
    text-decoration: none;
}

.crumbs a:hover {
    color: var(--ink);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.crumbs [aria-current="page"] {
    color: var(--ink);
}

.crumbs .sep {
    color: var(--rule-strong);
}

.page-title {
    max-width: 22ch;
    margin: 0 0 1.25rem;
    font-size: clamp(2rem, 4.6vw, 3.3rem);
    letter-spacing: -.043em;
    line-height: 1.02;
}

.page-dek {
    max-width: 52ch;
    font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
    line-height: 1.55;
    color: var(--body);
}

.doc-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem 1.5rem;
    margin-top: 1.75rem;
    padding-top: .875rem;
    border-top: 1px solid var(--rule);
    font-size: .75rem;
    color: var(--muted);
}

.meta-sep {
    width: 1px;
    height: .75rem;
    background: var(--rule-strong);
}

/* ---------- Key figures on a doc page ---------- */

.doc-figures {
    margin-top: clamp(2rem, 4vw, 3rem);
    border-top: 1px solid var(--ink);
    border-bottom: 1px solid var(--rule);
}

.decline {
    padding: 1.5rem 0 1.25rem;
}

.decline-rows {
    display: grid;
    gap: .5rem;
}

.decline-row {
    display: grid;
    grid-template-columns: 6.5rem minmax(0, 1fr) 6.5rem;
    gap: 1rem;
    align-items: center;
}

.decline-year {
    font-size: .8125rem;
    color: var(--muted);
}

.decline-track {
    position: relative;
    height: 1.05rem;
    background: var(--paper-2);
    border: 1px solid var(--rule);
}

.decline-bar {
    display: block;
    height: 100%;
}

.decline-bar-full {
    width: 100%;
    background: var(--ink);
}

.decline-bar-now {
    background: var(--signal);
}

.decline-value {
    font-size: .9375rem;
    font-weight: 500;
    text-align: right;
    color: var(--ink);
}

.decline-note {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: .35rem 1rem;
    margin-top: 1rem;
    font-size: .75rem;
    color: var(--muted);
}

/* ---------- Doc grid ---------- */

.doc-grid {
    display: grid;
    /* Textspalte links, Navigation am rechten Rand. Das Lesemaß ist bewusst
       breiter als in einer Randnotiz, damit die Lücke zwischen Text und
       Navigation nicht wie ein Loch wirkt. */
    --read: 44rem;
    grid-template-columns: minmax(0, 1fr) 15rem;
    gap: clamp(2rem, 5vw, 4.5rem);
    padding: clamp(2.5rem, 5vw, 4rem) 0 5rem;
    align-items: start;
}

/* Das Berlin-Dossier behält die alte Ordnung: Kennzahlen links, Text rechts. */
.doc-grid-aside-left {
    grid-template-columns: 15rem minmax(0, 1fr);
}

/* Die Kurzfassung steht im Fließtext, unter der Stand-Zeile: so breit wie die
   Textzeilen, mit Abstand zur ersten Überschrift. */
.doc-body > .summary-box {
    max-width: var(--read);
    margin-bottom: clamp(2.5rem, 4vw, 3.5rem);
}

/* Im Fließtext ist der Kasten Lesetext, keine Randnotiz. */
.doc-body > .summary-box li {
    font-size: .9375rem;
    line-height: 1.55;
}

.doc-aside {
    position: sticky;
    top: 5.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.summary-box {
    padding: 1rem 1.15rem 1.1rem;
    background: var(--paper-2);
    border-left: 2px solid var(--ink);
}

.summary-box .label {
    margin-bottom: .5rem;
}

.summary-box ul {
    margin: 0;
    padding-left: 1rem;
}

.summary-box li {
    margin-bottom: .45rem;
    font-size: .8125rem;
    line-height: 1.5;
    color: var(--body);
}

.summary-box li::marker {
    color: var(--signal);
}

.summary-box li:last-child {
    margin-bottom: 0;
}

.aside-nav-title {
    margin: 0 0 .4rem;
    font-size: .6875rem;
    font-weight: 500;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
}

.aside-nav a {
    display: block;
    padding: .28rem 0 .28rem .7rem;
    border-left: 1px solid var(--rule);
    font-size: .8125rem;
    line-height: 1.4;
    color: var(--muted);
    text-decoration: none;
    transition: color .15s ease, border-color .15s ease;
}

.aside-nav a:hover {
    color: var(--ink);
    border-color: var(--rule-strong);
}

.aside-nav a.is-current {
    color: var(--ink);
    border-color: var(--signal);
    font-weight: 500;
}

.aside-note {
    padding-top: .8rem;
    border-top: 1px solid var(--rule);
    font-size: .8125rem;
    line-height: 1.5;
    color: var(--muted);
}

.doc-body {
    min-width: 0;
}

/* ---------- Blocks ---------- */

.block + .block {
    margin-top: clamp(2.5rem, 4vw, 3.5rem);
    padding-top: clamp(2rem, 3vw, 2.5rem);
    border-top: 1px solid var(--rule);
}

.block h2 {
    max-width: 26ch;
    margin-bottom: 1rem;
    font-size: clamp(1.375rem, 2.2vw, 1.6875rem);
    letter-spacing: -.03em;
    line-height: 1.2;
}

.block p {
    max-width: var(--read);
    margin-bottom: 1rem;
    font-size: 1.0625rem;
    line-height: 1.72;
    color: var(--body);
}

.block p:last-child {
    margin-bottom: 0;
}

.block p a,
.callout a {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: var(--rule-strong);
    text-underline-offset: 3px;
}

.block p a:hover,
.callout a:hover {
    color: var(--signal);
    text-decoration-color: currentColor;
}

/* ---------- Interne Querverweise und Glossarbegriffe ---------- */

/* Ein Glossarbegriff ist ein Link, aber leiser als eine Quelle: dotted statt
   durchgezogen, damit der Unterschied im Text sichtbar bleibt. */
.block p a.term,
.callout a.term,
.checked-list a.term {
    text-decoration: underline dotted;
    text-decoration-thickness: 1px;
    text-decoration-color: var(--rule-strong);
}

.term-wrap {
    position: relative;
}

/* Tooltip ohne JavaScript: standardmäßig für das Auge versteckt (clip), aber im
   Accessibility-Baum vorhanden; bei Hover und Tastaturfokus wird ein Kästchen
   daraus. Auf Touch-Geräten bleibt nur der Link zum Glossar. */
.term-tip {
    position: absolute;
    left: 0;
    bottom: calc(100% + .4rem);
    z-index: 30;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    padding: 0;
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    background: var(--card);
    color: var(--body);
    font-size: .8125rem;
    line-height: 1.45;
}

.term:hover + .term-tip,
.term:focus-visible + .term-tip {
    width: max-content;
    max-width: min(22rem, 70vw);
    height: auto;
    overflow: visible;
    clip-path: none;
    white-space: normal;
    padding: .5rem .625rem;
}

@media (hover: none) {
    .term-tip {
        display: none;
    }
}

.callout {
    max-width: var(--read);
    margin-top: 1.5rem;
    padding: 1rem 1.15rem;
    background: var(--paper-2);
    border-left: 2px solid var(--signal);
    font-size: .9375rem;
    line-height: 1.6;
    color: var(--body);
}

.checked-list {
    display: grid;
    gap: .5rem;
    max-width: var(--read);
    margin: 1.5rem 0;
    padding: 0;
    list-style: none;
}

.checked-list li {
    position: relative;
    padding-left: 1.35rem;
    font-size: .9375rem;
    line-height: 1.6;
    color: var(--body);
}

.checked-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--signal);
}

/* ---------- Inline figures ---------- */

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
    gap: 0;
    margin: 1.75rem 0;
    border-top: 1px solid var(--ink);
    border-bottom: 1px solid var(--rule);
}

.stats-stack {
    grid-template-columns: 1fr;
    margin: 0;
    border-top: 0;
    border-bottom: 0;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: .25rem;
    padding: 1.15rem 1.5rem 1.15rem 0;
}

.stat + .stat {
    padding-left: 1.5rem;
    border-left: 1px solid var(--rule);
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -.035em;
}

.stat-label {
    font-size: .875rem;
    line-height: 1.45;
    color: var(--body);
}

.stat-note {
    font-size: .75rem;
    color: var(--muted);
}

/* ---------- Chronik ---------- */

.chronik-head {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.chronik-head h2 {
    margin: 0;
}

.filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .35rem;
}

.filters[hidden] {
    display: none;
}

.filter {
    display: inline-flex;
    align-items: center;
    height: 1.9rem;
    padding: 0 .6rem;
    border: 1px solid var(--rule-strong);
    border-radius: var(--radius-pill);
    background: transparent;
    color: var(--body);
    font-family: inherit;
    font-size: .8125rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}

.filter:hover {
    background: var(--paper-2);
    color: var(--ink);
}

.filter[aria-pressed="true"] {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--paper);
}

.chronik {
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--ink);
}

.station {
    display: grid;
    grid-template-columns: 7.5rem minmax(0, 1fr);
    gap: 0 clamp(1rem, 2.5vw, 2rem);
    padding: 1.35rem 0;
    border-bottom: 1px solid var(--rule);
    transition: background-color .15s ease;
}

.station:hover {
    background: var(--paper-2);
}

.station[hidden] {
    display: none;
}

.station-when {
    padding-top: .1rem;
    font-size: .875rem;
    font-weight: 500;
    letter-spacing: -.01em;
    color: var(--ink);
}

.station-body h3 {
    max-width: 34ch;
    margin: 0 0 .35rem;
    font-size: 1.0625rem;
    font-weight: 500;
    letter-spacing: -.015em;
    line-height: 1.35;
}

.station-body p {
    max-width: 46ch;
    margin: 0 0 .5rem;
    font-size: .9375rem;
    line-height: 1.6;
    color: var(--body);
}

.station-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .4rem .6rem;
}

.empty-note {
    margin-top: 1rem;
    font-size: .875rem;
    color: var(--muted);
}

/* ---------- Child pages index ---------- */

.child-list {
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--ink);
}

.child-list li {
    border-bottom: 1px solid var(--rule);
}

.child-list a {
    display: grid;
    /* Die Kicker-Spalte wächst mit dem längsten Kicker ("Wohnungsgemeinnützigkeit"),
       sonst läuft der Text in den Titel. */
    grid-template-columns: minmax(8rem, auto) minmax(0, 1fr) 4rem 1rem;
    gap: 1rem;
    align-items: baseline;
    padding: .95rem .5rem .95rem 0;
    text-decoration: none;
    transition: background-color .15s ease;
}

.child-list a:hover {
    background: var(--paper-2);
}

.child-kicker {
    font-size: .75rem;
    color: var(--muted);
}

.child-title {
    font-size: 1.0625rem;
    letter-spacing: -.015em;
    color: var(--ink);
}

.child-meta {
    font-size: .75rem;
    text-align: right;
    color: var(--muted);
}

.child-list a:hover .arrow {
    transform: translateX(3px);
}

/* ---------- Narrow document (Mythen, Aktuell, Daten) ---------- */

.doc-single {
    width: min(56rem, 100% - 2 * var(--gutter));
    margin-inline: auto;
    padding-bottom: 5rem;
}

/* Single-column pages: the head sits on the same left edge as the text. */
.doc-narrow .doc-head {
    width: min(56rem, 100% - 2 * var(--gutter));
}

.summary-wide {
    margin-top: 2.5rem;
}

/* Auch in der einspaltigen Breite ist die Kurzfassung Lesetext. */
.summary-wide .summary-box li {
    font-size: .9375rem;
    line-height: 1.55;
}

/* Auf den einspaltigen Seiten folgt die erste Überschrift direkt auf die
   Kurzfassung – ohne Abstand klebt sie am Kasten. */
.summary-wide + .block {
    margin-top: clamp(2.5rem, 4vw, 3.5rem);
}

/* ---------- Published article ---------- */

.article-body {
    margin-top: 2.5rem;
}

.article-body > * {
    max-width: var(--read);
}

.article-body p,
.article-body li {
    color: var(--body);
    line-height: 1.72;
}

.article-body p {
    margin-bottom: 1.1rem;
}

.article-body h2 {
    margin: 2.5rem 0 .9rem;
    font-size: clamp(1.375rem, 2.2vw, 1.6875rem);
    font-weight: 500;
    letter-spacing: -.03em;
    line-height: 1.2;
}

.article-body h3 {
    margin: 2rem 0 .6rem;
    font-size: 1.125rem;
    font-weight: 500;
}

.article-body ul,
.article-body ol {
    margin: 0 0 1.1rem;
    padding-left: 1.15rem;
}

.article-body li + li {
    margin-top: .35rem;
}

.article-body a,
.source-detail a {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: var(--rule-strong);
    text-underline-offset: 3px;
}

.article-body a:hover,
.source-detail a:hover {
    color: var(--signal);
    text-decoration-color: currentColor;
}

.article-body blockquote {
    margin: 1.5rem 0;
    padding-left: .9rem;
    border-left: 2px solid var(--signal);
}

.article-body table {
    width: 100%;
    margin-bottom: 1.5rem;
    border-collapse: collapse;
    font-size: .9375rem;
}

.article-body th,
.article-body td {
    padding: .5rem .75rem .5rem 0;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--rule);
}

.source-detail a {
    color: var(--ink);
    text-decoration-thickness: 1px;
}

.source-quote {
    margin: .5rem 0 0;
    padding-left: .75rem;
    border-left: 2px solid var(--rule-strong);
    font-size: .8125rem;
    line-height: 1.55;
    color: var(--body);
}

/* ---------- Sources ---------- */

.sources {
    margin-top: clamp(2.5rem, 4vw, 3.5rem);
    padding-top: 1.25rem;
    border-top: 1px solid var(--ink);
}

.sources-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: .5rem 1rem;
    margin-bottom: 1rem;
}

.sources h2 {
    font-size: .75rem;
    font-weight: 500;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
}

.source-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    gap: 0 1.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.source {
    display: grid;
    grid-template-columns: 2.1rem minmax(0, 1fr);
    align-items: start;
    gap: 0 .5rem;
    padding: .55rem 0;
    border-top: 1px solid var(--rule);
    font-size: .8125rem;
    scroll-margin-top: 6rem;
}

.source-index {
    font-size: .75rem;
    line-height: 1.5;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
}

.source-body {
    display: flex;
    flex-direction: column;
    gap: .1rem;
}

/* A citation jumps down here; the rule marks the entry that was asked for. */
.source:target {
    border-top-color: var(--signal);
}

.source:target .source-index {
    color: var(--signal);
}

.source-label {
    color: var(--ink);
}

a.source-label {
    text-decoration: underline;
    text-decoration-color: var(--rule-strong);
    text-underline-offset: 3px;
}

a.source-label:hover {
    color: var(--signal);
    text-decoration-color: currentColor;
}

.source-detail {
    font-size: .75rem;
    color: var(--muted);
}

.source-hint {
    max-width: 52ch;
    margin-top: 1rem;
    font-size: .75rem;
    line-height: 1.5;
    color: var(--muted);
}

/* ---------- Citation markers ---------- */

/* Der Marker sitzt leicht hochgestellt; das Tooltip erscheint darüber, ohne
   JavaScript, und bleibt auf Touch-Geräten weg. */
.cite-wrap {
    position: relative;
}

/* Der Marker selbst sitzt hochgestellt – auch dort, wo kein Tooltip dranhängt
   (Kurzfassung, wiederholte Marker). */
a.cite {
    font-size: .72em;
    line-height: 0;
    vertical-align: super;
    color: var(--muted);
    text-decoration: none;
}

a.cite:hover,
a.cite:focus-visible {
    color: var(--signal);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cite-tip {
    position: absolute;
    right: auto;
    left: 0;
    bottom: calc(100% + .55rem);
    z-index: 30;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    padding: 0;
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    background: var(--card);
    color: var(--body);
    font-size: .8125rem;
    font-variant-numeric: normal;
    line-height: 1.45;
    text-align: left;
    vertical-align: baseline;
}

.cite-tip-label,
.cite-tip-detail {
    display: block;
}

.cite-tip-detail {
    margin-top: .1rem;
    font-size: .75rem;
    color: var(--muted);
}

.cite:hover + .cite-tip,
.cite:focus-visible + .cite-tip {
    width: max-content;
    max-width: min(18rem, calc(100vw - 3rem));
    height: auto;
    overflow: visible;
    clip-path: none;
    white-space: normal;
    padding: .45rem .6rem;
}

/* In Tabellen steht der Marker am rechten Rand der Spalte. Das Tooltip wächst
   deshalb nach links; sonst liefe es aus dem Satzspiegel und der Scroll-Container
   der Tabelle würde scheren. */
.table-wrap .cite-tip {
    left: auto;
    right: 0;
    text-align: right;
}

@media (hover: none) {
    .cite-tip {
        display: none;
    }
}

/* ---------- Onward ---------- */

/* „Weiter“ über der Übersicht: eine Zeile, die zur nächsten Unterseite führt. */
.onward {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: .6rem 1rem;
    margin-bottom: 2rem;
    text-decoration: none;
}

.onward .label {
    flex: none;
    min-width: 3.5rem;
}

.onward-title {
    font-size: 1rem;
    line-height: 1.4;
    padding-bottom: 1px;
    border-bottom: 1px solid var(--rule-strong);
    transition: border-color .15s ease;
}

.onward .arrow {
    font-size: 1rem;
    transition: transform .15s ease;
}

.onward:hover .onward-title {
    border-color: var(--ink);
}

.onward:hover .arrow {
    transform: translateX(4px);
}

/* ---------- Tables ---------- */

.table-wrap {
    overflow-x: auto;
    margin: 1.5rem 0;
    border-top: 1px solid var(--ink);
    border-bottom: 1px solid var(--rule);
}

/* Wo Marker im Text sitzen, darf der Rahmen nicht scheren: der Tooltip liegt
   absolut und würde in einem Scroll-Container abgeschnitten (und macht ihn
   scrollbar). Erst auf schmalen Geräten wird wieder gescrollt, damit die
   Tabelle nicht aus dem Satzspiegel läuft. */
.table-wrap-open {
    overflow-x: visible;
}

@media (max-width: 780px) {
    .table-wrap-open {
        overflow-x: auto;
    }
}

.data-table {
    width: 100%;
    min-width: 700px;
    border-collapse: collapse;
    font-size: .875rem;
}

.data-table th,
.data-table td {
    padding: .7rem 1rem .7rem 0;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--rule);
}

.data-table thead th {
    font-size: .6875rem;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
}

.data-table tbody th {
    font-weight: 500;
    color: var(--ink);
}

.data-table tbody tr:last-child th,
.data-table tbody tr:last-child td {
    border-bottom: 0;
}

.data-table tbody tr:hover {
    background: var(--paper-2);
}

.data-table .num {
    padding-right: 1rem;
    text-align: right;
}

/* Definition unter dem Indikatornamen: gleiche Zelle, kleinere Schrift. */
.data-table .def {
    display: block;
    margin-top: .2rem;
    font-size: .75rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--muted);
}

.table-caption {
    caption-side: bottom;
    padding: .6rem 0;
    text-align: left;
    font-size: .75rem;
    color: var(--muted);
}

/* ---------- Tracker (Berlin) ---------- */

.tracker {
    display: grid;
    gap: .75rem;
    margin: 1.5rem 0 0;
    padding: 0;
    list-style: none;
}

.tracker-item {
    padding: 1.25rem 1.5rem;
    border: 1px solid var(--rule);
    background: var(--card);
}

.tracker-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .5rem 1rem;
}

.tracker-head h3 {
    margin: 0;
    font-size: 1.0625rem;
    letter-spacing: -.01em;
}

.tracker-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .9rem 2rem;
    margin: 1rem 0 0;
}

.tracker-fields dt {
    font-size: .6875rem;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
}

.tracker-fields dd {
    margin: .15rem 0 0;
    font-size: .9375rem;
    line-height: 1.5;
    color: var(--body);
}

.status-legend {
    display: grid;
    gap: .5rem;
    margin: 1.25rem 0 0;
    padding: 0;
    list-style: none;
    font-size: .875rem;
    color: var(--body);
}

.status-legend li {
    display: flex;
    align-items: baseline;
    gap: .6rem;
}

/* ---------- Myths (accordion) ---------- */

.myths {
    margin-top: 2.5rem;
    border-top: 1px solid var(--ink);
}

.myth {
    border-bottom: 1px solid var(--rule);
}

.myth summary {
    display: grid;
    grid-template-columns: 2.25rem 1fr auto 1rem;
    gap: 1rem;
    align-items: baseline;
    padding: 1.1rem 0;
    cursor: pointer;
    list-style: none;
    transition: background-color .15s ease;
}

.myth summary:hover {
    background: var(--paper-2);
}

.myth summary::-webkit-details-marker {
    display: none;
}

.myth-toggle::before {
    content: "+";
    display: inline-block;
    font-size: 1rem;
    line-height: 1;
    color: var(--muted);
    text-align: center;
}

details[open] .myth-toggle::before {
    content: "–";
    color: var(--ink);
}

.myth-number {
    font-size: .8125rem;
    color: var(--muted);
}

.myth summary .myth-claim {
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: -.01em;
}

.myth-body {
    max-width: 62ch;
    padding: 0 0 1.5rem 4.5rem;
}

.myth-body dl {
    margin: 0;
}

.myth-body dt {
    margin-top: 1rem;
    font-size: .6875rem;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
}

.myth-body dd {
    margin: .25rem 0 0;
    font-size: .9375rem;
    line-height: 1.6;
    color: var(--body);
}

/* ---------- Feed ---------- */

.feed {
    margin: 2.5rem 0 3rem;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--ink);
}

.feed-item {
    border-bottom: 1px solid var(--rule);
    scroll-margin-top: 6rem;
}

.feed-item:target .feed-title a {
    text-decoration: underline;
    text-decoration-color: var(--signal);
    text-underline-offset: 4px;
}

.feed-body {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    padding: 1.5rem .5rem 1.75rem 0;
}

.feed-title {
    margin: 0;
    font-size: 1.0625rem;
    font-weight: 500;
    letter-spacing: -.01em;
    line-height: 1.4;
}

.feed-title a {
    color: inherit;
    text-decoration: none;
}

.feed-title a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.feed-text {
    max-width: 704px;
    margin: 0;
    font-size: .9375rem;
    line-height: 1.65;
    color: var(--muted);
}

/* Quellen eines Beitrags stehen direkt darunter, je Eintrag über die volle
   Textbreite statt im Spaltenraster der Seitenliste. */
.feed-sources {
    max-width: 704px;
    margin-top: .35rem;
}

.feed-sources .source-list {
    display: block;
}

.feed-sources .source {
    display: block;
}

.feed-meta {
    display: flex;
    align-items: center;
    gap: .625rem;
}

.feed-date {
    font-size: .8125rem;
    color: var(--muted);
}

.feed-title {
    font-size: 1.0625rem;
    font-weight: 500;
    letter-spacing: -.01em;
    line-height: 1.4;
}

.feed-dek {
    max-width: 56ch;
    font-size: .9375rem;
    line-height: 1.6;
    color: var(--muted);
}

/* ---------- Error page ---------- */

.error-page {
    padding: 6rem 0 8rem;
}

.error-code {
    margin: 0 0 1rem;
    font-size: clamp(3.5rem, 9vw, 6rem);
    font-weight: 500;
    line-height: .95;
    letter-spacing: -.05em;
    color: var(--rule-strong);
}

.error-page .page-dek {
    margin-bottom: 2rem;
}

/* ---------- Reading progress ---------- */

.progress {
    position: fixed;
    inset: 0 auto auto 0;
    z-index: 60;
    width: 100%;
    height: 2px;
    background: transparent;
    pointer-events: none;
}

.progress span {
    display: block;
    width: 100%;
    height: 100%;
    background: var(--signal);
    transform: scaleX(0);
    transform-origin: left;
}

@supports (animation-timeline: scroll()) {
    .progress span {
        animation: read-progress linear both;
        animation-timeline: scroll(root block);
    }

    @keyframes read-progress {
        from { transform: scaleX(0); }
        to { transform: scaleX(1); }
    }
}

/* ---------- Glossary: denser terms ---------- */

.section-glossar .block + .block {
    margin-top: 1.75rem;
}

.section-glossar .block h2 {
    margin-bottom: .35rem;
    font-size: 1.1875rem;
}

.section-glossar .block p {
    font-size: 1rem;
    line-height: 1.65;
}

/* ---------- Responsive ---------- */

@media (max-width: 1040px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .hero-figure {
        height: auto;
        max-width: 34rem;
    }

    /* Unter 1040 px stehen die drei Zahlen untereinander: So bleibt ihre Breite
       gleich, statt die erste Zahl über beide Spalten zu ziehen. */
    .figure-grid {
        grid-template-columns: 1fr;
    }

    .figure-item,
    .figure-item + .figure-item {
        padding-right: 0;
        padding-left: 0;
        border-left: 0;
        border-top: 1px solid var(--rule);
    }

    .figure-item:first-child {
        border-top: 1px solid var(--ink);
    }

    .paths {
        grid-template-columns: 1fr;
    }

    .topic-grid {
        grid-template-columns: 1fr;
    }

    .path-card-lg {
        min-height: 0;
    }

    .split {
        grid-template-columns: 1fr;
    }

    .split-aside {
        padding-left: 0;
        border-left: 0;
        border-top: 1px solid var(--ink);
        padding-top: 1.5rem;
    }

    .doc-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .doc-aside {
        position: static;
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 2rem;
        align-items: start;
    }

    /* Unter dem Text hilft die Seitennavigation nicht mehr; die Kurzfassung
       steht auf schmalen Bildschirmen ohnehin schon oben in der Spalte. */
    .doc-grid:not(.doc-grid-aside-left) > .doc-aside {
        display: none;
    }

    .aside-note {
        display: none;
    }

    .footer-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .footer-about {
        grid-column: 1 / -1;
    }
}

@media (max-width: 780px) {
    body {
        font-size: 1rem;
    }

    .site-header {
        position: static;
    }

    .header-inner {
        flex-wrap: wrap;
        gap: .4rem 1rem;
        min-height: 0;
        padding-block: .7rem .1rem;
    }

    .header-cta {
        display: none;
    }

    .site-nav {
        order: 3;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        width: 100%;
        margin-left: 0;
        gap: .15rem 0;
        padding: .55rem 0 .7rem;
        border-top: 1px solid var(--rule);
        overflow: visible;
    }

    .nav-link {
        font-size: .8125rem;
    }

    .hero-title {
        max-width: none;
        font-size: clamp(2.1rem, 9vw, 2.9rem);
    }

    .hero-actions {
        grid-template-columns: 1fr;
    }

    .figure-grid {
        grid-template-columns: 1fr;
    }

    .figure-item,
    .figure-item + .figure-item,
    .figure-item:nth-child(3) {
        padding-right: 0;
        padding-left: 0;
        border-left: 0;
        border-top: 1px solid var(--rule);
    }

    .figure-item:first-child {
        border-top: 1px solid var(--ink);
    }

    .brief-grid {
        grid-template-columns: 1fr;
    }

    .brief-item:nth-child(2) {
        border-top: 1px solid var(--rule);
    }

    .news-link {
        grid-template-columns: 1fr;
        gap: .3rem;
    }

    .decline-row {
        grid-template-columns: 4.5rem minmax(0, 1fr) 4.75rem;
        gap: .6rem;
    }

    .decline-year,
    .decline-value {
        font-size: .75rem;
    }

    .station {
        grid-template-columns: 1fr;
        gap: .35rem;
    }

    .station-when {
        font-size: .75rem;
        letter-spacing: .08em;
        text-transform: uppercase;
        color: var(--muted);
    }

    .stat,
    .stat + .stat {
        padding: 1rem 0;
        border-left: 0;
        border-top: 1px solid var(--rule);
    }

    .stat:first-child {
        border-top: 0;
    }

    .child-list a {
        grid-template-columns: minmax(0, 1fr) 1rem;
        grid-template-areas:
            "kicker arrow"
            "title arrow"
            "meta arrow";
        row-gap: .2rem;
    }

    .child-kicker { grid-area: kicker; }
    .child-title { grid-area: title; }
    .child-meta { grid-area: meta; text-align: left; }
    .child-list .arrow { grid-area: arrow; align-self: center; }

    .band-inner {
        grid-template-columns: 1fr;
    }

    .doc-aside {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-about {
        grid-column: 1 / -1;
    }

    .myth summary {
        grid-template-columns: 1.75rem 1fr auto .75rem;
        gap: .625rem;
    }

    .myth-body {
        padding: 0 0 1.25rem 2.5rem;
    }

    .tracker-fields {
        grid-template-columns: 1fr;
    }

    .tracker-item {
        padding: 1.15rem 1.25rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition: none !important;
        animation: none !important;
    }
}

@media print {
    .site-header,
    .site-footer,
    .hero-actions,
    .topics,
    .band,
    .filters,
    .aside-nav,
    .onward,
    .progress,
    .skip-link {
        display: none;
    }

    body {
        background: #FFF;
        color: #000;
        font-size: 10.5pt;
    }

    .wrap,
    .doc-single {
        width: 100%;
    }

    .doc-grid {
        display: block;
        padding: 0;
    }

    .doc-aside {
        position: static;
    }

    a {
        color: #000;
        text-decoration: underline;
    }

    .path-card,
    .summary-box,
    .callout,
    .table-wrap,
    .tracker-item,
    .myths,
    .feed,
    .station {
        border-color: #CCC;
        break-inside: avoid;
    }
}
/* ---------- Search ---------- */

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

.search-form {
    display: flex;
    gap: .5rem;
    margin: 1.5rem 0 0;
    max-width: 36rem;
}

.search-input {
    flex: 1 1 auto;
    min-width: 0;
    height: 2.75rem;
    padding: 0 .85rem;
    border: 1px solid var(--rule-strong);
    border-radius: var(--radius);
    background: var(--card);
    color: var(--ink);
    font: inherit;
    font-size: 1rem;
}

.search-input::placeholder {
    color: var(--muted);
}

.search-count,
.search-hint {
    margin: 1.5rem 0 .5rem;
    color: var(--muted);
    font-size: .875rem;
}

.search-empty {
    margin: 2rem 0 .25rem;
    font-size: 1.125rem;
}

.search-results {
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
}

.search-result {
    display: grid;
    gap: .35rem;
    padding: 1.15rem 0;
    border-top: 1px solid var(--rule);
}

.search-result .tag {
    justify-self: start;
}

.search-result-title {
    font-size: 1.1875rem;
    font-weight: 500;
    letter-spacing: -.01em;
    text-decoration: none;
}

.search-result-title:hover {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.search-result-snippet {
    margin: 0;
    color: var(--body);
}

.search-results mark {
    padding: 0 .1em;
    background: var(--signal-soft);
    border-bottom: 1px solid var(--signal);
    color: var(--ink);
}

.search-entry {
    display: flex;
    flex-wrap: wrap;
    gap: .25rem 1.25rem;
    margin-top: 1rem;
}
