/* Weblion · Anfrage in Schritten (V45, 12.11.2026). Farben je Projekt über die Variablen anpassen, z. B.
   .anfrage { --af-akzent: var(--rot); --af-tinte: var(--tinte); --af-flaeche: #fff; } */
.anfrage { --af-akzent: #C2362B; --af-akzent-text: #fff; --af-tinte: #2B2420; --af-leise: #62574F; --af-flaeche: #fff; --af-linie: rgba(43, 36, 32, .16); --af-wahl: #FBF7F2; --af-rund: 18px;
  background: var(--af-flaeche); color: var(--af-tinte); border-radius: calc(var(--af-rund) + 8px); padding: 26px 24px 22px; box-shadow: 0 18px 40px -24px rgba(43, 36, 32, .35); scroll-margin-top: 90px; }
.anfrage fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.af-schritt + .af-schritt { margin-top: 30px; padding-top: 26px; border-top: 1px dashed var(--af-linie); }
.af-frage { font-size: clamp(21px, 2.6vw, 26px); font-weight: 800; line-height: 1.25; padding: 0; margin-bottom: 6px; }
.af-unter { color: var(--af-leise); margin: 0 0 14px; font-size: 15.5px; } .af-klein { font-size: 14px; margin: -4px 0 12px; }
.af-notfall { margin: 0 0 14px; padding: 10px 14px; border-radius: 12px; background: #FFF1E6; font-size: 15px; font-weight: 600; }
.af-nowrap { white-space: nowrap; }
.af-kopf { display: none; }

/* Antworten zum Antippen */
.af-wahlen { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; margin-top: 12px; }
.af-wahlen.af-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.af-wahl { position: relative; display: block; cursor: pointer; }
.af-wahl input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.af-wahl span { display: grid; gap: 2px; min-height: 54px; align-content: center; padding: 12px 16px 12px 46px; border-radius: 14px; background: var(--af-wahl); box-shadow: inset 0 0 0 2px var(--af-linie); transition: background .15s, box-shadow .15s, transform .15s; position: relative; }
.af-wahl span::before { content: ""; position: absolute; left: 16px; top: 50%; width: 20px; height: 20px; margin-top: -10px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--af-linie); background: #fff; transition: box-shadow .15s, background .15s; }
.af-wahl input[type="checkbox"] + span::before { border-radius: 6px; }
.af-wahl b { font-weight: 700; font-size: 16.5px; } .af-wahl small { color: var(--af-leise); font-size: 14px; }
.af-chips .af-wahl span { min-height: 46px; padding: 9px 16px 9px 40px; border-radius: 999px; } .af-chips .af-wahl span::before { left: 13px; width: 18px; height: 18px; margin-top: -9px; }
.af-wahl:hover span { box-shadow: inset 0 0 0 2px var(--af-akzent); }
.af-wahl input:checked + span { background: color-mix(in srgb, var(--af-akzent) 10%, #fff); box-shadow: inset 0 0 0 2.5px var(--af-akzent); }
.af-wahl input:checked + span::before { background: var(--af-akzent); box-shadow: inset 0 0 0 4px #fff, 0 0 0 2px var(--af-akzent); }
.af-wahl input:focus-visible + span { outline: 3px solid var(--af-akzent); outline-offset: 3px; }

/* Felder */
.af-feld { display: grid; gap: 6px; font-weight: 700; font-size: 15px; }
.af-feld small { font-weight: 500; color: var(--af-leise); }
.af-feld input, .af-feld textarea, .af-zahl input { font: inherit; font-weight: 500; font-size: 16.5px; color: var(--af-tinte); background: #fff; border: 0; border-radius: 12px; padding: 12px 14px; min-height: 50px; box-shadow: inset 0 0 0 2px var(--af-linie); width: 100%; box-sizing: border-box; }
.af-feld textarea { resize: vertical; min-height: 90px; }
.af-feld input:focus, .af-feld textarea:focus, .af-zahl input:focus { outline: none; box-shadow: inset 0 0 0 2.5px var(--af-akzent); }
.af-breit { margin-bottom: 14px; }
.af-zeitraum, .af-zwei { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 6px 0 14px; }
.af-zaehler { display: grid; gap: 12px; margin-top: 10px; }
.af-zahl { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 12px 10px 16px; border-radius: 14px; background: var(--af-wahl); box-shadow: inset 0 0 0 2px var(--af-linie); font-weight: 700; }
.af-zahl-rad { display: flex; align-items: center; gap: 6px; }
.af-zahl input { width: 64px; text-align: center; padding: 8px 4px; min-height: 44px; -moz-appearance: textfield; appearance: textfield; }
.af-zahl input::-webkit-outer-spin-button, .af-zahl input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.af-minus, .af-plus { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--af-akzent); color: var(--af-akzent-text); font: 800 22px/1 system-ui, sans-serif; cursor: pointer; display: none; }
.af-rueck { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 4px 0 16px; font-weight: 700; font-size: 15px; } .af-rueck .af-wahlen { margin-top: 0; }
.af-ok { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.45; cursor: pointer; padding: 12px 14px; border-radius: 14px; background: var(--af-wahl); }
.af-ok input { width: 22px; height: 22px; flex: none; margin: 1px 0 0; accent-color: var(--af-akzent); }
.af-falle, .af-versteckt { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.af-fehler { margin: 14px 0 0; padding: 10px 14px; border-radius: 12px; background: #FDE8E6; color: #8E1F17; font-weight: 700; font-size: 15px; }

/* Knöpfe */
.af-fuss { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.af-knopf { font: inherit; font-weight: 800; font-size: 16.5px; min-height: 52px; padding: 12px 24px; border-radius: 999px; border: 0; cursor: pointer; transition: transform .15s, background .15s, box-shadow .15s; }
.af-weiter, .af-senden { background: var(--af-akzent); color: var(--af-akzent-text); margin-left: auto; }
.af-weiter:hover, .af-senden:hover { transform: translateY(-2px); }
.af-zurueck, .af-whatsapp { background: transparent; color: var(--af-tinte); box-shadow: inset 0 0 0 2px var(--af-linie); }
.af-zurueck:hover, .af-whatsapp:hover { box-shadow: inset 0 0 0 2px var(--af-tinte); }
.af-weiter { display: none; } .af-zurueck[data-af-zurueck] { display: none; }
.af-wa { margin: 12px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; } .af-wa small { color: var(--af-leise); }
.af-ergebnis { outline: none; } .af-ergebnis-titel { font-size: 22px; font-weight: 800; margin: 0 0 6px; }
.af-ergebnis pre { white-space: pre-wrap; overflow-wrap: anywhere; font: 500 15px/1.55 ui-monospace, Consolas, monospace; background: var(--af-wahl); border-radius: 14px; padding: 16px; margin: 14px 0 18px; box-shadow: inset 0 0 0 2px var(--af-linie); }

/* Mit JavaScript: ein Schritt nach dem anderen */
.af-an .af-kopf { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; font-size: 14px; font-weight: 700; color: var(--af-leise); }
.af-balken { flex: 1; height: 8px; border-radius: 99px; background: var(--af-wahl); box-shadow: inset 0 0 0 1px var(--af-linie); overflow: hidden; }
.af-balken span { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--af-akzent); transition: width .35s cubic-bezier(.3, 1.2, .5, 1); }
.af-an .af-schritt { display: none; } .af-an .af-schritt.af-aktiv { display: block; animation: af-rein .3s ease-out; }
.af-an .af-schritt + .af-schritt { margin-top: 0; padding-top: 0; border-top: 0; }
.af-an .af-schritt:focus { outline: none; }
.af-an .af-weiter:not([hidden]) { display: inline-block; } .af-an .af-zurueck[data-af-zurueck]:not([hidden]) { display: inline-block; }
.af-an .af-senden[hidden], .af-an .af-wa[hidden] { display: none; }
.af-an .af-minus, .af-an .af-plus { display: grid; place-items: center; }
.af-fertig > :not(.af-ergebnis) { display: none !important; }
@keyframes af-rein { from { opacity: 0; transform: translateX(14px); } }
@media (max-width: 560px) {
  .anfrage { padding: 22px 16px 18px; }
  .af-zeitraum, .af-zwei { grid-template-columns: 1fr; }
  .af-wahlen { grid-template-columns: 1fr; }
  .af-fuss .af-knopf { flex: 1; }
}
@media (prefers-reduced-motion: reduce) { .af-an .af-schritt.af-aktiv { animation: none; } .af-balken span { transition: none; } }
