/* CAPODIS · Anfrage in Schritten · Haarlinien, keine Schatten, Radien 2–6px */
.af-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
#anfrage { --navy: #0a192f; --gold: #c5a059; --gold-deep: #8b6b2e; --rule: #dcdcdc; --edge: #cbcac8; --ink: #151515; --graphite: #424242; --steel: #706f6f; --mist: #f4f7f9; --err: #9b2c2c; }
#anfrage { background: #fff; border: 1px solid var(--rule); border-radius: 6px; padding: 24px 20px 28px; }
@media (min-width: 640px) { #anfrage { padding: 36px 40px 40px; } }
#anfrage [hidden] { display: none !important; }

/* Fortschritt */
.af-progress { display: flex; gap: 6px; margin-bottom: 10px; }
.af-seg { flex: 1; min-width: 0; }
.af-seg-bar { display: block; height: 3px; background: var(--rule); border-radius: 1px; transition: background-color .25s ease; }
.af-seg.is-done .af-seg-bar { background: var(--navy); }
.af-seg.is-cur .af-seg-bar { background: var(--gold); }
.af-seg-l { display: none; margin-top: 8px; font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--steel); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.af-seg.is-cur .af-seg-l { color: var(--navy); }
@media (min-width: 900px) { .af-seg-l { display: block; } }
.af-counter { margin: 0 0 22px; font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--steel); font-variant-numeric: tabular-nums; }
@media (min-width: 900px) { .af-counter { display: none; } }

/* Kopf je Schritt */
.af-h { font-family: Manrope, Inter, system-ui, sans-serif; font-weight: 450; font-size: 26px; line-height: 1.25; color: var(--ink); margin: 0; outline: none; }
@media (min-width: 640px) { .af-h { font-size: 30px; } }
.af-intro { margin: 10px 0 0; max-width: 40rem; font-size: 15px; line-height: 1.6; color: var(--graphite); }
.af-body { margin-top: 28px; display: grid; grid-template-columns: 1fr; gap: 26px 20px; }
@media (min-width: 640px) { .af-body { grid-template-columns: 1fr 1fr; } }
.af-field { grid-column: 1 / -1; min-width: 0; border: 0; padding: 0; margin: 0; }
@media (min-width: 640px) { .af-field.af-half { grid-column: auto; } }

/* Themen-Kacheln */
.af-topics { display: grid; grid-column: 1 / -1; border-top: 1px solid var(--navy); }
.af-topic { position: relative; display: flex; align-items: center; gap: 18px; padding: 18px 8px 18px 4px; border-bottom: 1px solid var(--rule); cursor: pointer; transition: background-color .15s ease; }
.af-topic:hover { background: var(--mist); }
.af-topic input { position: absolute; opacity: 0; pointer-events: none; }
.af-topic:focus-within { outline: 2px solid var(--navy); outline-offset: 2px; }
.af-topic-no { flex-shrink: 0; width: 30px; padding-left: 4px; font-size: 13px; font-weight: 500; color: var(--gold-deep); }
.af-topic-t { flex: 1; min-width: 0; }
.af-topic-t strong { display: block; font-family: Manrope, Inter, system-ui, sans-serif; font-size: 18px; font-weight: 500; line-height: 1.35; color: var(--ink); }
.af-topic-t span { display: block; margin-top: 3px; font-size: 14px; line-height: 1.5; color: var(--steel); }
.af-topic-arrow { flex-shrink: 0; color: var(--steel); transition: transform .15s ease, color .15s ease; }
.af-topic:hover .af-topic-arrow, .af-topic input:checked ~ .af-topic-arrow { color: var(--navy); transform: translateX(3px); }
.af-topic input:checked ~ .af-topic-t strong { color: var(--navy); }

/* Beschriftungen */
.af-label { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 0; margin: 0 0 10px; font-size: 15px; font-weight: 500; line-height: 1.45; color: var(--ink); }
.af-opt { font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--steel); }
.af-hint { margin: -4px 0 12px; font-size: 13px; line-height: 1.55; color: var(--steel); }
.af-sub { margin: 8px 0 0; font-size: 12px; color: var(--steel); }

