/* ═══════════════════════════════════════════════════════════
   clairr · Pilotpraxen 2026 — Rebuild
   Void-dunkel · Lumière #0B6EF0 · Aube #F0A030 (CTA/Quick Win)
   Clarté #0BBFB0 ausschließlich am KI-Hinweis
   ═══════════════════════════════════════════════════════════ */

:root {
  --void: #08080F;
  --void-2: #0C0D17;
  --void-3: #10121F;
  --offwhite: #F2F1EA;
  --muted: rgba(242, 241, 234, .56);
  --faint: rgba(242, 241, 234, .32);
  --line: rgba(242, 241, 234, .10);
  --line-strong: rgba(242, 241, 234, .18);
  --lumiere: #0B6EF0;
  --aube: #F0A030;
  --clarte: #0BBFB0;
  --paper: #F6F4ED;
  --ink: #12121A;

  --sans: "Outfit", system-ui, -apple-system, sans-serif;
  --serif: "Cormorant Garamond", Georgia, serif;
  --mono: "Space Mono", ui-monospace, SFMono-Regular, monospace;

  --max: 1180px;
  --pad: clamp(20px, 4vw, 48px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

/* ── Light Mode: Flächen & Text flippen, Markenakzente bleiben ── */
html[data-theme="light"] {
  --void: #F7F5EE;
  --void-2: #FDFBF4;
  --void-3: #FFFFFF;
  --offwhite: #14141C;
  --muted: rgba(18, 18, 26, .62);
  --faint: rgba(18, 18, 26, .40);
  --line: rgba(18, 18, 26, .10);
  --line-strong: rgba(18, 18, 26, .22);
}

body {
  background: var(--void);
  color: var(--offwhite);
  transition: background-color .45s ease, color .45s ease;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Echten Cursor nur ausblenden, wenn das JS den Custom-Cursor aktiviert hat
   (Klasse .cursor-on wird in setupCursor gesetzt). Sonst bleibt der System-Cursor. */
@media (pointer: fine) {
  body.cursor-on { cursor: none; }
  body.cursor-on a, body.cursor-on button { cursor: none; }
}

::selection { background: rgba(11, 110, 240, .35); color: var(--offwhite); }

.mono { font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; }
.mono--lower { text-transform: none; letter-spacing: .08em; }
.serif { font-family: var(--serif); font-style: italic; font-weight: 500; }
.aube { color: var(--aube); }

.container { max-width: var(--max); margin: 0 auto; padding-inline: var(--pad); }
.container--narrow { max-width: 880px; }

/* ── Loader ─────────────────────────────────────────────── */
.loader {
  position: fixed; inset: 0; z-index: 200;
  background: var(--void);
  display: grid; place-items: center;
}
.loader__inner { width: min(420px, 80vw); display: grid; gap: 18px; }
.loader__logo { width: 132px; opacity: .95; }
.loader__row { display: flex; justify-content: space-between; color: var(--muted); }
.loader__pct { color: var(--aube); }
.loader__bar { height: 1px; background: var(--line); overflow: hidden; }
.loader__bar span { display: block; height: 100%; width: 0%; background: var(--aube); }

/* ── Custom Cursor ──────────────────────────────────────── */
.cursor { position: fixed; left: 0; top: 0; z-index: 300; pointer-events: none; display: none; }
@media (pointer: fine) { body.cursor-on .cursor { display: block; } }
.cursor__dot {
  position: fixed; left: 0; top: 0; width: 5px; height: 5px; border-radius: 50%;
  background: var(--aube); will-change: transform;
}
.cursor__ring {
  position: fixed; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid rgba(242, 241, 234, .35);
  will-change: transform;
  transition: width .35s cubic-bezier(.22,1,.36,1), height .35s cubic-bezier(.22,1,.36,1),
              border-color .35s, background-color .35s;
}
.cursor__tick {
  position: absolute; background: rgba(242, 241, 234, .5);
  transition: background-color .3s;
}
.cursor__tick--n, .cursor__tick--s { left: 50%; width: 1px; height: 5px; transform: translateX(-50%); }
.cursor__tick--e, .cursor__tick--w { top: 50%; width: 5px; height: 1px; transform: translateY(-50%); }
.cursor__tick--n { top: -2px; } .cursor__tick--s { bottom: -2px; }
.cursor__tick--w { left: -2px; } .cursor__tick--e { right: -2px; }
.cursor--hover .cursor__ring { width: 56px; height: 56px; border-color: var(--aube); }
.cursor--hover .cursor__tick { background: var(--aube); }
.cursor--scan .cursor__ring { width: 84px; height: 84px; border-color: var(--lumiere); background: rgba(11, 110, 240, .06); }
.cursor--scan .cursor__tick { background: var(--lumiere); }
.cursor--ki .cursor__ring { width: 84px; height: 84px; border-color: var(--clarte); background: rgba(11, 191, 176, .06); }
.cursor--ki .cursor__tick { background: var(--clarte); }
.cursor--down .cursor__ring { width: 26px; height: 26px; }

/* ── Nav ────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--pad);
  transition: background-color .4s;
}
/* Kein backdrop-blur: wird auf iGPUs pro Scroll-Frame neu berechnet */
.nav--solid { background: rgba(8, 8, 15, .92); }
html[data-theme="light"] .nav--solid { background: rgba(247, 245, 238, .94); }

/* ── Theme-Toggle (Kapsel-Regler) ───────────────────────── */
.theme-toggle {
  position: relative; width: 58px; height: 28px; flex: none;
  border-radius: 999px; border: 1px solid var(--line-strong);
  background: transparent; padding: 0;
  display: inline-flex; align-items: center; justify-content: space-between;
  transition: border-color .3s, background-color .3s;
}
.theme-toggle:hover { border-color: var(--aube); }
.theme-toggle__icon { width: 50%; display: grid; place-items: center; color: var(--faint); transition: color .3s, opacity .3s; }
.theme-toggle__knob {
  position: absolute; left: 3px; top: 3px; width: 20px; height: 20px;
  border-radius: 50%; background: var(--aube);
  transform: translateX(0);
  transition: transform .4s cubic-bezier(.22, 1, .36, 1);
}
html[data-theme="light"] .theme-toggle__knob { transform: translateX(30px); }
.theme-toggle__icon--moon { color: var(--offwhite); }
html[data-theme="light"] .theme-toggle__icon--moon { color: var(--faint); }
html[data-theme="light"] .theme-toggle__icon--sun { color: var(--offwhite); }
.nav__brand img { height: 20px; display: block; }
.nav__right { display: flex; align-items: center; gap: 22px; }
.nav__mail { color: var(--muted); text-decoration: none; transition: color .3s; }
.nav__mail:hover { color: var(--offwhite); }
.nav__progress { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: transparent; }
.nav__progress span { display: block; height: 100%; width: 100%; background: var(--aube); transform: scaleX(0); transform-origin: 0 50%; will-change: transform; }
@media (max-width: 720px) { .nav__mail { display: none; } }

/* ── Nav-Menü (Sektionslinks + Pilot-Verweis) ───────────── */
.nav__menu { display: flex; align-items: center; gap: 26px; }
.nav__link { position: relative; color: var(--muted); text-decoration: none; transition: color .3s; }
.nav__link::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -7px; height: 1px;
  background: var(--aube); transform: scaleX(0); transform-origin: 0 50%;
  transition: transform .35s cubic-bezier(.22, 1, .36, 1);
}
.nav__link:hover { color: var(--offwhite); }
.nav__link.is-active { color: var(--offwhite); }
.nav__link.is-active::after { transform: scaleX(1); }
.nav__link--pilot { color: var(--offwhite); display: inline-flex; align-items: center; }
.nav__link--pilot::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%;
  background: var(--lumiere); margin-right: 7px; flex: none;
}
.nav__link--pilot::after { background: var(--lumiere); }
.nav__link--pilot:hover { color: var(--lumiere); }

.nav__burger {
  display: none; flex: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 42px; height: 28px; padding: 0 11px;
  background: transparent; border: 1px solid var(--line-strong); border-radius: 999px;
  transition: border-color .3s;
}
.nav__burger:hover { border-color: var(--aube); }
.nav__burger span { display: block; height: 1px; background: var(--offwhite); transition: transform .35s cubic-bezier(.22, 1, .36, 1); }
.nav--open .nav__burger span:first-child { transform: translateY(3px) rotate(45deg); }
.nav--open .nav__burger span:last-child { transform: translateY(-3px) rotate(-45deg); }

@media (max-width: 1080px) {
  .nav__burger { display: inline-flex; }
  .nav__menu {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 6px var(--pad) 18px;
    background: #08080f;
    border-bottom: 1px solid var(--line);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .3s, transform .3s, visibility .3s;
  }
  html[data-theme="light"] .nav__menu { background: #f7f5ee; }
  .nav--open { background: #08080f; }
  html[data-theme="light"] .nav--open { background: #f7f5ee; }
  .nav--open .nav__menu { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav__link { padding: 13px 0; border-top: 1px solid var(--line); }
  .nav__link::after { display: none; }
  .nav__link--pilot { color: var(--lumiere); }
}

/* ── Buttons (Kapsel) ───────────────────────────────────── */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-weight: 500; font-size: .92rem;
  text-decoration: none; border-radius: 999px;
  padding: 14px 30px; white-space: nowrap;
  transition: background-color .35s, color .35s, border-color .35s, box-shadow .35s;
  will-change: transform;
}
.btn span { position: relative; z-index: 1; display: inline-block; }
.btn--primary { background: var(--aube); color: #08080F; } /* auf Aube immer dunkel */
.btn--primary:hover { box-shadow: 0 0 0 1px var(--aube), 0 12px 40px -12px rgba(240, 160, 48, .55); }
.btn--ghost { border: 1px solid var(--line-strong); color: var(--offwhite); background: transparent; }
.btn--ghost:hover { border-color: var(--offwhite); }
.btn--small { padding: 9px 20px; font-size: .8rem; border: 1px solid var(--line-strong); color: var(--offwhite); }
.btn--small:hover { background: var(--offwhite); color: var(--void); border-color: var(--offwhite); }
.btn--big { padding: 18px 42px; font-size: 1rem; }
.btn--full { width: 100%; }

/* ── Eyebrow / Station ──────────────────────────────────── */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); }
.eyebrow__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--lumiere); }
.eyebrow__dot--aube { background: var(--aube); animation: pulse 2.2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

.station { display: flex; align-items: center; gap: 14px; color: var(--muted); margin-bottom: 28px; }
.station__no { color: var(--aube); }
.station__line { flex: 1; height: 1px; background: var(--line); }

/* ── Typografie ─────────────────────────────────────────── */
.h2 {
  font-size: clamp(1.9rem, 4.4vw, 3.4rem);
  font-weight: 600; line-height: 1.12; letter-spacing: -.02em;
  max-width: 18ch; margin-bottom: 22px;
}
.h2 .serif, .closing .serif, .cta__h2 .serif { font-size: 1.06em; letter-spacing: 0; }
.lead { color: var(--muted); max-width: 60ch; font-size: 1.05rem; margin-bottom: 14px; }
.closing {
  font-size: clamp(1.3rem, 2.6vw, 1.9rem); font-weight: 400;
  margin-top: 64px; max-width: 30ch; line-height: 1.35;
}
.closing--small { font-size: clamp(1.1rem, 2vw, 1.4rem); margin-top: 48px; max-width: 48ch; }
.closing .serif { color: var(--offwhite); }

/* ── Sections ───────────────────────────────────────────── */
.section { position: relative; padding: clamp(90px, 13vh, 150px) 0; }
.section--lifted { background: var(--void-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  overflow: hidden; padding: 110px var(--pad) 150px;
}
/* Szene-Wrapper: Atmen als Compositor-Animation — die fertige WebGL-Textur
   wird verschoben statt neu gerendert; das kann nicht zittern. */
.hero__scene { position: absolute; inset: 0; z-index: 0; animation: heroFloat 9s ease-in-out infinite alternate; will-change: transform; }
@keyframes heroFloat {
  from { transform: translate3d(0, -5px, 0); }
  to { transform: translate3d(0, 6px, 0); }
}
/* Stage: die ganze Szene bewegt sich als EIN Layer (Parallax, Scroll-Drift) */
.hero__stage { position: absolute; inset: 0; will-change: transform, opacity; }
@media (prefers-reduced-motion: reduce) { .hero__scene { animation: none; } }

/* ── Der Strudel: Orbit-Bühne, Dashboard, Werkzeug-Karten ─
   Karten und Dashboard sind eine Theme-Insel und bleiben immer dunkel —
   sie zeigen die Produkt-UI (wie das große Dashboard-Mockup weiter unten). */
.horbit {
  position: absolute; left: 71%; top: 53%;
  width: clamp(480px, 43vw, 700px); aspect-ratio: 16 / 10.5;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.horbit__glow {
  position: absolute; inset: -18%;
  background: radial-gradient(ellipse at 50% 50%, rgba(11, 110, 240, .13), transparent 62%);
}
.horbit__rings { position: absolute; inset: -6%; width: 112%; height: 112%; transform: rotate(-11deg); }
.horbit__ring { stroke: rgba(11, 110, 240, .22); stroke-width: 1; vector-effect: non-scaling-stroke; }
.horbit__ring--faint { stroke: rgba(242, 241, 234, .08); }
.horbit.is-live .horbit__rings { opacity: .55; transition: opacity 1.2s ease; }

/* Gestrichelte Bahn + Aube-Komet: Kreis in gestauchtem Wrapper → Ellipse,
   Rotation bleibt ein reiner Compositor-Transform. */
.horbit__tilt {
  position: absolute; left: 50%; top: 50%;
  width: 96%; aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%) rotate(-11deg) scaleY(.56);
}
.horbit__path {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1px dashed rgba(11, 110, 240, .28);
  animation: horbitSpin 44s linear infinite;
}
.horbit__path::after {
  content: ""; position: absolute; left: 50%; top: -3px; width: 6px; height: 6px;
  margin-left: -3px; border-radius: 50%;
  background: var(--aube);
  box-shadow: 0 0 14px 3px rgba(240, 160, 48, .7);
}
@keyframes horbitSpin { to { transform: rotate(360deg); } }

/* Dashboard-Rahmen */
.hdash {
  position: absolute; left: 6%; top: 9%; width: 88%; height: 82%;
  z-index: 5;
  background: linear-gradient(180deg, rgba(16, 18, 34, .96), rgba(10, 11, 22, .96));
  border: 1px solid rgba(242, 241, 234, .12);
  border-radius: 14px;
  box-shadow: 0 50px 110px -40px rgba(0, 0, 0, .85), inset 0 1px 0 rgba(255, 255, 255, .07);
  overflow: hidden;
}
/* Sheen: läuft nach dem Intro periodisch übers Glas */
.hdash::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 42%, rgba(255, 255, 255, .055) 50%, transparent 58%);
  transform: translateX(-130%);
}
.horbit.is-live .hdash::after { animation: hdashSheen 7.5s ease-in-out infinite; }
@keyframes hdashSheen {
  0% { transform: translateX(-130%); }
  38%, 100% { transform: translateX(130%); }
}
.hdash__top {
  display: flex; align-items: center; gap: 8px;
  height: 30px; padding: 0 10px;
  border-bottom: 1px solid rgba(242, 241, 234, .08);
}
.hdash__logo { width: 9px; height: 9px; border-radius: 50%; background: var(--lumiere); flex: none; }
.hdash__search { flex: 1; max-width: 42%; height: 10px; border-radius: 999px; background: rgba(242, 241, 234, .07); }
.hdash__avatar { width: 12px; height: 12px; border-radius: 50%; background: rgba(242, 241, 234, .18); margin-left: auto; }
.hdash__body { display: flex; height: calc(100% - 30px); }
.hdash__side {
  width: 30px; flex: none; padding: 9px 0;
  display: flex; flex-direction: column; align-items: center; gap: 9px;
  border-right: 1px solid rgba(242, 241, 234, .08);
}
.hdash__side i { width: 10px; height: 10px; border-radius: 3px; background: rgba(242, 241, 234, .1); }
.hdash__side i:first-child { background: rgba(11, 110, 240, .55); }
.hdash__grid {
  flex: 1; display: grid; gap: 7px; padding: 8px;
  grid-template-columns: 1.12fr 1fr 1fr 1fr;
  grid-template-rows: repeat(3, 1fr);
}
.hdash__slot { border: 1px dashed rgba(242, 241, 234, .07); border-radius: 10px; }
.hdash__slot:nth-child(1) { grid-area: 1 / 1 / 3 / 2; }
.hdash__slot:nth-child(2) { grid-area: 1 / 2; }
.hdash__slot:nth-child(3) { grid-area: 1 / 3; }
.hdash__slot:nth-child(4) { grid-area: 1 / 4; }
.hdash__slot:nth-child(5) { grid-area: 2 / 2 / 3 / 4; }
.hdash__slot:nth-child(6) { grid-area: 2 / 4; }
.hdash__slot:nth-child(7) { grid-area: 3 / 1; }
.hdash__slot:nth-child(8) { grid-area: 3 / 2; }
.hdash__slot:nth-child(9) { grid-area: 3 / 3; }
.hdash__slot:nth-child(10) { grid-area: 3 / 4; }

/* Werkzeug-Karten */
.hcard {
  position: absolute; left: 50%; top: 50%;
  width: 148px; height: 92px; /* main.js setzt exakte Slot-Maße */
  padding: 8px 9px;
  display: flex; flex-direction: column; gap: 5px;
  background: linear-gradient(180deg, rgba(22, 26, 46, .95), rgba(13, 15, 29, .95));
  border: 1px solid rgba(242, 241, 234, .13);
  border-radius: 10px;
  box-shadow: 0 22px 46px -18px rgba(0, 0, 0, .85), inset 0 1px 0 rgba(255, 255, 255, .07);
  overflow: hidden;
  will-change: transform, opacity;
}
.hcard header { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.hcard__label {
  font-family: var(--mono); font-size: 7px; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(242, 241, 234, .55);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hcard__badge {
  font-family: var(--mono); font-size: 6.5px; letter-spacing: .08em; text-transform: uppercase;
  padding: 2px 6px; border-radius: 999px;
  color: rgba(242, 241, 234, .6); background: rgba(242, 241, 234, .08);
}
.hcard__badge--aube { color: var(--aube); background: rgba(240, 160, 48, .14); }
.hcard__badge--lum { color: #6FA9F7; background: rgba(11, 110, 240, .18); }
.hcard__badge--ki { color: var(--clarte); background: rgba(11, 191, 176, .14); }
.hcard--ki { border-color: rgba(11, 191, 176, .3); }
.hcard__kihint { font-family: var(--mono); font-size: 6.5px; letter-spacing: .08em; color: rgba(11, 191, 176, .8); }
.hcard__stat { font-family: var(--mono); font-size: 15px; font-weight: 700; color: var(--offwhite); line-height: 1; }
.hcard__spark { width: 100%; height: 16px; margin-top: auto; }
.hcard__spark path { stroke: var(--aube); stroke-width: 1.4; fill: none; vector-effect: non-scaling-stroke; }
.hcard__bars { display: flex; align-items: flex-end; gap: 3px; flex: 1; margin-top: auto; }
.hcard__bars i { flex: 1; border-radius: 2px 2px 0 0; background: rgba(11, 110, 240, .55); }
.hcard__bars i:nth-child(6) { background: var(--lumiere); }
.hcard__lines { display: flex; flex-direction: column; gap: 5px; }
.hcard__lines b { height: 5px; border-radius: 999px; background: rgba(242, 241, 234, .12); }
.hcard__apt { display: flex; align-items: center; gap: 5px; flex: 1; min-height: 0; }
.hcard__apt em { font-family: var(--mono); font-style: normal; font-size: 6.5px; color: rgba(242, 241, 234, .45); flex: none; }
.hcard__apt b { height: 5px; border-radius: 999px; background: rgba(242, 241, 234, .12); }
.hcard__apt i, .hcard__check i { width: 5px; height: 5px; border-radius: 50%; background: rgba(242, 241, 234, .18); flex: none; margin-left: auto; }
.hcard__apt i.ok, .hcard__check i.ok { background: var(--lumiere); margin-left: 0; }
.hcard__apt i.ok { margin-left: auto; }
.hcard__apt i.warn, .hcard__check i.warn { background: var(--aube); margin-left: 0; }
.hcard__apt i.warn { margin-left: auto; }
.hcard__check { display: flex; align-items: center; gap: 5px; }
.hcard__check b { height: 5px; border-radius: 999px; background: rgba(242, 241, 234, .12); flex: 1; }
.hcard__chat { display: flex; flex-direction: column; gap: 4px; }
.hcard__bubble { height: 9px; border-radius: 6px 6px 6px 2px; background: rgba(242, 241, 234, .1); }
.hcard__bubble--me { align-self: flex-end; border-radius: 6px 6px 2px 6px; background: rgba(11, 110, 240, .5); }
.hcard__tel { display: flex; align-items: baseline; gap: 5px; }
.hcard__tel em { font-family: var(--mono); font-style: normal; font-size: 11px; font-weight: 700; color: var(--offwhite); }
.hcard__tel span { font-family: var(--mono); font-size: 6.5px; letter-spacing: .08em; text-transform: uppercase; color: rgba(242, 241, 234, .4); }
.hcard__progress { height: 5px; border-radius: 999px; background: rgba(242, 241, 234, .1); overflow: hidden; }
.hcard__progress b { display: block; height: 100%; border-radius: 999px; background: var(--lumiere); }
.hcard__foot, .hcard__kihint { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hcard__foot { font-family: var(--mono); font-size: 6.5px; letter-spacing: .06em; color: rgba(242, 241, 234, .35); }

body:not(.js) .hcards { display: none; }
@media (max-width: 979px) {
  .horbit { left: 50%; top: 50%; width: min(92vw, 560px); }
  .hero__scene { opacity: .22; }
  /* Dunkles Cockpit auf Paper wirkt als Grau-Schleier über der Headline —
     im Light Mode nur als zarter Hauch hinter dem Text lassen. */
  html[data-theme="light"] .hero__scene { opacity: .1; }
}
.hero__grid {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(242,241,234,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242,241,234,.045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 75% 65% at 50% 45%, black 25%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 45%, black 25%, transparent 75%);
}
.hero__content { position: relative; z-index: 2; max-width: var(--max); margin: 0 auto; width: 100%; }
.hero__h1 {
  font-size: clamp(2.4rem, 5.4vw, 4.6rem);
  font-weight: 600; line-height: 1.08; letter-spacing: -.025em;
  margin: 22px 0 24px;
}
.h1-mask { display: block; overflow: hidden; }
.h1-row { display: block; }
.hero__h1 .serif { font-size: 1.05em; letter-spacing: -.01em; }
/* Pilot: Serif-Zeile deutlich kleiner, damit sie VOR dem Strudel endet
   (Begleitung = .hero--lite behält die große Serif-Zeile) */
.hero:not(.hero--lite) .hero__h1 .serif { font-size: .72em; }
.hero__sub { color: var(--muted); max-width: 52ch; font-size: 1.08rem; margin-bottom: 32px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 16px; }
/* Trust-Zeile: im Pilot in die CTA-Sektion gewandert, hier nur noch von der
   Begleitung (.hero--lite) im Hero genutzt */
.hero__trust { color: var(--faint); margin-top: 22px; }

.hero__scrollhint {
  position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--faint); z-index: 2;
}
.hero__scrollline { position: relative; width: 1px; height: 44px; background: var(--line); overflow: hidden; }
.hero__scrollline i { position: absolute; left: 0; top: -40%; width: 100%; height: 40%; background: var(--aube); animation: scrolldrop 1.8s cubic-bezier(.65,0,.35,1) infinite; }
@keyframes scrolldrop { 0% { top: -40%; } 100% { top: 110%; } }

/* ── Cards ──────────────────────────────────────────────── */
.card {
  position: relative; background: var(--void-2);
  border: 1px solid var(--line); border-radius: 18px;
  padding: 30px 28px;
  transition: border-color .4s, transform .4s, background-color .4s;
}
.section--lifted .card { background: var(--void-3); }
.card:hover { border-color: var(--line-strong); }
.card h3 { font-weight: 600; font-size: 1.18rem; margin-bottom: 10px; letter-spacing: -.01em; }
.card p { color: var(--muted); font-size: .96rem; }
.card__tag { display: block; color: var(--faint); margin-bottom: 18px; }
.card__tag--aube { color: var(--aube); }
.card__body { margin-top: 4px; }
.card__cross { position: absolute; top: 24px; right: 26px; color: var(--line-strong); font-weight: 300; font-size: 1.1rem; }

.symptoms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 56px; }
@media (max-width: 900px) { .symptoms { grid-template-columns: 1fr; } }

/* ── Befund (S02) ───────────────────────────────────────── */
.big-par { font-size: clamp(1.15rem, 2.1vw, 1.5rem); font-weight: 300; line-height: 1.55; color: var(--offwhite); max-width: 56ch; margin-bottom: 36px; }
.big-par + .big-par { color: var(--muted); }
.breaks { margin: 26px 0 50px; }
.breaks svg { width: 100%; height: auto; display: block; }
.breaks__nodes circle { fill: var(--void); stroke: rgba(242, 241, 234, .55); stroke-width: 1.5; }
.breaks__nodes text { fill: var(--muted); font-size: 12px; letter-spacing: .12em; text-anchor: middle; text-transform: uppercase; font-family: var(--mono); }
.breaks__marks text { fill: var(--aube); font-size: 17px; text-anchor: middle; font-family: var(--mono); }
.breaks figcaption { margin-top: 14px; color: var(--faint); }

/* ── Marquee ────────────────────────────────────────────── */
.marquee { padding: 64px 0; border-block: 1px solid var(--line); overflow: hidden; display: grid; gap: 18px; }
.marquee__row { white-space: nowrap; }
.marquee__track { display: inline-flex; will-change: transform; }
.marquee__row--serif { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(2.4rem, 6vw, 4.6rem); color: var(--offwhite); opacity: .9; }
.marquee__row--mono { color: var(--faint); font-size: .78rem; }

/* ── Therapie / Dashboard ───────────────────────────────── */
.therapie__grid { display: grid; grid-template-columns: minmax(300px, 5fr) 7fr; gap: clamp(32px, 5vw, 72px); align-items: center; margin-top: 56px; }
@media (max-width: 980px) { .therapie__grid { grid-template-columns: 1fr; } }

.points { list-style: none; display: grid; gap: 26px; }
.points li { display: flex; gap: 16px; color: var(--muted); font-size: .98rem; }
.points strong { color: var(--offwhite); font-weight: 500; }
.points__dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--lumiere); margin-top: 9px; }
.points__note { align-items: center; padding-top: 10px; }

/* ── KI-Highlight — Clarté ausschließlich hier ──────────── */
.ki-capsule {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 12px 22px; border-radius: 999px;
  border: 1px solid rgba(11, 191, 176, .45);
  background: rgba(11, 191, 176, .07);
  color: var(--clarte); font-family: var(--sans); font-weight: 500; font-size: .98rem;
  box-shadow: 0 0 32px -8px rgba(11, 191, 176, .45), inset 0 0 18px -12px rgba(11, 191, 176, .5);
}
.ki-capsule__dot {
  flex: none; width: 7px; height: 7px; border-radius: 50%;
  background: var(--clarte); box-shadow: 0 0 12px rgba(11, 191, 176, .9);
  animation: pulse 2.2s ease-in-out infinite;
}

.ki-band { position: relative; text-align: center; padding: clamp(100px, 15vh, 170px) var(--pad); overflow: hidden; }
.ki-band__glow {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(860px, 92vw); height: 360px; pointer-events: none;
  background: radial-gradient(ellipse, rgba(11, 191, 176, .11), transparent 65%);
}
.ki-band__eyebrow {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  color: var(--clarte); margin-bottom: 28px;
}
.ki-band__line {
  position: relative; font-size: clamp(2rem, 4.8vw, 3.8rem);
  line-height: 1.22; max-width: 22ch; margin: 0 auto; color: var(--offwhite);
}
.ki-band__line em { color: var(--clarte); text-shadow: 0 0 36px rgba(11, 191, 176, .45); }

.dash { perspective: 1400px; }
.dash__frame {
  position: relative; border: 1px solid var(--line-strong); border-radius: 20px;
  background: linear-gradient(160deg, var(--void-3), var(--void-2));
  box-shadow: 0 40px 120px -40px rgba(0, 0, 0, .8), 0 0 0 1px rgba(11, 110, 240, .06);
  overflow: hidden; transform-style: preserve-3d;
}
.dash__topbar { display: flex; align-items: center; gap: 16px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.dash__dots { display: flex; gap: 6px; }
.dash__dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); }
.dash__practice { color: var(--muted); }
.dash__lumiere { margin-left: auto; width: 9px; height: 9px; border-radius: 50%; background: var(--lumiere); box-shadow: 0 0 14px rgba(11, 110, 240, .9); }
.dash__body { display: grid; grid-template-columns: 56px 1fr; min-height: 340px; }
.dash__side { display: flex; flex-direction: column; gap: 14px; padding: 20px 0; border-right: 1px solid var(--line); align-items: center; }
.dash__sideitem { width: 22px; height: 22px; border-radius: 7px; background: var(--line); }
.dash__sideitem--active { background: rgba(11, 110, 240, .55); }
.dash__main { padding: 22px 24px; }
.dash__label { color: var(--faint); margin-bottom: 16px; }
.dash__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dash__card { border: 1px solid var(--line); border-radius: 12px; padding: 16px; background: rgba(242, 241, 234, .02); }
.dash__cardtitle { font-weight: 500; font-size: .95rem; margin-bottom: 2px; }
.dash__cardsub { color: var(--faint); margin-bottom: 12px; font-size: .62rem; }
.chip { display: inline-block; font-size: .6rem; padding: 4px 10px; border-radius: 999px; border: 1px solid; }
.chip--ok { color: var(--lumiere); border-color: rgba(11, 110, 240, .45); background: rgba(11, 110, 240, .08); }
.chip--open { color: var(--aube); border-color: rgba(240, 160, 48, .45); background: rgba(240, 160, 48, .08); }
.chip--aube { color: #08080F; border-color: var(--aube); background: var(--aube); font-weight: 700; }
.dash__hint { display: flex; align-items: center; gap: 12px; margin-top: 14px; border: 1px dashed rgba(240, 160, 48, .4); border-radius: 12px; padding: 13px 16px; background: rgba(240, 160, 48, .05); }
.dash__hint p { font-size: .86rem; color: var(--offwhite); }
.dash__hint .mono { color: var(--aube); }
.dash__hintdot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--aube); animation: pulse 2s infinite; }
.dash__scan {
  position: absolute; top: 0; bottom: 0; width: 60px; left: -80px;
  background: linear-gradient(90deg, transparent, rgba(240, 160, 48, .14), transparent);
  pointer-events: none;
}

