/* Next Software – Vergleichsversion nach den Apple Human Interface Guidelines
   (Skill „apple-design“). Hell und dunkel nach Systemeinstellung, eine Farbe = eine Bedeutung:
   Grün = KI, Gold = Mensch/Freigabe, neutral = Aktion. Begründung: docs/apple-design-review.md */

@font-face {
  font-family: "Instrument Sans";
  src: url("InstrumentSans-Variable.woff2") format("woff2");
  font-weight: 400 700;
  font-stretch: 75% 100%;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --bg: #FBFBFD;
  --bg-2: #F2F2F5;
  --surface: #FFFFFF;
  --surface-2: #F5F5F7;
  --label: #1D1D1F;
  --label-2: #5B5B63;
  --sep: rgba(29, 29, 31, .12);
  --sep-strong: rgba(29, 29, 31, .24);
  --fill: rgba(118, 118, 128, .12);

  --ki: #1E7A47;
  --ki-strong: #1E7A47;
  --ki-soft: rgba(30, 122, 71, .09);
  --ki-line: rgba(30, 122, 71, .35);
  --human: #8A5D00;
  --human-fill: #F2C94C;
  --human-soft: #FDF3D6;
  --human-line: rgba(176, 125, 0, .4);
  --on-human: #1D1D1F;

  --action: #1D1D1F;
  --on-action: #FFFFFF;
  --error: #C4161C;
  --error-soft: #FDECEC;

  --shadow-card: 0 1px 2px rgba(0, 0, 0, .04), 0 8px 24px rgba(0, 0, 0, .06);
  --shadow-lift: 0 2px 6px rgba(0, 0, 0, .06), 0 18px 40px rgba(0, 0, 0, .10);
  --glass: rgba(251, 251, 253, .72);
  --radius: 20px;
  --radius-sm: 12px;
  --header-h: 64px;
  --ease: cubic-bezier(.25, .1, .25, 1);
  --font-ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Instrument Sans", -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #081226;
    --bg-2: #0E1D3A;
    --surface: #13254A;
    --surface-2: #0E1D3A;
    --label: #F5F5F7;
    --label-2: #A9B1C2;
    --sep: rgba(245, 245, 247, .12);
    --sep-strong: rgba(245, 245, 247, .26);
    --fill: rgba(120, 130, 160, .2);

    --ki: #4CDE80;
    --ki-strong: #4CDE80;
    --ki-soft: rgba(76, 222, 128, .1);
    --ki-line: rgba(76, 222, 128, .4);
    --human: #F2C94C;
    --human-fill: #F2C94C;
    --human-soft: rgba(242, 201, 76, .12);
    --human-line: rgba(242, 201, 76, .45);
    --on-human: #081226;

    --action: #F5F5F7;
    --on-action: #081226;
    --error: #FF6B6B;
    --error-soft: rgba(255, 107, 107, .12);

    --shadow-card: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    --shadow-lift: 0 2px 6px rgba(0, 0, 0, .35), 0 18px 40px rgba(0, 0, 0, .35);
    --glass: rgba(8, 18, 38, .68);
  }
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font-ui); font-size: 17px; line-height: 1.53; letter-spacing: -.01em;
  color: var(--label); background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
body.nav-open { overflow: hidden; }
img, svg, video { display: block; max-width: 100%; }
h1, h2, h3, h4 { margin: 0; color: var(--label); text-wrap: balance; }
h1, h2 { font-family: var(--font-display); font-weight: 650; letter-spacing: -.03em; line-height: 1.06; }
h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
h3 { font-size: 1.24rem; font-weight: 600; letter-spacing: -.015em; line-height: 1.25; }
h4 { font-size: 1.1rem; font-weight: 600; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
[hidden] { display: none !important; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .wrap { padding: 0 40px; } }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.nowrap { white-space: nowrap; }
.center { text-align: center; }
.muted { color: var(--label-2); }
.stars { display: none; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--action); color: var(--on-action); font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--ki); outline-offset: 3px; border-radius: 6px; }

.i { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.i-lg { width: 28px; height: 28px; }
.i-xl { width: 52px; height: 52px; }

/* ---------- Buttons: eine neutrale Hauptaktion, keine Markenfarbe auf Bedienelementen ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 24px; border: 0; border-radius: 999px;
  font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: transform .15s var(--ease), background-color .2s, opacity .2s;
}
.btn .i { width: 18px; height: 18px; stroke-width: 2; }
.btn:active { transform: scale(.98); }
.btn-primary, .btn-ink { background: var(--action); color: var(--on-action); }
.btn-primary:hover, .btn-ink:hover { opacity: .86; }
.btn-ghost { background: var(--fill); color: var(--label); }
.btn-ghost:hover { background: var(--sep-strong); }
.btn-sm { min-height: 36px; padding: 6px 16px; font-size: .9rem; }
.btn-block { width: 100%; }
.text-link { display: inline-flex; align-items: center; gap: 6px; color: var(--label); font-weight: 600; text-decoration: underline; text-decoration-color: var(--sep-strong); text-underline-offset: 4px; }
.text-link:hover { text-decoration-color: currentColor; }
.text-link .i { width: 18px; height: 18px; }

/* ---------- Eyebrow, Intro ---------- */
.eyebrow { display: block; margin-bottom: 12px; font-size: 1.05rem; font-weight: 600; color: var(--label-2); letter-spacing: -.01em; }
.eyebrow-dark { color: var(--label-2); }
.intro { margin-top: 16px; max-width: 58ch; font-size: 1.2rem; line-height: 1.5; color: var(--label-2); }
.lead { margin-top: 20px; max-width: 46ch; font-size: clamp(1.15rem, 1.8vw, 1.4rem); line-height: 1.45; color: var(--label-2); }
.dark .intro, .dark .lead { color: var(--label-2); }
.micro { margin-top: 14px; font-size: .9rem; color: var(--label-2); }

/* ---------- Header: einzige Glasfläche (Funktionsebene) ---------- */
.site-header { position: sticky; top: 0; z-index: 50; padding: 10px 12px 0; pointer-events: none; }
.header-inner {
  pointer-events: auto; max-width: 1080px; height: 52px; padding: 0 8px 0 18px; border-radius: 999px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--glass); border: 1px solid var(--sep);
  -webkit-backdrop-filter: saturate(1.4) blur(24px); backdrop-filter: saturate(1.4) blur(24px);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .header-inner { background: var(--bg); } }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 1.02rem; text-decoration: none; color: var(--label); }
