/* FREIHEITSPILOT — Kampagnen-Landingpage /start/
   Eigenstaendig: laedt NUR tokens.css dazu, NICHT main.css/sections.css.
   Grund: main.css setzt .reveal { opacity: 0 } und braucht GSAP zum Einblenden —
   ohne main.js bliebe die Seite leer. Diese Seite laeuft ohne GSAP/Lenis, damit
   kalter Ad-Traffic sofort Inhalt UND Formular sieht (LCP-Budget < 2.5 s). */

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

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--paper);
  background: var(--navy-900);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }
ul, ol { list-style: none; }
::selection { background: var(--gold-400); color: var(--navy-900); }

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

.container { width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-label);
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-400);
}

.display {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.grain::after {
  content: '';
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  padding: 1rem 1.6rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
  transition: transform var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out),
              background-color var(--dur-fast) var(--ease-out);
}
.btn svg { width: 1.05em; height: 1.05em; flex: none; }
.btn--gold { background: var(--gold-400); color: var(--navy-900); box-shadow: var(--shadow-gold); }
.btn--gold:hover { background: var(--gold-300); transform: translateY(-2px); }
.btn--gold:active { transform: translateY(0); }
.btn--ghost { border: 1px solid var(--line-dark); color: var(--paper); }
.btn--ghost:hover { border-color: var(--gold-400); transform: translateY(-2px); }
.btn--block { width: 100%; padding-block: 1.15rem; font-size: 1.05rem; }
.btn[disabled] { opacity: 0.6; cursor: progress; transform: none; }

/* ---------- Kopf (bewusst ohne Navigation: keine Ausstiege) ---------- */

.lp-head {
  position: relative; z-index: 3;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-block: 1rem;
}
.lp-head__logo img { height: 30px; width: auto; }
.lp-head__trust {
  font-family: var(--font-mono);
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--paper-muted);
}

/* ---------- Hero: Formular im ersten Viewport ---------- */

.hero {
  position: relative;
  padding-bottom: clamp(3rem, 2rem + 4vw, 5.5rem);
  background:
    radial-gradient(1200px 620px at 82% -15%, rgba(233, 196, 106, 0.10), transparent 62%),
    radial-gradient(900px 700px at -5% 105%, rgba(42, 61, 102, 0.45), transparent 62%),
    var(--navy-950);
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 1rem + 4vw, 4.5rem);
  align-items: start;
  padding-top: clamp(0.75rem, 0.25rem + 1.6vw, 2.25rem);
}
.hero__copy > * + * { margin-top: 1.15rem; }
.hero h1 { font-size: clamp(2.35rem, 1.25rem + 3.6vw, 4.1rem); }
.hero h1 em { font-style: normal; color: var(--gold-400); }
.hero__sub { font-size: var(--text-lead); color: rgba(237, 240, 247, 0.82); max-width: 34ch; }

.hero__points { display: grid; gap: 0.7rem; margin-top: 1.6rem; }
.hero__points li {
  display: grid; grid-template-columns: 1.4rem 1fr; gap: 0.75rem;
  align-items: start;
  font-size: 0.97rem; color: rgba(237, 240, 247, 0.88);
}
.hero__points svg { width: 1.15rem; height: 1.15rem; color: var(--gold-400); margin-top: 0.28rem; }

.hero__proof {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem;
  margin-top: 1.9rem; padding-top: 1.4rem;
  border-top: 1px solid var(--line-dark);
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--paper-muted);
}
.hero__proof strong { color: var(--paper); font-weight: 500; }

/* ---------- Formular-Karte ---------- */

.card {
  position: relative;
  background: linear-gradient(180deg, rgba(27, 42, 74, 0.72), rgba(13, 21, 38, 0.88));
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-deep);
  padding: clamp(1.2rem, 0.9rem + 1vw, 1.8rem);
  backdrop-filter: blur(14px);
}
.card__head { margin-bottom: 1rem; }
.card__head h2 {
  font-family: var(--font-display); font-weight: 600; line-height: 1.15;
  font-size: clamp(1.3rem, 1.1rem + 0.65vw, 1.65rem);
}
.card__head p { margin-top: 0.45rem; font-size: 0.88rem; color: var(--paper-muted); line-height: 1.55; }