/* ── Tag 1 (S03) ────────────────────────────────────────── */
.cols3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 56px; }
@media (max-width: 900px) { .cols3 { grid-template-columns: 1fr; } }
.ticklist { list-style: none; display: grid; gap: 12px; }
.ticklist li { position: relative; padding-left: 26px; color: var(--offwhite); font-size: .98rem; font-weight: 400; }
.ticklist li::before { content: "+"; position: absolute; left: 0; top: -1px; color: var(--aube); font-family: var(--mono); }
.ticklist--soft li { color: var(--muted); }
.ticklist--soft li::before { color: var(--faint); }

/* ── Behandlungsplan (S04) ──────────────────────────────── */
.plan { display: grid; grid-template-columns: 80px 1fr; gap: clamp(24px, 4vw, 64px); margin-top: 64px; }
.plan__scale { position: sticky; top: 0; align-self: start; height: 100vh; display: none; }
@media (min-width: 900px) { .plan__scale { display: block; } }
.plan__scale::before { content: ""; position: absolute; left: 8px; top: 18vh; bottom: 18vh; width: 1px; background: var(--line); }
.plan__fill { position: absolute; left: 8px; top: 18vh; width: 1px; height: 0; max-height: 64vh; background: var(--aube); }
.plan__tick { position: absolute; left: 0; display: flex; align-items: center; gap: 14px; }
.plan__tick i { width: 17px; height: 1px; background: var(--line-strong); display: block; transition: background-color .3s; }
.plan__tick b { color: var(--faint); font-weight: 400; transition: color .3s; }
.plan__tick[data-tick="1"] { top: 18vh; } .plan__tick[data-tick="2"] { top: 34vh; }
.plan__tick[data-tick="3"] { top: 50vh; } .plan__tick[data-tick="4"] { top: 66vh; }
.plan__tick[data-tick="5"] { top: 82vh; }
.plan__tick.is-active i { background: var(--aube); }
.plan__tick.is-active b { color: var(--aube); }

