/* ==========================================================================
   Delto – Stylesheet
   1. Tokens  2. Reset/Base  3. Layout  4. Komponenten
   5. Sektionen  6. Footer  7. Responsive  8. Motion
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  --brand-950: #060d1f;
  --brand-900: #0a1733;
  --brand-800: #102450;
  --brand-700: #17356f;
  --brand-600: #1f4bb8;
  --brand-500: #2a5fe0;
  --brand-400: #5b86ef;
  --brand-100: #e6edfd;
  --brand-50:  #f2f6ff;

  --accent-600: #0d9488;
  --accent-500: #14b8a6;
  --accent-100: #d9f5f1;

  /* Gewinn/Ersparnis – nur fuer Betraege, die der Besucher gewinnt */
  --gain: #34d399;
  --gain-dark: #0f7a55;

  /* Gegenstueck: Betraege, die beim Besucher abfliessen (fremde Abokosten) */
  --cost: #d97070;
  --cost-dark: #b3322b;

  --bg: #ffffff;
  --surface: #f6f8fc;
  --surface-2: #eef2f9;
  --border: #e2e8f3;
  --border-strong: #cfd8e8;

  --text: #0f172a;
  --text-muted: #55607a;
  --text-inverse: #ffffff;
  --text-inverse-muted: #a9b7d4;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .05);
  --shadow: 0 4px 6px -1px rgba(15, 23, 42, .06), 0 10px 24px -6px rgba(15, 23, 42, .10);
  --shadow-lg: 0 24px 60px -20px rgba(10, 23, 51, .28);

  --container: 1160px;
  --gutter: 24px;
  --header-h: 76px;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* 2. Reset / Base ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  line-height: 1.15;
  letter-spacing: -.022em;
  font-weight: 700;
  color: var(--brand-900);
  text-wrap: balance;
}

h1 { font-size: clamp(2.2rem, 1.35rem + 3.1vw, 3.75rem); letter-spacing: -.03em; }
h2 { font-size: clamp(1.75rem, 1.2rem + 1.9vw, 2.6rem); }
h3 { font-size: 1.22rem; letter-spacing: -.012em; }
h4 { font-size: 1.02rem; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--brand-600); text-decoration: none; }
a:hover { color: var(--brand-500); }

img, svg { max-width: 100%; display: block; }
/* Muss nach allen display-Regeln greifen, sonst haelt [hidden] nicht */
[hidden] { display: none !important; }
ul, ol { margin: 0; padding: 0; list-style: none; }
strong { font-weight: 650; color: var(--brand-900); }

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

::selection { background: var(--brand-100); color: var(--brand-900); }

.skip-link {
  position: absolute; left: 12px; top: -80px; z-index: 200;
  background: var(--brand-900); color: #fff;
  padding: 12px 20px; border-radius: var(--radius-sm);
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; color: #fff; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* 3. Layout ---------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding: clamp(64px, 8vw, 112px) 0; }
.section--surface { background: var(--surface); border-block: 1px solid var(--border); }
.section--dark { background: var(--brand-900); color: var(--text-inverse-muted); }
.section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }

.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p {
  font-size: 1.1rem; color: var(--text-muted); margin-bottom: 0;
  text-wrap: pretty;
}
.section--dark .section-head p { color: var(--text-inverse-muted); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 650; letter-spacing: .1em; text-transform: uppercase;
  color: var(--brand-600); margin-bottom: 14px;
}
.eyebrow::before {
  content: ""; width: 22px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--brand-500), var(--accent-500));
}
.section--dark .eyebrow { color: var(--brand-400); }

