/* =========================================================================
   Konfigurator - sechs Schritte, Festpreis ab Schritt 2 permanent sichtbar
   ========================================================================= */

.konfigurator {
  background: var(--weiss);
  border-radius: 20px;
  box-shadow: 0 2px 0 var(--linie), 0 30px 60px -40px #11181733;
  scroll-margin-top: 80px;
  /* Bewusst kein overflow: hidden. Das wuerde position: sticky im Preisband
     ausschalten - der Festpreis wuerde nicht mehr mitlaufen. Die abgerundeten
     Ecken kommen stattdessen von den Kindelementen. */
}

/* ------------------------------------------------------------- Fortschritt */

.kfg__fortschritt {
  border-bottom: 1px solid var(--linie); background: var(--nebel);
  border-radius: 20px 20px 0 0; overflow: hidden;
}
.kfg__spur { height: 3px; background: var(--weich); }
.kfg__spur i {
  display: block; height: 100%; background: var(--aqua-dunkel); width: 0;
  transition: width .4s var(--weich-kurve);
}
.kfg__marker {
  display: flex; gap: 4px; padding: 12px var(--rand); overflow-x: auto;
  scrollbar-width: none; -ms-overflow-style: none;
}
.kfg__marker::-webkit-scrollbar { display: none; }
.kfg__marker li {
  display: flex; align-items: center; gap: 7px; white-space: nowrap;
  font-size: .8rem; color: var(--gedaempft); padding: 3px 9px; border-radius: 20px;
}
.kfg__marker li b {
  display: flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; border-radius: 50%; background: var(--weich);
  color: var(--gedaempft); font-size: .72rem; font-weight: 800; flex-shrink: 0;
}
.kfg__marker li[data-stand="aktiv"] { background: var(--dunkel); color: var(--weiss); }
.kfg__marker li[data-stand="aktiv"] b { background: var(--aqua); color: var(--tinte); }
.kfg__marker li[data-stand="fertig"] b { background: var(--aqua-dunkel); color: var(--weiss); }
.kfg__marker li[data-stand="fertig"] { color: var(--tinte); }

/* ------------------------------------------------------------- Schritte */

.kfg__buehne { padding: 26px var(--rand) 28px; }
@media (min-width: 720px) { .kfg__buehne { padding: 34px 34px 36px; } }

.kfg__schritt { display: none; }
.kfg__schritt.aktiv { display: block; animation: kfgRein .34s var(--weich-kurve); }
@keyframes kfgRein { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }

.kfg__titel { font-size: clamp(1.4rem, 4.6vw, 1.9rem); margin-bottom: 6px; }
.kfg__hilfe { color: var(--gedaempft); font-size: .97rem; margin-bottom: 22px; max-width: 54ch; }

/* ------------------------------------------------------------- Auswahlkarten */

