/* ==========================================================================
   AUTOMAT–1 — medienautomatisierung.com
   Oryzo-Prinzip: ein Produkt, eine Kamerafahrt, liebevolle Übertreibung.
   Farben: Grund #140D07 · Fläche #3A2517 · Creme #F5EADB (gedämpft = 50 % Deckkraft,
   NIE ein zweites Grau) · Akzent #E56910 (sparsam) · Bühnen-Rot #8E1B12 (eine Fläche).
   Modul-Töne (NUR Konfigurator-HUD/Spec, via --khud): Motion #E0604A · Versand #E8B04B
   — beide AA-tauglich (≥ 4,5:1) auf #140D07.
   Gewichte: ausschliesslich 400 / 500.
   ========================================================================== */

:root {
  --bg: #140D07;
  --surface: #3A2517;
  --cream: #F5EADB;
  --accent: #E56910;
  --red: #8E1B12;
  --ink: #140D07;
  --hud: rgba(245, 234, 219, 0.55);

  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Literata", Georgia, serif;
  --mono: "DM Mono", Consolas, "Courier New", monospace;

  --pad: clamp(20px, 4vw, 64px);
  --nav-h: 72px;
}

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

html { scroll-behavior: auto; }
html, body { overflow-x: clip; }

body {
  background: var(--bg);
  color: var(--cream);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 21px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

::selection { background: var(--accent); color: var(--ink); }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --- Typo-System ------------------------------------------------------------
   Mikro-Label 14/500/VERSALIEN · Fliesstext 21/400 · Stufen 26–60/500 ·
   Riesen-Display bis 144/500. Gedämpft ausschliesslich über Deckkraft. */

.lbl {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.4;
}
.dim   { opacity: 0.5; }
.dim72 { opacity: 0.72; }

.h-mid {
  font-weight: 500;
  font-size: clamp(26px, 3.2vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.01em;
}
.h-big {
  font-weight: 500;
  font-size: clamp(40px, 6.4vw, 96px);
  line-height: 1.02;
  letter-spacing: -0.015em;
}
.h-display {
  font-weight: 500;
  font-size: clamp(52px, 9.6vw, 144px);
  line-height: 0.96;
  letter-spacing: -0.02em;
}

.mono { font-family: var(--mono); font-weight: 400; }
.serif { font-family: var(--serif); }

.bracket { white-space: nowrap; }

/* --- Bild-Bühnen mit Gradient-Fallback -------------------------------------
   Mehrschichtige Hintergründe: fehlt das WebP, bleibt der warme Verlauf. */
.ph {
  background-color: var(--surface);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.ph-hero {
  background-image:
    url("img/hero-desk.webp"),
    radial-gradient(120% 90% at 50% 10%, #4A2F1B 0%, #2A1810 55%, #140D07 100%);
}
.ph-hand {
  background-image:
    url("img/hand-klappe.webp"),
    radial-gradient(110% 100% at 30% 80%, #5A3A20 0%, #33200F 50%, #140D07 100%);
}
.ph-produkt {
  background-image:
    url("img/produkt-klappe.webp"),
    radial-gradient(90% 90% at 50% 42%, #55371E 0%, #2E1C0E 62%, #1A100A 100%);
}
.ph-mesh {
  background-image:
    url("img/macro-mesh.webp"),
    radial-gradient(130% 110% at 60% 40%, #46301C 0%, #241609 55%, #120B06 100%);
}
.ph-nacht-server {
  background-image:
    url("img/nacht-server.webp"),
    linear-gradient(200deg, #33251C 0%, #17100B 70%);
}
.ph-nacht-0630 {
  background-image:
    url("img/nacht-0630.webp"),
    linear-gradient(160deg, #4A3016 0%, #1C1108 70%);
}
.ph-nacht-studio {
  background-image:
    url("img/nacht-studio.webp"),
    linear-gradient(180deg, #2C1F16 0%, #140D07 75%);
}
.ph-roboter {
  background-image:
    url("img/roboter-klappe.webp"),
    radial-gradient(100% 100% at 50% 30%, #4E331C 0%, #221408 65%);
}

/* --- Nav -------------------------------------------------------------------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--nav-h);
  padding: 0 var(--pad);
  background: linear-gradient(180deg, rgba(20, 13, 7, 0.82) 0%, rgba(20, 13, 7, 0) 100%);
  pointer-events: none;
}
.nav > * { pointer-events: auto; }

.nav-brand {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
}
.nav-brand span { color: var(--accent); }

.nav-menu { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 34px); list-style: none; }
.nav-menu a {
  display: inline-block;
  padding: 8px 2px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  opacity: 0.5;
  transition: opacity 0.25s ease;
}
.nav-menu a:hover, .nav-menu a:focus-visible { opacity: 1; }
.nav-menu a.is-active {
  opacity: 1;
  text-decoration: underline dotted;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 7px;
}

/* --- Fortschritts-Tab rechts ------------------------------------------------ */
.progress-rail {
  position: fixed;
  top: 0;
  right: 18px;
  bottom: 0;
  z-index: 55;
  width: 1px;
  background: rgba(245, 234, 219, 0.16);
  pointer-events: none;
}
.progress-tab {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  padding: 14px 0;
  background: var(--cream);
  color: var(--ink);
  border-radius: 13px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  white-space: nowrap;
}

/* --- Szenen-Grundlayout ------------------------------------------------------ */
.scene { position: relative; }
.stage {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: clip;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.stage-media {
  position: absolute;
  inset: -6%;
  z-index: 0;
  will-change: transform;
}
.stage-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(20, 13, 7, 0.45) 0%, rgba(20, 13, 7, 0.05) 38%, rgba(20, 13, 7, 0.62) 100%);
}
.hero .stage-shade {
  background: linear-gradient(180deg, rgba(20, 13, 7, 0.55) 0%, rgba(20, 13, 7, 0.22) 34%, rgba(20, 13, 7, 0.78) 100%);
}
.stage-content { position: relative; z-index: 2; }

/* --- Szene 1 · Hero ---------------------------------------------------------- */
.hero .stage-content {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--nav-h) + 24px) var(--pad) 30px;
}
.hero-claim { margin-bottom: 10px; }
.hero-wordmark {
  font-weight: 500;
  font-size: clamp(64px, 16.4vw, 300px);
  line-height: 0.9;
  letter-spacing: 0.015em;
  text-transform: uppercase;
  color: var(--cream);
  margin-left: -0.04em;
}
.hero-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-top: clamp(22px, 4vh, 48px);
}
.glass-card {
  max-width: 400px;
  padding: 22px 24px 24px;
  border: 1px solid rgba(245, 234, 219, 0.16);
  border-radius: 14px;
  background: rgba(245, 234, 219, 0.06);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass-card { background: rgba(20, 13, 7, 0.72); }
}
.glass-card .dotline { margin: 14px 0; }
.glass-card p { font-size: 21px; line-height: 1.45; }

.dotline {
  height: 1px;
  background-image: linear-gradient(90deg, rgba(245, 234, 219, 0.55) 22%, transparent 0);
  background-size: 7px 1px;
  background-repeat: repeat-x;
}

.hero-meta { text-align: right; }
.hero-meta .lbl { display: block; }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  z-index: 3;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.72;
  transition: opacity 0.4s ease;
}
.scroll-cue .chev { display: inline-block; margin-right: 10px; }
.is-scrolled .scroll-cue { opacity: 0; }

/* --- Szene 2 · Läuft mit KI* -------------------------------------------------- */
.ki .stage-content {
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--nav-h) + 24px) var(--pad) 46px;
}
.ki-head { align-self: center; }
.ki-label { color: var(--accent); margin-bottom: 18px; }
.ki-title {
  font-weight: 500;
  font-size: clamp(56px, 11vw, 168px);
  line-height: 0.98;
  letter-spacing: -0.02em;
}
.ki-title sup { font-size: 0.45em; vertical-align: 0.7em; color: var(--accent); }
.ki-foot {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 26px;
}
.ki-three { max-width: 460px; text-align: left; }
.ki-three .lbl { line-height: 1.7; }

/* --- Szene 3 · arbeitet nachts ------------------------------------------------ */
.nachts { padding: clamp(90px, 14vh, 160px) 0 0; }

.zstack {
  position: relative;
  padding: 0 var(--pad);
  text-align: center;
}
.ztext .zline1 {
  display: block;
  font-size: clamp(18px, 2vw, 28px);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: clamp(10px, 1.6vw, 22px);
}
.ztext .zline2 {
  display: block;
  font-weight: 500;
  font-size: clamp(56px, 10.4vw, 176px);
  line-height: 0.95;
  letter-spacing: -0.02em;
}
.ztext-front {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  align-content: center;
  padding: 0 var(--pad);
  clip-path: inset(52% 0 0 0);
  pointer-events: none;
}
.zimg {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -46%);
  width: clamp(180px, 24vw, 360px);
  aspect-ratio: 1;
  z-index: 1;
  will-change: transform;
}
.zimg .ph { position: absolute; inset: 10%; border-radius: 10px; }
.zstack { min-height: clamp(340px, 44vw, 660px); display: grid; align-content: center; }

/* HUD-Fokus-Rahmen */
.hud-frame {
  position: absolute;
  inset: 0;
  border: 1px dashed var(--hud);
  transition: border-color 0.35s ease;
}
.hud-frame .hud-c {
  position: absolute;
  width: 16px;
  height: 16px;
  border-color: var(--hud);
  border-style: solid;
  border-width: 0;
  transition: border-color 0.35s ease;
}
.hud-frame .hud-c.tl { top: -2px; left: -2px; border-top-width: 2px; border-left-width: 2px; }
.hud-frame .hud-c.tr { top: -2px; right: -2px; border-top-width: 2px; border-right-width: 2px; }
.hud-frame .hud-c.bl { bottom: -2px; left: -2px; border-bottom-width: 2px; border-left-width: 2px; }
.hud-frame .hud-c.br { bottom: -2px; right: -2px; border-bottom-width: 2px; border-right-width: 2px; }
.hud-frame .hud-tag {
  position: absolute;
  top: -26px;
  left: 0;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hud);
  transition: color 0.35s ease;
}

/* Horizontale Galerie */
.gal-pin { position: relative; overflow: clip; margin-top: clamp(70px, 10vh, 130px); }
.gal-track {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.6vw, 40px);
  padding: 40px var(--pad) 64px;
  width: max-content;
  will-change: transform;
}
.gal-item { flex: 0 0 auto; }
.gal-photo {
  width: clamp(220px, 26vw, 380px);
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  overflow: clip;
}
.gal-photo.wide { aspect-ratio: 4 / 3; width: clamp(260px, 32vw, 470px); }
.gal-cap { margin-top: 12px; }

/* Rotes Poster mit Fake-Chat */
.poster {
  width: clamp(280px, 32vw, 460px);
  padding: clamp(20px, 2.4vw, 32px);
  border-radius: 14px;
  background: var(--red);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.poster-klappe { aspect-ratio: 1; border-radius: 10px; }
.poster .lbl { text-align: center; }
.chat { display: flex; flex-direction: column; gap: 10px; }
.chat-answer {
  align-self: flex-end;
  max-width: 85%;
  padding: 10px 16px;
  border-radius: 14px 14px 4px 14px;
  background: var(--cream);
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  visibility: hidden;
}
.chat.answered .chat-answer { opacity: 1; transform: none; visibility: visible; }
.chat-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(245, 234, 219, 0.35);
  border-radius: 999px;
}
.chat-q {
  flex: 1;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
}
.chat-send {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 6px 18px;
  border-radius: 999px;
  background: var(--cream);
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: transform 0.2s ease;
}
.chat-send:hover { transform: scale(1.05); }
.chat-send:active { transform: scale(0.96); }

/* --- Szene 4 · Funktionen A ---------------------------------------------------- */
.schnitt {
  position: relative;
  padding: clamp(100px, 16vh, 190px) var(--pad);
  background:
    radial-gradient(90% 70% at 70% 30%, rgba(58, 37, 23, 0.55) 0%, rgba(20, 13, 7, 0) 70%),
    var(--bg);
  overflow: clip;
}
.schnitt-grid {
  display: grid;
  grid-template-columns: minmax(280px, 460px) 1fr;
  gap: clamp(32px, 5vw, 90px);
  align-items: center;
}
.schnitt-copy .lbl { color: var(--accent); margin-bottom: 20px; }
.schnitt-copy h2 { margin-bottom: 22px; }
.schnitt-copy p { max-width: 42ch; }

.wave-stage { position: relative; }
.wave {
  display: flex;
  align-items: center;
  gap: 3px;
  height: clamp(150px, 22vw, 260px);
}
.wave i {
  flex: 1 1 auto;
  min-width: 2px;
  height: calc(var(--h, 40) * 1%);
  background: var(--cream);
  opacity: 0.62;
  border-radius: 2px;
  transform-origin: center;
}
.wave i.cut { background: var(--accent); opacity: 0.95; }
.path-overlay {
  position: absolute;
  inset: -12% -2%;
  width: 104%;
  height: 124%;
  pointer-events: none;
  overflow: visible;
}
.path-overlay .bez {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
}
.path-overlay .handle { stroke: rgba(245, 234, 219, 0.45); stroke-width: 1; }
.path-overlay .anchor { fill: var(--accent); stroke: var(--bg); stroke-width: 1.5; }
.path-overlay .handle-dot { fill: none; stroke: rgba(245, 234, 219, 0.6); stroke-width: 1; }

.schnitt-specs {
  grid-column: 1 / -1;
  margin-top: clamp(40px, 7vh, 90px);
  padding-top: 34px;
  border-top: 1px solid rgba(245, 234, 219, 0.14);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 22px 40px;
}
.formel {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.2;
}
.schnitt-foot { flex-basis: 100%; }

/* --- Szene 5 · Versprecher-Radar ------------------------------------------------ */
.radar .stage-content {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: clamp(28px, 5vh, 56px);
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--nav-h) + 30px) var(--pad) 60px;
}
.radar h2 .blur-word { display: inline-block; will-change: filter; }
.radar-sub { max-width: 52ch; }
.radar-panel {
  max-width: 560px;
  padding: 24px 26px 28px;
  border: 1px solid rgba(245, 234, 219, 0.2);
  border-radius: 14px;
  background: rgba(20, 13, 7, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.radar-readout {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  font-family: var(--mono);
  font-size: 15px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.radar-readout output { color: var(--accent); font-size: 24px; }
.rs-slider {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  height: 32px;
  background: transparent;
  cursor: ew-resize;
}
.rs-slider::-webkit-slider-runnable-track {
  height: 2px;
  background: linear-gradient(90deg, var(--accent) calc(var(--fill, 50) * 1%), rgba(245, 234, 219, 0.25) 0);
  border-radius: 1px;
}
.rs-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 26px;
  height: 26px;
  margin-top: -12px;
  border-radius: 50%;
  background: var(--cream);
  border: 6px solid var(--bg);
  box-shadow: 0 0 0 1px rgba(245, 234, 219, 0.5);
}
.rs-slider::-moz-range-track {
  height: 2px;
  background: rgba(245, 234, 219, 0.25);
  border-radius: 1px;
}
.rs-slider::-moz-range-progress { height: 2px; background: var(--accent); }
.rs-slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--cream);
  border: 0;
  box-shadow: 0 0 0 6px var(--bg), 0 0 0 7px rgba(245, 234, 219, 0.5);
}
.rs-scale {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 12px;
  opacity: 0.5;
}
.rs-note { margin-top: 16px; min-height: 1.5em; }