.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* 4. Komponenten ----------------------------------------------------------- */

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: inherit; font-weight: 600; font-size: .98rem;
  padding: 14px 26px; border-radius: var(--radius-pill);
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease),
              background-color .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--brand-600); color: #fff;
  box-shadow: 0 6px 16px -6px rgba(31, 75, 184, .65);
}
.btn--primary:hover { background: var(--brand-500); color: #fff; box-shadow: 0 12px 24px -10px rgba(31, 75, 184, .75); }

.btn--ghost {
  background: #fff; color: var(--brand-900); border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}
.btn--ghost:hover { border-color: var(--brand-400); color: var(--brand-700); }

.btn--onDark { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.28); }
.btn--onDark:hover { background: rgba(255,255,255,.16); color: #fff; }

.btn--lg { padding: 17px 34px; font-size: 1.02rem; }
.btn--block { width: 100%; }
.btn .arrow { transition: transform .18s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* Karten */
.card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
  height: 100%;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--text-muted); font-size: .98rem; }

.card__icon {
  width: 50px; height: 50px; border-radius: var(--radius);
  display: grid; place-items: center; margin-bottom: 20px;
  background: var(--brand-50); color: var(--brand-600);
  border: 1px solid var(--brand-100);
}
.card__icon svg { width: 24px; height: 24px; }
.card--accent .card__icon { background: var(--accent-100); color: var(--accent-600); border-color: #b9ece5; }

/* Check-Liste */
.checklist { display: grid; gap: 11px; margin-top: 20px; }
.checklist li {
  position: relative; padding-left: 30px;
  font-size: .95rem; color: var(--text-muted); line-height: 1.5;
}
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .18em;
  width: 19px; height: 19px; border-radius: 50%;
  background: var(--brand-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f4bb8' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.card--accent .checklist li::before {
  background-color: var(--accent-100);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230d9488' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}

/* Badge */
.badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .78rem; font-weight: 600; letter-spacing: .01em;
  padding: 6px 13px; border-radius: var(--radius-pill);
  background: var(--brand-50); color: var(--brand-700); border: 1px solid var(--brand-100);
}

/* 5. Sektionen ------------------------------------------------------------- */

/* Header */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), background-color .25s var(--ease);
}
.header.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 1px 20px -8px rgba(10, 23, 51, .22);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; width: 100%; }

.logo {
  display: inline-flex; align-items: center; gap: 11px;
  color: var(--brand-900); font-weight: 700; font-size: 1.28rem; letter-spacing: -.03em;
}
.logo:hover { color: var(--brand-900); }
.logo__mark { width: 34px; height: 34px; flex: none; }
.logo__suffix { color: var(--brand-500); }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  position: relative; padding: 9px 14px; border-radius: var(--radius-sm);
  font-size: .95rem; font-weight: 550; color: var(--text-muted);
  transition: color .16s var(--ease), background-color .16s var(--ease);
}
.nav a:hover { color: var(--brand-900); background: var(--surface-2); }
.nav a.is-active { color: var(--brand-700); }
.nav a.is-active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 3px;
  height: 2px; border-radius: 2px; background: var(--brand-500);
}
.header__cta { display: flex; align-items: center; gap: 12px; }
.nav .btn--mobile { display: none; }

.nav-toggle {
  display: none; width: 44px; height: 44px; padding: 0;
  align-items: center; justify-content: center;
  background: #fff; border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  cursor: pointer; color: var(--brand-900);
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  padding: calc(var(--header-h) + clamp(56px, 8vw, 104px)) 0 clamp(64px, 8vw, 104px);
  background:
    radial-gradient(900px 480px at 82% -6%, rgba(42, 95, 224, .12), transparent 62%),
    radial-gradient(760px 420px at 6% 8%, rgba(20, 184, 166, .10), transparent 60%),
    linear-gradient(180deg, #fbfcfe 0%, #ffffff 62%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(to right, rgba(15, 30, 61, .045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 30, 61, .045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(760px 420px at 50% 22%, #000, transparent 78%);
  -webkit-mask-image: radial-gradient(760px 420px at 50% 22%, #000, transparent 78%);
}
.hero .container { position: relative; z-index: 1; }

.hero__grid {
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: clamp(32px, 5vw, 64px); align-items: center;
}
.hero__lead {
  font-size: clamp(1.05rem, .95rem + .45vw, 1.24rem);
  color: var(--text-muted); max-width: 37em; margin-bottom: 32px;
  text-wrap: pretty;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }

.hero__trust {
  display: flex; flex-wrap: wrap; gap: 10px 22px;
  padding-top: 26px; border-top: 1px solid var(--border);
}
.hero__trust li {
  display: flex; align-items: center; gap: 8px;
  font-size: .89rem; font-weight: 550; color: var(--text-muted);
}
.hero__trust svg { width: 17px; height: 17px; color: var(--accent-600); flex: none; }

/* Hero-Panel (Mock-Oberflaeche) */
.panel {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.panel__bar {
  display: flex; align-items: center; gap: 8px;
  padding: 13px 18px; background: var(--surface); border-bottom: 1px solid var(--border);
}
.panel__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.panel__title { margin-left: 8px; font-size: .82rem; font-weight: 600; color: var(--text-muted); }
.panel__body { padding: 22px; display: grid; gap: 14px; }

.stat-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.stat {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px;
}
.stat__label { font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); }
.stat__value { font-size: 1.45rem; font-weight: 700; color: var(--brand-900); letter-spacing: -.02em; line-height: 1.25; }
.stat__value span { font-size: .85rem; font-weight: 600; color: var(--accent-600); }

.flow { display: grid; gap: 9px; }
.flow__item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  font-size: .89rem; font-weight: 550; color: var(--brand-900);
}
.flow__item--done { background: var(--brand-50); border-color: var(--brand-100); }
.flow__item--active { background: #fff; border-color: var(--accent-500); box-shadow: 0 0 0 3px var(--accent-100); }
.flow__tick {
  width: 22px; height: 22px; flex: none; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--brand-600); color: #fff;
}
.flow__tick svg { width: 13px; height: 13px; }
.flow__item--active .flow__tick { background: var(--accent-500); }
.flow__item--todo .flow__tick { background: var(--border-strong); }
.flow__meta { margin-left: auto; font-size: .78rem; font-weight: 600; color: var(--text-muted); }

/* Vertrauensleiste */
.strip { padding: 30px 0; background: var(--surface); border-block: 1px solid var(--border); }
.strip__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 40px; }
.strip__label { font-size: .82rem; font-weight: 650; letter-spacing: .09em; text-transform: uppercase; color: var(--text-muted); }
.strip__items { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; }
.strip__item {
  display: flex; align-items: center; gap: 9px;
  font-size: .93rem; font-weight: 600; color: var(--brand-800);
}
.strip__item svg { width: 19px; height: 19px; color: var(--brand-500); flex: none; }

/* Leistungen */
.service { display: flex; flex-direction: column; }
.service__foot { margin-top: auto; padding-top: 22px; }
.service__link {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .93rem; font-weight: 600; color: var(--brand-600);
}
.service__link svg { width: 16px; height: 16px; transition: transform .18s var(--ease); }
.service__link:hover svg { transform: translateX(3px); }

/* Ablauf */
.steps { counter-reset: step; display: grid; gap: 24px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.step { position: relative; padding-top: 26px; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; top: -8px; left: 0;
  font-size: 2.4rem; font-weight: 700; letter-spacing: -.04em;
  color: rgba(255, 255, 255, .13);
}
.step__line {
  position: relative; height: 2px; margin-bottom: 20px;
  background: rgba(255, 255, 255, .14); border-radius: 2px;
}
.step__line::after {
  content: ""; position: absolute; left: 0; top: -3px;
  width: 8px; height: 8px; border-radius: 50%; background: var(--brand-400);
}
.step:first-child .step__line::after { background: var(--accent-500); }
.step h3 { font-size: 1.1rem; margin-bottom: 8px; }
.step p { font-size: .94rem; color: var(--text-inverse-muted); margin-bottom: 0; }
.step__time {
  display: inline-block; margin-top: 12px; font-size: .78rem; font-weight: 600;
  color: var(--brand-400); letter-spacing: .02em;
}

/* Warum wir */
.why { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 60px); align-items: start; }
.why__list { display: grid; gap: 22px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.why__item { display: flex; gap: 14px; }
.why__icon {
  width: 40px; height: 40px; flex: none; border-radius: 11px;
  display: grid; place-items: center;
  background: var(--brand-50); color: var(--brand-600); border: 1px solid var(--brand-100);
}
.why__icon svg { width: 20px; height: 20px; }
.why__item h4 { margin-bottom: 4px; }
.why__item p { font-size: .93rem; color: var(--text-muted); margin-bottom: 0; }

/* Gruender-Notiz */
.founder {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 30px; box-shadow: var(--shadow-sm); position: sticky; top: calc(var(--header-h) + 24px);
}
.founder__head { display: flex; align-items: center; gap: 15px; margin-bottom: 18px; }
.founder__avatar {
  width: 58px; height: 58px; flex: none; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; font-size: 1.2rem; color: #fff;
  background: linear-gradient(135deg, var(--brand-600), var(--accent-600));
  object-fit: cover;
}
.founder__name { font-weight: 650; color: var(--brand-900); line-height: 1.3; }
.founder__role { font-size: .88rem; color: var(--text-muted); }
.founder blockquote { margin: 0; font-size: 1.02rem; color: var(--text-muted); line-height: 1.6; }
.founder__sign { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border); display: grid; gap: 10px; }
.founder__sign a { display: inline-flex; align-items: center; gap: 9px; font-size: .93rem; font-weight: 600; }
.founder__sign svg { width: 17px; height: 17px; color: var(--brand-500); flex: none; }

