/* agentella Landingpage — Design-Tokens 1:1 aus web/style.css.
   Dunkles Tiefgrün-Anthrazit, Liquid Glass, Mint-Akzent.
   Ohne JS voll lesbar; GSAP animiert nur obendrauf. */

:root {
  --bg: #0a0e0d;
  --bg-raise: #101614;
  --glass: rgba(255, 255, 255, .035);
  --glass-2: rgba(255, 255, 255, .07);
  --glass-hi: rgba(255, 255, 255, .10);
  --line: rgba(255, 255, 255, .08);
  --line-strong: rgba(255, 255, 255, .16);
  --text: #e9f2ee;
  --muted: #8a9a93;
  --accent: #86efce;
  --accent-dim: #3ec99b;
  --accent-ink: #052e21;
  --accent-soft: rgba(134, 239, 206, .10);
  --accent-glow: rgba(110, 231, 197, .22);
  --green: #4ade80;
  --red: #ff8080;
  --amber: #ffd479;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --sans: "Instrument Sans", system-ui, sans-serif;
  --display: "Sora", var(--sans);
  --ease: cubic-bezier(.25, 1, .5, 1);
  --radius: 16px;
  --shadow-raise: 0 10px 30px rgba(0, 0, 0, .38),
                  0 1px 2px rgba(0, 0, 0, .5),
                  inset 0 1px 0 var(--glass-hi);
  --shadow-inset: inset 0 2px 8px rgba(0, 0, 0, .45),
                  inset 0 -1px 0 rgba(255, 255, 255, .05);
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }

html, body { overflow-x: clip; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* ---------- Atmosphäre: Aurora + Grain ---------- */
.aurora {
  position: fixed; inset: -25%;
  z-index: 0; pointer-events: none;
  filter: blur(90px);
  opacity: .55;
}
.aurora .blob { position: absolute; border-radius: 50%; will-change: transform; }
.blob-a {
  width: 46vw; height: 46vw; top: -6%; left: 52%;
  background: radial-gradient(circle, rgba(110, 231, 197, .16), transparent 65%);
  animation: drift-a 26s var(--ease) infinite alternate;
}
.blob-b {
  width: 40vw; height: 40vw; bottom: 0; left: 8%;
  background: radial-gradient(circle, rgba(56, 189, 178, .12), transparent 65%);
  animation: drift-b 32s var(--ease) infinite alternate;
}
.blob-c {
  width: 30vw; height: 30vw; top: 40%; left: 30%;
  background: radial-gradient(circle, rgba(134, 239, 206, .08), transparent 65%);
  animation: drift-a 40s var(--ease) infinite alternate-reverse;
}
@keyframes drift-a { to { transform: translate(-10%, 14%) scale(1.15); } }
@keyframes drift-b { to { transform: translate(14%, -10%) scale(1.1); } }

body::after {
  content: ""; position: fixed; inset: 0;
  z-index: 60; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
}

#smooth-wrapper { position: relative; z-index: 2; }

/* ---------- Intro-Overlay: eingehender Anruf ---------- */
#intro {
  position: fixed; inset: 0; z-index: 80;
  display: none; place-items: center;
  background: radial-gradient(60vw 60vw at 50% 45%, rgba(110, 231, 197, .07), transparent 70%), rgba(10, 14, 13, .96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.intro-inner { display: flex; flex-direction: column; align-items: center; gap: 26px; }
.brand-mark.big { width: 72px; height: 72px; border-radius: 20px; }
.brand-mark.big svg { width: 38px; height: 38px; }

/* ---------- Custom Cursor ---------- */
#cursor-dot, #cursor-ring {
  position: fixed; top: 0; left: 0; z-index: 120;
  pointer-events: none; border-radius: 50%;
  display: none;
}
#cursor-dot {
  width: 8px; height: 8px; margin: -4px 0 0 -4px;
  background: var(--accent);
  box-shadow: 0 0 14px var(--accent-glow), 0 0 4px var(--accent);
}
#cursor-ring {
  width: 38px; height: 38px; margin: -19px 0 0 -19px;
  border: 1px solid rgba(134, 239, 206, .45);
  transition: transform .25s var(--ease), border-color .25s var(--ease);
}
#cursor-ring.hot { transform: scale(1.9); border-color: rgba(134, 239, 206, .9); }
body.custom-cursor, body.custom-cursor a, body.custom-cursor button,
body.custom-cursor summary { cursor: none; }

/* ---------- REC-Timer ---------- */
#rec {
  position: fixed; right: 22px; bottom: 20px; z-index: 70;
  display: none; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em;
  color: var(--muted);
  padding: 8px 15px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(10, 14, 13, .6);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--shadow-raise);
}
#rec .rec-lamp {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--red); box-shadow: 0 0 10px rgba(255, 128, 128, .7);
  animation: pulse 1.3s ease infinite;
}
#rec-time { color: var(--text); }

