/* ==========================================================================
   Website-Check — Funnel-Landingpage
   Ergänzt /styles.css (Tokens, .btn, .container, .field, .lead-*).
   Regel dieser Seite: ein Versprechen, ein Weg, keine Ausgänge.
   ========================================================================== */

/* ------------------------------------------------------------ Header */
.funnel-header {
  border-bottom: 1px solid var(--border-soft);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 40;
}

.funnel-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 14px;
}

.funnel-header .brand { display: inline-flex; align-items: center; gap: 9px; }

.funnel-phone {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  color: var(--ink-soft);
  text-decoration: none;
  white-space: nowrap;
}

.funnel-phone:hover { color: var(--blue); }

@media (max-width: 560px) {
  .funnel-phone span { display: none; }
  .funnel-phone { font-size: 13px; }
}

/* ------------------------------------------------------------ Hero */
.funnel-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(28px, 4.5vw, 60px);
  align-items: start;
  padding-block: clamp(32px, 5vw, 68px) clamp(40px, 6vw, 80px);
}

.funnel-title {
  font-size: clamp(30px, 4.6vw, 52px);
  line-height: 1.06;
  letter-spacing: -.025em;
  font-weight: 800;
  color: var(--ink);
  margin: 12px 0 16px;
}

.funnel-lead {
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.62;
  color: var(--ink-soft);
  max-width: 46ch;
}

.funnel-points {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.funnel-points li {
  position: relative;
  padding-left: 27px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-soft);
}

.funnel-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--blue-pale) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231E5BA8' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 10px 10px no-repeat;
}

.funnel-trust {
  display: flex;
  align-items: flex-start;   /* Icon bleibt an der ersten Zeile, wenn der Text umbricht */
  gap: 8px;
  margin-top: 24px;
  font-size: 13.5px;
  color: var(--muted);
}

.funnel-trust svg { flex: none; margin-top: 2px; }

@media (max-width: 900px) {
  .funnel-hero { grid-template-columns: 1fr; }
  .funnel-points { display: none; }   /* Mobil: Karte so früh wie möglich sichtbar */
  .funnel-trust { margin-top: 18px; }
}

/* ------------------------------------------------------------ Check-Karte */
.check-card {
  background: #fff;
  border: 1px solid var(--border-card);
  border-radius: 18px;
  box-shadow: 0 26px 60px -34px rgba(11, 21, 36, .34);
  padding: clamp(20px, 2.6vw, 30px);
  scroll-margin-top: 84px;
}

/* -------------------------------------------------- Fortschritt */
.check-progress { margin-bottom: 22px; }

.check-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 9px;
}

.check-step { font-size: 12px; color: var(--muted); letter-spacing: .04em; }

.check-back {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 0;
  background: none;
  padding: 2px 0;
  font: inherit;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
}

.check-back:hover { color: var(--ink); }
.check-back[hidden] { display: none; }   /* schlägt das display oben */

.check-bar {
  height: 5px;
  border-radius: 999px;
  background: var(--chip);
  overflow: hidden;
}

.check-bar-fill {
  display: block;
  height: 100%;
  width: 14%;
  border-radius: 999px;
  background: var(--blue);
  transition: width .35s var(--ease);
}

/* -------------------------------------------------- Frage + Antworten */
.check-question {
  font-size: clamp(19px, 2.1vw, 24px);
  line-height: 1.28;
  letter-spacing: -.015em;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 18px;
}

.check-options { display: grid; gap: 10px; }

.check-option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 15px 17px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: #fff;
  font: inherit;
  font-size: 15.5px;
  line-height: 1.4;
  color: var(--ink);
  cursor: pointer;
  transition: border-color .18s var(--ease), background .18s var(--ease), transform .18s var(--ease);
}

.check-option:hover {
  border-color: var(--blue-light);
  background: var(--blue-pale);
}

.check-option:active { transform: scale(.99); }

.check-option.is-picked {
  border-color: var(--blue);
  background: var(--blue-pale);
}

.check-option-mark {
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: #fff;
  transition: border-color .18s var(--ease), background .18s var(--ease);
}

.check-option.is-picked .check-option-mark {
  border-color: var(--blue);
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 11px 11px no-repeat;
}

.check-skip {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 6px;
  margin: 16px auto 0;
  border: 0;
  background: none;
  padding: 4px 2px;
  font: inherit;
  font-size: 13.5px;
  color: var(--muted);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--border);
}

.check-skip:hover { color: var(--blue); text-decoration-color: currentColor; }

/* Kein display auf .check-quiz/.check-result setzen — eine Author-Regel würde
   das [hidden]-Attribut aushebeln und beide Schritte gleichzeitig anzeigen
   (gleiche Falle wie bei .lead-form in /styles.css). */
.check-quiz[hidden],
.check-result[hidden] { display: none !important; }