.steps { display: flex; gap: 0.5rem; margin-bottom: 0.85rem; }
.steps span {
  flex: 1; height: 3px; border-radius: 999px; background: rgba(237, 240, 247, 0.14);
  transition: background var(--dur-med) var(--ease-out);
}
.steps span[data-active] { background: var(--gold-400); }

.field { display: block; margin-bottom: 0.65rem; }
.field > span {
  display: block; margin-bottom: 0.28rem;
  font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--paper-muted); font-family: var(--font-mono);
}
.field input, .field select {
  width: 100%;
  padding: 0.72rem 1rem;
  font: inherit; font-size: 1rem;
  color: var(--paper);
  background: rgba(6, 10, 20, 0.55);
  border: 1px solid rgba(237, 240, 247, 0.14);
  border-radius: var(--radius-sm);
  transition: border-color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}
.field input::placeholder { color: var(--paper-faint); }
.field input:focus, .field select:focus {
  outline: none; border-color: var(--gold-400); background: rgba(6, 10, 20, 0.75);
}
.field input[aria-invalid="true"] { border-color: var(--red); }
.field select { appearance: none; cursor: pointer; padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2397A1B8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.9rem center; background-size: 1.1rem;
}
.field select option { background: var(--navy-900); color: var(--paper); }

.row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; }
.row .field { margin-bottom: 0.65rem; }

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

.consent-field {
  display: grid; grid-template-columns: 1.1rem 1fr; gap: 0.7rem;
  align-items: start;
  margin: 0.3rem 0 0.9rem;
  font-size: 0.78rem; line-height: 1.5; color: var(--paper-muted);
}
.consent-field input { margin-top: 0.28rem; accent-color: var(--gold-400); width: 1.05rem; height: 1.05rem; }
.consent-field a { color: var(--gold-400); text-decoration: underline; text-underline-offset: 2px; }

.form__note {
  margin-top: 0.85rem; text-align: center;
  font-size: 0.76rem; color: var(--paper-faint); line-height: 1.5;
}
.form__msg {
  margin-top: 0.85rem; font-size: 0.9rem; line-height: 1.55;
  color: var(--teal);
}
.form__msg.is-error { color: #E39A92; }
.form__msg:empty { display: none; }

/* Schritt 2 / Danke-Zustand */
.step2 { display: none; }
.card[data-step="2"] .step1 { display: none; }
.card[data-step="2"] .step2 { display: block; }
.card[data-step="done"] .step1, .card[data-step="done"] .step2 { display: none; }
.card[data-step="done"] .done { display: block; }
.done { display: none; }
.done h2 { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; line-height: 1.2; }
.done p { margin-top: 0.75rem; color: var(--paper-muted); font-size: 0.95rem; }
.done__check {
  width: 3rem; height: 3rem; border-radius: 50%;
  display: grid; place-items: center; margin-bottom: 1rem;
  background: var(--teal-dim); color: var(--teal);
}
.done__check svg { width: 1.5rem; height: 1.5rem; }

.skip {
  display: block; width: 100%; margin-top: 0.75rem; text-align: center;
  font-size: 0.82rem; color: var(--paper-faint); text-decoration: underline;
  text-underline-offset: 3px;
}
.skip:hover { color: var(--paper-muted); }

/* ---------- Sektionen ---------- */

.section { position: relative; padding-block: clamp(3.5rem, 2.5rem + 4vw, 6.5rem); }
.surface-sand { background: var(--sand); color: var(--ink); }
.surface-sand .eyebrow { color: var(--gold-500); }
.surface-navy { background: var(--navy-900); }
.surface-deep {
  background:
    radial-gradient(1000px 500px at 80% 0%, rgba(233, 196, 106, 0.07), transparent 60%),
    var(--navy-950);
}

.sec-head { max-width: 46rem; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.25rem); }
.sec-head h2 { font-size: clamp(1.9rem, 1.4rem + 2.2vw, 3.1rem); margin-top: 0.9rem; }
.sec-head p { margin-top: 1rem; font-size: var(--text-lead); color: var(--ink-muted); }
.surface-navy .sec-head p, .surface-deep .sec-head p { color: var(--paper-muted); }