/* Anwendungsfaelle */
.usecase { padding: 26px; }
.usecase__tag {
  display: inline-block; font-size: .76rem; font-weight: 650; letter-spacing: .07em;
  text-transform: uppercase; color: var(--accent-600); margin-bottom: 12px;
}
.usecase h3 { font-size: 1.08rem; }
.usecase__result {
  margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--border-strong);
  font-size: .9rem; font-weight: 600; color: var(--brand-700);
  display: flex; align-items: flex-start; gap: 9px;
}
.usecase__result svg { width: 17px; height: 17px; color: var(--accent-600); flex: none; margin-top: 3px; }

/* Hinweis unter dem Ablauf */
.steps__note {
  margin: clamp(36px, 5vw, 52px) 0 0;
  padding-top: 26px; border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: .96rem; color: var(--text-inverse-muted); max-width: 72ch;
}
.steps__note a {
  color: var(--brand-400); font-weight: 600; white-space: nowrap;
  border-bottom: 1px solid rgba(91, 134, 239, .45);
}
.steps__note a:hover { color: #fff; border-bottom-color: #fff; }

/* Richtwerte + ROI-Rechner nebeneinander */
.value-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) 420px;
  gap: clamp(24px, 3vw, 36px); align-items: start;
}

/* Richtwerte-Liste */
.rates {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); overflow: hidden;
}
.rates__title {
  margin: 0; padding: 17px 26px; background: var(--surface);
  border-bottom: 1px solid var(--border);
  font-size: .76rem; font-weight: 650; letter-spacing: .09em; text-transform: uppercase;
  color: var(--text-muted);
}
.rate {
  display: flex; flex-wrap: wrap; gap: 8px 20px;
  align-items: baseline; justify-content: space-between;
  padding: 18px 26px; border-bottom: 1px solid var(--border);
  transition: background-color .16s var(--ease);
}
.rate:last-child { border-bottom: none; }
.rate:hover { background: var(--brand-50); }
.rate__main { flex: 1 1 260px; min-width: 0; }
.rate__main strong { display: block; font-size: 1.01rem; color: var(--brand-900); margin-bottom: 2px; }
.rate__main span { display: block; font-size: .88rem; color: var(--text-muted); line-height: 1.5; }
/* Vergleich mit Fertigsoftware: laufende Abokosten gegen einmaligen Preis */
.rate__compare {
  margin: 11px 0 0; padding: 10px 13px;
  background: var(--surface); border: 1px solid var(--border);
  border-left: 3px solid var(--cost); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: .85rem; line-height: 1.5; color: var(--text-muted);
}
.rate__compare strong {
  color: var(--cost-dark); font-weight: 700; white-space: nowrap;
  font-size: .98rem; font-variant-numeric: tabular-nums;
}
/* Spezifisch genug, um .rate__main span zu schlagen */
.rate__compare .rate__vs {
  display: block; font-size: .7rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--brand-700); margin-bottom: 2px; line-height: 1.4;
}

.rate__meta { display: flex; align-items: baseline; gap: 16px; flex: none; }
.rate__time { font-size: .86rem; color: var(--text-muted); white-space: nowrap; }
.rate__price {
  font-size: 1rem; font-weight: 650; color: var(--brand-700);
  white-space: nowrap; letter-spacing: -.01em;
}
.rates__note {
  margin: 0; padding: 18px 26px; background: var(--surface);
  border-top: 1px solid var(--border);
  font-size: .87rem; color: var(--text-muted);
}