.plan__steps { list-style: none; display: grid; gap: clamp(36px, 6vh, 72px); }
.plan__step { border-top: 1px solid var(--line); padding-top: 28px; max-width: 60ch; transition: opacity .4s; }
.plan__no { color: var(--faint); margin-bottom: 12px; transition: color .3s; }
.plan__step.is-active .plan__no { color: var(--aube); }
.plan__step h3 { font-size: clamp(1.3rem, 2.4vw, 1.8rem); font-weight: 600; letter-spacing: -.015em; margin-bottom: 10px; }
.plan__step p { color: var(--muted); }

/* ── Pilot (S05) ────────────────────────────────────────── */
.pilot__grid { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(36px, 6vw, 90px); align-items: start; }
@media (max-width: 980px) { .pilot__grid { grid-template-columns: 1fr; } }
.pilot__counter { color: var(--muted); margin: 18px 0 44px; }
.pilot__counter em { font-style: normal; color: var(--aube); font-size: 1.1rem; }
.pilot__wishtitle { font-weight: 500; font-size: 1.05rem; margin-bottom: 18px; }
.wishlist { list-style: none; display: grid; gap: 14px; }
.wishlist li { position: relative; padding-left: 28px; color: var(--muted); font-size: .96rem; }
.wishlist li::before { content: "+"; position: absolute; left: 0; color: var(--aube); font-family: var(--mono); }