/* ---------- Ghost-Wörter hinter den Szenen ---------- */
.ghost {
  position: absolute; top: 2%; left: 50%; z-index: 0;
  font-family: var(--display); font-weight: 800;
  font-size: clamp(110px, 19vw, 300px); letter-spacing: -.03em; line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(134, 239, 206, .10);
  white-space: nowrap; pointer-events: none; user-select: none;
}
.scene > *:not(.ghost) { position: relative; z-index: 1; }

/* ---------- Topbar ---------- */
#topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  display: flex; align-items: center; gap: 28px;
  padding: 14px 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .04), transparent 60%), rgba(10, 14, 13, .55);
  backdrop-filter: blur(28px) saturate(1.5);
  -webkit-backdrop-filter: blur(28px) saturate(1.5);
  border-bottom: 1px solid var(--line);
}
#topbar nav { display: flex; gap: 4px; margin-left: auto; }
#topbar nav a {
  color: var(--muted); text-decoration: none; font-weight: 500; font-size: 14px;
  padding: 8px 14px; border-radius: 10px;
  transition: color .18s var(--ease), background .18s var(--ease);
}
#topbar nav a:hover { color: var(--text); background: var(--glass-2); }

.brand { display: flex; gap: 12px; align-items: center; text-decoration: none; color: var(--text); }
.brand-mark {
  width: 38px; height: 38px; display: grid; place-items: center; flex-shrink: 0;
  background: linear-gradient(135deg, #a5f6dc, #47d6a6);
  color: var(--accent-ink);
  border-radius: 11px;
  box-shadow: 0 4px 24px var(--accent-glow);
}
.brand-mark svg { width: 20px; height: 20px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-family: var(--display); font-weight: 700; letter-spacing: -.01em; font-size: 15px; }
.brand-sub { font-family: var(--mono); font-size: 9.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .16em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--sans); font-weight: 600; font-size: 14px;
  color: var(--text); text-decoration: none;
  padding: 10px 20px; border-radius: 10px; cursor: pointer;
  background: linear-gradient(160deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02));
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-raise);
  transition: transform .18s var(--ease), border-color .18s var(--ease),
              color .18s var(--ease), box-shadow .18s var(--ease);
  will-change: transform;
}
.btn:hover { color: var(--accent); border-color: rgba(134, 239, 206, .4); transform: translateY(-1px); }
.btn:active { box-shadow: var(--shadow-inset); transform: translateY(0); }
.btn.primary {
  background: linear-gradient(180deg, #b8f9e4, #52dbab 55%, #3ec99b);
  color: var(--accent-ink); border-color: transparent;
  box-shadow: 0 6px 28px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, .5);
}
.btn.primary:hover { color: var(--accent-ink); filter: brightness(1.06); }
.btn.big { padding: 14px 28px; font-size: 15px; border-radius: 13px; }
.btn.huge { padding: 18px 40px; font-size: 17px; border-radius: 16px; }

/* ---------- Typo-Bausteine ---------- */
.eyebrow {
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  color: var(--accent); text-transform: uppercase; letter-spacing: .16em;
  margin-bottom: 18px;
}
h1, h2 { font-family: var(--display); letter-spacing: -.025em; line-height: 1.08; }
h1 { font-size: clamp(42px, 7vw, 88px); font-weight: 800; }
h1 em { font-style: normal; color: var(--accent); }
h2 { font-size: clamp(30px, 4.5vw, 54px); font-weight: 700; }
h3 { font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: -.015em; }
.scene-lead { color: var(--muted); font-size: 17px; max-width: 560px; margin-top: 16px; }
.footnote { font-family: var(--mono); font-size: 11px; color: var(--muted); margin-top: 20px; }

.split .word, .split .char { display: inline-block; }

/* ---------- Karten ---------- */
.card {
  background: linear-gradient(160deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .015) 42%), var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  box-shadow: var(--shadow-raise);
}

/* ---------- Chips ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: 11.5px; font-weight: 500;
  color: var(--muted);
  padding: 5px 13px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--glass);
}
.chip.on {
  color: var(--accent); border-color: rgba(134, 239, 206, .3);
  background: var(--accent-soft);
  box-shadow: 0 0 18px rgba(134, 239, 206, .12);
}
.chip.mini { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }

/* ---------- Szenen-Gerüst ---------- */
.scene { position: relative; padding: 140px 48px; max-width: 1180px; margin: 0 auto; }
.scene-head { max-width: 720px; }
.scene-head.center { margin: 0 auto; text-align: center; }
.scene-head.center .scene-lead { margin-left: auto; margin-right: auto; }