.logo-mark { width: 34px; height: 20px; }
.logo-mark path { stroke: var(--ki); stroke-width: 2; stroke-linecap: round; opacity: .5; }
.logo-mark circle { fill: var(--ki); }
.logo-mark rect { fill: var(--human-fill); }
.main-nav ul { display: flex; gap: 4px; }
.main-nav ul a { display: block; padding: 8px 12px; border-radius: 999px; text-decoration: none; font-size: .92rem; font-weight: 500; color: var(--label-2); transition: background-color .15s, color .15s; }
.main-nav ul a:hover { color: var(--label); background: var(--fill); }
.main-nav a[aria-current="page"] { color: var(--label); background: var(--fill); }
.nav-toggle { display: none; }
@media (min-width: 1024px) { .main-nav { display: flex; align-items: center; gap: 12px; } }
@media (max-width: 1023.98px) {
  .nav-toggle { display: inline-grid; place-items: center; position: relative; z-index: 60; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--label); transition: transform .2s var(--ease); }
  .nav-toggle-bars { position: relative; }
  .nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bars::before { top: -6px; } .nav-toggle-bars::after { top: 6px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }
  .main-nav { position: fixed; inset: 0; z-index: 55; display: none; flex-direction: column; justify-content: center; gap: 28px; padding: 96px 28px 40px; background: var(--bg); pointer-events: auto; }
  .site-header.nav-is-open .main-nav { display: flex; }
  .main-nav ul { flex-direction: column; gap: 2px; }
  .main-nav ul a { font-size: 1.7rem; font-weight: 600; color: var(--label); padding: 10px 0; letter-spacing: -.02em; border-radius: 0; background: none; }
  .nav-cta { align-self: flex-start; }
}

/* ---------- Flächen ---------- */
.section { padding: clamp(80px, 11vw, 140px) 0; }
.paper { background: var(--bg); }
.dark { background: var(--bg-2); color: var(--label); }
.paper + .paper { padding-top: 0; }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 64px); }
.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-card); }
.dark .card { box-shadow: none; }

/* ---------- Hero ---------- */
.hero { margin-top: calc(-1 * (var(--header-h) - 2px)); padding: calc(var(--header-h) + clamp(48px, 8vw, 104px)) 0 clamp(48px, 6vw, 72px); background: var(--bg); }
.hero-copy { max-width: 900px; margin: 0 auto; text-align: center; }
.hero .eyebrow { color: var(--ki); }
.hero h1 { font-size: clamp(2.6rem, 8vw, 6rem); line-height: 1; letter-spacing: -.04em; font-weight: 650; }
.hero h1 .nowrap { color: inherit; }
.hero .lead { margin-left: auto; margin-right: auto; max-width: 50ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero .cta-row { justify-content: center; }
.hero .micro { max-width: 52ch; margin-left: auto; margin-right: auto; }
.belt-figure { margin: clamp(48px, 7vw, 80px) 0 0; padding: clamp(16px, 2.4vw, 28px); border-radius: 28px; background: var(--surface); box-shadow: var(--shadow-lift); }

/* Diagramm: Grün = KI, Gold = Mensch */
.belt { width: 100%; height: auto; overflow: visible; }
.belt-h { display: none; }
@media (min-width: 1000px) { .belt-h { display: block; } .belt-v { display: none; } }
.belt-v { max-width: 420px; margin: 0 auto; }
.belt text { font-family: var(--font-ui); }
.lane { stroke-width: 1; }
.lane-ki { fill: var(--ki-soft); stroke: var(--ki-line); }
.lane-human { fill: var(--human-soft); stroke: var(--human-line); }
.lane-label { font-size: 13px; font-weight: 700; letter-spacing: .08em; }
.lane-label-ki { fill: var(--ki); }
.lane-label-human { fill: var(--human); }
.lane-sub { fill: var(--label-2); font-size: 13.5px; font-weight: 500; }
.fan-frame { fill: none; stroke: var(--sep-strong); stroke-width: 1; stroke-dasharray: 4 5; }
.belt-track path { fill: none; stroke: var(--ki-line); stroke-width: 2; }
.belt-dots path { fill: none; stroke: var(--ki); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 0 22; animation: belt-dash 1.1s linear infinite; }
.back-track path { fill: none; stroke: var(--human-line); stroke-width: 1.5; stroke-dasharray: 3 5; }
.back-dots path { fill: none; stroke: var(--human-fill); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 0 20; animation: back-dash 1.6s linear infinite; }
.back-label { fill: var(--human); font-size: 12.5px; font-weight: 600; }
@keyframes belt-dash { to { stroke-dashoffset: -22; } }
@keyframes back-dash { to { stroke-dashoffset: -20; } }
.node rect { fill: var(--surface); stroke: var(--sep-strong); stroke-width: 1; }
.node text { fill: var(--label); font-size: 15.5px; font-weight: 600; text-anchor: middle; }
.chip text { font-size: 14px; font-weight: 500; }
.node-core rect { stroke: var(--ki); stroke-width: 2; }
.gate rect { fill: var(--human-soft); stroke: var(--human-fill); stroke-width: 2; }
.gate .gate-ico { fill: var(--human-fill); }
.gate .gate-tick { fill: none; stroke: var(--on-human); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.node-live rect { fill: var(--ki-soft); stroke: var(--ki); stroke-width: 2; }
.node .live-t { fill: var(--ki); font-size: 18px; font-weight: 700; }
.node .small-t { fill: var(--label-2); font-size: 13px; font-weight: 500; }
.tag rect { stroke: none; }
.tag-ki rect { fill: var(--ki); }
.tag-human rect { fill: var(--human-fill); }
.tag text { fill: var(--surface); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-anchor: middle; }
.tag-human text { fill: var(--on-human); }
.belt-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 36px; margin-top: 28px; }
.belt-legend li { display: flex; gap: 10px; align-items: flex-start; max-width: 440px; font-size: .98rem; color: var(--label-2); }
.belt-legend strong { color: var(--label); }
.legend-dot { width: 12px; height: 12px; flex: none; margin-top: 6px; border-radius: 50%; }
.legend-ki { background: var(--ki); }
.legend-human { background: var(--human-fill); }

/* ---------- Tools ---------- */
.tools { background: var(--bg); padding: 8px 0 72px; }
.tools-title { text-align: center; font-size: .95rem; color: var(--label-2); margin-bottom: 16px; padding: 0 20px; }
.marquee { display: flex; justify-content: center; padding: 0 20px; }
.marquee-track { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 900px; }
.marquee-track[aria-hidden="true"] { display: none; }
.marquee-track li { padding: 6px 14px; border-radius: 999px; background: var(--fill); font-size: .9rem; font-weight: 500; color: var(--label); }

/* ---------- Problem ---------- */
.pain-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .pain-grid { grid-template-columns: 1fr 1fr; } }
.pain { padding: 28px; }
.pain .i-lg { color: var(--label-2); margin-bottom: 16px; }
.pain h3 { margin-bottom: 8px; }
.pain p { color: var(--label-2); }
.punchline { margin-top: clamp(48px, 7vw, 72px); font-family: var(--font-display); font-size: clamp(1.6rem, 3.4vw, 2.5rem); font-weight: 650; letter-spacing: -.03em; line-height: 1.15; text-wrap: balance; }
mark { background: none; color: var(--label-2); }
.punchline mark { color: var(--label-2); }