/* Bausteine */
.blocks { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 1rem; }
.block {
  padding: 1.6rem 1.5rem;
  background: #fff;
  border: 1px solid rgba(19, 28, 46, 0.08);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}
.block__no {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.18em;
  color: var(--gold-500); text-transform: uppercase;
}
.block h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; margin: 0.65rem 0 0.55rem; line-height: 1.25; }
.block p { font-size: 0.94rem; color: var(--ink-muted); line-height: 1.65; }

/* Kennzahlen */
.gauges { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); gap: 1rem; }
.gauge {
  padding: 1.5rem 1.35rem;
  background: rgba(17, 29, 53, 0.55);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-md);
}
.gauge .k {
  font-family: var(--font-mono); font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.4rem);
  color: var(--gold-400); line-height: 1;
}
.gauge .l { margin-top: 0.7rem; font-size: 0.86rem; color: var(--paper-muted); line-height: 1.5; }

.disclaimer {
  margin-top: 2rem; padding-top: 1.5rem;
  border-top: 1px solid var(--line-dark-soft);
  font-size: 0.8rem; line-height: 1.65; color: var(--paper-faint);
  max-width: 62rem;
}
.disclaimer strong { color: var(--paper-muted); }

/* Ablauf */
.steps-list { display: grid; gap: 1px; background: rgba(19, 28, 46, 0.1); border-radius: var(--radius-md); overflow: hidden; }
.steps-list li { display: grid; grid-template-columns: 3.2rem 1fr; gap: 1.25rem; padding: 1.4rem 1.5rem; background: #fff; align-items: start; }
.steps-list .n {
  font-family: var(--font-mono); font-size: 0.85rem; color: var(--gold-500);
  border: 1px solid rgba(212, 168, 67, 0.35); border-radius: 50%;
  width: 2.4rem; height: 2.4rem; display: grid; place-items: center;
}
.steps-list h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; margin-bottom: 0.3rem; }
.steps-list p { font-size: 0.93rem; color: var(--ink-muted); line-height: 1.6; }

/* Person / Seriositaet */
.person { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(1.5rem, 1rem + 3vw, 3.5rem); align-items: center; }
.person__photo {
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line-dark); box-shadow: var(--shadow-deep);
}
.person__photo img { width: 100%; height: auto; }
.person h2 { font-size: clamp(1.7rem, 1.3rem + 1.8vw, 2.5rem); }
.person p { margin-top: 1rem; color: var(--paper-muted); line-height: 1.7; }
.person__facts { margin-top: 1.5rem; display: grid; gap: 0.6rem; }
.person__facts li { display: grid; grid-template-columns: 1.3rem 1fr; gap: 0.75rem; font-size: 0.93rem; color: rgba(237,240,247,0.85); }
.person__facts svg { width: 1.1rem; height: 1.1rem; color: var(--gold-400); margin-top: 0.3rem; }

/* Einwaende */
.objections { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: 1rem; }
.objection { padding: 1.6rem 1.5rem; background: rgba(17, 29, 53, 0.5); border: 1px solid var(--line-dark); border-radius: var(--radius-md); }
.objection h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.08rem; line-height: 1.3; margin-bottom: 0.6rem; }
.objection p { font-size: 0.92rem; color: var(--paper-muted); line-height: 1.65; }

/* Abschluss-CTA */
.close { text-align: center; }
.close h2 { font-size: clamp(1.9rem, 1.4rem + 2.4vw, 3.2rem); }
.close p { margin: 1.1rem auto 2rem; max-width: 40rem; font-size: var(--text-lead); color: var(--paper-muted); }

