/* Clustoria Landing: bold redesign.
   Idee: dramatischer, dunkler Hero (Kontrollraum) mit einer echten, sich
   selbst abspielenden Produkt-Demo, die ins helle, ruhige Arbeitsumfeld
   uebergeht. Marke bleibt: Violett + Bricolage Grotesque. Amber AUSSCHLIESSLICH
   fuer den Menschen-Moment (Freigabe-Stempel).
   Ohne JS bleibt alles lesbar; ohne Motion wird nichts animiert. */

@font-face {
  font-family: "Bricolage";
  src: url("/fonts/bricolage.woff2") format("woff2");
  font-weight: 300 800;
  font-stretch: 75% 100%;
  font-display: swap;
}

:root {
  /* Helle Arbeitswelt (Produkt-Kontinuitaet) */
  --paper: #fbfbfd;
  --paper-2: #f4f1fb;
  --ink: #191527;
  --ink-soft: #524b68;
  --brand: #6d28d9;
  --brand-bright: #7c3aed;
  --brand-tint: #f1ebfc;
  --amber: #b45309;
  --amber-fill: #fbbf24;
  --line: #e7e2f2;
  --card: #ffffff;

  /* Dunkler Hero */
  --h-bg: #0b0817;
  --h-bg-2: #150f30;
  --h-ink: #f6f3fd;
  --h-soft: #c6bfe0;
  --h-faint: #9a92ba;
  --h-line: rgba(255, 255, 255, 0.1);
  --h-accent: #b79cff;
  --glow: #7c3aed;

  --radius: 16px;
  --radius-lg: 22px;
  --shadow-soft: 0 1px 2px rgba(76, 49, 140, 0.06), 0 14px 34px -20px rgba(76, 49, 140, 0.28);
  --shadow-float: 0 30px 80px -32px rgba(38, 12, 82, 0.55), 0 8px 24px -18px rgba(38, 12, 82, 0.4);

  --ease-out: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);

  --display: "Bricolage", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font: 400 1rem/1.65 var(--body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
b, strong { font-weight: 600; }
::selection { background: #d7c6fb; color: #1a0f33; }

.wrap { max-width: 70rem; margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2rem); }

/* z-index-Skala */
:root { --z-header: 60; --z-aura: 0; }

/* ---- Typo-Skala ---- */
h1, h2, h3, .display {
  font-family: var(--display);
  font-optical-sizing: auto;
  letter-spacing: -0.03em;
  line-height: 1.05;
  font-weight: 640;
  text-wrap: balance;
}
h2 { font-size: clamp(1.8rem, 3.8vw, 2.7rem); line-height: 1.08; }
h3 { font-size: 1.12rem; font-weight: 650; letter-spacing: -0.015em; }
.lede { font-size: clamp(1.04rem, 1.5vw, 1.2rem); line-height: 1.6; color: var(--ink-soft); max-width: 42rem; text-wrap: pretty; }

/* Ein bewusster, benannter Kicker (kein Eyebrow ueber jeder Sektion). */
.kicker {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font: 550 0.8rem/1 var(--body);
  color: var(--brand);
  background: var(--brand-tint);
  border-radius: 999px;
  padding: 0.4rem 0.8rem 0.4rem 0.65rem;
}
.kicker::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand-bright); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  border-radius: 999px; padding: 0.82rem 1.4rem;
  font: 600 0.95rem/1 var(--body);
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: transform 180ms var(--ease-out), box-shadow 220ms var(--ease-out), background-color 160ms ease, border-color 160ms ease;
}
/* Druck-Feedback sofort beim Druecken, nicht erst beim Loslassen. */
.btn:active { transform: scale(0.97); transition-duration: 60ms; }
.btn-primary {
  background: linear-gradient(180deg, #8b5cf6, #6d28d9);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 1px 2px rgba(38, 12, 82, 0.18), 0 10px 24px -10px rgba(124, 58, 237, 0.55);
}
.btn-primary:hover {
  transform: translateY(-1px);
  background: linear-gradient(180deg, #9468f8, #7430e3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 2px 4px rgba(38, 12, 82, 0.16), 0 14px 32px -10px rgba(124, 58, 237, 0.6);
}
.btn-ghost { border-color: var(--line); background: rgba(255, 255, 255, 0.75); color: var(--ink); }
.btn-ghost:hover { border-color: rgba(124, 58, 237, 0.4); background: #fff; transform: translateY(-1px); }

/* Buttons auf Dunkel */
.on-dark .btn-ghost { background: rgba(255, 255, 255, 0.06); border-color: var(--h-line); color: var(--h-ink); }
.on-dark .btn-ghost:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.28); }

:is(a, button, summary):focus-visible { outline: 2.5px solid var(--brand-bright); outline-offset: 2px; border-radius: 8px; }
.on-dark :is(a, button):focus-visible { outline-color: var(--h-accent); }
.btn:focus-visible { border-radius: 999px; }

/* ---- Header ---- */
.site-header { position: sticky; top: 0; z-index: var(--z-header); }
.site-header .wrap { display: flex; align-items: center; gap: 1.2rem; padding-block: 0.75rem; }
/* Heller Glas-Header: oben transparent ueber dem hellen Hero, beim Scrollen
   erscheint das Material (Blur + Saettigung) und eine weiche Scroll-Kante
   statt einer harten Linie. */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(251, 251, 253, 0.68);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  opacity: 0; transition: opacity 240ms ease;
}
.site-header::after {
  content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 16px;
  background: linear-gradient(180deg, rgba(25, 21, 39, 0.07), transparent);
  opacity: 0; transition: opacity 240ms ease; pointer-events: none;
}
.js .site-header.is-scrolled::before, .js .site-header.is-scrolled::after { opacity: 1; }
.logo { display: flex; align-items: center; gap: 0.55rem; font: 700 1.08rem/1 var(--display); text-decoration: none; letter-spacing: -0.01em; color: var(--ink); }
.logo-mark { width: 1.9rem; height: 1.9rem; display: block; flex: none; }
.site-nav { display: flex; gap: 1.3rem; margin-inline: auto; }
.site-nav a { font: 500 0.9rem/1 var(--body); color: var(--ink-soft); text-decoration: none; transition: color 200ms ease; }
.site-nav a:hover { color: var(--ink); }
.header-cta { display: flex; align-items: center; gap: 0.7rem; }
.header-cta .login { font: 500 0.9rem/1 var(--body); color: var(--ink-soft); text-decoration: none; }
.header-cta .login:hover { color: var(--ink); }
.header-cta .btn { padding: 0.56rem 1.1rem; font-size: 0.88rem; }