/* -------------------------------------------------- Ergebnis */
.check-score {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 26px);
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border-hair);
}

.check-score-ring {
  flex: none;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  display: grid;
  place-content: center;
  text-align: center;
  background: conic-gradient(var(--ring-color, var(--blue)) calc(var(--ring-pct, 0) * 1%), var(--chip) 0);
  position: relative;
}

.check-score-ring::before {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 50%;
  background: #fff;
}

.check-score-num {
  position: relative;
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
  color: var(--ink);
  letter-spacing: -.02em;
}

.check-score-max {
  position: relative;
  display: block;
  margin-top: 3px;
  font-size: 10.5px;
  color: var(--muted);
  letter-spacing: .05em;
}

.check-score-label { font-size: 11.5px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }

.check-score-title {
  font-size: clamp(19px, 2.2vw, 25px);
  line-height: 1.2;
  letter-spacing: -.02em;
  font-weight: 800;
  color: var(--ink);
  margin: 5px 0 7px;
}

.check-score-text { font-size: 14.5px; line-height: 1.58; color: var(--ink-soft); }

@media (max-width: 480px) {
  .check-score { flex-direction: column; align-items: flex-start; gap: 16px; }
}

/* -------------------------------------------------- Befunde */
.check-findings {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.check-findings li {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 11px;
  align-items: start;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink-soft);
}

.check-findings b {
  display: block;
  color: var(--ink);
  font-weight: 700;
  margin-bottom: 1px;
}

.check-finding-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-content: center;
  margin-top: 1px;
}

.check-finding-icon svg { display: block; }
.is-good .check-finding-icon { background: #E7F5EC; }
.is-warn .check-finding-icon { background: #FDF3E2; }
.is-bad  .check-finding-icon { background: #FBE9E9; }

/* -------------------------------------------------- Übergabe ins Formular */
.check-handoff {
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid var(--border-hair);
}

.check-handoff-title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -.015em;
  color: var(--ink);
  margin-bottom: 7px;
}

.check-handoff-text {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin-bottom: 20px;
}

/* .lead-form ist in /styles.css eine eigene Karte (weiß, Schatten, Radius) —
   gedacht für die dunkle CTA-Sektion der Startseite. In der bereits weißen
   Check-Karte muss sie flach sein, sonst steht Karte in Karte. */
.check-handoff .lead-form {
  gap: 14px;
  background: none;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
}

/* ------------------------------------------------------------ Abschluss */
/* Der Header ist sticky (57 px) — ohne scroll-margin verschwindet die
   Zielüberschrift beim Sprung darunter. */
.check-handoff { scroll-margin-top: 76px; }

.closing-inner {
  max-width: 620px;
  margin-inline: auto;
  text-align: center;
}

.closing-inner .section-title { margin-bottom: 14px; }
.closing-inner .section-lead { margin-inline: auto; }

.closing-cta { margin-top: clamp(24px, 3vw, 32px); }

.closing-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 26px;
  font-size: 12.5px;
  letter-spacing: .04em;
  color: var(--muted);
}

.closing-contact a { color: var(--ink-soft); text-decoration: none; }
.closing-contact a:hover { color: var(--blue); }
.closing-sep { color: var(--border); }

.check-noscript {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* ------------------------------------------------------------ Beweis */
.proof-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(16px, 2.4vw, 26px);
  margin-top: 34px;
}

.proof-card {
  display: block;
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--border-card);
  border-radius: 14px;
  overflow: hidden;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}

.proof-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 44px -28px rgba(11, 21, 36, .4);
}

.proof-card img {
  display: block;
  width: 100%;
  height: auto;
  border-bottom: 1px solid var(--border-hair);
}

.proof-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 18px;
}

.proof-meta strong { font-size: 15px; color: var(--ink); }
.proof-meta .mono { font-size: 12px; color: var(--muted); }

/* ------------------------------------------------------------ Ablauf */
.how-steps {
  list-style: none;
  margin: 34px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: clamp(20px, 3vw, 36px);
  counter-reset: none;
}

.how-num { font-size: 12px; color: var(--blue); letter-spacing: .08em; }

.how-title {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.015em;
  color: var(--ink);
  margin: 9px 0 7px;
}

.how-steps p { font-size: 14.5px; line-height: 1.6; color: var(--ink-soft); }

.how-person {
  margin-top: clamp(30px, 4vw, 44px);
  padding: 20px 22px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
}

.how-person p { font-size: 14.5px; line-height: 1.62; color: var(--ink-soft); }
.how-person strong { color: var(--ink); }

.how-cta { margin-top: clamp(26px, 3.5vw, 38px); }

@media (prefers-reduced-motion: reduce) {
  .check-bar-fill,
  .check-option,
  .proof-card { transition: none; }
}