/* --- Szene 6 · System / Protokoll-Auszüge ---------------------------------------- */
.system {
  padding: clamp(100px, 16vh, 190px) var(--pad);
  background:
    radial-gradient(60% 50% at 30% 30%, rgba(229, 105, 16, 0.09) 0%, rgba(20, 13, 7, 0) 70%),
    var(--bg);
}
.system-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px 26px;
  margin-bottom: clamp(36px, 6vh, 70px);
}
.system-head .stars { color: var(--accent); letter-spacing: 0.3em; }
.system-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.system-glow {
  position: relative;
  margin: 0 auto clamp(36px, 6vh, 64px);
  width: clamp(220px, 26vw, 380px);
  aspect-ratio: 1;
}
.system-glow::before {
  content: "";
  position: absolute;
  inset: -34%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(229, 105, 16, 0.28) 0%, rgba(229, 105, 16, 0) 70%);
}
.system-glow .ph { position: absolute; inset: 0; border-radius: 12px; }

.review { padding: 26px 0; border-top: 1px solid rgba(245, 234, 219, 0.14); }
.review:last-child { border-bottom: 1px solid rgba(245, 234, 219, 0.14); }
.review .stars { color: var(--accent); letter-spacing: 0.3em; font-size: 14px; }
.review blockquote {
  margin: 12px 0 14px;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(21px, 2.1vw, 27px);
  line-height: 1.35;
}
.einsatz .gal-photo { width: 100%; }
.einsatz .lbl { margin-bottom: 16px; }
.einsatz figcaption { margin-top: 12px; }