/* Pilot-Dokument — bewusst hell: ein Dokument im dunklen Raum */
.doc {
  background: var(--paper); color: var(--ink);
  border-radius: 18px; padding: 34px 32px 28px;
  box-shadow: 0 50px 120px -30px rgba(0, 0, 0, .85);
  position: sticky; top: 96px;
}
.doc__head { display: flex; justify-content: space-between; color: rgba(18, 18, 26, .55); margin-bottom: 30px; }
.doc__id { color: var(--lumiere); }
.doc__price { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.doc__old { color: rgba(18, 18, 26, .4); font-size: .95rem; }
.doc__new { font-size: clamp(2.6rem, 4vw, 3.4rem); font-weight: 700; letter-spacing: -.03em; font-family: var(--sans); }
.doc__incl { color: rgba(18, 18, 26, .55); margin-top: 6px; }
.doc__sep { height: 1px; background: rgba(18, 18, 26, .12); margin: 26px 0; }
.doc__list { list-style: none; display: grid; gap: 10px; color: rgba(18, 18, 26, .7); margin-bottom: 28px; }
.doc__list li { position: relative; padding-left: 20px; }
.doc__list li::before { content: "·"; position: absolute; left: 4px; color: var(--aube); }
.doc__foot { margin-top: 16px; color: rgba(18, 18, 26, .45); text-align: center; font-size: .6rem; }

/* ── Sicherheit (S06, Pin) ──────────────────────────────── */
.section--pin { padding-bottom: 0; }
@media (min-width: 900px) {
  .section--pin { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding-top: clamp(70px, 9vh, 110px); }
  .pin__head.container { width: 100%; }
}
.pin__head { margin-bottom: 24px; }
.pin__progress { width: min(420px, 60%); height: 1px; background: var(--line); margin-top: 26px; }
.pin__progress span { display: block; height: 100%; width: 100%; background: var(--aube); transform: scaleX(0); transform-origin: 0 50%; will-change: transform; }
.pin__viewport { overflow: hidden; display: flex; align-items: center; }
.pin__track { display: flex; gap: 22px; align-items: stretch; padding: 6vh var(--pad) 14vh; width: max-content; }
.pin__card { width: min(400px, 78vw); min-height: 360px; padding: 38px 34px; flex: none; display: flex; flex-direction: column; gap: 4px; }
.pin__card h3 { margin-top: auto; font-size: 1.5rem; }
.pin__card p { font-size: 1.02rem; }
.pin__card .card__tag { margin-bottom: 48px; }
.pin__closing { flex: none; align-self: center; font-size: clamp(1.8rem, 3.4vw, 2.8rem); padding-inline: 6vw; color: var(--offwhite); }
@media (max-width: 899px) {
  .pin__track { flex-direction: column; width: auto; }
  .pin__card { width: 100%; }
  .pin__closing { padding: 30px 0; }
}

/* ── Final CTA ──────────────────────────────────────────── */
.cta { position: relative; padding: clamp(120px, 18vh, 200px) 0; overflow: hidden; text-align: center; }
.cta__glow {
  position: absolute; left: 50%; bottom: -240px; transform: translateX(-50%);
  width: 720px; height: 480px; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(240, 160, 48, .14), transparent 65%);
  pointer-events: none;
}
.cta__inner { position: relative; display: grid; justify-items: center; gap: 8px; }
.cta__h2 { font-size: clamp(2.4rem, 6vw, 4.6rem); font-weight: 600; line-height: 1.1; letter-spacing: -.025em; margin: 20px 0 16px; }
.cta__row { display: flex; flex-direction: column; align-items: center; gap: 22px; margin-top: 30px; }
.cta__mail { color: var(--muted); text-decoration: none; transition: color .3s; }
.cta__mail:hover { color: var(--offwhite); }
.cta__trust { color: var(--faint); margin-top: 20px; }

