/* Onyx – One-Pager. Reines CSS, System-Schriften, keine externen Ressourcen. */

:root {
  color-scheme: dark light;
  --bg: #05060b;
  --bg-2: #0b0d1a;
  --surface: rgba(20, 23, 42, 0.62);
  --surface-strong: rgba(28, 32, 58, 0.85);
  --text: #eceefb;
  --muted: #a8aecb;
  --line: rgba(255, 255, 255, 0.13);
  --violet: #a68bff;
  --cyan: #35d6f5;
  --pink: #ff7ab4;
  --amber: #ffc24d;
  --green: #3fe0a5;
  --red: #ff8794;
  --on-accent: #05060b;
  --glow-a: rgba(124, 92, 255, 0.34);
  --glow-b: rgba(34, 211, 238, 0.26);
  --glow-c: rgba(255, 90, 160, 0.22);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --radius: 18px;
  --maxw: 1180px;
  --pad: clamp(16px, 4vw, 32px);
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f5f6fc;
    --bg-2: #e9ebf8;
    --surface: rgba(255, 255, 255, 0.72);
    --surface-strong: rgba(255, 255, 255, 0.95);
    --text: #12142a;
    --muted: #464b6b;
    --line: rgba(20, 24, 60, 0.18);
    --violet: #5a3fd6;
    --cyan: #0a758c;
    --pink: #b3125f;
    --amber: #8a5300;
    --green: #09724d;
    --red: #b3202f;
    --on-accent: #ffffff;
    --glow-a: rgba(124, 92, 255, 0.18);
    --glow-b: rgba(34, 211, 238, 0.16);
    --glow-c: rgba(255, 90, 160, 0.12);
    --shadow: 0 16px 40px rgba(40, 44, 100, 0.16);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
  min-width: 320px;
}
img, svg, canvas { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
code, .mono { font-family: var(--mono); }
code {
  font-size: 0.88em;
  padding: 0.1em 0.4em;
  border-radius: 6px;
  background: rgba(127, 127, 160, 0.18);
  border: 1px solid var(--line);
}

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

.skip-link {
  position: absolute; left: 12px; top: -80px; z-index: 100;
  padding: 10px 16px; border-radius: 10px;
  background: var(--surface-strong); color: var(--text); border: 1px solid var(--line);
}
.skip-link:focus { top: 12px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Hintergrund: Aurora + Raster ---------- */
.backdrop { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: var(--bg); }
.backdrop::after {
  content: ""; position: absolute; inset: 0; opacity: 0.5;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 0%, transparent 70%);
  mask-image: radial-gradient(ellipse at 50% 30%, #000 0%, transparent 70%);
}
.blob { position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%; filter: blur(80px); will-change: transform; }
.blob-a { background: var(--glow-a); top: -20vmax; left: -15vmax; animation: drift-a 26s ease-in-out infinite alternate; }
.blob-b { background: var(--glow-b); top: 30vh; right: -25vmax; animation: drift-b 32s ease-in-out infinite alternate; }
.blob-c { background: var(--glow-c); bottom: -30vmax; left: 20vw; animation: drift-a 38s ease-in-out infinite alternate-reverse; }
@keyframes drift-a { to { transform: translate3d(12vmax, 8vmax, 0) scale(1.15); } }
@keyframes drift-b { to { transform: translate3d(-14vmax, -6vmax, 0) scale(0.9); } }

.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; background: transparent; }
.progress-bar {
  height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(var(--p, 0));
  background: linear-gradient(90deg, var(--violet), var(--cyan), var(--pink));
  box-shadow: 0 0 12px var(--cyan);
}

/* ---------- Kopf / Navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad);
  display: flex; align-items: center; gap: 16px; min-height: 56px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: 0.02em; text-decoration: none; flex: none; }
.brand-gem { width: 26px; height: 26px; }
.nav { flex: 1; min-width: 0; }
.nav ul {
  display: flex; gap: 4px; overflow-x: auto; padding: 8px 2px; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12px, #000 calc(100% - 12px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 12px, #000 calc(100% - 12px), transparent 100%);
}
.nav ul::-webkit-scrollbar { display: none; }
.nav a {
  display: inline-block; white-space: nowrap; text-decoration: none; font-size: 0.85rem;
  padding: 6px 12px; border-radius: 999px; color: var(--muted); border: 1px solid transparent;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}
.nav a:hover { color: var(--text); background: rgba(127, 127, 170, 0.14); }
.nav a[aria-current="true"] { color: var(--text); border-color: var(--violet); background: rgba(124, 92, 255, 0.18); }

/* ---------- Layout ---------- */
main { display: block; }
.section { position: relative; overflow-x: clip; padding: clamp(72px, 11vw, 140px) var(--pad); }
.wrap { max-width: var(--maxw); margin: 0 auto; }
.split { display: grid; gap: clamp(28px, 5vw, 64px); grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 960px) {
  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .split.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .split.flip .copy { order: 2; }
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono);
  font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cyan);
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: linear-gradient(90deg, var(--cyan), transparent); }
h2 {
  font-size: clamp(1.9rem, 4.4vw, 3.1rem); line-height: 1.1; letter-spacing: -0.02em; margin: 14px 0 18px;
  background: linear-gradient(120deg, var(--text) 30%, var(--violet) 75%, var(--cyan));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
h3 { font-size: 1.1rem; line-height: 1.3; }
.copy p { color: var(--muted); max-width: 56ch; }
.copy p + p { margin-top: 14px; }
.copy strong { color: var(--text); font-weight: 650; }
.note { font-size: 0.82rem; color: var(--muted); margin-top: 14px; }

.facts { margin-top: 22px; display: grid; gap: 10px; }
.facts li {
  display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: start;
  padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line);
  color: var(--muted); font-size: 0.93rem;
}
.facts li strong { display: block; color: var(--text); font-size: 0.95rem; }
.fact-icon {
  width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
  font-family: var(--mono); font-weight: 700; font-size: 0.95rem; color: var(--on-accent);
  background: linear-gradient(135deg, var(--violet), var(--cyan));
}

