/* Startseite (Umbau 2026-11, docs/umbau-2026-11/BAUPLAN.md), geladen nach /css/site-20261113.css.
   Ordnung 2: gleiche Lesefolge je Block, die Fläche richtet sich nach dem Beleg.
   Farbe --daten heißt weiter „mein Ergebnis“: die Zahl 72 % und die gespeicherte Vorhersage.
   Beobachtete Zustände (Anzeige, Raster) bleiben Tinte und Grau. Unter 960 px steht alles
   untereinander in der Lesefolge des HTML. */

:root {
    --gr-railcast: 36px;
    --gr-block: 28px;
    --gr-gross: 72px;
    --gr-klein-arbeit: 20px;
    --punkt-hohl: var(--tinte-2);
}
@media (min-width: 768px) {
    :root {
        --gr-railcast: 48px;
        --gr-block: 32px;
        --gr-gross: 80px;
    }
}
@media (min-width: 1280px) {
    :root {
        --gr-railcast: 52px;
        --gr-block: 34px;
        --gr-gross: 84px;
        --gr-klein-arbeit: 22px;
    }
}

/* ---------- Gemeinsam für die großen Blöcke ---------- */

.block {
    margin-top: var(--abstand);
    padding-top: var(--abstand);
    border-top: 1px solid var(--raster);
}
.block h2 {
    margin: 0;
    font-size: var(--gr-block);
    line-height: 1.1;
}
.block .satz {
    margin-top: 10px;
    max-width: 52ch;
    text-wrap: pretty;
}
.block .text { margin-top: 12px; }
.block .text p { max-width: 52ch; }
.block .text p + p { margin-top: 0.7em; }
.block .status { color: var(--tinte-2); }
.block .weiter { margin-top: 16px; }
.block .quelle { margin-top: 12px; }

/* ---------- AmtsChecker ---------- */

.am-grid { display: grid; gap: 20px; margin-top: 20px; }
.am-bild { margin: 0; }
.am-bild picture { display: block; }
.am-bild img {
    display: block;
    width: 100%;
    max-width: 440px;
    height: auto;
    border: 1px solid var(--raster);
    border-radius: 6px;
}
.am-zeilen { margin: 14px 0 0; padding-left: 1.6em; max-width: 52ch; }
.am-text .text { margin-top: 0; padding-top: 0; }
.am-text .quelle { margin-top: 12px; }
@media (min-width: 960px) {
    .am-grid {
        grid-template-columns: 440px minmax(0, 1fr);
        column-gap: 40px;
        align-items: start;
    }
    .am-bild { margin-top: 0; }
}

/* ---------- Puzzlekreis ---------- */

.pz-grid { display: grid; gap: 20px; margin-top: 20px; }
.pz-text .text { margin-top: 0; padding-top: 0; }
.pz-schritte {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 20px;
}
.pz-schritte figure { margin: 0; max-width: 300px; }
.pz-schritte img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid var(--raster);
    border-radius: 10px;
}
.pz-schritte figcaption {
    margin-top: 8px;
    font-size: var(--gr-klein);
    line-height: 1.4;
    color: var(--tinte-2);
}
@media (min-width: 960px) {
    .pz-grid {
        grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
        column-gap: 48px;
        align-items: start;
    }
    .pz-schritte { grid-template-columns: repeat(3, minmax(0, 240px)); gap: 24px; }
    .pz-schritte figure { max-width: none; margin-top: 0; }
}
@media (max-width: 959px) {
    /* schmal: untereinander, so breit wie nebeneinander bei 1280 (keine seitliche Reihe, Bauplan 4.3) */
    .pz-schritte figure { max-width: 240px; }
}

/* ---------- Sperrmüll Wuppertal ---------- */

.sm-grid { display: grid; gap: 20px; margin-top: 20px; }
.sm-text .text { margin-top: 0; padding-top: 0; }
.sm-karte { margin: 0; }
.stadtplan {
    display: block;
    width: 100%;
    max-width: 420px;
    height: auto;
}
.stadtplan path { stroke: var(--tinte-2); stroke-opacity: 0.45; stroke-width: 1; }
[data-termin="1"] .stadtplan .t1,
[data-termin="2"] .stadtplan .t2,
[data-termin="3"] .stadtplan .t3 { stroke: var(--daten); stroke-opacity: 1; stroke-width: 3; }
@media (min-width: 960px) {
    .sm-grid {
        grid-template-columns: minmax(0, 1fr) 420px;
        column-gap: 48px;
        align-items: start;
    }
    .sm-karte { grid-column: 2; grid-row: 1; margin-top: 0; }
    .sm-text { grid-column: 1; grid-row: 1; }
}

/* ---------- Kombinat ---------- */