/* Auswahl-Kacheln */
.af-choices { display: grid; grid-template-columns: 1fr; gap: 8px; }
@media (min-width: 480px) { .af-cols-2, .af-cols-4 { grid-template-columns: 1fr 1fr; } .af-cols-3 { grid-template-columns: repeat(3, 1fr); }
.af-cols-4 { grid-template-columns: 1fr 1fr; } .af-cols-5 { grid-template-columns: repeat(5, 1fr); } }
@media (min-width: 640px) { .af-cols-4 { grid-template-columns: repeat(4, 1fr); } }
.af-cols-5 { grid-template-columns: repeat(5, 1fr); }
.af-cols-3 { grid-template-columns: repeat(3, 1fr); }
.af-cols-4 { grid-template-columns: 1fr 1fr; }
.af-choice { position: relative; display: flex; cursor: pointer; }
.af-choice input { position: absolute; opacity: 0; pointer-events: none; }
.af-choice span { display: flex; align-items: center; width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid var(--edge); border-radius: 2px; background: #fff; font-size: 14.5px; line-height: 1.35; color: var(--ink); transition: border-color .15s ease, background-color .15s ease, color .15s ease; }
.af-cols-3 .af-choice span, .af-cols-5 .af-choice span { justify-content: center; text-align: center; padding-left: 6px; padding-right: 6px; }
.af-choice:hover span { border-color: var(--navy); }
.af-choice input:focus-visible + span { outline: 2px solid var(--navy); outline-offset: 2px; }
.af-choice input:checked + span { border-color: var(--navy); background: var(--navy); color: #fff; }
.af-choice input[type="checkbox"] + span::before { content: ""; flex-shrink: 0; width: 14px; height: 14px; margin-right: 10px; border: 1px solid var(--edge); border-radius: 2px; background: #fff; }
.af-choice input[type="checkbox"]:checked + span::before { border-color: var(--gold); background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3 7.2l2.6 2.6L11 4.4' fill='none' stroke='%230a192f' stroke-width='1.8'/%3E%3C/svg%3E") center / 12px no-repeat; }

/* Eingaben */
.af-input { width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid var(--edge); border-radius: 2px; background: #fff; font: inherit; font-size: 16px; color: var(--ink); }
textarea.af-input { resize: vertical; min-height: 110px; line-height: 1.5; }
.af-input:hover { border-color: #9a9997; }
.af-input:focus { outline: none; border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }
.af-amount { position: relative; max-width: 22rem; }
.af-amount .af-input { padding-right: 7.5rem; text-align: left; font-weight: 500; }
.af-unit { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-size: 15px; font-weight: 500; color: var(--steel); pointer-events: none; }
.af-unit small { font-size: 12px; font-weight: 400; }

/* Fehler */
.af-err { margin: 8px 0 0; font-size: 13px; color: var(--err); }
.has-err .af-choice span, .has-err .af-input { border-color: var(--err); }
.has-err .af-consent input { outline: 2px solid var(--err); outline-offset: 2px; }

/* Einwilligung */
.af-consent { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border: 1px solid var(--rule); border-radius: 2px; background: var(--mist); font-size: 14px; line-height: 1.55; color: var(--ink); cursor: pointer; }
.af-consent input { flex-shrink: 0; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--navy); }
.af-consent a, .af-link { color: var(--ink); text-decoration: underline; text-decoration-color: var(--edge); text-underline-offset: 3px; }
.af-consent a:hover, .af-link:hover { text-decoration-color: var(--navy); }
.af-note { margin: 12px 0 0; padding-left: 14px; border-left: 2px solid var(--gold); font-size: 13px; line-height: 1.6; color: var(--steel); }

/* Überblick */
.af-review { grid-column: 1 / -1; border: 1px solid var(--rule); border-radius: 2px; }
.af-review summary { list-style: none; cursor: pointer; padding: 14px 16px; font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--navy); background: var(--mist); display: flex; justify-content: space-between; }
.af-review summary::-webkit-details-marker { display: none; }
.af-review summary::after { content: "+"; font-size: 16px; line-height: 1; color: var(--steel); }
.af-review[open] summary::after { content: "–"; }
.af-rv-g { padding: 4px 16px 8px; border-top: 1px solid var(--rule); }
.af-rv-h { display: flex; justify-content: space-between; align-items: baseline; margin: 12px 0 4px; font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-deep); }
.af-rv-edit { font-size: 12px; letter-spacing: .04em; text-transform: none; color: var(--steel); text-decoration: underline; text-underline-offset: 3px; background: none; border: 0; cursor: pointer; padding: 0; }
.af-rv-edit:hover { color: var(--navy); }
.af-review dl > div { display: grid; gap: 2px 16px; padding: 7px 0; border-bottom: 1px solid #ececec; font-size: 14px; }
.af-review dl > div:last-child { border-bottom: 0; }
@media (min-width: 640px) { .af-review dl > div { grid-template-columns: 46% 1fr; } }
.af-review dt { color: var(--steel); }
.af-review dd { margin: 0; color: var(--ink); }

/* Navigation */
.af-nav { display: flex; flex-wrap: wrap-reverse; align-items: center; justify-content: space-between; gap: 12px; margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--rule); }
.af-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 22px; border-radius: 2px; font: inherit; font-size: 15px; font-weight: 500; cursor: pointer; transition: background-color .15s ease, border-color .15s ease; text-decoration: none; }
.af-btn-primary { margin-left: auto; border: 1px solid var(--navy); background: var(--navy); color: #fff; }
.af-btn-primary:hover { background: #13294a; }
.af-btn-ghost { border: 1px solid var(--edge); background: #fff; color: var(--ink); }
.af-btn-ghost:hover { border-color: var(--navy); }
.af-btn:disabled { opacity: .6; cursor: progress; }
@media (max-width: 479px) { .af-btn-primary { width: 100%; } .af-nav .af-btn-ghost { width: 100%; } }
.af-status { margin: 14px 0 0; font-size: 13.5px; line-height: 1.6; color: var(--err); }
.af-status:empty { display: none; }

/* Abschluss */
.af-done { outline: none; }
.af-done-mark { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-bottom: 18px; border-radius: 2px; background: var(--navy); color: var(--gold); font-size: 20px; }
.af-done .af-btn { margin-top: 26px; }

/* Seitenleiste: Schritte */
.af-steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid #0a192f; }
.af-steps li { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid #dcdcdc; font-size: 14px; color: #706f6f; }
.af-steps li > span:first-child { font-size: 13px; font-weight: 500; color: #8b6b2e; }
.af-steps li.is-cur { color: #151515; font-weight: 500; }
.af-steps li.is-done { color: #424242; }
.af-tick { margin-left: auto; color: #29735c; font-size: 13px; }
@media (prefers-reduced-motion: reduce) { #anfrage * { transition: none !important; } }
@media (min-width: 1024px) { .lg\:order-1 { order: 1; } .lg\:order-2 { order: 2; } .lg\:mt-12 { margin-top: 3rem; } }

/* Pflichthinweis Verbraucherkredit (UWG Anhang Nr. 23e) */
.af-field[data-q="k_anliegen"] .af-hint { margin: 0 0 14px; padding: 10px 14px; border-left: 2px solid var(--gold); background: var(--mist); color: var(--ink); font-size: 15px; font-weight: 600; }
