/* DentalByte – Lead-Magnet "tomedo-Angebot in 10 Minuten"
   CI-Farben: Marineblau -> Türkis (vorläufig, exakte Hex aus Original-Logo). */
:root {
  --navy:        #122250;
  --navy-soft:   #1d3168;
  --teal:        #3EB1A4;
  --teal-dark:   #2f8d83;
  --teal-light:  #e9f6f4;
  --ink:         #1d2733;
  --muted:       #6a7585;
  --line:        #e2e7ee;
  --bg:          #f4f7fb;
  --white:       #ffffff;
  --ok:          #2bb673;
  --warn:        #e9a13b;
  --bad:         #d9534f;
  --radius:      14px;
  --shadow:      0 10px 40px rgba(22, 36, 63, .12);
  --font:        system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg) radial-gradient(1200px 500px at 50% -200px, var(--teal-light), transparent) no-repeat;
  line-height: 1.5;
  padding: 24px 16px;
}

.wizard {
  max-width: 720px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

/* Kopf: heller Bereich mit farbigem Original-Logo */
.wizard__head {
  background: var(--white);
  padding: 26px 32px 22px;
  text-align: center;
}
.wizard__logo { height: 46px; width: auto; }
/* Claim als dunkelblauer Balken darunter */
.wizard__claim {
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-soft) 70%, var(--teal-dark) 160%);
  color: var(--white);
  font-size: 1.12rem; font-weight: 400;
  padding: 16px 32px; text-align: center;
}
.wizard__claim strong { color: var(--teal); font-weight: 600; }

/* Fortschritt */
.progress { height: 6px; background: var(--line); }
.progress__bar {
  height: 100%; width: 25%;
  background: linear-gradient(90deg, var(--teal-dark), var(--teal));
  transition: width .35s ease;
}
.progress__label {
  font-size: .82rem; color: var(--muted);
  text-align: right; padding: 8px 32px 0;
}

/* Schritte / Fragen */
form { padding: 8px 32px 28px; }
.step { animation: fade .3s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.step__title { font-size: 1.3rem; margin: 14px 0 4px; color: var(--navy); }
.step__sub   { color: var(--muted); margin: 0 0 18px; font-size: .95rem; }

.q { margin: 22px 0; }
.q__label { display: block; font-weight: 600; margin-bottom: 10px; }
.q__hint  { font-weight: 400; color: var(--muted); font-size: .88rem; }

/* Auswahl-Buttons (Optionen) */
.opts { display: grid; gap: 10px; }
.opts--2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 520px) { .opts--2 { grid-template-columns: 1fr; } }

.opt {
  display: flex; align-items: center; gap: 10px;
  border: 2px solid var(--line); border-radius: 10px;
  padding: 13px 15px; cursor: pointer; background: var(--white);
  transition: border-color .15s, background .15s, box-shadow .15s;
  font-size: .98rem;
}
.opt:hover { border-color: var(--teal); }
.opt input { accent-color: var(--teal-dark); width: 18px; height: 18px; }
.opt--active {
  border-color: var(--teal-dark);
  background: var(--teal-light);
  box-shadow: 0 0 0 1px var(--teal-dark) inset;
}

/* Textfelder */
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], select {
  width: 100%; padding: 12px 14px; font-size: 1rem; font-family: inherit;
  border: 2px solid var(--line); border-radius: 10px; background: var(--white);
  color: var(--ink);
}
input:focus, select:focus { outline: none; border-color: var(--teal-dark); }

/* Slider */
.slider-group { background: var(--bg); border-radius: 12px; padding: 16px 18px; }
.slider-row { display: flex; align-items: center; justify-content: space-between; margin: 6px 0; }
.slider-row b { color: var(--navy); }
input[type="range"] { width: 100%; accent-color: var(--teal-dark); }
.slider-readout { font-size: .9rem; color: var(--muted); margin-top: 6px; }
.slider-readout b { color: var(--teal-dark); }

/* Honeypot verstecken */
.hp { position: absolute; left: -5000px; height: 0; overflow: hidden; }

/* Buttons */
.wizard__nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 26px; }
.btn {
  font: inherit; font-weight: 600; border: none; border-radius: 10px;
  padding: 13px 26px; cursor: pointer; transition: transform .1s, box-shadow .15s, background .15s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--teal-dark); color: #fff; box-shadow: 0 6px 16px rgba(31,146,141,.35); }
.btn--primary:hover { background: var(--teal); }
.btn--primary:disabled { background: #b9c4d1; box-shadow: none; cursor: not-allowed; }
.btn--ghost { background: transparent; color: var(--muted); }
.btn--ghost:hover { color: var(--navy); }

/* Fehler */
.field-error { color: var(--bad); font-size: .85rem; margin-top: 6px; display: none; }
.q--invalid .field-error { display: block; }
.q--invalid .opt, .q--invalid input, .q--invalid select { border-color: var(--bad); }

/* DSGVO */
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--muted); margin-top: 8px; }
.consent input { margin-top: 3px; }
.consent a { color: var(--teal-dark); }

/* Ergebnis */
.wizard__result { padding: 40px 32px; text-align: center; }
.result__icon {
  width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%;
  background: var(--ok); color: #fff; font-size: 2rem; line-height: 64px;
}
.wizard__result h2 { color: var(--navy); margin: 0 0 8px; }

/* Fuß */
.wizard__foot {
  border-top: 1px solid var(--line); padding: 16px 32px; text-align: center;
  font-size: .78rem; color: var(--muted);
}
.wizard__foot a { color: var(--teal-dark); text-decoration: none; }

/* Lade-Spinner */
.spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.4);
  border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; vertical-align: -2px; margin-right: 8px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Eingangsweiche */
.gate { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 8px; }
@media (max-width: 560px) { .gate { grid-template-columns: 1fr; } }
.gate-card {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 8px; padding: 30px 20px; border: 2px solid var(--line); border-radius: 14px;
  background: var(--white); cursor: pointer; font: inherit; transition: border-color .15s, background .15s, transform .15s, box-shadow .15s;
}
.gate-card:hover { border-color: var(--teal-dark); background: var(--teal-light); transform: translateY(-2px); box-shadow: var(--shadow); }
.gate-card__ico { font-size: 2.4rem; }
.gate-card__title { font-size: 1.15rem; font-weight: 700; color: var(--navy); }
.gate-card__sub { font-size: .88rem; color: var(--muted); }

/* Zahnmedizin-Platzhalter */
.dental { text-align: center; padding: 12px 8px; }
.dental__ico { font-size: 3rem; margin-bottom: 8px; }
.dental p { color: var(--ink); max-width: 470px; margin: 10px auto; }
.dental__contact { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 22px 0 8px; }
.dental__contact .btn { text-decoration: none; }
.dental__back { margin-top: 18px; }
.dental__back a { color: var(--muted); font-size: .9rem; text-decoration: none; }
.dental__back a:hover { color: var(--navy); }
