/* Schröck Webdesign — Kalkulationsfunnel (angebot.schroeck-webdesign.de)
 *
 * Markenfarben bewusst aus der WordPress-Hauptseite übernommen
 * (#071330 / #E46F22), nicht aus dem DSGVO-Selbsttest (#00112E / #F97626):
 * der Funnel läuft unter der Hauptdomain und soll als Fortsetzung der
 * Website wirken, nicht als eigenständiges Werkzeug.
 */

/* Nunito lokal gehostet statt von fonts.googleapis.com — kein externer
 * Request an Google-Server beim Seitenaufruf. */
@font-face {
  font-family: 'Nunito'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('fonts/Nunito-Regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Nunito'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('fonts/Nunito-SemiBold.woff2') format('woff2');
}
@font-face {
  font-family: 'Nunito'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('fonts/Nunito-Bold.woff2') format('woff2');
}

:root {
  --navy:        #071330;
  --orange:      #E46F22;
  --orange-dark: #c85c14;
  --orange-hell: #fdf1e8;
  --weiss:       #ffffff;
  --grau-50:     #f6f7f9;
  --grau-100:    #eceff3;
  --grau-200:    #dde2ea;
  --grau-400:    #8694a8;
  --grau-600:    #5a6b85;
  --gruen:       #1f9d6b;
  --rot:         #b3392c;

  --radius:    10px;
  --radius-lg: 14px;
  --schatten:  0 1px 2px rgba(7,19,48,.06), 0 4px 16px rgba(7,19,48,.06);
  --wrap:      760px;
}

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

body {
  margin: 0;
  font-family: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--navy);
  background: var(--grau-50);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* ── Kopf ──────────────────────────────────────────────────────────── */
.kopf { background: var(--navy); color: var(--weiss); padding: 14px 0; }
.kopf-inhalt { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.marke { color: var(--weiss); text-decoration: none; font-weight: 700; letter-spacing: .2px; }
.marke:hover { color: var(--orange); }
.kopf-hinweis { font-size: .85rem; color: var(--grau-400); }

/* ── Intro ─────────────────────────────────────────────────────────── */
.intro { padding: 40px 0 8px; }
h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); line-height: 1.25; margin: 0 0 12px; }
.lead { color: var(--grau-600); margin: 0; font-size: 1.05rem; }

/* ── Fortschritt ───────────────────────────────────────────────────── */
.fortschritt {
  list-style: none; display: flex; gap: 6px;
  margin: 28px 0 20px; padding: 0; font-size: .78rem; color: var(--grau-400);
}
.fortschritt li { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.fortschritt span {
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700;
  background: var(--grau-200); color: var(--grau-600);
  transition: background .2s, color .2s;
}
.fortschritt li.aktiv span { background: var(--orange); color: var(--weiss); }
.fortschritt li.aktiv { color: var(--navy); font-weight: 600; }
.fortschritt li.erledigt span { background: var(--navy); color: var(--weiss); }

/* ── Schritte ──────────────────────────────────────────────────────── */
.schritt {
  background: var(--weiss); border-radius: var(--radius-lg);
  padding: 28px; box-shadow: var(--schatten);
}
.schritt[hidden] { display: none; }
.schritt h2 { font-size: 1.25rem; margin: 0 0 6px; }
.schritt h3 { font-size: 1rem; margin: 0 0 12px; }
.hilfe { color: var(--grau-600); font-size: .92rem; margin: 0 0 20px; }

/* ── Auswahl-Karten ────────────────────────────────────────────────── */
.auswahl-gross { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.auswahl-liste { display: grid; gap: 10px; }
.auswahl-reihe { display: flex; flex-wrap: wrap; gap: 10px; }

/* Ohne diese Regel schlägt das display oben das hidden-Attribut und es
   werden beide Pfad-Listen gleichzeitig sichtbar (Fehler vom 25.09.2026). */
.auswahl-gross[hidden], .auswahl-liste[hidden], .auswahl-reihe[hidden] { display: none; }

.karte { position: relative; display: block; cursor: pointer; }
.karte input { position: absolute; opacity: 0; width: 0; height: 0; }
.karte-inhalt {
  display: block; padding: 16px 18px;
  border: 2px solid var(--grau-200); border-radius: var(--radius);
  background: var(--weiss); transition: border-color .15s, background .15s;
}
.karte-inhalt strong { display: block; font-size: 1rem; }
.karte-inhalt small { display: block; color: var(--grau-600); font-size: .87rem; margin-top: 3px; }
.karte:hover .karte-inhalt { border-color: var(--grau-400); }

/* Gesperrte Option: sichtbar lassen und begründen, statt sie zu verstecken —
   der Kunde soll verstehen, warum sie nicht zu seiner Auswahl passt. */
.karte.gesperrt { cursor: not-allowed; }
.karte.gesperrt .karte-inhalt { opacity: .55; background: var(--grau-100); }
.karte.gesperrt:hover .karte-inhalt { border-color: var(--grau-200); }
.gesperrt-grund { color: var(--orange-dark) !important; font-weight: 600; margin-top: 6px !important; }
.gesperrt-grund[hidden] { display: none; }
.karte input:checked + .karte-inhalt { border-color: var(--orange); background: var(--orange-hell); }
.karte input:focus-visible + .karte-inhalt { outline: 3px solid var(--orange); outline-offset: 2px; }

/* ── Checkboxen ────────────────────────────────────────────────────── */
.haken {
  display: flex; align-items: flex-start; gap: 12px; cursor: pointer;
  padding: 13px 16px; border: 2px solid var(--grau-200);
  border-radius: var(--radius); background: var(--weiss);
  transition: border-color .15s, background .15s;
}
.haken:hover { border-color: var(--grau-400); }
.haken input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--orange); flex: none; cursor: pointer; }
.haken small { display: block; color: var(--grau-600); font-size: .85rem; font-weight: 400; margin-top: 2px; }
.haken:has(input:checked) { border-color: var(--orange); background: var(--orange-hell); }
.haken:has(input:focus-visible) { outline: 3px solid var(--orange); outline-offset: 2px; }