/* ---------- Road ---------- */
.road-grid { display: grid; gap: 40px; }
.road-aside h2 { font-size: clamp(2rem, 3.6vw, 2.8rem); }
.principle-banner { margin-top: 24px; padding: 16px 18px; border-radius: var(--radius-sm); background: var(--human-soft); display: grid; gap: 4px; border-left: 4px solid var(--human-fill); }
.principle-banner strong { font-size: 1.08rem; }
.principle-banner span { color: var(--label-2); }
.road-progress { display: none; }
.stations { display: grid; gap: 16px; }
.station { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-card); padding: 26px; transition: box-shadow .3s, transform .3s var(--ease); }
.station-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.station-no { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--fill); font-weight: 600; font-size: .9rem; font-variant-numeric: tabular-nums; }
.station h3 { font-size: clamp(1.2rem, 2vw, 1.4rem); }
.badge { padding: 3px 10px; border-radius: 999px; background: var(--fill); font-size: .8rem; font-weight: 600; color: var(--label); }
.station dl { margin: 0; display: grid; gap: 12px; }
.station dl > div { display: grid; gap: 2px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--surface-2); }
.station dt { font-size: .82rem; font-weight: 600; color: var(--label-2); }
.station dd { margin: 0; }
.station dl > div:nth-child(1) { background: var(--ki-soft); }
.station dl > div:nth-child(1) dt { color: var(--ki); }
.station dl > div:nth-child(1) dt::before { content: "KI · "; }
.station dl > div:nth-child(2) { background: var(--human-soft); }
.station dl > div:nth-child(2) dt { color: var(--human); }
.station dl > div:nth-child(2) dt::before { content: "Mensch · "; }
.station dl { gap: 10px; }
.road-note { margin-top: 40px; max-width: 64ch; font-size: 1.1rem; color: var(--label-2); }
.road-more { margin-top: 16px; }
@media (min-width: 960px) {
  .road-grid { grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
  .road-aside { align-self: stretch; }
  .road-sticky { position: sticky; top: calc(var(--header-h) + 40px); }
  .road-progress { display: flex; align-items: center; gap: 16px; margin-top: 32px; }
  .road-count { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--label-2); min-width: 64px; }
  .road-bar { flex: 1; height: 4px; border-radius: 999px; background: var(--fill); overflow: hidden; }
  .road-bar span { display: block; height: 100%; width: calc(100% / 6); background: var(--label); transition: width .4s var(--ease); }
  .stations { gap: 20px; padding-bottom: 10vh; }
  .js .station.is-active { box-shadow: var(--shadow-lift); }
}

/* ---------- System ---------- */
.system-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .system-grid { grid-template-columns: 1.05fr .95fr; gap: 56px; } }
.loop { position: relative; width: min(100%, 480px); aspect-ratio: 1; margin: 0 auto; }
.loop-ring { position: absolute; inset: 0; width: 100%; height: 100%; }
.ring-track { fill: none; stroke: var(--sep-strong); stroke-width: 1.5; }
.ring-dots { fill: none; stroke: var(--ki); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 0 24; }
.spoke { stroke: var(--sep-strong); stroke-width: 1.5; stroke-dasharray: 3 6; }
.ring-arrow path { fill: none; stroke: var(--label-2); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.loop-node {
  position: absolute; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 8px;
  width: max-content; max-width: 210px; min-height: 44px; padding: 8px 14px 8px 8px; border: 0; border-radius: 999px;
  background: var(--surface); color: var(--label); box-shadow: var(--shadow-card);
  font-weight: 600; font-size: .95rem; line-height: 1.2; text-align: left; cursor: pointer; transition: box-shadow .2s, background-color .2s;
}
.loop-node b { display: inline-grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: 50%; background: var(--ki-soft); color: var(--ki); font-size: .85rem; }
.loop-node.gold b { background: var(--human-soft); color: var(--human); }
.loop-node:hover { box-shadow: var(--shadow-lift); }
.loop-node.is-active { background: var(--action); color: var(--on-action); }
.loop-node.is-active b { background: var(--on-action); color: var(--action); }
.pos-top { left: 50%; top: 14%; } .pos-right { left: 86%; top: 50%; } .pos-bottom { left: 50%; top: 86%; } .pos-left { left: 14%; top: 50%; }
.loop-center { left: 50%; top: 50%; width: 34%; aspect-ratio: 1; max-width: none !important; justify-content: center; text-align: center; padding: 8px; border-radius: 50%; font-size: clamp(.95rem, 2.2vw, 1.15rem); box-shadow: 0 0 0 1px var(--ki-line), var(--shadow-card); }
.loop-panel { padding: 28px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-card); min-height: 200px; }
.loop-hint { display: none; font-size: .9rem; color: var(--label-2); margin-bottom: 14px; }
.js .loop-hint { display: block; }
.loop-panel article + article { margin-top: 20px; }
.js .loop-panel article { display: none; margin: 0; }
.js .loop-panel article.is-active { display: block; animation: fade-up .3s var(--ease); }
.loop-panel h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: clamp(1.35rem, 2.4vw, 1.75rem); }
.step-no { display: inline-grid; place-items: center; min-width: 32px; height: 32px; padding: 0 8px; border-radius: 999px; background: var(--fill); font-size: .82rem; font-weight: 600; }
.loop-panel p { color: var(--label-2); font-size: 1.08rem; }
@keyframes fade-up { from { opacity: 0; transform: translateY(6px); } }
.tech-line { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--sep); }
.tech-line li { padding: 6px 14px; border-radius: 999px; background: var(--fill); font-size: .9rem; color: var(--label-2); }
@media (max-width: 520px) {
  .loop-node { font-size: .82rem; padding: 6px 10px 6px 6px; gap: 6px; max-width: 108px; min-height: 40px; }
  .loop-node b { width: 24px; height: 24px; font-size: .75rem; }
  .pos-right { left: 84%; } .pos-left { left: 16%; } .pos-top { top: 11%; } .pos-bottom { top: 89%; }
  .loop-center { width: 27%; font-size: .85rem; }
}

