/* ==========================================================
   haase.co.at  –  Version: 2.5.0
   Designsystem: Zeilen statt Karten, Haarlinien, ein Akzent.
   Schrift: Geist, Zahlen und Marken in Geist Mono.
   Geist und Geist Mono: SIL Open Font License 1.1, als eigene
   Dateien vom selben Server (font-src 'self'), keine externen Abrufe.
   2.0.0: Glossar-Verweise (.row-terms), Aktionszeile (.section-actions),
   großes Icon im Sektionskopf (.ico-lg), umbrechender Fuß.
   Rein additiv: bestehende Klassen unverändert (wird auch von /glossar/ genutzt).
   2.1.0: Schriftbild – Fließtext in --text-2 statt --muted (--muted nur noch für
   Labels und Metadaten), Mono-Labels 12 → 13 px, Kopf deckend, Pill ausgerichtet,
   Werdegang-Zeilen als h4.
   2.1.1: Hero-Schema (.schema, .sx-*) ersetzt im Hero die Box .brief
   (.brief bleibt definiert, wird auf der Startseite nicht mehr genutzt).
   2.1.2: Impressum zweispaltig mit Porträt (.legal-layout, .legal-side, .portrait),
   rundes Porträt im Kontakt (.contact-person).
   2.1.3: keine CSS-Änderung, nur Versionsstand (Adressen /impressum und /datenschutz ohne .html).
   2.3.0: Navigation mit 8 Punkten (KI-Briefing): Einträge brechen nie um, Abstände 1.25rem,
   Menü-Symbol unter 1320 px statt 1140 px. Abschnitt KI-Wochenbriefing nutzt vorhandene Klassen.
   2.4.0: Leitstand-Details auf hellem Grund. Hero: Perspektivraster mit roter Lichtspur (site.js),
   Kennzahlen als Teil des Hero. AI Engineering mit feinem Raster. Sektionskopf mit rotem Anfangsstück,
   Arbeitsweise mit Schrittnummern. Feste #fff-Werte in Komponenten durch Tokens ersetzt.
   2.5.0: Hero-Szene als Hintergrund (.hero-scene): Wiener Skyline am Horizont, fahrender Boden,
   mehrere Lichtspuren mit Ziel Stephansdom (site.js). .hero-media wird nicht mehr genutzt.
   ========================================================== */