/* ---------- 1 · Hero ---------- */
.hero {
  position: relative; min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 140px 24px 80px; overflow: hidden;
}
#hero-wave {
  position: absolute; inset: auto 0 12%; width: 100%; height: 42vh;
  z-index: -1; opacity: .5; pointer-events: none;
}
.hero-inner { max-width: 900px; }
.hero-sub { color: var(--muted); font-size: clamp(16px, 2vw, 19px); max-width: 620px; margin: 26px auto 0; }
.hero-cta { display: flex; gap: 14px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.hero-note { font-family: var(--mono); font-size: 11px; color: var(--muted); margin-top: 18px; }
.cta-alt { font-size: 14px; color: var(--muted); margin-top: 26px; }
.cta-alt a { color: var(--accent); text-decoration: none; }
.cta-alt a:hover { text-decoration: underline; }
.scroll-hint {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  font-family: var(--mono); font-size: 10.5px; text-transform: uppercase;
  letter-spacing: .16em; color: var(--muted);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.scroll-hint span {
  width: 1px; height: 42px;
  background: linear-gradient(180deg, transparent, var(--accent));
  animation: hint 1.8s var(--ease) infinite;
}
@keyframes hint { 0% { transform: scaleY(0); transform-origin: top; } 55% { transform: scaleY(1); transform-origin: top; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- 2 · Call-Szene ---------- */
.scene-call .scene-pin { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; }
.callstage { position: relative; margin-top: 56px; }
#call-wave { width: 100%; height: 90px; display: block; opacity: .65; }

.phone-pill {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .06em;
  color: var(--text);
  padding: 10px 20px; border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(160deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02));
  box-shadow: var(--shadow-raise);
  margin-bottom: 26px;
}
.phone-pill .lamp {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--amber); box-shadow: 0 0 12px var(--amber);
  animation: pulse 1.1s ease infinite;
}
.phone-pill.live .lamp { background: var(--green); box-shadow: 0 0 12px var(--green); animation: none; }
@keyframes pulse { 50% { opacity: .35; } }

.transcript { display: flex; flex-direction: column; gap: 14px; max-width: 680px; margin-top: 10px; }
.bubble {
  padding: 14px 18px; border-radius: 16px; max-width: 78%;
  border: 1px solid var(--line);
  background: var(--glass);
  box-shadow: var(--shadow-raise);
}
.bubble .who {
  display: block; font-family: var(--mono); font-size: 10px;
  text-transform: uppercase; letter-spacing: .14em; color: var(--muted);
  margin-bottom: 5px;
}
.bubble.user { align-self: flex-start; border-bottom-left-radius: 5px; }
.bubble.agent {
  align-self: flex-end; border-bottom-right-radius: 5px;
  background: linear-gradient(160deg, rgba(134, 239, 206, .13), rgba(134, 239, 206, .05));
  border-color: rgba(134, 239, 206, .22);
}
.bubble.agent .who { color: var(--accent); }

.action-chips { list-style: none; display: flex; gap: 10px; flex-wrap: wrap; padding: 0; margin-top: 28px; }

/* ---------- 3 · Flow-Graph ---------- */
.scene-flow .scene-pin { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; }
.flowgraph { margin: 36px 0 0; display: flex; justify-content: center; }
#flow-svg {
  width: 100%; height: auto; overflow: visible;
  /* Pinned One-Screen: Graph + Facts müssen gemeinsam in den Viewport passen */
  max-height: max(300px, calc(100vh - 420px));
}
#flow-svg .edge {
  fill: none; stroke: var(--line-strong); stroke-width: 1.5;
}
#flow-svg .edge-hot { stroke: url(#edge-grad); stroke-width: 2.5; filter: drop-shadow(0 0 6px rgba(134, 239, 206, .5)); }
#flow-svg .edge.pulse { stroke: #d9fff1; stroke-width: 4; stroke-linecap: round; filter: drop-shadow(0 0 10px rgba(134, 239, 206, .9)); }
#flow-svg .node rect {
  fill: rgba(255, 255, 255, .045); stroke: var(--line-strong); stroke-width: 1;
}
#flow-svg .node text {
  fill: var(--text); font-family: var(--mono); font-size: 13px;
  text-anchor: middle; dominant-baseline: middle;
}
#flow-svg .node.hot rect { fill: rgba(134, 239, 206, .1); stroke: rgba(134, 239, 206, .45); }
#flow-svg .node.hot text { fill: var(--accent); }
#flow-svg .node text.sub { font-size: 10.5px; fill: var(--muted); }
#flow-svg .edge.act { stroke: rgba(134, 239, 206, .45); stroke-dasharray: 2 7; stroke-linecap: round; stroke-width: 1.6; }
#flow-svg .node.act rect { fill: rgba(134, 239, 206, .05); stroke: rgba(134, 239, 206, .3); }
#flow-svg .node.act text { fill: var(--accent); font-size: 11px; }
.flow-wl-label {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .24em;
  fill: var(--muted); text-anchor: middle;
}

.flow-facts { list-style: none; padding: 0; margin-top: 36px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.flow-facts li {
  font-size: 14px; color: var(--muted);
  padding: 18px 20px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--glass);
}
.flow-facts strong { display: block; color: var(--text); font-family: var(--display); font-weight: 600; margin-bottom: 6px; }