/* ---------- Freigabe ---------- */
.approval-grid { display: grid; gap: 40px; align-items: start; }
.approval { position: relative; isolation: isolate; }
@media (min-width: 1000px) { .approval-grid { grid-template-columns: 7fr 5fr; gap: 56px; } }
.chat { margin: 0; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-lift); overflow: hidden; }
.chat-bar { display: flex; align-items: center; gap: 14px; padding: 12px 18px; border-bottom: 1px solid var(--sep); }
.chat-dots { display: flex; gap: 6px; }
.chat-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--sep-strong); }
.chat-channel { font-weight: 600; font-size: .95rem; color: var(--label-2); }
.chat-body { padding: 22px; display: grid; gap: 20px; }
.msg { display: grid; grid-template-columns: 40px 1fr; gap: 12px; }
.avatar { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: .78rem; font-weight: 700; }
.avatar-bot { background: var(--ki-soft); }
.avatar-bot svg { width: 28px; height: 17px; }
.avatar-bot path { stroke: var(--ki); stroke-width: 2; opacity: .5; }
.avatar-bot circle { fill: var(--ki); }
.avatar-bot rect { fill: var(--human-fill); }
.avatar-you { background: var(--human-fill); color: var(--on-human); }
.msg-main { min-width: 0; }
.msg-main > p { margin-bottom: 8px; }
.msg-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.msg-badge { padding: 1px 8px; border-radius: 999px; background: var(--ki-soft); color: var(--ki); font-size: .75rem; font-weight: 700; }
.msg-badge-human { background: var(--human-soft); color: var(--human); }
.msg-time { font-size: .82rem; color: var(--label-2); }
.msg-card { margin: 4px 0 14px; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--surface-2); display: grid; gap: 6px; }
.msg-card div { display: grid; grid-template-columns: 96px 1fr; gap: 10px; font-size: .95rem; }
.msg-card dt { font-weight: 600; }
.msg-card dd { margin: 0; color: var(--label-2); }
.msg-card div:last-child dd { color: var(--label); font-weight: 600; }
.msg-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.msg-btn { min-height: 40px; padding: 8px 16px; border: 0; border-radius: 999px; background: var(--fill); font-weight: 600; font-size: .92rem; cursor: pointer; transition: opacity .15s, background-color .15s; }
.msg-btn:hover { background: var(--sep-strong); }
.msg-btn-ok { background: var(--action); color: var(--on-action); }
.msg-btn-ok:hover { background: var(--action); opacity: .86; }
.msg-btn[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--human-fill); }
.msg-btn:disabled:not([aria-pressed="true"]) { opacity: .4; cursor: default; }
.msg-reply { animation: fade-up .3s var(--ease); }
.msg-reset { margin-top: 4px; padding: 0; border: 0; background: none; color: var(--label); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.chat figcaption { padding: 12px 22px 16px; border-top: 1px solid var(--sep); font-size: .88rem; color: var(--label-2); }
@media (max-width: 520px) { .chat-body { padding: 16px; } .msg { grid-template-columns: 32px 1fr; gap: 10px; } .avatar { width: 32px; height: 32px; } .msg-card div { grid-template-columns: 1fr; gap: 0; } }
.never h3 { font-family: var(--font-display); font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 650; letter-spacing: -.02em; }
.never-intro { margin-top: 10px; color: var(--label-2); }
.never-list { display: grid; margin-top: 20px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-card); overflow: hidden; }
.never-list li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; padding: 14px 18px; border-bottom: 1px solid var(--sep); }
.never-list li:last-child { border-bottom: 0; }
.never-x { position: relative; width: 24px; height: 24px; border-radius: 50%; background: var(--fill); margin-top: 1px; }
.never-x::before, .never-x::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 2px; border-radius: 2px; background: var(--label-2); transform: translate(-50%, -50%) rotate(45deg); }
.never-x::after { transform: translate(-50%, -50%) rotate(-45deg); }

/* ---------- Prinzipien ---------- */
.principles { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.principle { padding: 26px 24px; }
.principle .i-lg { color: var(--label-2); margin-bottom: 16px; }
.principle h3 { margin-bottom: 8px; }
.principle p { color: var(--label-2); }
.principle-gold .i-lg { color: var(--human); }

/* ---------- Ablauf ---------- */
.checks { display: grid; gap: 8px; margin-top: 16px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks .i { color: var(--label-2); stroke-width: 2.2; margin-top: 2px; width: 20px; height: 20px; }
.checks-dark .i { color: var(--label-2); }
.phases { display: grid; gap: 16px; }
.phase { display: flex; flex-direction: column; padding: 28px; }
.phase-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.phase-no { font-family: var(--font-display); font-size: 1rem; font-weight: 650; color: var(--label-2); font-variant-numeric: tabular-nums; }
.phase-no::before { content: "Schritt "; }
.chips { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.chips li { padding: 3px 10px; border-radius: 999px; background: var(--fill); font-size: .8rem; font-weight: 600; white-space: nowrap; }
.chips .chip-green, .chips .chip-gold { background: var(--fill); }
.phase h3 { font-family: var(--font-display); font-size: clamp(1.45rem, 2.4vw, 1.8rem); font-weight: 650; letter-spacing: -.02em; margin-bottom: 8px; }
.phase > p:not(.phase-label):not(.phase-foot):not(.phase-alt) { color: var(--label-2); }
.phase-alt { margin: -2px 0 10px; font-size: .95rem; font-weight: 600; color: var(--label-2); }
.phase-label { margin-top: 22px; font-size: .85rem; font-weight: 600; color: var(--label-2); }
.phase .checks { margin-top: 8px; }
.phase-foot { display: flex; gap: 10px; align-items: flex-start; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--sep); font-weight: 600; font-size: .95rem; }
.phase .checks + .phase-foot { margin-top: 22px; }
.phase-foot .i { color: var(--label-2); width: 20px; height: 20px; margin-top: 1px; }
.phase-gold { background: var(--surface); }
.phase-arrow { display: grid; place-items: center; width: 32px; height: 32px; margin: 0 auto; border-radius: 50%; background: var(--fill); color: var(--label-2); transform: rotate(90deg); }
.phase-arrow .i { width: 16px; height: 16px; stroke-width: 2.2; }
@media (min-width: 1100px) { .phases { grid-template-columns: 1fr auto 1fr auto 1fr; gap: 12px; align-items: stretch; } .phase-arrow { align-self: center; transform: none; } }
.ways-note { display: flex; gap: 12px; align-items: flex-start; max-width: 760px; margin: 28px auto 0; color: var(--label-2); }
.ways-note .i { color: var(--label-2); margin-top: 2px; }
.price-line { margin-top: 48px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 28px; border-radius: var(--radius); background: var(--surface-2); }
.price-line p { font-size: 1.1rem; max-width: 60ch; }

/* ---------- Selbsttest ---------- */
.quiz-grid { display: grid; gap: 40px; align-items: start; }
@media (min-width: 1000px) { .quiz-grid { grid-template-columns: 7fr 5fr; gap: 48px; } .quiz-result { position: sticky; top: calc(var(--header-h) + 32px); } }
.quiz { display: grid; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-card); padding: 4px 24px 24px; }
.q { margin: 0; padding: 18px 0; border: 0; border-bottom: 1px solid var(--sep); min-width: 0; }
.q legend { padding: 0; margin-bottom: 12px; font-size: 1.05rem; font-weight: 600; line-height: 1.4; }
.q-no { display: none; }
.opts { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 2px; border-radius: 10px; background: var(--fill); }
.opt { position: relative; cursor: pointer; }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt span { display: inline-flex; align-items: center; min-height: 36px; padding: 6px 14px; border-radius: 8px; font-size: .9rem; font-weight: 500; color: var(--label); transition: background-color .15s, box-shadow .15s; }
.opt input:checked + span { background: var(--surface); box-shadow: 0 1px 3px rgba(0, 0, 0, .15); font-weight: 600; }
.opt input:focus-visible + span { outline: 3px solid var(--ki); outline-offset: 1px; }
.quiz .btn { justify-self: start; margin-top: 22px; }
.quiz-hint { color: var(--error); font-weight: 600; margin-top: 10px; }
.quiz-result { padding: 28px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-lift); outline: none; }
.result-label { display: block; font-size: .9rem; font-weight: 600; color: var(--label-2); }
.result-label-sm { margin-top: 20px; }
.result-level { margin: 6px 0 12px; font-family: var(--font-display); font-size: clamp(1.7rem, 3vw, 2.2rem); font-weight: 650; letter-spacing: -.03em; line-height: 1.1; }
.meter { height: 8px; border-radius: 999px; background: var(--fill); overflow: hidden; margin: 12px 0 16px; }
.meter span { display: block; height: 100%; background: var(--label); transition: width .6s var(--ease); }
.result-empty p:not(.result-label) { color: var(--label-2); margin-top: 8px; }
.result-text { color: var(--label-2); }
.result-stations { display: grid; gap: 6px; margin-top: 8px; }
.result-stations li { padding: 10px 14px; border-radius: var(--radius-sm); background: var(--surface-2); font-weight: 600; }
.result-process { margin-top: 14px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--human-soft); }
.result-start { margin-top: 14px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--surface-2); font-weight: 500; }
.result-start strong { font-weight: 700; }
.quiz-result .btn { margin-top: 20px; }

