/* tino-werner.de – Designsystem. Regeln und Tokens: CLAUDE.md, Abschnitt „Designsystem“.
   Die Kletterfigur steht in climber.css, die Rechtsseiten in legal.css. */

/* ===== Schriften (SIL OFL, fonts/LIZENZ.txt) ===== */

@font-face {
    font-family: 'Bricolage Grotesque';
    src: url('/fonts/bricolage-grotesque-latin.woff2') format('woff2');
    font-weight: 400 800;
    font-stretch: 100%;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
                   U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F,
                   U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Martian Mono';
    src: url('/fonts/martian-mono-latin.woff2') format('woff2');
    font-weight: 400 600;
    font-stretch: 100%;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
                   U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F,
                   U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@layer base, layout, components, motion;

/* ===== Tokens ===== */

@layer base {

    :root {
        color-scheme: light dark;

        --paper:  light-dark(#f4f1e8, #131211);
        --raised: light-dark(#eae5d7, #1e1c19);
        --ink:    light-dark(#111010, #f4f1e8);
        --body:   light-dark(#2f2c28, #d5cfc2);
        --muted:  light-dark(#6b665c, #8d8779);
        --rule:   light-dark(#111010, #f4f1e8);
        --hair:   light-dark(#d5cfbe, #302c28);

        --flame:     light-dark(#ff4d18, #ff5f2e);
        --flame-ink: light-dark(#b23409, #ff5f2e);

        --acid: #d9f24b;   /* nur Fläche, nie Schrift */
        --hard: #111010;   /* Schrift auf Flammrot und Säuregelb */
        --bone: #f4f1e8;   /* helle Schrift auf --hard */

        /* Kletterfigur: Haut und Hose, in beiden Modi gleich. */
        --fig-skin:  #e9b48f;
        --fig-jeans: #262a33;

        /* Faktor für alle Schräglagen: 0 = brav, 1 = frech, 2 = sehr frech. */
        --tilt: 1;
        --kopf-h: 88px;   /* Kopfleiste samt Linie; die Kletterfigur läuft darauf */
        --shadow: 10px;
        --ease-out: cubic-bezier(.2, .85, .2, 1);   /* weiches Abbremsen */
        --ease-pop: cubic-bezier(.2, 1.6, .4, 1);   /* federt über das Ziel hinaus */

        --sans: 'Bricolage Grotesque', 'Segoe UI', system-ui, -apple-system, sans-serif;
        --mono: 'Martian Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

        --wrap: 1400px;
        --pad: 56px;
    }

    :root[data-theme="light"] { color-scheme: light; }
    :root[data-theme="dark"]  { color-scheme: dark; }

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

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

    body {
        font-family: var(--sans);
        font-optical-sizing: auto;
        font-size: 17px;
        line-height: 1.6;
        color: var(--body);
        background: var(--paper);
        -webkit-font-smoothing: antialiased;
        /* Schräges Band und Kacheln ragen über den Rand. */
        overflow-x: clip;
    }

    h1, h2, h3 {
        font-family: var(--sans);
        font-weight: 800;
        color: var(--ink);
        line-height: .92;
        letter-spacing: -.04em;
        text-wrap: balance;
    }

    p { text-wrap: pretty; }
    img { max-width: 100%; height: auto; display: block; }
    ul, ol { list-style: none; }
    a { color: inherit; text-decoration: none; }
    strong, b { font-weight: 700; color: var(--ink); }

    :focus-visible { outline: 3px solid var(--flame); outline-offset: 3px; }
    /* Auf Flammrot und Säuregelb wäre ein flammroter Fokusrahmen unsichtbar. */
    :is(.reach-sec, .legal-hero, .tint--flame, .tint--acid) :focus-visible,
    :is(.tint--flame, .tint--acid, .nav-cta):focus-visible { outline-color: var(--hard); }
    .sec--inv :focus-visible { outline-color: var(--paper); }
    ::selection { background: var(--acid); color: var(--hard); }

    [id] { scroll-margin-top: calc(var(--kopf-h) + 4px); }

    .mono {
        font-family: var(--mono);
        font-size: 10.5px;
        font-weight: 400;
        letter-spacing: .02em;
        text-transform: uppercase;
        color: var(--muted);
    }

    .skip-link {
        position: absolute; left: -9999px; top: 0; z-index: 200;
        background: var(--ink); color: var(--paper);
        padding: 14px 22px; font-weight: 700; font-size: 15px;
    }
    .skip-link:focus { left: 0; }
}

/* ===== Layout ===== */

@layer layout {
    .wrap {
        max-width: var(--wrap);
        margin-inline: auto;
        padding-inline: var(--pad);
    }

    .sec { padding-block: 96px; border-top: 4px solid var(--rule); }
    .sec--flush { border-top: 0; }
    .sec--inv { background: var(--ink); color: var(--paper); border-top: 0; }
}

/* ===== Bausteine ===== */

@layer components {

    /* ---- Farbflächen: Flammrot und Säuregelb tragen immer --hard, nie --ink ---- */
    .tint--flame { background: var(--flame); color: var(--hard); }
    .tint--acid  { background: var(--acid);  color: var(--hard); }
    .tint--ink   { background: var(--ink);   color: var(--paper); }
    .tint--paper { background: var(--paper); color: var(--ink); }
    :is(.tint--flame, .tint--acid, .tint--ink, .tint--paper) :is(h3, strong, b) { color: inherit; }

    /* ---- Fortschritt ---- */
    .progress {
        position: fixed; inset-block-start: 0; inset-inline: 0;
        height: 4px; background: var(--acid);
        transform-origin: left; transform: scaleX(0); z-index: 95;
    }

    /* ---- Kopfleiste ---- */
    .top {
        position: sticky; top: 0; z-index: 90;
        background: var(--paper);
        border-bottom: 4px solid var(--rule);
    }
    .top-in {
        max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad);
        min-height: 84px; display: flex; align-items: center; gap: 18px;
    }
    .brand {
        font-weight: 800; font-size: 23px; letter-spacing: -.03em;
        color: var(--ink);
        display: flex; align-items: center; gap: 12px; margin-right: auto;
    }
    .mark {
        width: 60px; height: 60px; flex: none; display: block; overflow: visible;
        rotate: calc(var(--tilt) * -6deg);
        transition: rotate .3s var(--ease-out);
    }
    .mark-bg { fill: var(--flame); stroke: var(--hard); stroke-width: 3; }
    .mark-ink { fill: var(--hard); }
    .mark-rib { fill: none; stroke: var(--bone); stroke-opacity: .22; stroke-width: 1.2; }
    .mark-eyes { transform-box: fill-box; transform-origin: center; }
    .mark-eye { fill: var(--bone); stroke: var(--hard); stroke-width: 1.6; }
    .mark .pupil { fill: var(--hard); transition: transform .14s ease-out; }
    .mark-smile { fill: none; stroke: var(--bone); stroke-width: 1.6; stroke-linecap: round; }
    .mark-lampe { display: none; }
    .mark-lampe-licht { fill: var(--acid); opacity: .4; } .mark-lampe-kopf { fill: var(--acid); stroke: var(--hard); stroke-width: 1.4; }
    :root[data-theme="dark"] .mark-lampe { display: inline; }
    @media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .mark-lampe { display: inline; } }
    .brand:hover .mark { rotate: calc(var(--tilt) * 6deg); }

    .nav-menu ul { display: flex; align-items: center; gap: 6px; }
    .nav-menu a {
        display: block;
        font-family: var(--mono); font-size: 12px; font-weight: 500; text-transform: uppercase;
        letter-spacing: .05em; color: var(--ink);
        padding: 10px 12px; border: 3px solid transparent;
        transition: background-color .18s, color .18s, translate .15s, box-shadow .15s;
    }
    .nav-menu a:hover, .nav-menu a:focus-visible { background: var(--ink); color: var(--paper); }
    .nav-menu a.nav-cta {
        margin-left: 8px; font-weight: 600;
        background: var(--flame); color: var(--hard); border-color: var(--hard);
        box-shadow: calc(var(--shadow) * .4) calc(var(--shadow) * .4) 0 var(--ink);
    }
    .nav-menu a.nav-cta:hover, .nav-menu a.nav-cta:focus-visible {
        background: var(--flame); color: var(--hard);
        translate: 2px 2px; box-shadow: calc(var(--shadow) * .2) calc(var(--shadow) * .2) 0 var(--ink);
    }

    .swap {
        display: inline-flex; align-items: center; gap: 9px;
        background: none; border: 2px solid var(--rule);
        padding: 6px 10px 6px 7px; cursor: pointer;
        font-family: var(--mono); font-size: 10px; text-transform: uppercase;
        color: var(--ink); min-height: 34px;
        transition: background-color .18s, color .18s;
    }
    .swap i {
        display: block; width: 30px; height: 15px; flex: none;
        background: var(--raised); border: 2px solid var(--rule); position: relative;
    }
    .swap i::after {
        content: ''; position: absolute; inset: 1px auto 1px 1px; width: 11px;
        background: var(--flame); transition: translate .26s var(--ease-out);
    }
    :root[data-theme="dark"] .swap i::after { translate: 13px 0; background: var(--acid); }
    /* Ohne JavaScript gilt die Systemeinstellung. */
    @media (prefers-color-scheme: dark) {
        :root:not([data-theme="light"]) .swap i::after { translate: 13px 0; background: var(--acid); }
    }
    .swap:hover { background: var(--ink); color: var(--paper); }

    .nav-toggle {
        display: none; background: none; border: 0; cursor: pointer;
        min-width: 48px; min-height: 48px;
        align-items: center; justify-content: center; color: var(--ink);
    }
    .nav-toggle span { display: block; width: 20px; height: 3px; background: var(--ink); position: relative; transition: transform .24s var(--ease-out); }
    .nav-toggle span::before, .nav-toggle span::after {
        content: ''; position: absolute; left: 0; width: 20px; height: 3px; background: var(--ink);
        transition: transform .24s var(--ease-out), opacity .16s;
    }
    .nav-toggle span::before { top: -7px; }
    .nav-toggle span::after  { top: 7px; }
    .nav-toggle[aria-expanded="true"] span { transform: rotate(45deg); }
    .nav-toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(-90deg); }
    .nav-toggle[aria-expanded="true"] span::after { opacity: 0; }

    /* ---- Auftakt ---- */
    .hero {
        display: grid; grid-template-columns: minmax(0, 1fr) 440px;
        gap: 64px; align-items: start; padding-block: 56px 80px;
    }
    .kick { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
    .chip {
        font-family: var(--mono); font-size: 11.5px; font-weight: 500; text-transform: uppercase;
        letter-spacing: .06em; padding: 6px 11px;
        border: 2px solid var(--rule); color: var(--ink);
    }
    .chip--fill { background: var(--ink); border-color: var(--ink); color: var(--paper); }

    .hero h1 { font-size: clamp(3rem, 7.4vw, 7.4rem); line-height: .88; letter-spacing: -.05em; }
    /* Der Marker ist in beiden Modi hell, die Schrift darauf also immer --hard. */
    .hero h1 .hl { position: relative; display: inline-block; isolation: isolate; white-space: nowrap; color: var(--hard); }
    .hero h1 .hl > .mk {
        position: absolute; left: -.08em; right: -.08em; top: .08em; bottom: .02em;
        background: var(--acid); z-index: -1;
        transform: scaleX(0); transform-origin: left;
    }

    .lede-block { margin-top: 40px; }
    .lede { font-size: 21px; line-height: 1.5; color: var(--body); max-width: 42ch; }
    .lede + .lede { margin-top: 18px; }

    .lk {
        color: var(--ink); font-weight: 700;
        box-shadow: inset 0 -3px 0 var(--flame);
        transition: box-shadow .22s, background-color .22s, color .22s;
    }
    .lk:hover { background: var(--acid); color: var(--hard); box-shadow: inset 0 -3px 0 var(--hard); }

    /* ---- Porträt: schräg, Klebestreifen, Sticker ---- */
    .shot { position: relative; padding-top: 22px; }
    .shot-in {
        position: relative; aspect-ratio: 4 / 5; overflow: hidden;
        display: grid; place-items: end center;
        background: var(--flame); color: var(--hard);
        border: 4px solid var(--hard);
        box-shadow: calc(var(--shadow) * 1.4) calc(var(--shadow) * 1.4) 0 var(--ink);
        rotate: calc(var(--tilt) * 3deg);
        transition: rotate .45s var(--ease-out);
    }
    .shot:hover .shot-in { rotate: calc(var(--tilt) * -1deg); }
    .shot-in > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
    .tape {
        position: absolute; top: 6px; left: 32%; z-index: 2;
        width: 130px; height: 34px; background: var(--acid); opacity: .9;
        rotate: calc(var(--tilt) * -4deg);
    }
    /* overflow: clip, sonst ragt der gedrehte SVG-Rahmen in WebKit über den Fensterrand. */
    .sticker {
        position: absolute; right: -32px; bottom: -48px; z-index: 3;
        width: 160px; height: 160px; color: var(--acid); pointer-events: none;
        overflow: clip; border-radius: 50%;
    }
    .sticker svg { width: 100%; height: 100%; display: block; }

    /* Sprechblase am Porträt, sobald der passende Menüpunkt (data-say) überfahren oder
       fokussiert wird. drop-shadow statt box-shadow, damit der Zipfel den Schatten mitbekommt. */
    .bubble {
        position: absolute; right: 78%; top: calc(38% - 4px); z-index: 4;
        padding: 16px 22px; border-radius: 50%;
        background: var(--acid); color: var(--hard); border: 3px solid var(--hard);
        filter: drop-shadow(calc(var(--shadow) * .5) calc(var(--shadow) * .5) 0 var(--hard));
        font-size: 16px; font-weight: 800; line-height: 1.15; letter-spacing: -.02em;
        text-align: center; white-space: nowrap; pointer-events: none;
        opacity: 0; scale: .5; rotate: calc(var(--tilt) * 8deg); transform-origin: calc(100% + 40px) 80%;
        transition: opacity .16s, scale .34s var(--ease-pop), rotate .34s var(--ease-pop);
    }
    /* Am Hell/Dunkel-Schalter nur die Blase zum aktuellen Modus. */
    :root[data-theme="dark"] .bubble[data-for="theme-dunkel"],
    :root[data-theme="light"] .bubble[data-for="theme-hell"] { display: none; }
    @media (prefers-color-scheme: dark)  { :root:not([data-theme]) .bubble[data-for="theme-dunkel"] { display: none; } }
    @media (prefers-color-scheme: light) { :root:not([data-theme]) .bubble[data-for="theme-hell"] { display: none; } }
    .bubble-tail { position: absolute; left: calc(100% - 14px); top: calc(50% - 14px); width: 56px; height: 40px; overflow: visible; }
    .bubble-tail-fill { fill: var(--acid); }
    .bubble-tail-line { fill: none; stroke: var(--hard); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
    body:has([data-say="arbeit"]:hover, [data-say="arbeit"]:focus-visible) .bubble[data-for="arbeit"],
    body:has([data-say="gebaut"]:hover, [data-say="gebaut"]:focus-visible) .bubble[data-for="gebaut"],
    body:has([data-say="haltung"]:hover, [data-say="haltung"]:focus-visible) .bubble[data-for="haltung"],
    body:has([data-say="geschrieben"]:hover, [data-say="geschrieben"]:focus-visible) .bubble[data-for="geschrieben"],
    body:has([data-say="kontakt"]:hover, [data-say="kontakt"]:focus-visible) .bubble[data-for="kontakt"],
    body:has([data-say="theme"]:hover, [data-say="theme"]:focus-visible) .bubble[data-for^="theme-"] {
        opacity: 1; scale: 1; rotate: calc(var(--tilt) * -3deg);
    }
    .st-txt { font-family: var(--mono); font-size: 8.6px; font-weight: 600; fill: var(--hard); letter-spacing: .02em; }

    /* ---- Zahlen ---- */
    .facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; padding-bottom: 72px; }
    .fact {
        min-height: 190px; padding: 22px 24px;
        display: flex; flex-direction: column; justify-content: space-between; gap: 16px;
        border: 4px solid var(--rule);
        rotate: calc(var(--tilt) * -1deg);
    }
    .fact:nth-child(even) { rotate: calc(var(--tilt) * .9deg); }
    .fact-n { font-size: clamp(3.4rem, 6.6vw, 6rem); font-weight: 800; line-height: .85; letter-spacing: -.05em; }
    .fact-t { font-size: 18px; font-weight: 600; line-height: 1.25; hyphens: auto; overflow-wrap: break-word; }

    /* ---- Laufband ---- */
    .bands { position: relative; height: 180px; overflow: clip; }
    .band-pause {
        position: absolute; right: var(--pad); bottom: 6px; z-index: 1;
        min-height: 32px; padding: 6px 10px; cursor: pointer;
        background: var(--paper); color: var(--ink); border: 2px solid var(--rule);
    }
    .band-pause:hover { background: var(--ink); color: var(--paper); }
    .band {
        position: absolute; left: -80px; right: -80px;
        display: flex; align-items: center; overflow: hidden;
        color: var(--hard); border-block: 4px solid var(--hard);
    }
    .band--acid  { top: 42px; height: 96px; background: var(--acid); rotate: calc(var(--tilt) * -2.6deg); }
    .band-in { display: flex; width: max-content; }
    .band-in > span { display: flex; white-space: nowrap; }
    .band-in i { font-style: normal; opacity: .55; }
    .band--acid .band-in > span {
        gap: 36px; padding-right: 36px;
        font-size: 44px; font-weight: 800; letter-spacing: -.025em;
    }

    /* ---- Abschnittskopf ---- */
    .sec-head {
        display: flex; align-items: flex-end; justify-content: space-between;
        gap: 24px 48px; margin-bottom: 52px;
    }
    .sec-head h2 { font-size: clamp(2.6rem, 6.4vw, 6rem); line-height: .9; letter-spacing: -.045em; }
    .sec--inv h2 { color: var(--paper); }
    .lbl {
        display: block; margin-bottom: 16px;
        font-family: var(--mono); font-size: 12px; font-weight: 600;
        text-transform: uppercase; letter-spacing: .1em; color: var(--flame-ink);
    }
    .sec--inv .lbl { color: color-mix(in srgb, var(--paper) 72%, transparent); }
    .intro-p { font-size: 20px; line-height: 1.45; max-width: 26em; color: var(--body); }
    .sec--inv .intro-p { color: color-mix(in srgb, var(--paper) 78%, transparent); }

    /* ---- Karten: Womit ich helfe ---- */
    .cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
    .card {
        min-height: 300px; padding: 34px 36px;
        display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
        border: 4px solid var(--rule);
        box-shadow: var(--shadow) var(--shadow) 0 var(--ink);
        rotate: calc(var(--tilt) * .9deg);
        transition: rotate .35s var(--ease-out);
    }
    .card:nth-child(4n+2), .card:nth-child(4n+3) { rotate: calc(var(--tilt) * -1deg); }
    .card:hover { rotate: 0deg; }
    .card.tint--ink { box-shadow: var(--shadow) var(--shadow) 0 var(--flame); }
    .card h3 { min-width: 0; font-size: clamp(1.75rem, 3.1vw, 2.75rem); line-height: 1; letter-spacing: -.03em; hyphens: auto; overflow-wrap: break-word; }
    .card p { font-size: 20px; line-height: 1.4; max-width: 34ch; }
    .card.tint--paper p { color: var(--body); }
    .card mark { background: var(--acid); color: var(--hard); padding: 0 4px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
    /* Auf Säuregelb verschwände der Marker, dort invertiert. */
    .card.tint--acid mark { background: var(--hard); color: var(--bone); }

    /* ---- Kacheln: Werkzeuge ---- */
    /* Acht Werkzeuge plus „Nr. 9“ ergeben ein volles 3×3-Raster. */
    .tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
    .tile {
        min-height: 220px; padding: 24px 26px;
        display: flex; flex-direction: column; justify-content: space-between; gap: 20px;
        rotate: calc(var(--tilt) * -1deg);
        transition: rotate .3s var(--ease-out), translate .3s var(--ease-out), box-shadow .3s;
    }
    .tile:nth-child(even) { rotate: calc(var(--tilt) * .9deg); }
    a.tile:hover, a.tile:focus-visible { rotate: 0deg; translate: -4px -6px; box-shadow: var(--shadow) calc(var(--shadow) * 1.2) 0 var(--paper); }
    .tile-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
    .tile-name { font-size: clamp(1.55rem, 2.4vw, 2.25rem); font-weight: 800; line-height: 1; letter-spacing: -.03em; }
    .tile-arr { width: 22px; flex: none; transition: translate .26s var(--ease-out); }
    .tile-arr svg { width: 100%; height: auto; display: block; }
    a.tile:hover .tile-arr { translate: 5px 0; }
    .tile-desc { font-size: 17px; line-height: 1.4; font-weight: 500; }
    .tile-tag {
        flex: none; align-self: flex-start; padding: 5px 8px; border: 2px solid currentColor;
        font-family: var(--mono); font-size: 11px; font-weight: 600;
        text-transform: uppercase; letter-spacing: .08em;
    }
    .tile--next { rotate: calc(var(--tilt) * -3deg); }
    .tile--next .tile-tag { border: 0; padding: 0; }
    .tile-next { font-size: 26px; font-weight: 800; line-height: 1.1; letter-spacing: -.02em; }

    /* ---- Zeilen, die sich füllen (Geschrieben) ---- */
    .entries { border-top: 4px solid var(--rule); }
    .entry {
        position: relative; isolation: isolate;
        display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr) 30px;
        gap: 26px; align-items: baseline;
        padding: 22px 14px; border-bottom: 4px solid var(--rule);
        transition: padding-left .28s var(--ease-out);
    }
    .entry::before {
        content: ''; position: absolute; inset: 0; background: var(--flame);
        transform: scaleY(0); transform-origin: bottom; z-index: -1;
        transition: transform .3s var(--ease-out);
    }
    a.entry:hover, a.entry:focus-visible { padding-left: 26px; }
    a.entry:hover::before, a.entry:focus-visible::before { transform: scaleY(1); }

    .e-name {
        font-size: clamp(1.3rem, 2.4vw, 2rem); font-weight: 800;
        letter-spacing: -.032em; color: var(--ink); line-height: 1.05;
    }
    .e-desc { font-size: 16px; line-height: 1.48; color: var(--muted); }
    .e-arr { justify-self: end; width: 22px; color: var(--ink); transition: color .2s, translate .26s var(--ease-out); }
    .e-arr svg { width: 100%; height: auto; display: block; }
    a.entry:hover .e-name, a.entry:focus-visible .e-name,
    a.entry:hover .e-desc, a.entry:focus-visible .e-desc { color: var(--hard); }
    a.entry:hover .e-arr, a.entry:focus-visible .e-arr { color: var(--hard); translate: 6px 0; }

    /* ---- Gerade ---- */
    .now { background: var(--acid); color: var(--hard); border: 4px solid var(--hard); box-shadow: var(--shadow) var(--shadow) 0 var(--ink); padding: 30px 32px 32px; }
    .now h2 { color: var(--hard); font-size: clamp(1.8rem, 3.4vw, 2.7rem); margin-bottom: 14px; }
    .now p { font-size: 18px; color: var(--hard); max-width: 58ch; }

    /* ---- Haltung ---- */
    .stance li {
        display: grid; grid-template-columns: 120px minmax(0, 1fr) minmax(0, 400px);
        gap: 40px; align-items: start;
        padding-block: 36px; border-top: 4px solid var(--rule);
    }
    .stance li:last-child { border-bottom: 4px solid var(--rule); }
    .stance-nr {
        width: 88px; height: 88px; border-radius: 50%;
        display: grid; place-items: center;
        font-size: 40px; font-weight: 800; line-height: 1;
        background: var(--flame); color: var(--hard);
        transition: rotate .35s var(--ease-pop);
    }
    .stance li:nth-child(2) .stance-nr { background: var(--acid); border: 3px solid var(--hard); }
    .stance li:nth-child(3) .stance-nr { background: var(--ink); color: var(--paper); }
    .stance li:nth-child(4) .stance-nr { background: var(--paper); color: var(--ink); border: 3px solid var(--rule); }
    .stance li:hover .stance-nr { rotate: calc(var(--tilt) * -14deg); }
    .stance b {
        font-size: clamp(1.9rem, 4.2vw, 3.75rem); font-weight: 800;
        letter-spacing: -.035em; line-height: .98; color: var(--ink);
    }
    .stance p { font-size: 18px; line-height: 1.5; margin-top: 6px; }

    /* ---- Kontakt: Flammrot-Block ---- */
    .reach-sec {
        background: var(--flame); color: var(--hard);
        border-top: 4px solid var(--hard); padding-block: 100px 96px;
    }
    .reach-in { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 34px; }
    .reach-sec .lbl { color: var(--hard); margin-bottom: 0; }
    .reach-sec h2 { color: var(--hard); font-size: clamp(3rem, 9.4vw, 8.5rem); line-height: .86; letter-spacing: -.05em; max-width: 11ch; }
    .reach-sec .intro-p { color: var(--hard); font-size: 22px; font-weight: 500; max-width: 30em; }

    .mailto {
        display: inline-block; margin-block: 6px 10px; padding: 20px 30px;
        background: var(--acid); color: var(--hard);
        border: 4px solid var(--hard); box-shadow: calc(var(--shadow) * 1.2) calc(var(--shadow) * 1.2) 0 var(--hard);
        font-weight: 800; font-size: clamp(1.5rem, 4.8vw, 4rem);
        letter-spacing: -.03em; line-height: 1.05; word-break: break-word;
        rotate: calc(var(--tilt) * -1.5deg);
        transition: rotate .25s, translate .15s, box-shadow .15s;
    }
    .mailto:hover, .mailto:focus-visible { rotate: 0deg; translate: calc(var(--shadow) * .6) calc(var(--shadow) * .6); box-shadow: calc(var(--shadow) * .6) calc(var(--shadow) * .6) 0 var(--hard); }

    .ways { display: flex; flex-wrap: wrap; gap: 14px; }
    .way {
        display: inline-flex; align-items: center; min-height: 52px; padding: 0 20px;
        font-family: var(--mono); font-size: 13px; font-weight: 600;
        text-transform: uppercase; letter-spacing: .06em;
        border: 3px solid var(--hard); color: var(--hard);
        transition: background-color .2s, color .2s;
    }
    .way--fill { background: var(--hard); color: var(--bone); }
    .way--plain { border-color: transparent; }
    a.way:hover, a.way:focus-visible { background: var(--acid); color: var(--hard); }

    .reply {
        position: absolute; right: var(--pad); top: 0;
        width: 190px; height: 190px; border-radius: 50%;
        display: grid; place-items: center; text-align: center;
        background: var(--hard); color: var(--bone);
        font-size: 26px; font-weight: 800; line-height: 1.02; letter-spacing: -.02em;
        rotate: calc(var(--tilt) * -6deg);
    }

    /* ---- Fuß ---- */
    .foot { padding-block: 26px 34px; display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: space-between; align-items: baseline; }
    .foot nav { display: flex; flex-wrap: wrap; gap: 0 20px; }

    .reach-legal {
        align-self: stretch; display: flex; flex-wrap: wrap; justify-content: flex-end;
        gap: 0 24px; margin-top: 16px; padding-top: 12px; border-top: 3px solid var(--hard);
    }
    .reach-legal a { display: inline-block; padding-block: 12px; color: var(--hard); font-size: 12px; font-weight: 600; }
    .reach-legal a:hover, .reach-legal a:focus-visible { text-decoration: underline; text-decoration-thickness: 2px; }
    .foot a { display: inline-block; padding-block: 12px; transition: color .2s; }
    .foot a:hover { color: var(--flame-ink); }

    /* ---- 404 ---- */
    .legal { padding-block: 64px 88px; }
    .reg { display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: .02em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
    .legal h1 { font-size: clamp(2.2rem, 6vw, 4.2rem); margin-bottom: 22px; }
    .lead { font-size: 20px; line-height: 1.5; color: var(--body); max-width: 52ch; }

    .btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
    .btn {
        display: inline-flex; align-items: center; min-height: 50px; padding: 0 22px;
        font-family: var(--sans); font-weight: 700; font-size: 16px;
        letter-spacing: -.01em; border: 3px solid var(--rule); cursor: pointer;
        transition: background-color .2s, color .2s, translate .12s;
    }
    .btn:active { translate: 0 2px; }
    .btn--solid { background: var(--flame); border-color: var(--flame); color: var(--hard); }
    .btn--solid:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
    .btn--line { color: var(--ink); background: transparent; }
    .btn--line:hover { background: var(--ink); color: var(--paper); }
}

/* ===== Bewegung ===== */

@layer motion {
    @media (prefers-reduced-motion: no-preference) {
        @supports (animation-timeline: scroll()) {
            .progress { animation: fill linear both; animation-timeline: scroll(root block); }
        }

        .band-in { animation: slide 38s linear infinite; }
        .bands:hover .band-in, .bands.is-paused .band-in { animation-play-state: paused; }

        .shot-in { animation: wipe .85s .16s cubic-bezier(.16,1,.3,1) backwards; }
        .tape { animation: rise .5s .7s var(--ease-pop) backwards; }
        .sticker { animation: pop .5s .8s var(--ease-pop) backwards; }
        .sticker svg { animation: spin 2.4s 1.3s var(--ease-out) both; }

        .mark-eyes { animation: blink 9s 4s infinite; }
        .hero h1 .hl > .mk { animation: swipe .55s .75s var(--ease-out) forwards; }
    }

    @keyframes fill  { to { transform: scaleX(1); } }
    @keyframes slide { to { transform: translateX(-50%); } }
    @keyframes rise  { from { opacity: 0; transform: translateY(20px); } }
    @keyframes wipe  { from { clip-path: inset(0 0 100% 0); } }
    @keyframes swipe { to { transform: scaleX(1); } }
    @keyframes pop   { from { opacity: 0; scale: .3; rotate: -50deg; } }
    @keyframes spin  { to { rotate: 360deg; } }
    @keyframes blink { 0%, 95%, 100% { transform: scaleY(1); } 97% { transform: scaleY(.1); } }

    @media (prefers-reduced-motion: reduce) {
        html { scroll-behavior: auto; }
        *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
        .hero h1 .hl > .mk { transform: scaleX(1); }
    }
}

/* ===== Breakpoints 1280 / 900 / 768 / 480 =====
   Im Layer, sonst schlügen sie jede Layer-Regel, auch :hover. */

@layer components {
    @media (max-width: 1280px) {
        :root { --pad: 40px; }
        .hero { grid-template-columns: minmax(0, 1fr) 380px; gap: 56px; }
        .stance li { grid-template-columns: 100px minmax(0, 1fr) minmax(0, 340px); gap: 32px; }
    }

    @media (max-width: 900px) {
        :root { --pad: 32px; --shadow: 8px; }
        .hero { grid-template-columns: 1fr; gap: 56px; }
        .shot { width: min(380px, 80%); margin-left: 8px; }
        .bubble { display: none; }
        .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
        .fact:last-child:nth-child(odd) { grid-column: 1 / -1; }
        .sec-head { flex-direction: column; align-items: flex-start; }
        .cards { grid-template-columns: 1fr; }
        .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
        .stance li { grid-template-columns: 72px minmax(0, 1fr); gap: 12px 24px; }
        .stance li > p { grid-column: 2; }
        .stance-nr { width: 60px; height: 60px; font-size: 28px; }
        .reply { display: none; }
        .entry { grid-template-columns: minmax(0, 240px) minmax(0, 1fr) 26px; gap: 20px; }
    }

    @media (max-width: 768px) {
        :root { --pad: 20px; --shadow: 7px; --kopf-h: 76px; }

        .nav-toggle { display: inline-flex; }
        .swap { min-height: 48px; padding-inline: 12px 14px; }
        .brand { font-size: 20px; }
        .mark { width: 50px; height: 50px; }
        .top-in { min-height: 72px; }
        .nav-menu {
            display: none; position: absolute; left: 0; right: 0; top: 100%;
            background: var(--ink); padding: 4px var(--pad) 18px;
            border-bottom: 4px solid var(--rule);
        }
        .nav-menu.is-open { display: block; }
        .nav-menu ul { flex-direction: column; align-items: stretch; gap: 0; }
        .nav-menu a {
            display: flex; align-items: center; min-height: 56px; padding: 0;
            font-family: var(--sans); font-size: 28px; font-weight: 800;
            letter-spacing: -.04em; text-transform: none; color: var(--paper);
            border: 0; border-bottom: 2px solid color-mix(in srgb, var(--paper) 22%, transparent);
        }
        .nav-menu li:nth-last-child(2) a { border-bottom: 0; }
        .nav-menu a:hover, .nav-menu a:focus-visible { background: none; color: var(--paper); text-decoration: underline; text-decoration-color: var(--flame); text-decoration-thickness: 3px; }
        .nav-menu a.nav-cta {
            margin: 10px 0 0; padding-inline: 16px; box-shadow: none; translate: none;
            background: var(--flame); color: var(--hard); border: 3px solid var(--hard);
        }
        .nav-menu a.nav-cta:hover { color: var(--hard); }

        .sec { padding-block: 60px; }
        .hero { padding-block: 32px 64px; gap: 48px; }
        .kick { margin-bottom: 24px; }
        .lede-block { margin-top: 28px; }
        .lede { font-size: 18px; }
        .band-pause { bottom: 4px; }
        .sticker { width: 124px; height: 124px; right: -36px; bottom: -36px; }

        .facts { gap: 12px; padding-bottom: 48px; }
        .fact { min-height: 136px; padding: 16px; border-width: 3px; }
        .fact-n { font-size: 3.5rem; }
        .fact-t { font-size: 15px; }

        .bands { height: 120px; }
        .band { border-block-width: 3px; }
        .band--acid  { top: 27px; height: 66px; }
        .band--acid .band-in > span { font-size: 28px; gap: 24px; padding-right: 24px; }

        .sec-head { margin-bottom: 32px; }
        .sec-head h2 { font-size: clamp(2.5rem, 12vw, 3.6rem); }
        .intro-p { font-size: 17px; }
        .cards { gap: 22px; }
        .card { min-height: 0; padding: 22px; gap: 14px; border-width: 3px; }
        .card p { font-size: 16px; }
        .tile { min-height: 170px; padding: 18px; }
        .tile-desc { font-size: 15px; }
        .tile-next { font-size: 20px; }

        .stance li { grid-template-columns: 1fr; padding-block: 22px; gap: 12px; }
        .stance li > p { grid-column: auto; }
        .stance-nr { width: 48px; height: 48px; font-size: 22px; }
        .stance p { font-size: 16px; }

        .entry { grid-template-columns: 1fr; gap: 4px; padding: 16px 10px; }
        .e-arr { display: none; }
        a.entry .e-name::after { content: ' \2192'; color: var(--flame-ink); }
        a.entry:is(:hover, :focus-visible) .e-name::after { color: var(--hard); }

        .now { padding: 22px 20px 24px; }
        .reach-sec { padding-block: 56px 52px; }
        .reach-in { gap: 24px; }
        .reach-sec .intro-p { font-size: 17px; }
        .mailto { padding: 14px 16px; border-width: 3px; }
        .ways { display: grid; width: 100%; }
        .way { min-height: 50px; }
        .foot { flex-direction: column; }
    }

    @media (max-width: 480px) {
        .card h3 { font-size: 1.5rem; }
        .tile-name { font-size: 1.4rem; }
        .tiles { grid-template-columns: 1fr; }
        .tile { min-height: 0; }
        .shot { width: auto; margin-left: 8px; margin-right: 36px; }
        .btn { width: 100%; justify-content: center; }
    }
}

/* ===== Druck ===== */

@media print {
    :root { color-scheme: light; --tilt: 0; --shadow: 0px; }
    .top, .progress, .bands, .nav-toggle, .swap, .sticker, .tape, .reply, .bubble, .btn-row { display: none !important; }
    body { background: #fff; color: #000; font-size: 11pt; }
    .sec--inv, .reach-sec, .tint--flame, .tint--acid, .tint--ink { background: #fff !important; color: #000 !important; }
    .sec--inv h2, .reach-sec h2, .mailto { color: #000 !important; }
    .card, .tile, .fact, .shot-in, .mailto { box-shadow: none; border: 1pt solid #000; break-inside: avoid; }
    .now { background: #fff !important; border: 1pt solid #000; }
    .sec { border-top: 1pt solid #000; padding-block: 18pt; }
    .entry { border-bottom: .5pt solid #999; break-inside: avoid; }
    a[href^="http"]::after { content: ' (' attr(href) ')'; font-size: 9pt; color: #555; }
}
