/*
 * @copyright	Copyright (C) 2026 Wep Schmiede GmbH - All Rights Reserved
 *
 * @file		wizard-redesign.css
 * @author		Wep Schmiede GmbH - Oliver Pfeifer
 * @link		https://www.wep-schmiede.de
 * @modified	27.09.26, 12:00
 *
 */

/*
 * Wizard (Schritte 1–11) im Look des Abschluss-Popups – Maße nach
 * docs/proposals/img/wizard-soll-*.svg (Modal 820 px, Werte relativ zur Modal-Oberkante).
 *
 * Lädt NACH advisory_flow.css und wizard-finish.css und nutzt deren Tokens (--wf-*); hier werden
 * nur fehlende Werte ergänzt. Alles ist gescoped auf .wz bzw. #wizardModal.wz-modal:not(.wf-finalizing):
 * sobald das Abschluss-Popup läuft (wf-finalizing), gelten ausschließlich die Popup-Regeln.
 *
 * Spezifität gegen globale Regeln (advisory_flow.css `button{}`/`button:hover`, `input:focus`,
 * BS4-Reboot): jeder Wizard-Button trägt .wz-b → `.wz .wz-b` (0,2,0) mit `all: unset`.
 *
 * Gliederung: 0 Tokens · 1 Modal-Integration · 2 Basis/Buttons · 3 Kopf · 4 Timeline + Balken ·
 * 5 Mobil-Kompaktkopf + Kapitel-Navigator (Desktop-Panel + Mobil-Sheet) · 6 Step-Kopf + Typewriter · 7 Felder/Fehler/Hilfe/Sammelhinweis ·
 * 8 Auswahlen (Karten, Consent, Segment, Radio-Karten) · 9 Namen/Kinder, Vermögen, Summe, Hinweise ·
 * 10 Navigation · 11 Übersicht + Vertrauensleiste · 12 Responsive (≤ 767,98: Zwischenbreiten,
 * ≤ 575,98: Vollbild-Sheet, fixierte Navigation, Tastatur-Abstand --wz-kb) · 13 Reduced Motion.
 */

/* =========================================================================
   0. Tokens (ergänzend zu wizard-finish.css :root --wf-*)
   ========================================================================= */

.wz,
#wizardModal.wz-modal {
    --wf-error: #b02a37;
    --wf-error-bg: #fbeaec;
    --wf-input-line: var(--wf-ring-pending);
    --wf-petrol-tint: #eef6f7;
    --wf-tw-ghost: #dfe3e6;
    --wf-halo-focus: rgba(33, 122, 138, .14);
    --wf-halo-error: rgba(176, 42, 55, .10);
    --wf-backdrop: rgba(11, 42, 48, .35);
}

/* =========================================================================
   1. Modal-Integration (#wizardModal im Wizard-Zustand)
   ========================================================================= */

#wizardModal.wz-modal:not(.wf-finalizing) .modal-header { display: none; }
#wizardModal.wz-modal:not(.wf-finalizing) .modal-dialog { max-width: 820px; }
#wizardModal.wz-modal:not(.wf-finalizing) .modal-content {
    border: 0;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    box-shadow: var(--wf-shadow-modal-running);
}
#wizardModal.wz-modal:not(.wf-finalizing) .modal-body { padding: 0; overflow-x: hidden; }
#wizardModal.wz-modal:not(.wf-finalizing) #wizard-app > .container-fluid { padding: 0 !important; }

/* =========================================================================
   2. Basis / Resets / Buttons
   ========================================================================= */

.wz {
    position: relative;
    font-family: var(--wf-font);
    font-size: 15px;
    line-height: 1.4;
    color: var(--wf-text);
    background: #fff;
    text-align: left;
    letter-spacing: 0;
    -webkit-font-smoothing: antialiased;
}
/* Inline (wizard/form.php): Karte wie das Popup. Kein overflow:hidden – sonst greift sticky nicht. */
.wz:not(.wz--modal) {
    max-width: 820px;
    margin: 0 auto;
    border-radius: 14px;
    box-shadow: var(--wf-shadow-modal-running);
}
.wz::before {
    content: "";
    display: block;
    height: 4px;
    background: var(--wf-kupfer);
}
.wz:not(.wz--modal)::before { border-radius: 14px 14px 0 0; }

.wz-top *, .wz-top *::before, .wz-top *::after,
.wz-stephead *, .wz-stephead *::before, .wz-stephead *::after,
.wz-stepbody *, .wz-stepbody *::before, .wz-stepbody *::after,
.wz-nav *, .wz-nav *::before, .wz-nav *::after { box-sizing: border-box; }
.wz svg { overflow: visible; }
.wz a { color: var(--wf-petrol); }
.wz a:hover { color: var(--wf-petrol-dark); }

.wz .wz-b {
    all: unset;
    box-sizing: border-box;
    cursor: pointer;
    font-family: var(--wf-font);
    -webkit-tap-highlight-color: transparent;
}
.wz .wz-b:focus-visible,
.wz a:focus-visible {
    outline: var(--wf-focus);
    outline-offset: 2px;
}
.wz [tabindex="-1"]:focus { outline: none; }

.wz .wz-lg { display: inline; }
.wz .wz-sm { display: none; }

/* =========================================================================
   3. Kopf (Logo, Speicherstatus, Schließen)
   ========================================================================= */

.wz .wz-head {
    position: relative;
    height: 68px;
    margin: 0;
    padding: 0;
    border-bottom: 1px solid var(--wf-line);
}
/* Logo: img.wf-logo aus wizard-finish.css (left 16, top −3, Höhe 72). */

.wz .wz-save {
    display: flex;
    align-items: flex-start;
    gap: 5px;
    font-size: 12.5px;
    line-height: 16px;
    color: var(--wf-text-2);
    white-space: nowrap;
}
/* Rechte Werkzeuge im Kopf: Speicherstatus + Sprachumschalter (rechte Kante wie bisher der Status) */
.wz .wz-head-tools {
    position: absolute;
    right: 79px;
    top: 16px;
    height: 28px;
    display: flex;
    align-items: center;
    gap: 16px;
}
.wz .wz-head--nomodal .wz-head-tools { right: 24px; }
.wz .wz-save--head { position: static; }