/* ---------- Rechner ---------- */
.calc { display: grid; overflow: hidden; }
.calc-inputs { padding: clamp(28px, 4vw, 44px); }
.calc-inputs h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
.field-range { margin-top: 24px; }
.field-range label { display: block; font-weight: 600; margin-bottom: 8px; }
.range-row { display: flex; align-items: center; gap: 16px; }
.range-row input[type="range"] { flex: 1; accent-color: var(--label); height: 28px; cursor: pointer; }
.range-row input[type="number"] { width: 88px; min-height: 44px; padding: 8px 12px; border: 1px solid var(--sep-strong); border-radius: 10px; background: var(--surface-2); font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.calc-output { padding: clamp(28px, 4vw, 44px); background: var(--surface-2); display: grid; align-content: center; gap: 20px; }
.result { display: grid; gap: 4px; }
.result-value { font-family: var(--font-display); font-size: clamp(2.6rem, 6vw, 3.8rem); font-weight: 650; line-height: 1; letter-spacing: -.035em; font-variant-numeric: tabular-nums; color: var(--label); }
.result-sub { color: var(--label-2); }
.result-sub strong { color: var(--label); }
.calc-note { font-size: .95rem; color: var(--label-2); }
.calc-note strong { display: block; color: var(--label); }
.calc-formula { font-size: .85rem; color: var(--label-2); }
@media (min-width: 900px) { .calc { grid-template-columns: 1.1fr 1fr; } }

/* ---------- Demo ---------- */
.demo-inner { max-width: 960px; }
.demo .section-head { text-align: center; margin-left: auto; margin-right: auto; }
.video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 24px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow-lift); }
.video-frame video { width: 100%; height: 100%; object-fit: cover; background: #000; }
.video-poster { position: absolute; inset: 0; width: 100%; border: 0; cursor: pointer; color: var(--label); display: grid; place-items: center; align-content: center; gap: 16px; background: var(--surface); }
.poster-art { position: absolute; left: 8%; right: 8%; top: 18%; display: flex; justify-content: space-between; align-items: center; }
.poster-line { position: absolute; left: 0; right: 0; top: 50%; border-top: 2px dashed var(--ki-line); }
.poster-node { position: relative; padding: 6px 12px; border-radius: 999px; background: var(--surface-2); font-size: .85rem; font-weight: 600; }
.poster-gold { background: var(--human-soft); color: var(--human); }
.play { display: grid; place-items: center; width: 80px; height: 80px; margin-top: 10%; border-radius: 50%; background: var(--action); color: var(--on-action); transition: transform .2s var(--ease); }
.play .i { width: 30px; height: 30px; fill: currentColor; stroke: none; margin-left: 4px; }
.video-poster:hover .play { transform: scale(1.05); }
.video-label { font-weight: 600; }
.video-fallback { position: absolute; inset: 0; display: grid; place-items: center; padding: 32px; text-align: center; font-size: 1.1rem; background: var(--surface); }
@media (max-width: 600px) { .poster-art { display: none; } .play { margin-top: 0; width: 64px; height: 64px; } }

/* ---------- Über mich ---------- */
.about-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) { .about-grid { grid-template-columns: 5fr 7fr; gap: 72px; align-items: start; } .portrait { position: sticky; top: calc(var(--header-h) + 40px); } }
.portrait { position: relative; max-width: 400px; width: 100%; margin: 0 auto; }
.portrait picture { display: block; overflow: hidden; padding-top: 24px; border-radius: 28px; background: var(--human-fill); box-shadow: var(--shadow-lift); }
.portrait img { width: 100%; height: auto; }
.portrait-tag { position: absolute; left: 16px; bottom: 16px; padding: 6px 12px; border-radius: 999px; background: var(--glass); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); color: var(--label); font-weight: 600; font-size: .9rem; }
.about-lead { margin-top: 12px; font-size: clamp(1.25rem, 2.2vw, 1.55rem); font-weight: 600; letter-spacing: -.02em; line-height: 1.3; }
.about-story { display: grid; gap: 14px; margin-top: 20px; max-width: 62ch; }
.about-story p { color: var(--label-2); }
.about-story .about-drive { margin-top: 6px; padding: 16px 18px; border-radius: var(--radius-sm); background: var(--surface-2); color: var(--label); }
.about-points { display: grid; gap: 14px; margin: 26px 0; }
.about-points li { display: flex; gap: 12px; align-items: flex-start; }
.about-points .i { color: var(--label-2); margin-top: 3px; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; gap: 32px; }
@media (min-width: 960px) { .faq-grid { grid-template-columns: 4fr 7fr; gap: 64px; align-items: start; } .faq .section-head { position: sticky; top: calc(var(--header-h) + 40px); } }
.accordion { border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-card); overflow: hidden; }
.acc-item { border-bottom: 1px solid var(--sep); }
.acc-item:last-child { border-bottom: 0; }
.acc-item h3 { font-size: inherit; letter-spacing: normal; }
.acc-btn { width: 100%; min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; border: 0; background: none; cursor: pointer; text-align: left; font-size: 1.05rem; font-weight: 600; line-height: 1.35; }
.acc-btn:hover { background: var(--surface-2); }
.acc-btn .i { width: 20px; height: 20px; color: var(--label-2); stroke-width: 2.2; transition: transform .25s var(--ease); }
.acc-btn[aria-expanded="true"] .i { transform: rotate(45deg); }
.acc-panel { padding: 0 52px 20px 20px; }
.acc-panel p { color: var(--label-2); max-width: 62ch; }