.glass {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: var(--shadow);
}
.glass::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(140deg, rgba(166, 139, 255, 0.55), transparent 35%, transparent 65%, rgba(53, 214, 245, 0.45));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0.7;
}
.stage { padding: clamp(14px, 2.6vw, 26px); min-width: 0; }
.caption { font-size: 0.8rem; color: var(--muted); margin-top: 12px; }

/* ---------- Scroll-Reveal (nur mit JS aktiv) ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s cubic-bezier(.2,.7,.2,1), transform 0.8s cubic-bezier(.2,.7,.2,1); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal[data-delay="1"] { transition-delay: 0.12s; }
.js .reveal[data-delay="2"] { transition-delay: 0.24s; }
.js .reveal[data-delay="3"] { transition-delay: 0.36s; }

/* ---------- Hero ---------- */
.hero { min-height: calc(100svh - 56px); display: grid; align-items: center; padding-top: clamp(40px, 6vw, 80px); padding-bottom: 130px; overflow: hidden; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero-inner { position: relative; z-index: 1; text-align: center; max-width: 900px; margin: 0 auto; }
.hero .eyebrow { justify-content: center; }
.hero h1 {
  font-size: clamp(2.1rem, 6.6vw, 4.4rem); line-height: 1.04; letter-spacing: -0.035em; margin: 18px 0 22px;
}
.hero h1 .grad {
  background: linear-gradient(110deg, var(--violet) 0%, var(--cyan) 50%, var(--pink) 100%);
  background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: sheen 7s linear infinite;
}
@keyframes sheen { to { background-position: -200% 0; } }
.lead { font-size: clamp(1.05rem, 2.1vw, 1.3rem); color: var(--muted); max-width: 62ch; margin: 0 auto; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 30px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 10px 22px; border-radius: 999px;
  font: inherit; font-weight: 650; text-decoration: none; cursor: pointer; border: 1px solid var(--line);
  color: var(--text); background: var(--surface); transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.btn:hover { transform: translateY(-2px); border-color: var(--violet); }
.btn-primary { color: var(--on-accent); border: 0; background: linear-gradient(120deg, var(--violet), var(--cyan)); box-shadow: 0 8px 30px var(--glow-a); }
.btn-primary:hover { box-shadow: 0 10px 40px var(--glow-b); }
.btn[disabled] { opacity: 0.6; cursor: progress; transform: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 28px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; font-size: 0.84rem; padding: 6px 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); color: var(--muted);
}
.chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.35; transform: scale(0.7); } }
.scroll-hint {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 1;
  display: grid; justify-items: center; gap: 8px; text-decoration: none; color: var(--muted); font-size: 0.8rem;
}
.mouse { width: 24px; height: 38px; border: 2px solid currentColor; border-radius: 14px; position: relative; }
.mouse::after { content: ""; position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--cyan); animation: wheel 1.8s ease-in-out infinite; }
@keyframes wheel { 0% { opacity: 1; transform: translateY(0); } 80%, 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Gemeinsame Bausteine ---------- */
.tag {
  display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.02em;
  padding: 2px 8px; border-radius: 999px; border: 1px solid currentColor; white-space: nowrap;
}
.tag { white-space: normal; overflow-wrap: anywhere; line-height: 1.35; }
.tag.violet { color: var(--violet); } .tag.cyan { color: var(--cyan); } .tag.pink { color: var(--pink); }
.tag.amber { color: var(--amber); } .tag.green { color: var(--green); } .tag.muted { color: var(--muted); }
.packet { fill: var(--cyan); filter: drop-shadow(0 0 6px var(--cyan)); }
.packet.pink { fill: var(--pink); filter: drop-shadow(0 0 6px var(--pink)); }
.packet.amber { fill: var(--amber); filter: drop-shadow(0 0 6px var(--amber)); }
.packet.green { fill: var(--green); filter: drop-shadow(0 0 6px var(--green)); }
.packet.violet { fill: var(--violet); filter: drop-shadow(0 0 6px var(--violet)); }

/* ---------- 1 Eingang ---------- */
.inbox { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 560px) { .inbox { grid-template-columns: minmax(0, 1fr) 70px 150px; } }
.inbox-cards { display: grid; gap: 12px; }
.card {
  display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px;
  background: var(--surface-strong); border: 1px solid var(--line); box-shadow: var(--shadow);
  transition: transform 0.9s cubic-bezier(.2,.8,.2,1), opacity 0.7s, filter 0.7s;
}
.card-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; font-family: var(--mono); color: var(--on-accent); }
.card-ico.task { background: linear-gradient(135deg, var(--violet), var(--pink)); }
.card-ico.issue { background: linear-gradient(135deg, var(--green), var(--cyan)); }
.card small { display: block; color: var(--muted); font-family: var(--mono); font-size: 0.72rem; }
.card span.title { font-weight: 600; font-size: 0.93rem; line-height: 1.35; }
.js .inbox-cards .card { opacity: 0; transform: translateX(-90px) rotate(-4deg) scale(0.92); }
.js .inbox-cards .card:nth-child(even) { transform: translateX(90px) rotate(4deg) scale(0.92); }
.js .inbox-cards.is-in .card { opacity: 1; transform: none; }
.js .inbox-cards.is-in .card:nth-child(1) { transition-delay: 0s; }
.js .inbox-cards.is-in .card:nth-child(2) { transition-delay: 0.18s; }
.js .inbox-cards.is-in .card:nth-child(3) { transition-delay: 0.36s; }
.js .inbox-cards.is-in .card:nth-child(4) { transition-delay: 0.54s; }
.js .inbox-cards.is-out .card { opacity: 0; transform: translateX(60px) scale(0.35); filter: blur(4px); transition-delay: 0s; }
.js .inbox-cards.is-out .card:nth-child(2) { transition-delay: 0.12s; }
.js .inbox-cards.is-out .card:nth-child(3) { transition-delay: 0.24s; }
.js .inbox-cards.is-out .card:nth-child(4) { transition-delay: 0.36s; }
.pipe { position: relative; height: 54px; min-height: 54px; }
.pipe::before {
  content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 4px; margin-left: -2px; border-radius: 2px;
  background: repeating-linear-gradient(180deg, var(--cyan) 0 8px, transparent 8px 18px); background-size: 100% 18px;
  animation: flow-v 0.8s linear infinite; opacity: 0.85;
}
@keyframes flow-v { to { background-position: 0 18px; } }
@keyframes flow-h { to { background-position: 18px 0; } }
@media (min-width: 560px) {
  .pipe { height: 100%; min-height: 0; }
  .pipe::before { left: 0; right: 0; top: 50%; bottom: auto; width: auto; height: 4px; margin: -2px 0 0;
    background: repeating-linear-gradient(90deg, var(--cyan) 0 8px, transparent 8px 18px); background-size: 18px 100%; animation-name: flow-h; }
}
.hub { position: relative; width: 150px; height: 150px; justify-self: center; }
.hub svg { width: 100%; height: 100%; overflow: visible; }
.hub-ring { transform-origin: 75px 75px; animation: spin 14s linear infinite; }
.hub-ring.rev { animation-duration: 9s; animation-direction: reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.hub-core { animation: breathe 3s ease-in-out infinite; transform-origin: 75px 75px; }
@keyframes breathe { 50% { transform: scale(1.08); } }

/* ---------- 2 Planung / DAG ---------- */
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); gap: 4px; }
.seg button {
  font: inherit; font-weight: 650; font-size: 0.9rem; min-height: 40px; padding: 6px 18px; border-radius: 999px; border: 0; cursor: pointer;
  color: var(--muted); background: transparent; transition: background 0.25s, color 0.25s;
}
.seg button[aria-pressed="true"] { color: var(--on-accent); background: linear-gradient(120deg, var(--violet), var(--cyan)); }
.dag-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.dag { position: relative; width: 100%; }
.dag-nodes { position: relative; }
.dag-edges { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.edge { fill: none; stroke: var(--violet); stroke-width: 2; opacity: 0.35; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1s ease, opacity 0.4s; }
.edge.is-drawn { stroke-dashoffset: 0; opacity: 0.7; }
/* Ohne Skript bleibt die Knotenliste ein gewöhnlicher Text-Stapel */
.dag-nodes li {
  padding: 10px 12px; border-radius: 14px; background: var(--surface-strong); border: 1px solid var(--line); margin-bottom: 10px;
  font-size: 0.82rem; color: var(--muted);
}
.dag.is-graph .dag-nodes li { position: absolute; margin: 0; transition: left 0.7s cubic-bezier(.2,.8,.2,1), top 0.7s cubic-bezier(.2,.8,.2,1), opacity 0.5s, border-color 0.3s, box-shadow 0.3s; }
.dag-nodes li[hidden] { display: none; }
.node-title { display: block; hyphens: auto; overflow-wrap: anywhere; color: var(--text); font-weight: 700; font-size: 0.9rem; line-height: 1.25; margin-bottom: 6px; }
.node-meta { display: flex; flex-wrap: wrap; gap: 4px; }
.node-state { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-family: var(--mono); font-size: 0.72rem; color: var(--muted); }
.node-state::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.dag-nodes li.is-run { border-color: var(--cyan); box-shadow: 0 0 24px var(--glow-b); }
.dag-nodes li.is-run .node-state { color: var(--cyan); }
.dag-nodes li.is-run .node-state::before { background: var(--cyan); animation: pulse 0.9s ease-in-out infinite; }
.dag-nodes li.is-done { border-color: var(--green); }
.dag-nodes li.is-done .node-state { color: var(--green); }
.dag-nodes li.is-done .node-state::before { content: "✓"; width: auto; height: auto; background: none; font-size: 0.8rem; }
.dag-nodes li.kind-root, .dag-nodes li.kind-end { text-align: center; border-style: dashed; }
.dag-nodes li.kind-root .node-title, .dag-nodes li.kind-end .node-title { margin: 0; }

.fields { margin-top: 22px; display: grid; gap: 10px; }
.fields div { padding: 10px 14px; border-left: 3px solid var(--violet); background: var(--surface); border-radius: 0 12px 12px 0; font-size: 0.92rem; color: var(--muted); }
.fields dt { color: var(--text); font-weight: 650; }

@media (max-width: 420px) {
  .stage { padding: 12px; }
  .dag-nodes li { padding: 8px; }
  .dag-nodes .tag { font-size: 0.66rem; padding: 1px 6px; }
  .node-title { font-size: 0.82rem; }
}

/* ---------- 3 Container ---------- */
.containers { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 700px) { .containers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.term {
  border-radius: 14px; overflow: hidden; background: color-mix(in srgb, var(--bg) 88%, #000); border: 1px solid var(--line);
  box-shadow: var(--shadow); transition: transform 0.8s cubic-bezier(.4,0,.2,1), opacity 0.8s, filter 0.8s; min-width: 0;
}
.term.is-down { transform: scale(0.9) translateY(10px); opacity: 0.28; filter: grayscale(1); }
.term.is-up { animation: boot-up 0.9s cubic-bezier(.2,.9,.2,1); }
@keyframes boot-up { from { transform: scale(0.85); opacity: 0; } to { transform: none; opacity: 1; } }
.term-bar { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 1px solid var(--line); background: var(--surface); font-size: 0.78rem; }
.led { width: 10px; height: 10px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 10px var(--amber); flex: none; }
.term[data-state="work"] .led { background: var(--cyan); box-shadow: 0 0 10px var(--cyan); animation: pulse 1s infinite; }
.term[data-state="done"] .led { background: var(--green); box-shadow: 0 0 10px var(--green); }
.term[data-state="crash"] .led { background: var(--red); box-shadow: 0 0 10px var(--red); }
.term-title { font-family: var(--mono); font-weight: 700; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.term-state { font-family: var(--mono); color: var(--muted); white-space: nowrap; }
.term-body { padding: 12px; min-height: 216px; font-family: var(--mono); font-size: 0.78rem; }
.term-lines { display: grid; gap: 5px; align-content: start; min-height: 150px; }
.term-lines li { color: var(--text); animation: line-in 0.4s ease both; overflow-wrap: anywhere; }
.term-lines li.ok::before { content: "✓ "; color: var(--green); }
.term-lines li.err { color: var(--red); }
.term-lines li.err::before { content: "✕ "; }
.term-lines li.info { color: var(--cyan); }
.term-lines li.info::before { content: "↻ "; }
@keyframes line-in { from { opacity: 0; transform: translateX(-8px); } }
.bar { height: 8px; border-radius: 4px; background: rgba(127, 127, 160, 0.22); overflow: hidden; margin-top: 12px; }
.bar > i { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(var(--v, 0)); background: linear-gradient(90deg, var(--violet), var(--cyan)); transition: transform 0.6s ease; }
.term-foot { margin-top: 8px; color: var(--muted); font-size: 0.72rem; }
.files { margin-top: 18px; display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 700px) { .files { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.file { padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); font-size: 0.88rem; color: var(--muted); }
.file h3 { font-family: var(--mono); font-size: 0.9rem; color: var(--text); display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.file ul { display: grid; gap: 4px; font-family: var(--mono); font-size: 0.78rem; }
.file li::before { content: "☐ "; color: var(--muted); }
.file li.is-done { color: var(--text); }
.file li.is-done::before { content: "☑ "; color: var(--green); }

/* ---------- 4 Warteschlange ---------- */
.q-lanes { display: grid; gap: 10px; }
.lane { display: grid; gap: 8px; padding: 10px 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); border-left-width: 5px; }
.lane-head { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; font-weight: 700; font-size: 0.9rem; }
.lane-head small { font-weight: 400; color: var(--muted); font-size: 0.78rem; }
.lane.hoch { border-left-color: var(--pink); }
.lane.niedrig { border-left-color: var(--cyan); }
.lane.randzeit { border-left-color: var(--amber); border-left-style: dashed; background-image: repeating-linear-gradient(135deg, transparent 0 10px, rgba(255, 194, 77, 0.06) 10px 20px); }
.lane.hoch .lane-head b { color: var(--pink); } .lane.niedrig .lane-head b { color: var(--cyan); } .lane.randzeit .lane-head b { color: var(--amber); }
.lane-jobs { display: flex; gap: 6px; min-height: 34px; align-items: center; overflow: hidden; }
.job {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 8px; font-family: var(--mono); font-size: 0.74rem;
  border: 1px solid currentColor; background: var(--surface-strong); white-space: nowrap; animation: job-in 0.5s cubic-bezier(.2,.9,.2,1) both; flex: none;
}
.job.hoch { color: var(--pink); } .job.niedrig { color: var(--cyan); } .job.randzeit { color: var(--amber); border-style: dashed; }
.job.leaving { animation: job-out 0.45s ease forwards; }
@keyframes job-in { from { opacity: 0; transform: translateX(-40px) scale(0.8); } }
@keyframes job-out { to { opacity: 0; transform: translateX(40px) scale(0.6); } }
.q-slots { margin-top: 12px; display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.slot { min-height: 58px; padding: 8px 10px; border-radius: 12px; border: 1px dashed var(--line); font-size: 0.78rem; color: var(--muted); display: grid; align-content: center; gap: 6px; }
.slot.busy { border-style: solid; border-color: var(--violet); color: var(--text); background: rgba(124, 92, 255, 0.12); }
.q-status { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 12px; font-size: 0.85rem; }
.quiet { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.quiet.is-quiet { color: var(--amber); border-color: var(--amber); }
.q-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.btn-sm { min-height: 44px; padding: 6px 14px; font-size: 0.85rem; }

/* ---------- 5 Kapazität ---------- */
.cap { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 620px) { .cap { grid-template-columns: 240px minmax(0, 1fr); } }
.gauge { width: 100%; max-width: 260px; margin: 0 auto; }
.gauge-track { fill: none; stroke: rgba(127, 127, 160, 0.25); stroke-width: 16; stroke-linecap: round; }
.gauge-fill { fill: none; stroke-width: 16; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--v, 0)); transition: stroke-dashoffset 0.9s cubic-bezier(.3,.8,.3,1); }
.gauge-needle { transform-origin: 120px 120px; transform: rotate(calc(var(--v, 0) * 180deg - 90deg)); transition: transform 0.9s cubic-bezier(.3,.8,.3,1); }
.needle-line { stroke: var(--text); stroke-width: 3; stroke-linecap: round; }
.needle-hub { fill: var(--text); }
.hub-fill { fill: var(--bg-2); }
.git-dev { stroke: var(--muted); stroke-width: 3; opacity: 0.5; }
.gauge-limit { stroke: var(--red); stroke-width: 3; }
.gauge-text { fill: var(--text); font-family: var(--mono); font-size: 22px; font-weight: 700; text-anchor: middle; }
.gauge-sub { fill: var(--muted); font-size: 11px; text-anchor: middle; }
.slots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.cslot { position: relative; height: 96px; border-radius: 12px; border: 1px dashed var(--line); overflow: hidden; display: grid; place-items: end center; font-size: 0.7rem; color: var(--muted); padding-bottom: 6px; }
.cslot::before { content: ""; position: absolute; inset: auto 0 0 0; height: calc(var(--v, 0) * 100%); background: linear-gradient(0deg, var(--violet), var(--cyan)); opacity: 0.55; transition: height 0.8s cubic-bezier(.3,.8,.3,1); }
.cslot span { position: relative; font-family: var(--mono); font-weight: 700; color: var(--text); }
.cslot.busy { border-style: solid; border-color: var(--violet); }
.verdict { margin-top: 14px; padding: 10px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: 0.86rem; display: grid; gap: 4px; }
.checks { display: flex; flex-wrap: wrap; gap: 8px 16px; font-family: var(--mono); font-size: 0.78rem; color: var(--muted); }
.checks .ck::before { content: "○ "; }
.checks .ck.pass { color: var(--green); } .checks .ck.pass::before { content: "✓ "; }
.checks .ck.fail { color: var(--red); } .checks .ck.fail::before { content: "✕ "; }
.verdict-text { font-weight: 650; }
.verdict.shake { animation: shake 0.45s; }
@keyframes shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }

/* ---------- 6 Abo-Limits ---------- */
.limits { display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr); justify-items: center; }
@media (min-width: 620px) { .limits { grid-template-columns: 250px minmax(0, 1fr); justify-items: stretch; align-items: center; } }
.ring { width: 100%; max-width: 250px; }
.ring-track { fill: none; stroke: rgba(127, 127, 160, 0.25); stroke-width: 20; }
.ring-fill { fill: none; stroke-width: 20; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--v, 1)); transform: rotate(-90deg); transform-origin: 120px 120px; transition: stroke-dashoffset 0.35s linear; }
.ring.is-low .ring-fill { stroke: var(--red); }
.ring-text { fill: var(--text); font-family: var(--mono); font-size: 34px; font-weight: 800; text-anchor: middle; }
.ring-sub { fill: var(--muted); font-size: 12px; text-anchor: middle; }
.consumers { display: grid; gap: 8px; }
.consumer { display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: center; padding: 8px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: 0.86rem; }
.consumer .c-ico { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font-family: var(--mono); font-weight: 800; font-size: 0.78rem; color: var(--on-accent); background: linear-gradient(135deg, var(--violet), var(--cyan)); }
.consumer .c-state { font-family: var(--mono); font-size: 0.74rem; color: var(--cyan); }
.consumer.is-paused { opacity: 0.7; }
.consumer.is-paused .c-state { color: var(--amber); }
.consumer.is-run .c-ico { animation: pulse 1s infinite; }
.limit-banner { margin-top: 12px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font-size: 0.86rem; font-weight: 600; }
.limit-banner.is-limit { border-color: var(--amber); color: var(--amber); }
.limit-banner.is-reset { border-color: var(--green); color: var(--green); }
.effort { margin-top: 22px; display: grid; gap: 10px; }
.effort li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: center; padding: 10px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); font-size: 0.92rem; color: var(--muted); }
.effort li strong { color: var(--text); display: block; }
.steps-ico { display: flex; align-items: flex-end; gap: 3px; height: 28px; }
.steps-ico i { width: 7px; border-radius: 2px; background: linear-gradient(0deg, var(--violet), var(--cyan)); }
.steps-ico i:nth-child(1) { height: 30%; } .steps-ico i:nth-child(2) { height: 55%; } .steps-ico i:nth-child(3) { height: 80%; }

