:root {
  --bg: #0b0f14;
  --bg-alt: #10161d;
  --surface: #151c25;
  --line: #263140;
  --text: #e8edf3;
  --muted: #a3afbd;
  --accent: #6ee7b7;
  --on-accent: #06281c;
  --radius: 12px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 5rem; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
}

img, svg { display: block; max-width: 100%; height: auto; }

a { color: var(--accent); text-underline-offset: 3px; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.015em; text-wrap: balance; }
h1 { font-size: clamp(2.25rem, 7vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 4.5vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 650; }
p { margin: 0 0 1em; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(100% - 2rem, 72rem); margin-inline: auto; }
.wrap--narrow { width: min(100% - 2rem, 46rem); }

.skip-link { position: absolute; left: -999px; top: .5rem; z-index: 20; padding: .5rem 1rem; background: var(--accent); color: var(--on-accent); }
.skip-link:focus { left: .5rem; }

.eyebrow { margin-bottom: .75rem; color: var(--accent); font-family: var(--mono); font-size: .8125rem; letter-spacing: .06em; text-transform: uppercase; }
.lead { color: var(--muted); font-size: clamp(1.125rem, 2.6vw, 1.3rem); max-width: 36rem; }

/* Kopfzeile */
.site-header { position: sticky; top: 0; z-index: 10; background: rgb(11 15 20 / .92); border-bottom: 1px solid var(--line); backdrop-filter: blur(8px); }
.site-header__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1.5rem; min-height: 4rem; padding-block: .5rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--text); font-weight: 700; text-decoration: none; }
.brand__mark { width: .85rem; height: .85rem; border-radius: 3px; background: var(--accent); }

.nav-toggle { display: none; min-height: 2.75rem; padding: 0 1rem; background: none; border: 1px solid var(--line); border-radius: 8px; color: var(--text); font: inherit; font-size: .9375rem; cursor: pointer; }
.js .nav-toggle { display: block; }
.site-nav { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; width: 100%; }
.js .site-nav { display: none; }
.js .site-nav.is-open { display: flex; flex-direction: column; padding-bottom: .5rem; }
.site-nav a { padding: .5rem 0; color: var(--muted); font-size: .9375rem; text-decoration: none; }
.site-nav a:hover { color: var(--text); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: .7rem 1.4rem; border: 1px solid transparent; border-radius: 8px; font: inherit; font-weight: 600; line-height: 1.25; text-align: center; text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s; }
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: #8ff0ca; }
.btn--ghost { border-color: var(--line); color: var(--text); }
.btn--ghost:hover { border-color: var(--accent); }

