/* ============================================================
   Landing Page – Dark Design System
   Eigenständiges Stylesheet, gleiche Sprache wie die App.
   ============================================================ */

:root {
  color-scheme: dark;

  --bg: #08090f;
  --bg-1: #0c0e16;
  --bg-soft: #111420;
  --card: #131726;
  --card-2: #171c2e;
  --line: #262c40;
  --line-soft: #1d2233;

  --text: #eaedf7;
  --text-dim: #9aa3bd;
  --muted: #6b7490;

  --brand: #6d5cff;
  --brand-2: #a978ff;
  --brand-hover: #8b7bff;
  --brand-soft: rgba(109, 92, 255, .16);
  --brand-line: rgba(109, 92, 255, .42);

  --green: #34d399;
  --amber: #fbbf24;
  --red: #f87171;
  --blue: #60a5fa;
  --pink: #f472b6;

  --radius: 18px;
  --radius-sm: 11px;
  --shadow: 0 20px 50px rgba(0, 0, 0, .45);
  --shadow-lg: 0 40px 90px rgba(0, 0, 0, .6);
  --maxw: 1160px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
svg { display: block; }
::selection { background: rgba(109, 92, 255, .35); color: #fff; }

::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #232a3d; border-radius: 8px; border: 3px solid var(--bg); background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: #333c5a; background-clip: content-box; }

.wrap { width: min(var(--maxw), 100% - 40px); margin-inline: auto; }
.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.i.sm { width: 16px; height: 16px; }

/* Feines Rauschen über der ganzen Seite – nimmt Verläufen das Banding */
body::after {
  content: ''; position: fixed; inset: 0; z-index: 9; pointer-events: none; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Fortschrittsbalken ---------- */

#progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0; z-index: 80;
  background: linear-gradient(90deg, var(--brand), var(--brand-2) 55%, var(--green));
  transition: width .1s linear;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 22px; border-radius: 12px; font-size: 15px; font-weight: 600;
  border: 1px solid var(--line); background: var(--card); color: var(--text);
  cursor: pointer; transition: transform .18s var(--ease), background .18s, border-color .18s, box-shadow .18s;
  white-space: nowrap; position: relative; overflow: hidden; font-family: inherit;
}
.btn:hover { background: var(--card-2); border-color: #343d59; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn.primary {
  background: linear-gradient(135deg, var(--brand), #8b5cff 55%, var(--brand-2));
  border-color: transparent; color: #fff;
  box-shadow: 0 10px 30px rgba(109, 92, 255, .35);
}
.btn.primary:hover { box-shadow: 0 16px 40px rgba(109, 92, 255, .45); }
/* Lichtreflex, der beim Überfahren durchläuft */
.btn.primary::after {
  content: ''; position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.28), transparent);
  transition: left .6s var(--ease);
}
.btn.primary:hover::after { left: 130%; }
.btn.ghost { background: transparent; }
.btn.ghost:hover { background: var(--card); }
.btn.sm { padding: 9px 16px; font-size: 14px; border-radius: 10px; }
.btn.lg { padding: 16px 28px; font-size: 16.5px; }

/* ---------- Kopfzeile ---------- */

header.top {
  position: sticky; top: 0; z-index: 60;
  background: rgba(8, 9, 15, .72); backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid transparent; transition: border-color .25s, background .25s;
}
header.top.scrolled { border-bottom-color: var(--line-soft); background: rgba(8, 9, 15, .88); }
header.top .bar { display: flex; align-items: center; gap: 16px; padding: 13px 0; }

.logo { display: flex; align-items: center; gap: 11px; font-weight: 700; letter-spacing: -.02em; font-size: 16px; }
.logo .mark {
  width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(140deg, var(--brand), var(--brand-2));
  box-shadow: 0 8px 22px rgba(109, 92, 255, .4);
}

header.top nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
header.top nav a.nav-link {
  padding: 8px 14px; border-radius: 9px; color: var(--text-dim); font-size: 14.5px;
  transition: color .16s, background .16s; position: relative;
}
header.top nav a.nav-link:hover { color: var(--text); }
header.top nav a.nav-link.active { color: #fff; background: var(--card); }
@media (max-width: 860px) { header.top nav a.nav-link { display: none; } }

/* ---------- Hero ---------- */

.hero { position: relative; padding: 96px 0 40px; isolation: isolate; }
.aurora { position: absolute; inset: -180px 0 auto 0; height: 900px; z-index: -1; pointer-events: none; overflow: hidden; }
.aurora i {
  position: absolute; display: block; border-radius: 50%; filter: blur(70px); opacity: .5;
  animation: drift 22s ease-in-out infinite alternate;
}
.aurora i:nth-child(1) { width: 620px; height: 420px; left: 4%; top: 130px; background: radial-gradient(circle, rgba(109,92,255,.55), transparent 68%); }
.aurora i:nth-child(2) { width: 520px; height: 380px; right: 2%; top: 60px; background: radial-gradient(circle, rgba(169,120,255,.42), transparent 68%); animation-delay: -7s; }
.aurora i:nth-child(3) { width: 460px; height: 320px; left: 42%; top: 280px; background: radial-gradient(circle, rgba(52,211,153,.28), transparent 68%); animation-delay: -13s; }
@keyframes drift {
  from { transform: translate3d(0,0,0) scale(1); }
  to   { transform: translate3d(40px,-30px,0) scale(1.12); }
}
@media (prefers-reduced-motion: reduce) { .aurora i { animation: none; } }

/* dezentes Raster über dem Verlauf */
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image: linear-gradient(var(--line-soft) 1px, transparent 1px), linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(760px 420px at 50% 8%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(760px 420px at 50% 8%, #000 20%, transparent 78%);
}

.hero-inner { max-width: 780px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 15px 6px 7px; border-radius: 999px;
  background: rgba(109, 92, 255, .12); border: 1px solid var(--brand-line);
  font-size: 13px; color: #cec6ff; margin-bottom: 26px;
}
.eyebrow b {
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff;
  padding: 3px 9px; border-radius: 999px; font-size: 10.5px; letter-spacing: .07em; text-transform: uppercase; font-weight: 700;
}

h1 {
  font-size: clamp(38px, 6.2vw, 68px); line-height: 1.04; letter-spacing: -.04em;
  margin: 0 0 22px; font-weight: 700;
}
h1 .grad {
  background: linear-gradient(100deg, var(--brand-2), var(--brand) 42%, var(--green));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
/* Wörter steigen beim Laden nacheinander auf */
.js h1 .w { display: inline-block; opacity: 0; transform: translateY(18px); animation: wordUp .7s var(--ease) forwards; }
@keyframes wordUp { to { opacity: 1; transform: none; } }
.js h1.done .w { animation: none; opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js h1 .w { animation: none; opacity: 1; transform: none; } }

.lead { font-size: clamp(16.5px, 2vw, 19.5px); color: var(--text-dim); max-width: 60ch; margin: 0 0 32px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.cta-note { display: flex; align-items: center; gap: 18px; color: var(--muted); font-size: 13.5px; margin-top: 22px; flex-wrap: wrap; }
.cta-note span { display: inline-flex; align-items: center; gap: 7px; }
.cta-note .i { color: var(--green); }

/* ---------- Animierte App-Demo ---------- */

.demo-shell { margin-top: 60px; position: relative; }
.demo-shell::before {
  content: ''; position: absolute; inset: 30px 60px -20px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(109,92,255,.35), transparent);
  filter: blur(50px); z-index: -1;
}

.window {
  border-radius: 20px; border: 1px solid var(--line);
  background: linear-gradient(180deg, #151a2b, #0e1119);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.window .chrome { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line-soft); background: #121623; }
.window .chrome b { width: 10px; height: 10px; border-radius: 50%; background: #2b3350; display: block; }
.window .chrome .url {
  margin-left: 12px; font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 7px;
  background: #0b0e17; border: 1px solid var(--line-soft); border-radius: 8px; padding: 5px 14px;
}
.window .chrome .url .i { width: 12px; height: 12px; color: var(--green); }

.demo { display: grid; grid-template-columns: 176px 1fr; min-height: 430px; position: relative; }
.demo .side { border-right: 1px solid var(--line-soft); padding: 16px 12px; display: flex; flex-direction: column; gap: 4px; background: rgba(17,20,32,.5); }
.demo .side .item { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 9px; font-size: 12.5px; color: var(--muted); transition: .3s; }
.demo .side .item.on { background: var(--brand-soft); color: #fff; font-weight: 600; box-shadow: inset 0 0 0 1px var(--brand-line); }
.demo .side .item .i { width: 15px; height: 15px; }
.demo .stage { padding: 20px 22px; position: relative; }

/* Bühnen-Panels: immer nur eines sichtbar */
.demo .scene { position: absolute; inset: 20px 22px; opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .5s var(--ease); pointer-events: none; }
.demo .scene.on { opacity: 1; transform: none; }

.mini-card { background: var(--card); border: 1px solid var(--line-soft); border-radius: 13px; padding: 15px 17px; }
.mini-card h5 { margin: 0 0 13px; font-size: 10.5px; letter-spacing: .09em; text-transform: uppercase; color: var(--text-dim); font-weight: 600; }

/* Szene 1: Positionen tippen */
.pos-row {
  display: grid; grid-template-columns: 1fr 54px 86px 92px; gap: 10px; align-items: center;
  padding: 9px 0; border-bottom: 1px solid var(--line-soft); font-size: 13px;
  opacity: 0; transform: translateX(-8px); transition: .45s var(--ease);
}
.demo[data-step="0"] .pos-row { opacity: 1; transform: none; }
.demo[data-step="0"] .pos-row:nth-child(2) { transition-delay: .25s; }
.demo[data-step="0"] .pos-row:nth-child(3) { transition-delay: .5s; }
.pos-row span:not(:first-child) { text-align: right; color: var(--text-dim); font-variant-numeric: tabular-nums; }
.pos-row.head { color: var(--muted); font-size: 10.5px; text-transform: uppercase; letter-spacing: .07em; border-bottom-color: var(--line); opacity: 1; transform: none; }
.pos-sum { display: flex; justify-content: space-between; align-items: baseline; margin-top: 14px; padding-top: 13px; border-top: 1px solid var(--line); }
.pos-sum span { color: var(--text-dim); font-size: 13px; }
.pos-sum b { font-size: 24px; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }

/* Szene 2: PDF */
.doc-preview {
  background: #f6f7fb; color: #111; border-radius: 10px; padding: 18px 20px; height: 100%;
  display: flex; flex-direction: column; gap: 9px; box-shadow: 0 20px 50px rgba(0,0,0,.5);
}
.doc-preview .d-top { display: flex; justify-content: space-between; align-items: flex-start; }
.doc-preview .d-brand { font-weight: 700; font-size: 14px; color: #14162b; }
.doc-preview .d-meta { font-size: 9px; color: #6b7186; text-align: right; line-height: 1.6; }
.doc-preview .d-line { height: 7px; border-radius: 3px; background: #e3e6f0; }
.doc-preview .d-line.s { width: 34%; }
.doc-preview .d-line.m { width: 58%; }
.doc-preview .d-rows { margin-top: 6px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.doc-preview .d-row { display: flex; gap: 10px; align-items: center; }
.doc-preview .d-row i { display: block; height: 6px; border-radius: 3px; background: #e9ebf3; }
.doc-preview .d-row i:first-child { flex: 1; }
.doc-preview .d-row i:last-child { width: 52px; background: #d7dbe8; }
.doc-preview .d-total { display: flex; justify-content: space-between; font-weight: 700; font-size: 13px; border-top: 2px solid #14162b; padding-top: 9px; color: #14162b; }
.doc-preview .d-foot { font-size: 8px; color: #8a90a6; border-top: 1px solid #e3e6f0; padding-top: 7px; }

/* Szene 3: Mail */
.mail-mini { border: 1px solid var(--line-soft); border-radius: 13px; overflow: hidden; background: var(--card); }
.mail-mini .mm-head { padding: 11px 15px; background: var(--bg-soft); border-bottom: 1px solid var(--line-soft); font-size: 12px; color: var(--text-dim); display: flex; align-items: center; gap: 9px; }
.mail-mini .mm-head .i { width: 15px; height: 15px; color: var(--brand-hover); }
.mail-mini .mm-body { padding: 15px; font-size: 13px; color: var(--text-dim); line-height: 1.75; }
.mail-mini .mm-body b { color: var(--text); font-weight: 600; }
.mail-mini .mm-attach { display: inline-flex; align-items: center; gap: 8px; margin-top: 13px; padding: 7px 12px; border-radius: 9px; background: var(--bg-soft); border: 1px solid var(--line-soft); font-size: 12px; color: var(--text); }
.mail-mini .mm-attach .i { width: 14px; height: 14px; color: var(--red); }

/* Szene 4: bezahlt */
.paid-hero { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; text-align: center; gap: 6px; }
.paid-ring {
  width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; color: var(--green);
  background: rgba(52,211,153,.12); box-shadow: 0 0 0 1px rgba(52,211,153,.35);
}
.paid-ring .i { width: 34px; height: 34px; stroke-width: 2.2; }
.demo[data-step="3"] .paid-ring { animation: pop .5s var(--ease); }
@keyframes pop { 0% { transform: scale(.6); opacity: 0; } 60% { transform: scale(1.08); } 100% { transform: scale(1); opacity: 1; } }
.paid-hero b { font-size: 27px; letter-spacing: -.03em; margin-top: 10px; }
.paid-hero span { color: var(--text-dim); font-size: 13.5px; }

/* Statusleiste unter der Bühne */
.demo-status {
  display: flex; align-items: center; gap: 14px; padding: 13px 22px;
  border-top: 1px solid var(--line-soft); background: rgba(11,14,23,.6);
}
.demo-dots { display: flex; gap: 6px; }
.demo-dots i { width: 22px; height: 4px; border-radius: 99px; background: var(--line); transition: background .3s, width .3s; display: block; }
.demo-dots i.on { background: linear-gradient(90deg, var(--brand), var(--brand-2)); width: 34px; }
.demo-label { font-size: 13px; color: var(--text-dim); }
.demo-label b { color: var(--text); font-weight: 600; }
.demo-badge {
  margin-left: auto; font-size: 11.5px; font-weight: 600; padding: 4px 12px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 6px; transition: .35s;
  background: var(--bg-soft); color: var(--text-dim); box-shadow: inset 0 0 0 1px var(--line);
}
.demo-badge::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.demo[data-step="2"] ~ .demo-status .demo-badge { background: rgba(96,165,250,.14); color: var(--blue); box-shadow: none; }
.demo[data-step="3"] ~ .demo-status .demo-badge { background: rgba(52,211,153,.14); color: var(--green); box-shadow: none; }

@media (max-width: 780px) {
  .demo { grid-template-columns: 1fr; min-height: 400px; }
  .demo .side { display: none; }
}

/* ---------- Logos / Vertrauen ---------- */

.trust { margin-top: 34px; display: flex; align-items: center; gap: 26px; flex-wrap: wrap; color: var(--muted); font-size: 12.5px; }
.trust .t-item { display: inline-flex; align-items: center; gap: 8px; }
.trust .t-item .i { width: 15px; height: 15px; color: var(--text-dim); }

/* ---------- Kennzahlenstreifen ---------- */

.strip { border-block: 1px solid var(--line-soft); background: linear-gradient(180deg, var(--bg-1), var(--bg)); margin-top: 90px; }
.strip .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 24px; padding: 34px 0; text-align: center; }
.strip b { display: block; font-size: 30px; font-weight: 700; letter-spacing: -.035em; background: linear-gradient(135deg, #fff, #b9b4ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.strip span { color: var(--muted); font-size: 13.5px; }

/* ---------- Abschnitte ---------- */

section.block { padding: 96px 0; }
section.block.tight { padding-top: 0; }

.sec-head { max-width: 660px; margin-bottom: 48px; }
.sec-head.center { margin-inline: auto; text-align: center; }
.tag {
  display: inline-block; color: var(--brand-hover); font-size: 12.5px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; margin-bottom: 12px;
}
.sec-head h2 { font-size: clamp(28px, 4vw, 42px); letter-spacing: -.035em; margin: 0 0 16px; line-height: 1.12; }
.sec-head p { color: var(--text-dim); margin: 0; font-size: 17px; }

/* ---------- Bento-Raster ---------- */

.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.tile {
  grid-column: span 2; position: relative; overflow: hidden;
  background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 26px; transition: transform .25s var(--ease), border-color .25s, box-shadow .25s;
}
.tile:hover { transform: translateY(-4px); border-color: var(--line); box-shadow: 0 22px 50px rgba(0,0,0,.4); }
/* Lichtkegel folgt dem Mauszeiger */
.tile::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 0%), var(--tint-soft, rgba(109,92,255,.16)), transparent 62%);
}
.tile:hover::before { opacity: 1; }
.tile.wide { grid-column: span 3; }
.tile.full { grid-column: span 6; }
.tile.tall { grid-row: span 2; }
@media (max-width: 980px) { .bento { grid-template-columns: repeat(4, 1fr); } .tile, .tile.wide { grid-column: span 2; } .tile.full { grid-column: span 4; } .tile.tall { grid-row: auto; } }
@media (max-width: 620px) { .bento { grid-template-columns: 1fr; } .tile, .tile.wide, .tile.full { grid-column: span 1; } }

.tile .ic {
  width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 18px;
  background: var(--tint-soft, rgba(109,92,255,.14)); color: var(--tint, var(--brand-2));
}
.tile .ic .i { width: 22px; height: 22px; }
.tile h3 { margin: 0 0 9px; font-size: 18px; letter-spacing: -.02em; }
.tile p { margin: 0; color: var(--text-dim); font-size: 14.5px; }
.tile.violet { --tint: var(--brand-2); --tint-soft: rgba(109,92,255,.15); }
.tile.green  { --tint: var(--green); --tint-soft: rgba(52,211,153,.13); }
.tile.amber  { --tint: var(--amber); --tint-soft: rgba(251,191,36,.13); }
.tile.blue   { --tint: var(--blue); --tint-soft: rgba(96,165,250,.13); }
.tile.red    { --tint: var(--red); --tint-soft: rgba(248,113,113,.13); }
.tile.pink   { --tint: var(--pink); --tint-soft: rgba(244,114,182,.13); }

/* Kleine Visualisierungen in den Kacheln */
.tile .viz { margin-top: 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chips span { font-size: 12px; padding: 5px 11px; border-radius: 8px; background: var(--bg-soft); border: 1px solid var(--line-soft); color: var(--text-dim); }

.bars-mini { display: flex; align-items: flex-end; gap: 7px; height: 74px; }
.bars-mini i { flex: 1; display: block; border-radius: 5px 5px 3px 3px; background: linear-gradient(180deg, var(--brand-2), var(--brand)); opacity: .85; }
.bars-mini i:nth-child(even) { background: #2b3350; }

.pay-row { display: flex; align-items: center; gap: 11px; padding: 11px 13px; border-radius: 11px; background: var(--bg-soft); border: 1px solid var(--line-soft); font-size: 13px; }
.pay-row + .pay-row { margin-top: 8px; }
.pay-row .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); flex: none; }
.pay-row .amt { margin-left: auto; font-variant-numeric: tabular-nums; font-weight: 600; }

.remind-track { display: flex; align-items: center; gap: 0; margin-top: 6px; }
.remind-track .node { width: 11px; height: 11px; border-radius: 50%; background: var(--line); flex: none; }
.remind-track .node.on { background: var(--amber); box-shadow: 0 0 10px rgba(251,191,36,.55); }
.remind-track .seg { height: 2px; flex: 1; background: var(--line); }
.remind-track .seg.on { background: linear-gradient(90deg, var(--amber), var(--line)); }
.remind-legend { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-top: 8px; }

/* ---------- Rechner ---------- */

.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 900px) { .calc { grid-template-columns: 1fr; gap: 28px; } }

.calc-card { background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 26px; }
.calc-card .field { margin-bottom: 18px; }
.calc-card label { display: block; font-size: 12px; color: var(--text-dim); margin-bottom: 7px; font-weight: 500; }
.calc-card input[type="number"], .calc-card select {
  width: 100%; padding: 11px 13px; border-radius: 11px; border: 1px solid var(--line);
  background: var(--bg-soft); color: var(--text); font: inherit; font-size: 15px;
  transition: border-color .16s, box-shadow .16s;
}
.calc-card input:focus, .calc-card select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.switch { display: flex; align-items: center; gap: 11px; cursor: pointer; font-size: 13.5px; user-select: none; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch .track { width: 42px; height: 24px; border-radius: 99px; background: var(--line); position: relative; transition: background .22s; flex: none; }
.switch .track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #8b93ad; transition: transform .22s var(--ease), background .22s; }
.switch input:checked + .track { background: var(--brand); }
.switch input:checked + .track::after { transform: translateX(18px); background: #fff; }
.switch input:focus-visible + .track { box-shadow: 0 0 0 3px var(--brand-soft); }
.switch small { display: block; color: var(--muted); font-size: 11.5px; }

.calc-out { background: linear-gradient(160deg, #191d31, #0f1220); border: 1px solid var(--brand-line); border-radius: var(--radius); padding: 28px; }
.calc-out .row { display: flex; justify-content: space-between; padding: 9px 0; color: var(--text-dim); font-size: 14.5px; }
.calc-out .row b { color: var(--text); font-variant-numeric: tabular-nums; font-weight: 500; }
.calc-out .row.total { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 18px; }
.calc-out .row.total span { color: var(--text); font-size: 15px; font-weight: 600; }
.calc-out .row.total b { font-size: 30px; letter-spacing: -.03em; font-weight: 700; background: linear-gradient(135deg, #fff, #b9b4ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.calc-out .note { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line-soft); color: var(--muted); font-size: 12.5px; }

/* ---------- Ablauf ---------- */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; position: relative; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding: 30px 26px 26px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line-soft); transition: border-color .22s, transform .22s var(--ease); }
.step:hover { border-color: var(--brand-line); transform: translateY(-3px); }
.step .num {
  counter-increment: s; width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(140deg, var(--brand), var(--brand-2)); color: #fff; font-weight: 700; font-size: 15px;
  box-shadow: 0 8px 20px rgba(109, 92, 255, .38); margin-bottom: 16px;
}
.step .num::before { content: counter(s); }
.step h3 { margin: 0 0 9px; font-size: 18px; letter-spacing: -.02em; }
.step p { margin: 0; color: var(--text-dim); font-size: 14.5px; }
.step .kbd { display: inline-block; margin-top: 14px; font-size: 11.5px; color: var(--muted); background: var(--bg-soft); border: 1px solid var(--line-soft); border-radius: 7px; padding: 3px 9px; }

/* ---------- Vergleich ---------- */

.compare { border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; background: var(--card); }
.compare table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.compare th, .compare td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--line-soft); }
.compare thead th { background: var(--bg-soft); font-size: 11.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 600; }
.compare thead th.us { color: #fff; background: linear-gradient(180deg, rgba(109,92,255,.22), rgba(109,92,255,.06)); }
.compare tbody tr:last-child td { border-bottom: 0; }
.compare td.us { background: rgba(109, 92, 255, .06); font-weight: 500; color: var(--text); }
.compare td span { display: inline-flex; align-items: center; gap: 8px; color: var(--text-dim); }
.compare td.us span { color: var(--text); }
.compare .i.yes { color: var(--green); }
.compare .i.no { color: #4d5570; }
.compare-wrap { overflow-x: auto; }
@media (max-width: 720px) { .compare table { min-width: 600px; } }

/* ---------- FAQ ---------- */

.faq { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
@media (max-width: 860px) { .faq { grid-template-columns: 1fr; } }
.faq details {
  background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius-sm);
  padding: 18px 22px; transition: border-color .2s, background .2s;
}
.faq details:hover { border-color: var(--line); }
.faq details[open] { border-color: var(--brand-line); background: var(--card-2); }
.faq summary { cursor: pointer; font-weight: 600; font-size: 15.5px; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--brand-hover); font-size: 22px; font-weight: 300; line-height: 1; transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(135deg); }
.faq p { margin: 13px 0 0; color: var(--text-dim); font-size: 14.5px; }
.faq code { background: var(--bg-soft); border: 1px solid var(--line-soft); padding: 1px 6px; border-radius: 5px; font-size: 12.5px; color: var(--text-dim); }

/* ---------- Schluss-CTA ---------- */

.final {
  position: relative; overflow: hidden; border-radius: 26px; border: 1px solid var(--brand-line);
  padding: 72px 40px; text-align: center; background: linear-gradient(165deg, #1a1e36, #0e1119);
}
.final::before {
  content: ''; position: absolute; inset: -60% -10% auto -10%; height: 480px; pointer-events: none;
  background: radial-gradient(600px 280px at 50% 40%, rgba(109, 92, 255, .34), transparent 66%);
}
.final::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .35;
  background-image: linear-gradient(var(--line-soft) 1px, transparent 1px), linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(420px 220px at 50% 50%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(420px 220px at 50% 50%, #000, transparent 75%);
}
.final > * { position: relative; }
.final h2 { font-size: clamp(28px, 4.2vw, 44px); letter-spacing: -.035em; margin: 0 0 16px; line-height: 1.1; }
.final p { color: var(--text-dim); max-width: 54ch; margin: 0 auto 30px; font-size: 17px; }

/* ---------- Fußzeile ---------- */

footer.foot { border-top: 1px solid var(--line-soft); margin-top: 96px; padding: 48px 0 40px; background: var(--bg-1); }
footer.foot .cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 800px) { footer.foot .cols { grid-template-columns: 1fr 1fr; } }
footer.foot h4 { font-size: 11.5px; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); margin: 0 0 14px; font-weight: 600; }
footer.foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
footer.foot ul a { color: var(--text-dim); font-size: 14px; transition: color .15s; }
footer.foot ul a:hover { color: var(--text); }
footer.foot .about { color: var(--muted); font-size: 13.5px; max-width: 34ch; margin: 14px 0 0; }
footer.foot .base { margin-top: 38px; padding-top: 22px; border-top: 1px solid var(--line-soft); display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; color: var(--muted); font-size: 13px; }

/* ---------- Einblenden beim Scrollen ---------- */

.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }
