/* Clouy · Stylesheet
   Layout: ruhige graue Fläche, eine schwarze Akzentfarbe, viel Weißraum,
   Karten nur dort, wo etwas als eigenes Objekt gelesen werden soll. */

:root {
  --bg: #ededeb;
  --surface: #f6f6f4;
  --surface-2: #ffffff;
  --ink: #111111;
  --ink-2: #3b3b39;
  --muted: #8a8a86;
  --faint: #b9b9b5;
  --line: rgba(17, 17, 17, 0.09);
  --line-2: rgba(17, 17, 17, 0.16);
  --btn: #111111;
  --on-btn: #ffffff;
  --dot: rgba(17, 17, 17, 0.22);
  --shadow: 0 1px 2px rgba(17, 17, 17, 0.05), 0 4px 16px rgba(17, 17, 17, 0.04);
  --ok: #1f7a4d;
  --err: #b42318;

  --f-sans: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --f-display: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --f-mono: var(--f-sans);

  --wrap: 1180px;
  --r: 14px;
  --r-sm: 9px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d0d0d; --surface: #151515; --surface-2: #1c1c1c; --ink: #f2f2f0; --ink-2: #c9c9c5;
    --muted: #85857f; --faint: #4a4a47; --line: rgba(255, 255, 255, 0.08); --line-2: rgba(255, 255, 255, 0.15);
    --btn: #f2f2f0; --on-btn: #111111; --dot: rgba(255, 255, 255, 0.2);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 4px 16px rgba(0, 0, 0, 0.25); --ok: #4cc38a; --err: #ff7a6b;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0d0d0d; --surface: #151515; --surface-2: #1c1c1c; --ink: #f2f2f0; --ink-2: #c9c9c5;
  --muted: #85857f; --faint: #4a4a47; --line: rgba(255, 255, 255, 0.08); --line-2: rgba(255, 255, 255, 0.15);
  --btn: #f2f2f0; --on-btn: #111111; --dot: rgba(255, 255, 255, 0.2);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 4px 16px rgba(0, 0, 0, 0.25); --ok: #4cc38a; --err: #ff7a6b;
  color-scheme: dark;
}

/* ---------- Sprache ---------- */
html[data-lang="de"] [data-l="en"],
html[data-lang="en"] [data-l="de"] { display: none !important; }

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--f-sans); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--bg); }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--ink); color: var(--bg); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; text-wrap: balance; }
p { margin: 0; }

.wrap {
  width: 100%; max-width: calc(var(--wrap) + 2 * 32px); margin: 0 auto;
  padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px));
}
@media (max-width: 640px) {
  .wrap { padding-left: max(18px, env(safe-area-inset-left, 0px)); padding-right: max(18px, env(safe-area-inset-right, 0px)); }
}
.mute { color: var(--muted); }
.mono { font-family: var(--f-sans); font-size: 13px; font-weight: 500; letter-spacing: 0.005em; }
.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--btn); color: var(--on-btn); padding: 10px 14px; border-radius: 10px; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 18px;
  border-radius: 11px; border: 1px solid transparent; background: var(--btn); color: var(--on-btn);
  font-size: 14.5px; font-weight: 500; letter-spacing: -0.005em; text-decoration: none; cursor: pointer;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset, 0 6px 18px -8px rgba(0, 0, 0, 0.45);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn .arr { transition: transform 0.25s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }
.btn-ghost { background: var(--surface-2); color: var(--ink); border-color: var(--line); box-shadow: var(--shadow); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 13.5px; border-radius: 10px; }
.link {
  display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 500; text-decoration: none;
  border-bottom: 1px solid var(--line-2); padding-bottom: 2px; transition: border-color 0.2s, gap 0.2s var(--ease);
}
.link:hover { border-color: var(--ink); gap: 11px; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s; border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-color: var(--line);
}
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; letter-spacing: -0.02em; font-size: 17px; }
.brand-mark { width: 22px; height: 22px; }
.nav-links { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; font-size: 14px; color: var(--ink-2); transition: color 0.2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-right { display: flex; align-items: center; gap: 10px; }
.seg {
  display: inline-flex; padding: 3px; border-radius: 9px; background: color-mix(in srgb, var(--ink) 5%, transparent);
  border: 1px solid var(--line);
}
.seg button {
  border: 0; background: transparent; height: 26px; padding: 0 9px; border-radius: 6px; cursor: pointer;
  font-size: 12px; font-weight: 600; letter-spacing: 0.04em; color: var(--muted);
}
.seg button[aria-pressed="true"] { background: var(--surface-2); color: var(--ink); box-shadow: var(--shadow); }
.icon-btn {
  width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; border: 1px solid transparent;
  background: transparent; cursor: pointer; color: var(--ink-2);
}
.icon-btn:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); color: var(--ink); }
.icon-btn svg { width: 17px; height: 17px; }
.theme-ico-dark { display: none; }
:root[data-theme="dark"] .theme-ico-dark { display: block; }
:root[data-theme="dark"] .theme-ico-light { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-ico-dark { display: block; }
  :root:not([data-theme="light"]) .theme-ico-light { display: none; }
}
.menu-btn { display: none; }
@media (max-width: 960px) {
  .nav-links, .nav-right .nav-cta { display: none; }
  .menu-btn { display: grid; }
}
.drawer {
  position: fixed; inset: 0; z-index: 70; background: var(--bg); display: flex; flex-direction: column;
  padding: calc(env(safe-area-inset-top, 0px) + 14px) max(18px, env(safe-area-inset-right, 0px)) calc(24px + env(safe-area-inset-bottom, 0px)) max(18px, env(safe-area-inset-left, 0px));
  opacity: 0; visibility: hidden; transition: opacity 0.25s, visibility 0.25s;
}
.drawer.open { opacity: 1; visibility: visible; }
.drawer-top { display: flex; justify-content: space-between; align-items: center; height: 40px; }
.drawer ul { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 4px; }
.drawer li a { display: block; padding: 12px 0; font-size: 26px; letter-spacing: -0.02em; text-decoration: none; border-bottom: 1px solid var(--line); }
.drawer .btn { margin-top: auto; justify-content: center; height: 50px; }
.drawer-tools { display: flex; gap: 10px; margin-top: 24px; align-items: center; }