.block-kombinat .text { padding-top: 0; }
.kb-grid { display: grid; gap: 24px; margin-top: 20px; }
.kb-verfahren, .kb-fund { margin: 0; min-width: 0; }
.kb-zeichnung { display: block; width: 100%; max-width: 300px; height: auto; }
.kb-fund { padding: 12px 14px; border: 1px solid var(--raster); }
.kb-fund figcaption { font-size: var(--gr-klein); line-height: 1.5; color: var(--tinte-2); }
.kb-fund .datei { margin: 0 0 8px; font-size: 14px; }
.kb-fund pre code { white-space: pre-wrap; overflow-wrap: anywhere; }
@media (min-width: 960px) {
    .kb-grid {
        grid-template-columns: 300px minmax(0, 1fr);
        column-gap: 48px;
        align-items: start;
    }
}

/* ---------- RailCast ---------- */

.block-railcast h2 { font-size: var(--gr-railcast); }
.block-railcast .rc-kopf .satz { margin-top: 8px; }

.rc-grid {
    display: grid;
    gap: 28px;
    margin-top: 24px;
}
.rc-zahl {
    margin: 0;
    color: var(--daten);
    font-size: var(--gr-gross);
    font-weight: var(--w-zahl);
    line-height: 1;
    letter-spacing: -0.02em;
}
.rc-aussage .rc-satz { margin-top: 10px; max-width: 34ch; text-wrap: pretty; }