/* ---------- 4 · Module (horizontal) ---------- */
.scene-modules { max-width: none; padding: 90px 0 60px; }
.scene-modules .scene-head { padding: 0 48px; max-width: 940px; }
.hscroll { margin-top: 14px; overflow: hidden; }
.htrack { display: flex; gap: 28px; padding: 10px max(48px, calc(50vw - 300px)); width: max-content; }
.panel {
  width: min(560px, 84vw); flex-shrink: 0;
  padding: 26px 30px;
  display: flex; flex-direction: column; gap: 13px;
}
.panel h3 { font-size: 24px; }
.panel > p { color: var(--muted); font-size: 15px; }
.panel .chip.mini { align-self: flex-start; }

.ticks { list-style: none; padding: 0; margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.ticks li { font-size: 14px; color: var(--muted); padding-left: 24px; position: relative; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 7px;
  width: 12px; height: 7px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

.codepanel {
  border-radius: 13px; border: 1px solid var(--line);
  background: rgba(0, 0, 0, .35); box-shadow: var(--shadow-inset);
  overflow: hidden;
}
.codebar {
  display: flex; align-items: center; gap: 6px;
  padding: 9px 14px; border-bottom: 1px solid var(--line);
}
.codebar span { width: 9px; height: 9px; border-radius: 50%; background: var(--glass-2); }
.codebar em { margin-left: auto; font-family: var(--mono); font-style: normal; font-size: 10.5px; color: var(--muted); }
.codepanel pre { padding: 10px 16px; overflow-x: auto; }
.codepanel code { font-family: var(--mono); font-size: 11.5px; line-height: 1.65; color: var(--accent); }
.codepanel .ln { display: block; }

.voicemorph svg { width: 100%; height: 60px; }
#voice-path { stroke: var(--accent); stroke-width: 2; filter: drop-shadow(0 0 8px rgba(134, 239, 206, .4)); }
.voice-tags { display: flex; gap: 10px; margin-top: 10px; }

.leadlist { position: relative; display: flex; flex-direction: column; gap: 9px; }
.leadrow {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 14px; padding: 11px 16px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--glass);
}
.stamp {
  position: absolute; right: 10px; top: 50%;
  transform: translateY(-50%) rotate(-12deg);
  font-family: var(--mono); font-weight: 600; font-size: 15px; letter-spacing: .2em;
  color: var(--accent); padding: 7px 14px;
  border: 2px solid var(--accent); border-radius: 8px;
  background: rgba(10, 14, 13, .88);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .5);
  opacity: .95; pointer-events: none;
}

.minical { display: flex; flex-direction: column; gap: 8px; }
.cal-head { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.cal-slot {
  font-family: var(--mono); font-size: 13px; color: var(--muted);
  padding: 10px 16px; border: 1px dashed var(--line); border-radius: 11px;
}
.cal-slot.booked {
  color: var(--accent-ink); border-style: solid; border-color: transparent;
  background: linear-gradient(135deg, #a5f6dc, #47d6a6);
  font-weight: 600; box-shadow: 0 4px 20px var(--accent-glow);
}

/* ---------- 3 · Wissen (RAG mit Beleg) ---------- */
.wissen-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; align-items: stretch; }
.wissen-tile { padding: 24px 22px; display: flex; flex-direction: column; gap: 16px; }
.wissen-tile-label {
  font-family: var(--mono); font-size: 10px; text-transform: uppercase;
  letter-spacing: .16em; color: var(--muted);
}
.transcript.compact { margin-top: 0; gap: 12px; }
.transcript.compact .bubble { padding: 12px 16px; font-size: 14px; }
.src-chip { align-self: flex-start; margin-top: 10px; }
.wissen-tile.check { justify-content: flex-start; }
.wissen-score {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 700; font-size: 20px;
  letter-spacing: -.01em; color: var(--accent);
}
.wissen-check-sub { color: var(--muted); font-size: 14px; }

/* ---------- 5 · Kampagnen ---------- */
.kamp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; align-items: stretch; }
.kamp-tile { padding: 24px 22px; display: flex; flex-direction: column; gap: 16px; }
.kamp-step {
  font-family: var(--mono); font-size: 10px; text-transform: uppercase;
  letter-spacing: .16em; color: var(--muted);
}
.kamp-tile .leadrow { font-size: 13px; padding: 9px 13px; gap: 10px; }
.kamp-tile .leadrow > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kamp-tile .chip { flex-shrink: 0; }
.kamp-note { color: var(--muted); font-size: 13.5px; margin-top: auto; }