/* Footer */
.lp-foot { padding-block: 2.5rem 6rem; background: var(--navy-950); border-top: 1px solid var(--line-dark-soft); }
.lp-foot__inner { display: flex; flex-wrap: wrap; gap: 0.6rem 1.5rem; justify-content: space-between; font-size: 0.78rem; color: var(--paper-faint); }
.lp-foot a { color: var(--paper-muted); text-decoration: underline; text-underline-offset: 3px; }
.lp-foot a:hover { color: var(--gold-400); }

/* Sticky CTA (mobil) */
.sticky-cta {
  position: fixed; inset: auto 0 0 0; z-index: 40;
  display: none; align-items: center; gap: 1rem;
  padding: 0.75rem var(--gutter) calc(0.75rem + env(safe-area-inset-bottom));
  background: rgba(6, 10, 20, 0.94);
  border-top: 1px solid var(--line-dark);
  backdrop-filter: blur(10px);
}
.sticky-cta .t { flex: 1; font-size: 0.82rem; color: var(--paper-muted); line-height: 1.35; }
.sticky-cta .btn { padding: 0.8rem 1.2rem; font-size: 0.92rem; }
body.has-sticky .sticky-cta { display: flex; }
/* Solange das Consent-Banner offen ist, weicht die CTA-Leiste nach oben aus. */
body.consent-open .sticky-cta { display: none; }

/* ---------- Einblenden (CSS + IntersectionObserver, kein GSAP) ---------- */

/* Versteckt wird NUR, wenn JS laeuft (html.js-fade wird inline gesetzt) — sonst
   waere ein JS-Fehler gleichbedeutend mit einer leeren Seite. */
@media (prefers-reduced-motion: no-preference) {
  .js-fade .fade { opacity: 0; transform: translateY(18px); transition: opacity 620ms var(--ease-out), transform 620ms var(--ease-out); }
  .js-fade .fade.is-in { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */

/* Kurze Laptop-Viewports (1366x768 und aehnliche): Der Absende-Button muss ueber
   dem Consent-Banner sichtbar bleiben — sonst sieht kalter Ad-Traffic keinen CTA. */
@media (min-width: 981px) and (max-height: 820px) {
  .hero h1 { font-size: clamp(2rem, 1.2rem + 2.2vw, 3rem); }
  .hero__sub { font-size: 1rem; }
  .card__head h2 { font-size: 1.35rem; }
  .card__head p { font-size: 0.84rem; }
  .field { margin-bottom: 0.5rem; }
  .field input, .field select { padding: 0.62rem 0.9rem; }
  .consent-field { margin-bottom: 0.75rem; }
  .btn--block { padding-block: 0.95rem; }
  .form__note { margin-top: 0.6rem; font-size: 0.72rem; }
}

@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .hero__copy { order: 1; }
  .hero__form { order: 2; }
  .hero h1 { font-size: clamp(2.1rem, 1.4rem + 3.4vw, 3rem); }
  .hero__sub { max-width: none; font-size: 1.05rem; }
  /* Auf schmalen Screens zaehlt jede Pixelzeile bis zum Formular:
     Punkte + Proof-Leiste wandern unter die Karte. */
  .hero__points, .hero__proof { display: none; }
  .hero__points.hero__points--below { display: grid; }
  .person { grid-template-columns: 1fr; }
  .person__photo { max-width: 18rem; }
}

@media (max-width: 560px) {
  .row { grid-template-columns: 1fr; gap: 0; }
  .lp-head__trust { display: none; }
  .steps-list li { grid-template-columns: 1fr; gap: 0.75rem; }
  /* Jede eingesparte Zeile schiebt das Formular naeher an den ersten Viewport. */
  .eyebrow { letter-spacing: 0.18em; font-size: 0.7rem; }
  .hero h1 { font-size: 2rem; }
  .hero__sub { font-size: 1rem; line-height: 1.55; }
  .hero__copy > * + * { margin-top: 0.85rem; }
  .card__head h2 { font-size: 1.3rem; }
  .card__head p { font-size: 0.85rem; line-height: 1.5; }
}

/* Sichtbare Punkte unter der Karte gibt es nur mobil (siehe oben). */
.hero__points--below { display: none; margin-top: 1.5rem; }