/* ---------- Kontakt / Formular ---------- */
.contact-grid { display: grid; gap: 48px; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; } }
.contact-copy h2 { font-size: clamp(2rem, 4.2vw, 3rem); }
.contact .checks { margin-top: 24px; }
.contact-alt { display: grid; gap: 12px; margin-top: 32px; justify-items: start; }
.contact-line { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; color: var(--label-2); font-weight: 500; }
.contact-line:hover { color: var(--label); }
.form-card { padding: clamp(22px, 4vw, 36px); border-radius: 24px; background: var(--surface); box-shadow: var(--shadow-lift); }
.form-grid { display: grid; gap: 18px 16px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .field-full { grid-column: 1 / -1; } }
.field label, .field-areas legend { display: block; margin-bottom: 6px; padding: 0; font-weight: 600; font-size: .92rem; }
.optional { margin-left: 4px; font-weight: 400; font-size: .85rem; color: var(--label-2); }
.field input:not([type="checkbox"]), .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--sep-strong); border-radius: 12px;
  background: var(--surface-2); color: var(--label); transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--label-2); opacity: .8; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238E8E93' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--label); background: var(--surface); box-shadow: 0 0 0 4px var(--fill); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--ki); outline-offset: 1px; }
.field [aria-invalid="true"] { border-color: var(--error); }
.field-error { margin-top: 6px; font-size: .88rem; font-weight: 600; color: var(--error); }
.field-areas { margin: 0; padding: 0; border: 0; min-width: 0; }
.field-hint { margin-bottom: 10px; font-size: .85rem; color: var(--label-2); }
.areas { display: flex; flex-wrap: wrap; gap: 8px; }
.area { position: relative; cursor: pointer; }
.area input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.area span { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 8px 14px; border-radius: 999px; background: var(--fill); font-weight: 500; font-size: .92rem; transition: background-color .15s, color .15s; }
.area input:checked + span { background: var(--action); color: var(--on-action); }
.area input:checked + span::before { content: "✓"; font-weight: 700; }
.area input:focus-visible + span { outline: 3px solid var(--ki); outline-offset: 2px; }
.field-areas.is-invalid .area span { box-shadow: inset 0 0 0 1.5px var(--error); }
.field-check { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; }
.field-check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--label); cursor: pointer; }
.field-check label { margin: 0; font-weight: 400; font-size: .92rem; color: var(--label-2); }
.field-check label a { color: var(--label); font-weight: 600; }
.field-check .field-error { grid-column: 2; margin-top: 0; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-error { margin-top: 18px; padding: 12px 14px; border-radius: 12px; background: var(--error-soft); color: var(--error); font-weight: 600; }
.form-error a { color: inherit; }
.lead-form [data-submit] { margin-top: 22px; }
.spinner { display: none; width: 18px; height: 18px; border: 2.5px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.is-loading .spinner { display: inline-block; }
.is-loading [data-submit] { cursor: progress; opacity: .8; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-success { display: grid; justify-items: center; gap: 12px; padding: 40px 12px; text-align: center; outline: none; }
.form-success .i-xl { padding: 12px; border-radius: 50%; background: var(--fill); color: var(--label); stroke-width: 2.2; }
.form-success h3 { font-family: var(--font-display); font-size: 1.7rem; font-weight: 650; }
.form-success p { max-width: 40ch; color: var(--label-2); }

/* ---------- Footer ---------- */
.site-footer { padding: 64px 0 32px; background: var(--bg-2); border-top: 1px solid var(--sep); font-size: .92rem; color: var(--label-2); }
.footer-grid { display: grid; gap: 36px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.footer-brand { max-width: 320px; }
.footer-brand .logo { margin-bottom: 12px; }
.footer-title { margin-bottom: 12px; font-size: .92rem; font-weight: 600; color: var(--label); }
.site-footer ul { display: grid; gap: 6px; }
.site-footer ul a { text-decoration: none; }
.site-footer ul a:hover { color: var(--label); text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--sep); font-size: .85rem; }
.force { color: var(--label-2); }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Bedienungshilfen ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .header-inner, .portrait-tag { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--bg); }
}
@media (prefers-contrast: more) {
  :root { --sep: rgba(127, 127, 127, .5); --sep-strong: rgba(127, 127, 127, .8); }
  .card, .station, .quiz, .quiz-result, .form-card, .accordion, .never-list, .loop-panel, .chat { box-shadow: none; outline: 1px solid var(--sep-strong); }
}
@media print {
  .site-header, .belt-figure, .tools, .demo, .contact .form-card { display: none !important; }
}

/* Legende als normaler Block, damit Abstände im Selbsttest stimmen */
.q legend { float: left; width: 100%; }
.q .opts { clear: both; }
.phase-no { white-space: nowrap; }

/* =====================================================================
   Liquid Glass (Ausbau)
   Regel aus liquid-glass.md: Glas nur auf der Funktionsebene (Navigation,
   schwebende Leiste, Steuerelemente). Markenfarbe wandert in die
   Inhaltsebene („Aura“), damit das Glas etwas zum Brechen hat.
   ===================================================================== */
:root {
  --glass-bg: rgba(255, 255, 255, .52);
  --glass-bg-strong: rgba(255, 255, 255, .72);
  --glass-border: rgba(255, 255, 255, .75);
  --glass-edge: rgba(29, 29, 31, .08);
  --glass-shine: rgba(255, 255, 255, .9);
  --glass-shadow: 0 10px 30px rgba(15, 30, 60, .12), 0 1px 3px rgba(15, 30, 60, .08);
  --glass-blur: saturate(1.8) blur(22px);
  --aura-ki: rgba(76, 222, 128, .30);
  --aura-human: rgba(242, 201, 76, .34);
  --aura-night: rgba(40, 90, 200, .14);
}
@media (prefers-color-scheme: dark) {
  :root {
    --glass-bg: rgba(30, 50, 92, .42);
    --glass-bg-strong: rgba(30, 50, 92, .62);
    --glass-border: rgba(255, 255, 255, .16);
    --glass-edge: rgba(0, 0, 0, .3);
    --glass-shine: rgba(255, 255, 255, .22);
    --glass-shadow: 0 10px 30px rgba(0, 0, 0, .35), 0 1px 3px rgba(0, 0, 0, .3);
    --aura-ki: rgba(76, 222, 128, .20);
    --aura-human: rgba(242, 201, 76, .16);
    --aura-night: rgba(70, 120, 255, .22);
  }
}

/* Gemeinsames Glas-Rezept: Blur, Sättigung, helle Oberkante, feine Unterkante */
.header-inner, .btn-ghost, .dock, .loop-node:not(.loop-center), .opts, .play, .portrait-tag {
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow), inset 0 1px 0 var(--glass-shine), inset 0 -1px 0 var(--glass-edge);
}