/* ---------- Sektionen ---------- */
.sec { padding-block: clamp(80px, 11vw, 140px); border-top: 1px solid var(--line); }
.sec-head { display: grid; gap: 18px; max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.eyebrow { color: var(--muted); }
.h2 { font-family: var(--f-display); font-weight: 400; font-size: clamp(32px, 3.9vw, 52px); line-height: 1.08; letter-spacing: -0.018em; }
.h2 em, h1 em { font-style: italic; }
.h3 { font-size: 19px; line-height: 1.3; letter-spacing: -0.015em; }
.lead { font-size: clamp(16px, 1.25vw, 18px); color: var(--ink-2); max-width: 60ch; }
.body { color: var(--ink-2); font-size: 15.5px; max-width: 62ch; }

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: clamp(36px, 6vw, 72px) clamp(40px, 6vw, 72px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; gap: 32px; min-height: min(78svh, 760px); }
.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 12px 6px 8px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--line); box-shadow: var(--shadow); font-size: 13px; color: var(--ink-2);
  text-decoration: none; width: fit-content;
}
.pill .live { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--ink); margin-left: 4px; }
.pill .live::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--ink); opacity: 0; animation: ping 2.4s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(0.5); opacity: 0.6; } 100% { transform: scale(1.6); opacity: 0; } }
.hero h1 {
  font-family: var(--f-display); font-size: clamp(44px, 5.4vw, 76px); line-height: 1.02; letter-spacing: -0.022em; font-weight: 400;
  margin-top: 26px;
}
.hero h1 .mute, .page-hero h1 .mute { color: var(--muted); font-style: italic; }

.hero .lead { margin-top: 24px; max-width: 520px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 34px; }
.hero-note { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 34px; color: var(--muted); font-size: 13px; }
.hero-note span { display: inline-flex; align-items: center; gap: 7px; }
.hero-note svg { width: 14px; height: 14px; }
.orb-box { position: relative; aspect-ratio: 1; width: 100%; max-width: 620px; justify-self: end; }
.orb { width: 100%; height: 100%; cursor: grab; touch-action: pan-y; border-radius: 50%; }
.orb:active { cursor: grabbing; }
.orb-hint {
  position: absolute; left: 76%; bottom: 3%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 11px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--muted);
  transition: opacity 0.6s; pointer-events: none; white-space: nowrap;
}
.orb-hint i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink); }
.orb-hint.gone { opacity: 0; }
.orb-tag {
  position: absolute; display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px; border-radius: 8px;
  background: var(--surface-2); border: 1px solid var(--line); box-shadow: var(--shadow); font-size: 12px; color: var(--ink-2);
  white-space: nowrap; animation: float 7s ease-in-out infinite; pointer-events: none;
}
.orb-tag b { font-weight: 500; color: var(--ink); }
.orb-tag::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: var(--ink); }
.orb-tag.t1 { top: 16%; left: 2%; }
.orb-tag.t2 { top: 48%; right: -2%; animation-delay: -2.3s; }
.orb-tag.t3 { bottom: 15%; left: 8%; animation-delay: -4.6s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); min-height: 0; gap: 8px; }
  .orb-box { justify-self: center; max-width: 460px; margin-top: 28px; }
  .orb-tag { display: none; }
}
@media (max-width: 640px) { .orb-box { max-width: 340px; } }

.principles { margin-top: clamp(32px, 4vw, 48px); display: grid; grid-template-columns: auto 1fr; gap: 14px 40px; align-items: center; }
.principles ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 32px; }
.principles li { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; color: var(--ink-2); }
.principles svg { width: 16px; height: 16px; color: var(--ink); }
@media (max-width: 760px) { .principles { grid-template-columns: minmax(0, 1fr); } }

/* ---------- These / Diagramm ---------- */
.thesis-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.thesis-grid .h2 .mute { color: var(--muted); }
.thesis-copy { display: grid; gap: 22px; justify-items: start; }
.flow { width: 100%; overflow: visible; }
.flow text { font-family: var(--f-sans); fill: var(--ink); }
.flow .t-mute { fill: var(--muted); }
.flow .t-mono { font-weight: 500; }
.flow .card { fill: var(--surface-2); stroke: var(--line); }
.flow .row-bg { fill: transparent; transition: fill 0.35s; }
.flow .row.on .row-bg { fill: color-mix(in srgb, var(--ink) 6%, transparent); }
.flow .ico { fill: none; stroke: var(--ink); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.flow .wire { fill: none; stroke: var(--line-2); stroke-width: 1.2; }
.flow .run { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 3 9; animation: run 1.6s linear infinite; opacity: 0.25; transition: opacity 0.4s; }
.flow .run.on { opacity: 1; }
@keyframes run { to { stroke-dashoffset: -24; } }
.flow .node { fill: var(--surface-2); stroke: var(--line-2); }
.flow .seg-arc { fill: none; stroke: var(--faint); stroke-width: 16; transition: stroke 0.35s; cursor: pointer; }
.flow .seg-arc.on { stroke: var(--ink); }
.flow .ring-bg { fill: none; stroke: var(--line); stroke-width: 16; }
.flow .tick { stroke: var(--line-2); }
.flow .tag rect { fill: var(--surface-2); stroke: var(--line); transition: stroke 0.3s; }
.flow .tag.on rect { stroke: var(--ink); }
.flow .tag { cursor: pointer; }
.flow .pulse { fill: none; stroke: var(--ink); opacity: 0; }
.flow-note { margin-top: 14px; color: var(--muted); font-size: 12.5px; }
@media (max-width: 960px) { .thesis-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Problem ---------- */
.why-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.why { padding: 28px 28px 8px 0; display: grid; gap: 12px; align-content: start; }
.why + .why { padding-left: 28px; border-left: 1px solid var(--line); }
.why .big { font-family: var(--f-display); font-size: clamp(52px, 6vw, 76px); letter-spacing: -0.02em; line-height: 1; font-weight: 400; font-variant-numeric: tabular-nums; }
.why .big small { font-size: 0.42em; letter-spacing: -0.02em; color: var(--muted); margin-left: 6px; }
.why .src { color: var(--muted); font-size: 12px; text-decoration: none; border-bottom: 1px dotted var(--faint); width: fit-content; }
.why .src:hover { color: var(--ink); }
@media (max-width: 860px) {
  .why-grid { grid-template-columns: minmax(0, 1fr); }
  .why, .why + .why { padding: 26px 0; border-left: 0; }
  .why + .why { border-top: 1px solid var(--line); }
}

/* ---------- Zwei Säulen ---------- */
.pillars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.pillar { display: grid; gap: 14px; grid-template-rows: auto auto auto 1fr auto; }
.pillar .body { min-height: 3.1em; }
ul.ticks { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 8px; font-size: 14.5px; color: var(--ink-2); }
.ticks li { display: flex; gap: 10px; align-items: baseline; }
.ticks li::before { content: ""; flex: none; width: 5px; height: 5px; border-radius: 50%; background: var(--ink); transform: translateY(-2px); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.viz { position: relative; height: 290px; border-bottom: 1px solid var(--line); background:
  radial-gradient(circle, var(--dot) 1px, transparent 1.3px) 0 0 / 16px 16px; }
.viz canvas { width: 100%; height: 100%; }
.viz .lab { position: absolute; color: var(--muted); }
.ctrl { padding: 18px 20px 20px; display: grid; gap: 14px; background: var(--surface-2); }
.ctrl-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ctrl-row > span { font-size: 13px; color: var(--muted); }
.chips { display: inline-flex; padding: 3px; border-radius: 10px; background: color-mix(in srgb, var(--ink) 5%, transparent); border: 1px solid var(--line); }
.chips button { border: 0; background: transparent; height: 30px; padding: 0 12px; border-radius: 7px; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.chips button[aria-checked="true"] { background: var(--surface-2); color: var(--ink); box-shadow: var(--shadow); }
.result { display: flex; align-items: end; justify-content: space-between; gap: 12px; }
.result .num { font-family: var(--f-display); font-size: 30px; letter-spacing: -0.01em; font-weight: 400; font-variant-numeric: tabular-nums; line-height: 1; }
.result .cap { color: var(--muted); font-size: 12px; margin-top: 6px; }
.badge { font-size: 12px; padding: 5px 8px; border-radius: 7px; background: color-mix(in srgb, var(--ink) 6%, transparent); color: var(--ink-2); white-space: nowrap; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 22px; background: transparent; cursor: pointer; flex: 1; min-width: 140px; }
input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(var(--ink), var(--ink)) 0 / var(--p, 50%) 100% no-repeat, var(--line-2); }
input[type="range"]::-moz-range-track { height: 4px; border-radius: 4px; background: var(--line-2); }
input[type="range"]::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--ink); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--surface-2); border: 1.5px solid var(--ink); margin-top: -7px; box-shadow: var(--shadow); }
input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--surface-2); border: 1.5px solid var(--ink); }
.range-row { display: flex; align-items: center; gap: 14px; }
.range-row output { font-size: 13px; min-width: 7.5ch; text-align: right; font-variant-numeric: tabular-nums; }
.chat { position: absolute; inset: 22px 22px auto; display: grid; gap: 10px; }
.bubble { max-width: 86%; padding: 10px 13px; border-radius: 12px; font-size: 13px; line-height: 1.45; background: var(--surface-2); border: 1px solid var(--line); box-shadow: var(--shadow); }
.bubble.me { justify-self: end; background: var(--btn); color: var(--on-btn); border-color: transparent; border-bottom-right-radius: 4px; }
.bubble.ai { border-bottom-left-radius: 4px; }
.bubble .who { display: block; color: var(--muted); margin-bottom: 4px; }
.bubble.me .who { color: color-mix(in srgb, var(--on-btn) 60%, transparent); }
.src-chip { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 3px 8px; border-radius: 6px; border: 1px solid var(--line); font-size: 11.5px; color: var(--muted); }
.typing { display: inline-flex; gap: 4px; padding: 4px 0; }
.typing i { width: 5px; height: 5px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: 0.15s; } .typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes blink { 0%, 80%, 100% { opacity: 0.25; } 40% { opacity: 1; } }
@media (max-width: 860px) { .pillars { grid-template-columns: minmax(0, 1fr); } .pillar .body { min-height: 0; } }

