/* petrit.dev, Stand 12.11.2026
   Palette „Kiesel & Petrol“ und Startseite als Arbeitsblatt nach Prototyp D (prototypes/d-arbeitsblatt-kiesel):
   RailCast mit Balkengrafik, weitere Arbeiten (sechs mit Bild im Raster, drei als Liste), Kontakt.
   Unterseiten (Forschung, RailCast, Sicherheit, Projekte, Setup, Rechtliches) sind ruhige Textseiten (.text).
   Eine Schriftfamilie (Recursive): proportional für Text, Mono-Achse nur für Code.
   Farbe heißt: mein Ergebnis. Alles andere ist Tinte und Grau.
   Caddy liefert CSS mit „immutable“ aus: Wer diese Datei ändert, gibt ihr einen neuen Namen. */

@font-face {
    font-family: "Recursive";
    src: url("/fonts/recursive.woff2") format("woff2");
    font-weight: 300 1000;
    font-style: normal;
    font-display: swap;
}

:root {
    color-scheme: light dark;
    --seite: #f4f5f3;
    --platte: #e7ebe8;
    --tinte: #283330;
    --tinte-2: #53605a;
    --daten: #176b68;
    --daten-flaeche: #d9eae5;
    --bahn: #465b54;
    --null: #596960;
    --raster: #c4cec8;
    /* Überschriften und Zahlen; --w-kopf und --w-zahl lesen auch werkstatt- und amtschecker-CSS */
    --w-titel: 550;
    --w-kopf: var(--w-titel);
    --w-zahl: var(--w-titel);

    --rand: 16px;
    --abstand: 32px;
    --gr-h1: 32px;
    --gr-h2: 26px;
    --gr-h2-ab: 21px;
    --gr-ergebnis: 24px;
    --gr-text: 17px;
    --gr-verz: 16px;
    --gr-klein: 14px;
}

/* Dunkel: Platten heben sich durch Helligkeit ab, nicht durch Schatten; Gewichte eine Stufe leichter. */
@media (prefers-color-scheme: dark) {
    :root {
        --seite: #191f1d;
        --platte: #252e2a;
        --tinte: #e5ece7;
        --tinte-2: #afbdb4;
        --daten: #80c7be;
        --daten-flaeche: #233f38;
        --bahn: #b3c3b9;
        --null: #a4b4aa;
        --raster: #435148;
        --w-titel: 500;
    }
}
@media (min-width: 768px) {
    :root {
        --rand: 32px;
        --abstand: 40px;
        --gr-h1: 40px;
        --gr-h2: 30px;
        --gr-h2-ab: 22px;
        --gr-ergebnis: 28px;
        --gr-text: 18px;
        --gr-verz: 17px;
    }
}
@media (min-width: 1280px) {
    :root {
        --rand: 80px;
        --abstand: 48px;
        --gr-h1: 44px;
        --gr-h2: 32px;
        --gr-h2-ab: 24px;
        --gr-ergebnis: 32px;
    }
}

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

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--seite);
    color: var(--tinte);
    font-family: "Recursive", sans-serif;
    font-variation-settings: "MONO" 0;
    font-weight: 400;
    font-size: var(--gr-text);
    line-height: 1.55;
    -webkit-hyphens: auto;
    hyphens: auto;
    hyphenate-limit-chars: 10 4 4;
    overflow-wrap: break-word;
}

h1, h2, h3, h4 {
    font-weight: var(--w-titel);
    text-wrap: balance;
}
h1, h2, h3, h4, .profil, .ungetrennt {
    -webkit-hyphens: manual;
    hyphens: manual;
}

a {
    color: inherit;
    text-decoration-line: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
    touch-action: manipulation;
}
a:hover {
    color: var(--daten);
    text-decoration-thickness: 2px;
}
:focus-visible {
    outline: 3px solid var(--tinte);
    outline-offset: 3px;
}

/* Sprunglink: unsichtbar, bis er den Fokus bekommt */
.sprung {
    position: absolute;
    left: 8px;
    top: -60px;
    z-index: 10;
    padding: 8px 12px;
    background: var(--tinte);
    color: var(--seite);
}
.sprung:focus { top: 8px; }
.sprung:hover { color: var(--seite); }

/* Nur für Screenreader */
.nur-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

[id] { scroll-margin-top: 16px; }

.kopf, main, .fuss {
    max-width: calc(1120px + 2 * var(--rand));
    margin-inline: auto;
    padding-inline: var(--rand);
}