/* Inhaltsebene: weiche Farbfelder in den Markenfarben */
.hero, .system, .quiz-section, .contact { position: relative; isolation: isolate; }
.hero { overflow: hidden; }
.aura { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.aura-hero {
  background:
    radial-gradient(38% 42% at 12% 22%, var(--aura-ki), transparent 70%),
    radial-gradient(34% 40% at 88% 18%, var(--aura-human), transparent 70%),
    radial-gradient(55% 45% at 50% 78%, var(--aura-night), transparent 72%);
}
.aura-system {
  background:
    radial-gradient(30% 40% at 25% 55%, var(--aura-ki), transparent 70%),
    radial-gradient(26% 34% at 30% 75%, var(--aura-human), transparent 70%);
}
.aura-quiz {
  background:
    radial-gradient(34% 40% at 82% 30%, var(--aura-ki), transparent 70%),
    radial-gradient(30% 36% at 10% 80%, var(--aura-human), transparent 70%);
}
.aura-contact {
  background:
    radial-gradient(36% 44% at 85% 40%, var(--aura-human), transparent 70%),
    radial-gradient(34% 40% at 10% 20%, var(--aura-ki), transparent 70%);
}

/* Navigation: etwas mehr Glas, Inhalt läuft darunter durch */
.header-inner { background: var(--glass-bg); }
.scroll-edge {
  position: fixed; left: 0; right: 0; top: 0; height: 84px; z-index: 40; pointer-events: none;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent);
          mask-image: linear-gradient(to bottom, #000 30%, transparent);
}

/* Sekundäre Buttons als Glas, Hauptaktion bleibt neutral getönt (eine pro Ansicht) */
.btn-ghost { color: var(--label); }
.btn-ghost:hover { background: var(--glass-bg-strong); }

/* Mobiles Menü als Glas-Blatt */
@media (max-width: 1023.98px) {
  .main-nav {
    background: var(--glass-bg-strong);
    -webkit-backdrop-filter: saturate(1.8) blur(40px); backdrop-filter: saturate(1.8) blur(40px);
  }
}

/* Schwebende Leiste */
.dock {
  position: fixed; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 45;
  display: flex; align-items: center; gap: 16px; padding: 8px 8px 8px 20px; border-radius: 999px;
  transform: translate(-50%, 140%); opacity: 0; transition: transform .45s var(--ease), opacity .3s;
  max-width: calc(100% - 24px);
}
.dock.is-visible { transform: translate(-50%, 0); opacity: 1; }
.dock-text { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 600; color: var(--label); white-space: nowrap; }
.dock-dot { width: 9px; height: 9px; border-radius: 50%; }
.dock-ki { background: var(--ki); }
.dock-human { background: var(--human-fill); margin-left: 6px; }
.dock .btn { white-space: nowrap; }
@media (max-width: 560px) { .dock-text { display: none; } .dock { padding: 6px; } }

/* System-Kreis: Schritte als Glas-Kapseln über der Aura */
.loop-node:not(.loop-center) { background: var(--glass-bg); }
.loop-node:not(.loop-center):hover { background: var(--glass-bg-strong); }
.loop-node.is-active:not(.loop-center) { background: var(--action); color: var(--on-action); border-color: transparent; }

/* Selbsttest: Segment-Steuerung mit Glas-Daumen */
.opts { border-radius: 12px; padding: 3px; }
.opt span { border-radius: 9px; }
.opt input:checked + span {
  background: var(--glass-bg-strong);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  box-shadow: 0 2px 8px rgba(15, 30, 60, .14), inset 0 1px 0 var(--glass-shine);
}
.quiz { background: color-mix(in srgb, var(--surface) 88%, transparent); }

/* Play-Taste als getöntes Glas */
.play { background: var(--glass-bg-strong); color: var(--label); }
.video-poster { background: radial-gradient(40% 50% at 30% 40%, var(--aura-ki), transparent 70%), radial-gradient(35% 45% at 75% 60%, var(--aura-human), transparent 70%), var(--surface); }

/* Bedienungshilfen: Glas wird deckend, Kanten kräftiger, Leiste ohne Gleiten */
@media (prefers-reduced-transparency: reduce) {
  .header-inner, .btn-ghost, .dock, .loop-node:not(.loop-center), .opts, .play, .portrait-tag, .main-nav, .opt input:checked + span {
    -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--surface);
  }
  .scroll-edge { display: none; }
  .aura { opacity: .5; }
}
@media (prefers-contrast: more) {
  .header-inner, .btn-ghost, .dock, .loop-node:not(.loop-center), .opts, .play { border-color: var(--sep-strong); background: var(--surface); }
}
@media (prefers-reduced-motion: reduce) { .dock { transition: none; } }

/* =====================================================================
   Unterseiten: Fließband-Seite, Rechtsseiten, 404
   ===================================================================== */

/* Seitenkopf unter der Glas-Navigation, mit Aura in der Inhaltsebene */
.page-hero {
  position: relative; isolation: isolate; overflow: hidden;
  margin-top: calc(-1 * (var(--header-h) - 2px));
  padding: calc(var(--header-h) + clamp(48px, 7vw, 88px)) 0 clamp(40px, 6vw, 64px);
  background: var(--bg);
}
.page-hero h1 { font-size: clamp(2.2rem, 6vw, 4.2rem); line-height: 1.02; letter-spacing: -.04em; -webkit-hyphens: auto; hyphens: auto; overflow-wrap: break-word; }
.page-hero p { margin-top: 14px; color: var(--label-2); }
.page-hero .eyebrow { color: var(--label-2); }
.aura-page {
  background:
    radial-gradient(34% 60% at 8% 30%, var(--aura-ki), transparent 70%),
    radial-gradient(30% 55% at 92% 20%, var(--aura-human), transparent 70%);
}
.breadcrumb { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 20px; padding: 6px 14px; border-radius: 999px; font-size: .88rem; color: var(--label-2);
  background: var(--glass-bg); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); border: 1px solid var(--glass-border); }