/* ---------- Vorteile ---------- */
.benefits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.benefit { padding: 28px 28px 32px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; gap: 10px; align-content: start; transition: background 0.3s; }
.benefit:hover { background: color-mix(in srgb, var(--surface-2) 60%, transparent); }
.benefit svg { width: 22px; height: 22px; margin-bottom: 8px; }
.benefit p { color: var(--ink-2); font-size: 14.5px; }
@media (max-width: 960px) { .benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .benefits { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Ablauf-Vignetten ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.step { display: grid; gap: 14px; }
.step .num { color: var(--muted); }
.vig {
  position: relative; height: 270px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); overflow: hidden; cursor: pointer;
}
.vig::before, .vig::after { content: ""; position: absolute; background: var(--line); }
.vig::before { left: 50%; top: 0; bottom: 0; width: 1px; }
.vig::after { top: 50%; left: 0; right: 0; height: 1px; }
.vig-top { position: absolute; top: 12px; left: 14px; right: 14px; display: flex; justify-content: space-between; color: var(--muted); z-index: 2; font-size: 10px; }
.vig-top .st { display: inline-flex; align-items: center; gap: 6px; }
.vig-top .st i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink); }
.vig-stage { position: absolute; inset: 30px 0 0; display: grid; place-items: center; z-index: 1; }
.vcard { width: min(78%, 260px); background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 14px; display: grid; gap: 10px; }
.vcard .q { color: var(--muted); }
.vcard .field { min-height: 52px; border: 1px solid var(--line-2); border-radius: 8px; padding: 8px 10px; font-size: 12.5px; line-height: 1.45; color: var(--ink); }
.caret { display: inline-block; width: 1px; height: 14px; background: var(--ink); vertical-align: -2px; animation: car 1s steps(1) infinite; }
@keyframes car { 50% { opacity: 0; } }
.vcard .saved { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ok); opacity: 0; transition: opacity 0.4s; }
.vcard .saved.on { opacity: 1; }
.vers { display: grid; gap: 8px; }
.ver { display: grid; grid-template-columns: 32px 1fr 44px; align-items: center; gap: 10px; font-size: 12px; }
.ver .bar { height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; }
.ver .bar i { display: block; height: 100%; width: 0; background: var(--faint); border-radius: 6px; transition: width 1.4s var(--ease); }
.ver.new .bar i { background: var(--ink); }
.ver span:last-child { text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); }
.stamp { justify-self: start; display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 7px; background: var(--btn); color: var(--on-btn); font-size: 11.5px; transform: scale(0.85); opacity: 0; transition: all 0.35s var(--ease); }
.stamp.on { opacity: 1; transform: scale(1); }
.vchat { width: min(84%, 280px); display: grid; gap: 8px; }
.vchat .bubble { font-size: 12px; opacity: 0; transform: translateY(6px); transition: all 0.4s var(--ease); }
.vchat .bubble.on { opacity: 1; transform: none; }
.vchat .act { justify-self: start; display: inline-flex; gap: 6px; opacity: 0; transition: opacity 0.4s; }
.vchat .act.on { opacity: 1; }
.vchat .act span { font-size: 11px; padding: 4px 8px; border-radius: 6px; border: 1px solid var(--line-2); background: var(--surface-2); }
.vchat .act span.pri { background: var(--btn); color: var(--on-btn); border-color: transparent; }
.step p { color: var(--ink-2); font-size: 14.5px; max-width: 36ch; }
.steps-foot { margin-top: 40px; }
@media (max-width: 960px) { .steps { grid-template-columns: minmax(0, 1fr); } .vig { height: 250px; } }