/* --- Szene 7 · Konfigurator -------------------------------------------------------- */
.konfig {
  padding: clamp(100px, 16vh, 190px) var(--pad);
  text-align: center;
  overflow: clip;
}
.konfig h2 { margin-bottom: 12px; }
.konfig-sub { max-width: 46ch; margin: 0 auto; }
.konfig-stage {
  position: relative;
  width: clamp(220px, 30vw, 400px);
  aspect-ratio: 1;
  margin: clamp(40px, 7vh, 80px) auto clamp(30px, 5vh, 56px);
}
.konfig-stage .ph { position: absolute; inset: 8%; border-radius: 12px; }
.konfig-spec { min-height: 1.6em; margin-bottom: 30px; }
.konfig-spec .lbl { color: var(--khud, var(--cream)); transition: color 0.35s ease; }
.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 14px;
  list-style: none;
}
.chip {
  min-height: 44px;
  padding: 10px 22px;
  border: 1px solid rgba(245, 234, 219, 0.35);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: border-color 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}
.chip:hover { border-color: rgba(245, 234, 219, 0.75); }
.chip[aria-pressed="true"] {
  background: var(--cream);
  color: var(--ink);
  border-color: var(--cream);
}
.konfig .hud-frame { border-color: var(--khud, var(--hud)); }
.konfig .hud-frame .hud-c { border-color: var(--khud, var(--hud)); }
.konfig .hud-frame .hud-tag { color: var(--khud, var(--hud)); }

