/*
  Richtung B "Betrieb": die Seite als Fenster in ein laufendes System.

  Palette (Regel 1), gemessen am echten Architekturgraphen
  /public/data/architecture-graph.json und graph-hero.webp:
  --signal   #0B7A57  Service-Layer-Grün des Graphen (#10B981, gemessen #0CB484),
                      auf L 26 % abgedunkelt, damit Text auf Weiß 5,3:1 erreicht.
  --signal-l #46C595  dasselbe Grün aufgehellt für die dunkle Betriebsfläche,
                      Sättigung bewusst unter 60 % (kein Neon).
  --guard    #E0820B  Config/Infra-Layer des Graphen (#F59E0B), dort liegen die Guards.
                      Farbton um 4 Grad Richtung Orange verschoben, damit es nicht als Gold liest.
                      Nur Status "gestoppt", nie Fläche, nie Button.
  --surface  #12201B  Tinte des Graphen: Service-Grün auf L 10 % abgesenkt, Graphit mit Grünstich.
  --ground   #FFFFFF  reines Weiß; --ground-2 #EEF2F0 kühles Grau, leicht zur Fläche gefärbt.
  --ink      #0F1A16  fast Schwarz Richtung Fläche; --ink-2 #52605A Nebentinte gleicher Färbung.

  Schrift: Archivo (Omnibus-Type), eine variable Familie, selbst gehostet.
  Display in Breite 112 % (technisch, breit wie eine Typenschildbeschriftung),
  Fließtext in Breite 100 %. Tabellenziffern für alle Zahlen.
*/
@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --ground: #ffffff;
  --ground-2: #eef2f0;
  --surface: #12201b;
  --surface-2: #1b2c26;
  --ink: #0f1a16;
  --ink-2: #52605a;
  --line: #d5ddd9;
  --signal: #0b7a57;
  --signal-l: #46c595;
  --guard: #e0820b;
  --on-surface: #e9efec;
  --on-surface-2: #a3b3ac;
  --r: 6px;
  --gut: clamp(16px, 4vw, 48px);
  --max: 1200px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #0d1613;
    --ground-2: #14211c;
    --surface: #1a2a24;
    --surface-2: #233630;
    --ink: #e9efec;
    --ink-2: #a3b3ac;
    --line: #2a3b35;
    --signal: #46c595;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: "Archivo", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  font-stretch: 100%;
  font-variant-numeric: tabular-nums;
}
img, video, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }

h1, h2, h3 {
  font-stretch: 112%;
  font-weight: 640;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.3rem, 5.4vw, 4.5rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 3rem); }
h3 { font-size: clamp(1.2rem, 1.8vw, 1.5rem); line-height: 1.2; }

.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--gut); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 50; background: var(--ink); color: var(--ground); padding: 10px 14px; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; }