/* ================= HERO (hell, mit weichem Farb-Glow) ================= */
.hero {
  position: relative;
  color: var(--ink);
  background: var(--paper);
  margin-top: -3.9rem; /* Header liegt ueber dem Hero */
  padding-top: 4.9rem;
  padding-bottom: clamp(2.6rem, 6vw, 4.5rem);
  isolation: isolate;
  overflow: hidden;
}
.hero-aura { position: absolute; inset: 0; z-index: var(--z-aura); pointer-events: none; }
.hero-aura::before, .hero-aura::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(70px);
}
.hero-aura::before {
  width: 64vw; height: 64vw; max-width: 780px; max-height: 780px;
  top: -26%; right: -10%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.24), transparent 66%);
}
.hero-aura::after {
  width: 50vw; height: 50vw; max-width: 600px; max-height: 600px;
  bottom: -24%; left: -14%;
  background: radial-gradient(circle, rgba(244, 114, 182, 0.14), transparent 66%);
}
.hero > .wrap { position: relative; z-index: 2; }

.hero-head { max-width: 46rem; padding-top: clamp(2rem, 6vw, 4rem); }
.hero-title {
  font-family: var(--display);
  font-size: clamp(2.7rem, 6vw, 4.75rem);
  line-height: 1.02; letter-spacing: -0.035em; font-weight: 660;
  text-wrap: balance; margin-top: 1.2rem;
}
.hero-title .grad { color: var(--brand); }
.hero-lede { margin-top: 1.3rem; color: var(--ink-soft); font-size: clamp(1.05rem, 1.6vw, 1.24rem); max-width: 38rem; }
.hero-ctas { margin-top: 1.9rem; display: flex; flex-wrap: wrap; gap: 0.8rem; }
.hero-note { margin-top: 1.1rem; font-size: 0.84rem; color: var(--ink-soft); display: flex; align-items: center; gap: 0.5rem; }
.hero-note svg { flex: none; color: var(--brand-bright); }

/* Weicher Glow hinter dem Demo-Panel (das "Produktfoto"-Licht). */
.demo-glow {
  position: absolute; inset-inline: 6%; bottom: -6rem; height: 24rem;
  background: radial-gradient(55% 65% at 50% 55%, rgba(124, 58, 237, 0.24), transparent 70%);
  filter: blur(56px);
  pointer-events: none;
}