/* ---------- 7 Merge ---------- */
.merge { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 620px) { .merge { grid-template-columns: minmax(0, 1fr) minmax(0, 220px); } }
.git { width: 100%; max-width: 420px; margin: 0 auto; overflow: visible; }
.lane-line { fill: none; stroke-width: 4; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.1s ease; }
.git .c-a { stroke: var(--violet); } .git .c-b { stroke: var(--cyan); } .git .c-c { stroke: var(--pink); } .git .c-d { stroke: var(--green); } .git .c-main { stroke: var(--amber); }
.git.s-1 .branch { stroke-dashoffset: 0; }
.git.s-2 .join { stroke-dashoffset: 0; }
.git.s-3 .main-line { stroke-dashoffset: 0; }
.commit { fill: var(--bg); stroke-width: 3; opacity: 0; transform-box: fill-box; transform-origin: center; transform: scale(0); transition: opacity 0.4s, transform 0.5s cubic-bezier(.2,1.6,.4,1); }
.git.s-1 .commit.cm { opacity: 1; transform: none; }
.git.s-2 .commit.cj { opacity: 1; transform: none; }
.git.s-3 .commit.cf { opacity: 1; transform: none; }
.commit.c-a { stroke: var(--violet); } .commit.c-b { stroke: var(--cyan); } .commit.c-c { stroke: var(--pink); } .commit.c-d { stroke: var(--green); } .commit.c-main { stroke: var(--amber); fill: var(--amber); }
.git-label { fill: var(--text); font-family: var(--mono); font-size: 16px; font-weight: 700; text-anchor: middle; }
.git-note { fill: var(--muted); font-size: 14px; }
.spark { opacity: 0; fill: none; stroke: var(--amber); stroke-width: 2.5; stroke-linecap: round; }
.git.s-2 .spark { animation: spark 1.2s ease 0.6s 1 both; }
@keyframes spark { 0% { opacity: 0; } 30% { opacity: 1; } 100% { opacity: 0; transform: scale(1.6); } }
.git .spark { transform-box: fill-box; transform-origin: center; }
.cleanup { opacity: 0; transition: opacity 0.5s; }
.git.s-3 .cleanup { opacity: 1; }
.todo { display: grid; gap: 8px; }
.todo li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: center; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font-size: 0.86rem; color: var(--muted); transition: color 0.4s, border-color 0.4s; }
.todo li::before { content: "○"; font-size: 1.1rem; text-align: center; }
.todo li.is-on { color: var(--text); border-color: var(--green); }
.todo li.is-on::before { content: "✓"; color: var(--green); font-weight: 800; }