/* ---------- Pilot ---------- */
.pilot-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 88px); }
.pilot-copy { display: grid; gap: 22px; align-content: start; position: sticky; top: 110px; }
.pilot-list { display: grid; gap: 14px; }
.pcard { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; display: grid; gap: 14px; box-shadow: var(--shadow); }
.pcard h3 { font-size: 17px; letter-spacing: -0.01em; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: t; }
.timeline li { position: relative; padding: 0 0 18px 34px; counter-increment: t; font-size: 14.5px; color: var(--ink-2); }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: counter(t); position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%;
  border: 1px solid var(--line-2); display: grid; place-items: center; font-size: 11px; font-weight: 600; color: var(--ink); background: var(--surface-2);
}
.timeline li::after { content: ""; position: absolute; left: 11px; top: 24px; bottom: 2px; width: 1px; background: var(--line-2); }
.timeline li:last-child::after { display: none; }
.timeline b { display: block; font-weight: 500; color: var(--ink); }
@media (max-width: 960px) { .pilot-grid { grid-template-columns: minmax(0, 1fr); } .pilot-copy { position: static; } }

/* ---------- CTA mit Punktraster ---------- */
.cta { position: relative; text-align: center; overflow: hidden; --mx: 50%; --my: 50%; }
.cta::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle, var(--dot) 1.1px, transparent 1.5px) 0 0 / 15px 15px;
  -webkit-mask: radial-gradient(320px circle at var(--mx) var(--my), #000 0%, transparent 70%);
  mask: radial-gradient(320px circle at var(--mx) var(--my), #000 0%, transparent 70%);
  transition: -webkit-mask-position 0.2s;
}
.cta::after {
  content: ""; position: absolute; width: 420px; height: 420px; left: var(--mx); top: var(--my); transform: translate(-50%, -50%);
  background: radial-gradient(circle, color-mix(in srgb, var(--surface-2) 90%, transparent), transparent 65%); pointer-events: none; z-index: 0;
}
.cta .wrap { position: relative; z-index: 1; display: grid; justify-items: center; gap: 30px; }
.cta h2 { font-family: var(--f-display); font-weight: 400; font-size: clamp(34px, 4.6vw, 60px); line-height: 1.06; letter-spacing: -0.02em; max-width: 17ch; }
.cta h2 .mute { color: var(--muted); font-style: italic; }

/* ---------- Formular ---------- */
.apply-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.apply-aside { display: grid; gap: 22px; }
.contact-line { display: grid; gap: 6px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 14.5px; }
.contact-line a { text-decoration: none; border-bottom: 1px solid var(--line-2); width: fit-content; }
.form { background: var(--surface-2); border: 1px solid var(--line); border-radius: 18px; padding: clamp(20px, 3vw, 32px); box-shadow: var(--shadow); display: grid; gap: 18px; }
.f-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 13px; color: var(--ink-2); font-weight: 500; }
.field label .opt { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 44px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg);
  font-size: 15px; transition: border-color 0.2s, box-shadow 0.2s, background 0.2s; -webkit-appearance: none; appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%238a8a86' stroke-width='1.6'%3E%3Cpath d='M2 4.5 6 8l4-3.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px; }
.field textarea { min-height: 112px; resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); background: var(--surface-2); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ink) 10%, transparent); }
.field .err { display: none; font-size: 12.5px; color: var(--err); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--err); }
.field.invalid .err { display: block; }
.check { display: flex; gap: 11px; align-items: flex-start; font-size: 13.5px; color: var(--ink-2); }
.check input { -webkit-appearance: none; appearance: none; flex: none; width: 18px; height: 18px; margin-top: 2px; border-radius: 5px; border: 1.5px solid var(--line-2); background: var(--bg); cursor: pointer; display: grid; place-items: center; }
.check input:checked { background: var(--btn); border-color: var(--btn); }
.check input:checked::after { content: ""; width: 9px; height: 5px; border-left: 1.8px solid var(--on-btn); border-bottom: 1.8px solid var(--on-btn); transform: rotate(-45deg) translate(1px, -1px); }
.check.invalid input { border-color: var(--err); }
.check a { text-underline-offset: 2px; }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.form-foot small { color: var(--muted); font-size: 12.5px; max-width: 38ch; }
.form .btn[disabled] { opacity: 0.6; cursor: progress; }
.form-msg { display: none; font-size: 13.5px; color: var(--err); }
.form-msg.on { display: block; }
.done { display: none; text-align: left; gap: 14px; justify-items: start; padding: 12px 0; }
.form.sent > :not(.done) { display: none; }
.form.sent .done { display: grid; }
.done-ico { width: 44px; height: 44px; border-radius: 50%; background: var(--btn); color: var(--on-btn); display: grid; place-items: center; }
.done-ico svg { width: 20px; height: 20px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 960px) { .apply-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .f-row { grid-template-columns: minmax(0, 1fr); } }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.faq-col { display: grid; gap: 10px; align-content: start; }
.faq-col h3 { font-size: 15px; margin-bottom: 6px; }
details.q { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; }
details.q summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 15px 18px; font-size: 14.5px; font-weight: 500; }
details.q summary::-webkit-details-marker { display: none; }
details.q summary svg { flex: none; width: 14px; height: 14px; color: var(--muted); transition: transform 0.3s var(--ease); }
details.q[open] summary svg { transform: rotate(180deg); }
details.q .a { padding: 0 18px 18px; color: var(--ink-2); font-size: 14.5px; max-width: 64ch; display: grid; gap: 10px; }
@media (max-width: 860px) { .faq-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Footer ---------- */
.foot { position: relative; border-top: 1px solid var(--line); overflow: hidden; }
.foot-claim { padding-block: clamp(72px, 9vw, 120px) 0; text-align: center; position: relative; z-index: 1; }
.foot-claim p { font-family: var(--f-display); font-size: clamp(26px, 2.8vw, 36px); letter-spacing: -0.015em; line-height: 1.2; max-width: 24ch; margin: 0 auto; }
.horizon { position: absolute; left: 0; right: 0; bottom: 0; height: 100%; width: 100%; pointer-events: none; }
.foot-grid { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; padding-block: clamp(140px, 16vw, 220px) 36px; }
.foot-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.foot-cols h4 { font-size: 13px; font-weight: 500; margin-bottom: 12px; }
.foot-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.foot-cols a { text-decoration: none; font-size: 13.5px; color: var(--ink-2); }
.foot-cols a:hover { color: var(--ink); }
.foot-note { text-align: right; color: var(--muted); font-size: 12.5px; display: grid; gap: 6px; }
@media (max-width: 700px) { .foot-note { text-align: left; } }

/* ---------- Unterseiten ---------- */
.page-hero { padding-block: clamp(56px, 8vw, 104px) clamp(48px, 6vw, 80px); }
.page-hero h1 { font-family: var(--f-display); font-weight: 400; font-size: clamp(40px, 5.6vw, 72px); line-height: 1.04; letter-spacing: -0.02em; max-width: 15ch; margin-top: 22px; }

.page-hero .lead { margin-top: 22px; }
.arch-box { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: 18px; background: var(--surface);
  background-image: radial-gradient(circle, var(--dot) 1px, transparent 1.3px); background-size: 18px 18px; }
.arch { min-width: 860px; width: 100%; padding: 8px; }
.arch text { font-family: var(--f-sans); fill: var(--ink); }
.arch .t-mute { fill: var(--muted); }
.arch .t-mono { font-weight: 500; }
.arch .box { fill: var(--surface-2); stroke: var(--line-2); }
.arch .box-dark { fill: var(--btn); }
.arch .t-on { fill: var(--on-btn); }
.arch .zone { fill: none; stroke: var(--ink); stroke-dasharray: 4 5; opacity: 0.35; }
.arch .ln { fill: none; stroke: var(--line-2); stroke-width: 1.3; }
.arch .run { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 3 9; animation: run 1.6s linear infinite; }
.arch .run.slow { animation-duration: 2.6s; }
.arch .arrow { fill: var(--ink); }
.arch .diamond { fill: var(--surface-2); stroke: var(--ink); }
.arch-cap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 14px; color: var(--muted); font-size: 12.5px; }