/* ---------- 5 · Zahlen ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 56px; }
.stat-tile { padding: 30px 26px; display: flex; flex-direction: column; gap: 8px; }
.stat-num { font-family: var(--display); font-weight: 800; font-size: clamp(26px, 3vw, 38px); letter-spacing: -.02em; color: var(--accent); }
.stat-label { font-size: 13.5px; color: var(--muted); }

/* ---------- 6 · Stack / Marquee ---------- */
.scene-stack { max-width: none; padding-left: 0; padding-right: 0; }
.scene-stack .scene-head { padding: 0 48px; }
.marquee { overflow: hidden; margin-top: 48px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.marquee + .marquee { margin-top: 0; border-top: none; }
.mtrack {
  display: flex; gap: 34px; width: max-content; align-items: center;
  font-family: var(--display); font-weight: 700; font-size: clamp(22px, 3.4vw, 40px);
  letter-spacing: -.02em; color: var(--text); white-space: nowrap;
  will-change: transform;
}
.marquee.dim .mtrack { color: var(--muted); font-size: clamp(16px, 2.2vw, 26px); font-weight: 600; }
.stack-note { text-align: center; font-family: var(--mono); font-size: 11.5px; color: var(--muted); margin-top: 26px; padding: 0 48px; }

/* ---------- 7 · Pakete ---------- */
.price-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 56px; }
.price-card {
  padding: 30px 26px; display: flex; flex-direction: column; gap: 14px;
  transition: transform .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.price-card:hover {
  transform: translateY(-4px);
  border-color: rgba(134, 239, 206, .35);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .5), 0 0 32px rgba(134, 239, 206, .1), inset 0 1px 0 var(--glass-hi);
}
.price-card p { color: var(--muted); font-size: 14px; flex: 1; }
.price-card .btn { align-self: flex-start; }
.price-card.featured { border-color: rgba(134, 239, 206, .3); background: linear-gradient(160deg, rgba(134, 239, 206, .1), rgba(134, 239, 206, .02) 50%), var(--glass); }

/* ---------- 7 · Konfigurator (One-Screen-Layout) ---------- */
.scene-config { max-width: 1320px; padding-top: 60px; padding-bottom: 90px; }
.scene-head.compact h2 { font-size: clamp(22px, 2.2vw, 30px); }
.scene-head.compact { max-width: 860px; }
.scene-head.compact .eyebrow { margin-bottom: 8px; }

.cfg-wrap {
  display: grid; grid-template-columns: 350px 1fr;
  gap: 22px; margin-top: 16px; align-items: start;
}
.cfg-side { display: flex; flex-direction: column; gap: 11px; }
.cfg-presets { display: flex; gap: 8px; }
.cfg-preset {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 1px;
  font-family: var(--sans); cursor: pointer;
  padding: 9px 8px; border-radius: 12px;
  color: var(--muted);
  background: linear-gradient(160deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .015));
  border: 1px solid var(--line);
  box-shadow: var(--shadow-raise);
  transition: color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.cfg-preset strong { font-family: var(--display); font-size: 13.5px; color: var(--text); }
.cfg-preset span { font-family: var(--mono); font-size: 8.5px; text-transform: uppercase; letter-spacing: .1em; }
.cfg-preset:hover { transform: translateY(-2px); border-color: rgba(134, 239, 206, .3); }
.cfg-preset.active {
  border-color: rgba(134, 239, 206, .45);
  background: linear-gradient(180deg, rgba(134, 239, 206, .16), rgba(134, 239, 206, .05));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 0 26px rgba(134, 239, 206, .12);
}
.cfg-preset.active strong, .cfg-preset.active span { color: var(--accent); }

.cfg-hint { font-family: var(--mono); font-size: 10px; color: var(--muted); line-height: 1.5; margin-top: 2px; }

.cfg-stage { margin: 0; padding: 16px 18px 6px; position: relative; }
.cfg-badge {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .04em;
  color: var(--text);
  padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(10, 14, 13, .7);
  box-shadow: var(--shadow-raise);
  margin-bottom: 4px;
}
.lamp { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.lamp.green { background: var(--green); box-shadow: 0 0 12px rgba(74, 222, 128, .8); }
.lamp.amber { background: var(--amber); box-shadow: 0 0 12px rgba(255, 212, 121, .7); }

#cfg-svg {
  width: 100%; height: auto; overflow: visible; display: block;
  /* One-Screen: Diagramm skaliert mit der Viewport-Höhe mit */
  max-height: max(340px, calc(100vh - 430px));
  margin: 0 auto;
}
#cfg-boundary rect {
  fill: rgba(134, 239, 206, .025);
  stroke: var(--line-strong); stroke-width: 1.2; stroke-dasharray: 0;
  transition: stroke .5s var(--ease), filter .5s var(--ease);
}
#cfg-boundary.green rect {
  stroke: rgba(74, 222, 128, .55);
  filter: drop-shadow(0 0 14px rgba(74, 222, 128, .25));
}
.cfg-boundary-label { font-family: var(--mono); font-size: 11px; letter-spacing: .22em; fill: var(--muted); }
.cfg-boundary-sub { font-family: var(--mono); font-size: 9px; letter-spacing: .14em; fill: var(--accent-dim); }
#cfg-boundary.global rect { stroke: rgba(255, 212, 121, .5); filter: drop-shadow(0 0 12px rgba(255, 212, 121, .18)); }
#cfg-boundary.global .cfg-boundary-sub { fill: var(--amber); }