.stand {
    color: var(--tinte-2);
    white-space: nowrap;
}
.nobr { white-space: nowrap; }

/* ---------- Kopf ----------
   .logo und .nav-links a[hreflang] sind Haken für techno-20261024.js, der Sprachlink auch für events.js. */

.kopf {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    column-gap: 24px;
    padding-top: 16px;
}

.marke {
    margin: 0;
    font-size: 19px;
    font-weight: var(--w-titel);
    line-height: 1.2;
}
.logo {
    display: inline-block;
    padding-block: 10px;
    text-decoration: none;
}
.logo:hover { text-decoration-line: underline; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 15px;
}
.nav-links a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 8px;
    margin-inline: -8px;
}

/* Kachel zur Werkstatt: Strichzeichnung der Pergola aus dem CAD-Modell (tools/modell_mini.py), als Maske,
   damit sie die Textfarbe annimmt. */
.nav-links .kachel {
    gap: 10px;
    margin: 0;
    padding: 5px 12px 5px 8px;
    border: 1px solid var(--raster);
    background: var(--platte);
    font-weight: var(--w-titel);
    text-decoration: none;
}
.nav-links .kachel:hover,
.nav-links .kachel[aria-current] { border-color: var(--tinte); }
.kachel-bild {
    flex: none;
    width: 76px;
    height: 40px;
    background: currentColor;
    -webkit-mask: url("/werkstatt/pergola-mini-20261112.svg") center / contain no-repeat;
    mask: url("/werkstatt/pergola-mini-20261112.svg") center / contain no-repeat;
}
@media (max-width: 479px) {
    .nav-links { gap: 12px; }
    .nav-links .kachel {
        flex-direction: column;
        gap: 2px;
        padding: 5px 8px 3px;
        font-size: 12px;
        line-height: 1.3;
    }
    .kachel-bild { width: 52px; height: 28px; }
}

/* Startseite: Name groß im h1, daneben Kachel und Sprachlink, darunter das Profil */
.kopf-start { display: block; }
.kopf-zeile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.kopf-start h1 {
    margin: 0;
    font-size: var(--gr-h1);
    line-height: 1.05;
    letter-spacing: -0.01em;
}
.kopf-start .logo { padding-block: 6px; }
.profil {
    margin: 12px 0 0;
    max-width: 52ch;
    text-wrap: pretty;
}

/* ---------- Startseite: Abschnitte ---------- */

:where(.start) p { margin: 0; }
:where(.start) p + p { margin-top: 0.8em; }

.arbeit, .abschnitt {
    margin-top: var(--abstand);
    padding-top: var(--abstand);
    border-top: 1px solid var(--raster);
}
.arbeit h2 {
    margin: 0 0 12px;
    font-size: var(--gr-h2);
    line-height: 1.15;
}
.abschnitt h2 {
    margin: 0 0 16px;
    font-size: var(--gr-h2-ab);
    line-height: 1.15;
}
.aussage p, .abschnitt > p:not(.quelle) { max-width: 62ch; }

.ergebnis {
    color: var(--daten);
    font-size: var(--gr-ergebnis);
    font-weight: var(--w-zahl);
    line-height: 1.2;
}
.aussage .ergebnis { margin-top: 20px; }
.aussage .ergebnis + p { margin-top: 8px; }

.beleg { margin-top: 24px; }
.weiter { margin-top: 20px; }

.quelle {
    color: var(--tinte-2);
    font-size: var(--gr-klein);
    line-height: 1.5;
    max-width: 90ch;
}
.beleg .quelle { margin-top: 12px; }

@media (min-width: 960px) {
    .arbeit {
        display: grid;
        grid-template-columns: repeat(12, minmax(0, 1fr));
        grid-template-rows: auto 1fr;
        column-gap: 24px;
    }
    .aussage { grid-column: 1 / 6; grid-row: 1; }
    .weiter { grid-column: 1 / 6; grid-row: 2; align-self: start; }
    .beleg { grid-column: 6 / 13; grid-row: 1 / 3; margin-top: 6px; }
}

