/* aeradex — Landingpage. Farben und Schriften aus src/aeradex/web/static/aeradex.css; dunkel ist Standard. */
@font-face { font-family: "Hanken Grotesk"; font-weight: 400; font-display: swap; src: url(fonts/hanken-grotesk-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-weight: 500; font-display: swap; src: url(fonts/hanken-grotesk-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-weight: 600; font-display: swap; src: url(fonts/hanken-grotesk-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-weight: 700; font-display: swap; src: url(fonts/hanken-grotesk-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-display: swap; src: url(fonts/ibm-plex-mono-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-display: swap; src: url(fonts/ibm-plex-mono-latin-500-normal.woff2) format("woff2"); }

/* ---------- Tokens: dunkel (Standard) ---------- */
:root {
  --bg: #08090a; --bg-2: #0d1110; --card: #101513; --card-2: #141b18;
  --ink: #eef2ef; --ink-2: #c9d2cd; --muted: #8e9b94; --faint: #5f6b65;
  --line: rgba(238, 242, 239, .08); --line-2: rgba(238, 242, 239, .14); --line-3: rgba(238, 242, 239, .24);
  --red: #ff5c4d; --red-deep: #c8281c; --on-red: #ffffff; --ember: rgba(255, 92, 77, .22); --ember-2: rgba(255, 140, 90, .10);
  --ok: #6cc893; --warn: #e3b456; --info: #7fb0e0;
  --grid: rgba(238, 242, 239, .045);
  --shadow: 0 0 0 1px rgba(255,255,255,.04), 0 24px 48px -12px rgba(0,0,0,.6), 0 60px 120px -30px rgba(0,0,0,.7);
  /* Fenster für Agent und Code sind in beiden Modi dunkel. */
  --stage: #0b0e0d; --stage-2: #111614; --stage-ink: #e6ece8; --stage-muted: #8a978f; --stage-line: rgba(230,236,232,.09);
  --f-ui: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --f-num: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --wrap: 1200px; --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}
/* ---------- Tokens: hell ---------- */
:root[data-theme="light"] {
  --bg: #f7f8f6; --bg-2: #eff2ef; --card: #ffffff; --card-2: #f9faf8;
  --ink: #111814; --ink-2: #2c3631; --muted: #5b6862; --faint: #8a958f;
  --line: rgba(17, 24, 20, .08); --line-2: rgba(17, 24, 20, .13); --line-3: rgba(17, 24, 20, .24);
  --red: #c8281c; --red-deep: #a81f15; --ember: rgba(200, 40, 28, .13); --ember-2: rgba(240, 120, 70, .10);
  --ok: #2d7a4c; --warn: #9a6a12; --info: #2c5d8a;
  --grid: rgba(17, 24, 20, .05);
  --shadow: 0 0 0 1px rgba(17,24,20,.05), 0 20px 40px -14px rgba(17,24,20,.16), 0 50px 100px -30px rgba(17,24,20,.22);
  color-scheme: light;
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--f-ui); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
.mono, code, pre { font-family: var(--f-num); }
::selection { background: var(--red); color: var(--on-red); }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3 { font-weight: 600; color: var(--ink); text-wrap: balance; }
h2 { font-size: clamp(32px, 4.4vw, 56px); line-height: 1.05; letter-spacing: -.04em; margin-bottom: 24px; }
h3 { font-size: 20px; line-height: 1.3; letter-spacing: -.015em; margin-bottom: 10px; }
.dim { color: var(--muted); }
.intro { color: var(--muted); font-size: clamp(17px, 1.5vw, 19px); max-width: 620px; text-wrap: pretty; }

/* ---------- Marke ---------- */
.coin { width: 24px; height: 24px; color: var(--red); flex: none; display: block; }
.coin svg { width: 100%; height: 100%; display: block; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-weight: 600; font-size: 18px; letter-spacing: -.02em; }

/* ---------- Pills, Labels ---------- */
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 10px; border-radius: 999px; font-size: 13px; font-weight: 500;
  color: var(--ink-2); text-decoration: none; border: 1px solid var(--line-2);
  background: linear-gradient(180deg, color-mix(in srgb, var(--card) 80%, transparent), color-mix(in srgb, var(--bg) 60%, transparent));
  transition: border-color .2s, color .2s; }
.pill:hover { border-color: var(--line-3); color: var(--ink); }
.pill-warn { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 40%, transparent); padding: 4px 12px; font-family: var(--f-num); font-size: 12px; }
.label { display: flex; align-items: center; gap: 12px; font-family: var(--f-num); font-size: 13px; color: var(--muted); letter-spacing: .02em; margin-bottom: 22px; }
.label span { color: var(--red); }
.label::after { content: ""; height: 1px; width: 48px; background: linear-gradient(90deg, var(--line-3), transparent); }
.card-tag { display: inline-block; font-family: var(--f-num); font-size: 12px; color: var(--muted); letter-spacing: .02em; margin-bottom: 16px; }
.card-tag::before { content: "— "; color: var(--red); }

/* ---------- Navigation ---------- */
.nav { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid transparent; transition: background .3s, border-color .3s; }
.nav.scrolled { background: color-mix(in srgb, var(--bg) 72%, transparent); backdrop-filter: saturate(1.5) blur(16px);
  -webkit-backdrop-filter: saturate(1.5) blur(16px); border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.nav nav { margin-left: 18px; }
.nav ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav ul a { text-decoration: none; color: var(--muted); font-size: 14px; font-weight: 500; padding: 6px 12px; border-radius: 8px; transition: color .2s; }
.nav ul a:hover { color: var(--ink); }
.nav .end { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.iconbtn { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line-2);
  background: transparent; color: var(--ink); cursor: pointer; transition: border-color .2s; }
.iconbtn:hover { border-color: var(--line-3); }
.iconbtn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.iconbtn .fill { fill: currentColor; stroke: none; }

/* ---------- Knöpfe ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 48px; padding: 0 22px; border-radius: 999px;
  font: 600 15px var(--f-ui); letter-spacing: -.005em; text-decoration: none; border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s, background .2s, border-color .2s; }
.btn.primary { background: var(--red); color: var(--on-red);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 0 0 1px color-mix(in srgb, var(--red) 70%, black), 0 10px 30px -10px var(--red); }
.btn.primary:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 0 0 1px color-mix(in srgb, var(--red) 70%, black), 0 16px 40px -12px var(--red); }
.btn.ghost { border-color: var(--line-2); color: var(--ink); background: color-mix(in srgb, var(--card) 50%, transparent); }
.btn.ghost:hover { border-color: var(--line-3); background: var(--card); }
.btn.light { background: var(--ink); color: var(--bg); }
.btn.light:hover { opacity: .88; }
.btn.small { height: 36px; padding: 0 14px; font-size: 13.5px; gap: 8px; }
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- Fenster ---------- */
.window { position: relative; border-radius: 14px; background: var(--card); overflow: hidden; box-shadow: var(--shadow); }
.window::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; padding: 1px;
  background: linear-gradient(180deg, var(--line-3), var(--line) 40%, transparent);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.bar { display: flex; align-items: center; gap: 14px; height: 38px; padding: 0 14px; border-bottom: 1px solid var(--line); }
.dots { display: flex; gap: 6px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.url { font-family: var(--f-num); font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
img.d { display: none; }
:root:not([data-theme="light"]) img.l { display: none; }
:root:not([data-theme="light"]) img.d { display: block; }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; padding-top: clamp(56px, 9vw, 112px); overflow: hidden; }
.hero-fx { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-grid { position: absolute; inset: 0; background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 64px 64px; background-position: center top;
  -webkit-mask: radial-gradient(ellipse 70% 55% at 50% 0%, #000 30%, transparent 75%); mask: radial-gradient(ellipse 70% 55% at 50% 0%, #000 30%, transparent 75%); }
.hero-glow { position: absolute; left: 50%; top: 38%; width: min(1400px, 140vw); height: 900px; transform: translateX(-50%);
  background: radial-gradient(closest-side, var(--ember), var(--ember-2) 45%, transparent 75%); filter: blur(20px); }
.hero-copy { max-width: 1120px; }
.hero h1 { font-size: clamp(42px, 7vw, 92px); line-height: .98; letter-spacing: -.055em; margin: 28px 0 28px; font-weight: 600; }
.hero h1 em { font-style: normal; color: transparent; background: linear-gradient(100deg, var(--red) 10%, #ff9a6b 90%); -webkit-background-clip: text; background-clip: text; }
:root[data-theme="light"] .hero h1 em { background: linear-gradient(100deg, var(--red-deep), #e2552e); -webkit-background-clip: text; background-clip: text; }
.lede { font-size: clamp(18px, 1.7vw, 21px); color: var(--muted); max-width: 680px; margin-bottom: 36px; text-wrap: pretty; }
.lede strong { color: var(--ink); font-weight: 500; }

.hero-stage { position: relative; margin-top: clamp(56px, 7vw, 88px); padding-bottom: 40px; }
.app-window { width: 88%; margin-left: auto; }
.app-window img { width: 100%; height: auto; }
.agent-window { position: absolute; left: 0; bottom: 0; width: min(440px, 46%); margin: 0; background: var(--stage); color: var(--stage-ink);
  --line: var(--stage-line); --muted: var(--stage-muted);
  box-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 30px 60px -15px rgba(0,0,0,.65), 0 0 80px -20px var(--ember); }
.agent-window::after { background: linear-gradient(180deg, rgba(255,92,77,.5), rgba(255,255,255,.06) 35%, transparent); }
.agent-badge { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; color: var(--stage-ink); }
.agent-badge i { width: 7px; height: 7px; border-radius: 50%; background: #ff5c4d; box-shadow: 0 0 10px #ff5c4d; animation: pulse 2s infinite; }
.agent-window .url { margin-left: auto; }
.agent-log { list-style: none; margin: 0; padding: 16px 16px 6px; font-family: var(--f-num); font-size: 12.5px; line-height: 1.5; min-height: 236px; }
.ln { display: flex; gap: 10px; align-items: baseline; padding: 4px 0; }
.ln.prompt { font-family: var(--f-ui); font-size: 14px; color: #fff; padding-bottom: 10px; margin-bottom: 6px; border-bottom: 1px dashed var(--stage-line); }
.ln .who { font-family: var(--f-num); font-size: 11px; color: var(--stage-muted); border: 1px solid var(--stage-line); border-radius: 4px; padding: 0 5px; flex: none; }
.ln.tool::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #6cc893; flex: none; transform: translateY(-1px); }
.ln .fn { color: #ffb4a6; }
.ln .arg, .ln .res { color: var(--stage-muted); }
.ln .num { margin-left: auto; color: var(--stage-ink); }
.ln.out { display: block; font-family: var(--f-ui); font-size: 13.5px; color: var(--stage-muted); padding-top: 10px; }
.ln.out b { color: var(--stage-ink); font-weight: 500; }
.ln .ok { color: #6cc893; margin-right: 8px; }
.agent-foot { display: flex; justify-content: space-between; gap: 10px; padding: 10px 16px; border-top: 1px solid var(--stage-line); font-size: 11.5px; color: var(--stage-muted); }
.agent-foot .mono { color: #6cc893; }
/* Getippte Sequenz (nur mit JS und ohne reduzierte Bewegung) */
.js .agent-log.play .ln { opacity: 0; transform: translateY(4px); transition: opacity .35s var(--ease), transform .35s var(--ease); }
.js .agent-log.play .ln.on { opacity: 1; transform: none; }
.caret::after { content: ""; display: inline-block; width: 7px; height: 15px; margin-left: 2px; background: #ff5c4d; vertical-align: -2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@keyframes pulse { 50% { opacity: .45; } }

.works-with { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; padding: 36px 0 8px; border-top: 1px solid var(--line); margin-top: 24px; }
.ww-label { font-family: var(--f-num); font-size: 12px; color: var(--faint); }
.works-with ul { display: flex; flex-wrap: wrap; gap: 10px 40px; list-style: none; margin: 0; padding: 0; }
.works-with li { font-size: 18px; font-weight: 600; letter-spacing: -.02em; color: var(--muted); }

/* ---------- Sektionen ---------- */
.sec { position: relative; padding: clamp(80px, 11vw, 144px) 0; }
.sec + .sec { border-top: 1px solid var(--line); }
.sec-head { margin-bottom: clamp(40px, 5vw, 64px); }
.sec-head.split { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: end; }
.sec-head.split .intro { margin-bottom: 26px; }

/* 01 Rollen */
.roles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0;
  border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(180deg, var(--card), var(--bg)); }
.role { position: relative; padding: 32px 30px 30px; display: flex; flex-direction: column; }
.role + .role { border-left: 1px solid var(--line); }
.role + .role::before { content: "→"; position: absolute; left: -12px; top: 36px; width: 24px; height: 24px; display: grid; place-items: center;
  font-size: 12px; color: var(--muted); background: var(--bg); border: 1px solid var(--line-2); border-radius: 50%; }
.role-top { display: flex; align-items: center; gap: 10px; margin-bottom: 40px; }
.role-n { font-family: var(--f-num); font-size: 13px; color: var(--ink-2); }
.role-ic { width: 32px; height: 32px; border-radius: 9px; border: 1px solid var(--line-2); position: relative; background: var(--card-2); }
.role-ic::after { content: ""; position: absolute; inset: 9px; border-radius: 50%; }
.agent-ic::after { background: var(--red); box-shadow: 0 0 14px var(--red); }
.engine-ic::after { border-radius: 2px; background: var(--ink-2); inset: 10px; }
.you-ic::after { border: 2px solid var(--ok); background: transparent; }
.role h3 { font-size: 22px; }
.role p { color: var(--muted); font-size: 16px; }
.role-code { margin-top: auto; display: block; font-size: 12.5px; color: var(--ink-2); padding: 12px 14px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); }

/* 02 Produkt */
.sec-product { overflow: hidden; }
.sec-product::before { content: ""; position: absolute; left: 50%; top: 55%; width: 1200px; height: 700px; transform: translate(-50%, -50%); z-index: -1;
  background: radial-gradient(closest-side, var(--ember-2), transparent); pointer-events: none; }
.ui-tabs { display: none; gap: 4px; padding: 4px; margin-bottom: 18px; border: 1px solid var(--line); border-radius: 999px; width: max-content; max-width: 100%; overflow-x: auto; background: var(--card); }
.js .ui-tabs { display: flex; }
.ui-tabs button { appearance: none; border: 0; background: transparent; color: var(--muted); border-radius: 999px; padding: 8px 18px; font: 500 14px var(--f-ui); cursor: pointer; white-space: nowrap; transition: color .2s, background .2s; }
.ui-tabs button:hover { color: var(--ink); }
.ui-tabs button[aria-selected="true"] { background: var(--ink); color: var(--bg); }
.frames img { width: 100%; height: auto; }
.fallback-title { margin: 18px; }
.js .fallback-title { display: none; }
.ui-caption { font-size: 15px; color: var(--muted); margin: 18px 0 0; max-width: 760px; }
.ui-caption b { color: var(--ink); font-weight: 600; }

/* 03 Open Source */
.os-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 56px; align-items: start; }
.os-files { display: grid; gap: 16px; }
.code-window { background: var(--stage); color: var(--stage-ink); --line: var(--stage-line); --muted: var(--stage-muted); }
.tab-file { font-family: var(--f-num); font-size: 12px; color: var(--stage-ink); padding: 0 2px; }
.code { margin: 0; padding: 18px 20px; font-size: 12.5px; line-height: 1.75; overflow-x: auto; color: #c9d2cd; }
.c-h { color: #fff; font-weight: 500; } .c-m { color: #6f7d76; } .c-a { color: #7fb0e0; } .c-n { color: #fff; } .c-y { color: #e3b456; } .c-r { color: #ff8a7a; }
.ok-line { color: #6cc893; }
.os-points { list-style: none; margin: 0; padding: 0; }
.os-points li { padding: 24px 0; border-top: 1px solid var(--line); }
.os-points li:first-child { border-top: 0; padding-top: 4px; }
.os-points p { color: var(--muted); font-size: 16px; margin: 0; }

/* 04 Bento */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.card { position: relative; padding: 30px; border-radius: 18px; background: linear-gradient(180deg, var(--card), color-mix(in srgb, var(--card) 40%, var(--bg)));
  border: 1px solid var(--line); overflow: hidden; display: flex; flex-direction: column; }
.card::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--red) 9%, transparent), transparent 60%); }
.card:hover::before { opacity: 1; }
.card h3 { font-size: 22px; max-width: 420px; }
.card p { color: var(--muted); font-size: 15.5px; max-width: 460px; }
.c-qr { grid-column: span 4; grid-row: span 2; }
.c-bank { grid-column: span 2; grid-row: span 2; }
.c-mwst, .c-lohn { grid-column: span 2; }
.c-report { grid-column: span 6; }
.c-dossier { grid-column: span 2; }
.c-report { display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; }
.c-report > :not(.bars) { grid-column: 1; }
.qr-art { margin-top: auto; padding-top: 28px; max-width: 620px; }
.qr-art img { width: 100%; height: auto; border-radius: 10px; background: #fff; padding: 10px; box-shadow: 0 20px 40px -18px rgba(0,0,0,.5); transform: rotate(-1.2deg); }
.match { margin: 18px 0; padding: 14px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); font-size: 13.5px; }
.m-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); }
.m-row.ok { border-color: color-mix(in srgb, var(--ok) 45%, transparent); }
.m-arrow { font-family: var(--f-num); font-size: 11.5px; color: var(--muted); padding: 8px 4px; }
.m-btn { font-size: 12px; font-weight: 600; color: var(--bg); background: var(--ok); padding: 3px 10px; border-radius: 6px; }
.fine-list { margin-top: auto; font-size: 12px !important; color: var(--faint) !important; }
.big-num { margin: auto 0 0; padding-top: 18px; font-size: clamp(26px, 2.6vw, 34px); letter-spacing: -.03em; color: var(--ink) !important; }
.bars { grid-column: 2; grid-row: 1 / span 3; display: flex; align-items: flex-end; gap: 8px; height: 100%; min-height: 150px; padding-top: 12px; }
.bars i { flex: 1; height: var(--h); border-radius: 5px 5px 2px 2px; background: linear-gradient(180deg, var(--line-3), var(--line)); }
.bars i.hi { background: linear-gradient(180deg, var(--red), color-mix(in srgb, var(--red) 25%, transparent)); }

/* 05 Kontrolle */
.control { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 96px); align-items: start; }
.note { font-size: 14px; color: var(--muted); border-left: 2px solid var(--line-2); padding-left: 16px; max-width: 520px; margin-top: 32px; }
.modes { display: grid; gap: 12px; }
.mode { padding: 22px 24px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); }
.mode.active { border-color: color-mix(in srgb, var(--red) 55%, transparent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--red) 12%, transparent), 0 24px 50px -30px var(--red); }
.mode-head { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.mode-head h3 { margin: 0; font-size: 18px; }
.mode p { color: var(--muted); font-size: 15px; margin: 0 0 0 30px; }
.radio { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line-3); flex: none; }
.mode.active .radio { border: 5px solid var(--red); }
.chip { margin-left: auto; font-family: var(--f-num); font-size: 11px; color: var(--muted); border: 1px solid var(--line-2); border-radius: 999px; padding: 2px 9px; }
.guards { list-style: none; margin: 16px 0 0; padding: 0; }
.guards li { padding: 16px 0 16px 30px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; position: relative; }
.guards li::before { content: "✓"; position: absolute; left: 4px; top: 16px; color: var(--ok); font-size: 14px; }
.guards b { color: var(--ink); font-weight: 600; display: block; margin-bottom: 2px; }

/* 06 Start */
.paths { display: grid; grid-template-columns: 1fr 1.2fr; gap: 16px; }
.path { padding: 34px; border-radius: 18px; border: 1px solid var(--line); background: var(--card); display: flex; flex-direction: column; }
.path h3 { font-size: 26px; letter-spacing: -.03em; }
.path > p { color: var(--muted); font-size: 16px; }
.path .btn { margin-top: auto; align-self: flex-start; }
.checks { list-style: none; padding: 0; margin: 6px 0 30px; font-size: 15px; }
.checks li { padding: 8px 0 8px 26px; position: relative; }
.checks li::before { content: "✓"; position: absolute; left: 2px; color: var(--ok); }
.path-dev { background: linear-gradient(160deg, color-mix(in srgb, var(--red) 6%, var(--card)), var(--card) 55%); }
.term { position: relative; margin: 8px 0 20px; border-radius: 12px; background: var(--stage); border: 1px solid var(--stage-line); }
.term pre { margin: 0; padding: 20px 20px; padding-right: 96px; font-size: 13px; line-height: 1.9; color: #e6ece8; overflow-x: auto; }
.copy { position: absolute; top: 12px; right: 12px; font: 500 12px var(--f-ui); color: #c9d2cd; background: #161c1a; border: 1px solid var(--stage-line); border-radius: 8px; padding: 5px 10px; cursor: pointer; display: none; }
.js .copy { display: block; }
.copy:hover { color: #fff; }
.small { font-size: 14px !important; }
.small a, .faq a { color: var(--ink); text-underline-offset: 3px; }
.notice { display: flex; gap: 24px; align-items: flex-start; margin-top: 16px; padding: 26px 30px; border-radius: 18px; border: 1px dashed color-mix(in srgb, var(--warn) 35%, var(--line)); }
.notice h3 { font-size: 18px; margin-bottom: 6px; }
.notice p { margin: 0; color: var(--muted); font-size: 15px; max-width: 820px; }
.faq { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; margin-top: clamp(64px, 8vw, 104px); }
.faq > h3 { font-size: 26px; letter-spacing: -.03em; margin-bottom: 18px; }
details { border-top: 1px solid var(--line); }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 20px 0; font-weight: 500; font-size: 17px; cursor: pointer; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-family: var(--f-num); color: var(--muted); transition: transform .25s var(--ease); }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--muted); padding-right: 32px; margin-bottom: 22px; }

/* ---------- Finale ---------- */
.finale { position: relative; isolation: isolate; overflow: hidden; padding: clamp(96px, 14vw, 180px) 0; text-align: center; border-top: 1px solid var(--line); }
.finale-glow { position: absolute; z-index: -1; left: 50%; bottom: -380px; width: 1100px; height: 700px; transform: translateX(-50%);
  background: radial-gradient(closest-side, var(--ember), var(--ember-2) 50%, transparent); }
.finale-word { font-size: 13px; color: var(--red); letter-spacing: .2em; text-transform: uppercase; margin-bottom: 22px; }
.finale h2 { font-size: clamp(38px, 6vw, 76px); letter-spacing: -.05em; line-height: 1; }
.finale .intro { margin: 0 auto 36px; }
.finale .cta { justify-content: center; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); padding: 56px 0 28px; font-size: 14px; }
footer .wrap { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 32px; }
footer .tagline { color: var(--muted); margin-top: 14px; max-width: 280px; }
footer h4 { font-size: 13px; font-weight: 600; margin-bottom: 14px; }
footer ul { list-style: none; margin: 0; padding: 0; }
footer li { margin-bottom: 9px; }
footer li a { text-decoration: none; color: var(--muted); transition: color .2s; }
footer li a:hover { color: var(--ink); }
.fine { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 12px; color: var(--faint); border-top: 1px solid var(--line); padding-top: 24px; margin-top: 16px; font-size: 12px; font-family: var(--f-num); }

/* ---------- Einblenden beim Scrollen ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1040px) {
  .nav nav { margin-left: 4px; }
  .nav ul a { padding: 6px 8px; }
  .sec-head.split, .control { grid-template-columns: 1fr; gap: 20px; }
  .os-grid { grid-template-columns: 1fr; gap: 32px; }
  .c-qr { grid-column: span 6; grid-row: auto; }
  .c-bank, .c-mwst, .c-lohn { grid-column: span 3; grid-row: auto; }
  .c-dossier { grid-column: span 6; }
  .qr-art { max-width: 560px; }
}
@media (max-width: 820px) {
  .nav nav { display: none; }
  .app-window { width: 100%; }
  .agent-window { position: relative; width: auto; margin: -64px 12px 0; }
  .hero-stage { padding-bottom: 0; }
  .roles { grid-template-columns: 1fr; }
  .role + .role { border-left: 0; border-top: 1px solid var(--line); }
  .role + .role::before { content: "↓"; left: 30px; top: -12px; }
  .role-top { margin-bottom: 22px; }
  .paths { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .gh-label { display: none; }
  .btn.small { padding: 0 11px; }
  .hero h1 br { display: none; }
  .cta .btn { flex: 1 1 auto; }
  .works-with { gap: 14px; }
  .works-with ul { gap: 8px 22px; }
  .works-with li { font-size: 15px; }
  .bento { grid-template-columns: 1fr; }
  .bento .card { grid-column: auto !important; }
  .card, .path { padding: 24px; }
  .c-report { display: flex; }
  .bars { min-height: 110px; height: 110px; }
  .frames { overflow-x: auto; }
  .frames img { width: 820px; max-width: none; }
  .agent-window { margin: -40px 0 0; }
  .agent-log { font-size: 11.5px; min-height: 0; }
  .ln .arg { display: none; }
  .notice { flex-direction: column; gap: 14px; padding: 22px; }
  .term pre { font-size: 12px; padding-right: 20px; padding-top: 46px; }
  footer .wrap { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 12px; }
  footer .wrap > div:first-child { grid-column: 1 / -1; }
  .fine { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal, .js .agent-log.play .ln { opacity: 1; transform: none; }
}
[hidden] { display: none !important; }
.stack { list-style: none; margin: auto 0 0; padding: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px; border-top: 1px solid var(--line); }
.stack li { font-size: 13px; color: var(--ink-2); padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line-2); }
.stack code { font-size: 12px; }
.footer-mark { grid-column: 1 / -1; margin: 40px 0 0; font-weight: 700; letter-spacing: -.07em; line-height: .8; text-align: center;
  font-size: clamp(80px, 21vw, 290px); color: transparent; background: linear-gradient(180deg, var(--line-3), transparent 85%);
  -webkit-background-clip: text; background-clip: text; user-select: none; }
@media (max-width: 820px) { .faq { grid-template-columns: 1fr; gap: 8px; } }
@media (max-width: 640px) { .ln.out { display: block; } .ln.out .ok { margin-right: 6px; } }
.paths > *, .os-grid > *, .os-files > *, .control > *, .sec-head.split > * { min-width: 0; }

/* ---------- Additions: more features, steps, roadmap ---------- */
.more { margin-top: 16px; padding: 30px; border-radius: 18px; border: 1px solid var(--line); }
.more h3 { font-size: 18px; margin-bottom: 18px; }
.more ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px 28px; }
.more li { color: var(--muted); font-size: 14.5px; }
.more b, .plugin-list b { display: block; color: var(--ink); font-weight: 600; margin-bottom: 4px; }
.guards a { color: var(--ink); text-underline-offset: 3px; }
.steps .role-top { margin-bottom: 24px; }
.steps .role-n { color: var(--red); }
.after { margin-top: 24px; }
.after a { color: var(--ink); text-underline-offset: 3px; font-weight: 500; }
.paths.even { grid-template-columns: 1fr 1fr; }
.paths:has(> :nth-child(3)) { grid-template-columns: 1fr 1fr; }
.paths:has(> :nth-child(3)) .path-dev { grid-column: 1 / -1; }
.next { list-style: none; padding: 0; margin: 6px 0 30px; font-size: 15px; }
.next li { padding: 8px 0 8px 26px; position: relative; }
.next li::before { content: "→"; position: absolute; left: 2px; color: var(--red); }
.plugin-list { list-style: none; padding: 0; margin: 4px 0 22px; }
.plugin-list li { padding: 12px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.plugin-list b { font-family: var(--f-num); font-weight: 500; font-size: 14px; }
.fine a { color: inherit; text-underline-offset: 3px; }
@media (max-width: 1040px) { .more ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 820px) { .paths.even, .paths:has(> :nth-child(3)) { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .more { padding: 24px; } .more ul { grid-template-columns: 1fr; } }

/* ---------- Legal pages ---------- */
.legal { padding: clamp(56px, 8vw, 96px) 0; }
.legal .wrap { max-width: calc(760px + 2 * var(--gutter)); }
.legal h1 { font-size: clamp(36px, 5vw, 56px); letter-spacing: -.04em; margin-bottom: 28px; }
.legal h2 { font-size: 20px; margin: 40px 0 10px; }
.legal p, .legal li { color: var(--muted); }
.legal a { color: var(--ink); text-underline-offset: 3px; }