.cfg-path { fill: none; stroke: var(--line-strong); stroke-width: 1.6; }
.cfg-path.cloud { stroke: var(--amber); stroke-dasharray: 5 6; opacity: .8; }
.cfg-path.action { stroke: rgba(134, 239, 206, .45); stroke-dasharray: 2 7; stroke-linecap: round; }

.cfg-node rect { fill: rgba(255, 255, 255, .045); stroke: var(--line-strong); stroke-width: 1; }
.cfg-node text {
  fill: var(--text); font-family: var(--mono); font-size: 13.5px;
  text-anchor: middle; dominant-baseline: middle;
}
.cfg-node text.sub { font-size: 10.5px; fill: var(--muted); }
.cfg-node.hot rect { fill: rgba(134, 239, 206, .09); stroke: rgba(134, 239, 206, .4); }
.cfg-node.hot > text:first-of-type { fill: var(--accent); }
.cfg-node.cloud rect { fill: rgba(255, 212, 121, .06); stroke: rgba(255, 212, 121, .45); }
.cfg-node.cloud text { fill: var(--amber); }
.cfg-node.int rect { fill: rgba(134, 239, 206, .05); stroke: rgba(134, 239, 206, .3); }
.cfg-node.int text { fill: var(--accent); font-size: 12px; }
.cfg-node.soon rect { fill: transparent; stroke: var(--line); stroke-dasharray: 4 5; }
.cfg-node.soon text { fill: var(--muted); font-size: 11px; opacity: .8; }
.cfg-soon-label {
  font-family: var(--mono); font-size: 9px; letter-spacing: .26em;
  fill: var(--muted); text-anchor: middle;
}
.cfg-packet { fill: var(--accent); filter: drop-shadow(0 0 6px rgba(134, 239, 206, .9)); }
.cfg-packet.audio { fill: #b8f9e4; }
.cfg-packet.cloudp { fill: var(--amber); filter: drop-shadow(0 0 6px rgba(255, 212, 121, .8)); }
.off, .cfg-path.off, .cfg-node.off { opacity: 0; pointer-events: none; }

.cfg-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.cfg-label {
  font-family: var(--mono); font-size: 9.5px; text-transform: uppercase;
  letter-spacing: .14em; color: var(--muted); width: 100%;
}
.cfg-side .chip { font-size: 10.5px; padding: 4px 11px; }
button.chip { cursor: pointer; transition: color .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease), transform .15s var(--ease); }
button.chip:hover { color: var(--text); border-color: var(--line-strong); transform: translateY(-1px); }
button.chip.on:hover { color: var(--accent); }
.chip.soon { opacity: .5; border-style: dashed; cursor: default; }

/* DSGVO-Modus: gesperrte Optionen bleiben sichtbar, sind aber nicht wählbar */
.chip.locked, .cfg-preset.locked { opacity: .3; border-style: dashed; cursor: not-allowed; }
button.chip.locked:hover, .cfg-preset.locked:hover {
  color: var(--muted); border-color: var(--line); transform: none;
}
.cfg-dsgvo-row { margin-top: 2px; }
#cfg-dsgvo-toggle.on {
  color: var(--accent); border-color: rgba(134, 239, 206, .4);
  box-shadow: 0 0 18px rgba(134, 239, 206, .18);
}
.cfg-dsgvo-note { font-family: var(--mono); font-size: 9.5px; color: var(--muted); letter-spacing: .06em; }
.cfg-dsgvo-info {
  font-family: var(--mono); font-size: 10.5px; line-height: 1.55; color: var(--muted);
  border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px;
}
.cfg-dsgvo-info summary { cursor: pointer; color: var(--text); font-size: 10.5px; letter-spacing: .04em; }
.cfg-dsgvo-info summary:hover { color: var(--accent); }
.cfg-dsgvo-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 10px; }
.cfg-dsgvo-cols strong { color: var(--text); display: block; margin-bottom: 4px; font-weight: 600; }
.cfg-dsgvo-cols ul { margin: 0; padding-left: 16px; }
.cfg-dsgvo-cols li { margin-bottom: 2px; }
.cfg-dsgvo-info p { margin: 10px 0 0; }