/* ROI-Rechner */
.roi {
  background: var(--brand-900); color: var(--text-inverse-muted);
  border-radius: var(--radius-lg); padding: 26px;
  box-shadow: var(--shadow-lg);
}
.roi__head { margin-bottom: 22px; }
.roi__head h3 { color: #fff; font-size: 1.32rem; margin: 0 0 5px; }
.roi__head p { font-size: .9rem; color: var(--text-inverse-muted); margin: 0; }

.roi__inputs { display: grid; gap: 17px; }
.roi__field label, .roi__legend {
  display: flex; align-items: baseline; justify-content: space-between; gap: 14px;
  font-size: .87rem; font-weight: 550; color: #cdd8ef; margin-bottom: 9px; line-height: 1.4;
}
.roi__field output {
  font-size: .95rem; font-weight: 700; color: #fff;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}

.roi input[type="range"] {
  width: 100%; height: 22px; margin: 0; cursor: pointer;
  accent-color: var(--accent-500); background: transparent;
}
.roi input[type="range"]:focus-visible { outline: 3px solid var(--brand-400); outline-offset: 4px; }

.roi__seg { display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px; }
.roi__segbtn {
  display: grid; gap: 2px; font: inherit; text-align: left; cursor: pointer;
  padding: 11px 12px; border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14);
  color: #dbe4f7; font-size: .84rem; font-weight: 600; line-height: 1.25;
  transition: background-color .16s var(--ease), border-color .16s var(--ease), color .16s var(--ease);
}
.roi__segbtn small { font-size: .74rem; font-weight: 500; color: #97a7c8; }
.roi__segbtn:hover { background: rgba(255, 255, 255, .11); }
.roi__segbtn.is-on {
  background: rgba(20, 184, 166, .16); border-color: var(--accent-500); color: #fff;
}
.roi__segbtn.is-on small { color: #8fe3d8; }

/* Liegt innerhalb von .roi__field und erbt dort das Flex-Layout der Labels */
.roi__field .roi__custom { margin-top: 13px; margin-bottom: 0; align-items: center; }
.roi__custom span { font-size: .85rem; color: #cdd8ef; font-weight: 550; }
.roi__custom input {
  font: inherit; font-size: .97rem; font-weight: 600; color: #fff;
  width: 140px; flex: none; text-align: right;
  padding: 10px 13px; border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .2);
}
.roi__custom input:focus { outline: none; border-color: var(--accent-500); background: rgba(255, 255, 255, .11); }

.roi__out {
  margin-top: 26px; padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .13);
}
.roi__label {
  display: block; font-size: .74rem; font-weight: 650; letter-spacing: .07em;
  text-transform: uppercase; color: #8b9cbe; margin-bottom: 4px;
}
.roi__big {
  display: block; font-size: clamp(2.15rem, 1.5rem + 2vw, 2.9rem); font-weight: 700;
  color: var(--gain); letter-spacing: -.035em; line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.roi__headline .roi__label { color: #a9bdd6; }

/* Heutige Kosten – der Ausgangswert, bewusst zurueckhaltend */
.roi__today {
  padding: 12px 14px; border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1);
}
.roi__todayline { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
/* Was Nichtstun kostet – derselbe Betrag, nur ueber drei Jahre gedacht */
.roi__today small {
  display: block; margin-top: 6px; font-size: .79rem; color: #8b9cbe; line-height: 1.5;
}
.roi__today small b { color: #c6d2ea; font-weight: 650; font-variant-numeric: tabular-nums; }
.roi__today span { font-size: .85rem; color: #a3b3d2; font-weight: 550; }
.roi__today strong {
  font-size: 1.02rem; font-weight: 700; color: #fff;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.roi__bar {
  height: 6px; border-radius: 3px; margin: 18px 0 20px;
  background: rgba(255, 255, 255, .11); overflow: hidden;
}
.roi__barfill {
  height: 100%; border-radius: 3px; background: var(--accent-500);
  transition: width .35s var(--ease), background-color .35s var(--ease);
}
.roi__barfill.is-slow { background: #e0a33c; }
.roi__barfill.is-bad { background: #d97070; }

.roi__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.roi__val {
  display: block; font-size: 1.16rem; font-weight: 650; color: #fff;
  letter-spacing: -.02em; font-variant-numeric: tabular-nums;
}
.roi__verdict {
  margin: 20px 0 0; padding: 13px 15px; border-radius: var(--radius-sm);
  background: rgba(20, 184, 166, .12); border: 1px solid rgba(20, 184, 166, .3);
  font-size: .89rem; color: #c6f0ea; line-height: 1.5;
}
.roi__verdict.is-slow { background: rgba(224, 163, 60, .12); border-color: rgba(224, 163, 60, .34); color: #f2d9a8; }
.roi__verdict.is-bad { background: rgba(217, 112, 112, .13); border-color: rgba(217, 112, 112, .34); color: #f3c9c9; }

.roi__note {
  margin: 20px 0 0; padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .11);
  font-size: .8rem; line-height: 1.6; color: #8b9cbe;
}
.roi__note code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .96em; color: #b9c7e4; background: rgba(255, 255, 255, .07);
  padding: 1px 6px; border-radius: 4px;
}

/* Kostenloser Einstieg */
.entry {
  margin-top: 28px; display: grid; grid-template-columns: minmax(0, 1fr) 300px;
  gap: clamp(28px, 4vw, 48px); align-items: center;
  background: var(--brand-50); border: 1px solid var(--brand-100);
  border-radius: var(--radius-lg); padding: clamp(26px, 3.4vw, 40px);
}
.entry h3 { margin: 14px 0 10px; font-size: 1.32rem; }
.entry p { color: var(--text-muted); font-size: .99rem; margin-bottom: 0; }
.entry .badge { background: #fff; }
.entry__action { display: grid; gap: 10px; }

.checklist--inline {
  display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 18px;
}
.checklist--inline li { padding-left: 27px; font-size: .92rem; }

/* FAQ */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 12px; }
.faq details {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); overflow: hidden;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.faq details[open] { border-color: var(--brand-100); box-shadow: var(--shadow); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 19px 24px; cursor: pointer; list-style: none;
  font-weight: 600; font-size: 1.01rem; color: var(--brand-900);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--brand-600); }
.faq summary::after {
  content: ""; width: 20px; height: 20px; flex: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2355607a' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .2s var(--ease);
}
.faq details[open] summary::after { transform: rotate(180deg); }
.faq__answer { padding: 0 24px 22px; color: var(--text-muted); font-size: .98rem; }

/* Kontakt – dunkler Block, der auf Weiss steht (gleiche Optik wie das CTA-Band) */
.contact-panel {
  border-radius: var(--radius-lg);
  padding: clamp(30px, 4.5vw, 60px);
  box-shadow: var(--shadow-lg);
}

.contact { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 56px); align-items: start; }
.contact__info { display: grid; gap: 14px; margin-top: 30px; }
.contact__row { display: flex; gap: 13px; align-items: flex-start; }
.contact__row svg { width: 19px; height: 19px; color: var(--brand-400); flex: none; margin-top: 4px; }
.contact__row a { color: #fff; font-weight: 600; }
.contact__row a:hover { color: var(--brand-400); }
.contact__row span { display: block; font-size: .85rem; color: var(--text-inverse-muted); }

.contact__assure {
  margin-top: 28px; padding: 18px 20px; border-radius: var(--radius);
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12);
  font-size: .9rem; color: var(--text-inverse-muted);
}
.contact__assure strong { color: #fff; }

/* Formular */
.form {
  background: #fff; border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 34px);
  box-shadow: var(--shadow-lg); color: var(--text);
}
.form__grid { display: grid; gap: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field { display: grid; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .88rem; font-weight: 600; color: var(--brand-900); }
.field label .opt { font-weight: 500; color: var(--text-muted); }

.field input, .field select, .field textarea {
  font: inherit; font-size: .97rem; color: var(--text);
  padding: 12px 14px; width: 100%;
  background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  transition: border-color .16s var(--ease), box-shadow .16s var(--ease), background-color .16s var(--ease);
}
.field textarea { min-height: 132px; resize: vertical; }
.field select {
  appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2355607a' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center; background-size: 17px;
  padding-right: 40px;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; background: #fff;
  border-color: var(--brand-500); box-shadow: 0 0 0 3px var(--brand-100);
}
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #d64545; box-shadow: 0 0 0 3px #fbe6e6; }
.field .error { font-size: .82rem; color: #c13333; }

.checkbox { display: flex; gap: 11px; align-items: flex-start; grid-column: 1 / -1; }
.checkbox input { width: 19px; height: 19px; flex: none; margin-top: 3px; accent-color: var(--brand-600); }
.checkbox label { font-size: .88rem; font-weight: 450; color: var(--text-muted); line-height: 1.5; }

.form__foot { grid-column: 1 / -1; display: grid; gap: 12px; }
.form__note { font-size: .82rem; color: var(--text-muted); text-align: center; margin: 0; }

.form__status {
  grid-column: 1 / -1; padding: 14px 16px; border-radius: var(--radius-sm);
  font-size: .92rem; font-weight: 550; display: none;
}
.form__status.is-visible { display: block; }
.form__status--ok { background: var(--accent-100); color: #0b6b60; border: 1px solid #a9e5dd; }
.form__status--err { background: #fdeaea; color: #a32c2c; border: 1px solid #f4c7c7; }

/* honeypot */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* 6. Footer ---------------------------------------------------------------- */
.footer { background: var(--brand-950); color: var(--text-inverse-muted); padding: 64px 0 28px; font-size: .93rem; }
.footer a { color: var(--text-inverse-muted); }
.footer a:hover { color: #fff; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 40px; }
.footer .logo { color: #fff; margin-bottom: 14px; }
.footer .logo:hover { color: #fff; }
.footer__about { max-width: 34ch; color: var(--text-inverse-muted); font-size: .92rem; }
.footer h4 { color: #fff; font-size: .82rem; letter-spacing: .09em; text-transform: uppercase; margin-bottom: 16px; }
.footer__links { display: grid; gap: 10px; }
.footer__bottom {
  display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between;
  padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: .86rem; color: #7a89a8;
}
.footer__bottom nav { display: flex; flex-wrap: wrap; gap: 20px; }

/* Rechtsseiten */
.legal { padding: calc(var(--header-h) + 56px) 0 80px; }
.legal__inner { max-width: 760px; margin-inline: auto; }
.legal h1 {
  font-size: clamp(1.9rem, 1.4rem + 2vw, 2.7rem); margin-bottom: 10px;
  -webkit-hyphens: auto; hyphens: auto; overflow-wrap: break-word;
}
.legal__meta { color: var(--text-muted); font-size: .9rem; margin-bottom: 40px; }
.legal h2 { font-size: 1.38rem; margin-top: 44px; }
.legal h3 { font-size: 1.05rem; margin-top: 28px; }
.legal p, .legal li { color: var(--text-muted); font-size: .98rem; }
.legal ul { list-style: disc; padding-left: 22px; display: grid; gap: 7px; margin-bottom: 1.1em; }
.legal address { font-style: normal; color: var(--text-muted); }
.legal .todo {
  display: block; background: #fff8e6; border: 1px solid #f3dda0; color: #7a5a10;
  border-radius: var(--radius-sm); padding: 14px 16px; font-size: .9rem; margin: 18px 0;
}
.legal .todo strong { color: #6a4c06; }

/* 7. Responsive ------------------------------------------------------------ */
@media (max-width: 1020px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 34px; }
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__visual { max-width: 560px; }
  .why { grid-template-columns: minmax(0, 1fr); }
  .founder { position: static; }
  .contact { grid-template-columns: minmax(0, 1fr); }
  .entry { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .value-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 860px) {
  :root { --gutter: 20px; }
  .nav-toggle { display: inline-flex; }
  .header__cta .btn { display: none; }
  /* Rechtsseiten haben kein Burger-Menue: Rueckweg muss sichtbar bleiben */
  .header__cta .btn--always { display: inline-flex; padding: 11px 18px; font-size: .9rem; }

  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 14px var(--gutter) 22px;
    background: #fff; border-bottom: 1px solid var(--border);
    box-shadow: 0 20px 40px -24px rgba(10, 23, 51, .4);
    transform: translateY(-14px); opacity: 0; pointer-events: none;
    transition: opacity .2s var(--ease), transform .2s var(--ease);
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
  }
  .nav.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav a { padding: 13px 12px; font-size: 1rem; border-radius: var(--radius-sm); }
  .nav a.is-active::after { display: none; }
  .nav a.is-active { background: var(--brand-50); }
  .nav .btn--mobile { display: inline-flex; margin-top: 12px; color: #fff; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .btn { white-space: normal; padding-inline: 20px; }
  .btn--lg { padding-inline: 22px; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .why__list { grid-template-columns: minmax(0, 1fr); }
  .form__grid { grid-template-columns: minmax(0, 1fr); }
  .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-row .stat:last-child { display: none; }
  .hero__actions .btn { width: 100%; }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; }
  .footer__grid > :first-child { grid-column: 1 / -1; }
  .strip__inner { flex-direction: column; }
  .checklist--inline { display: grid; gap: 11px; }

  .rates__title, .rates__note { padding-inline: 20px; }
  .rate { padding: 16px 20px; }
  .rate__meta { width: 100%; justify-content: space-between; gap: 12px; }

  /* Gutter + Panel + Formularkarte summierten sich auf 148 px Rand – fuer die
     Eingabefelder blieben davon 209 px uebrig. Auf dem Handy zaehlt die Flaeche. */
  .contact-panel { padding: 24px 18px; }
  .form { padding: 22px 16px; }

  .roi { padding: 22px; }
  .roi__seg { grid-template-columns: 1fr; }
  .roi__segbtn { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
  .roi__pair { grid-template-columns: 1fr; gap: 14px; }
}

/* 7b. Konversions-Bausteine -------------------------------------------------
   Kleine Elemente, die dem Besucher direkt an der Handlung sagen, worauf er
   sich einlaesst. Siehe README, Abschnitt "Konversionselemente".
   -------------------------------------------------------------------------- */

/* Beruhigungszeile direkt unter einem Knopf */
.cta-cue {
  display: flex; align-items: flex-start; gap: 9px;
  margin: 14px 0 0; font-size: .89rem; font-weight: 500;
  color: var(--text-muted); line-height: 1.5;
}
.cta-cue svg { width: 16px; height: 16px; color: var(--accent-600); flex: none; margin-top: 3px; }
.cta-cue--dark { color: var(--text-inverse-muted); }
.cta-cue--dark svg { color: var(--gain); }
.cta-cue--center { justify-content: center; text-align: left; }
.hero .cta-cue { margin: -16px 0 24px; }

/* Abschlusszeile unter einem Kartenraster: faengt ab, wer sich nicht wiederfindet */
.after-grid {
  margin: 32px auto 0; max-width: 62ch; text-align: center;
  font-size: .96rem; color: var(--text-muted);
}

/* Knopf im ROI-Rechner: die Zahl steht, jetzt muss der naechste Schritt danebenstehen */
.roi__cta { margin-top: 18px; justify-content: center; }
.roi__out .cta-cue { margin-top: 10px; }

/* Potenzial-Check: was der Besucher behaelt, auch wenn er nicht bucht */
.entry__keep {
  margin: 16px 0 0; padding-left: 14px; border-left: 3px solid var(--accent-500);
  font-size: .92rem; color: var(--text-muted); line-height: 1.55;
}

/* "So geht es weiter" – nimmt die Unsicherheit vor dem Absenden */
.next { display: grid; gap: 14px; margin: 28px 0 0; }
.next li { display: flex; gap: 13px; align-items: flex-start; }
.next div { font-size: .9rem; color: var(--text-inverse-muted); line-height: 1.55; }
.next strong { display: block; color: #fff; font-weight: 650; font-size: .95rem; margin-bottom: 1px; }
.next__num {
  flex: none; width: 27px; height: 27px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(91, 134, 239, .22); border: 1px solid rgba(91, 134, 239, .45);
  color: #fff; font-size: .8rem; font-weight: 700;
}

/* Kapazitaets-Hinweis – nur zulaessig, solange er stimmt */
.capacity {
  display: flex; gap: 12px; align-items: flex-start; margin: 14px 0 0;
  font-size: .86rem; color: var(--text-inverse-muted); line-height: 1.55;
}
.capacity__dot {
  flex: none; width: 9px; height: 9px; border-radius: 50%; margin-top: 6px;
  background: var(--gain); box-shadow: 0 0 0 4px rgba(52, 211, 153, .18);
}

/* Aktionsleiste am unteren Rand – nur auf dem Handy, erst nach dem Hero */
.mobilebar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
  display: none; align-items: center; gap: 10px;
  padding: 10px var(--gutter);
  padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-top: 1px solid var(--border);
  box-shadow: 0 -10px 30px -22px rgba(10, 23, 51, .8);
  transform: translateY(115%);
  transition: transform .26s var(--ease);
}
.mobilebar.is-in { transform: none; }
.mobilebar__call {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  padding: 13px 15px; border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong); background: #fff;
  font-size: .92rem; font-weight: 600; color: var(--brand-900);
}
.mobilebar__call svg { width: 17px; height: 17px; color: var(--brand-500); }
.mobilebar__cta { flex: 1; justify-content: center; padding: 14px 16px; font-size: .95rem; }

@media (max-width: 680px) {
  .mobilebar { display: flex; }
  /* Klasse setzt main.js – die Rechtsseiten haben keine Leiste und keinen Rand */
  body.has-mobilebar { padding-bottom: 74px; }
  .cta-cue--center { justify-content: flex-start; }
}

/* Auf schmalen Geraeten gehoert die Breite dem Hauptknopf */
@media (max-width: 420px) {
  .mobilebar__call { padding: 13px; }
  .mobilebar__label { display: none; }
}

@media (max-width: 340px) {
  .panel__body { padding: 14px; }
  .stat { padding: 10px; }
  .stat-row { gap: 8px; }
  .flow__item { padding: 11px 10px; gap: 9px; }
  /* Betrag und Beschriftung passen nebeneinander nicht mehr nebeneinander */
  .roi__todayline { flex-direction: column; align-items: flex-start; gap: 2px; }
  /* Zwei Fussnoten-Spalten ergeben bei dieser Breite Spalten von 90 px */
  .footer__grid { grid-template-columns: minmax(0, 1fr); }
}

@media print { .mobilebar { display: none !important; } }

/* 8. Motion ---------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(18px); }
.reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity .6s var(--ease), transform .6s var(--ease);
  transition-delay: var(--delay, 0ms);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .header, .nav-toggle, .form, .footer__grid { display: none !important; }
  body { font-size: 12pt; }
}