@font-face { font-family: "Geist"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/Geist-Regular.woff2") format("woff2"); }
@font-face { font-family: "Geist"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/Geist-Medium.woff2") format("woff2"); }
@font-face { font-family: "Geist"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/Geist-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Geist Mono"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/GeistMono-Regular.woff2") format("woff2"); }

:root {
    --bg: #FFFFFF;
    --panel: #F6F6F4;
    --line: #E7E7E3;
    --line-strong: #C9C9C3;
    --text: #161616;
    --muted: #63645F;        /* Labels, Metadaten */
    --text-2: #3A3B37;       /* Fließtext zweiter Ebene (2.1.0) */
    --ink: #161616;          /* Primärbutton */
    --red: #D2001A;          /* nur Detail: Slash, aktive Navigation, Statuspunkt */
    --ink-hover: #000;
    --glass: rgba(246,246,244,.92);
    --grid: rgba(22,22,22,.045);   /* feines Raster (2.4.0) */

    --font: "Geist", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
    --mono: "Geist Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

    --container: 1290px;
    --gutter: clamp(1rem, 4vw, 2.5rem);
    --header: 66px;
    --radius: 6px;

    --fs-h1: clamp(2.75rem, 6.6vw, 5.5rem);
    --fs-h2: clamp(1.625rem, 2.5vw, 2.125rem);
    --fs-h3: 1.0625rem;
    --fs-body: 1rem;
    --fs-small: .9375rem;
    --fs-label: .8125rem;

    --section: clamp(3.5rem, 7vw, 6rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 1rem); -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: var(--fs-body);
    line-height: 1.6;
    letter-spacing: -0.003em;
    font-feature-settings: "ss01" 0, "tnum" 0;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
h1, h2, h3 { font-weight: 500; }
h4 { font-weight: 400; }
h3 { letter-spacing: -0.012em; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.num { font-variant-numeric: tabular-nums; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip {
    position: absolute; left: -9999px; top: 0;
    background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 100;
}
.skip:focus { left: var(--gutter); top: .5rem; }

/* ---------- Kopf ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
}
.site-header .wrap {
    height: var(--header);
    display: flex; align-items: center; gap: 1.5rem;
}
.logo {
    display: flex; flex-direction: column; line-height: 1.1;
    text-decoration: none; white-space: nowrap;
}
.logo-name { font-weight: 600; font-size: .9375rem; letter-spacing: -0.01em; }
.logo-title { font-size: .8125rem; color: var(--muted); }
.logo-title i { font-style: normal; color: var(--red); font-weight: 400; margin-right: .3em; }

.nav { display: flex; align-self: stretch; gap: 1.25rem; margin-left: auto; }
.nav a {
    display: flex; align-items: center; white-space: nowrap;
    font-size: .9375rem;
    text-decoration: none; color: var(--muted);
    border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.nav a:hover { color: var(--text); }
.nav a[aria-current="true"], .nav a[aria-current="page"] { color: var(--text); border-bottom-color: var(--red); }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    min-height: 44px; padding: 0 1.35rem;
    font: inherit; font-weight: 500; font-size: .9375rem; text-decoration: none; cursor: pointer;
    --bc: var(--ink);
    border-radius: var(--radius); border: 1px solid var(--bc);
    background: var(--ink); color: var(--bg);
    transition: background-color .2s, border-color .2s, box-shadow .2s;
}
.btn:hover { background: var(--ink-hover); }
.btn-ghost { --bc: var(--line-strong); background: var(--bg); color: var(--text); }
.btn-ghost:hover { --bc: var(--text); background: var(--panel); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

.menu-toggle { display: none; }
.header-cta { white-space: nowrap; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(2rem, 4vw, 3rem); }
.hero > .wrap { position: relative; z-index: 1; }
.hero-grid {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 26rem);
    gap: clamp(2rem, 5vw, 5rem); align-items: end;
}
.hero h1 {
    font-size: var(--fs-h1); font-weight: 500;
    line-height: .98; letter-spacing: -0.045em;
}
.hero h1.claim { font-size: clamp(2.25rem, 5.2vw, 4.5rem); line-height: 1.02; letter-spacing: -0.04em; }
.hero h1.claim span { display: block; }
.hero-topics {
    margin-top: 1.5rem; font-size: clamp(1.125rem, 1.7vw, 1.375rem); letter-spacing: -0.015em;
}
.hero-topics i { font-style: normal; color: var(--red); margin: 0 .35em; }
.hero-lead { margin-top: 1rem; max-width: 34em; color: var(--text-2); }
.hero-actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .75rem; }

.hero-media {
    position: absolute; inset: 0; z-index: 0; pointer-events: none;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.35) 38%, #000 70%), linear-gradient(180deg, #000 70%, transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.35) 38%, #000 70%), linear-gradient(180deg, #000 70%, transparent 100%);
    -webkit-mask-composite: source-in; mask-composite: intersect;
}
.hero-media canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

.brief {
    background: rgba(246,246,244,.92);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.5rem;
}
.brief p + p { margin-top: .85rem; }
.brief-main { font-size: 1.1875rem; line-height: 1.45; letter-spacing: -0.012em; }
.brief-note { font-size: var(--fs-small); color: var(--muted); }
.brief-note b { color: var(--text); }

/* ---------- Kennzahlen-Leiste ---------- */
.facts {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
    border: 1px solid var(--line); border-radius: var(--radius);
}
.facts > div { padding: 1.1rem 1.25rem; border-left: 1px solid var(--line); }
.facts > div:first-child { border-left: 0; }
.facts dt { font-size: var(--fs-label); color: var(--muted); letter-spacing: 0; }
.facts dd { font-size: 1.0625rem; font-weight: 500; letter-spacing: -0.012em; margin-top: .15rem; }

/* ---------- Sektionen ---------- */
.section { padding: var(--section) 0 0; }
.section-head {
    display: flex; align-items: end; justify-content: space-between; gap: 2rem;
    margin-bottom: 1.5rem;
    padding-top: 1.25rem; border-top: 1px solid var(--text);
}
.section-head h2 { font-size: var(--fs-h2); line-height: 1.1; letter-spacing: -0.025em; }
.section-head p { margin-top: .4rem; max-width: 40em; color: var(--text-2); font-size: 1.0625rem; }

.pill {
    display: inline-block; margin-left: .75rem; padding: .1rem .55rem;
    font-family: var(--mono);
    font-size: .75rem; font-weight: 400; letter-spacing: 0; line-height: 1.5; color: var(--muted);
    border: 1px solid var(--line-strong); border-radius: 4px; vertical-align: .3em;
}

/* ---------- Icons (Lucide, ISC) ---------- */
.ico { width: 1.375rem; height: 1.375rem; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Zeilen ---------- */
.rows { border-top: 1px solid var(--line); }
.row {
    display: grid;
    grid-template-columns: 3rem minmax(0, 22rem) minmax(0, 1fr);
    gap: 1.5rem; align-items: baseline;
    padding: 1.15rem 0; border-bottom: 1px solid var(--line);
}
.row > .ico { align-self: start; margin-top: .05rem; }
.row h3, .row h4 { font-size: var(--fs-h3); font-weight: 400; line-height: 1.2; letter-spacing: -0.012em; }
.row-sub { font-family: var(--mono); font-size: .8125rem; color: var(--muted); margin-top: .35rem; }
.row-out { color: var(--text-2); }
.row-out a { color: var(--text); text-underline-offset: 3px; white-space: nowrap; }
.row.ref { grid-template-columns: 3rem minmax(0, 1fr); }
.row.ref h3 { font-size: 1.125rem; }

.note { margin-top: 1.5rem; font-size: var(--fs-small); color: var(--muted); }

/* ---------- AI Engineering (Hinweisbox) ---------- */
.callout {
    background: var(--panel);
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius);
    padding: clamp(1.5rem, 3vw, 2.5rem);
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 20rem);
    gap: clamp(1.5rem, 4vw, 4rem); align-items: start;
}
.callout h2 { font-size: var(--fs-h2); line-height: 1.12; letter-spacing: -0.025em; }
.callout-lead { margin-top: .6rem; color: var(--text-2); max-width: 36em; }
.callout-side {
    background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 1.25rem;
}
.callout-side p { font-size: var(--fs-small); color: var(--text-2); margin: .4rem 0 1rem; }
.callout-side .btn { width: 100%; }
.eyebrow { font-family: var(--mono); font-size: .8125rem; color: var(--muted); margin-bottom: .6rem; }
.eyebrow::before { content: ""; display: inline-block; width: .5rem; height: .5rem; border-radius: 50%; background: var(--red); margin-right: .5rem; }
.prose { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--line-strong); max-width: 40em; }
.prose p + p { margin-top: .85rem; }

.sub { margin-top: clamp(2.5rem, 4vw, 3.5rem); }
.sub > h3 { font-size: 1.375rem; line-height: 1.2; letter-spacing: -0.022em; margin-bottom: 1rem; }
.compare-note { margin-top: 1rem; font-size: var(--fs-label); color: var(--muted); }

/* ---------- Arbeitsweise ---------- */
.steps {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.steps li { padding: 1.25rem 1.25rem 1.5rem; border-left: 1px solid var(--line); }
.steps li:first-child { border-left: 0; }
.steps .ico { display: block; color: var(--red); }
.steps h3 { display: block; margin-top: .5rem; font-size: var(--fs-h3); }
.steps p { margin-top: .5rem; font-size: var(--fs-small); color: var(--text-2); }

/* ---------- Über mich ---------- */
.about { display: grid; grid-template-columns: minmax(0, 44rem) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.about-text p + p { margin-top: 1rem; }
.about-quote { font-size: clamp(1.375rem, 2.2vw, 1.75rem); line-height: 1.25; letter-spacing: -0.022em; padding-top: 1rem; border-top: 1px solid var(--text); }

/* ---------- Kontakt ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 40rem); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.contact-info p { margin-top: .75rem; color: var(--text-2); max-width: 26em; }
.contact-info .contact-claim { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 500; line-height: 1.15; letter-spacing: -0.03em; color: var(--text); margin-top: 0; }
.contact-info .contact-cta { color: var(--text); font-weight: 500; }
.contact-mail {
    display: inline-block; margin-top: 1rem;
    font-size: clamp(1.125rem, 1.8vw, 1.375rem); font-weight: 500; letter-spacing: -0.03em;
    text-underline-offset: 6px; text-decoration-thickness: 1px;
}
.contact-mail:hover { text-decoration-color: var(--red); }

.form { border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2rem); }
.field { margin-bottom: 1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label { display: block; font-size: var(--fs-label); color: var(--muted); margin-bottom: .3rem; letter-spacing: 0; }
.field input, .field textarea {
    width: 100%; font: inherit; color: var(--text);
    background: #fff; border: 1px solid var(--line-strong); border-radius: var(--radius);
    padding: .65rem .8rem;
}
.field textarea { min-height: 8.5rem; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--text); box-shadow: 0 0 0 3px rgba(22,22,22,.08); }
.consent { display: flex; gap: .65rem; align-items: flex-start; font-size: var(--fs-small); color: var(--muted); margin: 1.25rem 0; }
.consent input { width: 1.15rem; height: 1.15rem; margin-top: .2rem; accent-color: var(--ink); flex: none; }
.hp { position: absolute; left: -9999px; }
.form-msg { display: none; margin-top: 1rem; padding: .8rem 1rem; border-radius: var(--radius); border: 1px solid var(--line-strong); background: var(--panel); }
.form-msg.is-ok, .form-msg.is-error { display: block; }
.form-msg.is-error { border-color: var(--red); }
.form-msg b { display: block; }

/* ---------- Fuss ---------- */
.site-footer { margin-top: var(--section); border-top: 1px solid var(--line); background: var(--panel); }
.site-footer .wrap {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: .75rem 2rem; padding-top: 1.5rem; padding-bottom: 1.5rem;
    font-size: .875rem; color: var(--muted);
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.site-footer a { text-underline-offset: 3px; }
.site-footer a:hover { color: var(--text); }
.site-footer a[aria-current="page"] { color: var(--text); }
.status { font-family: var(--mono); }
.status::before {
    content: ""; display: inline-block; width: .5rem; height: .5rem; border-radius: 50%;
    background: var(--red); margin-right: .5rem; vertical-align: .08em;
}

/* ---------- Rechtstexte ---------- */
.legal { padding: clamp(1.5rem, 3vw, 2.5rem) 0 0; }
.legal-col { max-width: 46rem; }
.crumbs { font-size: .875rem; color: var(--muted); display: flex; gap: .6rem; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.crumbs [aria-current] { color: var(--text); }
.legal h1 { font-size: clamp(2.25rem, 4.6vw, 3.25rem); line-height: 1.02; letter-spacing: -0.04em; margin-top: clamp(2rem, 4vw, 3.25rem); }
.legal-lead { margin-top: 1rem; font-size: 1.125rem; color: var(--text-2); max-width: 38em; }
.legal-meta { margin-top: 1.75rem; padding-bottom: 1.75rem; border-bottom: 1px solid var(--text); font-size: .875rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; align-items: center; }
.legal-meta .pill { margin-left: 0; vertical-align: 0; }
.legal section { padding-top: 2.25rem; }
.legal h2 { font-size: 1.375rem; line-height: 1.2; letter-spacing: -0.022em; margin-bottom: .6rem; }
.legal p + p, .legal p + ul, .legal ul + p, .legal dl + p { margin-top: .8rem; }
.legal p + dl { margin-top: 1rem; }
.legal section a { text-underline-offset: 3px; text-decoration-thickness: 1px; }
.legal section a:hover { text-decoration-color: var(--red); }
.dash li { position: relative; padding: .25rem 0 .25rem 1.1rem; line-height: 1.4; }
.dash li::before { content: ""; position: absolute; left: 0; top: .95rem; width: .5rem; height: 1px; background: var(--text); }
.kv { border-top: 1px solid var(--line); }
.kv > div { display: grid; grid-template-columns: 13rem minmax(0, 1fr); gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.kv dt { font-size: .875rem; color: var(--muted); padding-top: .1rem; }

/* ---------- Angebot und Werdegang (1.8.0) ---------- */
.offers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 3rem); }
.offer { padding-top: 1rem; border-top: 1px solid var(--text); }
.offer-kind { font-family: var(--mono); font-size: .8125rem; color: var(--muted); }
.offer-kind::before { content: ""; display: inline-block; width: .5rem; height: .5rem; border-radius: 50%; background: var(--red); margin-right: .5rem; }
.offer h3 { font-size: 1.375rem; line-height: 1.2; letter-spacing: -0.022em; margin-top: .4rem; }
.offer > p:not(.offer-kind) { margin-top: .6rem; color: var(--text-2); }
.offer dl { margin-top: 1rem; padding-top: .8rem; border-top: 1px solid var(--line); }
.offer dt { font-size: var(--fs-label); color: var(--muted); letter-spacing: 0; }
.offer dd { margin-top: .15rem; font-size: var(--fs-small); }
.offer dd a { text-underline-offset: 3px; }
.row.cv { grid-template-columns: 7.5rem minmax(0, 20rem) minmax(0, 1fr); }
.cv-when { font-family: var(--mono); font-size: .8125rem; color: var(--muted); }

/* ---------- KI-Glossar-Einbindung (2.0.0) ---------- */
.row-out > p + p { margin-top: .5rem; }
.row-terms {
    display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .9rem;
    font-family: var(--mono); font-size: .8125rem; color: var(--muted);
}
.row-terms span::before {
    content: ""; display: inline-block; width: .4rem; height: .4rem; border-radius: 50%;
    background: var(--red); margin-right: .45rem; vertical-align: .08em;
}
.row-out .row-terms a {
    color: var(--muted); text-decoration: underline; text-decoration-color: var(--line-strong);
    text-underline-offset: 3px;
}
.row-out .row-terms a:hover { color: var(--text); text-decoration-color: var(--red); }
.section-actions { margin-top: clamp(1.5rem, 3vw, 2.25rem); display: flex; flex-wrap: wrap; gap: .75rem; }
.ico-lg { width: 2.25rem; height: 2.25rem; color: var(--muted); stroke-width: 1.25; }

/* ---------- Responsive ---------- */
@media (max-width: 1320px) {
    .menu-toggle {
        display: inline-flex; margin-left: auto; align-items: center; min-height: 44px; padding: 0 .9rem;
        font: inherit; background: var(--bg); color: var(--text); cursor: pointer;
        border: 1px solid var(--line-strong); border-radius: var(--radius);
    }
    .nav {
        display: none; position: absolute; left: 0; right: 0; top: var(--header);
        flex-direction: column; gap: 0; margin: 0;
        background: var(--bg); border-bottom: 1px solid var(--line); padding: .5rem var(--gutter) 1rem;
    }
    .nav.is-open { display: flex; }
    .nav a { padding: .8rem 0; border-bottom: 1px solid var(--line); margin: 0; }
    .nav a[aria-current="true"], .nav a[aria-current="page"] { border-bottom-color: var(--line); }
    .header-cta { display: none; }
}
@media (max-width: 1000px) {
    .hero-grid, .callout, .about, .contact { grid-template-columns: minmax(0, 1fr); align-items: start; }
    .facts, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .facts > div:nth-child(3), .steps li:nth-child(3) { border-left: 0; }
    .facts > div:nth-child(n+3), .steps li:nth-child(n+3) { border-top: 1px solid var(--line); }
    .row, .row.ref { grid-template-columns: 2.5rem minmax(0, 1fr); }
    .row-out { grid-column: 2; }
    .section-head { flex-direction: column; align-items: start; gap: .5rem; }
    .section-head .ico-lg { display: none; }
    .hero-media { -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0,0,0,.5) 100%); mask-image: linear-gradient(180deg, transparent 0%, rgba(0,0,0,.5) 100%); }
    .offers { grid-template-columns: minmax(0, 1fr); }
    .row.cv { grid-template-columns: minmax(0, 1fr); gap: .35rem; }
    .row.cv .row-out { grid-column: 1; }
}
@media (max-width: 560px) {
    .facts, .steps { grid-template-columns: minmax(0, 1fr); }
    .facts > div, .steps li { border-left: 0; }
    .facts > div + div, .steps li + li { border-top: 1px solid var(--line); }
    .field-row { grid-template-columns: 1fr; gap: 0; }
    .hero-actions .btn, .section-actions .btn { width: 100%; }
    .kv > div { grid-template-columns: minmax(0, 1fr); gap: .1rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- Hero-Schema „Komplexität → Klarheit“ (2.1.1) ----------
   Rein additiv. Nutzt nur bestehende Tokens. Rot nur am Slash, Puls, Haken, aktiven Schritt. */
.schema {
    background: var(--glass);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.25rem 1.25rem 1rem;
}
.schema-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.schema-tag { font-family: var(--mono); font-size: .8125rem; color: var(--muted); }
.schema-tag::before { content: ""; display: inline-block; width: .5rem; height: .5rem; border-radius: 50%; background: var(--red); margin-right: .5rem; }
.schema-pause {
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; padding: 0; cursor: pointer;
    background: var(--bg); color: var(--muted);
    border: 1px solid var(--line-strong); border-radius: 50%;
}
.schema-pause:hover { color: var(--text); border-color: var(--text); }
.schema-pause .ico { width: 14px; height: 14px; }
.schema-pause .i-play { display: none; }
.schema.is-paused .schema-pause .i-pause { display: none; }
.schema.is-paused .schema-pause .i-play { display: inline; }

.schema-svg { display: block; width: 100%; height: auto; margin-top: .75rem; overflow: visible; }
.schema-svg text { font-family: var(--mono); font-size: 9.5px; fill: var(--muted); }

.sx-tangle path { fill: none; stroke: var(--line-strong); stroke-width: 1; stroke-dasharray: 3 4; animation: sx-flow 2.4s linear infinite; }
.sx-node rect { fill: var(--bg); stroke: var(--line-strong); stroke-width: 1; }
.sx-node g { fill: none; stroke: var(--text); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

.sx-slash { stroke: var(--red); stroke-width: 2.5; stroke-linecap: round; }

.sx-clear line { stroke: var(--line-strong); stroke-width: 1.25; }
.sx-clear .is-pick { stroke: var(--text); }
.sx-pulse { fill: var(--red); opacity: 0; animation: sx-pulse 4.5s ease-in-out infinite; }

.sx-doc > rect { fill: var(--bg); stroke: var(--line-strong); stroke-width: 1; }
.sx-doc-title { stroke: var(--text); stroke-width: 2; stroke-linecap: round; }
.sx-doc-rule { stroke: var(--line); stroke-width: 1; }
.sx-bar { stroke: var(--line-strong); stroke-width: 3; stroke-linecap: round; }
.sx-bar.is-pick { stroke: var(--text); }
.schema-svg .sx-doc text.is-pick { fill: var(--text); }
.schema-svg .sx-doc-foot { font-size: 8.5px; }
.sx-check { fill: none; stroke: var(--red); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 14; stroke-dashoffset: 0; animation: sx-check 4.5s ease-in-out infinite; }

.sx-axis { stroke: var(--line-strong); stroke-width: 1; }
.sx-step line { stroke: var(--line-strong); stroke-width: 1; }
.sx-step circle { fill: var(--line-strong); animation: sx-step 13.5s steps(1, end) infinite; }
.sx-step.s2 circle { animation-delay: 4.5s; }
.sx-step.s3 circle { animation-delay: 9s; }

.schema-result { margin-top: .75rem; padding-top: .9rem; border-top: 1px solid var(--line-strong); }
.schema-label { font-family: var(--mono); font-size: .8125rem; color: var(--muted); }
.schema-main { margin-top: .2rem; font-size: 1.1875rem; line-height: 1.35; letter-spacing: -0.012em; }
.schema-checks { display: flex; flex-wrap: wrap; gap: .25rem 1.1rem; margin-top: .45rem; font-size: var(--fs-small); color: var(--text-2); }
.schema-checks li::before {
    content: ""; display: inline-block; width: .55rem; height: .3rem; margin-right: .45rem; vertical-align: .2em;
    border-left: 1.5px solid var(--text); border-bottom: 1.5px solid var(--text); transform: rotate(-45deg);
}
.schema-cap { margin-top: .9rem; text-align: right; font-family: var(--mono); font-size: .6875rem; color: var(--muted); }

@keyframes sx-flow { to { stroke-dashoffset: -14; } }
@keyframes sx-pulse {
    0%   { transform: translateX(215px); opacity: 0; }
    10%  { opacity: 1; }
    55%  { transform: translateX(296px); opacity: 1; }
    62%, 100% { transform: translateX(296px); opacity: 0; }
}
@keyframes sx-check {
    0%, 55% { stroke-dashoffset: 14; }
    70%, 100% { stroke-dashoffset: 0; }
}
@keyframes sx-step {
    0%   { fill: var(--red); }
    33.3%, 100% { fill: var(--line-strong); }
}

.schema.is-paused .schema-svg * { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
    .schema-svg * { animation: none !important; }
    .sx-step.s2 circle { fill: var(--red); }
    .schema-pause { display: none; }
}

/* ---------- Porträt (2.1.2) ----------
   Impressum: Aufteilung wie die Eintragsseite des KI-Glossars (.g-layout):
   Kopf über die volle Breite, Lesespalte 42rem, Seitenspalte 19rem, unter 1000 px einspaltig.
   Startseite: rundes Porträt im Kontakt. */
.legal-layout {
    display: grid; grid-template-columns: minmax(0, 42rem) minmax(0, 19rem);
    justify-content: space-between; column-gap: clamp(2rem, 6vw, 6rem); align-items: start;
}
.legal-main { min-width: 0; }
.legal-side { padding-top: 2.25rem; font-size: var(--fs-small); line-height: 1.5; }
.side-box + .side-box { margin-top: 1.75rem; }
.legal .legal-side h2.side-label {
    margin: 0 0 .75rem; padding-bottom: .5rem; border-bottom: 1px solid var(--line);
    font-family: var(--mono); font-size: .8125rem; font-weight: 400; letter-spacing: 0; line-height: 1.3; color: var(--muted);
}
.side-label::before { content: ""; display: inline-block; width: .4rem; height: .4rem; border-radius: 50%; background: var(--red); margin-right: .5rem; vertical-align: .1em; }
.legal-side p + p { margin-top: .75rem; }
.legal-side .btn { width: 100%; }

.portrait img {
    width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
}
.portrait figcaption { margin-top: .6rem; color: var(--muted); }
.portrait figcaption b { display: block; font-weight: 500; color: var(--text); }

.contact-person { display: flex; align-items: center; gap: 1rem; margin-top: 1.5rem; }
.contact-person img {
    width: 4rem; height: 4rem; flex: none; border-radius: 50%;
    border: 1px solid var(--line); background: #fff;
}
.contact-info .contact-name { margin: 0; font-size: var(--fs-label); color: var(--muted); }
.contact-person .contact-mail { margin-top: .1rem; }

@media (max-width: 1000px) {
    .legal-layout { grid-template-columns: minmax(0, 1fr); }
    .legal-side { max-width: 18rem; }
}

/* ---------- Datenschutz: Seitenspalte (2.1.2) ---------- */
.flow { margin: 0; }
.flow-node, .flow-host li {
    display: flex; align-items: center; gap: .6rem;
}
.flow-node {
    padding: .65rem .8rem; background: #fff;
    border: 1px solid var(--line-strong); border-radius: var(--radius);
}
.flow .ico { width: 1.125rem; height: 1.125rem; color: var(--muted); }
.flow-link {
    position: relative; display: flex; align-items: center; gap: .5rem;
    height: 2.5rem; margin-left: 1.35rem; padding-left: 1rem;
    border-left: 1px solid var(--text);
    font-family: var(--mono); font-size: .75rem; color: var(--muted);
}
.flow-link::before {
    content: ""; position: absolute; left: -4px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px;
    border-radius: 50%; background: var(--red);
}
.flow-link.is-cut { border-left: 1px dashed var(--line-strong); }
.flow-link.is-cut::before { display: none; }
.flow-link.is-cut .ico { position: absolute; left: -.6rem; width: 1.2rem; height: 1.2rem; color: var(--red); background: var(--bg); stroke-width: 2; }
.flow-link.is-cut span { margin-left: .35rem; }
.flow-host {
    padding: .8rem; background: var(--panel);
    border: 1px solid var(--text); border-radius: var(--radius);
}
.flow-host-title { font-weight: 500; color: var(--text); }
.flow-host-title::before { content: ""; display: inline-block; width: .5rem; height: .5rem; border-radius: 50%; background: var(--red); margin-right: .5rem; vertical-align: .08em; }
.flow-host ul { margin-top: .6rem; }
.flow-host li { padding: .45rem .6rem; background: #fff; border: 1px solid var(--line); border-radius: 4px; }
.flow-host li + li { margin-top: .35rem; }
.flow-host li a { margin-left: auto; font-family: var(--mono); font-size: .75rem; color: var(--muted); }
.flow-host li a:hover { color: var(--text); }
.flow-node.is-none {
    border-style: dashed; color: var(--muted); background: transparent;
    text-decoration: line-through; text-decoration-color: var(--red);
}
.flow figcaption { margin-top: .75rem; color: var(--text-2); }

.side-kv > div {
    display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
    padding: .45rem 0; border-bottom: 1px solid var(--line);
}
.side-kv dt a { color: var(--text-2); text-decoration: none; }
.side-kv dt a:hover { color: var(--text); text-decoration: underline; }
.side-kv dd { font-family: var(--mono); font-size: .75rem; color: var(--muted); text-align: right; }
.side-note { color: var(--muted); }

@media (max-width: 1000px) {
    .legal-layout.side-first .legal-side { order: -1; max-width: 26rem; padding-bottom: .5rem; }
}

/* Extern geprüft (staysin.eu, nur verlinkt) */
.check { padding: .8rem; border: 1px solid var(--line-strong); border-radius: var(--radius); }
.check-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.check-head b { font-weight: 500; color: var(--text); }
.check-head span { font-family: var(--mono); font-size: .75rem; color: var(--muted); }
.check-bar { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3px; margin: .5rem 0 .65rem; }
.check-bar li { height: .6rem; border-radius: 2px; background: var(--text); }
.check p + p { margin-top: .5rem; }
.check .check-meta { font-family: var(--mono); font-size: .75rem; color: var(--muted); }
.check a::after { content: " ↗"; }

/* Über mich: Porträt rechts, Zitat unter dem Text (2.1.2) */
.portrait figcaption { font-size: var(--fs-small); }
.about-text .about-quote { margin-top: 2rem; }
.about .portrait { justify-self: end; width: min(100%, 24rem); }
@media (max-width: 1000px) {
    .about .portrait { order: -1; justify-self: start; width: min(100%, 18rem); }
}

/* ==========================================================
   2.4.0 Leitstand-Details auf hellem Grund
   ========================================================== */

/* Hero-Szene (2.5.0): Hintergrund des ganzen Hero, gedämpft und zur Textseite hin ausgeblendet.
   Das Schema-Panel wird Milchglas, die Szene schimmert durch. */
.hero { padding-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.hero-scene {
    position: absolute; inset: 0; z-index: 0; pointer-events: none;
    opacity: .7;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, transparent 43%, rgba(0,0,0,.5) 54%, #000 65%), linear-gradient(180deg, #000 85%, transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0%, transparent 43%, rgba(0,0,0,.5) 54%, #000 65%), linear-gradient(180deg, #000 85%, transparent 100%);
    -webkit-mask-composite: source-in; mask-composite: intersect;
}
.hero-scene canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero .schema {
    background: rgba(246,246,244,.74);
    -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
}
.hero .facts {
    margin-top: clamp(2.5rem, 5vw, 4rem);
    background: rgba(255,255,255,.84);
    -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
}

/* AI Engineering: feines Raster statt gestrichelter Rahmen */
.callout {
    border: 1px solid var(--line);
    background-image:
        radial-gradient(120% 100% at 85% 0%, transparent 0 30%, var(--panel) 80%),
        linear-gradient(var(--grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid) 1px, transparent 1px);
    background-size: auto, 24px 24px, 24px 24px;
}

/* Sektionskopf: kurzes rotes Stück am Anfang der Linie */
.section-head { position: relative; }
.section-head::before {
    content: ""; position: absolute; left: 0; top: -1px; width: 2.5rem; height: 2px; background: var(--red);
}

/* Arbeitsweise: echte Reihenfolge, daher Schrittnummern */
.steps { counter-reset: step; }
.steps li { position: relative; counter-increment: step; }
.steps li::before {
    content: counter(step, decimal-leading-zero);
    position: absolute; top: 1.3rem; right: 1.25rem;
    font-family: var(--mono); font-size: var(--fs-label); color: var(--muted);
}

@media (max-width: 1000px) {
    .hero-scene {
        opacity: .6;
        -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0,0,0,.35) 35%, #000 70%, #000 90%, transparent 100%);
                mask-image: linear-gradient(180deg, transparent 0%, rgba(0,0,0,.35) 35%, #000 70%, #000 90%, transparent 100%);
    }
}
@media (prefers-reduced-motion: reduce) {
    .btn { transition: none; }
}
