/* ==========================================================================
   Molla – Anfrage-Funnel (anfrage/index.html)
   Eigenständig: lädt molla.css bewusst nicht, damit nichts aus der übrigen
   Seite hineinwirkt. Farben und Schrift sind aus molla.css übernommen
   („Fuge & Jahr“), die Formen weicher nach dem Vorbild des TalentHook-Funnels:
   Radien 7 / 10 / 14 / 20 px, Pillen-Knöpfe, weiche Schatten, viel Luft.
   Runde 9: Fortschrittspunkte, Sprechblase des Ansprechpartners („tippt …“),
   Vertrauenszeile, Kontaktweg-Pillen, Ansprechpartner-Karte, Foto-Tipp und
   Konfetti auf der Danke-Seite – alles wie bei TalentHook, in Molla-Farben.
   ========================================================================== */

/* ---------- Schrift (selbst gehostet, wie molla.css – keine Anfragen an Dritte) ----------
   Runde 6: Plus Jakarta Sans (OFL, Variable Font 200–800) wie auf der übrigen
   Seite. Hanken Grotesk (latin-ext, unten) springt nur für Sonderzeichen ein. */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('../fonts/plus-jakarta-sans-latin-wght.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
                 U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
                 U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/hanken-latext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
                 U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
                 U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens ---------- */
:root {
  /* Marke (aus molla.css) */
  --tanne:        #04301c;
  --tinte:        #10231a;
  --logo:         #08693e;
  --logo-tief:    #05492b;
  --limette-matt: #cde88a;   /* nur auf Dunkel */
  --gruen-50:     #eef5f0;

  /* Grund und Text */
  --papier:   #faf8f3;
  --weiss:    #ffffff;
  --splitt:   #eee9de;
  --text:     #26302a;
  --text-mut: #56615a;

  /* Säulen */
  --bauen:        #6b5d4a;  --bauen-hell:   #efe9dc;
  --pflegen:      #08693e;  --pflegen-hell: #eef5f0;
  --raeumen:      #3e5560;  --raeumen-hell: #dde7ea;

  /* Linien, Zustände */
  --linie:       rgba(16, 35, 26, .13);
  --linie-stark: rgba(16, 35, 26, .28);
  --linie-feld:  #7a847d;   /* Formularränder ≥ 3:1 */
  --fehler:      #b3261e;
  --fokus:       #10231a;

  /* Form – TalentHook-Stufen */
  --r-xs: 7px;  --r-s: 10px;  --r: 14px;  --r-l: 20px;  --r-pille: 999px;
  --schatten:      0 1px 2px rgba(16, 35, 26, .05), 0 6px 20px -10px rgba(16, 35, 26, .16);
  --schatten-hoch: 0 2px 4px rgba(16, 35, 26, .06), 0 16px 32px -14px rgba(16, 35, 26, .26);
  --schatten-knopf: 0 10px 22px -12px rgba(8, 105, 62, .7);

  --font:  'Plus Jakarta Sans', 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --kurve: cubic-bezier(.2, .7, .2, 1);
  --rand:  16px;
}

/* ---------- Grundlagen ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  font: 400 1.0625rem/1.55 var(--font);
  color: var(--text);
  background: var(--papier);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
main { flex: 1 0 auto; outline: none; }
img { display: block; max-width: 100%; height: auto; }
svg[aria-hidden="true"] { width: 1.2em; height: 1.2em; flex: none; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
a { color: var(--logo); text-decoration-thickness: 1.5px; text-underline-offset: .2em; }
a:hover { color: var(--logo-tief); }
a[href^="tel:"] { white-space: nowrap; }
button { font: inherit; color: inherit; }
strong { font-weight: 700; color: var(--tinte); }
h1, h2 { font-family: var(--font); color: var(--tinte); overflow-wrap: break-word; }
p { margin: 0; }
[hidden] { display: none !important; }
::selection { background: var(--limette-matt); color: var(--tinte); }

/* Fokus: immer sichtbar, 3 px Tinte wie auf der übrigen Seite */
:focus-visible { outline: 3px solid var(--fokus); outline-offset: 3px; }
h1[tabindex="-1"]:focus { outline: none; }   /* Überschrift bekommt den Fokus nur per Skript beim Schrittwechsel */

.nur-sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  padding: 10px 16px; border-radius: var(--r-s);
  background: var(--tinte); color: #fff; font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; color: #fff; outline-color: var(--logo); }

/* ---------- Kopf: Logo + Telefon, darunter der Fortschritt ---------- */
.kopf { position: relative; background: var(--papier); border-bottom: 1px solid var(--linie); }
.kopf-innen {
  max-width: 1120px; margin: 0 auto; min-height: 64px;
  padding: 10px var(--rand);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.marke { display: inline-flex; align-items: center; min-height: 44px; border-radius: var(--r-xs); }
.marke img { height: 40px; width: auto; }
.kopf-tel {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px; padding: 5px 16px 5px 6px;
  border-radius: var(--r-pille); background: var(--weiss); box-shadow: var(--schatten);
  color: var(--tinte); text-decoration: none; font-weight: 700; font-size: .9375rem; line-height: 1.15;
  transition: box-shadow .2s var(--kurve), transform .2s var(--kurve), color .15s;
}
.kopf-tel-icon {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--gruen-50); color: var(--logo);
}
.kopf-tel-icon svg { width: 17px; height: 17px; }
.kopf-tel-text { display: grid; }
.kopf-tel-text small { font-size: .75rem; font-weight: 500; color: var(--text-mut); }
@media (hover: hover) { .kopf-tel:hover { color: var(--logo-tief); box-shadow: var(--schatten-hoch); transform: translateY(-1px); } }
@media (max-width: 479px) { .kopf-tel-text small { display: none; } }
@media (min-width: 768px) {
  :root { --rand: 32px; }
  .kopf-innen { min-height: 80px; padding-top: 14px; padding-bottom: 14px; }
  .marke img { height: 50px; }
}

/* Fortschritt: ruhig, dünn, an der Unterkante des Kopfs */
.balken { position: absolute; left: 0; right: 0; bottom: -1px; height: 4px; background: var(--splitt); }
.balken-fuellung {
  height: 100%; width: 0; background: var(--logo);
  border-radius: 0 var(--r-pille) var(--r-pille) 0;
  transition: width .6s var(--kurve);
}

/* Demo-Hinweis (entfällt, sobald der Versand eingebaut ist) */
.demo-hinweis {
  display: flex; align-items: center; gap: 8px;
  width: fit-content; max-width: calc(100% - 2 * var(--rand));
  margin: 16px auto 0; padding: 7px 14px 7px 11px;
  border-radius: var(--r-pille); background: var(--raeumen-hell); color: var(--raeumen);
  font-size: .875rem; line-height: 1.3;
}
.demo-hinweis svg { width: 17px; height: 17px; }
.demo-hinweis strong { color: inherit; }

/* ---------- Schritt ---------- */
.schritt { max-width: 720px; margin: 0 auto; padding: 28px var(--rand) 56px; text-align: center; }
.schritt-breit { max-width: 1060px; }
@media (min-width: 768px) { .schritt { padding-top: 44px; padding-bottom: 72px; } }

.schritt-kopf {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 12px;
  margin: 0 0 14px; font-size: .9375rem; font-weight: 600; color: var(--text-mut);
}
.zweig-chip {
  display: inline-flex; align-items: center; min-height: 28px; padding: 3px 12px;
  border-radius: var(--r-pille); font-size: .8125rem; font-weight: 700; letter-spacing: .01em;
  background: var(--pflegen-hell); color: var(--pflegen);
}
.zweig-chip[data-saeule="bauen"]   { background: var(--bauen-hell);   color: var(--bauen); }
.zweig-chip[data-saeule="raeumen"] { background: var(--raeumen-hell); color: var(--raeumen); }

.schritt h1 {
  margin: 0 auto 10px; max-width: 22ch;
  font-size: clamp(1.75rem, 1.2rem + 2.3vw, 2.625rem); font-weight: 700;
  line-height: 1.12; letter-spacing: -.03em; text-wrap: balance;
}
.hinweis { margin: 0 auto 26px; max-width: 34rem; color: var(--text-mut); font-size: 1rem; text-wrap: pretty; }
.ohne-hinweis { height: 18px; }
.oben { margin: 0 0 8px; color: var(--text-mut); font-size: 1rem; }

/* Fortschrittspunkte (wie TalentHook): ein Strich je Frage + einer für den Kontaktschritt.
   Erledigt = Logo-Grün, aktuell = Tanne und breiter. Rein dekorativ (aria-hidden),
   Screenreader hören „Frage 2 von 4“ über #fortschritt-text. */
.punkte { display: flex; justify-content: center; gap: 6px; margin: 0 0 14px; }
.punkte span { width: 28px; height: 5px; border-radius: 3px; background: #ddd6c7; transition: background-color .3s, width .3s var(--kurve); }
.punkte .fertig { background: var(--logo); }
.punkte .jetzt { width: 44px; background: var(--tanne); }

/* Sprechblase des Ansprechpartners: Kürzel bzw. Foto links, Blase mit Ecke unten links.
   Mit Bewegung erst drei tippende Punkte (700 ms), dann der Satz – der Platz für den Satz
   ist von Anfang an reserviert, damit die Antworten darunter nicht springen. */
.berater {
  display: flex; align-items: flex-end; gap: 10px;
  max-width: 520px; margin: 0 auto 20px; text-align: left; animation-delay: .1s;
}
.berater-bild, .team-bild {
  flex: none; width: 42px; height: 42px; border-radius: 50%; object-fit: cover;
  box-shadow: 0 0 0 2px var(--papier), 0 0 0 4px var(--gruen-50);
}
.berater-kuerzel {
  display: grid; place-items: center;
  background: var(--logo); color: #fff; font-size: 1.0625rem; font-weight: 800; letter-spacing: -.01em;
}
.blase {
  display: grid; margin: 0; padding: 10px 15px 11px;
  background: var(--weiss); border: 1px solid var(--linie); border-radius: 16px 16px 16px 4px;
  box-shadow: var(--schatten); font-size: .9688rem; line-height: 1.45; color: var(--text);
}
.blase .wer { grid-row: 1; margin-bottom: 1px; font-size: .75rem; font-weight: 700; color: var(--text-mut); }
.blase-text, .tippen { grid-row: 2; grid-column: 1; }
.tippen { display: none; align-self: center; gap: 4px; padding: 5px 2px; }
.tippen i { width: 7px; height: 7px; border-radius: 50%; background: var(--text-mut); opacity: .35; animation: tippen 1s infinite; }
.tippen i:nth-child(2) { animation-delay: .15s; }
.tippen i:nth-child(3) { animation-delay: .3s; }
.berater.schreibt .blase-text { visibility: hidden; }
.berater.schreibt .tippen { display: inline-flex; }
@media (max-width: 479px) { .berater { margin-bottom: 16px; } .blase { font-size: .9375rem; } }

/* ---------- Auswahl ---------- */
.wahl { display: grid; gap: 12px; margin: 0 auto 24px; text-align: left; }
.wahl-1 { grid-template-columns: 1fr; max-width: 520px; }
.wahl-2 { grid-template-columns: 1fr; max-width: 640px; }
@media (min-width: 560px) { .wahl-2 { grid-template-columns: 1fr 1fr; } }

.karte-wahl {
  position: relative;
  display: flex; align-items: center; gap: 14px;
  width: 100%; min-height: 64px; padding: 14px 16px 14px 20px;
  background: var(--weiss); border: 1.5px solid var(--linie); border-radius: var(--r);
  box-shadow: var(--schatten);
  color: var(--tinte); font-size: 1.0625rem; font-weight: 600; line-height: 1.3; text-align: left;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none; user-select: none;
  transition: border-color .15s, background-color .15s, box-shadow .2s var(--kurve), transform .15s var(--kurve);
}
@media (hover: hover) {
  .karte-wahl:hover { border-color: var(--logo); box-shadow: var(--schatten-hoch); transform: translateY(-1px); }
}
.karte-wahl:active { transform: scale(.99); }
.karte-wahl:focus-visible { outline: 3px solid var(--fokus); outline-offset: 3px; }
.karte-wahl[aria-pressed="true"] {
  border-color: var(--logo); background: var(--gruen-50);
  box-shadow: inset 0 0 0 1px var(--logo), var(--schatten);
}
.karte-text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.karte-zeile { font-size: .9375rem; font-weight: 400; line-height: 1.4; color: var(--text-mut); }

/* Haken-Kreis (Einzelauswahl) bzw. Haken-Kästchen (Mehrfachauswahl) */
.kreis {
  flex: none; display: grid; place-items: center; width: 26px; height: 26px;
  border-radius: 50%; border: 2px solid var(--linie-feld); background: var(--weiss); color: transparent;
  transition: background-color .15s, border-color .15s, color .15s;
}
.kreis svg { width: 15px; height: 15px; }
.kreis-eckig { border-radius: var(--r-xs); }
.karte-wahl[aria-pressed="true"] .kreis { background: var(--logo); border-color: var(--logo); color: #fff; }

/* Schritt 1: drei große Karten (Handy: Zeilen, ab 880 px nebeneinander) */
.wahl-gross { grid-template-columns: 1fr; max-width: 560px; gap: 14px; }
.karte-gross { min-height: 104px; padding: 18px 18px 18px 16px; gap: 16px; border-radius: var(--r-l); }
.karte-icon {
  flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--pflegen-hell); color: var(--pflegen);
  transition: transform .3s var(--kurve);
}
.karte-icon svg { width: 28px; height: 28px; }
.karte-gross[data-saeule="bauen"]   .karte-icon { background: var(--bauen-hell);   color: var(--bauen); }
.karte-gross[data-saeule="raeumen"] .karte-icon { background: var(--raeumen-hell); color: var(--raeumen); }
.karte-saeule { font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--pflegen); }
.karte-gross[data-saeule="bauen"]   .karte-saeule { color: var(--bauen); }
.karte-gross[data-saeule="raeumen"] .karte-saeule { color: var(--raeumen); }
.karte-gross .karte-titel { font-size: 1.25rem; font-weight: 700; letter-spacing: -.015em; }
.karte-gross[aria-pressed="true"] .karte-icon { transform: scale(1.06); }
@media (hover: hover) { .karte-gross:hover .karte-icon { transform: scale(1.06); } }
@media (min-width: 880px) {
  .wahl-gross { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 1000px; gap: 18px; }
  .karte-gross {
    flex-direction: column; justify-content: flex-start; align-items: center; text-align: center;
    min-height: 250px; padding: 32px 24px 28px; gap: 18px;
  }
  .karte-gross .karte-text { flex: none; justify-items: center; align-content: start; gap: 4px; }
  .karte-gross .kreis { position: absolute; top: 16px; right: 16px; }
  .karte-icon { width: 72px; height: 72px; }
  .karte-icon svg { width: 34px; height: 34px; }
  .karte-gross .karte-titel { font-size: 1.5rem; }
  .karte-gross .karte-zeile { max-width: 24ch; }
}

/* Zeile unter den großen Karten: „6 kurze Schritte · kostenlos · unverbindlich“ */
.unterzeile {
  list-style: none; margin: 22px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px;
  color: var(--text-mut); font-size: .9375rem;
}
.unterzeile li { display: inline-flex; align-items: center; gap: 6px; }
.unterzeile svg { width: 16px; height: 16px; color: var(--logo); }
@media (max-width: 479px) { .unterzeile { gap: 6px 12px; font-size: .875rem; } .unterzeile li { gap: 4px; } }

/* Vertrauenszeile: Gesichter der Brüder (Ausschnitte aus team-duo-400.webp wie auf der Startseite)
   + „Familienbetrieb aus Brunsbüttel“, daneben die Google-Note */
.vertrauen-zeile {
  list-style: none; margin: 16px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 24px;
  color: var(--tinte); font-size: .9375rem; font-weight: 600;
}
.vertrauen-zeile li { display: inline-flex; align-items: center; gap: 10px; }
.gesichter { display: flex; flex: none; }
.gesicht {
  position: relative; width: 36px; height: 36px; border-radius: 50%; overflow: hidden;
  background: var(--splitt); box-shadow: 0 0 0 2px var(--papier);
}
.gesicht + .gesicht { margin-left: -10px; }
/* nachgemessen wie in seite-start.css: Bild auf 320 % vergrößert, je ein Gesicht mittig */
.gesicht img { position: absolute; width: 320%; max-width: none; height: auto; }
.gesicht-1 img { left: -67%;  top: -94%; }
.gesicht-2 img { left: -137%; top: -82%; }
.sterne { display: inline-flex; gap: 2px; color: var(--logo); }
.sterne svg { width: 16px; height: 16px; }
/* Zeitraum und Stand der Bewertungen: klein hinter der Note (Schritt 1 und über dem Absende-Knopf) */
.vertrauen-zeile small, .bewertung small { font-size: .8125rem; font-weight: 400; color: var(--text-mut); white-space: nowrap; }
@media (max-width: 479px) { .vertrauen-zeile { font-size: .875rem; gap: 10px 16px; } }

/* ---------- Knöpfe ---------- */
.knopf-reihe { margin: 4px 0 0; }
.knopf {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  min-height: 56px; min-width: 240px; padding: 12px 32px;
  border: 0; border-radius: var(--r-pille);
  background: var(--logo); color: #fff; box-shadow: var(--schatten-knopf);
  font-size: 1.0625rem; font-weight: 700; line-height: 1.2; text-decoration: none; text-align: center;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: background-color .15s, color .15s, transform .15s var(--kurve), box-shadow .2s, opacity .2s;
}
.knopf-zeile { display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.knopf small { font-size: .8125rem; font-weight: 500; line-height: 1.3; opacity: .88; }
.knopf .pfeil { width: 18px; height: 18px; transition: transform .2s var(--kurve); }
@media (hover: hover) {
  .knopf:hover { background: var(--logo-tief); color: #fff; }
  .knopf:hover .pfeil { transform: translateX(4px); }
}
.knopf:active { transform: scale(.98); }
.knopf:disabled { opacity: .65; cursor: progress; transform: none; }
/* Blasser Knopf (noch nichts gewählt): hellere Fläche statt durchsichtigem Text – bleibt lesbar */
.knopf.blass { background: #b5d3c2; color: var(--tinte); box-shadow: none; }
.knopf-voll { width: 100%; }
.knopf-zweit { background: transparent; color: var(--tinte); box-shadow: inset 0 0 0 1.5px var(--tinte); }
@media (hover: hover) { .knopf-zweit:hover { background: var(--tinte); color: #fff; } }
@media (max-width: 559px) { .knopf { width: 100%; min-width: 0; padding-left: 20px; padding-right: 20px; } }

.schritt-fuss { margin-top: 18px; }
.zurueck {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; padding: 0 16px 0 12px;
  border: 0; border-radius: var(--r-pille); background: none;
  color: var(--text-mut); font-size: .9375rem; font-weight: 600; cursor: pointer;
  transition: background-color .15s, color .15s;
}
.zurueck svg { width: 18px; height: 18px; }
@media (hover: hover) { .zurueck:hover { background: var(--splitt); color: var(--tinte); } }
.link-knopf {
  display: inline-flex; align-items: center; min-height: 44px; margin: 6px 0 -8px; padding: 0;
  border: 0; background: none; color: var(--logo); font-size: .9375rem; font-weight: 600;
  text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1.5px; cursor: pointer;
}
.link-knopf:hover { color: var(--logo-tief); }

.fehler { margin: 0 0 12px; color: var(--fehler); font-size: .9375rem; font-weight: 600; }
.fehler:empty { display: none; }

/* ---------- Formulare ---------- */
.feld { display: grid; gap: 6px; min-width: 0; margin: 0; padding: 0; border: 0; align-content: start; }
.feld > label, .feld > legend { padding: 0; font-size: .9375rem; font-weight: 600; color: var(--tinte); }
/* fieldset: Legende über die volle Breite (sonst bricht Safari sie Wort für Wort um) */
fieldset.feld { display: block; min-inline-size: 0; }
fieldset.feld > legend { float: left; width: 100%; margin: 0 0 8px; }
fieldset.feld > legend + * { clear: both; }
.freiwillig { font-weight: 400; color: var(--text-mut); }
.feld-hilfe { margin: 0; font-size: .875rem; line-height: 1.4; color: var(--text-mut); }
.feld-reihe { display: grid; gap: 18px; }
@media (min-width: 560px) { .feld-reihe { grid-template-columns: 1fr 1fr; } }
/* Nacht 2: Sichtbar ist nur Telefon ODER E-Mail (je nach Kontaktweg) – dann über die volle Breite.
   Das andere Feld kommt über den Textlink darunter dazu. */
.feld-reihe.einzeln { grid-template-columns: 1fr; }
.zusatz-link { justify-self: start; margin: -14px 0 -10px; }
/* PLZ schmal, Ort breit – auch am Handy nebeneinander */
.feld-reihe-ort { grid-template-columns: minmax(6.5rem, 2fr) 3fr; gap: 12px; }
@media (min-width: 560px) { .feld-reihe-ort { gap: 18px; } }

input[type="text"], input[type="tel"], input[type="email"], textarea {
  width: 100%; min-height: 56px; padding: 14px 16px;
  border: 1.5px solid var(--linie-feld); border-radius: var(--r-s);
  background: var(--weiss); color: var(--tinte);
  font: inherit; font-size: 1.0625rem;   /* ≥ 16 px: kein Zoomen auf dem iPhone */
  -webkit-appearance: none; appearance: none;
  transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 120px; line-height: 1.5; resize: vertical; }
input::placeholder, textarea::placeholder { color: #737d76; opacity: 1; }
input:focus, textarea:focus { border-color: var(--logo); box-shadow: 0 0 0 4px rgba(8, 105, 62, .14); }
input:focus-visible, textarea:focus-visible { outline: 3px solid var(--fokus); outline-offset: 2px; }
[aria-invalid="true"] { border-color: var(--fehler) !important; background-color: #fffbfa; }

.feld-fehler {
  display: flex; align-items: flex-start; gap: 6px; margin: 2px 0 0;
  color: var(--fehler); font-size: .9375rem; font-weight: 600; line-height: 1.35; text-align: left;
}
.feld-fehler svg { width: 17px; height: 17px; margin-top: 1px; }

/* Rückrufzeit als Pillen */
.pillen { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pillen input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.pillen label {
  display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 8px 10px;
  border: 1.5px solid var(--linie-feld); border-radius: var(--r-pille); background: var(--weiss);
  color: var(--tinte); font-size: .9375rem; font-weight: 600; text-align: center; cursor: pointer;
  -webkit-user-select: none; user-select: none;
  transition: background-color .15s, border-color .15s, color .15s;
}
@media (hover: hover) { .pillen label:hover { border-color: var(--logo); } }
.pillen input:checked + label { background: var(--logo); border-color: var(--logo); color: #fff; }
.pillen input:focus-visible + label { outline: 3px solid var(--fokus); outline-offset: 2px; }
/* Kontaktweg: Anruf · WhatsApp · E-Mail mit Symbol */
.pillen-weg label { gap: 7px; min-height: 52px; font-size: 1rem; }
.pillen-weg label svg { width: 18px; height: 18px; }
/* schmale Handys: Symbol über dem Wort, Rückrufzeiten etwas kleiner – nichts läuft über den Rand */
@media (max-width: 459px) {
  .pillen label { padding: 6px 4px; font-size: .875rem; }
  .pillen-weg label { flex-direction: column; gap: 3px; min-height: 60px; border-radius: var(--r); font-size: .9375rem; }
}
.feld-ort > .feld-fehler { margin-top: 8px; }

/* Datenschutz */
.zustimmung { display: flex; gap: 12px; align-items: flex-start; font-size: .9375rem; line-height: 1.45; color: var(--text); }
/* Eigenes Kästchen: Safari zeichnet das Standard-Kästchen sehr blass */
.zustimmung input {
  flex: none; width: 24px; height: 24px; margin: 0; cursor: pointer;
  -webkit-appearance: none; appearance: none;
  border: 2px solid var(--linie-feld); border-radius: var(--r-xs); background: var(--weiss) center / 16px 16px no-repeat;
  transition: background-color .15s, border-color .15s;
}
.zustimmung input:checked {
  border-color: var(--logo); background-color: var(--logo);
  background-image: 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' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}
.zustimmung input:focus-visible { outline: 3px solid var(--fokus); outline-offset: 2px; }
@media (hover: hover) { .zustimmung input:hover { border-color: var(--logo); } }
.zustimmung label { cursor: pointer; }
.zustimmung + .feld-fehler { margin-top: -8px; padding-left: 34px; }

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

/* Aus einem Preisrechner: eine Zeile mit dem Ergebnis („Ihr Richtpreis: ab …“) */
.rechner-hinweis {
  display: flex; align-items: flex-start; gap: 10px; text-align: left;
  font-size: .9375rem; line-height: 1.45;
  padding: 12px 14px; border-radius: var(--r-s); background: var(--gruen-50); color: var(--tinte);
}
.rechner-hinweis svg { color: var(--logo); width: 19px; height: 19px; margin-top: 3px; }
.rechner-hinweis strong { font-size: 1.0625rem; }

/* Nacht 2: Ende des Formulars – Vertrauen direkt über dem Knopf, Rückmeldung und WhatsApp darunter */
.form-ende { display: grid; gap: 12px; }
.form-ende .fehler { margin: 0; }
.form-vertrauen { display: grid; gap: 2px; justify-items: center; text-align: center; font-size: .9375rem; line-height: 1.45; color: var(--text-mut); }
.bewertung { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2px 8px; color: var(--tinte); font-weight: 600; }
.form-hinweis { text-align: center; font-size: .9375rem; line-height: 1.45; color: var(--text-mut); }
.oder { display: flex; align-items: center; gap: 12px; margin-top: 4px; font-size: .875rem; color: var(--text-mut); }
.oder::before, .oder::after { content: ''; flex: 1; height: 1px; background: var(--linie); }

/* Aufklappbare Zeilen: „Noch etwas ergänzen?“ und „Ihre Berechnung ansehen“ */
.klapp { text-align: left; }
.karte-form > .klapp { margin: -8px 0; }
/* Runde 27 (Inhaber): „+ Noch etwas ergänzen?“ steht mittig wie der Rest am Ende des Formulars */
.karte-form > .klapp > summary { justify-content: center; }
.klapp > summary {
  display: flex; align-items: center; gap: 8px; min-height: 44px; list-style: none; cursor: pointer;
  color: var(--logo); font-size: .9375rem; font-weight: 600;
  -webkit-user-select: none; user-select: none;
}
.klapp > summary::-webkit-details-marker { display: none; }
.klapp > summary::before {
  content: '+'; flex: none; display: grid; place-items: center; width: 22px; height: 22px;
  border-radius: 50%; background: var(--gruen-50); font-size: 1rem; font-weight: 700; line-height: 1;
}
.klapp[open] > summary::before { content: '–'; }
.klapp > summary:focus-visible { outline: 3px solid var(--fokus); outline-offset: 2px; border-radius: var(--r-xs); }
.klapp textarea { margin: 4px 0 8px; min-height: 96px; }
.klapp-berechnung { margin-top: 8px; }
.klapp-berechnung pre {
  margin: 2px 0 6px; padding: 12px 14px; max-height: 280px; overflow: auto;
  border-radius: var(--r-s); background: var(--papier); color: var(--text);
  font: inherit; font-size: .875rem; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere;
}

/* ---------- Kontakt: Formular links, Zusammenfassung und Telefon rechts ---------- */
.schritt-kontakt { max-width: 1060px; }
.kontakt-raster { display: grid; gap: 18px; margin-top: 26px; text-align: left; }
@media (min-width: 900px) {
  .kontakt-raster { grid-template-columns: minmax(0, 1.4fr) minmax(0, .9fr); gap: 28px; align-items: start; }
  .kontakt-seite { position: sticky; top: 24px; }
}
.karte-form {
  display: grid; gap: 20px; padding: 20px;
  background: var(--weiss); border-radius: var(--r-l); box-shadow: var(--schatten);
}
@media (min-width: 560px) { .karte-form { padding: 28px 28px 24px; } }
.kontakt-seite { display: grid; gap: 16px; }

.angaben { padding: 20px 22px; background: var(--weiss); border-radius: var(--r); box-shadow: var(--schatten); text-align: left; }
.angaben h2 { margin: 0 0 12px; font-size: 1.0625rem; font-weight: 700; letter-spacing: -.01em; }
.angaben dl { margin: 0; display: grid; gap: 10px; }
.angaben dt { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-mut); }
.angaben dd { margin: 1px 0 0; font-size: .9375rem; line-height: 1.4; color: var(--tinte); overflow-wrap: anywhere; white-space: pre-line; }

.direkt { padding: 20px 22px; border-radius: var(--r); background: var(--tanne); color: #fff; text-align: left; }
.direkt h2 { margin: 0 0 2px; color: #fff; font-size: 1.0625rem; font-weight: 700; }
.direkt p { color: rgba(255, 255, 255, .78); font-size: .9375rem; }
.direkt-tel {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px;
  color: var(--limette-matt); font-size: 1.375rem; font-weight: 700; letter-spacing: -.01em; text-decoration: none;
}
.direkt-tel svg { width: 22px; height: 22px; }
.direkt-tel:hover { color: #fff; }
.direkt :focus-visible, .team :focus-visible { outline-color: var(--limette-matt); }

/* Ansprechpartner-Karte (wie TalentHook „Ihr Ansprechpartner“): am PC rechts unter der
   Zusammenfassung, am Handy unter dem Formular (Nacht 2: nicht mehr davor – das erste Feld
   soll gleich zu sehen sein) */
.team {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 20px 22px; border-radius: var(--r); background: var(--tanne); color: #fff; text-align: left;
}
.team-text { min-width: 0; }
.team h2 { margin: 0 0 4px; color: #fff; font-size: 1.0625rem; font-weight: 700; letter-spacing: -.01em; }
.team p { color: rgba(255, 255, 255, .8); font-size: .9375rem; line-height: 1.45; }
.team .direkt-tel { margin-top: 2px; }
.team .team-zeiten { font-size: .875rem; }
.team .team-bild { width: 48px; height: 48px; box-shadow: 0 0 0 2px var(--tanne), 0 0 0 4px rgba(205, 232, 138, .45); }
.team .berater-kuerzel { background: var(--limette-matt); color: var(--tanne); }

/* ---------- Danke ---------- */
.schritt-danke { max-width: 620px; }
.danke-icon {
  display: grid; place-items: center; width: 76px; height: 76px; margin: 4px auto 18px;
  border-radius: 50%; background: var(--logo); color: #fff; box-shadow: var(--schatten-knopf);
}
.danke-icon svg { width: 38px; height: 38px; }
.danke-text { color: var(--text-mut); }
.danke-schritte { list-style: none; max-width: 480px; margin: 20px auto 26px; padding: 0; text-align: left; }
.danke-schritte li { position: relative; display: flex; gap: 14px; padding-bottom: 20px; }
.danke-schritte li:last-child { padding-bottom: 0; }
.danke-schritte li:not(:last-child)::after {
  content: ""; position: absolute; left: 15px; top: 36px; bottom: 4px; width: 2px;
  border-radius: 2px; background: var(--linie);
}
.danke-schritte .nr {
  flex: none; display: grid; place-items: center; width: 32px; height: 32px;
  border-radius: 50%; border: 2px solid var(--linie-stark); background: var(--weiss);
  color: var(--tinte); font-size: .875rem; font-weight: 700;
}
.danke-schritte .nr svg { width: 16px; height: 16px; }
.danke-schritte .fertig .nr { background: var(--logo); border-color: var(--logo); color: #fff; }
.danke-schritte h2 { margin: 4px 0 2px; font-size: 1.0625rem; font-weight: 700; letter-spacing: -.01em; }
.danke-schritte p { color: var(--text-mut); font-size: .9375rem; }
.angaben-danke, .direkt-danke { max-width: 480px; margin: 0 auto 16px; }
.danke-zurueck { margin-top: 26px; }

/* Foto-Tipp nach dem Absenden: kostet keine Anfrage, hilft bei der Einschätzung */
.foto-tipp {
  display: flex; gap: 14px; align-items: flex-start;
  max-width: 480px; margin: 0 auto 16px; padding: 20px 22px;
  border-radius: var(--r); background: var(--gruen-50); text-align: left;
}
.foto-tipp-icon {
  flex: none; display: grid; place-items: center; width: 44px; height: 44px;
  border-radius: 50%; background: var(--weiss); color: var(--logo); box-shadow: var(--schatten);
}
.foto-tipp-icon svg { width: 22px; height: 22px; }
.foto-tipp h2 { margin: 2px 0 4px; font-size: 1.0625rem; font-weight: 700; letter-spacing: -.01em; }
.foto-tipp p { margin-bottom: 14px; color: var(--text); font-size: .9375rem; line-height: 1.45; }
.knopf.knopf-wa { flex-direction: row; gap: 8px; width: auto; min-width: 0; min-height: 48px; padding: 10px 20px; font-size: 1rem; }
.knopf-wa svg { width: 20px; height: 20px; }
.knopf.knopf-wa.knopf-voll { width: 100%; min-height: 52px; }

/* Konfetti (nur mit Bewegung, verschwindet nach 5 s) */
#konfetti { position: fixed; inset: 0; z-index: 30; overflow: hidden; pointer-events: none; }
#konfetti i {
  position: absolute; top: -16px; width: 9px; height: 14px; border-radius: 2px;
  animation: fallen 2.8s cubic-bezier(.25, .6, .4, 1) both;
}

/* ---------- Fuß ---------- */
.fuss { padding: 22px var(--rand) 28px; border-top: 1px solid var(--linie); text-align: center; font-size: .875rem; color: var(--text-mut); }
.fuss nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 20px; }
.fuss a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text-mut); }
.fuss a:hover { color: var(--tinte); }
.noscript { max-width: 560px; margin: 32px auto; padding: 0 var(--rand); text-align: center; }
.noscript p + p { margin-top: 8px; }

/* ---------- Bewegung (aus bei „weniger Bewegung“) ---------- */
.einblenden { animation: rein .35s var(--kurve) both; }
.wahl .karte-wahl { animation: rein .4s var(--kurve) both; animation-delay: calc(var(--i, 0) * 45ms + 60ms); }
.karte-wahl[aria-pressed="true"] .kreis { animation: plopp .3s cubic-bezier(.3, 1.6, .5, 1); }
.danke-icon { animation: plopp .55s .1s cubic-bezier(.3, 1.6, .5, 1) both; }
.danke-schritte li { animation: rein .45s var(--kurve) both; animation-delay: calc(.3s + var(--i, 0) * .12s); }
/* TalentHook-Details: Satz der Sprechblase gleitet herein, aktueller Fortschrittsstrich wächst,
   der Weiter-Knopf stupst nach 2,5 s dreimal kurz an (nur auf Frage-Schritten, nicht beim Absenden) */
.lebendig .berater:not(.schreibt) .blase-text { animation: rein .3s ease both; }
.lebendig .punkte .jetzt { animation: wachsen .45s var(--kurve) both; }
.lebendig [data-weiter]:not(.blass) { animation: anstupsen 5s ease-in-out 2.5s 3; }
@media (hover: hover) { .lebendig [data-weiter]:hover { animation-play-state: paused; } }
.lebendig .kontakt-seite > * { animation: rein .5s var(--kurve) both; }
.lebendig .kontakt-seite > :nth-child(2) { animation-delay: .12s; }
@keyframes rein  { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes plopp { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes tippen { 0%, 60%, 100% { opacity: .35; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
@keyframes wachsen { from { width: 28px; } to { width: 44px; } }
@keyframes anstupsen {
  0%, 82%, 100% { transform: none; }
  85% { transform: rotate(-1.6deg) scale(1.03); }
  88% { transform: rotate(1.6deg) scale(1.03); }
  91% { transform: rotate(-1deg) scale(1.02); }
  94% { transform: rotate(.6deg) scale(1.01); }
  97% { transform: none; }
}
@keyframes fallen {
  0% { transform: translate(0, -20px) rotate(0); opacity: 1; }
  85% { opacity: 1; }
  100% { transform: translate(var(--wind), 105vh) rotate(var(--dreh)); opacity: 0; }
}

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

/* Runde 10 (Design-Prüfung): nur eine Fortschrittsanzeige – die dünne Linie
   unter dem Kopf entfällt, es bleiben die Punkte und „Frage N“.
   Platzhalter blasser, damit sie nicht wie Eingaben wirken. */
.balken { display: none; }
input::placeholder, textarea::placeholder { color: #6b756e; opacity: 1; }

/* Runde 12: Schritt 1 mit Fotos der drei Leistungen statt Symbolen
   (funnel-config.js → leistung.optionen[].foto). Handy: kleines Bild links,
   ab 880 px großes Bild oben in der Karte. */
.karte-foto {
  flex: none; display: block; width: 76px; height: 76px; overflow: hidden;
  border-radius: var(--r); background: var(--gruen-50);
}
.karte-foto img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--kurve); }
@media (hover: hover) { .karte-gross:hover .karte-foto img { transform: scale(1.04); } }
@media (min-width: 880px) {
  .karte-gross:has(.karte-foto) { padding: 12px 12px 26px; gap: 16px; min-height: 0; }
  .karte-foto { width: 100%; height: auto; aspect-ratio: 3 / 2; border-radius: calc(var(--r-l) - 6px); }
  .karte-gross:has(.karte-foto) .kreis { top: 22px; right: 22px; box-shadow: 0 1px 4px rgba(0, 0, 0, .25); }
}

/* Runde 12: Mehrfachauswahl geht nach kurzer Pause von selbst weiter – der Knopf füllt sich dabei.
   Nacht 2: 3 s statt 1,8 s (gleicher Wert wie AUTO_WEITER in funnel.js). */
.knopf.laeuft { position: relative; overflow: hidden; }
.knopf.laeuft::after {
  content: ''; position: absolute; inset: 0; background: rgba(255, 255, 255, .24);
  transform: scaleX(0); transform-origin: left center; animation: knopf-fuellen 3s linear forwards; pointer-events: none;
}
@keyframes knopf-fuellen { to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .knopf.laeuft::after { animation: none; } }

/* Runde 17: Link zurück zur Startseite, direkt unter dem Kopf.
   Nacht 2: links und bündig mit dem Logo (stand vorher mittig, weil body ein Flex-Behälter ist). */
.heim-link { width: 100%; max-width: 1120px; margin: 10px auto 0; padding: 0 var(--rand); font-size: .875rem; text-align: left; }
.heim-link a { color: var(--text-mut); text-decoration: none; }
.heim-link a::before { content: '‹ '; }
.heim-link a:hover { color: var(--logo); text-decoration: underline; text-underline-offset: .2em; }

/* Nacht 2: Handy – Frage, Antworten und „Weiter“ passen auf einen Bildschirm.
   - weniger Luft über der Frage
   - Luis begrüßt nur bei der ersten Frage (wie im Preis-Funnel); ab 560 px steht die Sprechblase bei jeder Frage
   - Schritt 1: flachere Karten, damit alle drei Leistungen ohne Scrollen zu sehen sind
   - „Weiter“ klebt unten (Mehrfachauswahl) */
@media (max-width: 559px) {
  .demo-hinweis { margin-top: 10px; font-size: .8125rem; }
  .schritt { padding-top: 12px; }
  .punkte, .schritt-kopf { margin-bottom: 10px; }
  .ohne-hinweis { height: 6px; }
  .hinweis { margin-bottom: 16px; }
  .berater:not(.berater-gruss) { display: none; }
  .berater { margin-bottom: 14px; }
  .wahl { gap: 10px; }
  .wahl-gross { gap: 8px; }
  .karte-gross { min-height: 80px; padding: 8px 14px 8px 8px; gap: 12px; }
  .karte-gross .karte-text { gap: 0; }
  .karte-gross .karte-saeule { line-height: 1.3; }
  .karte-gross .karte-titel { font-size: 1.125rem; line-height: 1.25; }
  .karte-gross .karte-zeile { font-size: .875rem; line-height: 1.35; }
  .karte-foto { width: 64px; height: 64px; }
  .vertrauen-zeile small, .bewertung small { display: block; }   /* Zeitraum und Stand in eigener Zeile */
  .schritt .knopf-reihe {
    position: sticky; bottom: 0; z-index: 5;
    margin: 8px calc(-1 * var(--rand)) 0;
    padding: 10px var(--rand) calc(10px + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(to bottom, rgba(250, 248, 243, 0), var(--papier) 30%);
  }
  .team { align-items: center; gap: 12px; padding: 14px 16px; }
  .team h2 { font-size: 1rem; margin-bottom: 2px; }
  .team p { font-size: .875rem; line-height: 1.4; }
  .team .direkt-tel { min-height: 44px; font-size: 1.1875rem; }
}

.fuss-quelle { font-size: .75rem; opacity: .85; }
