/* Mesper Local — Design-System
   Werte 1:1 aus dem freigegebenen Claude-Design, plus die Korrekturen
   aus Abschnitt 5 der Bauspezifikation (Kontrast, Tap-Targets, Schnitte). */

:root {
  /* Marke */
  --indigo-500: #5a58e7;
  --indigo-600: #4b49d8;
  --indigo-700: #3d3bd0;
  --blue-500: #3490eb;
  --violet-500: #7d50ca;
  --ink-900: #14142b;
  --slate-500: #7f89a2;   /* nur >=24px oder dekorativ */
  --text-secondary: #5c6780; /* AA-Korrektur: 5,7:1 auf Weiss */
  --placeholder: #68738c;    /* AA-Korrektur: 4,8:1 */
  --line-200: #dfe3ee;
  --cloud-100: #f4f5f9;
  --white: #ffffff;
  --gold-500: #ffd700;
  --green-600: #179954;
  --red-500: #d9484f;

  /* Alpha */
  --ink-05: rgba(20, 20, 43, 0.05);
  --ink-08: rgba(20, 20, 43, 0.08);
  --ink-10: rgba(20, 20, 43, 0.10);
  --ink-12: rgba(20, 20, 43, 0.12);
  --ink-15: rgba(20, 20, 43, 0.15);
  --ink-25: rgba(20, 20, 43, 0.25);
  --accent-05: rgba(90, 88, 231, 0.05);
  --accent-15: rgba(90, 88, 231, 0.15);
  --accent-25: rgba(90, 88, 231, 0.25);
  --green-12: rgba(23, 153, 84, 0.12);
  --red-12: rgba(217, 72, 79, 0.12);
  --white-18: rgba(255, 255, 255, 0.18);
  --white-85: rgba(255, 255, 255, 0.85);

  /* Verlaeufe */
  --grad-rule: linear-gradient(90deg, #3490eb, #5a58e7, #7d50ca);
  --grad-number: linear-gradient(120deg, #3490eb, #5a58e7, #7d50ca);
  --grad-wash: linear-gradient(135deg, rgba(52,144,235,.05), rgba(90,88,231,.05) 50%, rgba(125,80,202,.05));
  --grad-cta: linear-gradient(115deg, #3490eb, #5a58e7 52%, #7d50ca);

  /* Radien */
  --r-xs: 2px;
  --r-logo: 6px;
  --r-highlight: 8px;
  --r-control: 12px;
  --r-panel-sm: 16px;
  --r-panel: 20px;
  --r-panel-lg: 24px;
  --r-pill: 999px;

  /* Schatten */
  --sh-card: 0 12px 32px rgba(20, 20, 43, 0.05);
  --sh-lift: 0 24px 60px rgba(20, 20, 43, 0.10);
  --sh-float: 0 24px 60px rgba(20, 20, 43, 0.25);
  --sh-cta: 0 10px 24px rgba(90, 88, 231, 0.25);

  /* Container */
  --c-wide: 1140px;
  --c-cta: 1040px;
  --c-medium: 880px;
  --c-narrow: 760px;

  --gutter: clamp(20px, 4vw, 32px);
  --sec-pad: clamp(56px, 8vw, 96px);
  --sec-pad-hero: clamp(48px, 7vw, 88px);
  --head-gap: clamp(32px, 5vw, 48px);
}

/* Basis */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--ink-900);
  background: var(--white);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--indigo-500); }
a:hover { color: var(--indigo-700); }

img { max-width: 100%; display: block; }

/* Sektions-Anker unter dem 64px-Sticky-Header */
[id] { scroll-margin-top: 84px; }