/* --- Szene 8 · Kontakt / Footer ------------------------------------------------------ */
.kontakt {
  padding: clamp(110px, 18vh, 210px) var(--pad) 40px;
  background:
    radial-gradient(80% 55% at 50% 0%, rgba(58, 37, 23, 0.5) 0%, rgba(20, 13, 7, 0) 70%),
    var(--bg);
}
.kontakt-claim { max-width: 15ch; }
.kontakt-lead { max-width: 46ch; margin-top: 26px; }

.mail-block { margin: clamp(50px, 9vh, 100px) 0 0; max-width: 760px; }
.mail-hint { margin-bottom: 14px; color: var(--accent); }
.mail-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 2px 16px;
  text-decoration: none;
  border-bottom: 1px dashed rgba(245, 234, 219, 0.5);
  transition: border-color 0.3s ease;
}
.mail-row:hover { border-color: var(--cream); }
.mail-row .big {
  font-weight: 500;
  font-size: clamp(24px, 3.4vw, 48px);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.mail-row .arrow { font-size: clamp(24px, 3vw, 40px); }

.kontakt-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 34px 40px;
  margin-top: clamp(50px, 8vh, 90px);
}
.kontakt-cols .lbl { display: block; margin-bottom: 10px; }
.kontakt-cols a { display: inline-block; padding: 5px 0; text-decoration: none; }
.kontakt-cols a:hover { text-decoration: underline dotted; text-underline-offset: 5px; }
.kontakt-cols li { list-style: none; }