/* RailCast-Balken: Breite der Balken über Klassen, weil die CSP keine style-Attribute erlaubt */
.grafik {
    margin: 0;
    max-width: 560px;
}
.grafik h3 {
    margin: 0;
    font-size: 17px;
    line-height: 1.3;
}
.unterzeile {
    color: var(--tinte-2);
    font-size: var(--gr-klein);
}
.balken {
    list-style: none;
    margin: 16px 0 0;
    padding: 0;
    font-size: 15px;
    font-variant-numeric: tabular-nums;
}
.balken li {
    display: grid;
    grid-template-columns: 4.2em minmax(0, 1fr) 3.2em;
    align-items: center;
    column-gap: 10px;
    min-height: 34px;
}
.vorlauf { color: var(--tinte-2); }
.wert { text-align: right; }
.bahn {
    display: block;
    border-left: 1px solid var(--raster);
    padding-block: 4px;
}
.b {
    display: block;
    height: 10px;
    background: var(--bahn);
}
.hervor .b {
    height: 18px;
    background: var(--daten);
}
.hervor .vorlauf { color: var(--tinte); }
.hervor .wert { font-weight: var(--w-zahl); color: var(--daten); }

.w5  { width: 5%; }
.w14 { width: 14%; }
.w28 { width: 28%; }
.w42 { width: 42%; }
.w54 { width: 54%; }
.w63 { width: 63%; }

/* Weitere Arbeiten mit Bild: Bild oben (3:2, 1-px-Rand, keine Karte), darunter Name und Satz.
   Zeichnungen sind Inline-SVGs ohne Füllfläche; Farben über die Tokens, damit hell und dunkel passen. */