/* ── Cross-Modul (Begleitung ↔ Pilot, Block 3) ──────────── */
.crossmod { border-top: 1px solid var(--line); padding: clamp(48px, 8vh, 84px) 0; background: var(--void-2); }
.crossmod__inner { display: grid; gap: 16px; justify-items: start; }
.crossmod__eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); }
.crossmod__text { font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 300; line-height: 1.45; max-width: 46ch; color: var(--offwhite); }
.crossmod__text .serif { color: var(--offwhite); }
.crossmod__meta { color: var(--faint); font-size: .64rem; line-height: 1.9; max-width: 54ch; }
.crossmod__link {
  display: inline-flex; align-items: center; color: var(--lumiere);
  text-decoration: none; padding-bottom: 3px; border-bottom: 1px solid transparent;
  transition: border-color .3s, gap .3s;
}
.crossmod__link:hover { border-color: var(--lumiere); }

/* ── Footer ─────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--line); padding: 64px 0; }
.footer__inner { display: grid; gap: 18px; justify-items: start; }
.footer__logo { height: 18px; }
.footer__claim { font-size: clamp(1.4rem, 2.6vw, 2rem); color: var(--offwhite); }
.footer__legal { color: var(--faint); }
.footer__legal a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--line); transition: color .2s ease, border-color .2s ease; }
.footer__legal a:hover { color: var(--offwhite); border-bottom-color: currentColor; }

/* ── Reveal-Grundzustände (JS setzt sie aktiv) ──────────── */
.js [data-reveal] { opacity: 0; transform: translateY(28px); }
.js [data-wisch] { opacity: 0; }
.js .hero__sub, .js .hero__cta, .js .hero .eyebrow { opacity: 0; transform: translateY(24px); }
.js .hdash { opacity: 0; }