/* ── Pillen (kurze Auswahl) ────────────────────────────────────────── */
.pille { position: relative; cursor: pointer; }
.pille input { position: absolute; opacity: 0; width: 0; height: 0; }
.pille span {
  display: block; padding: 10px 20px; border-radius: 999px;
  border: 2px solid var(--grau-200); background: var(--weiss); font-weight: 600;
}
.pille input:checked + span { border-color: var(--orange); background: var(--orange-hell); }
.pille input:focus-visible + span { outline: 3px solid var(--orange); outline-offset: 2px; }

/* ── Bedingte Nachfrage ────────────────────────────────────────────── */
.nachfrage {
  margin-top: 22px; padding: 20px;
  background: var(--grau-50); border-left: 4px solid var(--orange);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.nachfrage[hidden] { display: none; }
.nachfrage .feld { margin-bottom: 0; }
.nachfrage textarea { background: var(--weiss); }

/* ── Ergebnis ──────────────────────────────────────────────────────── */
.preis-karte {
  background: var(--navy); color: var(--weiss);
  border-radius: var(--radius-lg); padding: 30px 28px; text-align: center;
  margin-bottom: 22px;
}
.preis-karte .label { font-size: .9rem; color: var(--grau-400); margin: 0 0 6px; }
.preis-spanne { font-size: clamp(1.8rem, 6vw, 2.5rem); font-weight: 700; line-height: 1.15; }
.preis-spanne .bis { color: var(--orange); }
.preis-zusatz { font-size: .9rem; color: var(--grau-400); margin: 10px 0 0; line-height: 1.45; }
.preis-zusatz strong { color: var(--weiss); font-weight: 600; }
.preis-pflege {
  margin-top: 18px; padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.15); font-size: .95rem;
}
.preis-pflege strong { color: var(--orange); }