.bildraster {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 32px 28px;
    margin: 0 0 var(--abstand);
    padding: 0;
    list-style: none;
}
@media (min-width: 640px) {
    .bildraster { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1000px) {
    .bildraster { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.bildraster .bild {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    margin-bottom: 12px;
    border: 1px solid var(--raster);
}
.bild-rahmen { margin: 0 0 12px; }
.bild-rahmen .bild { margin-bottom: 0; }
.bild-rahmen .quelle { margin-top: 4px; }
.bildraster a { font-weight: var(--w-kopf); }
.bildraster p {
    margin-top: 4px;
    font-size: var(--gr-verz);
    line-height: 1.5;
}

.zeichnung text {
    font-family: "Recursive", sans-serif;
    font-size: 12px;
    fill: var(--tinte);
}
.zeichnung .mitte { text-anchor: middle; }
.zeichnung .klein { fill: var(--tinte-2); }
.zeichnung .text-akzent { fill: var(--daten); font-weight: var(--w-kopf); }
.zeichnung .linie,
.zeichnung .linie-hell,
.zeichnung .marke,
.zeichnung .akzent {
    fill: none;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.zeichnung .linie { stroke: var(--tinte-2); }
.zeichnung .linie-hell { stroke: var(--raster); }
.zeichnung .marke { stroke: var(--tinte-2); stroke-width: 1; }
.zeichnung .akzent { stroke: var(--daten); }
.zeichnung .gestrichelt { stroke-dasharray: 4 3; }
.zeichnung .ziel { fill: var(--tinte-2); }

/* Weitere Arbeiten ohne Bild */
.verzeichnis {
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
    border-top: 1px solid var(--raster);
}
.verzeichnis li {
    padding-block: 16px;
    border-bottom: 1px solid var(--raster);
}
.verzeichnis a { font-weight: var(--w-titel); }
.verzeichnis p {
    margin-top: 4px;
    font-size: var(--gr-verz);
    line-height: 1.5;
    max-width: 672px;
}
@media (min-width: 768px) {
    .verzeichnis li {
        display: grid;
        grid-template-columns: 176px minmax(0, 672px);
        column-gap: 24px;
        align-items: baseline;
        padding-block: 20px;
    }
    .verzeichnis p { margin-top: 0; }
}
@media (min-width: 1280px) {
    .verzeichnis li { grid-template-columns: 224px minmax(0, 672px); }
}
.abschnitt .weiter { margin: 0 0 20px; }
.abschnitt .quelle + .quelle { margin-top: 4px; }

/* ---------- Grafik K1 (RailCast-Seite) ---------- */

.k1 svg {
    display: block;
    width: 100%;
    max-width: 560px;
    height: auto;
}
.k1 text {
    font-family: "Recursive", sans-serif;
    font-size: 12px;
    fill: var(--tinte);
}
.k1 .k1-titel { font-size: 13px; font-weight: var(--w-titel); }
.k1 .k1-unter { fill: var(--tinte-2); }
.k1 .k1-wert { font-size: 11.5px; fill: var(--tinte-2); font-variant-numeric: tabular-nums; }
.k1 .k1-fokus-wert { font-size: 24px; font-weight: var(--w-zahl); fill: var(--daten); font-variant-numeric: tabular-nums; }
.k1 .k1-skala { font-size: 11.5px; fill: var(--tinte-2); }
.k1 .k1-quelle { font-size: 11.5px; fill: var(--tinte-2); }
.k1 .k1-mitte { text-anchor: middle; }
.k1 .k1-ende { text-anchor: end; }
.k1 .k1-frei {
    paint-order: stroke;
    stroke: var(--seite);
    stroke-width: 4px;
    stroke-linejoin: round;
}
.k1-raster line { stroke: var(--raster); stroke-width: 1; }
.k1-achse { stroke: var(--tinte-2); stroke-width: 1; }
.k1-linie { fill: none; stroke: var(--bahn); stroke-width: 2; stroke-linejoin: round; }
.k1-punkt { fill: var(--bahn); }
.k1-fokus { fill: var(--daten); }

/* ---------- Tabelle der Zertifikate (Forschungsseite) ---------- */

.zelle table {
    width: 100%;
    border-collapse: collapse;
    font-variant-numeric: tabular-nums;
}
.zelle caption {
    caption-side: top;
    padding-bottom: 14px;
    text-align: left;
    font-size: 17px;
    font-weight: var(--w-titel);
}
.zelle-frage {
    display: block;
    margin-top: 4px;
    font-size: var(--gr-klein);
    font-weight: 400;
    color: var(--tinte-2);
}
.zelle th {
    padding: 0 0 6px;
    text-align: left;
    font-size: 13px;
    font-weight: 400;
    color: var(--tinte-2);
}
.zelle td {
    padding: 12px 0;
    border-top: 1px solid var(--raster);
    font-size: 15px;
    vertical-align: middle;
}
.zelle .zahl {
    width: 1%;
    padding-right: 20px;
    text-align: left;
    white-space: nowrap;
}
.zelle td.zahl {
    font-size: 40px;
    font-weight: var(--w-zahl);
    line-height: 1.15;
    letter-spacing: -0.01em;
}
.zelle .meins td {
    color: var(--daten);
    font-weight: var(--w-titel);
}
.zelle .meins td.zahl { font-weight: var(--w-zahl); }

/* ---------- Codeausschnitt (Forschungsseite) ---------- */

.code .datei,
.code pre,
.code code,
code {
    font-family: "Recursive", monospace;
    font-variation-settings: "MONO" 1;
}
.code figcaption { margin: 0 0 12px; }
.code .datei { color: var(--tinte); }
.code pre {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    -webkit-hyphens: manual;
    hyphens: manual;
}
.code pre code {
    padding: 0;
    font-size: inherit;
    background: none;
}
.code .z {
    display: grid;
    grid-template-columns: 2.4ch minmax(0, 1fr);
    column-gap: 1.4ch;
    padding-inline: 4px;
}
.code .nr {
    text-align: right;
    color: var(--tinte-2);
    -webkit-user-select: none;
    user-select: none;
}
.code .z-mark { background: var(--daten-flaeche); }
.code .z-mark .nr {
    color: var(--daten);
    font-weight: var(--w-titel);
}
.code .z-luecke { height: 0.9em; }

/* ---------- Verzeichnis der Werkstatt-Übersicht: eine Zeile je Arbeit ---------- */

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

.links {
    display: flex;
    flex-wrap: wrap;
    gap: 0 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.links a {
    display: inline-block;
    padding-block: 6px;
}

/* Getrennt durch Hilfslinien in Rasterfarbe, nicht durch Flächen */
.werk {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
        "name status"
        "was was"
        "belege belege"
        "links links";
    column-gap: 16px;
    padding: 12px 0 14px;
}
.werk + .werk { border-top: 1px solid var(--raster); }

.werk h4 {
    grid-area: name;
    margin: 0;
    font-size: 19px;
    line-height: 1.2;
}
.werk .status {
    grid-area: status;
    margin: 0;
    padding-top: 3px;
    font-size: 13px;
    color: var(--tinte-2);
    white-space: nowrap;
}
.werk .was {
    grid-area: was;
    margin: 6px 0 0;
    max-width: 60ch;
}
.werk .belege {
    grid-area: belege;
    max-width: 60ch;
    font-size: 15px;
}
.werk .belege p { margin: 6px 0 0; }
.werk .links {
    grid-area: links;
    margin-top: 4px;
    font-size: 15px;
}

/* ---------- Textseiten: Forschung, RailCast, Sicherheit, Projekte, Setup, Rechtliches, 404 ---------- */

.text { padding-top: 28px; }
/* Lesebreite in rem, damit Überschriften, Linien und Text gleich breit sind (rund 65 Zeichen bei 18 px) */
.text > * { max-width: 45rem; }
.text h1 {
    margin: 0;
    font-size: var(--gr-h2);
    line-height: 1.15;
}
.text .unterzeile {
    margin: 8px 0 0;
    font-size: 15px;
}
.text h2 {
    margin: var(--abstand) 0 0;
    padding-top: 24px;
    border-top: 1px solid var(--raster);
    font-size: var(--gr-h2-ab);
    line-height: 1.25;
}
.text h3 {
    margin: 28px 0 0;
    font-size: 1em;
    line-height: 1.3;
}
.text p { margin: 12px 0 0; }
.text ul {
    margin: 12px 0 0;
    padding-left: 1.25em;
}
.text li + li { margin-top: 6px; }
.text .lead {
    margin-top: 12px;
    font-size: 19px;
    line-height: 1.45;
}
/* Status eines Projekts: kleine Zeile unter der Überschrift */
.text .status {
    margin-top: 6px;
    font-size: var(--gr-klein);
    color: var(--tinte-2);
}
/* Inhaltsverzeichnis und Linklisten: nebeneinander, ohne Aufzählungszeichen */
.text .inhalt,
.text .links {
    display: flex;
    flex-wrap: wrap;
    gap: 0 20px;
    padding-left: 0;
    list-style: none;
}
.text .inhalt li + li,
.text .links li + li { margin-top: 0; }
.text .inhalt a,
.text .links a,
.zurueck a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}
.zurueck { margin-top: var(--abstand); }

/* Abbildungen im Text: Grafik, Tabelle, Code */
.text > figure { max-width: none; }
.text figure { margin: 24px 0 0; }
.text .k1,
.text .zelle { max-width: 45rem; }
.text figure figcaption,
.code-hinweis {
    margin-top: 12px;
    max-width: 45rem;
    font-size: var(--gr-klein);
    line-height: 1.5;
    color: var(--tinte-2);
}
.text .code figcaption { margin: 0 0 12px; }

code {
    font-size: 0.9em;
    padding: 0.05em 0.3em;
    border-radius: 2px;
    background: var(--platte);
    -webkit-hyphens: manual;
    hyphens: manual;
}

/* Tabellen im Text: schmale Bildschirme scrollen die Tabelle, nicht die Seite */
.text > .tabelle-rahmen { max-width: none; }
.tabelle-rahmen {
    margin-top: 16px;
    overflow-x: auto;
    scrollbar-width: thin;
}
.tabelle {
    width: 100%;
    min-width: 560px;
    border-collapse: collapse;
    font-size: 15px;
    text-align: left;
    -webkit-hyphens: manual;
    hyphens: manual;
}
/* Kostenbuch: sieben Spalten, die letzte braucht Platz für einen Satz */
.tabelle-breit { min-width: 760px; }
.tabelle th {
    padding: 0 14px 6px 0;
    border-bottom: 1px solid var(--tinte);
    font-size: 13px;
    font-weight: var(--w-titel);
    color: var(--tinte-2);
    vertical-align: bottom;
}
.tabelle td {
    padding: 8px 14px 8px 0;
    border-bottom: 1px solid var(--raster);
    vertical-align: top;
}
.tabelle th:last-child,
.tabelle td:last-child { padding-right: 0; }
.tabelle .zahl {
    text-align: right;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

/* ---------- Fuß ---------- */

.fuss {
    margin-top: var(--abstand);
    padding-bottom: 32px;
    font-size: var(--gr-klein);
    color: var(--tinte-2);
}
.fuss ul {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 24px;
    margin: 0;
    padding: var(--abstand) 0 0;
    list-style: none;
    border-top: 1px solid var(--raster);
}
.fuss a {
    display: inline-block;
    padding-block: 8px;
}

/* ---------- ab 768 px ---------- */

@media (min-width: 768px) {
    .zelle td.zahl { font-size: 56px; }
    .text { padding-top: 40px; }
}

/* ---------- ab 980 px ---------- */

@media (min-width: 980px) {
    .zelle td.zahl { font-size: 72px; }
}

/* ---------- ab 1100 px: Werkstatt-Verzeichnis in echten Spalten ---------- */

@media (min-width: 1100px) {
    .werk {
        grid-template-columns: 9.5rem minmax(0, 1.2fr) minmax(0, 1fr) 6.5rem 10.5rem;
        grid-template-areas: "name was belege status links";
        column-gap: 24px;
        align-items: start;
        padding: 14px 0 16px;
    }
    .werk .was,
    .werk .belege > :first-child,
    .werk .links { margin-top: 0; }
    .werk .status { padding-top: 4px; min-width: 0; white-space: normal; }
    .werk .links {
        flex-direction: column;
        margin-top: -3px;
    }
    .werk .links a { padding-block: 3px; }
}

/* ---------- Druck ----------
   Steht nach dem Dunkelblock: Beim Drucken auf einem dunkel eingestellten System bleibt das Blatt weiß. */
@media print {
    :root {
        --seite: #ffffff;
        --platte: #ffffff;
        --tinte: #000000;
        --tinte-2: #444444;
        --daten: #176b68;
        --daten-flaeche: #d9eae5;
        --bahn: #465b54;
        --null: #596960;
        --raster: #bbbbbb;
        --w-titel: 550;
    }
    .sprung, .nav-links,
    .techno-strobe, .techno-banner, .techno-laser, .techno-hint, .techno-scanlines { display: none !important; }
    .beleg, .werk, .text figure { break-inside: avoid; }
}

/* ---------- Reduzierte Bewegung (auch im Technomodus: dort nur die statische Darstellung) ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 100ms !important;
    }
    body.techno-on,
    body.techno-on *,
    .techno-strobe, .techno-laser, .techno-banner, .techno-hint, .techno-scanlines, .techno-exit {
        animation: none !important;
        transition: none !important;
    }
    /* Ohne Schwenk stünden alle Laser senkrecht übereinander. */
    .techno-laser { display: none; }
}

/* ============== TECHNOMODUS ==============
   Aus style.css übernommen (Stand 30.09.2026), Selektoren auf das neue Markup angepasst (.nav → .kopf,
   .row/.wu/.host/.live-frame → .exponat/.werk/.schluss section, .num b → .zelle td.zahl,
   .contact .mail → .mail), Schrift von Banner und Hinweis auf Recursive. Seit 12.11.2026 zusätzlich
   .beleg und .verzeichnis li der Startseite, seit 13.11.2026 auch .bildraster li.
   Seit 24.10.2026 ohne Blitze (WCAG 2.3.1): kein Vollbild-Flash, keine pulsierende Deckkraft, kein
   Farb- oder Helligkeitswechsel über große Flächen schneller als 12 s je Umlauf. Animationen auf
   Flächen über 341 × 256 px laufen mit Perioden von mindestens 1 s; nur kleine Elemente und
   dünne Laserlinien bewegen sich schneller. Der Ausstieg ist der Button .techno-exit. */
:root { --techno-hue: 0deg; }

body.techno-on {
    background: #000;
    overflow: hidden;
    animation: techno-bg 14s linear infinite;
}
@keyframes techno-bg {
    0%   { background: #ff00aa; }
    16%  { background: #00ffd0; }
    33%  { background: #ffee00; }
    50%  { background: #ff3300; }
    66%  { background: #6600ff; }
    83%  { background: #00ff44; }
    100% { background: #ff00aa; }
}

body.techno-on .kopf,
body.techno-on main {
    filter: hue-rotate(var(--techno-hue)) saturate(4) contrast(1.5) blur(0.4px);
    animation: techno-shake 7s ease-in-out infinite alternate;
}
@keyframes techno-shake {
    0%   { transform: translate(-8px, 6px) skew(-3deg, 1deg) scale(1.02); }
    14%  { transform: translate(9px, -7px) skew(2deg, -1.5deg) scale(0.99); }
    28%  { transform: translate(-6px, -8px) skew(-1.5deg, 2deg) scale(1.03); }
    42%  { transform: translate(8px, 5px) skew(3deg, -1deg) scale(0.98); }
    57%  { transform: translate(-9px, 4px) skew(-2deg, 2deg) scale(1.01); }
    71%  { transform: translate(7px, -6px) skew(2.5deg, -2deg) scale(1.02); }
    85%  { transform: translate(-5px, 8px) skew(-3deg, 1deg) scale(0.99); }
    100% { transform: translate(6px, -3px) skew(1.5deg, -2deg) scale(1.03); }
}

body.techno-on .kopf {
    border-bottom: 4px solid #ff00ff;
    box-shadow: 0 0 40px #ff00ff, 0 0 80px #00ffff;
}

body.techno-on .exponat,
body.techno-on .werk,
body.techno-on .schluss section,
body.techno-on .beleg,
body.techno-on .verzeichnis li,
body.techno-on .bildraster 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;
}
@keyframes techno-card-flicker {
    0%   { transform: rotate(-1.5deg) scale(1); }
    33%  { transform: rotate(1.5deg) scale(1.04); }
    66%  { transform: rotate(-0.5deg) scale(0.97); }
    100% { transform: rotate(1deg) scale(1.02); }
}
body.techno-on .zelle td.zahl {
    animation: techno-spin 400ms linear infinite;
    filter: drop-shadow(0 0 15px #ff00ff) drop-shadow(0 0 30px #00ffff);
}
@keyframes techno-spin {
    0%   { transform: rotate(0deg) scale(1); }
    25%  { transform: rotate(4deg) scale(1.3); }
    50%  { transform: rotate(0deg) scale(0.8); }
    75%  { transform: rotate(-4deg) scale(1.2); }
    100% { transform: rotate(0deg) scale(1); }
}

body.techno-on h1,
body.techno-on h2,
body.techno-on h3,
body.techno-on h4,
body.techno-on p,
body.techno-on a {
    color: #ffffff !important;
    text-shadow:
        -3px 0 0 #ff00ff,
        3px 0 0 #00ffff,
        0 0 20px rgba(255, 255, 255, 0.8),
        0 0 40px #ffff00 !important;
    animation: techno-text-glitch 1.6s ease-in-out infinite alternate;
}
@keyframes techno-text-glitch {
    0%   { transform: translate(0, 0); }
    50%  { transform: translate(-2px, 1px); }
    100% { transform: translate(2px, -1px); }
}

body.techno-on h1 .accent {
    background: linear-gradient(45deg, #ff00ff, #00ffff, #ffff00, #ff00ff) !important;
    background-size: 200% 200% !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    color: transparent !important;
    -webkit-text-fill-color: transparent !important;
    animation: techno-gradient 8s linear infinite;
    text-shadow: none !important;
}
@keyframes techno-gradient {
    0%   { background-position: 0% 0%; }
    100% { background-position: 200% 200%; }
}

body.techno-on .mail {
    background: rgba(0, 0, 0, 0.6) !important;
    color: #00ffff !important;
}

.techno-strobe {
    position: fixed;
    inset: -10vh -10vw;
    pointer-events: none;
    z-index: 9998;
    background:
        radial-gradient(circle at 15% 20%, rgba(255, 0, 200, 0.95), transparent 35%),
        radial-gradient(circle at 85% 25%, rgba(0, 230, 255, 0.95), transparent 35%),
        radial-gradient(circle at 50% 90%, rgba(255, 230, 0, 0.95), transparent 35%),
        radial-gradient(circle at 25% 75%, rgba(255, 50, 0, 0.85), transparent 30%),
        radial-gradient(circle at 78% 65%, rgba(100, 0, 255, 0.85), transparent 30%);
    mix-blend-mode: screen;
    opacity: 0.8;
    animation: techno-rotate 12s linear infinite;
}
@keyframes techno-rotate {
    0%   { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

.techno-scanlines {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9997;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.15) 0px,
        rgba(0, 0, 0, 0.15) 1px,
        transparent 1px,
        transparent 3px
    );
    animation: techno-scanmove 2s linear infinite;
}
@keyframes techno-scanmove {
    0%   { transform: translateY(0); }
    100% { transform: translateY(3px); }
}

.techno-banner {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-family: "Recursive", sans-serif;
    font-size: clamp(34px, 11vw, 160px);
    font-weight: 700;
    letter-spacing: -0.04em;
    color: #fff;
    text-shadow:
        -8px 0 0 #ff00ff,
        8px 0 0 #00ffff,
        0 -6px 0 #ffff00,
        0 6px 0 #ff0066,
        0 0 30px #fff,
        0 0 60px #ff00ff,
        0 0 120px #00ffff;
    z-index: 10002;
    pointer-events: none;
    animation: techno-banner-pulse 2.4s ease-in-out infinite alternate, techno-banner-hue 12s linear infinite;
    user-select: none;
    white-space: nowrap;
}
@keyframes techno-banner-pulse {
    0%   { transform: translate(-50%, -50%) scale(0.95) rotate(-4deg) skew(2deg); }
    100% { transform: translate(-50%, -50%) scale(1.18) rotate(4deg) skew(-2deg); }
}
@keyframes techno-banner-hue {
    0%   { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

.techno-hint {
    position: fixed;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    font-family: "Recursive", monospace;
    font-variation-settings: "MONO" 1;
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    z-index: 10003;
    pointer-events: none;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    text-shadow: 0 0 12px #ff00ff, 0 0 24px #00ffff;
    background: rgba(0, 0, 0, 0.5);
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid #ff00ff;
    width: max-content;
    max-width: calc(100vw - 32px);
    box-sizing: border-box;
    text-align: center;
}

/* Ausstieg: echter Button, über allen Effekten, außerhalb der bewegten Bereiche */
.techno-exit {
    position: fixed;
    top: 12px;
    right: 12px;
    z-index: 10010;
    min-width: 44px;
    min-height: 44px;
    padding: 10px 16px;
    font: 700 14px/1.2 "Recursive", sans-serif;
    letter-spacing: 0.04em;
    color: #ffffff;
    background: #000000;
    border: 2px solid #ffffff;
    border-radius: 8px;
    cursor: pointer;
}
.techno-exit:hover { background: #1a1a1a; }
.techno-exit:focus-visible { outline: 3px solid #ffee00; outline-offset: 3px; }

.techno-laser {
    position: fixed;
    top: 0;
    left: 50%;
    width: 6px;
    height: 220vh;
    pointer-events: none;
    z-index: 9999;
    transform-origin: top center;
    mix-blend-mode: screen;
    opacity: 0.95;
    filter: blur(1px);
}
.techno-laser-0  { background: linear-gradient(180deg, #ff00ff, transparent); animation: laser-sweep-a 1.4s linear infinite; }
.techno-laser-1  { background: linear-gradient(180deg, #00ffff, transparent); animation: laser-sweep-b 1.4s linear infinite; }
.techno-laser-2  { background: linear-gradient(180deg, #ffff00, transparent); animation: laser-sweep-a 1.4s linear infinite reverse; }
.techno-laser-3  { background: linear-gradient(180deg, #00ff66, transparent); animation: laser-sweep-b 1.4s linear infinite reverse; }
.techno-laser-4  { background: linear-gradient(180deg, #ff3399, transparent); animation: laser-sweep-a 1.8s linear infinite;            animation-delay: 0.2s; }
.techno-laser-5  { background: linear-gradient(180deg, #33ccff, transparent); animation: laser-sweep-b 1.8s linear infinite;            animation-delay: 0.2s; }
.techno-laser-6  { background: linear-gradient(180deg, #ff6600, transparent); animation: laser-sweep-a 1.2s linear infinite reverse;    animation-delay: 0.4s; }
.techno-laser-7  { background: linear-gradient(180deg, #cc00ff, transparent); animation: laser-sweep-b 1.2s linear infinite reverse;    animation-delay: 0.4s; }
.techno-laser-8  { background: linear-gradient(180deg, #ffffff, transparent); animation: laser-sweep-a 1.2s linear infinite;            animation-delay: 0.6s; }
.techno-laser-9  { background: linear-gradient(180deg, #00ffaa, transparent); animation: laser-sweep-b 1.2s linear infinite;            animation-delay: 0.6s; }
.techno-laser-10 { background: linear-gradient(180deg, #ff0044, transparent); animation: laser-sweep-a 1.6s linear infinite reverse;    animation-delay: 0.9s; }
.techno-laser-11 { background: linear-gradient(180deg, #4400ff, transparent); animation: laser-sweep-b 1.6s linear infinite reverse;    animation-delay: 0.9s; }
.techno-laser-12 { background: linear-gradient(180deg, #ffaa00, transparent); animation: laser-sweep-a 2.0s linear infinite;            animation-delay: 0.3s; }
.techno-laser-13 { background: linear-gradient(180deg, #00aaff, transparent); animation: laser-sweep-b 2.0s linear infinite;            animation-delay: 0.3s; }
.techno-laser-14 { background: linear-gradient(180deg, #ff00aa, transparent); animation: laser-sweep-a 1.3s linear infinite reverse;    animation-delay: 0.5s; }
.techno-laser-15 { background: linear-gradient(180deg, #aaff00, transparent); animation: laser-sweep-b 1.3s linear infinite reverse;    animation-delay: 0.5s; }

@keyframes laser-sweep-a {
    0%   { transform: rotate(-78deg); }
    50%  { transform: rotate(78deg); }
    100% { transform: rotate(-78deg); }
}
@keyframes laser-sweep-b {
    0%   { transform: rotate(75deg); }
    50%  { transform: rotate(-75deg); }
    100% { transform: rotate(75deg); }
}