/* Layout */
.wrap { max-width: var(--c-wide); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-cta { max-width: var(--c-cta); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-md { max-width: var(--c-medium); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-sm { max-width: var(--c-narrow); margin: 0 auto; padding: 0 var(--gutter); }

.sec { padding: var(--sec-pad) 0; }
.sec-hero { padding: var(--sec-pad-hero) 0; }
.sec-wash { background: var(--grad-wash); }
.sec-cta { background: var(--grad-cta); }

.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: clamp(32px, 5vw, 56px);
  align-items: center;
}
.split-cta { --min: 320px; }

/* Typografie */
h1 {
  font-weight: 900;
  font-size: clamp(36px, 2.6vw + 24px, 58px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 18px 0 20px;
  max-width: 620px;
  text-wrap: balance;
}
h2 {
  font-weight: 900;
  font-size: clamp(28px, 1.8vw + 20px, 42px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 14px 0 0;
}
h3 { margin: 0 0 10px; font-weight: 800; font-size: 20px; }

.lead { font-size: 18px; line-height: 1.65; color: var(--text-secondary); margin: 0 0 28px; max-width: 520px; text-wrap: pretty; }
.body-lg { font-size: 17px; line-height: 1.6; margin: 0; text-wrap: pretty; }
.body { font-size: 16px; line-height: 1.65; text-wrap: pretty; }
.body-sm { font-size: 15.5px; line-height: 1.6; color: var(--text-secondary); margin: 0; text-wrap: pretty; }
.fine { font-size: 13px; color: var(--text-secondary); }
.kicker {
  font-size: 12px; font-weight: 700; letter-spacing: 0.12em;
  color: var(--text-secondary); text-transform: uppercase; margin-bottom: 12px;
}
.eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: 0.14em;
  color: var(--text-secondary); text-transform: uppercase;
}
.mark { background: var(--gold-500); border-radius: var(--r-highlight); padding: 0 12px; display: inline-block; }

/* Sektionskopf */
.sec-head { text-align: center; margin-bottom: var(--head-gap); }
.rule { width: 26px; height: 4px; border-radius: var(--r-xs); background: var(--grad-rule); flex: none; }
.rule-center { display: flex; justify-content: center; }

/* Buttons — Tap-Target-Korrektur: Mindesthoehe 48 */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--indigo-500); color: var(--white);
  font-family: inherit; font-weight: 700; font-size: 16px; line-height: 1;
  padding: 0 30px; height: 54px; border: none; border-radius: var(--r-control);
  text-decoration: none; cursor: pointer; box-shadow: var(--sh-cta);
}
.btn:hover { background: var(--indigo-600); color: var(--white); }
.btn:focus-visible { outline: 3px solid var(--accent-25); outline-offset: 2px; }
.btn-md { height: 52px; padding: 0 24px; }
.btn-sm { height: 48px; padding: 0 22px; font-size: 15px; box-shadow: none; }

/* Karten */
.card {
  background: var(--white); border: 1px solid var(--ink-08);
  border-radius: var(--r-panel); padding: 28px; box-shadow: var(--sh-card);
}
.card-lg { border-radius: var(--r-panel-lg); padding: 32px; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--white); border-bottom: 1px solid var(--ink-08);
}
.nav-inner {
  max-width: var(--c-wide); margin: 0 auto; padding: 0 var(--gutter);
  height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-link {
  color: var(--ink-900); font-weight: 600; font-size: 15px; text-decoration: none;
  display: inline-flex; align-items: center; min-height: 48px;
}
.nav-link:hover { color: var(--indigo-500); }
.logo { border-radius: var(--r-logo); flex: none; }

/* Mobile-Bar */
.mobile-bar {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: var(--white); border-top: 1px solid var(--ink-08);
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
}
.mobile-bar .btn { width: 100%; height: 52px; box-shadow: none; }

@media (max-width: 767px) {
  .nav-links { display: none; }
  .mobile-bar { display: flex; }
  body { padding-bottom: 80px; }
}

/* Zahlen mit Verlauf */
.num {
  font-weight: 900; font-size: 44px; line-height: 1; margin-bottom: 14px;
  background: var(--grad-number);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* Vergleichstabelle */
.cmp {
  display: grid; grid-template-columns: 1fr 1fr;
  border: 1px solid var(--ink-08); border-radius: var(--r-panel);
  overflow: hidden; box-shadow: var(--sh-card);
}
.cmp-h { padding: 20px 22px; font-weight: 700; font-size: 15px; color: var(--text-secondary); background: var(--white); }
.cmp-h-good { font-weight: 800; color: var(--indigo-500); background: var(--accent-05); }
.cmp-c {
  padding: 18px 22px; border-top: 1px solid var(--ink-08); background: var(--white);
  display: flex; gap: 10px; align-items: flex-start;
}
.cmp-c-good { background: var(--accent-05); }
.cmp-c span:first-child { font-weight: 700; flex: none; color: var(--text-secondary); }
.cmp-c-good span:first-child { color: var(--indigo-500); }
.cmp-c span:last-child { font-size: 15px; line-height: 1.55; color: var(--text-secondary); overflow-wrap: break-word; }
.cmp-c-good span:last-child { font-weight: 600; color: var(--ink-900); }
.cmp-label { display: none; }

/* Mobil stapeln, Korrektur aus dem v2-Review */
@media (max-width: 479px) {
  .cmp { grid-template-columns: 1fr; }
  .cmp-h { display: none; }
  .cmp-row-label {
    display: block; padding: 16px 22px 0; border-top: 1px solid var(--ink-08);
    font-weight: 800; font-size: 13px;
  }
  .cmp-c { border-top: 0; }
  .cmp-label { display: inline; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
}

/* Rechenbeispiel */
.pill {
  display: inline-block; background: var(--cloud-100); border-radius: var(--r-pill);
  padding: 9px 16px; font-size: 14.5px; font-weight: 600; margin-bottom: 16px;
}
.circ {
  width: 36px; height: 36px; border-radius: 50%; font-weight: 800; font-size: 17px;
  display: inline-flex; align-items: center; justify-content: center; flex: none;
}
.circ-good { background: var(--green-12); color: var(--green-600); }
.circ-bad { background: var(--red-12); color: var(--red-500); }
.dashed { border-top: 1px dashed var(--ink-15); padding-top: 16px; }
.verdict-good { margin: 0; font-weight: 800; font-size: 15.5px; color: var(--green-600); }
.verdict-bad { margin: 0; font-weight: 800; font-size: 15.5px; color: var(--red-500); }

/* Preis */
.price { font-weight: 900; font-size: 42px; letter-spacing: -0.02em; }
.price-per { font-size: 16px; color: var(--text-secondary); font-weight: 600; }
.plan-for { margin: 0 0 22px; font-size: 14.5px; color: var(--text-secondary); line-height: 1.55; }
.ticks { display: flex; flex-direction: column; gap: 12px; margin-bottom: 26px; }
.tick { display: flex; gap: 10px; align-items: flex-start; }
.tick span:first-child { color: var(--indigo-500); font-weight: 700; flex: none; }
.tick span:last-child { font-size: 15px; line-height: 1.55; }

/* Founder */
.founders { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 24px; max-width: 620px; margin: 0 auto; }
.founder { text-align: center; }
.founder img { border-radius: var(--r-panel); aspect-ratio: 1/1; object-fit: contain; background: var(--cloud-100); width: 100%; }
.founder-name { margin-top: 14px; font-weight: 800; font-size: 17px; }
.founder-role { margin-top: 2px; font-size: 14px; color: var(--text-secondary); }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq details { border: 1px solid var(--ink-08); border-radius: var(--r-panel-sm); padding: 18px 22px; background: var(--white); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  cursor: pointer; font-weight: 700; font-size: 16px; min-height: 48px; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:focus-visible { outline: 3px solid var(--accent-25); outline-offset: 4px; border-radius: 4px; }
.faq .plus { color: var(--indigo-500); font-size: 22px; font-weight: 600; line-height: 1; transition: transform .2s ease; flex: none; }
.faq details[open] .plus { transform: rotate(45deg); }
.faq p { margin: 12px 0 0; font-size: 15px; line-height: 1.65; color: var(--text-secondary); text-wrap: pretty; }

/* CTA-Sektion */
.cta-h2 { color: var(--white); margin: 0 0 12px; text-wrap: balance; }
.cta-sub { margin: 0 0 28px; font-size: 16px; line-height: 1.6; color: var(--white-85); }
.cta-list { display: flex; flex-direction: column; gap: 16px; }
.cta-item { display: flex; gap: 12px; align-items: center; }
.cta-item span:first-child {
  width: 26px; height: 26px; border-radius: 50%; background: var(--white-18);
  color: var(--white); font-size: 13px; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center; flex: none;
}
.cta-item span:last-child { color: var(--white); font-size: 16px; font-weight: 600; }

/* Formular */
.form-card {
  background: var(--white); border-radius: var(--r-panel-lg);
  padding: clamp(24px, 4vw, 32px); box-shadow: var(--sh-float);
}
.form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; font-weight: 700; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 16px; }
.input, .select {
  width: 100%; height: 50px; border: 1px solid var(--line-200); border-radius: var(--r-control);
  padding: 0 14px; font-family: inherit; font-size: 16px; color: var(--ink-900);
  background: var(--white); outline: none;
}
.select { padding: 0 10px; }
.input::placeholder { color: var(--placeholder); }
.input:focus, .select:focus { border-color: var(--indigo-500); box-shadow: 0 0 0 3px var(--accent-15); }
.input[aria-invalid="true"], .select[aria-invalid="true"] { border-color: var(--red-500); }
.form-note { margin: 0; font-size: 13.5px; color: var(--text-secondary); text-align: center; }
.form-ok { margin: 0; font-size: 14px; color: var(--green-600); font-weight: 700; text-align: center; }
.form-err { margin: 0; font-size: 14px; color: var(--red-500); font-weight: 700; text-align: center; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Footer */
.foot { padding: 40px 0 48px; background: var(--white); }
.foot-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 24px; }
.foot-claim { margin: 0; font-size: 14.5px; font-weight: 600; }
.foot-mail { font-size: 14.5px; color: var(--indigo-500); font-weight: 600; text-decoration: none; }
.foot-links { display: flex; gap: 24px; }
.foot-links a { font-size: 14px; color: var(--text-secondary); text-decoration: none; display: inline-flex; align-items: center; min-height: 48px; }
.foot-links a:hover { color: var(--indigo-500); }
.foot-legal { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--ink-08); font-size: 13px; color: var(--text-secondary); }
.foot-company { margin: 0 0 6px; }

/* Scroll-Reveal — nur Opacity, IX2-Ersatz respektiert reduced motion */
[data-reveal].is-hidden { opacity: 0; transition: opacity .45s ease; }
[data-reveal].is-in { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal].is-hidden { opacity: 1; transition: none; }
}