/* Sprachumschalter DE | EN (Desktop): Zweiergruppe, aktive Sprache petrol */
.wz .wz-lang {
    display: inline-flex;
    align-items: center;
    padding: 2px;
    border: 1px solid var(--wf-line);
    border-radius: 14px;
    background: #fff;
}
.wz .wz-lang-btn,
.wz .wz-lang-m {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 22px;
    padding: 0 8px;
    border-radius: 11px;
    font-size: 12px;
    line-height: 16px;
    font-weight: 600;
    letter-spacing: .04em;
    color: var(--wf-text-2);
}
.wz .wz-lang-btn:hover:not(:disabled):not(.is-on) { color: var(--wf-petrol-dark); background: var(--wf-surface); }
.wz .wz-lang-btn.is-on { color: #fff; background: var(--wf-petrol); cursor: default; }
.wz .wz-lang-btn:disabled,
.wz .wz-lang-m:disabled { cursor: progress; opacity: .6; }
/* Mobil: kompakter Toggle auf die andere Sprache im Kompaktkopf, links neben dem × (absolut –
   verschiebt weder Logo noch die Zeile „Alle Kapitel ansehen“/Speicherstatus) */
.wz .wz-lang-m {
    position: absolute;
    right: 48px;
    top: calc(14px + env(safe-area-inset-top, 0px));
    display: none;
    min-width: 30px;
    height: 20px;
    padding: 0 6px;
    border: 1px solid var(--wf-line);
    border-radius: 10px;
    font-size: 11.5px;
    color: var(--wf-petrol);
}
.wz .wz-head--nomodal .wz-lang-m { right: 14px; }
/* Trefferfläche ≥ 44 × 44 px */
.wz .wz-lang-m::after { content: ""; position: absolute; left: -7px; right: -7px; top: -12px; bottom: -12px; }

/* Landingpage (Hero, außerhalb von .wz): gleicher DE | EN-Umschalter als Links auf lang/{locale} */
.wz-hero-lang {
    align-self: flex-end;
    display: inline-flex;
    align-items: center;
    margin: 0 0 8px;
    padding: 2px;
    border: 1px solid #d6dde1;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
}
.wz-hero-lang .wz-hero-lang-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 22px;
    padding: 0 8px;
    border-radius: 11px;
    font-family: var(--wf-font, inherit);
    font-size: 12px;
    line-height: 16px;
    font-weight: 600;
    letter-spacing: .04em;
    color: #1b6573;
    text-decoration: none;
}
.wz-hero-lang .wz-hero-lang-btn:hover { color: #1b6573; background: #f1f4f5; text-decoration: none; }
.wz-hero-lang .wz-hero-lang-btn.is-on { color: #fff; background: var(--wf-petrol, #217a8a); }
.wz-hero-lang .wz-hero-lang-btn.is-on:hover { color: #fff; background: var(--wf-petrol, #217a8a); }
.wz-hero-lang .wz-hero-lang-btn:focus-visible { outline: 2px solid #1b6573; outline-offset: 2px; }

/* Einverständnis (EN): Hinweis, dass die deutsche Fassung maßgeblich ist */
.wz .wz-legal-note {
    margin: 12px 0 0;
    font-size: 12.5px;
    line-height: 17px;
    color: var(--wf-text-2);
}
.wz-cloud { display: block; flex: none; margin-top: 1px; }
.wz-cloud-o { fill: none; stroke: var(--wf-text-2); stroke-width: 1.5; stroke-linejoin: round; }
.wz-cloud-c { fill: none; stroke: var(--wf-petrol); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.wz .wz-save-retry {
    display: inline-flex;
    align-items: flex-start;
    gap: 6px;
    font-size: 12.5px;
    line-height: 16px;
    font-weight: 600;
    color: var(--wf-error);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.wz .wz-save-retry:hover { color: #8c1f2a; }
.wz-erricon { flex: none; margin-top: 1px; }
.wz-erricon circle, .wz-erricon rect { fill: var(--wf-error); }
.wz-erricon rect, .wz-erricon .wz-erricon-dot { fill: #fff; }

.wz .wz-close {
    position: absolute;
    right: 18px;
    top: 15.5px;
    width: 30px;
    height: 30px;
    border-radius: 15px;
    font-size: 22px;
    line-height: 30px;
    text-align: center;
    color: var(--wf-text-3);
}
.wz .wz-close:hover { color: var(--wf-text); background: var(--wf-surface); }

/* =========================================================================
   4. Kapitel-Timeline + Fortschrittsbalken (Desktop)
   ========================================================================= */

.wz .wz-progress {
    padding: 33px 48px 29px;
    border-bottom: 1px solid var(--wf-line);
}
.wz-tl-wrap {
    --wz-n: 5;
    --wz-ai: 0;
    position: relative;
    max-width: calc(var(--wz-n) * 140px);
    margin: 0 auto;
}
.wz .wz-tl {
    position: relative;
    display: grid;
    grid-template-columns: repeat(var(--wz-n), minmax(0, 1fr));
    margin: 0;
    padding: 0;
    list-style: none;
}
.wz-tl-track {
    position: absolute;
    left: 0;
    right: 0;
    top: 15.5px;
    height: 3px;
    pointer-events: none;
}
.wz-tl-line, .wz-tl-fill, .wz-tl-dash {
    position: absolute;
    top: 0;
    height: 3px;
}
.wz-tl-line {
    left: calc(50% / var(--wz-n));
    right: calc(50% / var(--wz-n));
    background: var(--wf-line);
}
.wz-tl-fill {
    left: calc(50% / var(--wz-n));
    width: calc(var(--wz-ai) * 100% / var(--wz-n));
    background: var(--wf-petrol);
    transition: width .3s ease-out;
}
.wz-tl-dash {
    display: none;
    left: calc(50% / var(--wz-n) + var(--wz-ai) * 100% / var(--wz-n));
    width: calc(50% / var(--wz-n));
    background: repeating-linear-gradient(90deg, var(--wf-petrol) 0 6px, transparent 6px 11px);
}
.wz-tl--dash .wz-tl-dash { display: block; }

.wz .wz-tl-item {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 0;
    list-style: none;
    min-width: 0;
}
.wz .wz-tl-node-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 100%;
    text-align: center;
}
.wz .wz-tl-btn { cursor: pointer; border-radius: 8px; }
.wz-node {
    position: relative;
    display: block;
    flex: none;
    width: 34px;
    height: 34px;
}
.wz-node-svg {
    position: absolute;
    left: -7px;
    top: -7px;
    width: 48px;
    height: 48px;
}
.wz-node-fill { fill: var(--wf-petrol); }
.wz-node-check { fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
/* Halo am aktiven Knoten statisch (Mockup), anders als im Popup */
.wz-node-halo { fill: var(--wf-kupfer); fill-opacity: .14; }
.wz-node-ring { fill: #fff; stroke: var(--wf-kupfer); stroke-width: 3; }
.wz-node-dot { fill: var(--wf-kupfer); }
.wz-node-pending { fill: #fff; stroke: var(--wf-ring-pending); stroke-width: 2; }
.wz-node-num {
    position: absolute;
    inset: 0;
    font-size: 13px;
    line-height: 34px;
    font-weight: 700;
    color: var(--wf-text-3);
    text-align: center;
}
.wz-tl-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 100%;
    margin-top: 10px;
}
.wz-tl-label {
    font-size: 14px;
    line-height: 20px;
    font-weight: 400;
    color: var(--wf-text-2);
    white-space: nowrap;
}
.wz-tl-sub {
    margin-top: 3px;
    font-size: 12px;
    line-height: 16px;
    color: var(--wf-text-3);
    white-space: nowrap;
}
.wz-tl-item.is-done .wz-tl-label { font-weight: 600; color: var(--wf-text); }
.wz-tl-item.is-done .wz-tl-sub,
.wz-tl-item.is-attention .wz-tl-sub {
    color: var(--wf-petrol);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.wz-tl-item.is-attention .wz-tl-label { font-weight: 600; color: var(--wf-text); }
.wz-tl-item.is-active .wz-tl-label { font-weight: 700; color: var(--wf-text); }
.wz-tl-item.is-active .wz-tl-sub { color: var(--wf-kupfer-text); }
.wz .wz-tl-btn:hover .wz-tl-sub { color: var(--wf-petrol-dark); }
.wz .wz-tl-btn:hover .wz-node-fill { fill: var(--wf-petrol-dark); }

.wz .wz-pline {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 32.5px;
    font-size: 13px;
    line-height: 18px;
    color: var(--wf-text-2);
}
.wz-pline-l { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wz-pline-r { flex: none; color: var(--wf-text-3); }
.wz .wz-bar {
    position: relative;
    height: 6px;
    margin-top: 4.5px;
    border-radius: 3px;
    background: var(--wf-line);
    overflow: hidden;
}
.wz-bar-fill {
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--wf-petrol-dark), var(--wf-petrol));
    transition: width .3s ease-out;
}

/* =========================================================================
   5. Mobil-Kompaktkopf + Kapitel-Navigator (Desktop-Panel + Mobil-Sheet)
   Kompaktkopf nur ≤ 575,98 px. Der Navigator ist ein Dialog (#wz-sheet): Desktop als Panel unter
   der Kopfzeile (Timeline/Formular abgedunkelt), mobil als Bottom-Sheet (Abschnitt 12).
   ========================================================================= */

.wz .wz-mprog { display: none; }
.wz-mprog-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    font-size: 13px;
    line-height: 18px;
}
.wz-mprog-chapter { min-width: 0; font-weight: 700; color: var(--wf-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wz-mprog-step { flex: none; font-size: 12px; color: var(--wf-text-3); }
.wz .wz-segs {
    display: flex;
    gap: 4px;
    margin-top: 4.5px;
}
.wz-seg {
    position: relative;
    flex: 1 1 0;
    height: 6px;
    border-radius: 3px;
    background: var(--wf-line);
    overflow: hidden;
}
.wz-seg-fill {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    border-radius: 3px;
    background: var(--wf-kupfer);
}
.wz-seg.is-done .wz-seg-fill { background: var(--wf-petrol); }
.wz-mprog-row2 {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    min-height: 16px;
    margin-top: 8.8px;
}
.wz .wz-save--m { margin-left: auto; font-size: 12px; }
/* „Alle Kapitel ansehen ⌄“ – Trefferfläche per ::after auf ≥ 44 px Höhe vergrößert */
.wz .wz-allch {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    line-height: 16px;
    font-weight: 600;
    color: var(--wf-petrol);
    white-space: nowrap;
}
.wz .wz-allch > span { text-decoration: underline; text-underline-offset: 2px; }
.wz .wz-allch .wz-chevron { width: 10px; height: 6px; margin: 0 0 1px; }
.wz .wz-allch[aria-expanded="true"] .wz-chevron { transform: rotate(180deg); }
.wz .wz-allch::after { content: ""; position: absolute; left: -8px; right: -8px; top: -14px; bottom: -14px; }
.wz .wz-allch:hover { color: var(--wf-petrol-dark); }

/* „Alle Kapitel ansehen ⌄“ auf Desktop: in der Fortschrittszeile rechts vor „Schritt n von m“ */
.wz .wz-pline { align-items: baseline; }
.wz .wz-pline-l { flex: 0 1 auto; }
.wz .wz-allch--d { margin-left: auto; font-size: 13px; line-height: 18px; }
.wz .wz-allch--d::after { top: -13px; bottom: -13px; }
.wz .wz-allch--d .wz-chevron { margin: 0 0 1px 2px; }

/* Dialog-Ebene: beginnt unter der Kopfzeile (4 px Kupferkante + 68 px Kopf); Backdrop dunkelt ab. */
.wz .wz-sheet-layer {
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    top: 72px;
    bottom: 0;
    z-index: 20;
}
.wz .wz-sheet-backdrop {
    position: absolute;
    inset: 0;
    background: var(--wf-backdrop);
}
.wz:not(.wz--modal) .wz-sheet-backdrop { border-radius: 0 0 14px 14px; }

/* Panel (Desktop) */
.wz .wz-sheet {
    position: absolute;
    top: 12px;
    left: 32px;
    right: 32px;
    display: flex;
    flex-direction: column;
    max-height: min(640px, calc(100vh - 72px - 3.5rem - 24px), calc(100% - 24px));
    max-height: min(640px, calc(100dvh - 72px - 3.5rem - 24px), calc(100% - 24px));
    overflow: hidden;
    border: 1px solid var(--wf-line);
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--wf-shadow-card);
    text-align: left;
    animation: wz-nv-in .18s ease-out;
}
.wz .wz-sheet *, .wz .wz-sheet *::before, .wz .wz-sheet *::after { box-sizing: border-box; }
@keyframes wz-nv-in { from { transform: translateY(-6px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes wz-sheet-in { from { transform: translateY(24px); opacity: .6; } to { transform: none; opacity: 1; } }
.wz .wz-sheet-grip { display: none; }
.wz .wz-sheet-head {
    display: flex;
    flex: none;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    padding: 18px 24px 16px;
    border-bottom: 1px solid var(--wf-line);
}
.wz .wz-sheet-heading { min-width: 0; }
.wz .wz-sheet-title {
    margin: 0;
    padding: 0;
    font-family: var(--wf-font);
    font-size: 18px;
    line-height: 22px;
    font-weight: 700;
    color: var(--wf-text);
    letter-spacing: 0;
    text-transform: none;
}
.wz .wz-sheet-title:focus { outline: none; }
.wz .wz-sheet-sub {
    margin: 3px 0 0;
    padding: 0;
    font-size: 12.5px;
    line-height: 16px;
    color: var(--wf-text-2);
}
.wz .wz-sheet-total {
    display: flex;
    flex: none;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    width: 168px;
}
.wz .wz-sheet-total-text {
    font-size: 12.5px;
    line-height: 16px;
    font-weight: 600;
    color: var(--wf-text);
    white-space: nowrap;
}
.wz .wz-sheet-total-bar {
    position: relative;
    display: block;
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background: var(--wf-line);
    overflow: hidden;
}
.wz .wz-sheet-total-fill {
    display: block;
    height: 100%;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--wf-petrol-dark), var(--wf-petrol));
}
.wz .wz-sheet-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
}
.wz .wz-sheet-foot {
    display: flex;
    flex: none;
    justify-content: flex-end;
    padding: 12px 24px;
    border-top: 1px solid var(--wf-line);
    background: var(--wf-surface);
}
.wz .wz-sheet .wz-sheet-done {
    min-width: 0;
    height: 40px;
    margin: 0;
    padding: 0 22px;
    border-radius: 20px;
    font-size: 14px;
}

/* Navigator: Kapitel (Akkordeon) → Fragen → Unterfragen */
.wz .wz-nv,
.wz .wz-nv-qs,
.wz .wz-nv-subs { margin: 0; padding: 0; list-style: none; }
.wz .wz-nv-ch { margin: 0; border-bottom: 1px solid var(--wf-line); }
.wz .wz-nv-ch:last-child { border-bottom: 0; }
.wz .wz-nv-qi { margin: 0; }
/* Kapitelkopf bleibt beim Scrollen durch lange Kapitel (Folgefragen) oben stehen */
.wz .wz-nv-h {
    position: sticky;
    top: 0;
    z-index: 1;
    margin: 0;
    padding: 0;
    background: #fff;
    font-family: var(--wf-font);
    font-size: inherit;
    line-height: inherit;
    font-weight: inherit;
    letter-spacing: 0;
    text-transform: none;
}
.wz .wz-nv-toggle {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) auto auto;
    align-items: center;
    column-gap: 12px;
    width: 100%;
    min-height: 56px;
    padding: 10px 24px;
    transition: background-color .15s ease;
}
.wz .wz-nv-toggle:hover { background: var(--wf-surface); }
.wz .wz-nv-toggle:focus-visible,
.wz .wz-nv-q:focus-visible,
.wz .wz-nv-sub:focus-visible { outline-offset: -3px; }
.wz .wz-nv-node { position: relative; display: block; width: 24px; height: 24px; }
.wz .wz-nv-node-svg { display: block; overflow: visible; }
.wz .wz-nv-node-fill { fill: var(--wf-petrol); }
.wz .wz-nv-node-check { fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.wz .wz-nv-node-ring { fill: #fff; stroke: var(--wf-kupfer); stroke-width: 2.4; }
.wz .wz-nv-node-dot { fill: var(--wf-kupfer); }
.wz .wz-nv-node-pending { fill: #fff; stroke: var(--wf-ring-pending); stroke-width: 1.6; }
.wz .wz-nv-ch.is-attention .wz-nv-node-pending { fill: var(--wf-warn-bg); stroke: var(--wf-kupfer); }
.wz .wz-nv-num {
    position: absolute;
    inset: 0;
    font-size: 11px;
    line-height: 24px;
    font-weight: 700;
    color: var(--wf-text-3);
    text-align: center;
}
.wz .wz-nv-ch.is-attention .wz-nv-num { color: var(--wf-kupfer-text); }
.wz .wz-nv-ch-text { display: flex; flex-direction: column; min-width: 0; }
.wz .wz-nv-ch-title {
    font-size: 14.5px;
    line-height: 19px;
    font-weight: 600;
    color: var(--wf-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.wz .wz-nv-ch.is-active .wz-nv-ch-title { font-weight: 700; }
.wz .wz-nv-ch.is-pending .wz-nv-ch-title { font-weight: 500; color: var(--wf-text-2); }
.wz .wz-nv-ch-meta { margin-top: 1px; font-size: 12px; line-height: 16px; color: var(--wf-text-2); }
.wz .wz-nv-chip {
    display: inline-block;
    padding: 2px 9px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: 11.5px;
    line-height: 14px;
    font-weight: 600;
    white-space: nowrap;
}
.wz .wz-nv-chip.is-done { background: var(--wf-petrol-tint); color: var(--wf-petrol-dark); }
.wz .wz-nv-chip.is-active { background: var(--wf-halo-active); color: var(--wf-kupfer-text); }
.wz .wz-nv-chip.is-attention { background: var(--wf-warn-bg); border-color: var(--wf-warn-line); color: var(--wf-kupfer-text); }
.wz .wz-nv-chip.is-pending { background: var(--wf-surface); color: var(--wf-text-2); }
.wz .wz-nv-chev {
    display: block;
    width: 10px;
    height: 6px;
    fill: none;
    stroke: var(--wf-text-3);
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform .15s ease;
}
.wz .wz-nv-toggle[aria-expanded="true"] .wz-nv-chev { transform: rotate(180deg); }

.wz .wz-nv-qs { padding: 0 0 10px; }
.wz .wz-nv-q {
    position: relative;
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr) 10px;
    align-items: center;
    column-gap: 15px;
    width: 100%;
    min-height: 44px;
    padding: 7px 24px 7px 27px;
    transition: background-color .15s ease;
}
.wz .wz-nv-q.is-locked { cursor: default; }
.wz button.wz-nv-q:hover { background: var(--wf-surface); }
.wz .wz-nv-q.is-current { background: var(--wf-warn-bg); box-shadow: inset 3px 0 0 var(--wf-kupfer); }
.wz .wz-nv-q-text { display: flex; flex-direction: column; min-width: 0; }
.wz .wz-nv-q-label { font-size: 14px; line-height: 19px; font-weight: 500; color: var(--wf-text); }
.wz .wz-nv-q.is-current .wz-nv-q-label { font-weight: 700; }
.wz .wz-nv-q.is-locked .wz-nv-q-label { font-weight: 400; color: var(--wf-text-3); }
.wz .wz-nv-ans {
    margin-top: 1px;
    font-size: 12.5px;
    line-height: 17px;
    color: var(--wf-text-2);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.wz .wz-nv-q.is-attention .wz-nv-ans { color: var(--wf-kupfer-text); }
.wz .wz-nv-ico { display: block; overflow: visible; }
.wz .wz-nv-ico-done { fill: var(--wf-petrol); }
.wz .wz-nv-ico-check { fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.wz .wz-nv-ico-ring { fill: #fff; stroke: var(--wf-kupfer); stroke-width: 2; }
.wz .wz-nv-ico-dot { fill: var(--wf-kupfer); }
.wz .wz-nv-ico-warn { fill: var(--wf-kupfer); }
.wz .wz-nv-ico-mark { fill: #fff; }
.wz .wz-nv-ico-open { fill: #fff; stroke: var(--wf-petrol); stroke-width: 1.6; }
.wz .wz-nv-ico-lock { fill: none; stroke: var(--wf-text-3); stroke-width: 1.4; }
.wz .wz-nv-ico-shackle { fill: none; stroke: var(--wf-text-3); stroke-width: 1.4; stroke-linecap: round; }
.wz .wz-nv-go {
    display: block;
    width: 6px;
    height: 10px;
    justify-self: end;
    fill: none;
    stroke: var(--wf-text-3);
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.wz button.wz-nv-q:hover .wz-nv-go { stroke: var(--wf-petrol); }

/* Unterfragen: eingerückt unter der Frage, Leitlinie auf Höhe des Status-Icons */
.wz .wz-nv-subwrap {
    margin: 2px 24px 6px 35px;
    padding: 0 0 0 23px;
    border-left: 2px solid var(--wf-line);
}
.wz .wz-nv-subcap {
    margin: 0;
    padding: 4px 12px 2px;
    font-size: 11px;
    line-height: 14px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--wf-text-2);
}
.wz .wz-nv-subs > li { margin: 0; }
.wz .wz-nv-sub {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 6px 12px;
    border-radius: 6px;
    transition: background-color .15s ease;
}
.wz .wz-nv-sub:hover { background: var(--wf-surface); }
.wz .wz-nv-sub-label {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    font-size: 13px;
    line-height: 18px;
    color: var(--wf-text);
}
.wz .wz-nv-sub-ans {
    margin-top: 1px;
    font-size: 12px;
    line-height: 16px;
    font-weight: 600;
    color: var(--wf-petrol-dark);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.wz .wz-nv-sub:not(.is-answered) .wz-nv-sub-ans { font-weight: 400; color: var(--wf-text-3); }

/* Navigator offen: Hintergrund (Modal-Körper) scrollt nicht mit */
#wizardModal.wz-modal:not(.wf-finalizing) .modal-body:has(.wz.is-sheet-open) { overflow: hidden; }

/* =========================================================================
   6. Step-Kopf + Typewriter
   ========================================================================= */

.wz .wz-content { padding: 26.8px 48px 0; }
.wz .wz-kicker {
    margin: 0;
    padding: 0;
    font-size: 12px;
    line-height: 16px;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--wf-kupfer-text);
}
.wz .wz-title {
    margin: 6px 0 0;
    padding: 0;
    font-family: inherit;
    font-size: 27px;
    line-height: 34px;
    font-weight: 600;
    color: var(--wf-text);
    letter-spacing: 0;
    text-transform: none;
}
.wz .wz-title:focus { outline: none; }
.wz-lead-wrap { position: relative; margin-top: 8.6px; }
.wz .wz-lead {
    /* rechts Platz für „Überspringen ›“ (≈ 90 px) – immer reserviert, damit nichts springt */
    max-width: min(620px, calc(100% - 104px));
    font-size: 15px;
    line-height: 21px;
    color: var(--wf-text-2);
}
.wz .wz-lead-rest {
    max-width: 620px;
    margin-top: 12px;
    font-size: 15px;
    line-height: 21px;
    color: var(--wf-text-2);
}
.wz .wz-lead p, .wz .wz-lead-rest p { margin: 0 0 8px; }
.wz .wz-lead-rest p:last-child { margin-bottom: 0; }
.wz-stephead.is-typing { cursor: pointer; }

/* Ghost: noch nicht getippter Rest steht bereits im Layout (kein Sprung), nur blass. */
.wz .wz-tw-ghost,
.wz .wz-tw-ghost * { color: var(--wf-tw-ghost); }
/* Cursor ohne eigene Breite (leeres Inline-Element → kein zusätzlicher Umbruchpunkt). */
.wz .wz-tw-caret { position: relative; }
.wz .wz-tw-caret::after {
    content: "";
    position: absolute;
    left: 0;
    top: .1em;
    width: 2.5px;
    height: calc(1em * 1.117 + 2px);
    border-radius: 1px;
    background: var(--wf-kupfer);
}
.wz .wz-title .wz-tw-caret::after { height: 32px; top: 0; }
.wz .wz-lead .wz-tw-caret::after { height: 19px; }

.wz .wz-skip {
    position: absolute;
    right: 0;
    bottom: 0;
    font-size: 12.5px;
    line-height: 21px;
    font-weight: 600;
    color: var(--wf-petrol);
    text-decoration: underline;
    text-underline-offset: 2px;
    white-space: nowrap;
}
.wz .wz-skip:hover { color: var(--wf-petrol-dark); }

.wz .wz-stepbody { margin-top: 28px; }
.wz .wz-errors { margin-top: 16px; }

/* =========================================================================
   7. Felder, Fehler am Feld, Hilfetexte, Sammelhinweis
   ========================================================================= */

.wz .wz-field { position: relative; min-width: 0; margin: 0; padding: 0; border: 0; }
.wz .wz-field + .wz-field { margin-top: 20px; }
.wz .wz-label-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin: 0 0 6px;
    padding: 0;
}
.wz .wz-label {
    display: block;
    margin: 0;
    padding: 0;
    font-size: 13.5px;
    line-height: 18px;
    font-weight: 600;
    color: var(--wf-text);
    cursor: default;
}
.wz label.wz-label { cursor: pointer; }
.wz .wz-req { color: var(--wf-text); }
.wz .wz-opt { flex: none; font-size: 12px; line-height: 16px; color: var(--wf-text-3); }

.wz .wz-input {
    display: block;
    width: 100%;
    height: 44px;
    margin: 0;
    padding: 0 14px;
    border: 1px solid var(--wf-input-line);
    border-radius: 8px;
    background: #fff;
    font-family: var(--wf-font);
    font-size: 15px;
    line-height: 20px;
    color: var(--wf-text);
    box-shadow: none;
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
    -webkit-appearance: none;
    appearance: none;
}
.wz .wz-input::placeholder { color: #8a949b; opacity: 1; }
.wz .wz-input:hover { border-color: #adb5bd; }
/* Fokus: 2 px Petrol + Halo (Innenkante per box-shadow, damit nichts springt) */
.wz .wz-input:focus,
.wz .wz-input:focus-visible {
    border-color: var(--wf-petrol);
    box-shadow: inset 0 0 0 1px var(--wf-petrol), 0 0 0 3px var(--wf-halo-focus);
    outline: none;
}
.wz .wz-field.is-invalid > .wz-input,
.wz .wz-field.is-invalid > .wz-money .wz-input,
.wz .wz-field.is-invalid > .wz-select-wrap .wz-input,
.wz .wz-field.is-invalid > .wz-pw .wz-input,
.wz .wz-input[aria-invalid="true"] {
    border-color: var(--wf-error);
    box-shadow: inset 0 0 0 1px var(--wf-error), 0 0 0 3px var(--wf-halo-error);
}
.wz .wz-input[type="date"] { padding-right: 10px; }
.wz .wz-input[type="date"]::-webkit-calendar-picker-indicator { opacity: .6; cursor: pointer; }

.wz .wz-textarea {
    height: auto;
    min-height: 120px;
    padding: 11px 14px;
    line-height: 21px;
    resize: vertical;
}

/* Betragsfeld mit Suffix (€, m², Jahre) */
.wz .wz-money { position: relative; }
.wz .wz-money.has-suffix .wz-input { padding-right: 44px; }
.wz .wz-suffix {
    position: absolute;
    right: 14px;
    top: 0;
    height: 44px;
    font-size: 15px;
    line-height: 44px;
    color: var(--wf-text-2);
    pointer-events: none;
}

/* Select mit eigenem Pfeil */
.wz .wz-select-wrap { position: relative; }
.wz .wz-select-wrap::after {
    content: "";
    position: absolute;
    right: 16px;
    top: 17px;
    width: 8px;
    height: 8px;
    border-right: 1.6px solid var(--wf-petrol);
    border-bottom: 1.6px solid var(--wf-petrol);
    transform: rotate(45deg);
    pointer-events: none;
}
.wz .wz-select { padding-right: 40px; cursor: pointer; text-overflow: ellipsis; }

/* Passwort mit Anzeigen-Umschalter */
.wz .wz-pw { position: relative; }
.wz .wz-pw .wz-input { padding-right: 52px; }
.wz .wz-pw-toggle {
    position: absolute;
    right: 2px;
    top: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 40px;
    border-radius: 6px;
}
.wz .wz-pw-toggle:hover { background: var(--wf-surface); }
.wz-eye { fill: none; stroke: var(--wf-text-2); stroke-width: 1.5; }
.wz .wz-pw-toggle[aria-pressed="true"] .wz-eye { stroke: var(--wf-petrol); }
.wz .wz-eye-slash {
    position: absolute;
    width: 22px;
    height: 1.6px;
    background: var(--wf-petrol);
    transform: rotate(-35deg);
}

/* Fehler direkt am Feld: Icon + Text, 18 px unter dem Feld (Baseline) */
.wz .wz-err {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin: 7px 0 0;
    padding: 0;
    font-size: 12.5px;
    line-height: 16px;
    font-weight: 600;
    color: var(--wf-error);
}
.wz .wz-err .wz-erricon { margin-top: 1px; }
.wz .wz-help-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-top: 6px;
}
.wz .wz-err + .wz-help-row { margin-top: 12px; }
.wz .wz-help {
    margin: 0;
    padding: 0;
    font-size: 12.5px;
    line-height: 16px;
    color: var(--wf-text-2);
}
.wz .wz-counter {
    flex: none;
    margin-left: auto;
    font-size: 12.5px;
    line-height: 16px;
    color: var(--wf-text-3);
    font-variant-numeric: tabular-nums;
}

/* Sammelhinweis (≥ 2 Fehler nach „Weiter“) */
.wz .wz-summary {
    margin: 0 0 20px;
    padding: 14px 18px 14px 20px;
    border: 1px solid #f1c9ce;
    border-left: 4px solid var(--wf-error);
    border-radius: 8px;
    background: var(--wf-error-bg);
}
.wz .wz-summary-title {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0;
    font-size: 14px;
    line-height: 19px;
    font-weight: 700;
    color: var(--wf-error);
}
.wz .wz-summary-title .wz-erricon { margin-top: 2px; }
.wz .wz-summary-list { margin: 6px 0 0; padding: 0 0 0 22px; list-style: none; }
.wz .wz-summary-list li { margin: 0; padding: 2px 0; list-style: none; }
.wz .wz-summary-link {
    font-size: 13px;
    line-height: 18px;
    color: var(--wf-text);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.wz .wz-summary-link:hover { color: var(--wf-error); }

/* Layout-Hilfen */
.wz .wz-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 24px;
    align-items: start;
}
.wz .wz-grid-2 > .wz-field + .wz-field { margin-top: 0; }
.wz .wz-card {
    display: block;
    margin: 0;
    padding: 20px 24px 24px;
    border: 1px solid var(--wf-line);
    border-radius: 10px;
    background: #fff;
}
.wz .wz-card-title {
    margin: 0;
    padding: 0;
    font-family: var(--wf-font);
    font-size: 15px;
    line-height: 20px;
    font-weight: 700;
    color: var(--wf-text);
    letter-spacing: 0;
    text-transform: none;
}
.wz .wz-card-sub {
    margin: 4px 0 0;
    padding: 0;
    font-size: 13px;
    line-height: 18px;
    color: var(--wf-text-2);
}
.wz .wz-section-title {
    margin: 0;
    padding: 0;
    font-size: 14px;
    line-height: 19px;
    font-weight: 700;
    color: var(--wf-text);
}
.wz .wz-link {
    color: var(--wf-petrol);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.wz .wz-link:hover { color: var(--wf-petrol-dark); }

/* Hinweis „Gut zu wissen“ (wie .wf-note: Kupferkante 4 px) */
.wz .wz-note {
    position: relative;
    margin: 16px 0 0;
    padding: 14px 22px 14px 22px;
    border-radius: 8px;
    background: var(--wf-surface);
    font-size: 13.5px;
    line-height: 19px;
}
.wz .wz-note::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    border-radius: 2px;
    background: var(--wf-kupfer);
}
.wz .wz-note-title { margin: 0; padding: 0; font-weight: 700; color: var(--wf-text); }
.wz .wz-note-text { margin: 4px 0 0; padding: 0; max-width: 560px; color: var(--wf-text-2); }
.wz .wz-note-title + .wz-note-text { margin-top: 4px; }
.wz .wz-note-text:first-child { margin-top: 0; }
.wz .wz-pre { white-space: pre-line; }
.wz .wz-note--inline { margin-top: 12px; }

/* =========================================================================
   8. Auswahlen: Checkbox-Karten, Einverständnis, Segment, Radio-Karten
   ========================================================================= */

/* native Eingabe visuell versteckt, aber fokussierbar (Tastatur/Screenreader) */
.wz .wz-native {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    padding: 0;
    opacity: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    pointer-events: none;
}

.wz .wz-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 12px;
    margin: 0;
}
.wz .wz-card-opt {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 52px;
    margin: 0;
    padding: 12px 16px 12px 14px;
    border: 1px solid var(--wf-line);
    border-radius: 8px;
    background: #fff;
    font-size: 14px;
    line-height: 19px;
    font-weight: 400;
    color: var(--wf-text);
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease;
}
.wz .wz-card-opt:hover { border-color: #adb5bd; }
.wz .wz-card-opt.is-checked {
    border-color: var(--wf-petrol);
    background: var(--wf-petrol-tint);
}
.wz .wz-card-opt.is-disabled { cursor: not-allowed; color: #98a2a9; background: #fff; }
.wz .wz-card-opt.is-disabled .wz-box { border-color: var(--wf-input-line); }
.wz .wz-box {
    position: relative;
    flex: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--wf-petrol);
    border-radius: 4px;
    background: #fff;
}
.wz-box-check {
    position: absolute;
    left: -2px;
    top: -2px;
    display: none;
    fill: none;
    stroke: #fff;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.wz .wz-card-opt.is-checked .wz-box { background: var(--wf-petrol); }
.wz .wz-card-opt.is-checked .wz-box-check { display: block; }
.wz .wz-card-text { min-width: 0; }
.wz .wz-card-opt:has(.wz-native:focus-visible),
.wz .wz-rcard:has(.wz-native:focus-visible) { outline: var(--wf-focus); outline-offset: 2px; }
.wz .wz-native:focus-visible + .wz-box,
.wz .wz-native:focus-visible + .wz-radio { outline: var(--wf-focus); outline-offset: 2px; }
.wz .wz-field.is-invalid .wz-card-opt:not(.is-checked) { border-color: var(--wf-error); }

/* Schritt 1: Fakten, Aufklapper, Einverständnis */
.wz .wz-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.wz .wz-fact {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    min-height: 64px;
    margin: 0;
    padding: 15px 14px 12px 15px;
    border-radius: 10px;
    background: var(--wf-surface);
    list-style: none;
}
.wz-minichk { flex: none; margin-top: 0; }
.wz-minichk circle { fill: var(--wf-petrol); }
.wz-minichk path { fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.wz .wz-fact-body { display: flex; flex-direction: column; min-width: 0; }
.wz .wz-fact-title { font-size: 14px; line-height: 18px; font-weight: 700; color: var(--wf-text); }
.wz .wz-fact-text { margin-top: 2px; font-size: 12.5px; line-height: 16px; color: var(--wf-text-2); }

.wz .wz-more { margin-top: 18px; }
.wz .wz-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    line-height: 20px;
    font-weight: 600;
    color: var(--wf-petrol);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.wz .wz-more-btn:hover { color: var(--wf-petrol-dark); }
.wz-chevron { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s ease; }
.wz .wz-more-btn[aria-expanded="true"] .wz-chevron { transform: rotate(180deg); }
.wz .wz-more-panel {
    max-width: 660px;
    margin-top: 10px;
    font-size: 14px;
    line-height: 20px;
    color: var(--wf-text-2);
}
.wz .wz-more-panel a { color: var(--wf-petrol); font-weight: 600; text-decoration: underline; }

.wz .wz-consent { margin-top: 24px; padding: 20px 24px 18px; }
.wz .wz-consent .wz-field { margin-top: 0; }
.wz .wz-consent .wz-field:first-of-type { margin-top: 16px; }
.wz .wz-consent .wz-field + .wz-field { margin-top: 8px; }
.wz .wz-cards--rows { grid-template-columns: minmax(0, 1fr); gap: 8px; }
.wz .wz-cards--rows .wz-card-opt {
    min-height: 38px;
    padding: 9px 14px 9px 13px;
    border-color: var(--wf-input-line);
    gap: 12px;
}
.wz .wz-cards--rows .wz-card-opt.is-checked { border-color: var(--wf-petrol); }
.wz .wz-cards--rows .wz-card-opt .wz-box { width: 18px; height: 18px; margin: 0 1px; }
.wz .wz-cards--rows .wz-card-opt.is-checked .wz-box { width: 20px; height: 20px; margin: 0; }
.wz .wz-cards--rows .wz-card-text { font-size: 14px; line-height: 19px; }

/* Segment-Schalter (Ja/Nein, kurze Folgefragen) */
.wz .wz-segment {
    display: flex;
    gap: 0;
    height: 40px;
    padding: 2px;
    border: 1px solid var(--wf-input-line);
    border-radius: 8px;
    background: var(--wf-surface);
}
.wz .wz-segment-opt {
    position: relative;
    display: flex;
    flex: 1 1 0;
    align-items: center;
    justify-content: center;
    min-width: 0;
    height: 34px;
    margin: 0;
    padding: 0 10px;
    border-radius: 6px;
    font-size: 14px;
    line-height: 18px;
    font-weight: 400;
    color: var(--wf-text-2);
    cursor: pointer;
    white-space: nowrap;
    transition: background-color .15s ease, color .15s ease;
}
.wz .wz-segment-opt:hover { color: var(--wf-text); }
.wz .wz-segment-opt.is-on { background: var(--wf-petrol); color: #fff; font-weight: 600; }
.wz .wz-segment-opt.is-disabled { cursor: not-allowed; color: #98a2a9; }
.wz .wz-segment-opt.is-on.is-disabled { background: #9fb9be; color: #fff; }
.wz .wz-segment-opt:has(.wz-native:focus-visible) { outline: var(--wf-focus); outline-offset: 1px; }
.wz .wz-field.is-invalid .wz-segment { border-color: var(--wf-error); }

/* Radio-Karten (lange Labels) */
.wz .wz-rcards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 8px 12px;
}
.wz .wz-rcard {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    margin: 0;
    padding: 10px 14px;
    border: 1px solid var(--wf-line);
    border-radius: 8px;
    background: #fff;
    font-size: 14px;
    line-height: 19px;
    font-weight: 400;
    color: var(--wf-text);
    cursor: pointer;
}
.wz .wz-rcard:hover { border-color: #adb5bd; }
.wz .wz-rcard.is-on { border-color: var(--wf-petrol); background: var(--wf-petrol-tint); }
.wz .wz-radio {
    position: relative;
    flex: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--wf-petrol);
    border-radius: 50%;
    background: #fff;
}
.wz .wz-rcard.is-on .wz-radio::after {
    content: "";
    position: absolute;
    left: 3px;
    top: 3px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--wf-petrol);
}
.wz .wz-field.is-invalid .wz-rcard:not(.is-on) { border-color: var(--wf-error); }

.wz .wz-followups { margin-top: 24px; }
.wz .wz-followups > .wz-note { margin: 0 0 20px; }

/* =========================================================================
   9. Namen/Kinder, Kinderalter, Vermögenskarten, Immobilien, Summe
   ========================================================================= */

.wz .wz-divider { height: 1px; margin: 24px 0 16px; background: var(--wf-line); }
.wz .wz-names { padding-bottom: 16px; }
.wz .wz-children-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 20px;
    margin: 0 0 12px;
    padding: 0;
}
.wz .wz-child-list { margin: 0; padding: 0; list-style: none; }
.wz .wz-child {
    display: flex;
    gap: 12px;
    margin: 0 0 8px;
    padding: 0;
    list-style: none;
}
.wz .wz-prefixed {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    min-width: 0;
    height: 44px;
    border: 1px solid var(--wf-input-line);
    border-radius: 8px;
    background: #fff;
}
.wz .wz-prefixed:focus-within {
    border-color: var(--wf-petrol);
    box-shadow: inset 0 0 0 1px var(--wf-petrol), 0 0 0 3px var(--wf-halo-focus);
}
.wz .wz-prefix {
    flex: none;
    margin: 0;
    padding: 0 0 0 14px;
    font-size: 13px;
    line-height: 18px;
    font-weight: 400;
    color: var(--wf-text-3);
    white-space: nowrap;
    cursor: text;
}
.wz .wz-input--bare,
.wz .wz-input--bare:focus,
.wz .wz-input--bare:hover {
    flex: 1 1 auto;
    min-width: 0;
    height: 42px;
    padding: 0 14px 0 14px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    box-shadow: none;
}
.wz .wz-icon-btn {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--wf-line);
    border-radius: 8px;
    background: #fff;
}
.wz .wz-icon-btn:hover { border-color: #adb5bd; background: var(--wf-surface); }
.wz-trash { fill: none; stroke: var(--wf-text-2); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.wz .wz-icon-btn:hover .wz-trash { stroke: var(--wf-error); }
.wz .wz-child-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.wz .wz-child-list + .wz-child-actions { margin-top: 4px; }

/* Pill-Buttons (Outline 1,5 px Petrol) */
.wz .wz-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 34px;
    padding: 0 26px;
    border: 1.5px solid var(--wf-petrol);
    border-radius: 17px;
    background: #fff;
    font-size: 13px;
    line-height: 18px;
    font-weight: 600;
    color: var(--wf-petrol);
    white-space: nowrap;
}
.wz .wz-pill:hover { background: var(--wf-petrol-tint); color: var(--wf-petrol-dark); }
.wz .wz-pill--sm { height: 30px; padding: 0 20px; border-radius: 15px; }

/* Schritt 6: Kinderalter */
.wz .wz-ages { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--wf-line); }
.wz .wz-ages .wz-section-title { margin-bottom: 14px; }

/* Schritt 7: Vermögen */
.wz .wz-assets-cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.wz .wz-assets--married .wz-assets-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
.wz .wz-person { padding: 20px; }
.wz .wz-person-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin: 0 0 20px;
}
.wz .wz-person-name {
    min-width: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    font-family: var(--wf-font);
    font-size: 15px;
    line-height: 20px;
    font-weight: 700;
    color: var(--wf-text);
    text-overflow: ellipsis;
    white-space: nowrap;
    letter-spacing: 0;
    text-transform: none;
}
.wz .wz-person-role { flex: none; font-size: 12px; line-height: 16px; color: var(--wf-text-3); }
.wz .wz-person-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.wz .wz-person-grid > .wz-field + .wz-field { margin-top: 0; }
.wz .wz-person-grid + .wz-person-grid,
.wz .wz-person-grid + .wz-estates,
.wz .wz-estates + .wz-person-grid { margin-top: 20px; }
.wz .wz-assets--single .wz-person-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; }
.wz .wz-assets--single .wz-person { padding: 20px 24px 24px; }
.wz .wz-person-hint {
    max-width: 290px;
    margin: 28px 0 0;
    padding: 0;
    font-size: 13px;
    line-height: 19px;
    color: var(--wf-text-2);
}

.wz .wz-re-list { margin: 0; padding: 0; list-style: none; }
.wz .wz-re { margin: 0 0 8px; padding: 0; list-style: none; }
.wz .wz-re-row {
    display: flex;
    align-items: center;
    height: 40px;
    padding: 0 4px 0 14px;
    border: 1px solid var(--wf-line);
    border-radius: 8px;
    background: var(--wf-surface);
}
.wz .wz-re-amount {
    flex: none;
    min-width: 96px;
    padding-right: 10px;
    font-size: 14px;
    line-height: 18px;
    font-weight: 600;
    color: var(--wf-text);
    white-space: nowrap;
}
.wz .wz-re-meta {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    font-size: 13px;
    line-height: 18px;
    color: var(--wf-text-2);
    text-overflow: ellipsis;
    white-space: nowrap;
}
.wz .wz-re-editbtn {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 6px;
}
.wz .wz-re-editbtn:hover { background: #fff; }
.wz-pencil { fill: none; stroke: var(--wf-petrol); stroke-width: 1.5; stroke-linejoin: round; }
.wz .wz-re-panel {
    padding: 14px;
    border: 1px solid var(--wf-line);
    border-radius: 8px;
    background: var(--wf-surface);
}
.wz .wz-re-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.wz .wz-re-grid > .wz-field + .wz-field { margin-top: 0; }
.wz .wz-re-panel .wz-re-usage { margin-top: 14px; }
.wz .wz-re-panel .wz-rcards { grid-template-columns: minmax(0, 1fr); gap: 6px; }
.wz .wz-re-panel .wz-rcard { min-height: 40px; padding: 8px 12px; }
.wz .wz-re-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 14px; }
.wz .wz-assets--single .wz-re-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 20px; }
.wz .wz-assets--single .wz-re-panel .wz-rcards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.wz .wz-estates .wz-re-list + .wz-pill { margin-top: 4px; }

/* Summenleiste (verheiratet) */
.wz .wz-sum {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    min-height: 56px;
    margin-top: 20px;
    padding: 8px 22px 8px 22px;
    border-radius: 8px;
    background: var(--wf-surface);
}
.wz .wz-sum::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    border-radius: 2px;
    background: var(--wf-petrol);
}
.wz .wz-sum-label { font-size: 15px; line-height: 20px; font-weight: 600; color: var(--wf-text); }
.wz .wz-sum-value { flex: none; font-size: 20px; line-height: 26px; font-weight: 700; color: var(--wf-petrol); font-variant-numeric: tabular-nums; }
.wz .wz-assets > .wz-field { margin-top: 20px; }
.wz .wz-assets > .wz-sum + .wz-note { margin-top: 16px; }

/* =========================================================================
   10. Navigation (Desktop: sticky im Scroll-Container)
   ========================================================================= */

.wz .wz-body { margin: 0; }
.wz .wz-nav {
    position: sticky;
    bottom: 0;
    z-index: 3;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-top: 32px;
    padding: 19px 48px 22px;
    border-top: 1px solid var(--wf-line);
    background: #fff;
}
.wz:not(.wz--modal) .wz-nav { border-radius: 0 0 14px 14px; }
.wz .wz-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    text-align: center;
    text-decoration: none;
    transition: background-color .15s ease, color .15s ease;
}
.wz .wz-btn--back {
    min-width: 132px;
    height: 44px;
    padding: 0 22px;
    border: 1.5px solid var(--wf-petrol);
    border-radius: 22px;
    background: #fff;
    color: var(--wf-petrol);
    font-size: 14px;
    line-height: 20px;
    font-weight: 600;
}
.wz .wz-btn--back:hover,
.wz .wz-btn--back:focus {
    background: var(--wf-petrol-tint);
    color: var(--wf-petrol-dark);
}
.wz .wz-chev { margin-right: 3px; }
/* Nach „Ändern“: „Weiter ›“ zur nächsten Frage im Kapitel (Primär bleibt „Zur Übersicht“) */
.wz .wz-btn--next {
    height: 44px;
    margin-left: auto;
    padding: 0 22px;
    border: 1.5px solid var(--wf-petrol);
    border-radius: 22px;
    background: #fff;
    color: var(--wf-petrol);
    font-size: 14px;
    line-height: 20px;
    font-weight: 600;
}
.wz .wz-btn--next:hover,
.wz .wz-btn--next:focus { background: var(--wf-petrol-tint); color: var(--wf-petrol-dark); }
.wz .wz-btn--next + .wz-btn--primary { margin-left: 0; }
.wz .wz-chev--r { margin: 0 0 0 5px; }
.wz .wz-chev-svg { display: none; }
.wz-chev-svg path { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.wz .wz-btn--primary {
    min-width: 150px;
    height: 48px;
    margin-left: auto;
    padding: 0 28px;
    border-radius: 24px;
    background: var(--wf-petrol);
    color: #fff;
    font-size: 15.5px;
    line-height: 20px;
    font-weight: 700;
}
.wz .wz-btn--primary.wz-btn--start { min-width: 170px; }
.wz .wz-btn--primary.wz-btn--create { min-width: 230px; }
.wz .wz-btn--primary:hover,
.wz .wz-btn--primary:focus {
    background: var(--wf-petrol-dark);
    color: #fff;
}
.wz .wz-btn--primary:disabled { cursor: progress; }
.wz .wz-spinner { display: none; }
.wz .wz-btn[aria-busy="true"] .wz-spinner {
    display: inline-block;
    flex: none;
    width: 16px;
    height: 16px;
    margin-right: 10px;
    border: 2px solid rgba(255, 255, 255, .45);
    border-top-color: #fff;
    border-radius: 50%;
    animation: wz-spin .8s linear infinite;
}
@keyframes wz-spin { to { transform: rotate(360deg); } }

/* =========================================================================
   11. Übersicht (Review) + Vertrauensleiste
   ========================================================================= */

.wz .wz-review { margin-top: 21.6px; }
/* Lead der Übersicht umbricht wie im Mockup (≈ 520 px) */
.wz--review .wz-lead { max-width: 520px; }
.wz .wz-review-error { margin: 0 0 12px; }
.wz .wz-review-error:focus { outline: none; }
.wz .wz-rv-card {
    position: relative;
    padding: 15px 19px 3px 43px;
}
.wz .wz-rv-card + .wz-rv-card { margin-top: 12px; }
.wz .wz-rv-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}
.wz .wz-rv-title {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    min-width: 0;
    margin: 0;
    padding: 0;
    font-family: var(--wf-font);
    font-size: 15px;
    line-height: 20px;
    font-weight: 700;
    color: var(--wf-text);
    letter-spacing: 0;
    text-transform: none;
}
/* Mini-Haken bei (26/25) ab Kartenkante – absolute Werte relativ zur Innenkante (Rand 1 px) */
.wz .wz-rv-title > svg { position: absolute; left: 16px; top: 15px; }
.wz .wz-rv-title > .wz-erricon { left: 18px; top: 17px; }
.wz .wz-rv-status { font-size: 12.5px; font-weight: 600; color: var(--wf-error); }
.wz .wz-rv-edit {
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: 5px;
    margin: -12px -8px -12px 0;
    padding: 12px 8px;
    font-size: 13.5px;
    line-height: 20px;
    font-weight: 700;
    color: var(--wf-petrol);
}
.wz .wz-rv-edit-text { text-decoration: underline; text-underline-offset: 2px; }
.wz .wz-rv-edit:hover { color: var(--wf-petrol-dark); }
.wz .wz-pencil-ico { flex: none; margin-top: -1px; }
.wz .wz-rv-rows { margin: 4px 0 0; padding: 0; }
.wz .wz-rv-row {
    display: grid;
    grid-template-columns: 156px minmax(0, 1fr);
    margin: 0;
    padding: 0;
    font-size: 13.5px;
    line-height: 24px;
}
.wz .wz-rv-label { margin: 0; padding: 0 12px 0 0; font-weight: 400; color: var(--wf-text-2); }
.wz .wz-rv-value { margin: 0; padding: 0; color: var(--wf-text); overflow-wrap: anywhere; }
.wz .wz-rv-note {
    margin: 14.6px 0 0;
    padding: 0;
    font-size: 12.5px;
    line-height: 16px;
    color: var(--wf-text-2);
}
.wz--review .wz-nav { margin-top: 47.4px; padding-bottom: 16px; }

/* Vertrauensleiste wie im Abschluss-Popup (Spalten 216/190/auto, Mockup-Positionen x 268/458); „Verschlüsselt“ nur bei HTTPS */
.wz .wz-trust {
    display: grid;
    grid-template-columns: 216px 190px auto;
    height: 66px;
    padding: 13px 0 0 52px;
    border-top: 1px solid var(--wf-line);
    font-size: 12.5px;
    line-height: 16px;
    color: var(--wf-text-2);
}
.wz .wz-trust-item { display: flex; align-items: flex-start; gap: 8px; white-space: nowrap; }
.wz .wz-trust-item > .wf-ico { margin-top: -1.6px; }
.wz .wz-trust-item:first-child:nth-last-child(2) { grid-column: 2; }
.wz .wz-trust-item:last-child { grid-column: 3; gap: 7px; }
.wz .wz-trust a { color: var(--wf-petrol); text-decoration: underline; text-underline-offset: 2px; }
.wz .wz-trust a:hover { color: var(--wf-petrol-dark); }
.wz:not(.wz--modal) .wz-trust { border-radius: 0 0 14px 14px; }
.wz--review:not(.wz--modal) .wz-nav { border-radius: 0; }

/* =========================================================================
   12. Responsive
   ========================================================================= */

/* Zwischenbreiten: Timeline schrumpft mit, Labels dürfen umbrechen. */
@media (max-width: 767.98px) {
    .wz .wz-progress { padding-left: 24px; padding-right: 24px; }
    .wz .wz-content { padding-left: 24px; padding-right: 24px; }
    .wz .wz-nav { padding-left: 24px; padding-right: 24px; }
    .wz-tl-wrap { max-width: none; }
    .wz-tl-label { font-size: 13px; line-height: 17px; white-space: normal; }
    .wz-tl-sub { white-space: normal; }
    .wz .wz-head-tools { right: 60px; }
    /* Felder: Fakten und Vermögenskarten einspaltig, damit nichts gequetscht wird */
    .wz .wz-facts { grid-template-columns: minmax(0, 1fr); gap: 8px; }
    .wz .wz-fact { min-height: 0; }
    .wz .wz-assets--married .wz-assets-cards { grid-template-columns: minmax(0, 1fr); }
    .wz .wz-assets--single .wz-re-panel .wz-rcards { grid-template-columns: minmax(0, 1fr); }
}

/* Mobil: Kompaktkopf 48 px, Segmentbalken statt Timeline, kein Kicker. */
@media (max-width: 575.98px) {
    .wz::before { display: none; }
    .wz .wz-lg { display: none; }
    .wz .wz-sm { display: inline; }

    .wz .wz-head {
        height: calc(48px + env(safe-area-inset-top, 0px));
        padding-top: env(safe-area-inset-top, 0px);
    }
    .wz .wz-head .wf-logo {
        left: 5px;
        top: env(safe-area-inset-top, 0px);
        height: 48px;
    }
    .wz .wz-head-tools { display: none; }
    .wz .wz-lang-m { display: inline-flex; }
    .wz .wz-close {
        right: 9px;
        top: calc(10px + env(safe-area-inset-top, 0px));
        font-size: 20px;
    }

    .wz .wz-progress { display: none; }
    .wz .wz-mprog {
        display: block;
        height: 74px;
        padding: 11px 20px 0;
        border-bottom: 1px solid var(--wf-line);
    }

    .wz .wz-content { padding: 9.7px 20px 0; }
    .wz .wz-kicker { display: none; }
    .wz .wz-title { margin-top: 0; font-size: 21px; line-height: 26px; }
    .wz-lead-wrap { margin-top: 6px; }
    .wz .wz-lead, .wz .wz-lead-rest { font-size: 14px; line-height: 19px; }
    .wz .wz-title .wz-tw-caret::after { height: 24px; }
    .wz .wz-lead .wz-tw-caret::after { height: 16px; }
    .wz .wz-skip { display: none; }
    .wz .wz-lead { max-width: none; }
    .wz .wz-stepbody { margin-top: 24px; }

    /* Felder einspaltig, Karten ohne Rahmen-Innenabstand-Verschwendung */
    .wz .wz-grid-2,
    .wz .wz-cards,
    .wz .wz-assets--single .wz-person-grid,
    .wz .wz-assets--single .wz-re-grid { grid-template-columns: minmax(0, 1fr); }
    .wz .wz-card { padding: 16px; }
    .wz .wz-person { padding: 16px; }
    .wz .wz-label { font-size: 13px; }
    .wz .wz-child .wz-prefixed { height: 42px; }
    .wz .wz-child .wz-icon-btn { width: 42px; height: 42px; }
    .wz .wz-child-actions { gap: 8px 16px; }
    .wz .wz-child-actions .wz-pill {
        height: auto;
        padding: 4px 0;
        border: 0;
        border-radius: 0;
        background: none;
        font-weight: 700;
    }
    .wz .wz-sum { padding: 8px 16px 8px 18px; }
    .wz .wz-sum-label { font-size: 14px; }
    .wz .wz-sum-value { font-size: 18px; }

    .wz .wz-nav {
        gap: 12px;
        padding: 16px 20px calc(16px + env(safe-area-inset-bottom, 0px));
    }
    .wz .wz-btn--back {
        flex: none;
        width: 48px;
        min-width: 48px;
        height: 48px;
        padding: 0;
        border-radius: 24px;
        font-size: 22px;
    }
    .wz .wz-btn--back .wz-chev { margin: -2px 1px 0 0; }
    .wz .wz-btn--back .wz-btn-label {
        position: absolute;
        width: 1px;
        height: 1px;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
    }
    .wz .wz-btn--primary,
    .wz .wz-btn--primary.wz-btn--start,
    .wz .wz-btn--primary.wz-btn--create {
        flex: 1 1 auto;
        min-width: 0;
        padding: 0 16px;
    }
}

/* Mobil (Etappe C): Vollbild-Sheet (Regeln aus wizard-finish.css übernommen, nur Wizard-Zustand),
   Navigation fixiert über der Tastatur (--wz-kb aus visualViewport), Kapitel-Sheet, Übersicht. */
@media (max-width: 575.98px) {
    #wizardModal.wz-modal:not(.wf-finalizing) .modal-dialog {
        max-width: 100%;
        width: 100%;
        height: 100vh;
        height: 100dvh;
        min-height: 100vh;
        min-height: 100dvh;
        max-height: none;
        margin: 0;
        align-items: stretch;
    }
    #wizardModal.wz-modal:not(.wf-finalizing) .modal-dialog-centered::before { display: none; }
    #wizardModal.wz-modal:not(.wf-finalizing) .modal-content {
        height: 100%;
        min-height: 100vh;
        min-height: 100dvh;
        max-height: none;
        border-radius: 0;
        box-shadow: none;
    }
    #wizardModal.wz-modal:not(.wf-finalizing) .modal-body {
        flex: 1 1 auto;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        /* fokussierte Felder nicht unter der fixierten Navigation verstecken */
        scroll-padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px) + var(--wz-kb, 0px));
    }
    .wz { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
    .wz:not(.wz--modal) { border-radius: 0; box-shadow: none; }

    .wz .wz-nav,
    .wz--review .wz-nav {
        position: fixed;
        left: 0;
        right: 0;
        bottom: var(--wz-kb, 0px);
        z-index: 5;
        box-sizing: border-box;
        height: calc(80px + env(safe-area-inset-bottom, 0px));
        margin: 0;
        padding: 15px 20px calc(16px + env(safe-area-inset-bottom, 0px));
        border-radius: 0;
    }
    .wz .wz-nav { gap: 10px; }
    /* Karten mobil flach wie im Mockup (Felder in voller Breite); Personen- und Übersichtskarten behalten den Rahmen */
    .wz .wz-card:not(.wz-person):not(.wz-rv-card),
    .wz .wz-assets--single .wz-person { padding: 0; border: 0; border-radius: 0; }
    .wz .wz-btn--back .wz-chev { display: none; }
    .wz .wz-btn--next { flex: none; height: 48px; padding: 0 16px; border-radius: 24px; }
    .wz .wz-btn--back .wz-chev-svg { display: block; margin-left: -2px; }

    /* Summenleiste (verheiratet) bleibt über der Navigation sichtbar */
    .wz .wz-sum {
        position: sticky;
        bottom: calc(80px + env(safe-area-inset-bottom, 0px) + var(--wz-kb, 0px) + 8px);
        z-index: 2;
        box-shadow: 0 0 0 8px #fff;
    }

    /* Kapitel-Navigator als Bottom-Sheet: Backdrop unter dem Kompaktkopf, Sheet unten verankert */
    .wz .wz-sheet-layer {
        position: fixed;
        top: calc(48px + env(safe-area-inset-top, 0px));
    }
    .wz:not(.wz--modal) .wz-sheet-backdrop { border-radius: 0; }
    .wz .wz-allch--d { display: none; }
    .wz .wz-sheet {
        top: auto;
        left: 0;
        right: 0;
        bottom: 0;
        max-height: calc(100% - 24px);
        border: 0;
        border-radius: 18px 18px 0 0;
        box-shadow: 0 -8px 28px rgba(11, 42, 48, .14);
        animation: wz-sheet-in .2s ease-out;
    }
    .wz .wz-sheet-grip {
        display: block;
        flex: none;
        width: 40px;
        height: 4px;
        margin: 10px auto 0;
        border-radius: 2px;
        background: var(--wf-ring-pending);
    }
    .wz .wz-sheet-head {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 14px 20px 14px;
    }
    .wz .wz-sheet-total { flex-direction: row; align-items: center; gap: 12px; width: auto; }
    .wz .wz-sheet-total-text { flex: none; order: 2; }
    .wz .wz-sheet-total-bar { flex: 1 1 auto; order: 1; }
    .wz .wz-sheet-foot {
        padding: 12px 20px calc(16px + env(safe-area-inset-bottom, 0px));
        background: #fff;
    }
    .wz .wz-sheet .wz-sheet-done {
        display: flex;
        width: 100%;
        height: 48px;
        border-radius: 24px;
        font-size: 15.5px;
    }
    .wz .wz-nv-toggle { padding: 10px 20px; }
    .wz .wz-nv-q { padding: 7px 20px 7px 23px; }
    .wz .wz-nv-subwrap { margin: 2px 20px 6px 31px; padding-left: 19px; }

    /* Übersicht: Zeilen untereinander (Label über Wert), Karten mit 16 px Innenabstand */
    .wz .wz-review { margin-top: 18px; }
    .wz .wz-rv-card { padding: 13px 15px 9px 41px; }
    .wz .wz-rv-title > svg { left: 13px; top: 13px; }
    .wz .wz-rv-title > .wz-erricon { left: 15px; top: 15px; }
    .wz .wz-rv-row { display: block; padding: 3px 0; line-height: 19px; }
    .wz .wz-rv-label { padding: 0; font-size: 12.5px; line-height: 17px; }
    .wz .wz-rv-rows { margin-top: 6px; }
    .wz .wz-trust {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px 20px;
        height: auto;
        margin-top: 20px;
        padding: 14px 20px 0;
        font-size: 12px;
    }
}

/* =========================================================================
   13. Reduced Motion
   ========================================================================= */

@media (prefers-reduced-motion: reduce) {
    .wz-tl-fill, .wz-bar-fill, .wz .wz-btn,
    .wz .wz-input, .wz .wz-card-opt, .wz .wz-segment-opt, .wz-chevron { transition: none; }
    .wz .wz-btn[aria-busy="true"] .wz-spinner { animation: none; border-top-color: rgba(255, 255, 255, .45); }
    .wz .wz-sheet { animation: none; }
    .wz .wz-allch .wz-chevron { transition: none; }
    .wz .wz-nv-chev, .wz .wz-nv-toggle, .wz .wz-nv-q, .wz .wz-nv-sub { transition: none; }
}