.detail-grid { display: grid; grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr); gap: clamp(32px, 6vw, 88px); }
.detail-grid .sticky { position: sticky; top: 110px; align-self: start; display: grid; gap: 18px; }
.dsteps { list-style: none; margin: 0; padding: 0; display: grid; }
.dstep { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 8px 20px; padding: 28px 0; border-top: 1px solid var(--line); }
.dstep:last-child { border-bottom: 1px solid var(--line); }
.dstep .n { font-family: var(--f-display); font-size: 20px; color: var(--muted); padding-top: 4px; }
.dstep h3 { font-family: var(--f-display); font-weight: 400; font-size: 26px; letter-spacing: -0.01em; }
.dstep .body { margin-top: 8px; }
.dstep .ticks { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 7px; font-size: 14px; color: var(--ink-2); }
.dstep .you { margin-top: 14px; display: inline-flex; gap: 8px; align-items: baseline; font-size: 13px; color: var(--muted); }
.dstep .you b { font-weight: 500; color: var(--ink-2); }
@media (max-width: 960px) { .detail-grid { grid-template-columns: minmax(0, 1fr); } .detail-grid .sticky { position: static; } }
@media (max-width: 520px) { .dstep { grid-template-columns: minmax(0, 1fr); } }

.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.scard { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; display: grid; gap: 14px; align-content: start; box-shadow: var(--shadow); }
.scard .mono { color: var(--muted); }
.scard h3 { font-family: var(--f-display); font-weight: 400; font-size: 27px; letter-spacing: -0.01em; }
.scard p { color: var(--ink-2); font-size: 15px; }
.scard.dark { background: var(--btn); color: var(--on-btn); border-color: transparent; }
.scard.dark p, .scard.dark .ticks li { color: color-mix(in srgb, var(--on-btn) 78%, transparent); }
.scard.dark .mono { color: color-mix(in srgb, var(--on-btn) 55%, transparent); }
.scard.dark .ticks li::before { background: var(--on-btn); }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } }

.table-box { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface-2); box-shadow: var(--shadow); }
table.cmp { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 14.5px; }
.cmp th, .cmp td { padding: 15px 20px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.cmp thead th { font-weight: 500; font-size: 13px; color: var(--muted); background: var(--surface); }
.cmp thead th.us { color: var(--ink); }
.cmp tbody tr:last-child td, .cmp tbody tr:last-child th { border-bottom: 0; }
.cmp tbody th { font-weight: 500; width: 34%; }
.cmp td { color: var(--ink-2); }
.cmp td.us { background: color-mix(in srgb, var(--ink) 3.5%, transparent); color: var(--ink); }
.yes, .no, .part { display: inline-flex; align-items: center; gap: 8px; }
.yes::before, .no::before, .part::before { content: ""; width: 8px; height: 8px; border-radius: 50%; flex: none; }
.yes::before { background: var(--ink); }
.part::before { border: 1.5px solid var(--ink); width: 7px; height: 7px; }
.no::before { background: var(--faint); }
.cmp-note { margin-top: 14px; color: var(--muted); font-size: 12.5px; max-width: 80ch; }

/* ---------- Rechtstexte ---------- */
.legal { max-width: 760px; padding-block: clamp(48px, 7vw, 96px); }
.legal h1 { font-family: var(--f-display); font-weight: 400; font-size: clamp(36px, 4.6vw, 56px); letter-spacing: -0.02em; line-height: 1.05; margin: 18px 0 14px; }
.legal h2 { font-size: 20px; letter-spacing: -0.015em; margin: 40px 0 10px; }
.legal h3 { font-size: 16px; margin: 24px 0 8px; }
.legal p, .legal li { color: var(--ink-2); font-size: 15.5px; }
.legal p + p { margin-top: 10px; }
.legal ul { padding-left: 20px; display: grid; gap: 6px; }
.legal .ph { background: color-mix(in srgb, var(--ink) 8%, transparent); border-radius: 4px; padding: 0 4px; font-family: var(--f-mono); font-size: 0.86em; }
.legal .notice { margin-top: 22px; padding: 14px 16px; border: 1px dashed var(--line-2); border-radius: 12px; font-size: 14px; color: var(--ink-2); }
.legal address { font-style: normal; color: var(--ink-2); line-height: 1.7; }

/* ---------- Bewegung ---------- */
.js .rv { opacity: 0; transform: translateY(16px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }
.js .rv.d1 { transition-delay: 0.08s; } .js .rv.d2 { transition-delay: 0.16s; } .js .rv.d3 { transition-delay: 0.24s; }
.hero .intro { animation: rise 0.9s var(--ease) both; }
.hero .intro.i2 { animation-delay: 0.08s; } .hero .intro.i3 { animation-delay: 0.16s; } .hero .intro.i4 { animation-delay: 0.24s; } .hero .intro.i5 { animation-delay: 0.32s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .js .rv { opacity: 1; transform: none; }
}

/* ---------- Typenschild (Hero) ---------- */
.plate {
  position: absolute; left: -2%; bottom: 0; width: 292px; padding: 14px 16px 12px; border-radius: 12px;
  background: color-mix(in srgb, var(--surface-2) 92%, transparent); border: 1px solid var(--line-2); box-shadow: var(--shadow);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); font-size: 12.5px;
  animation: float 8s ease-in-out infinite;
}
.plate::before, .plate::after, .plate-head::before, .plate-head::after {
  content: ""; position: absolute; width: 5px; height: 5px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--bg);
}
.plate::before { top: 6px; left: 6px; } .plate::after { top: 6px; right: 6px; }
.plate-head::before { bottom: 6px; left: 6px; } .plate-head::after { bottom: 6px; right: 6px; }
.plate-head { display: flex; justify-content: space-between; color: var(--muted); padding: 0 6px; }
.plate-head .plate-ex { margin-left: auto; padding: 1px 7px; border: 1px solid var(--line-2); border-radius: 5px; font-size: 11px; }
.plate-head > span:not(.plate-ex) + span:not(.plate-ex) { display: none; }
.plate-title { font-family: var(--f-display); font-weight: 500; font-size: 18px; letter-spacing: -0.01em; margin: 6px 6px 10px; }
.plate dl { margin: 0; display: grid; grid-template-columns: auto 1fr; border-top: 1px solid var(--line); }
.plate dt, .plate dd { margin: 0; padding: 6px 6px; border-bottom: 1px solid var(--line); }
.plate dt { color: var(--muted); font-size: 12px; padding-top: 6px; }
.plate dd { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.plate dt { white-space: nowrap; }
.plate dd b { font-weight: 600; }
.plate dl > :nth-last-child(-n+2) { border-bottom: 0; }
.plate-test [data-test] { transition: opacity 0.3s; }
@media (max-width: 960px) {
  .plate { position: relative; left: auto; bottom: auto; margin: -24px auto 0; animation: none; width: min(100%, 320px); }
  .orb-box { aspect-ratio: auto; }
  .orb { aspect-ratio: 1; height: auto; }
  .orb-hint { display: none; }
}

/* ---------- Im Alltag ---------- */
.usecases { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 24px; align-items: stretch; }
.uc-tabs { display: grid; gap: 8px; align-content: start; }
.uc-tabs button {
  text-align: left; display: grid; gap: 3px; padding: 16px 18px; border-radius: 12px; border: 1px solid var(--line); background: transparent; cursor: pointer;
  transition: background 0.25s, border-color 0.25s, box-shadow 0.25s; position: relative; overflow: hidden;
}
.uc-tabs button:hover { background: color-mix(in srgb, var(--surface-2) 55%, transparent); }
.uc-tabs button[aria-selected="true"] { background: var(--surface-2); border-color: var(--line-2); box-shadow: var(--shadow); }
.uc-tabs button::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--ink); }
.uc-tabs button[aria-selected="true"].timing::after { animation: uct var(--uc-dur, 9s) linear forwards; }
@keyframes uct { to { width: 100%; } }
.uc-t { font-weight: 500; font-size: 15px; }
.uc-s { color: var(--muted); font-size: 13.5px; }
.uc-panel { display: grid; grid-template-rows: auto 1fr; min-height: 360px; background-image: radial-gradient(circle, var(--dot) 1px, transparent 1.3px); background-size: 16px 16px; }
.uc-top { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--surface-2); color: var(--muted); }
.uc-body { padding: 24px; display: grid; gap: 14px; align-content: start; }
.uc-body .bubble { max-width: 88%; font-size: 14px; line-height: 1.55; padding: 13px 15px; opacity: 0; transform: translateY(8px); transition: opacity 0.45s var(--ease), transform 0.45s var(--ease); }
.uc-body .bubble.on { opacity: 1; transform: none; }
.uc-srcs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.uc-srcs .src-chip { margin-top: 0; }
.uc-warn { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 3px 8px; border-radius: 6px; font-size: 11.5px; border: 1px dashed var(--line-2); color: var(--ink-2); }
@media (max-width: 860px) {
  .usecases { grid-template-columns: minmax(0, 1fr); }
  .uc-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .uc-s { display: none; }
  .uc-panel { min-height: 380px; }
}