/* Kopfzeile */
.top {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  background: color-mix(in srgb, var(--ground) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.mark { font-stretch: 118%; font-weight: 700; text-decoration: none; font-size: 1.15rem; letter-spacing: -0.01em; white-space: nowrap; }
.mark span { color: var(--ink-2); font-weight: 500; }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a { text-decoration: none; padding: 10px 12px; min-height: 44px; display: inline-flex; align-items: center; color: var(--ink-2); font-size: 0.95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--signal); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 22px;
  border-radius: var(--r);
  font-weight: 600; font-size: 1rem; text-decoration: none; white-space: nowrap;
  border: 1.5px solid var(--ink);
  transition: background-color .2s, color .2s;
}
.btn-primary { background: var(--signal); border-color: var(--signal); color: #fff; }
.btn-primary:hover { background: var(--ink); border-color: var(--ink); color: var(--ground); }
.btn-quiet { background: transparent; color: var(--ink); }
.btn-quiet:hover { background: var(--ink); color: var(--ground); }
.nav a.btn-primary { color: #fff; }
.top .btn { min-height: 44px; padding: 8px 16px; font-size: 0.95rem; }

@media (prefers-color-scheme: dark) {
  .btn-primary { color: #0d1613; }
}

/* Hero */
.hero { padding-block: clamp(40px, 7vw, 96px) clamp(48px, 7vw, 104px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 4.5vw, 3.9rem); }
.hero h1 em { font-style: normal; color: var(--signal); }
.hero .lede { font-size: clamp(1.1rem, 1.5vw, 1.3rem); color: var(--ink-2); max-width: 34ch; margin: 24px 0 32px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Betriebsprotokoll: Signal läuft durch die Kette */
.chain {
  background: var(--surface);
  color: var(--on-surface);
  border-radius: var(--r);
  padding: 28px 28px 22px;
  position: relative;
}
.chain-head { display: flex; justify-content: space-between; gap: 12px; font-size: 0.85rem; color: var(--on-surface-2); margin-bottom: 18px; }
.chain-head b { color: var(--on-surface); font-weight: 600; }
.live { display: inline-flex; align-items: center; gap: 8px; }
.live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--signal-l); }
.steps-wrap { position: relative; }
.steps { list-style: none; margin: 0; padding: 0; position: relative; }
.steps-wrap::before {
  content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px;
  background: var(--surface-2);
}
.rail { position: absolute; left: 7px; top: 8px; width: 2px; height: calc(100% - 16px); background: var(--signal-l); transform-origin: top; }
.step { position: relative; padding: 0 0 18px 34px; }
.step:last-child { padding-bottom: 0; }
.step::before {
  content: ""; position: absolute; left: 0; top: 5px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--signal-l);
}
.step .who { display: block; font-size: 0.8rem; color: var(--on-surface-2); font-stretch: 112%; font-weight: 600; letter-spacing: 0.02em; }
.step .what { display: block; font-size: 0.98rem; line-height: 1.45; }
.step.stop::before { border-color: var(--guard); background: var(--guard); }
.step.stop .who { color: var(--guard); }
.step.done::before { background: var(--signal-l); }
.step .log { display: block; margin-top: 8px; padding: 10px 12px; background: #0b1511; border-radius: var(--r); font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.78rem; line-height: 1.5; overflow-wrap: anywhere; }
.step .log span { display: block; }
.step .log .cmd::before { content: "$ "; color: var(--on-surface-2); }
.step .log .ok { color: var(--signal-l); }
.step .log .no { color: var(--guard); }
.step .log s { text-decoration: none; position: relative; }
.step .log s::after { content: ""; position: absolute; left: 0; right: 0; top: 55%; height: 1.5px; background: var(--guard); transform-origin: left; }
.chain-note { font-size: 0.8rem; color: var(--on-surface-2); margin: 18px 0 0; border-top: 1px solid var(--surface-2); padding-top: 12px; }

/* Echter Produktmoment im Hero */
.hero-media { margin: 0; }
.hero-media .player { box-shadow: 0 0 0 1px var(--line), 0 30px 60px -30px rgba(15, 26, 22, .45); }
.hero-media figcaption { font-size: 0.92rem; color: var(--ink-2); margin-top: 14px; max-width: 60ch; }
.hero-media figcaption b { color: var(--ink); font-weight: 600; }
.system .chain { background: #0c1713; box-shadow: inset 0 0 0 1px var(--surface-2); }

/* Abschnitte */
.sec { padding-block: clamp(64px, 9vw, 128px); }
.sec-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.sec-head p { color: var(--ink-2); font-size: 1.15rem; margin-top: 18px; }

/* Drei Wege als Leitungsplan, keine Karten */
.ways { border-top: 1.5px solid var(--ink); }
.way { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) minmax(0, 3fr); gap: 32px; padding-block: 32px; border-bottom: 1px solid var(--line); align-items: start; }
.way p { margin: 0; color: var(--ink-2); }
.way .time { font-weight: 600; color: var(--ink); }
.way .time small { display: block; font-weight: 400; color: var(--ink-2); font-size: 0.9rem; }

/* Betriebsfläche: System */
.system { background: var(--surface); color: var(--on-surface); }
.system .sec-head p { color: var(--on-surface-2); }
.system h2 { color: #fff; }
.sys-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.graph-box figcaption { font-size: 0.85rem; color: var(--on-surface-2); margin-top: 14px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; font-size: 0.85rem; color: var(--on-surface-2); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: 0; }
.graph line { stroke: #4a6158; stroke-width: 0.7; opacity: 0.6; }
.graph circle { stroke: var(--surface); stroke-width: 1; }
.g-svc circle { fill: var(--signal-l); }
.g-inf circle { fill: var(--guard); }
.g-ui circle { fill: #6f857c; }
.g-api circle { fill: #c9d5d0; }
.g-ext circle { fill: #c9d5d0; }
.g-pulse { fill: none; stroke: #ffffff; stroke-width: 1.6; opacity: .9; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.ledger { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--surface-2); }
.ledger li { display: grid; grid-template-columns: 8.6rem minmax(0, 1fr); gap: 20px; align-items: baseline; padding-block: 16px; border-bottom: 1px solid var(--surface-2); }
.ledger .n { font-stretch: 112%; font-weight: 650; font-size: clamp(1.6rem, 2.6vw, 2.2rem); color: #fff; line-height: 1; text-align: right; white-space: nowrap; }
.ledger .t { color: var(--on-surface-2); }
.ledger .t b { color: var(--on-surface); font-weight: 600; }
.source { font-size: 0.8rem; color: var(--on-surface-2); margin-top: 14px; }

.guard-demo { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(28px, 4vw, 56px); align-items: center; margin-top: clamp(56px, 8vw, 104px); padding-top: clamp(40px, 6vw, 72px); border-top: 1px solid var(--surface-2); }
.guard-demo h3 { color: #fff; margin-bottom: 14px; }
.guard-demo p { color: var(--on-surface-2); }
.guard-demo a { color: var(--signal-l); }

/* Video mit Poster, Start nur auf Klick */
.player { position: relative; border-radius: var(--r); overflow: hidden; background: #000; }
.player video, .player img { width: 100%; height: auto; }
.player button {
  position: absolute; inset: 0; width: 100%; border: 0; background: transparent; cursor: pointer; padding: 0;
  display: flex; align-items: flex-end; justify-content: flex-start;
}
.player button span {
  margin: 16px; display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 18px 10px 14px;
  background: #fff; color: #0f1a16; border-radius: var(--r); font: 600 0.95rem/1 "Archivo", Arial, sans-serif;
}
.player button span::before { content: ""; width: 0; height: 0; border-left: 12px solid #0b7a57; border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.player.playing button { display: none; }

/* Laufende Systeme */
.runs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px) clamp(24px, 3vw, 40px); }
.run { margin: 0; }
.run a { text-decoration: none; display: block; }
.run .shot { background: var(--ground-2); border-radius: var(--r); overflow: hidden; }
.run h3 { margin: 0 0 8px; }
.run p { color: var(--ink-2); margin: 0; max-width: 52ch; }
.run a:hover h3 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.run-main { grid-column: 1 / -1; }
.run-main a { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 3fr); gap: clamp(24px, 3vw, 48px); align-items: end; }
.run-main .shot { box-shadow: 0 0 0 1px var(--line); }
.run-main .shot img { width: 100%; }
.run-main .cap { margin-top: 14px; }
.run-sub a { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 24px; align-items: center; border-top: 1px solid var(--line); padding-top: 24px; }
.run-sub .shot img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: top left; }
.run-sub .shot.phone { padding: 16px 16px 0; aspect-ratio: 4 / 3; display: flex; justify-content: center; }
.run-sub .shot.phone img { width: 58%; height: 100%; aspect-ratio: auto; object-fit: cover; object-position: top; border-radius: var(--r) var(--r) 0 0; box-shadow: 0 0 0 1px var(--line); }
.more { margin-top: 40px; display: flex; justify-content: flex-end; }
.more a { font-weight: 600; text-underline-offset: 4px; }

/* Stimmen */
.voices { background: var(--ground-2); }
.voice-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); }
blockquote { margin: 0; }
blockquote p { font-size: clamp(1.2rem, 1.9vw, 1.5rem); line-height: 1.45; font-stretch: 104%; }
blockquote footer { color: var(--ink-2); font-size: 0.95rem; }
blockquote footer b { color: var(--ink); display: block; }

/* Über mich */
.about { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.about img { border-radius: var(--r); width: 100%; aspect-ratio: 580 / 760; object-fit: cover; }
.about h2 { margin-bottom: 22px; }
.about p { color: var(--ink-2); max-width: 58ch; }
.facts { list-style: none; padding: 0; margin: 28px 0 0; border-top: 1px solid var(--line); }
.facts li { padding-block: 12px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 15ch) minmax(0, 1fr); gap: 16px; }
.facts b { font-weight: 600; }
.facts span { color: var(--ink-2); }

/* Kontakt */
.contact { background: var(--surface); color: var(--on-surface); }
.contact .wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; align-items: end; }
.contact h2 { color: #fff; font-size: clamp(2.2rem, 5vw, 4rem); }
.contact p { color: var(--on-surface-2); font-size: 1.15rem; margin-top: 18px; max-width: 40ch; }
.contact .btn-primary { background: var(--signal-l); border-color: var(--signal-l); color: #0d1613; }
.contact .btn-primary:hover { background: #fff; border-color: #fff; }
.contact .mail { display: block; margin-top: 16px; color: var(--on-surface); }

.foot { padding-block: 28px; font-size: 0.9rem; color: var(--ink-2); }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.foot a { color: var(--ink-2); }

/* Projektübersicht als Prozessliste */
.page-head { padding-block: clamp(40px, 7vw, 88px) clamp(28px, 4vw, 48px); }
.page-head p { color: var(--ink-2); font-size: 1.2rem; max-width: 52ch; margin-top: 20px; }
.jump { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 28px; }
.jump a { color: var(--ink-2); min-height: 44px; display: inline-flex; align-items: center; text-underline-offset: 4px; }
.group { padding-block: clamp(36px, 5vw, 64px); border-top: 1.5px solid var(--ink); }
.group-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px; margin-bottom: 32px; align-items: baseline; }
.group-head p { color: var(--ink-2); margin: 0; }
.group-head h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.group-head h2 small { font-size: 0.55em; color: var(--ink-2); font-weight: 500; margin-left: 10px; }
.plist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 28px; }
.proj a { text-decoration: none; display: block; }
.proj .face { aspect-ratio: 16 / 10; border-radius: var(--r); overflow: hidden; background: var(--ground-2); position: relative; }
.proj .face img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.proj .face.type-face { background: var(--surface); }
.proj .face.type-face.alt { background: var(--ground-2); }
.proj .face.contain img { object-fit: contain; object-position: center; padding: 12px; }
.proj h3 { font-size: 1.15rem; margin: 14px 0 4px; }
.proj p { margin: 0; color: var(--ink-2); font-size: 0.95rem; line-height: 1.5; }
.proj .state { display: block; font-size: 0.85rem; color: var(--signal); font-weight: 600; margin-top: 8px; }
.proj a:hover h3 { text-decoration: underline; text-underline-offset: 4px; }
/* Typografie-Fläche statt Bild: ein echter Satz aus dem Projekt */
.type-face { display: flex; flex-direction: column; justify-content: space-between; padding: clamp(16px, 2vw, 24px); background: var(--surface); color: var(--on-surface); }
.type-face .big { font-stretch: 118%; font-weight: 650; font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.12; letter-spacing: -0.015em; color: #fff; }
.type-face .small { font-size: 0.85rem; color: var(--on-surface-2); }
.type-face.alt { background: var(--ground-2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.type-face.alt .big { color: var(--ink); }
.type-face.alt .small { color: var(--ink-2); }
.type-face .big b { color: var(--signal-l); font-weight: inherit; }
.type-face.alt .big b { color: var(--signal); }


/* Leitprojekte groß und asymmetrisch, danach kompakte Liste */
.leads { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 5vw, 64px) clamp(24px, 3vw, 40px); padding-bottom: clamp(48px, 7vw, 96px); }
.lead { margin: 0; }
.lead a { text-decoration: none; display: block; }
.lead-shot { border-radius: var(--r); overflow: hidden; box-shadow: 0 0 0 1px var(--line); background: var(--ground-2); }
.lead-shot img { width: 100%; }
.lead h2 { font-size: clamp(1.5rem, 2.6vw, 2.2rem); margin: 18px 0 8px; }
.lead p { color: var(--ink-2); margin: 0; max-width: 56ch; }
.lead .state { display: inline-block; margin-top: 12px; font-weight: 600; color: var(--signal); }
.lead a:hover h2 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.lead-wide { grid-column: 1 / -1; }
.lead-wide a { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(24px, 4vw, 56px); align-items: end; }
.lead-wide h2 { margin-top: 0; font-size: clamp(1.9rem, 3.4vw, 3rem); }
.lead-b .lead-shot img { aspect-ratio: 16 / 9; object-fit: cover; }
.leads + .jump { margin-top: 0; padding-bottom: 24px; }
.index { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 0 clamp(24px, 5vw, 72px); padding-block: clamp(48px, 7vw, 96px); border-top: 1.5px solid var(--ink); }
.index-head { grid-column: 1 / -1; margin-bottom: clamp(24px, 4vw, 48px); }
.index-head p { color: var(--ink-2); margin: 14px 0 0; font-size: 1.1rem; }
.cat { grid-column: 1; padding-block: 22px; border-top: 1px solid var(--line); }
.cat h3 { font-size: 1.2rem; }
.cat h3 small { font-size: 0.8em; color: var(--ink-2); font-weight: 500; margin-left: 4px; }
.cat p { color: var(--ink-2); font-size: 0.93rem; margin: 8px 0 0; max-width: 36ch; }
.rows { grid-column: 2; list-style: none; margin: 0 0 clamp(24px, 3vw, 40px); padding: 0; }
.prow { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 18px; padding-block: 14px; border-top: 1px solid var(--line); align-items: center; }
.prow .face { aspect-ratio: 16 / 10; border-radius: var(--r); overflow: hidden; background: var(--ground-2); }
.prow .face img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.prow .face.contain img { object-fit: contain; object-position: center; padding: 4px; }
.prow .face.type-face { background: var(--surface); padding: 8px 10px; justify-content: center; }
.prow .face.type-face.alt { background: var(--ground-2); }
.prow .type-face .big { font-size: 0.74rem; line-height: 1.15; font-stretch: 104%; }
.prow h4 { font-stretch: 112%; font-weight: 640; letter-spacing: -0.015em; font-size: 1.25rem; line-height: 1.2; margin: 0 0 2px; }
.prow p { margin: 0; color: var(--ink-2); font-size: 0.95rem; line-height: 1.45; }
.prow .state { font-size: 0.85rem; color: var(--signal); font-weight: 600; text-align: right; white-space: nowrap; }
.prow .state a { color: var(--signal); }
@media (max-width: 960px) {
  .leads, .lead-wide a, .index { grid-template-columns: minmax(0, 1fr); }
  .cat, .rows { grid-column: 1; }
}
@media (max-width: 600px) {
  .prow { grid-template-columns: 96px minmax(0, 1fr); gap: 4px 14px; }
  .prow .state { grid-column: 2; text-align: left; }
  .prow .type-face .big { font-size: 0.66rem; font-stretch: 100%; hyphens: auto; overflow-wrap: anywhere; }
  .prow .face.type-face { padding: 6px; }
  .prow h4 { font-size: 1.1rem; }
}

/* Projektdetail */
.crumbs { font-size: 0.9rem; color: var(--ink-2); padding-top: 28px; }
.crumbs a { color: var(--ink-2); }
.detail-hero { padding-block: clamp(24px, 4vw, 48px) clamp(32px, 5vw, 56px); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 72px); align-items: end; }
.detail-hero p { color: var(--ink-2); font-size: 1.15rem; margin: 20px 0 0; }
.facts-row { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--ink); }
.facts-row li { display: grid; grid-template-columns: 4.6rem minmax(0, 1fr); gap: 16px; padding-block: 12px; border-bottom: 1px solid var(--line); align-items: baseline; }
.facts-row b { font-stretch: 112%; font-size: 1.5rem; font-weight: 650; text-align: right; }
.facts-row span { color: var(--ink-2); }
.main-shot { border-radius: var(--r); overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.main-shot img { width: 100%; }
.cap { font-size: 0.85rem; color: var(--ink-2); margin-top: 12px; }
.case { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); border-top: 1.5px solid var(--ink); padding-top: 28px; }
.case h3 { margin-bottom: 12px; }
.case p { color: var(--ink-2); margin: 0; }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); align-items: start; }
.gallery figure { margin: 0; }
.gallery .phone { background: var(--ground-2); border-radius: var(--r); padding: clamp(20px, 4vw, 56px) clamp(20px, 6vw, 96px) 0; aspect-ratio: 5 / 6; overflow: hidden; display: flex; justify-content: center; }
.gallery .phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: var(--r) var(--r) 0 0; box-shadow: 0 0 0 1px var(--line); }
.gallery .wide { grid-column: span 2; }
.gallery .wide .frame { border-radius: var(--r); overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.gallery figcaption { font-size: 0.85rem; color: var(--ink-2); margin-top: 10px; }
.video-row { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.video-row .player { max-width: 360px; background: var(--ground-2); }
.video-row p { color: var(--ink-2); }
.features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(28px, 5vw, 72px); }
.features li { padding-block: 22px; border-top: 1px solid var(--line); }
.features h3 { margin-bottom: 8px; font-size: 1.2rem; }
.features p { color: var(--ink-2); margin: 0; }

/* Bewegung nur mit JS und ohne reduzierte Bewegung (Regel 12) */
@media (prefers-reduced-motion: no-preference) {
  html.js .chain .step::before { transition: background-color .3s ease, box-shadow .3s ease; }
  html.js .chain .step:not(.on)::before { border-color: #3b5048; }
  html.js .chain .step.stop:not(.on)::before { background: var(--surface); }
  html.js .chain .rail { transform: scaleY(0); }
  html.js .chain.run .rail { animation: rail 2.6s cubic-bezier(.5,0,.3,1) forwards; }
  html.js .chain .step.stop .log s::after { transform: scaleX(0); transition: transform .45s ease .2s; }
  html.js .chain .step.stop.on .log s::after { transform: scaleX(1); }
  html.js .chain .step.stop.on::before { animation: halt .6s ease 1; }
  html.js .graph .g-nodes { opacity: 0; transition: opacity .6s ease; }
  html.js .graph.on .g-nodes { opacity: 1; }
  html.js .graph.on .g-svc { transition-delay: .25s; }
  html.js .graph.on .g-inf { transition-delay: .5s; }
  html.js .graph .g-links { opacity: 0; transition: opacity .8s ease; }
  html.js .graph.on .g-links { opacity: 1; }
  html.js .graph .g-pulse { stroke-dashoffset: 1; }
  html.js .graph.on .g-pulse { animation: pulse 1.4s ease-in-out .9s forwards; }
}
@keyframes rail { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes halt { 0% { box-shadow: 0 0 0 0 rgba(224,130,11,.7); } 100% { box-shadow: 0 0 0 12px rgba(224,130,11,0); } }
@keyframes pulse { to { stroke-dashoffset: 0; } }

/* Schmal */
@media (max-width: 960px) {
  .run-main a, .run-sub a { grid-template-columns: minmax(0, 1fr); }
  .runs { grid-template-columns: minmax(0, 1fr); }
  .hero .wrap, .sys-grid, .guard-demo, .voice-grid, .about, .contact .wrap, .detail-hero, .video-row, .group-head { grid-template-columns: minmax(0, 1fr); }
  .way { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .plist { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case { grid-template-columns: minmax(0, 1fr); }
  .about img { max-width: 420px; }
  .nav .opt { display: none; }
}
@media (max-width: 600px) {
  .mark span { display: none; }
  .nav a:not(.btn) { display: none; }
  .plist { grid-template-columns: minmax(0, 1fr); }
  .features { grid-template-columns: minmax(0, 1fr); }
  .gallery .wide { grid-column: span 2; }
  .chain { padding: 22px 18px 18px; }
  .chain-head .live { display: none; }
  .ledger li { grid-template-columns: 6.4rem minmax(0, 1fr); gap: 14px; }
  .ledger .n { font-size: 1.55rem; }
  .top .wrap { gap: 10px; }
  .mark { font-size: 0.95rem; font-stretch: 104%; }
  .top .btn { padding: 8px 12px; }
  .facts li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}