.wahl { display: grid; gap: 12px; margin-bottom: 24px; }
@media (min-width: 700px) { .wahl--drei { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 640px) { .wahl--zwei { grid-template-columns: repeat(2, 1fr); } }

.wahl input { position: absolute; opacity: 0; width: 0; height: 0; }

.wahl__karte {
  display: block; cursor: pointer; position: relative;
  border: 2px solid var(--weich); border-radius: 14px; padding: 18px 18px 18px 52px;
  background: var(--weiss); transition: border-color .18s, background .18s, transform .18s var(--weich-kurve);
}
.wahl__karte:hover { border-color: #a9c2bc; transform: translateY(-1px); }
.wahl__karte::before {
  content: ''; position: absolute; left: 18px; top: 20px;
  width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid #b3c5c0; background: var(--weiss); transition: all .18s;
}
.wahl--mehrfach .wahl__karte::before { border-radius: 7px; }
input:checked + .wahl__karte { border-color: var(--aqua-dunkel); background: #f2fbf9; }
input:checked + .wahl__karte::before {
  border-color: var(--aqua-dunkel); background: var(--aqua-dunkel);
  box-shadow: inset 0 0 0 4px var(--weiss);
}
.wahl--mehrfach input:checked + .wahl__karte::before {
  box-shadow: none;
  background: var(--aqua-dunkel) var(--haken-weiss) center/15px no-repeat;
}
input:focus-visible + .wahl__karte { outline: 3px solid var(--aqua-dunkel); outline-offset: 2px; }
input:disabled + .wahl__karte { opacity: .5; cursor: not-allowed; }

:root {
  --haken-weiss: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23fff'%3E%3Cpath d='M7.6 14.3 3.8 10.5l1.3-1.3 2.5 2.5 7.3-7.3 1.3 1.3z'/%3E%3C/svg%3E");
}

.wahl__kopf { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.wahl__name { font-family: var(--schrift-titel); font-weight: 700; font-size: 1.08rem; }
.wahl__preis {
  font-family: var(--schrift-titel); font-weight: 800; font-size: 1.22rem;
  white-space: nowrap; font-variant-numeric: tabular-nums;
}
.wahl__unter { font-size: .87rem; color: var(--gedaempft); margin-top: 3px; }
.wahl__liste { list-style: none; margin: 12px 0 0; padding: 0; font-size: .89rem; color: var(--gedaempft); }
.wahl__liste li { display: flex; gap: 8px; padding: 3px 0; }
.wahl__liste li::before {
  content: ''; flex-shrink: 0; width: 15px; height: 15px; margin-top: 4px;
  background: var(--aqua-dunkel);
  -webkit-mask: var(--haken) center/contain no-repeat; mask: var(--haken) center/contain no-repeat;
}
.wahl__marke { position: absolute; top: -10px; right: 16px; }
.wahl__anfrage {
  font-size: .87rem; color: var(--warn); background: var(--warn-grund);
  padding: 8px 12px; border-radius: 8px; margin-top: 10px;
}

/* ------------------------------------------------------------- Felder */

.feld { margin-bottom: 18px; }
.feld > label, .feldgruppe > legend {
  display: block; font-weight: 600; font-size: .93rem; margin-bottom: 6px;
}
.feld__hilfe { font-size: .84rem; color: var(--gedaempft); margin: -2px 0 7px; }
.feld input[type=text], .feld input[type=tel], .feld input[type=email],
.feld input[type=number], .feld select, .feld textarea {
  width: 100%; padding: 13px 14px; font-size: 1rem; font-family: var(--schrift-text);
  border: 2px solid var(--weich); border-radius: 11px; background: var(--weiss);
  color: var(--tinte); transition: border-color .16s;
  min-height: 50px;
}
.feld textarea { min-height: 96px; resize: vertical; line-height: 1.55; }
.feld input:focus, .feld select:focus, .feld textarea:focus {
  outline: none; border-color: var(--aqua-dunkel);
}
.feld input[aria-invalid="true"], .feld select[aria-invalid="true"] { border-color: #c0392b; }
.feld__fehler { color: #a32014; font-size: .86rem; margin-top: 5px; display: none; }
.feld__fehler.an { display: block; }

.feldgruppe { border: 0; padding: 0; margin: 0 0 18px; }
.feldgruppe legend { padding: 0; }

.feldreihe { display: grid; gap: 14px; }
@media (min-width: 560px) {
  .feldreihe--zwei { grid-template-columns: 1fr 1fr; }
  .feldreihe--plz { grid-template-columns: 8rem 1fr; }
}

.knopfwahl { display: flex; flex-wrap: wrap; gap: 8px; }
.knopfwahl input { position: absolute; opacity: 0; width: 0; height: 0; }
.knopfwahl label {
  padding: 10px 16px; border: 2px solid var(--weich); border-radius: 10px;
  cursor: pointer; font-size: .93rem; font-weight: 500; transition: all .16s;
  min-height: 44px; display: inline-flex; align-items: center;
}
.knopfwahl label:hover { border-color: #a9c2bc; }
.knopfwahl input:checked + label {
  border-color: var(--aqua-dunkel); background: var(--aqua-dunkel); color: var(--weiss); font-weight: 600;
}
.knopfwahl input:focus-visible + label { outline: 3px solid var(--aqua-dunkel); outline-offset: 2px; }

/* ------------------------------------------------------------- Ortsprüfung */

.zonenmeldung {
  margin-top: 12px; padding: 13px 16px; border-radius: 11px; font-size: .93rem;
  display: none;
}
.zonenmeldung.an { display: block; }
.zonenmeldung--gut { background: #eaf7f4; color: #14453f; }
.zonenmeldung--offen { background: var(--warn-grund); color: #6d3a12; }
.zonenmeldung strong { font-weight: 700; }

/* ------------------------------------------------------------- Termine */

.termine { margin-bottom: 22px; }
.termintag { border-top: 1px solid var(--linie); padding: 14px 0; }
.termintag:first-child { border-top: 0; }
.termintag__datum { font-weight: 700; font-size: .95rem; margin-bottom: 9px; font-family: var(--schrift-titel); }
.terminreihe { display: flex; flex-wrap: wrap; gap: 8px; }
.terminreihe input { position: absolute; opacity: 0; width: 0; height: 0; }
.terminreihe label {
  padding: 10px 15px; border: 2px solid var(--weich); border-radius: 10px;
  cursor: pointer; font-weight: 600; font-size: .95rem; transition: all .16s;
  font-variant-numeric: tabular-nums; min-height: 44px;
  display: inline-flex; align-items: center; gap: 7px;
}
.terminreihe label:hover { border-color: #a9c2bc; }
.terminreihe input:checked + label {
  border-color: var(--aqua-dunkel); background: var(--aqua-dunkel); color: var(--weiss);
}
.terminreihe input:focus-visible + label { outline: 3px solid var(--aqua-dunkel); outline-offset: 2px; }
.terminreihe label .marke { font-size: .66rem; padding: 2px 6px; vertical-align: 0; }
.terminreihe input:checked + label .marke { background: var(--aqua); color: var(--tinte); }

.mehrtage {
  display: block; width: 100%; margin-top: 14px; padding: 12px;
  border: 2px dashed var(--weich); border-radius: 11px; background: transparent;
  color: var(--gedaempft); font-family: var(--schrift-text); font-size: .93rem;
  cursor: pointer; font-weight: 600;
}
.mehrtage:hover { border-color: #a9c2bc; color: var(--tinte); }

.laedt { color: var(--gedaempft); font-size: .95rem; padding: 22px 0; text-align: center; }
.laedt::after {
  content: ''; display: inline-block; width: 14px; height: 14px; margin-left: 9px;
  border: 2px solid var(--weich); border-top-color: var(--aqua-dunkel);
  border-radius: 50%; animation: dreht .7s linear infinite; vertical-align: -2px;
}
@keyframes dreht { to { transform: rotate(360deg); } }

.hinweiskasten {
  background: var(--nebel); border-radius: 12px; padding: 15px 18px;
  font-size: .9rem; color: var(--gedaempft); margin-bottom: 20px;
}
.hinweiskasten strong { color: var(--tinte); }
.hinweiskasten--warn { background: var(--warn-grund); color: #6d3a12; }
.hinweiskasten--warn strong { color: var(--warn); }

/* ------------------------------------------------------------- Uebersicht */

.uebersicht { border: 1px solid var(--weich); border-radius: 14px; overflow: hidden; margin-bottom: 22px; }
.uebersicht__zeile {
  display: flex; justify-content: space-between; gap: 16px; align-items: baseline;
  padding: 12px 18px; border-bottom: 1px solid var(--linie); font-size: .95rem;
}
.uebersicht__zeile:last-child { border-bottom: 0; }
.uebersicht__zeile span:first-child { color: var(--gedaempft); }
.uebersicht__zeile b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.uebersicht__summe {
  background: var(--dunkel); color: var(--weiss); padding: 16px 18px;
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--schrift-titel);
}
.uebersicht__summe b { font-size: 1.5rem; font-weight: 800; }

/* ------------------------------------------------------------- Zustimmung */

.zustimmung { margin: 22px 0; }
.zustimmung__zeile {
  display: flex; gap: 12px; align-items: flex-start; padding: 12px 0;
  border-top: 1px solid var(--linie);
}
.zustimmung__zeile input {
  width: 22px; height: 22px; margin: 2px 0 0; flex-shrink: 0;
  accent-color: var(--aqua-dunkel); cursor: pointer;
}
.zustimmung__zeile label { font-size: .9rem; line-height: 1.55; color: var(--gedaempft); cursor: pointer; }
.zustimmung__zeile label b { color: var(--tinte); font-weight: 600; }

/* Honeypot - fuer Menschen unsichtbar, fuer Bots ausfuellbar */
.honigtopf {
  position: absolute !important; left: -9999px !important; top: auto !important;
  width: 1px !important; height: 1px !important; overflow: hidden !important;
}

/* ------------------------------------------------------------- Navigation */

.kfg__navi {
  display: flex; gap: 12px; align-items: center; justify-content: space-between;
  margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--linie);
}
.kfg__navi .knopf { flex: 1; }
.kfg__zurueck {
  background: none; border: 0; color: var(--gedaempft); cursor: pointer;
  font-family: var(--schrift-text); font-size: .95rem; font-weight: 600;
  padding: 12px 4px; flex: 0 0 auto;
}
.kfg__zurueck:hover { color: var(--tinte); }

.wa-ausweg {
  text-align: center; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--linie);
}
.wa-ausweg a { font-size: .9rem; color: var(--gedaempft); font-weight: 600; }
.wa-ausweg a:hover { color: var(--aqua-dunkel); }

/* ------------------------------------------------------------- Preisband */

.preisband {
  position: sticky; bottom: 0; z-index: 40;
  background: var(--dunkel); color: var(--weiss);
  border-radius: 0 0 20px 20px;
  padding: 13px var(--rand); display: none;
  align-items: center; justify-content: space-between; gap: 14px;
  box-shadow: 0 -8px 24px -14px #0b201e66;
}
.preisband.an { display: flex; }
.preisband__text { font-size: .82rem; color: #a2b8b3; line-height: 1.35; }
.preisband__text b { display: block; color: var(--weiss); font-size: .92rem; font-weight: 600; }
.preisband__preis {
  font-family: var(--schrift-titel); font-size: 1.6rem; font-weight: 800;
  color: var(--aqua); white-space: nowrap; font-variant-numeric: tabular-nums;
  transition: transform .3s var(--weich-kurve);
}
.preisband__preis.pulst { transform: scale(1.09); }

/* ------------------------------------------------------------- Fotoupload */

.fotofeld {
  border: 2px dashed var(--weich); border-radius: 12px; padding: 20px;
  text-align: center; cursor: pointer; transition: border-color .18s, background .18s;
}
.fotofeld:hover, .fotofeld.drueber { border-color: var(--aqua-dunkel); background: #f2fbf9; }
.fotofeld input { position: absolute; opacity: 0; width: 0; height: 0; }
.fotofeld__text { font-size: .93rem; color: var(--gedaempft); }
.fotofeld__text b { display: block; color: var(--tinte); font-weight: 600; margin-bottom: 3px; }
.fotoliste { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.fotoliste li {
  display: flex; align-items: center; gap: 10px; padding: 8px 12px;
  background: var(--nebel); border-radius: 9px; font-size: .87rem;
}
.fotoliste li span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fotoliste button {
  border: 0; background: none; color: var(--gedaempft); cursor: pointer;
  font-size: 1.2rem; line-height: 1; padding: 4px 8px;
}
.fotoliste button:hover { color: #a32014; }

/* ------------------------------------------------------------- Meldungen */

.meldung {
  padding: 14px 18px; border-radius: 11px; margin-bottom: 18px; font-size: .95rem;
}
.meldung--fehler { background: #fdecea; color: #a32014; }
.meldung--gut { background: #eaf7f4; color: #14453f; }
.meldung--warnung { background: var(--warn-grund); color: #6d3a12; }

.sende-schirm {
  position: fixed; inset: 0; z-index: 100; display: none;
  align-items: center; justify-content: center; flex-direction: column; gap: 18px;
  background: rgba(7,21,19,.94); color: var(--weiss); padding: var(--rand);
  text-align: center;
}
.sende-schirm.an { display: flex; }
.sende-schirm__kreis {
  width: 46px; height: 46px; border: 3px solid #ffffff33; border-top-color: var(--aqua);
  border-radius: 50%; animation: dreht .8s linear infinite;
}

/* Ausweg-Knoepfe in Meldungen, Zonenhinweis und Hinweiskasten */
.meldung__knoepfe { margin-top: 14px; }
.zonenmeldung .knopf,
.hinweiskasten .knopf { margin-top: 12px; }
.zonenmeldung .ohne-abstand,
.hinweiskasten p { margin-bottom: 0; }