/* ---------- Vier Schritte ---------- */
.steps-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.steps-4 .vig { height: 240px; }
@media (max-width: 1100px) { .steps-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .steps-4 { grid-template-columns: minmax(0, 1fr); } }
.files { gap: 6px; }
.file { display: flex; align-items: center; gap: 9px; font-size: 12px; padding: 6px 4px; border-bottom: 1px solid var(--line); transition: opacity 0.3s; }
.file:last-child { border-bottom: 0; }
.file .cb { width: 14px; height: 14px; border-radius: 4px; border: 1.3px solid var(--line-2); flex: none; display: grid; place-items: center; transition: all 0.25s; }
.file.on .cb { background: var(--btn); border-color: var(--btn); }
.file.on .cb::after { content: ""; width: 6px; height: 3.5px; border-left: 1.5px solid var(--on-btn); border-bottom: 1.5px solid var(--on-btn); transform: rotate(-45deg) translate(0.5px, -0.5px); }
.file.out em { margin-left: auto; font-style: normal; font-size: 10.5px; color: var(--muted); opacity: 0; transition: opacity 0.3s; }
.file.out.x { color: var(--muted); }
.file.out.x > span[data-l] { text-decoration: line-through; }
.file.out.x em { opacity: 1; }
.prog { display: grid; gap: 6px; font-size: 12px; }
.prog .bar { height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; }
.prog .bar i { display: block; height: 100%; width: 0; background: var(--ink); border-radius: 6px; transition: width 1.5s var(--ease); }

/* Vorteile 4er-Raster */
.benefits-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .benefits-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .benefits-4 { grid-template-columns: minmax(0, 1fr); } }

.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 960px) { .trio { grid-template-columns: minmax(0, 1fr); } }
.swipe { display: none; }
@media (max-width: 900px) { .swipe { display: inline; } }

.flow-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (max-width: 640px) { .flow-scroll .flow { min-width: 600px; } }

.flow-ctrl { display: flex; align-items: center; gap: 12px 18px; flex-wrap: wrap; margin-top: 14px; }
.flow-ctrl .flow-note { margin: 0; }
.flow-wrap .m-std { display: none; }
.flow-wrap.std .m-std { display: inline; }
.flow-wrap.std g.m-std { display: inline; }
.flow-wrap.std .m-clouy { display: none; }
.flow-wrap.std .flow .row, .flow-wrap.std .flow .wire, .flow-wrap.std .flow .run { opacity: 0.18; }
.flow-wrap.std .flow .run { animation-play-state: paused; }
.flow-wrap.std .flow .seg-arc { stroke: var(--faint); }
.flow-wrap.std .flow .tag rect { stroke: var(--line); }
.flow .row, .flow .wire { transition: opacity 0.4s; }
html[data-lang="de"] .flow-wrap.std [data-l="en"], html[data-lang="en"] .flow-wrap.std [data-l="de"] { display: none !important; }

/* =========================================================
   Überarbeitung v2
   ========================================================= */
/* Lese-Fortschritt */
.progress { position: fixed; left: 0; top: env(safe-area-inset-top, 0px); height: 2px; width: 100%; z-index: 80; background: var(--ink); transform-origin: 0 50%; transform: scaleX(0); pointer-events: none; }

/* Text füllt sich beim Scrollen */
.fill-text {
  font-family: var(--f-display); font-weight: 400; font-size: clamp(28px, 3.5vw, 48px); line-height: 1.22; letter-spacing: -0.012em;
  max-width: 30ch; margin: 22px 0 clamp(48px, 6vw, 80px); text-wrap: pretty;
}
.fill-text .w { color: var(--ink); transition: color 0.35s ease; }
.js .fill-text.armed .w { color: color-mix(in srgb, var(--ink) 20%, transparent); }
.js .fill-text.armed .w.on { color: var(--ink); }
.fill-text .w.first { font-style: italic; }