.breadcrumb a { color: var(--label); text-decoration: none; font-weight: 600; }
.breadcrumb a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Rechtstexte: ruhige Lesespalte, kein Glas (Inhalt) */
.legal { padding: clamp(32px, 5vw, 56px) 0 clamp(72px, 9vw, 112px); background: var(--bg); }
.legal-body { max-width: 760px; margin: 0 auto; padding: clamp(24px, 5vw, 52px); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-card); }
.legal-body h2 { margin: 40px 0 12px; font-family: var(--font-ui); font-size: clamp(1.3rem, 2.4vw, 1.6rem); font-weight: 650; letter-spacing: -.02em; line-height: 1.25; }
.legal-body h3 { margin: 24px 0 8px; font-size: 1.08rem; }
.legal-body > :first-child, .legal-body h2:first-child { margin-top: 0; }
.legal-body p, .legal-body li { color: var(--label-2); }
.legal-body p + p { margin-top: 12px; }
.legal-body ul, .legal-body ol { padding-left: 1.3em; margin: 10px 0; }
.legal-body ul { list-style: disc; }
.legal-body ol { list-style: decimal; }
.legal-body li + li { margin-top: 4px; }
.legal-body a { color: var(--label); font-weight: 600; text-decoration: underline; text-decoration-color: var(--sep-strong); text-underline-offset: 3px; word-break: break-word; }
.legal-body a:hover { text-decoration-color: currentColor; }
.legal-body strong { color: var(--label); }
.legal-toc { margin-bottom: 32px; padding: 18px 20px; border-radius: var(--radius-sm); background: var(--surface-2); }
.legal-body .legal-toc h2 { margin: 0 0 8px; font-size: .95rem; letter-spacing: 0; color: var(--label-2); }
.legal-body .legal-toc ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.legal-body .legal-toc a { display: inline-block; padding: 3px 0; font-weight: 500; text-decoration: none; }
.legal-body .legal-toc a:hover { text-decoration: underline; }

/* Fließband-Seite */
.def-hero h1 { max-width: 15ch; }
.def-hero .lead { max-width: 56ch; }
.def-box { position: relative; max-width: 880px; padding: clamp(26px, 4vw, 44px); border-radius: 28px; background: var(--surface); box-shadow: var(--shadow-lift); }
.def-label { margin-bottom: 12px; font-family: var(--font-ui); font-size: .95rem; font-weight: 600; letter-spacing: 0; color: var(--label-2); }
.def-box p:not(.def-source) { font-size: clamp(1.2rem, 2.2vw, 1.5rem); line-height: 1.45; font-weight: 500; letter-spacing: -.015em; }
.def-box dfn { font-style: normal; font-weight: 700; color: var(--label); background: linear-gradient(transparent 62%, var(--human-soft) 62%); }
.def-source { margin-top: 16px; font-size: .9rem; color: var(--label-2); }
.traits-head { margin-top: clamp(64px, 9vw, 104px); }
.traits { grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 14px; }
.traits .principle { padding: 24px 20px; }
.mini-stations { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.mini-station { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; padding: 22px; }
.mini-station h3 { margin-bottom: 10px; }
.mini-station p { padding: 8px 12px; border-radius: 10px; font-size: .96rem; color: var(--label); }
.mini-station p + p { margin-top: 6px; }
.mini-station p:nth-of-type(1) { background: var(--ki-soft); }
.mini-station p:nth-of-type(2) { background: var(--human-soft); }
.mini-station p:nth-of-type(1) strong { color: var(--ki); }
.mini-station p:nth-of-type(2) strong { color: var(--human); }
.mini-start .station-no { background: var(--human-fill); color: var(--on-human); }
.compare-section { position: relative; isolation: isolate; }
.compare-wrap { border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-card); overflow: hidden; }
.compare { width: 100%; border-collapse: collapse; font-size: .98rem; }
.compare th, .compare td { padding: 16px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--sep); }
.compare thead th { font-size: .9rem; font-weight: 600; color: var(--label-2); background: var(--surface-2); }
.compare tbody th { width: 24%; font-weight: 600; color: var(--label); }
.compare td { color: var(--label-2); }
.compare .col-us { background: var(--ki-soft); color: var(--label); font-weight: 600; }
.compare thead .col-us { color: var(--ki); background: var(--ki-soft); }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
@media (max-width: 760px) {
  .compare-wrap { background: none; box-shadow: none; border-radius: 0; overflow: visible; }
  .compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: 100%; }
  .compare tr { margin-bottom: 14px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-card); overflow: hidden; }
  .compare tbody th { width: 100%; background: var(--surface-2); }
  .compare td { padding: 12px 18px; }
  .compare td::before { content: attr(data-label); display: block; margin-bottom: 2px; font-size: .8rem; font-weight: 600; color: var(--label-2); }
  .compare td.col-us::before { color: var(--ki); }
}
.def-cta { position: relative; isolation: isolate; overflow: hidden; }
.def-cta .wrap { max-width: 860px; }
.def-cta .cta-row { justify-content: center; }
.def-cta .lead { margin-left: auto; margin-right: auto; }
.aura-cta {
  background:
    radial-gradient(40% 60% at 20% 50%, var(--aura-ki), transparent 70%),
    radial-gradient(40% 60% at 80% 50%, var(--aura-human), transparent 70%);
}

/* 404 */
.e404 { position: relative; isolation: isolate; overflow: hidden; min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding: 48px 20px; text-align: center; background: var(--bg); }
.e404 h1 { max-width: 16ch; margin: 0 auto; font-size: clamp(2.2rem, 6vw, 4.2rem); letter-spacing: -.04em; line-height: 1.04; }
.e404 p { max-width: 46ch; margin: 16px auto 0; font-size: 1.15rem; color: var(--label-2); }
.e404 .eyebrow { color: var(--label-2); }
.e404 .cta-row { justify-content: center; }
.drop { width: min(100%, 520px); margin: 0 auto 32px; }
.drop rect:not(.falling) { fill: var(--glass-bg-strong); stroke: var(--glass-border); }
.drop text { fill: var(--label); font-family: var(--font-ui); }
.drop text:last-of-type { fill: var(--label-2); }
.drop path:not(.track):not(.dots) { stroke: var(--ki-line); }
.drop .track { stroke: var(--ki-line); stroke-width: 2; }
.drop .dots { fill: none; stroke: var(--ki); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 0 22; animation: belt-dash 1.1s linear infinite; }
.drop .falling { fill: var(--human-fill); animation: fall 3.2s var(--ease) infinite; transform-box: fill-box; transform-origin: center; }
@keyframes fall {
  0% { transform: translate(0, 0); opacity: 1; }
  35% { transform: translate(60px, 0); }
  70% { transform: translate(96px, 110px) rotate(140deg); opacity: 1; }
  85%, 100% { transform: translate(104px, 150px) rotate(180deg); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .drop .falling { transform: translate(104px, 120px) rotate(160deg); } }
@media (prefers-reduced-transparency: reduce) { .breadcrumb { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--surface); } }