/* Mobile-Datenfluss: vertikale Kette, gespeist aus demselben State wie das SVG */
#cfg-mobile { display: none; flex-direction: column; gap: 8px; margin-top: 12px; }
.cfgm-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  padding: 10px 14px; border-radius: 12px;
  background: rgba(255, 255, 255, .045);
  border: 1px solid var(--line-strong);
  position: relative;
}
.cfgm-row + .cfgm-row::before,
.cfgm-server + .cfgm-ints::before, .cfgm-row + .cfgm-server::before {
  content: ""; position: absolute; left: 26px; top: -9px;
  width: 1.5px; height: 9px; background: var(--line-strong);
}
.cfgm-name { font-family: var(--mono); font-size: 12.5px; color: var(--text); }
.cfgm-sub { font-family: var(--mono); font-size: 10.5px; color: var(--muted); text-align: right; }
.cfgm-row.local .cfgm-sub { color: var(--accent); }
.cfgm-row.cloud { border-color: rgba(255, 212, 121, .45); background: rgba(255, 212, 121, .05); }
.cfgm-row.cloud .cfgm-sub { color: var(--amber); }
.cfgm-server {
  display: flex; flex-direction: column; gap: 8px; position: relative;
  padding: 12px 10px 10px; border-radius: 16px;
  border: 1.5px dashed var(--line-strong);
  transition: border-color .4s var(--ease);
}
.cfgm-server.green { border-color: rgba(74, 222, 128, .55); }
.cfgm-server.global { border-color: rgba(255, 212, 121, .5); }
.cfgm-server-label {
  display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline;
  font-family: var(--mono); font-size: 10px; letter-spacing: .2em; color: var(--muted);
  padding: 0 4px 2px;
}
.cfgm-server-label span { letter-spacing: .1em; font-size: 8.5px; color: var(--accent-dim); }
.cfgm-server.global .cfgm-server-label span { color: var(--amber); }
.cfgm-ints {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
  padding: 10px 4px 0; position: relative;
}
.cfgm-ints-label {
  font-family: var(--mono); font-size: 9.5px; text-transform: uppercase;
  letter-spacing: .14em; color: var(--muted); width: 100%;
}

.cfg-panel { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 14px; }
.cfg-tile { padding: 12px 18px; display: flex; flex-direction: column; gap: 3px; }
.cfg-tile-label {
  font-family: var(--mono); font-size: 9.5px; text-transform: uppercase;
  letter-spacing: .14em; color: var(--muted);
}
.cfg-tile-value {
  font-family: var(--display); font-weight: 700; font-size: 16px;
  letter-spacing: -.01em; color: var(--accent);
  display: inline-flex; align-items: center; gap: 9px;
}
.cfg-tile-sub { font-size: 11px; color: var(--muted); }

.cfg-scenarios { margin-top: 80px; }
@media (max-width: 1100px) {
  .cfg-wrap { grid-template-columns: 1fr; }
}
.cfg-scenarios h3 {
  font-family: var(--display); color: var(--text);
  font-size: clamp(18px, 1.8vw, 22px); margin-bottom: 20px;
}
.scenario-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  align-items: stretch;
}
.scenario { display: flex; flex-direction: column; gap: 10px; padding: 22px 20px; margin: 0; }
.scenario.featured {
  border-color: rgba(134, 239, 206, .35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 0 32px rgba(134, 239, 206, .08);
}
.scenario-tag {
  display: inline-flex; align-items: center; gap: 7px; align-self: flex-start;
  font-family: var(--mono); font-size: 9.5px; text-transform: uppercase;
  letter-spacing: .14em; color: var(--muted);
  padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line);
}
.scenario h4 { font-family: var(--display); font-size: 16.5px; color: var(--text); margin: 0; }
.scenario p { color: var(--muted); font-size: 13.5px; line-height: 1.55; margin: 0; flex: 1; }
.scenario-facts { display: flex; flex-direction: column; gap: 5px; margin: 4px 0 0; border-top: 1px solid var(--line); padding-top: 10px; }
.scenario-facts div { display: flex; justify-content: space-between; gap: 10px; }
.scenario-facts dt {
  font-family: var(--mono); font-size: 9.5px; text-transform: uppercase;
  letter-spacing: .12em; color: var(--muted); align-self: center;
}
.scenario-facts dd { font-family: var(--mono); font-size: 12px; color: var(--accent); margin: 0; }
.scenario-note { margin-top: 18px; max-width: 880px; color: var(--muted); font-size: 12.5px; line-height: 1.6; }