/* Hero */
.hero { padding-block: clamp(3.5rem, 9vw, 7rem); }
.hero__grid { display: grid; gap: 3rem; align-items: center; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.hero__note { margin: 1.25rem 0 0; color: var(--muted); font-size: .9375rem; }

/* Panels */
.panel { margin: 0; padding: 1.25rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.panel__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .25rem .75rem; margin-bottom: 1rem; font-weight: 600; }
.tag { color: var(--muted); font-family: var(--mono); font-size: .75rem; font-weight: 400; }

/* Diagramm */
.chart { width: 100%; max-width: 34rem; }
.chart__grid line { stroke: var(--line); stroke-width: 1; }
.chart__gut { fill: none; stroke: var(--muted); stroke-width: 2; stroke-linejoin: round; }
.chart__data { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linejoin: round; }
.chart__dots circle { fill: var(--accent); }
.chart__labels text { fill: var(--muted); font-family: var(--mono); font-size: 11px; }

.legend { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; margin: .75rem 0 0; padding: 0; list-style: none; color: var(--muted); font-size: .875rem; }
.legend li { display: flex; align-items: center; gap: .5rem; }
.legend__swatch { width: 1.1rem; height: 0; border-top: 2.5px solid var(--accent); }
.legend__swatch--gut { border-top: 2px solid var(--muted); }

/* Abschnitte */
.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section__intro { color: var(--muted); max-width: 44rem; }

.compare { display: grid; gap: 1rem; margin-top: 2rem; }
.audience { display: grid; gap: 1rem; margin-top: 2rem; }
.audience p { margin: 0; color: var(--muted); }

.list { margin: 0; padding: 0; list-style: none; }
.list li { position: relative; padding-left: 1.6rem; margin-bottom: .55rem; }
.list li::before { position: absolute; left: 0; top: 0; font-family: var(--mono); font-weight: 700; }
.list--check li::before { content: "✓"; color: var(--accent); }
.list--cross li::before { content: "×"; color: var(--muted); }

/* Leistungen */
.cards { display: grid; gap: 1rem; margin-top: 2rem; }
.card { display: flex; flex-direction: column; align-items: flex-start; padding: 1.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.card > .btn { width: 100%; margin-top: auto; }
.card > p:last-of-type, .card > .list { margin-bottom: 1.5rem; }
.card--featured { order: -1; border: 2px solid var(--accent); }
.card h3 { margin-bottom: .2em; font-size: 1.3rem; }
.card__meta { color: var(--muted); font-size: .9375rem; }
.card__sub { color: var(--muted); font-size: .9375rem; }
.price { margin-bottom: .75rem; font-size: 1.4rem; font-weight: 700; }
.price small { color: var(--muted); font-size: .875rem; font-weight: 400; }
.badge { margin-bottom: .75rem; padding: .15rem .6rem; background: var(--accent); border-radius: 999px; color: var(--on-accent); font-family: var(--mono); font-size: .75rem; font-weight: 700; }

/* Preis */
.split { display: grid; gap: 2.5rem; align-items: center; }
.price-steps { margin: 1.5rem 0 0; padding: 0; list-style: none; counter-reset: step; }
.price-steps li { position: relative; padding: 0 0 1.25rem 3rem; counter-increment: step; }
.price-steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 2rem; height: 2rem; border: 1px solid var(--accent); border-radius: 50%; color: var(--accent); font-family: var(--mono); font-size: .875rem; line-height: 1.9rem; text-align: center; }
.price-steps strong, .price-steps span { display: block; }
.price-steps span { color: var(--muted); }

.invoice table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.invoice th, .invoice td { padding: .6rem 0; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; }
.invoice thead th { color: var(--muted); font-size: .8125rem; }
.invoice tfoot th, .invoice tfoot td { border-bottom: 0; font-weight: 700; }
.invoice .num { text-align: right; font-family: var(--mono); white-space: nowrap; padding-left: 1rem; }

/* Ablauf */
.timeline { display: grid; gap: 1.5rem; margin: 2rem 0 0; padding: 0; list-style: none; counter-reset: step; }
.timeline li { padding-top: 1rem; border-top: 2px solid var(--accent); counter-increment: step; }
.timeline li::before { content: "0" counter(step); display: block; margin-bottom: .4rem; color: var(--accent); font-family: var(--mono); font-size: .875rem; }
.timeline p { margin: 0; color: var(--muted); }


/* FAQ */
.faq { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 0; font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-family: var(--mono); font-size: 1.25rem; line-height: 1.4; }
.faq[open] summary::after { content: "–"; }
.faq p { color: var(--muted); }


/* Kontakt */
.contact__note { margin: 1.25rem 0 0; color: var(--muted); font-size: .875rem; }

/* Fußzeile */
.site-footer { padding-block: 2.5rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .9375rem; }
.site-footer__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 2rem; }
.site-footer__row p { margin: 0; }
.site-footer nav { display: flex; gap: 1.25rem; }

/* Rechtsseiten */
.legal { padding-block: clamp(2.5rem, 7vw, 4.5rem); }
.legal h1 { font-size: clamp(2rem, 6vw, 2.75rem); }
.legal h2 { margin-top: 2em; font-size: 1.3rem; }
.legal p, .legal li { color: var(--muted); }
.legal__notice { padding: .9rem 1rem; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 8px; font-size: .9375rem; }

@media (min-width: 48rem) {
  .compare, .audience { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1.1fr .9fr; gap: 4rem; }
  .timeline { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 60rem) {
  .hero__grid { grid-template-columns: 1.05fr .95fr; gap: 4rem; }
  .cards { grid-template-columns: 1fr 1.2fr 1fr; align-items: stretch; }
  .card--featured { order: 0; }
  .audience { grid-template-columns: repeat(4, 1fr); }
  .timeline { grid-template-columns: repeat(4, 1fr); }
  .nav-toggle, .js .nav-toggle { display: none; }
  .site-nav, .js .site-nav { display: flex; width: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
