/* ==========================================================================
   ATP.Hüpfland — Buchungs-Funnel
   Wird nur auf /anfrage/ geladen, nicht auf jeder Seite.
   ========================================================================== */

.funnel { background: #fff; border-radius: var(--radius-xl); box-shadow: var(--schatten-lg); overflow: hidden; max-width: 940px; margin-inline: auto; }

.funnel-progress { display: flex; background: var(--gruen-blass); border-bottom: 3px solid var(--gruen); }
.fp-step {
  flex: 1; border: 0; background: none; cursor: pointer; padding: 14px 6px 12px;
  font-family: var(--font-head); font-weight: 700; font-size: .8rem; color: var(--grau);
}
.fp-step .n {
  display: block; margin: 0 auto 6px; width: 30px; height: 30px; border-radius: 50%;
  background: #fff; border: 2px solid var(--linie); line-height: 26px; font-size: .86rem;
}
.fp-step .lbl { display: block; line-height: 1.22; }
.fp-step.active { color: var(--tinte); }
.fp-step.active .n { background: var(--rot); border-color: var(--rot-dunkel); color: #fff; }
.fp-step.done { color: var(--tinte); }
.fp-step.done .n { background: var(--gruen); border-color: var(--gruen-dunkel); color: #fff; }
.fp-step:focus-visible { outline: 3px solid var(--himmel); outline-offset: -3px; }

.funnel-body { padding: clamp(20px, 4vw, 40px); }
.f-step { display: none; }
.f-step.active { display: block; animation: einblenden .28s ease; }
@keyframes einblenden { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.f-step h3 { font-size: 1.42rem; margin-bottom: 6px; }
.f-step .hint { color: var(--grau); margin-bottom: 22px; font-size: .95rem; }

.honigtopf { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---------- Burg-Kacheln ---------- */
.f-castles { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 13px; }
.f-castle { border: 3px solid var(--linie); border-radius: var(--radius); overflow: hidden; background: #fff; display: flex; flex-direction: column; transition: border-color .15s, transform .15s; }
.f-castle img { aspect-ratio: 1; width: 100%; height: auto; object-fit: cover; object-position: center 42%; }
.f-castle .t { padding: 9px 10px 6px; font-weight: 800; font-family: var(--font-head); font-size: .93rem; display: flex; justify-content: space-between; gap: 6px; align-items: baseline; }
.f-castle .t span { font-family: var(--font-body); font-weight: 700; font-size: .76rem; color: var(--grau); white-space: nowrap; }
.f-castle:hover { transform: translateY(-3px); }
.f-castle.sel { border-color: var(--gruen); box-shadow: 0 0 0 3px rgba(130, 195, 65, .28); }
.f-castle-add {
  margin: 0 8px 8px; padding: 8px 10px; border: 2px solid var(--tinte); border-radius: 12px;
  background: #fff; font-family: var(--font-head); font-weight: 800; font-size: .8rem; cursor: pointer;
  transition: background .15s, color .15s;
}
.f-castle-add:hover { background: var(--tinte); color: #fff; }
.f-castle.sel .f-castle-add { background: var(--gruen); border-color: var(--gruen); color: #fff; }

/* ---------- Formularfelder ---------- */
.f-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(218px, 1fr)); gap: 17px; }
.f-field { display: flex; flex-direction: column; gap: 6px; }
.f-field label { font-weight: 800; font-size: .89rem; font-family: var(--font-head); }
.f-field .opt { font-weight: 600; color: var(--grau); font-family: var(--font-body); font-size: .84rem; }
.f-field input, .f-field select, .f-field textarea {
  padding: 12px 14px; border: 2px solid var(--linie); border-radius: 12px;
  font-family: inherit; font-size: 1rem; background: #fff; color: inherit;
}
.f-field input:focus, .f-field select:focus, .f-field textarea:focus { outline: none; border-color: var(--himmel); }
.f-field .err { color: var(--rot); font-size: .81rem; font-weight: 700; display: none; }
.f-field.invalid input, .f-field.invalid select { border-color: var(--rot); }
.f-field.invalid .err { display: block; }
.f-subtitel { font-size: 1.06rem; margin: 26px 0 12px; padding-bottom: 8px; border-bottom: 3px solid var(--linie); }

.radio-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 13px; }
.radio-card { border: 3px solid var(--linie); border-radius: var(--radius); padding: 18px; cursor: pointer; position: relative; background: #fff; transition: border-color .15s; }
.radio-card input { position: absolute; opacity: 0; }
.radio-card h4 { font-size: 1.03rem; margin-bottom: 4px; }
.radio-card p { font-size: .85rem; color: var(--grau); }
.radio-card .pr { font-family: var(--font-head); font-weight: 800; margin-top: 8px; color: var(--gruen-dunkel); }
.radio-card.sel { border-color: var(--himmel); box-shadow: 0 0 0 3px rgba(0, 191, 243, .2); }
.radio-card.sel::after { content: "\2713"; position: absolute; top: 10px; right: 12px; width: 25px; height: 25px; background: var(--himmel); color: #fff; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: .78rem; }

.check-line { display: flex; gap: 12px; align-items: flex-start; font-size: .92rem; cursor: pointer; }
.check-line input { width: 22px; height: 22px; accent-color: var(--gruen); flex: none; margin-top: 2px; }

.lieferpreis-hinweis .label-ersatz { font-weight: 800; font-size: .89rem; font-family: var(--font-head); }
.km-preis { display: block; padding: 12px 14px; border: 2px dashed var(--linie); border-radius: 12px; font-family: var(--font-head); font-weight: 800; }

.extras-box { display: grid; gap: 14px; background: var(--gruen-blass); border-radius: var(--radius); padding: 18px; }
.einwilligungen { display: grid; gap: 14px; margin-top: 22px; }

/* ---------- Warenkorb ---------- */
.korb { margin-top: 28px; }
.korb h4 { font-size: 1.06rem; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 3px solid var(--linie); }
.korb-leer { color: var(--grau); font-size: .93rem; padding: 12px 0; }
.korb-eintrag { display: grid; grid-template-columns: 62px minmax(110px, 1fr) auto auto 34px; gap: 13px; align-items: center; padding: 13px 0; border-top: 2px solid var(--linie); }
.korb-eintrag:first-child { border-top: 0; }
.korb-eintrag img { border-radius: 10px; object-fit: cover; height: 48px; }
.korb-kopf strong { font-family: var(--font-head); display: block; }
.korb-masse { font-size: .79rem; color: var(--grau); }
.korb-daten { display: flex; gap: 10px; flex-wrap: wrap; }
.korb-daten label { font-size: .76rem; font-weight: 800; font-family: var(--font-head); display: grid; gap: 4px; }
.korb-daten input { padding: 8px 10px; border: 2px solid var(--linie); border-radius: 10px; font-family: inherit; font-size: .87rem; }
.korb-daten input:focus { outline: none; border-color: var(--himmel); }
.korb-preis { font-family: var(--font-head); font-weight: 800; white-space: nowrap; text-align: right; }
.korb-fehler { color: var(--rot); font-size: .79rem; font-weight: 700; font-family: var(--font-body); white-space: normal; display: block; max-width: 22ch; }
.korb-weg { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--linie); background: #fff; cursor: pointer; font-weight: 900; color: var(--grau); }
.korb-weg:hover { border-color: var(--rot); color: var(--rot); }
.korb-summe { margin-top: 18px; }

/* ---------- Zusammenfassung ---------- */
.summary-box { border-radius: var(--radius); overflow: hidden; box-shadow: var(--schatten); background: #fff; }
.summary-box .row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 18px; border-top: 2px solid var(--linie); font-weight: 600; font-size: .94rem; }
.summary-box .row:first-child { border-top: 0; }
.summary-box .row.head { background: var(--gruen); color: #fff; font-family: var(--font-head); font-weight: 800; }
.summary-box .row.total { background: var(--orange); font-family: var(--font-head); font-weight: 800; font-size: 1.06rem; }
.summary-box .row.kaution { background: var(--creme); color: var(--grau); font-size: .87rem; }
.summary-note { font-size: .83rem; color: var(--grau); margin-top: 12px; }

.funnel-nav { display: flex; justify-content: space-between; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.funnel-nav.right-only { justify-content: flex-end; }
.form-status { margin-top: 14px; font-weight: 700; font-size: .92rem; min-height: 1.4em; }
.form-status[data-state="error"] { color: var(--rot); }
.funnel-error {
  display: none; margin-top: 18px; padding: 15px 19px; border-radius: var(--radius);
  background: #fdecea; border: 2px solid var(--rot); font-size: .94rem;
}
.funnel-error a { font-weight: 800; text-decoration: underline; }

@media (max-width: 700px) {
  .korb-eintrag { grid-template-columns: 48px 1fr 34px; grid-template-areas: "bild kopf weg" "daten daten daten" "preis preis preis"; }
  .korb-eintrag img { grid-area: bild; height: 40px; }
  .korb-kopf { grid-area: kopf; }
  .korb-daten { grid-area: daten; }
  .korb-preis { grid-area: preis; text-align: left; }
  .korb-weg { grid-area: weg; }
  .fp-step .lbl { font-size: .66rem; }
  .fp-step { padding: 12px 3px 10px; }
}