/* ---------- 8 · FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 14px; margin-top: 48px; max-width: 780px; }
.faq-list details { padding: 0; overflow: hidden; }
.faq-list summary {
  cursor: pointer; list-style: none;
  font-family: var(--display); font-weight: 600; font-size: 16.5px;
  padding: 20px 54px 20px 24px; position: relative;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; position: absolute; right: 22px; top: 50%;
  transform: translateY(-50%);
  font-family: var(--mono); font-size: 20px; color: var(--accent);
  transition: transform .25s var(--ease);
}
.faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-list details p { padding: 0 24px 22px; color: var(--muted); font-size: 15px; max-width: 640px; }

/* ---------- 9 · CTA ---------- */
.scene-cta { text-align: center; padding-top: 180px; padding-bottom: 180px; }
.scene-cta .scene-lead { margin: 18px auto 40px; }
.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.scene-cta .btn.huge.primary { animation: heartbeat 2.4s var(--ease) infinite; }
@keyframes heartbeat {
  0%, 100% { box-shadow: 0 6px 28px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, .5); }
  50% { box-shadow: 0 6px 48px rgba(110, 231, 197, .45), 0 0 0 8px rgba(134, 239, 206, .07), inset 0 1px 0 rgba(255, 255, 255, .5); }
}

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--line);
  padding: 44px 48px 60px;
  display: flex; flex-wrap: wrap; gap: 24px; align-items: center;
  max-width: 1180px; margin: 0 auto;
}
footer .brand.small { gap: 10px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
footer .brand.small .brand-mark { width: 30px; height: 30px; border-radius: 9px; }
footer .brand.small .brand-mark svg { width: 16px; height: 16px; }
footer nav { display: flex; gap: 18px; margin-left: auto; }
footer nav a { color: var(--muted); text-decoration: none; font-size: 13px; }
footer nav a:hover { color: var(--accent); }
footer .footnote { width: 100%; margin-top: 4px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .stat-grid, .price-grid { grid-template-columns: repeat(2, 1fr); }
  .wissen-grid, .kamp-grid { grid-template-columns: 1fr; }
  .scenario-grid { grid-template-columns: repeat(2, 1fr); }
  .flow-facts { grid-template-columns: 1fr; }
  .cfg-panel { grid-template-columns: 1fr; }
  .cfg-label { width: 100%; }
  .cfg-dsgvo-cols { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  /* Kein GSAP-Pinning auf Mobile → Module nativ horizontal swipen */
  .hscroll { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
  .panel { scroll-snap-align: center; }
}
@media (max-width: 720px) {
  .scene { padding: 90px 22px; }
  .scene-modules .scene-head, .scene-stack .scene-head { padding: 0 22px; }
  #topbar { padding: 12px 16px; gap: 12px; }
  #topbar nav { display: none; }
  .htrack { padding: 20px 22px; }
  .panel { width: 86vw; padding: 26px 22px; }
  /* Konfigurator auf Mobile: vertikaler Datenfluss statt SVG-Diagramm */
  #cfg-svg { display: none; }
  #cfg-mobile { display: flex; }
  .cfg-stage { padding: 16px 14px 14px; }
  .cfg-badge { font-size: 9.5px; }
  .stat-grid, .price-grid, .scenario-grid { grid-template-columns: 1fr; }
  .bubble { max-width: 94%; }
  footer { padding: 36px 22px 48px; }
  /* Hero & CTA: Buttons gestapelt in voller Breite */
  .hero-cta, .cta-row { flex-direction: column; align-items: stretch; }
  .hero-cta .btn, .cta-row .btn { text-align: center; }
}

/* ---------- Optik-Tuning Runde 3 ---------- */
::selection { background: var(--accent); color: var(--accent-ink); }

::-webkit-scrollbar { width: 9px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: rgba(134, 239, 206, .22); border-radius: 99px;
  border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: rgba(134, 239, 206, .4); }
html { scrollbar-width: thin; scrollbar-color: rgba(134, 239, 206, .3) var(--bg); }

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

h1, h2 { text-wrap: balance; }

/* Scroll-Progress unter der Topbar */
#scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; z-index: 41;
  height: 2px; transform-origin: 0 0; transform: scaleX(0);
  background: linear-gradient(90deg, #3ec99b, #86efce);
  box-shadow: 0 0 10px rgba(134, 239, 206, .5);
  pointer-events: none;
}

/* Scrollspy */
#topbar nav a.active { color: var(--accent); background: var(--accent-soft); }

/* FAQ: sanfte Open-Animation (Chrome 131+, degradiert stumm) */
.faq-list details::details-content {
  opacity: 0; height: 0; overflow: hidden;
  transition: height .35s var(--ease), opacity .3s var(--ease), content-visibility .35s allow-discrete;
}
.faq-list details[open]::details-content { opacity: 1; height: auto; }
.faq-list summary { transition: color .2s var(--ease); }
.faq-list summary:hover { color: var(--accent); }

/* Price-Cards: Glanz-Sweep beim Hover */
.price-card { position: relative; overflow: hidden; }
.price-card::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 60%;
  left: -80%; transform: skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgba(134, 239, 206, .09), transparent);
  transition: left .7s var(--ease);
  pointer-events: none;
}
.price-card:hover::after { left: 130%; }

/* Transcript: Rollen-Punkte */
.bubble .who { display: flex; align-items: center; gap: 7px; }
.bubble .who::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--glass-2); border: 1px solid var(--line-strong);
}
.bubble.agent .who::before {
  background: var(--accent); border-color: transparent;
  box-shadow: 0 0 8px rgba(134, 239, 206, .6);
}

/* Footer: Waveform-Hairline */
footer { position: relative; border-top: none; padding-top: 54px; }
footer::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 14px;
  background-image: repeating-linear-gradient(90deg,
    rgba(134, 239, 206, .3) 0 2px, transparent 2px 9px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 20% 80%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 20% 80%, transparent);
  clip-path: polygon(0 42%, 100% 42%, 100% 58%, 0 58%);
  opacity: .5;
}
footer nav a { transition: color .2s var(--ease); }

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  html { scroll-behavior: auto; }
}