/* Ehrlichkeit im Pilot */
.honest { font-size: 14.5px; color: var(--ink-2); padding: 14px 16px; border-left: 2px solid var(--ink); background: color-mix(in srgb, var(--surface-2) 55%, transparent); border-radius: 0 10px 10px 0; max-width: 56ch; }

/* Ansprechpartner + nächste Schritte */
.founder { display: flex; align-items: center; gap: 14px; padding-top: 22px; border-top: 1px solid var(--line); }
.founder .avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--btn); color: var(--on-btn); display: grid; place-items: center; font-family: var(--f-display); font-size: 24px; flex: none; }
.founder b { display: block; font-weight: 600; font-size: 16px; }
.founder span { color: var(--muted); font-size: 14px; }
.next { display: grid; gap: 14px; padding-top: 22px; border-top: 1px solid var(--line); }
.next h3 { font-size: 15px; font-weight: 600; }
.contact-line { border-top: 0; padding-top: 0; }

/* Vorteile */
.adv { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 96px); }
.adv-head { position: sticky; top: 120px; align-self: start; display: grid; gap: 20px; justify-items: start; }
.adv-list { list-style: none; margin: 0; padding: 0; display: grid; }
.adv-list li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 20px; padding: 30px 0; border-top: 1px solid var(--line); transition: opacity 0.5s var(--ease); }
.adv-list li:last-child { border-bottom: 1px solid var(--line); }
.adv-list svg { width: 24px; height: 24px; margin-top: 6px; }
.adv-list h3 { font-family: var(--f-display); font-weight: 400; font-size: clamp(24px, 2.4vw, 31px); line-height: 1.15; letter-spacing: -0.012em; }
.adv-list p { margin-top: 8px; color: var(--ink-2); font-size: 16px; max-width: 52ch; }
.js .adv-list.armed li { opacity: 0.28; }
.js .adv-list.armed li.on { opacity: 1; }
@media (max-width: 960px) { .adv { grid-template-columns: minmax(0, 1fr); } .adv-head { position: static; } }

/* ---------- Erklärvideo ---------- */
.player { border-radius: 20px; border: 1px solid var(--line); background: var(--surface-2); box-shadow: var(--shadow); overflow: hidden; }
.stage { position: relative; aspect-ratio: 16 / 9; max-width: 100%; overflow: hidden;
  background: radial-gradient(circle, var(--dot) 1px, transparent 1.3px) 0 0 / 18px 18px, var(--surface); }