.aufschluesselung { margin-bottom: 22px; font-size: .93rem; }
.aufschluesselung table { width: 100%; border-collapse: collapse; }
.aufschluesselung td { padding: 8px 0; border-bottom: 1px solid var(--grau-200); }
.aufschluesselung td:last-child { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.aufschluesselung tr:last-child td { border-bottom: none; font-weight: 700; }
.aufschluesselung .hinweis-zeile td { color: var(--grau-600); font-size: .87rem; border-bottom: none; padding-top: 2px; }
.lizenz-hinweis {
  margin: 14px 0 0; padding: 12px 14px;
  background: var(--orange-hell); border-radius: var(--radius);
  font-size: .88rem; line-height: 1.5;
}
.lizenz-hinweis p { margin: 0; }

.hinweis-titel { display: block; margin-bottom: 8px; }

/* Der eingetippte Wunsch wird als Zitat abgesetzt — sonst verschwimmt er
   im umgebenden Satz und wirkt wie ein Teil davon. */
.wunsch-zitat {
  margin: 0 0 10px; padding: 8px 12px;
  background: var(--weiss); border-left: 3px solid var(--orange);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic; white-space: pre-wrap;
}
.wunsch-zitat::before { content: "„"; }
.wunsch-zitat::after  { content: "“"; }

/* Direktsprung zurück zur betroffenen Frage — ohne ihn müsste sich der
   Kunde vom Ergebnis aus durch alle Schritte zurückklicken. */
.knopf-aendern {
  display: inline-block; margin-left: 6px; padding: 0;
  font: inherit; font-weight: 700; color: var(--orange-dark);
  background: none; border: none; border-bottom: 1px solid currentColor;
  cursor: pointer; white-space: nowrap;
}
.knopf-aendern:hover { color: var(--navy); }
.knopf-aendern:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

/* Kurze Hervorhebung der Frage, zu der gesprungen wurde */
.hervorgehoben {
  animation: aufblitzen 2s ease-out;
}
@keyframes aufblitzen {
  0%, 40% { box-shadow: 0 0 0 3px var(--orange); }
  100%    { box-shadow: 0 0 0 3px rgba(228,111,34,0); }
}

.individuell-karte {
  background: var(--orange-hell); border: 2px solid var(--orange);
  border-radius: var(--radius-lg); padding: 26px; margin-bottom: 22px;
}
.individuell-karte h2 { margin-top: 0; }

/* ── Kontaktformular ───────────────────────────────────────────────── */
.kontakt-block { border-top: 1px solid var(--grau-200); padding-top: 26px; }
.feld-reihe { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; margin-bottom: 14px; }
.feld { display: block; margin-bottom: 14px; }
.feld > span { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 5px; }
.feld > span small { font-weight: 400; color: var(--grau-600); }
.feld em { color: var(--orange); font-style: normal; }
.feld input, .feld textarea {
  width: 100%; padding: 11px 13px; font: inherit; color: inherit;
  border: 2px solid var(--grau-200); border-radius: var(--radius);
  background: var(--weiss); transition: border-color .15s;
}
.feld input:focus, .feld textarea:focus { outline: none; border-color: var(--orange); }
.feld textarea { resize: vertical; line-height: 1.5; }
.feld ::placeholder { color: var(--grau-400); opacity: 1; }
.feld-hinweis { display: block; color: var(--grau-600); font-size: .84rem; line-height: 1.45; margin-top: 6px; }

.einwilligung { align-items: flex-start; font-size: .88rem; line-height: 1.5; margin-top: 4px; }
.einwilligung a { color: var(--orange-dark); }

/* Honeypot: für Menschen unsichtbar, aber nicht display:none —
   manche Bots ignorieren ausgeblendete Felder gezielt. */
.honigtopf { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.fehler { color: var(--rot); font-weight: 600; font-size: .92rem; margin: 12px 0 0; }
.fehler[hidden] { display: none; }

.danke { text-align: center; padding: 30px 20px; }
.danke-knopf {
  display: inline-block; margin-top: 22px; text-decoration: none;
}
.danke .haken-gross {
  width: 56px; height: 56px; border-radius: 50%; background: var(--gruen); color: var(--weiss);
  display: grid; place-items: center; font-size: 1.8rem; margin: 0 auto 16px;
}

/* ── Knöpfe & Navigation ───────────────────────────────────────────── */
.navigation { display: flex; gap: 12px; justify-content: space-between; margin-top: 20px; }
.navigation[hidden] { display: none; }
.navigation:has(#zurueck[hidden]) { justify-content: flex-end; }

.knopf {
  font: inherit; font-weight: 700; cursor: pointer;
  padding: 13px 28px; border-radius: var(--radius); border: 2px solid transparent;
  transition: background .15s, border-color .15s, opacity .15s;
}
.knopf-primaer { background: var(--orange); color: var(--weiss); }
.knopf-primaer:hover { background: var(--orange-dark); }
.knopf-primaer:disabled { opacity: .45; cursor: not-allowed; }
.knopf-still { background: transparent; color: var(--grau-600); border-color: var(--grau-200); }
.knopf-still:hover { border-color: var(--grau-400); color: var(--navy); }
.knopf:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }
#absenden { width: 100%; margin-top: 18px; }

/* ── Rechtliches & Fuß ─────────────────────────────────────────────── */
.rechtlich {
  font-size: .82rem; color: var(--grau-600);
  margin: 26px 0 40px; text-align: center; line-height: 1.5;
}
.fuss { background: var(--navy); color: var(--grau-400); padding: 22px 0; font-size: .87rem; }
.fuss .wrap { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; }
.fuss a { color: var(--grau-400); text-decoration: none; }
.fuss a:hover { color: var(--orange); }

/* ── Mobil ─────────────────────────────────────────────────────────── */
@media (max-width: 560px) {
  .auswahl-gross, .feld-reihe { grid-template-columns: 1fr; }
  .schritt { padding: 22px 18px; }
  .fortschritt li:not(.aktiv) { font-size: 0; }
  .fortschritt li:not(.aktiv) span { font-size: .78rem; }
  .navigation .knopf { flex: 1; padding: 13px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