/* ── Light-Mode-Sonderfälle ─────────────────────────────── */

/* Dashboard-Mockup bleibt dunkel — es zeigt die echte Produkt-UI.
   Theme-Insel: lokale Variablen überschreiben die Light-Werte. */
html[data-theme="light"] .dash {
  --void-2: #0C0D17; --void-3: #10121F;
  --offwhite: #F2F1EA;
  --muted: rgba(242, 241, 234, .56);
  --faint: rgba(242, 241, 234, .32);
  --line: rgba(242, 241, 234, .10);
  --line-strong: rgba(242, 241, 234, .18);
  color: #F2F1EA;
}
html[data-theme="light"] .dash__frame { box-shadow: 0 40px 90px -36px rgba(18, 18, 26, .5); }
html[data-theme="light"] .dash__card { background: rgba(242, 241, 234, .03); }

/* Pilot-Dokument invertiert: im Dark Mode der helle Moment,
   im Light Mode der dunkle. */
html[data-theme="light"] .doc { background: #0C0D17; color: #F2F1EA; box-shadow: 0 40px 90px -30px rgba(18, 18, 26, .45); }
html[data-theme="light"] .doc__head { color: rgba(242, 241, 234, .55); }
html[data-theme="light"] .doc__head .doc__id { color: #5E9DF5; }
html[data-theme="light"] .doc__old { color: rgba(242, 241, 234, .4); }
html[data-theme="light"] .doc__incl { color: rgba(242, 241, 234, .55); }
html[data-theme="light"] .doc__sep { background: rgba(242, 241, 234, .14); }
html[data-theme="light"] .doc__list { color: rgba(242, 241, 234, .7); }
html[data-theme="light"] .doc__foot { color: rgba(242, 241, 234, .45); }

/* Strudel: Karten + Dashboard sind Theme-Insel (bleiben dunkel);
   nur Spuren und Glow werden für Paper-Grund nachjustiert. */
html[data-theme="light"] .horbit__glow { background: radial-gradient(ellipse at 50% 50%, rgba(11, 110, 240, .09), transparent 62%); }
html[data-theme="light"] .horbit__ring { stroke: rgba(11, 94, 204, .3); }
html[data-theme="light"] .horbit__ring--faint { stroke: rgba(18, 18, 26, .12); }
html[data-theme="light"] .horbit__path { border-color: rgba(11, 94, 204, .35); }
html[data-theme="light"] .hdash { box-shadow: 0 50px 110px -44px rgba(18, 18, 26, .55), inset 0 1px 0 rgba(255, 255, 255, .07); }
html[data-theme="light"] .hcard { box-shadow: 0 22px 46px -20px rgba(18, 18, 26, .5), inset 0 1px 0 rgba(255, 255, 255, .07); }

/* Hero: Raster & Cursor auf Ink-Basis */
html[data-theme="light"] .hero__grid {
  background-image:
    linear-gradient(rgba(18, 18, 26, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 18, 26, .055) 1px, transparent 1px);
}
html[data-theme="light"] .cursor__ring { border-color: rgba(18, 18, 26, .4); }
html[data-theme="light"] .cursor__tick { background: rgba(18, 18, 26, .5); }

/* Befund-Diagramm */
#breaksPath { stroke: rgba(242, 241, 234, .25); }
html[data-theme="light"] #breaksPath { stroke: rgba(18, 18, 26, .3); }
html[data-theme="light"] .breaks__nodes circle { stroke: rgba(18, 18, 26, .55); }

/* Clarté-Texte brauchen auf Hell eine dunklere Stufe (Kontrast) */
html[data-theme="light"] .ki-capsule { color: #07776F; border-color: rgba(8, 132, 123, .5); background: rgba(11, 191, 176, .10); box-shadow: 0 0 28px -10px rgba(11, 191, 176, .5); }
html[data-theme="light"] .ki-band__eyebrow { color: #08847B; }
/* Auf Paper trägt die dunklere Clarté-Schrift den Akzent selbst — der
   weiche Glow-Schleier smudgt sonst nur. Halo auf einen Hauch reduziert. */
html[data-theme="light"] .ki-band__line em { color: #07776F; text-shadow: none; }
html[data-theme="light"] .ki-band__glow { background: radial-gradient(ellipse, rgba(11, 191, 176, .05), transparent 62%); }

/* Glows/Schatten dezenter auf Hell */
html[data-theme="light"] .cta__glow { background: radial-gradient(ellipse, rgba(240, 160, 48, .18), transparent 65%); }
html[data-theme="light"] ::selection { background: rgba(11, 110, 240, .22); color: #14141C; }

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal], .js [data-wisch],
  .js .hero__sub, .js .hero__cta, .js .hero .eyebrow { opacity: 1 !important; transform: none !important; }
  .js .hdash { opacity: 1 !important; }
  .horbit__path, .horbit.is-live .hdash::after { animation: none !important; }
  .horbit__path::after { display: none; }
  .hero__scrollline i, .eyebrow__dot--aube, .dash__hintdot { animation: none !important; }
}