.scene { position: absolute; inset: 0 0 18%; display: grid; place-items: center; opacity: 0; visibility: hidden; transition: opacity 0.5s ease, visibility 0.5s; }
.scene.on { opacity: 1; visibility: visible; }
.captions { position: absolute; left: 0; right: 0; bottom: 0; height: 18%; display: grid; place-items: center; padding: 0 6%; }
.captions p { grid-area: 1 / 1; text-align: center; font-family: var(--f-display); font-size: clamp(15px, 2vw, 25px); line-height: 1.25; letter-spacing: -0.005em; max-width: 40ch; opacity: 0; transform: translateY(6px); transition: opacity 0.45s ease, transform 0.45s ease; }
.captions p.on { opacity: 1; transform: none; }
.pbar { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-top: 1px solid var(--line); }
.pbtn { width: 36px; height: 36px; flex: none; border-radius: 50%; border: 0; background: var(--btn); color: var(--on-btn); display: grid; place-items: center; cursor: pointer; }
.pbtn svg { width: 14px; height: 14px; }
.pbtn .i-play { display: none; }
.player.paused .pbtn .i-play { display: block; }
.player.paused .pbtn .i-pause { display: none; }
.segs { flex: 1; display: flex; gap: 6px; min-width: 0; }
.segs button { flex: var(--d, 1); height: 22px; border: 0; padding: 0; background: transparent; cursor: pointer; position: relative; }
.segs button::before { content: ""; position: absolute; left: 0; right: 0; top: 9px; height: 4px; border-radius: 4px; background: var(--line-2); }
.segs button i { position: absolute; left: 0; top: 9px; height: 4px; border-radius: 4px; background: var(--ink); width: 0; }
.ptime { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 6.5ch; text-align: right; }
.player-foot { display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; margin-top: 16px; font-size: 13.5px; }
/* Szenen-Bausteine */
.vcard2 { background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: clamp(10px, 1.6vw, 18px); display: grid; gap: 4px; font-size: clamp(11px, 1.2vw, 14px); }
.vcard2 > svg { width: clamp(18px, 2.2vw, 26px); height: clamp(18px, 2.2vw, 26px); margin-bottom: 6px; }
.vcard2 b { font-weight: 600; }
.vcard2 > span { color: var(--muted); }
@keyframes popIn { from { opacity: 0; transform: translateY(14px) scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideR { 0% { opacity: 0; transform: translateX(-24px); } 100% { opacity: 1; transform: none; } }
@keyframes grow { from { width: 0; } to { width: var(--w, 100%); } }
@keyframes dash { to { stroke-dashoffset: -24; } }
.scene .anim, .scene [class*="vcard2"], .scene .chip2, .scene .bubble, .scene .tick2, .scene .acts, .scene .stamp2, .scene .own, .scene .cloud-x, .scene .end-mark, .scene .end-t, .scene .endcard .btn { opacity: 0; }
.scene.on .vcard2, .scene.on .chip2 { animation: popIn 0.7s var(--ease) both; }
.sc-sources .src-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 2vw, 22px); width: min(84%, 820px); }
@media (min-width: 900px) { .sc-sources .vcard2 { padding: 22px; font-size: 15px; } }
.sc-sources.on .vcard2:nth-child(2) { animation-delay: 0.5s; }
.sc-sources.on .vcard2:nth-child(3) { animation-delay: 1s; }
.collect { display: grid; grid-template-columns: auto minmax(40px, 120px) auto; align-items: center; width: min(86%, 720px); justify-content: center; }
.chips-col { display: grid; gap: clamp(8px, 1.6vw, 18px); }
.chip2 { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); box-shadow: var(--shadow); font-size: clamp(11px, 1.2vw, 14px); }
.chip2 svg { width: 16px; height: 16px; }
.sc-collect.on .chip2 { animation-name: slideR; }
.sc-collect.on .chip2:nth-child(2) { animation-delay: 0.25s; } .sc-collect.on .chip2:nth-child(3) { animation-delay: 0.5s; }
.links { width: 100%; height: clamp(90px, 14vw, 150px); overflow: visible; }
.links path { fill: none; stroke: var(--ink); stroke-width: 1.4; stroke-dasharray: 3 9; vector-effect: non-scaling-stroke; opacity: 0; }
.sc-collect.on .links path { animation: fadeIn 0.4s 0.8s both, dash 1.4s linear infinite; }
.prep { min-width: clamp(170px, 24vw, 250px); gap: 8px; }
.sc-collect.on .prep { animation-delay: 1s; }
.tick2 { display: flex; align-items: center; gap: 8px; color: var(--ink-2) !important; }
.tick2 svg { width: 14px; height: 14px; flex: none; color: var(--ok); }
.sc-collect.on .tick2 { animation: fadeIn 0.4s both; }
.sc-collect.on .tick2:nth-of-type(1) { animation-delay: 2s; } .sc-collect.on .tick2:nth-of-type(2) { animation-delay: 2.7s; } .sc-collect.on .tick2:nth-of-type(3) { animation-delay: 3.4s; }
.sc-model { grid-template-columns: auto auto; gap: clamp(16px, 4vw, 48px); align-content: center; justify-content: center; }
.house { position: relative; width: clamp(220px, 40vw, 440px); aspect-ratio: 16 / 10; border: 1.5px dashed color-mix(in srgb, var(--ink) 55%, transparent); border-radius: 18px; display: grid; place-items: center; align-content: center; gap: 14px; }
.house-lab { position: absolute; top: 10px; left: 14px; font-size: clamp(11px, 1.2vw, 13px); color: var(--muted); font-weight: 500; }
.model-block { width: clamp(46px, 6vw, 70px); aspect-ratio: 1; border-radius: 14px; background: var(--btn); color: var(--on-btn); display: grid; place-items: center; opacity: 0; }
.model-block svg { width: 50%; height: 50%; }
.sc-model.on .model-block { animation: popIn 0.6s 0.3s var(--ease) both; }
.train { display: grid; gap: 6px; width: 64%; font-size: clamp(10.5px, 1.1vw, 13px); color: var(--ink-2); text-align: center; opacity: 0; }
.train i { display: block; height: 5px; border-radius: 5px; background: var(--line-2); overflow: hidden; }
.train b { display: block; height: 100%; width: 0; background: var(--ink); }
.sc-model.on .train { animation: fadeIn 0.4s 0.8s both; }
.sc-model.on .train b { animation: grow 2.6s 1s var(--ease) both; }
.own { position: absolute; right: -12px; bottom: -14px; display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; border-radius: 9px; background: var(--btn); color: var(--on-btn); font-size: clamp(11px, 1.2vw, 13px); font-weight: 600; }
.own svg { width: 14px; height: 14px; }
.sc-model.on .own { animation: popIn 0.5s 3.8s var(--ease) both; }
.cloud-x { display: grid; gap: 4px; justify-items: center; padding: 14px 18px; border-radius: 14px; border: 1px solid var(--line); color: var(--muted); font-size: clamp(11px, 1.2vw, 13px); position: relative; }
.cloud-x em { font-style: normal; font-size: 0.9em; text-decoration: line-through; }
.cloud-x::before { content: ""; position: absolute; right: 100%; top: 50%; width: clamp(16px, 4vw, 48px); border-top: 1.5px dashed var(--faint); }
.sc-model.on .cloud-x { animation: fadeIn 0.5s 1.6s both; }
.chatwin { width: min(78%, 560px); display: grid; gap: 10px; }
.chatwin .bubble { font-size: clamp(11.5px, 1.35vw, 15px); max-width: 88%; }
.sc-ask.on .bubble.me { animation: popIn 0.5s 0.2s var(--ease) both; }
.sc-ask.on .bubble.ai { animation: popIn 0.5s 1.6s var(--ease) both; }
.chatwin .srcs { display: block; margin-top: 8px; }
.acts { display: inline-flex; gap: 8px; }
.acts > span { font-size: clamp(11px, 1.2vw, 13px); padding: 6px 12px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--surface-2); }
.acts > span.pri { background: var(--btn); color: var(--on-btn); border-color: transparent; }
.sc-ask.on .acts { animation: fadeIn 0.5s 3.2s both; }
.improve { display: grid; gap: 16px; width: min(70%, 460px); }
.improve .fix { justify-self: end; font-size: clamp(11.5px, 1.35vw, 15px); }
.sc-improve.on .fix { animation: popIn 0.5s 0.2s var(--ease) both; }
.vers2 { gap: 12px; }
.sc-improve.on .vers2 { animation-delay: 1.2s; }
.vers2 .v { display: grid; grid-template-columns: 30px 1fr; align-items: center; gap: 12px; font-weight: 600; }
.vers2 .v i { display: block; height: 7px; border-radius: 7px; background: var(--line); overflow: hidden; }
.vers2 .v b { display: block; height: 100%; width: 0; border-radius: 7px; background: var(--faint); }
.vers2 .v.new b { background: var(--ink); }
.sc-improve.on .vers2 .v b { animation: grow 1.2s 1.8s var(--ease) both; }
.sc-improve.on .vers2 .v.new b { animation-delay: 2.5s; }
.stamp2 { justify-self: start; display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px; border-radius: 8px; background: var(--btn); color: var(--on-btn) !important; font-size: clamp(11px, 1.2vw, 13px); font-weight: 600; }
.stamp2 svg { width: 13px; height: 13px; }
.sc-improve.on .stamp2 { animation: popIn 0.5s 4s var(--ease) both; }
.endcard { display: grid; justify-items: center; gap: clamp(12px, 2vw, 22px); text-align: center; }
.end-mark { width: clamp(36px, 5vw, 54px); height: clamp(36px, 5vw, 54px); display: block; color: var(--ink); }
.end-mark svg { width: 100%; height: 100%; }
.end-t { font-family: var(--f-display); font-size: clamp(28px, 5vw, 60px); line-height: 1.05; letter-spacing: -0.02em; }
.end-t em { color: var(--muted); }
.sc-end.on .end-mark { animation: popIn 0.6s 0.1s var(--ease) both; }
.sc-end.on .end-t { animation: popIn 0.6s 0.4s var(--ease) both; }
.sc-end.on .endcard .btn { animation: popIn 0.6s 0.9s var(--ease) both; }
.player.paused .scene * { animation-play-state: paused !important; }
@media (max-width: 640px) {
  .stage { aspect-ratio: 4 / 5; }
  .scene { inset: 0 0 24%; }
  .captions { height: 24%; }
  .sc-sources .src-row { grid-template-columns: minmax(0, 1fr); width: 74%; gap: 10px; }
  .vcard2 > svg { display: none; }
  .collect { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 12px; }
  .chips-col { grid-auto-flow: column; gap: 6px; }
  .chip2 { padding: 5px 8px; font-size: 11px; } .chip2 svg { display: none; }
  .links { display: none; }
  .sc-model { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 22px; }
  .house { width: 74vw; }
  .own { right: 8px; }
  .cloud-x::before { display: none; }
  .chatwin, .improve { width: 86%; }
  .player-foot { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { .scene .anim, .scene * { opacity: 1 !important; } }