/* Load-Sequenz */
.js.motion-ok .hero [data-rise] { opacity: 0; transform: translateY(16px); animation: rise 720ms var(--ease-expo) both; }
.js.motion-ok .hero [data-rise="2"] { animation-delay: 80ms; }
.js.motion-ok .hero [data-rise="3"] { animation-delay: 150ms; }
.js.motion-ok .hero [data-rise="4"] { animation-delay: 220ms; }
.js.motion-ok .hero [data-rise="5"] { animation-delay: 320ms; }
.js.motion-ok .hero [data-rise="6"] { animation-delay: 440ms; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ================= LIVE-DEMO ================= */
.demo {
  margin-top: clamp(2.2rem, 5vw, 3.4rem);
  background: var(--card);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(76, 49, 140, 0.1);
  /* Gestaffelte Tiefe: Kontaktschatten, Nahschatten, weiter weicher Wurf. */
  box-shadow:
    0 1px 2px rgba(38, 12, 82, 0.05),
    0 18px 36px -20px rgba(38, 12, 82, 0.18),
    0 64px 140px -48px rgba(88, 28, 180, 0.35);
  overflow: hidden;
  color: var(--ink);
  position: relative;
}
.js.motion-ok .demo { opacity: 0; transform: translateY(28px) scale(0.985); animation: demo-in 820ms var(--ease-expo) 380ms both; }
@keyframes demo-in { to { opacity: 1; transform: none; } }

/* Fensterleiste */
.demo-top {
  display: flex; align-items: center; gap: 0.8rem;
  padding: 0.7rem 0.95rem; border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fbf9ff, #f5f1fc);
}
.demo-dots { display: flex; gap: 0.4rem; }
.demo-dots i { width: 0.62rem; height: 0.62rem; border-radius: 50%; background: #e2dcf0; }
.demo-dots i:nth-child(1) { background: #f3b7c2; }
.demo-dots i:nth-child(2) { background: #f7dca6; }
.demo-dots i:nth-child(3) { background: #b7e3c4; }
.demo-appname { font: 600 0.82rem/1 var(--body); color: var(--ink-soft); display: flex; align-items: center; gap: 0.45rem; }
.demo-appname .pin { width: 1.15rem; height: 1.15rem; display: block; flex: none; }
.demo-live { margin-left: auto; display: inline-flex; align-items: center; gap: 0.4rem; font: 600 0.68rem/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand); }
.demo-live .blip { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34,197,94,0.5); }
.js.motion-ok .demo-live .blip { animation: blip 1.8s var(--ease-out) infinite; }
@keyframes blip { 0% { box-shadow: 0 0 0 0 rgba(34,197,94,0.5); } 70% { box-shadow: 0 0 0 7px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }

/* Stationen-Schiene + Steuerung */
.demo-controls { display: flex; align-items: center; gap: 0.9rem; padding: 0.75rem 0.95rem 0.2rem; }
.demo-play {
  flex: none; width: 2.3rem; height: 2.3rem; border-radius: 50%;
  border: 1px solid var(--line); background: #fff; color: var(--brand);
  display: grid; place-items: center; cursor: pointer;
  transition: transform 140ms var(--ease-out), background-color 160ms ease, border-color 160ms ease;
}
.demo-play:hover { background: var(--brand-tint); border-color: rgba(124,58,237,0.4); transform: scale(1.06); }
.demo-play:active { transform: scale(0.94); transition-duration: 60ms; }
.demo-play .i-pause, .demo-play .i-play { display: none; }
.demo[data-playing="true"] .demo-play .i-pause { display: block; }
.demo[data-playing="false"] .demo-play .i-play { display: block; }
.no-js .demo-play, .no-motion .demo-play { display: none; }

.demo-rail { list-style: none; display: flex; flex: 1; gap: 0.35rem; min-width: 0; }
.demo-rail li { flex: 1; min-width: 0; }
.demo-rail .step {
  appearance: none; width: 100%; text-align: left; cursor: pointer;
  background: none; border: 0; padding: 0.1rem 0; color: var(--ink-soft);
  display: flex; flex-direction: column; gap: 0.4rem;
}
.demo-rail .step .lbl { font: 600 0.72rem/1.2 var(--body); letter-spacing: -0.005em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color 220ms ease; }
.demo-rail .track { height: 3px; border-radius: 999px; background: var(--line); overflow: hidden; }
.demo-rail .track i { display: block; height: 100%; width: 0; background: var(--brand-bright); border-radius: inherit; transition: width 220ms linear; }
/* aktive + erledigte Stationen */
.demo-rail .step:hover .lbl { color: var(--ink); }
.demo-rail li.is-active .lbl { color: var(--brand); }
.demo-rail li.is-active .step:hover .lbl { color: var(--brand); }
.demo-rail li.is-done .lbl { color: var(--ink); }
.demo-rail li.is-done .track i { width: 100%; }
/* Pausiert: aktive Station als voller Balken (du bist hier). */
.demo[data-playing="false"] .demo-rail li.is-active .track i { width: 100%; }
/* Spielt: aktive Station fuellt sich ueber die Verweildauer. */
.js.motion-ok .demo[data-playing="true"] .demo-rail li.is-active .track i { width: 100%; transition: width var(--dwell, 2600ms) linear; }
/* Loop-/Rueckwaerts-Reset ohne sichtbares Auslaufen. */
.demo.is-snapping .demo-rail .track i,
.demo.is-snapping .rank .bar i,
.demo.is-snapping .bubble { transition: none !important; }

/* Bildschirm-Bereich: beide Ansichten liegen in derselben Grid-Zelle und
   ueberblenden sich; die Zelle waechst mit der aktiven Ansicht (kein Ueberlauf
   auf die Bildunterschrift, kein Sprung). */
.demo-screen { display: grid; padding: clamp(1rem, 2.4vw, 1.5rem); min-height: 15rem; }
.demo-view { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity 420ms var(--ease-out); }
.demo-view--msg { opacity: 1; visibility: visible; }
.demo[data-stage="5"] .demo-view--msg { opacity: 0; visibility: hidden; }
.demo[data-stage="5"] .demo-view--stats { opacity: 1; visibility: visible; }
/* Ohne JS: untereinander als lesbares Storyboard statt uebereinander. */
.no-js .demo-screen { display: block; }
.no-js .demo-view { grid-area: auto; opacity: 1; visibility: visible; }
.no-js .demo-view--stats { margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }

/* Der Brief */
.msg-head { display: flex; align-items: center; gap: 0.75rem; padding-bottom: 0.85rem; border-bottom: 1px solid var(--line); }
.src { flex: none; width: 2.4rem; height: 2.4rem; border-radius: 11px; display: grid; place-items: center; font: 700 0.9rem/1 var(--display); }
.src-mail { background: var(--brand-tint); color: var(--brand); }
.src-google { background: #fef3f2; color: #d92d20; }
.src-ts { background: #ecfdf3; color: #067647; }
.msg-sub { font: 650 0.98rem/1.35 var(--body); }
.msg-meta { font: 400 0.79rem/1.4 var(--body); color: var(--ink-soft); }
.msg-body { padding-top: 0.9rem; font-size: 0.94rem; line-height: 1.7; max-width: 62ch; }

/* PII: Klartext <-> Token. Beide im DOM. Default (kein JS) = maskiert. */
.pii { position: relative; display: inline-grid; vertical-align: baseline; cursor: help; }
.pii > span { grid-area: 1 / 1; transition: opacity 320ms var(--ease-out), transform 320ms var(--ease-out); }
.pii .tok {
  font: 600 0.82em/1.5 var(--mono);
  background: var(--brand-tint); color: var(--brand);
  border-radius: 6px; padding: 0.02em 0.36em; white-space: nowrap;
  box-shadow: inset 0 0 0 1px rgba(124, 58, 237, 0.18);
}
.pii .clear { white-space: nowrap; opacity: 0; transform: translateY(-3px); }
/* Station 1: Klartext sichtbar, Token verborgen. */
.js .demo[data-stage="1"] .pii .clear { opacity: 1; transform: none; }
.js .demo[data-stage="1"] .pii .tok { opacity: 0; transform: translateY(4px); }
/* Nutzer kann per Klick den Klartext kurz zeigen (Datenschutz spuerbar). */
.js .pii.reveal .clear { opacity: 1; transform: none; }
.js .pii.reveal .tok { opacity: 0; transform: translateY(4px); }

.mask-badge {
  margin-top: 1rem; display: inline-flex; align-items: center; gap: 0.5rem;
  font: 600 0.76rem/1 var(--body); color: var(--brand);
  background: var(--brand-tint); border-radius: 999px; padding: 0.45rem 0.8rem;
  opacity: 0; transform: translateY(8px) scale(0.96); transition: opacity 380ms var(--ease-out), transform 460ms var(--ease-expo);
}
.no-js .mask-badge,
.demo[data-stage="2"] .mask-badge, .demo[data-stage="3"] .mask-badge,
.demo[data-stage="4"] .mask-badge, .demo[data-stage="5"] .mask-badge { opacity: 1; transform: none; }

/* Antwort-Karte (ab Station 3) */
.reply-wrap { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 520ms var(--ease-expo); }
.reply-wrap > div { overflow: hidden; }
.reply-card {
  margin-top: 1.05rem; border-radius: 13px; background: #f7f4fd;
  border: 1px solid var(--line); padding: 0.95rem 1.05rem; position: relative;
  opacity: 0; transform: translateY(12px); transition: opacity 420ms var(--ease-out), transform 480ms var(--ease-expo);
}
/* Entwurf offen nur in Station 3 und 4; in Station 5 ist die Nachricht
   ausgeblendet, also bleibt der Entwurf eingeklappt, damit die (versteckte)
   Nachricht die Auswertungs-Ansicht nicht in die Hoehe zieht. */
.no-js .reply-wrap,
.demo[data-stage="3"] .reply-wrap, .demo[data-stage="4"] .reply-wrap { grid-template-rows: 1fr; }
.no-js .reply-card,
.demo[data-stage="3"] .reply-card, .demo[data-stage="4"] .reply-card { opacity: 1; transform: none; }
.reply-label { display: inline-flex; align-items: center; gap: 0.45rem; font: 600 0.68rem/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand); margin-bottom: 0.6rem; }
.reply-label svg { color: var(--brand-bright); }
.reply-text { font-size: 0.9rem; line-height: 1.65; min-height: 5.4em; }
.reply-text .caret { display: none; }
.js.motion-ok .reply-text.is-typing .caret { display: inline-block; width: 2px; background: var(--brand); animation: caret 850ms steps(1) infinite; margin-left: 1px; vertical-align: -0.1em; height: 1em; }
@keyframes caret { 50% { opacity: 0; } }
.tone-chips { display: flex; gap: 0.45rem; margin-top: 0.75rem; flex-wrap: wrap; }
.tone-chips span { font: 500 0.73rem/1 var(--body); border: 1px solid var(--line); border-radius: 999px; padding: 0.32rem 0.62rem; color: var(--ink-soft); background: #fff; }
.tone-chips .on { border-color: rgba(124, 58, 237, 0.45); color: var(--brand); background: var(--brand-tint); }

/* Freigabe-Stempel (Station 4): einziger Amber-Moment. */
.stamp {
  position: absolute; right: 0.9rem; bottom: 0.9rem;
  font: 700 0.8rem/1.2 var(--display); color: var(--amber);
  border: 2px solid var(--amber); border-radius: 10px; padding: 0.44rem 0.72rem;
  background: #fdf4da; text-align: center;
  box-shadow: 0 10px 24px -12px rgba(180, 83, 9, 0.6);
  transform: rotate(9deg) scale(1.5); opacity: 0;
  transition: opacity 220ms ease, transform 340ms var(--ease-out);
}
.stamp small { display: block; font: 500 0.66rem/1.3 var(--body); color: var(--amber); }
.no-js .stamp, .demo[data-stage="4"] .stamp, .demo[data-stage="5"] .stamp { opacity: 1; transform: rotate(-5deg) scale(1); }

/* Station 5: Auswertung */
.stats-head { font: 650 0.98rem/1.4 var(--display); letter-spacing: -0.01em; }
.stats-sub { font-size: 0.82rem; color: var(--ink-soft); margin-top: 0.15rem; margin-bottom: 1rem; }
.rank { display: grid; gap: 0.7rem; }
.rank .row { display: grid; grid-template-columns: 8.5rem 1fr 2.4rem; gap: 0.7rem; align-items: center; font: 500 0.82rem/1.5 var(--body); color: var(--ink-soft); }
.rank .bar { height: 9px; border-radius: 999px; background: var(--brand-tint); position: relative; overflow: hidden; }
.rank .bar i { position: absolute; inset: 0; width: var(--w); background: linear-gradient(90deg, #8b5cf6, #6d28d9); border-radius: inherit; transform-origin: left; }
.js.motion-ok .rank .bar i { transform: scaleX(0); }
.js.motion-ok .demo[data-stage="5"] .rank .bar i { transform: scaleX(1); transition: transform 780ms var(--ease-expo); }
.js.motion-ok .demo[data-stage="5"] .rank .row:nth-child(2) .bar i { transition-delay: 90ms; }
.js.motion-ok .demo[data-stage="5"] .rank .row:nth-child(3) .bar i { transition-delay: 180ms; }
.rank .num { font-family: var(--mono); font-size: 0.8rem; text-align: right; color: var(--ink); font-weight: 600; }
.stats-foot { margin-top: 1.15rem; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.stat-pill { font: 500 0.78rem/1.3 var(--body); color: var(--ink-soft); background: var(--paper-2); border-radius: 10px; padding: 0.5rem 0.75rem; }
.stat-pill b { color: var(--ink); font-family: var(--display); font-size: 0.95rem; margin-right: 0.25rem; }

/* Station 5: zweispaltige Auswertung (Ranking + Themen) */
.stats-grid { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: clamp(1.1rem, 3vw, 2.2rem); align-items: start; }
.col-label { font: 600 0.68rem/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand); margin-bottom: 0.9rem; }

/* Themen als Streudiagramm: x = Haeufigkeit, y = Stimmung, Groesse = Nennungen,
   Farbe = Stimmung (validierte Palette rot/violett/gruen; Position + Label als
   zweite Codierung, damit die Farbe nie allein traegt). */
.topic-plot {
  position: relative; height: 12.5rem; margin-top: 0.1rem;
  border-left: 1.5px solid var(--line); border-bottom: 1.5px solid var(--line);
}
.ax { position: absolute; font: 500 0.66rem/1 var(--body); color: var(--ink-soft); pointer-events: none; }
.ax-top { top: 0.15rem; left: 0.35rem; }
.ax-bot { bottom: 0.3rem; left: 0.35rem; }
.ax-right { right: 0.3rem; bottom: 0.28rem; }
.bubble {
  position: absolute; left: calc(var(--x) * 1%); bottom: calc(var(--y) * 1%);
  width: var(--s); height: var(--s); border-radius: 50%;
  transform: translate(-50%, 50%); transform-origin: center;
  box-shadow: 0 0 0 2px var(--card), 0 8px 16px -8px rgba(20, 8, 48, 0.42);
}
.bubble.crit { background: rgba(229, 72, 77, 0.88); }
.bubble.neut { background: rgba(124, 92, 255, 0.82); }
.bubble.pos  { background: rgba(47, 158, 107, 0.9); }
.bubble .t-lbl { position: absolute; top: 100%; left: 50%; transform: translate(-50%, 3px); white-space: nowrap; font: 600 0.72rem/1 var(--body); color: var(--ink); text-shadow: 0 1px 0 var(--card), 0 0 3px var(--card); }
.js.motion-ok .bubble { transform: translate(-50%, 50%) scale(0); transition: transform 640ms var(--ease-expo); }
.js.motion-ok .demo[data-stage="5"] .bubble { transform: translate(-50%, 50%) scale(1); transition-delay: var(--d, 0ms); }
.topic-legend { display: flex; gap: 0.9rem; flex-wrap: wrap; margin-top: 0.5rem; font: 500 0.72rem/1.2 var(--body); color: var(--ink-soft); }
.topic-legend span { display: inline-flex; align-items: center; gap: 0.38rem; }
.topic-legend i { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.topic-legend .crit { background: rgba(229, 72, 77, 0.88); }
.topic-legend .neut { background: rgba(124, 92, 255, 0.82); }
.topic-legend .pos  { background: rgba(47, 158, 107, 0.9); }
/* Label ueber der Blase (fuer die oberen Punkte, sonst Kollision auf schmalen Breiten). */
.bubble.lbl-up .t-lbl { top: auto; bottom: 100%; transform: translate(-50%, -3px); }
/* KPI-Kacheln neben dem Ranking (fuellen die linke Spalte). */
.stats-col .stats-foot { display: grid; gap: 0.55rem; margin-top: 1.35rem; }
.stats-col .stat-pill { text-align: left; }

/* Bildunterschrift der Demo (wechselt je Station) */
.demo-caption {
  border-top: 1px solid var(--line); padding: 0.95rem clamp(1rem, 2.4vw, 1.5rem);
  font-size: 0.9rem; color: var(--ink-soft); background: #fbfaff;
  min-height: 3.4rem; display: flex; align-items: center; gap: 0.5rem;
}
.demo-caption b { color: var(--ink); }
.js.motion-ok .demo-caption .cap-text { transition: opacity 240ms ease; }

/* ================= FAKTEN ================= */
.fakten { background: var(--paper); }
.fakten .wrap { display: flex; flex-wrap: wrap; gap: 0.6rem 1.8rem; justify-content: center; padding-block: 1.5rem 0.4rem; }
.fakten span { font: 500 0.84rem/1.4 var(--body); color: var(--ink-soft); display: inline-flex; align-items: center; gap: 0.5rem; }
.fakten b { color: var(--ink); font-weight: 600; }
.fakten .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--brand-bright); }

/* ================= Sektions-Geruest ================= */
section[id] { scroll-margin-top: 4.5rem; }
.section { padding-block: clamp(3.4rem, 8vw, 6rem); }
.section-head { max-width: 44rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head h2 { margin-top: 0.9rem; }
.section-head p { margin-top: 1rem; }

/* Scroll-Reveal. Der versteckte Zustand gilt NUR, wenn JS ihn scharf schaltet
   (.reveal-armed) und wird per Failsafe immer wieder aufgeloest. Ohne JS, ohne
   Motion oder bei ausbleibendem Observer bleibt der Inhalt sichtbar. */
.js.motion-ok.reveal-armed [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 640ms var(--ease-out), transform 720ms var(--ease-expo); }
.js.motion-ok.reveal-armed [data-reveal].is-in { opacity: 1; transform: none; }
.js.motion-ok [data-reveal][data-delay="1"] { transition-delay: 90ms; }
.js.motion-ok [data-reveal][data-delay="2"] { transition-delay: 180ms; }
.js.motion-ok [data-reveal][data-delay="3"] { transition-delay: 270ms; }

/* ================= Funktionen ================= */
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; }
.pillar {
  background: var(--card); border-radius: var(--radius);
  border: 1px solid var(--line); padding: 1.6rem 1.5rem;
  transition: transform 220ms var(--ease-out), box-shadow 260ms var(--ease-out), border-color 220ms ease;
}
.js.motion-ok .pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); border-color: rgba(124, 58, 237, 0.22); }
.pillar-ico { width: 2.6rem; height: 2.6rem; border-radius: 12px; background: var(--brand-tint); color: var(--brand); display: grid; place-items: center; margin-bottom: 1.05rem; }
.pillar h3 { margin-bottom: 0.55rem; font-family: var(--display); font-size: 1.28rem; }
.pillar > p { font-size: 0.94rem; color: var(--ink-soft); }
.pillar ul { margin-top: 1rem; display: grid; gap: 0.55rem; }
.pillar li { list-style: none; font-size: 0.88rem; color: var(--ink-soft); display: flex; gap: 0.55rem; align-items: flex-start; }
.pillar li svg { flex: none; margin-top: 0.15em; color: var(--brand-bright); }

/* ================= Einfuehrung ohne Risiko ================= */
.reassure { background: var(--paper-2); }
.reassure-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem 3rem; max-width: 58rem; }
.reassure-item { display: flex; gap: 1rem; align-items: flex-start; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.reassure-ico { flex: none; width: 2.4rem; height: 2.4rem; border-radius: 11px; background: #fff; color: var(--brand); border: 1px solid var(--line); display: grid; place-items: center; }
.reassure-item h3 { display: block; font-family: var(--display); font-size: 1.06rem; letter-spacing: -0.01em; margin-bottom: 0.35rem; }
.reassure-item p { font-size: 0.92rem; color: var(--ink-soft); }

/* ================= Datenfluss-Diagramm (im dunklen Datenschutz-Block) ================= */
.flow { margin-top: 2.6rem; }
.flow-title { font: 600 0.68rem/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: #cbb6ff; margin-bottom: 1rem; }
.flow-track { list-style: none; counter-reset: flow; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.4rem; }
.flow-step {
  position: relative;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--h-line);
  border-radius: 14px; padding: 1rem 1rem 1.05rem;
}
.flow-step::before {
  counter-increment: flow; content: counter(flow);
  display: inline-grid; place-items: center;
  width: 1.45rem; height: 1.45rem; border-radius: 50%;
  background: rgba(124, 58, 237, 0.3); color: #cbb6ff;
  font: 600 0.72rem/1 var(--mono);
  margin-bottom: 0.6rem;
}
/* Pfeil zwischen den Schritten */
.flow-step:not(:last-child)::after {
  content: ""; position: absolute; top: 50%; right: -0.95rem;
  width: 8px; height: 8px;
  border-top: 2px solid #8b6ce0; border-right: 2px solid #8b6ce0;
  transform: translateY(-50%) rotate(45deg);
}
.flow-step b { display: block; color: #fff; font: 650 0.95rem/1.3 var(--display); letter-spacing: -0.01em; margin-bottom: 0.35rem; }
.flow-step p { font-size: 0.8rem; line-height: 1.55; color: var(--h-soft); }
.flow-tok {
  font: 600 0.85em/1.4 var(--mono); white-space: nowrap;
  background: rgba(124, 58, 237, 0.26); color: #cbb6ff;
  border-radius: 5px; padding: 0.04em 0.34em;
}
.flow-step .flow-note {
  display: block; margin-top: 0.65rem; padding-top: 0.6rem;
  border-top: 1px dashed var(--h-line);
  font-size: 0.72rem; line-height: 1.5; color: var(--h-faint);
}
.flow-note svg { display: inline-block; vertical-align: -0.1em; margin-right: 0.25rem; color: #cbb6ff; }

/* ================= Pruefunterlagen ================= */
.docs {
  margin-top: 2.6rem;
  border: 1px solid var(--h-line); border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
  padding: clamp(1.4rem, 3vw, 2rem);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr);
  gap: 1.6rem 3rem; align-items: start;
}
.docs h3 { color: #fff; font-family: var(--display); font-size: 1.35rem; letter-spacing: -0.015em; }
.docs-head p { margin-top: 0.7rem; font-size: 0.92rem; line-height: 1.6; color: var(--h-soft); }
.docs .btn-ghost { margin-top: 1.2rem; }
.docs-list { list-style: none; display: grid; gap: 0.95rem; }
.docs-list li { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.9rem; line-height: 1.55; color: var(--h-soft); }
.docs-list b { color: #fff; font-weight: 600; }
.doc-ico { flex: none; width: 1.7rem; height: 1.7rem; border-radius: 8px; background: rgba(124, 58, 237, 0.22); color: #cbb6ff; display: grid; place-items: center; margin-top: 0.05rem; }

/* ================= Gerade gebaut (build-in-public) ================= */
.built-list { max-width: 46rem; }
.built-row {
  display: flex; gap: 1.4rem; align-items: baseline;
  padding-block: 1.05rem; border-top: 1px solid var(--line);
  transition: background-color 180ms ease;
}
.built-row:last-child { border-bottom: 1px solid var(--line); }
.built-date {
  flex: none; width: 5.2rem;
  font: 600 0.74rem/1.6 var(--mono); color: var(--brand);
  display: inline-flex; align-items: center; gap: 0.45rem;
}
.built-date .blip { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; flex: none; }
.js.motion-ok .built-date .blip { animation: blip 1.8s var(--ease-out) infinite; }
.built-row p { font-size: 0.95rem; color: var(--ink-soft); }
.built-row b { color: var(--ink); font-weight: 600; }

/* ================= Founder-Block (im dunklen Datenschutz-Teil) ================= */
.founder {
  margin-top: 2.6rem; display: flex; gap: 1.2rem; align-items: flex-start;
  max-width: 46rem;
}
.founder-avatar {
  flex: none; width: 2.9rem; height: 2.9rem; border-radius: 50%;
  background: linear-gradient(140deg, #8b5cf6, #6d28d9);
  color: #fff; display: grid; place-items: center;
  font: 700 0.95rem/1 var(--display); letter-spacing: 0.02em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 6px 16px -6px rgba(124, 58, 237, 0.6);
}
.founder-quote { font-size: 1.02rem; line-height: 1.7; color: #ece8f7; text-wrap: pretty; }
.founder-sig { margin-top: 0.8rem; font-size: 0.86rem; color: var(--h-faint); }
.founder-sig b { color: #fff; font-weight: 650; margin-right: 0.4rem; }

/* ================= Preis ================= */
.pricing { background: var(--paper-2); }
.price-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.4rem; max-width: 56rem; }
.price-card, .price-incl { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1.5rem; }
.price-big { font-family: var(--display); font-size: 1.15rem; color: var(--ink-soft); margin-bottom: 1rem; }
.price-big b { font-size: 2.6rem; color: var(--ink); letter-spacing: -0.03em; margin-right: 0.35rem; }
.price-tiers { list-style: none; display: grid; }
.price-tiers li { display: flex; justify-content: space-between; align-items: baseline; padding-block: 0.55rem; border-top: 1px solid var(--line); font-size: 0.92rem; color: var(--ink-soft); }
.price-tiers b { color: var(--ink); font-family: var(--mono); font-weight: 600; }
.price-note { margin-block: 0.9rem 1.1rem; font-size: 0.82rem; color: var(--ink-soft); }
.price-promo {
  margin-bottom: 1.1rem; padding: 0.55rem 0.8rem; border-radius: 10px;
  background: var(--brand-tint); color: var(--brand);
  font: 600 0.82rem/1.45 var(--body);
}
.price-incl ul { list-style: none; display: grid; gap: 0.55rem; margin-top: 0.2rem; }
.price-incl li { font-size: 0.92rem; color: var(--ink-soft); display: flex; gap: 0.5rem; }
.price-incl li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--brand-bright); margin-top: 0.55em; }

/* ================= Datenschutz (dunkel, Gegenstueck zum Hero) ================= */
.privacy { background: var(--h-bg); color: #ece8f7; position: relative; overflow: hidden; }
.privacy .wrap { position: relative; z-index: 1; padding-block: clamp(3.2rem, 7vw, 5rem); }
.privacy .aura { position: absolute; z-index: 0; width: 40vw; height: 40vw; max-width: 520px; max-height: 520px; top: -20%; right: -6%; background: radial-gradient(circle, rgba(124, 58, 237, 0.4), transparent 68%); filter: blur(60px); pointer-events: none; }
.privacy .kicker { background: rgba(124, 58, 237, 0.22); color: #cbb6ff; }
.privacy .kicker::before { background: #a78bfa; }
.privacy h2 { color: #fff; margin-top: 1rem; max-width: 22ch; }
.privacy .lede { color: #c6bfe0; margin-top: 1rem; }
.privacy-grid { margin-top: 2.4rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem; }
.privacy-item { display: flex; gap: 0.85rem; align-items: flex-start; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--h-line); border-radius: 14px; padding: 1.05rem 1.1rem; }
.privacy-item b { color: #fff; font-weight: 600; display: block; margin-bottom: 0.2rem; }
.privacy-item span.txt { font-size: 0.9rem; color: #c6bfe0; }
.privacy-item .tick { flex: none; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: rgba(124, 58, 237, 0.28); color: #cbb6ff; display: grid; place-items: center; }
.privacy-en { margin-top: 2.4rem; padding-top: 1.5rem; border-top: 1px solid var(--h-line); font-size: 0.84rem; line-height: 1.65; color: #a79fc4; max-width: 62rem; }
.privacy-en b { color: #cfc8e6; }
.privacy-links { margin-top: 1.3rem; display: flex; gap: 1.3rem; flex-wrap: wrap; }
.privacy-links a { color: #cbb6ff; font-size: 0.88rem; text-decoration: none; }
.privacy-links a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* ================= Finale ================= */
.finale { text-align: center; padding-block: clamp(3.6rem, 8vw, 6.5rem); background: radial-gradient(60% 90% at 50% 0%, var(--brand-tint), transparent 70%); }
.finale h2 { font-size: clamp(2.1rem, 4.6vw, 3.3rem); max-width: 18ch; margin-inline: auto; }
.finale .lede { margin: 1.15rem auto 0; }
.finale .hero-ctas { justify-content: center; margin-top: 1.8rem; }
.finale .fineprint { margin-top: 1.2rem; font-size: 0.82rem; color: var(--ink-soft); }

/* ================= Footer ================= */
.site-footer { border-top: 1px solid var(--line); background: var(--paper); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 0.8rem 1.6rem; align-items: center; justify-content: space-between; padding-block: 1.6rem; font-size: 0.83rem; color: var(--ink-soft); }
.site-footer .foot-brand { display: inline-flex; align-items: center; gap: 0.55rem; }
.site-footer nav { display: flex; gap: 1.3rem; flex-wrap: wrap; }
.site-footer a { color: var(--ink-soft); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }

/* ================= Responsive ================= */
/* Datenfluss vertikal, bevor die 5 Karten zu schmal werden (Pfeile nach unten). */
@media (max-width: 1100px) {
  .flow-track { grid-template-columns: 1fr; gap: 1.3rem; }
  .flow-step:not(:last-child)::after {
    top: auto; bottom: -0.95rem; right: auto; left: 50%;
    transform: translateX(-50%) rotate(135deg);
  }
}
@media (max-width: 900px) {
  .demo-screen { min-height: 24rem; }
  .pillars { grid-template-columns: 1fr; }
  .privacy-grid { grid-template-columns: 1fr; }
  .reassure-grid { grid-template-columns: 1fr; gap: 1.3rem; }
  .docs { grid-template-columns: 1fr; gap: 1.4rem; }
  .price-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .site-nav { display: none; }
  .header-cta .login { display: none; }
  .hero-title { font-size: clamp(2.3rem, 9vw, 3rem); }
  .demo-rail .step .lbl { font-size: 0; } /* nur Fortschrittsbalken + aktive Beschriftung */
  .demo-rail li.is-active .step .lbl { font-size: 0.72rem; }
  .demo-appname { font-size: 0.76rem; }
  .rank .row { grid-template-columns: 6.5rem 1fr 2.2rem; font-size: 0.78rem; }
  .stats-grid { grid-template-columns: 1fr; gap: 1.6rem; }
  .demo-screen { min-height: 26rem; }
}

/* ================= System-Praeferenzen ================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, ::before, ::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
@media (prefers-reduced-transparency: reduce) {
  .site-header::before { background: var(--paper); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .btn-ghost { background: #fff; }
}
@media (prefers-contrast: more) {
  .pillar, .privacy-item, .reply-card, .demo { border-color: currentColor; }
  .hero-lede, .demo-caption, .pillar > p, .pillar li { color: var(--ink); }
}