/* ---------- 8 Ergebnisse ---------- */
.results { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); margin-top: 40px; }
@media (min-width: 760px) { .results { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.result { padding: 22px; display: grid; gap: 12px; align-content: start; }
.result svg { width: 64px; height: 64px; overflow: visible; }
.result p { color: var(--muted); font-size: 0.92rem; }
.result-ico * { fill: none; stroke: var(--cyan); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.result .dot { fill: var(--cyan); stroke: none; }
.done-ring { display: grid; place-items: center; margin: 0 auto 8px; position: relative; width: 120px; height: 120px; }
.done-ring svg { width: 120px; height: 120px; }
.done-circle { fill: none; stroke: var(--green); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transform: rotate(-90deg); transform-origin: 60px 60px; }
.done-check { fill: none; stroke: var(--green); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.is-live .done-circle { animation: draw 1.1s ease 0.2s forwards; }
.is-live .done-check { animation: draw 0.6s ease 1.1s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.done-glow { position: absolute; inset: -20px; border-radius: 50%; background: radial-gradient(circle, var(--green), transparent 65%); opacity: 0; filter: blur(16px); }
.is-live .done-glow { animation: glow-pop 1.8s ease 1.2s 1 both; }
@keyframes glow-pop { 40% { opacity: 0.45; } 100% { opacity: 0; } }
.confetti { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; }
.head-center { text-align: center; position: relative; }
.head-center .eyebrow { justify-content: center; }
.head-center p { margin: 0 auto; color: var(--muted); max-width: 60ch; }
.doc-line { stroke-dasharray: 1; stroke-dashoffset: 1; }
.is-live .doc-line { animation: draw 1.2s ease forwards; }
.is-live .doc-line:nth-of-type(2) { animation-delay: 0.3s; }
.is-live .doc-line:nth-of-type(3) { animation-delay: 0.6s; }
.is-live .rocket { animation: hover 3s ease-in-out infinite; }
@keyframes hover { 50% { transform: translateY(-5px); } }
.is-live .merge-arrow { animation: nudge 2s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateX(4px); } }

/* ---------- 9 Simulation ---------- */
.sim { margin-top: 36px; padding: clamp(16px, 3vw, 30px); }
.stations { position: relative; display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); counter-reset: st; }
@media (min-width: 900px) { .stations { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; } }
.station { position: relative; z-index: 1; padding: 12px; border-radius: 14px; background: var(--surface-strong); border: 1px solid var(--line); text-align: center; font-size: 0.82rem; color: var(--muted); transition: border-color 0.3s, box-shadow 0.3s, color 0.3s; display: grid; gap: 4px; justify-items: center; }
@media (max-width: 899px) { .station { grid-template-columns: 44px 1fr; text-align: left; justify-items: start; align-items: center; column-gap: 12px; } .station .st-ico { grid-row: span 2; } }
.station .st-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-family: var(--mono); font-weight: 800; color: var(--on-accent); background: linear-gradient(135deg, var(--violet), var(--cyan)); }
.station strong { color: var(--text); font-size: 0.9rem; }
.station.is-lit { border-color: var(--cyan); box-shadow: 0 0 28px var(--glow-b); color: var(--text); }
.station.is-done { border-color: var(--green); }
.station.is-done::after { content: "✓"; position: absolute; top: 6px; right: 10px; color: var(--green); font-weight: 800; }
.sim-packets { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.pk {
  position: absolute; left: 0; top: 0; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 16px 3px var(--cyan); will-change: transform;
}
.pk.pk-a { background: var(--pink); box-shadow: 0 0 16px 3px var(--pink); }
.pk.pk-b { background: var(--amber); box-shadow: 0 0 16px 3px var(--amber); }
.pk.pk-c { background: var(--green); box-shadow: 0 0 16px 3px var(--green); }
.sim-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 22px; }
.log { margin-top: 18px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 85%, #000); font-family: var(--mono); font-size: 0.8rem; min-height: 132px; max-height: 190px; overflow: auto; }
.log p { padding: 2px 0; color: var(--muted); animation: line-in 0.4s ease both; }
.log p:last-child { color: var(--text); }
.log p::before { content: "› "; color: var(--cyan); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 48px var(--pad) 64px; color: var(--muted); font-size: 0.9rem; }
.footer-grid { max-width: var(--maxw); margin: 0 auto; display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 2fr 1fr; } }
.site-footer h2 { font-size: 1.2rem; margin: 0 0 8px; letter-spacing: 0; }
.site-footer p + p { margin-top: 8px; }
.site-footer a { color: var(--cyan); }

/* ---------- Bewegung reduzieren ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; transition-delay: 0s !important; }
  .blob { animation: none !important; }
  .hub-ring, .hub-core, .pipe::before, .mouse::after, .hero h1 .grad { animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .inbox-cards .card, .js .inbox-cards .card:nth-child(even) { opacity: 1; transform: none; }
  .edge { stroke-dashoffset: 0; opacity: 0.7; }
  .lane-line { stroke-dashoffset: 0; }
  .commit, .cleanup { opacity: 1; transform: none; }
  .done-circle, .done-check, .doc-line { stroke-dashoffset: 0; }
  .confetti { display: none; }
}