.rc-raster { margin: 0; }
.rc-raster svg {
    display: block;
    width: 100%;
    max-width: 240px;
    height: auto;
}
.rc-raster .voll { fill: var(--tinte); }
.rc-raster .hohl {
    fill: none;
    stroke: var(--punkt-hohl);
    stroke-width: 2;
}
.rc-legende {
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
    font-size: var(--gr-klein);
    line-height: 1.5;
}
.rc-legende li { display: flex; gap: 8px; align-items: center; }
.rc-legende .zeichen {
    flex: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.rc-legende .zeichen-voll { background: var(--tinte); }
.rc-legende .zeichen-hohl { border: 2px solid var(--punkt-hohl); }

.rc-modell {
    border-top: 1px solid var(--raster);
    padding-top: 20px;
}
.rc-modell h3 {
    margin: 0 0 8px;
    font-size: var(--gr-h2-ab);
    line-height: 1.2;
}
.rc-modell .zeilen { margin: 0; }
.rc-halt { margin: 16px 0 0; }
.rc-halt .halt-titel {
    margin: 0 0 6px;
    font-size: var(--gr-klein);
    font-weight: var(--w-kopf);
}
.rc-halt svg {
    display: block;
    width: 100%;
    max-width: 480px;
    height: auto;
}
.rc-halt text {
    font-family: "Recursive", sans-serif;
    font-size: 16px;
    fill: var(--tinte-2);
}
.rc-halt .achse, .rc-halt .gitter { stroke: var(--raster); stroke-width: 1; }
.rc-halt .schwelle { stroke: var(--tinte-2); stroke-width: 1; stroke-dasharray: 4 4; }
.rc-halt .abfahrt { stroke: var(--tinte); stroke-width: 1.5; }
.rc-halt .anzeige { fill: none; stroke: var(--tinte); stroke-width: 2.5; stroke-linejoin: round; }
.rc-halt .anzeige-plan { fill: none; stroke: var(--tinte); stroke-width: 2.5; stroke-dasharray: 1 5; }
.rc-halt .ende { fill: var(--tinte); }
.rc-halt .vorhersage { fill: var(--daten); }
.rc-halt .wert-vorhersage { fill: var(--daten); font-weight: var(--w-zahl); }
.rc-halt .wert-ende { fill: var(--tinte); font-weight: var(--w-zahl); }
.rc-halt .mitte { text-anchor: middle; }
.rc-halt .ende-text { text-anchor: end; }

.halt-legende {
    list-style: none;
    margin: 10px 0 0;
    padding: 0;
    font-size: var(--gr-klein);
    line-height: 1.5;
}
.halt-legende li { display: flex; gap: 8px; align-items: baseline; }
.halt-legende .zeichen { flex: none; display: inline-block; width: 18px; }
.halt-legende .z-linie { height: 0; border-top: 2.5px solid var(--tinte); transform: translateY(-4px); }
.halt-legende .z-abfahrt { width: 0; height: 12px; border-left: 1.5px solid var(--tinte); margin-inline: 8px; }
.halt-legende .z-vorhersage { width: 10px; height: 10px; border-radius: 50%; background: var(--daten); margin-inline: 4px; }
.halt-legende .z-ende { width: 8px; height: 8px; border-radius: 50%; background: var(--tinte); margin-inline: 5px; }

@media (min-width: 960px) {
    .rc-grid {
        grid-template-columns: minmax(0, 1fr) 200px minmax(0, 1.4fr);
        grid-template-rows: auto 1fr;
        grid-template-areas:
            "aussage raster modell"
            "quelle  quelle modell";
        column-gap: 40px;
        row-gap: 16px;
        align-items: start;
    }
    .rc-aussage { grid-area: aussage; }
    .rc-raster  { grid-area: raster; }
    .rc-quelle  { grid-area: quelle; margin: 0; }
    .rc-modell  {
        grid-area: modell;
        border-top: 0;
        border-left: 1px solid var(--raster);
        padding: 0 0 0 32px;
    }
}

/* ---------- Weitere Arbeiten ---------- */

.weitere-liste {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 24px;
}
.weitere-liste li {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}
.weitere-liste .beleg-klein {
    width: 112px;
    height: 76px;
    margin: 0;
    border: 1px solid var(--raster);
}
.weitere-liste .beleg-klein img,
.weitere-liste .beleg-klein svg { display: block; width: 100%; height: 100%; }
.weitere-liste .quelle { margin-top: 6px; font-size: var(--gr-klein); }
.weitere-liste h3 {
    margin: 0 0 4px;
    font-size: var(--gr-klein-arbeit);
    line-height: 1.2;
}
.weitere-liste p { margin: 0; font-size: var(--gr-verz); }
.weitere-liste p + p { margin-top: 4px; }
@media (min-width: 768px) {
    .weitere-liste { grid-template-columns: 1fr 1fr; column-gap: 40px; }
}

/* ---------- Bedienelemente (erscheinen erst, wenn /startseite-20261123.js `hidden` entfernt) ---------- */

.block [hidden] { display: none !important; }
.bed {
    margin: 16px 0 0;
    padding: 0;
    border: 0;
    min-width: 0;
}
.bed legend {
    padding: 0;
    margin-bottom: 4px;
    font-size: var(--gr-klein);
    color: var(--tinte-2);
}
.bed label {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    margin: 0 16px 0 0;
    padding: 6px 0;
    cursor: pointer;
}
.bed input { margin: 0; accent-color: var(--tinte); }
.bed button {
    font: inherit;
    color: var(--tinte);
    background: none;
    border: 1px solid var(--tinte-2);
    border-radius: 4px;
    padding: 6px 12px;
    margin: 0 8px 8px 0;
    cursor: pointer;
}
.bed label:hover { outline: 1px solid var(--tinte); outline-offset: 2px; }
.bed button:hover { border-color: var(--tinte); }
.bed button[aria-pressed="true"] {
    border-color: var(--tinte);
    box-shadow: inset 0 0 0 2px var(--tinte);
    font-weight: var(--w-kopf);
}
.rc-aussage .bed { margin-top: 20px; }
.rc-hinweis { margin-top: 4px; }
.am-hinweis { margin: 8px 0 0; max-width: 52ch; }
.am-wortlaut { margin: 6px 0 0; padding-left: 1.2em; max-width: 60ch; font-size: var(--gr-klein); line-height: 1.45; }
.am-wortlaut li + li { margin-top: 4px; }
.pz-schritte[data-aktiv] { grid-template-columns: minmax(0, 320px); }
.pz-schritte[data-aktiv] figure { max-width: 320px; }
.kb-zeichnung .aktiv { stroke-width: 4; }
.kb-zeichnung .linie.aktiv { stroke: var(--tinte); }
.kb-stueck p { margin: 0 0 8px; max-width: 52ch; }
.kb-stueck pre { margin-bottom: 8px; }

/* ---------- Technomodus für die neuen Blockklassen (Muster aus site-20261113.css) ---------- */

body.techno-on .block,
body.techno-on .weitere-liste li {
    background: rgba(255, 0, 255, 0.18) !important;
    border-color: #00ffff !important;
    box-shadow:
        0 0 30px rgba(255, 0, 255, 0.7),
        inset 0 0 20px rgba(0, 255, 255, 0.4) !important;
    animation: techno-card-flicker 4s ease-in-out infinite alternate;
}
body.techno-on .am-bild,
body.techno-on .pz-schritte figure,
body.techno-on .sm-karte,
body.techno-on .kb-verfahren,
body.techno-on .kb-fund {
    background: rgba(255, 0, 255, 0.18) !important;
    border-color: #00ffff !important;
    box-shadow: 0 0 30px rgba(255, 0, 255, 0.7) !important;
    animation: techno-card-flicker 4s ease-in-out infinite alternate;
}
body.techno-on .rc-zahl {
    animation: techno-spin 400ms linear infinite;
    filter: drop-shadow(0 0 15px #ff00ff) drop-shadow(0 0 30px #00ffff);
}