.share-box {
  margin: clamp(56px, 9vh, 110px) auto 0;
  max-width: 560px;
  padding: 30px 26px;
  border: 1px dashed rgba(245, 234, 219, 0.4);
  border-radius: 14px;
  text-align: center;
}
.share-box .lbl { line-height: 2; }
.copy-btn {
  margin-top: 18px;
  min-height: 46px;
  padding: 12px 26px;
  border: 1px solid rgba(245, 234, 219, 0.5);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.copy-btn:hover { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.copy-btn.copied { background: var(--accent); border-color: var(--accent); color: var(--ink); }

.foot-legal {
  margin-top: clamp(60px, 9vh, 110px);
  padding-top: 26px;
  border-top: 1px solid rgba(245, 234, 219, 0.14);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 30px;
}
.foot-legal .links { display: flex; gap: 24px; }
.foot-legal a { display: inline-block; padding: 5px 0; text-decoration: none; }
.foot-legal a:hover { text-decoration: underline dotted; text-underline-offset: 5px; }
.foot-disclaimer { margin-top: 26px; max-width: 78ch; }

/* --- Reveals (JS setzt Startzustände — ohne JS/Motion ist alles sichtbar) ------ */
.reveal { will-change: transform, opacity; }

/* --- Responsive ------------------------------------------------------------------ */
@media (max-width: 900px) {
  :root { --nav-h: 60px; }
  body { font-size: 18px; }
  .nav { padding: 0 16px; }
  .nav-menu { gap: 12px; }
  .nav-menu a { letter-spacing: 0.08em; font-size: 12px; padding: 10px 2px; }
  .progress-rail { display: none; }
  /* Cue (bottom 26px) und hero-meta trennen: Meta-Zeile läuft mobil volle Breite */
  .hero .stage-content { padding-bottom: 84px; }
  .hero-foot { flex-direction: column; align-items: flex-start; }
  .hero-meta { text-align: left; }
  .ki-three { margin-left: 0; }
  .zimg { width: clamp(150px, 38vw, 240px); }
  .gal-pin { overflow-x: auto; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; }
  .gal-track { padding-bottom: 40px; }
  .gal-item { scroll-snap-align: center; }
  .schnitt-grid { grid-template-columns: 1fr; }
  .system-grid { grid-template-columns: 1fr; }
  .radar-panel { max-width: none; }
  .glass-card p { font-size: 18px; }
}

@media (max-width: 640px) {
  .nav {
    flex-wrap: wrap;
    height: auto;
    padding: 10px 16px 6px;
    background: linear-gradient(180deg, rgba(20, 13, 7, 0.88) 0%, rgba(20, 13, 7, 0) 100%);
  }
  .nav-brand { width: 100%; font-size: 11px; letter-spacing: 0.12em; padding: 6px 0 2px; }
  .nav-menu { width: 100%; justify-content: space-between; gap: 8px; }
}

@media (max-width: 480px) {
  .hero-wordmark { font-size: clamp(52px, 17vw, 90px); }
  .h-display { font-size: clamp(38px, 11.5vw, 52px); }
  .chat-row { flex-wrap: wrap; }
}

/* --- prefers-reduced-motion -------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  .scroll-cue .chev { animation: none !important; }
}

@media (prefers-reduced-motion: no-preference) {
  .scroll-cue .chev { animation: cue-bounce 1.8s ease-in-out infinite; }
  @keyframes cue-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(5px); }
  }
}

/* --- Logbuch-Teaser (Footer-Szene) ----------------------------------------- */
.log-block { width: min(1040px, 100%); margin: clamp(28px, 5vh, 54px) auto 0; }
.log-head { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; margin-bottom: 16px; }
.log-more { border-bottom: 1px solid rgba(245,234,219,.35); padding-bottom: 4px; }
.log-more:hover { color: var(--accent); border-color: var(--accent); }
.log-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.log-card {
  display: flex; flex-direction: column; gap: 10px;
  background: rgba(245,234,219,.05); border: 1px solid rgba(245,234,219,.12);
  border-radius: 8px; padding: 16px 18px 18px; text-align: left;
  transition: transform .3s ease, border-color .3s ease;
}
.log-card:hover { transform: translateY(-4px); border-color: rgba(245,234,219,.3); }
.log-kat, .log-datum { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .14em; }
.log-datum { color: rgba(245,234,219,.62); }
.log-titel { font-size: 17px; font-weight: 500; line-height: 1.3; }
@media (max-width: 860px) { .log-grid { grid-template-columns: 1fr; } }
