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

/*
 * Wizard-Abschluss im Signature-Wealth-Look:
 *   1. Abschluss-Popup (.wf, eingebettet in #wizardModal bzw. inline in wizard/form.php)
 *   2. Danke-Seite (.wf-page, advisoryflow/thankyou)
 * Maße/Farben nach docs/proposals/img/*-soll*.svg. Alle Selektoren sind mit .wf / .wf-page
 * bzw. #wizardModal.wf-finalizing gescoped (globale button-/a-Regeln werden zurückgesetzt).
 */

:root {
    --wf-petrol: #217a8a;
    --wf-petrol-dark: #1b6573;
    --wf-kupfer: #B5794F;
    --wf-kupfer-dark: #9e5f3c;
    --wf-kupfer-text: #8a5a38;
    --wf-text: #212529;
    --wf-text-2: #5b6770;
    --wf-text-3: #6c757d;
    --wf-line: #e9ecef;
    --wf-ring-pending: #ced4da;
    --wf-surface: #f8f9fa;
    --wf-page: #f4f6f7;
    --wf-warn-bg: #fbf6f2;
    --wf-warn-line: #ecd9cb;
    --wf-halo-active: rgba(181, 121, 79, .14);
    --wf-halo-ok: rgba(33, 122, 138, .12);
    --wf-shadow-modal-running: 0 12px 36px rgba(11, 42, 48, .28);
    --wf-shadow-modal-done: 0 10px 32px rgba(11, 42, 48, .25);
    --wf-shadow-card: 0 8px 28px rgba(11, 42, 48, .14);
    --wf-font: "Helvetica Neue", Arial, sans-serif;
    --wf-focus: 3px solid rgba(33, 122, 138, .35);
}

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

#wizardModal.wf-finalizing .modal-header { display: none; }
#wizardModal.wf-finalizing .modal-dialog {
    max-width: 760px;
    transition: max-width .25s ease;
}
#wizardModal.wf-finalizing.wf-state-done .modal-dialog,
#wizardModal.wf-finalizing.wf-state-error .modal-dialog { max-width: 545px; }
#wizardModal.wf-finalizing .modal-content {
    border: 0;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    box-shadow: var(--wf-shadow-modal-running);
}
#wizardModal.wf-finalizing.wf-state-done .modal-content,
#wizardModal.wf-finalizing.wf-state-error .modal-content { box-shadow: var(--wf-shadow-modal-done); }
#wizardModal.wf-finalizing .modal-body { padding: 0; overflow-x: hidden; }
#wizardModal.wf-finalizing #wizard-app > .container-fluid { padding: 0 !important; }

/* =========================================================================
   2. Popup – Basis
   ========================================================================= */

.wf {
    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;
}
.wf:not(.wf--modal) {
    max-width: 760px;
    margin: 0 auto;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--wf-shadow-modal-running);
}
.wf--done:not(.wf--modal),
.wf--restored-idle:not(.wf--modal),
.wf--error:not(.wf--modal) { max-width: 545px; box-shadow: var(--wf-shadow-modal-done); }

.wf::before {
    content: "";
    display: block;
    height: 4px;
    background: var(--wf-kupfer);
}
.wf *, .wf *::before, .wf *::after { box-sizing: border-box; }
:where(.wf) p, :where(.wf) h2, :where(.wf) ol, :where(.wf) ul, :where(.wf) li {
    margin: 0;
    padding: 0;
    list-style: none;
    font-family: inherit;
    text-transform: none;
}
.wf a { color: var(--wf-petrol); }
.wf a:hover { color: var(--wf-petrol-dark); }
.wf svg { overflow: visible; }

.wf-sm { display: none; }
.wf-line { display: block; }
.wf-sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* ---- Buttons (vollständiger Reset gegen globale button{}/.btn-Regeln) ---- */
.wf .wf-btn,
.wf .wf-close,
.wf .wf-linkbtn,
.wf-page .wf-btn {
    all: unset;
    box-sizing: border-box;
    cursor: pointer;
    font-family: var(--wf-font);
    -webkit-tap-highlight-color: transparent;
}
.wf .wf-btn,
.wf-page .wf-btn {
    display: block;
    width: 100%;
    height: 48px;
    border-radius: 24px;
    font-size: 15px;
    line-height: 48px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: background-color .15s ease, color .15s ease;
}
.wf .wf-btn--primary,
.wf-page .wf-btn--primary {
    background: var(--wf-petrol);
    color: #fff;
}
.wf .wf-btn--primary:hover,
.wf .wf-btn--primary:focus,
.wf-page .wf-btn--primary:hover,
.wf-page .wf-btn--primary:focus {
    background: var(--wf-petrol-dark);
    color: #fff;
    text-decoration: none;
}
.wf .wf-btn--outline {
    height: 44px;
    margin-top: 12px;
    border: 1.5px solid var(--wf-petrol);
    border-radius: 22px;
    background: #fff;
    color: var(--wf-petrol);
    font-size: 14px;
    line-height: 41px;
    font-weight: 600;
}
.wf .wf-btn--outline:hover,
.wf .wf-btn--outline:focus {
    background: #eef6f7;
    color: var(--wf-petrol-dark);
    text-decoration: none;
}
.wf .wf-btn:focus-visible,
.wf .wf-close:focus-visible,
.wf .wf-linkbtn:focus-visible,
.wf a:focus-visible,
.wf-page .wf-btn:focus-visible,
.wf-page a:focus-visible {
    outline: var(--wf-focus);
    outline-offset: 2px;
}
.wf [tabindex="-1"]:focus { outline: none; }

/* ---- Header ---- */
.wf-head {
    position: relative;
    height: 68px;
    padding: 25px 180px 0 70px;
    border-bottom: 1px solid var(--wf-line);
    font-size: 19px;
    line-height: 19px;
    white-space: nowrap;
}
/*
 * Logo: assets/img/sw-logo-200px.png (250x83, rundum transparenter Rand, Inhalt vertikal zentriert).
 * Höhe fest, Breite automatisch (Seitenverhältnis bleibt); left so gewählt, dass der sichtbare
 * Schriftzug dort beginnt, wo früher das Signet stand.
 */
.wf-logo {
    position: absolute;
    left: 16px;
    top: -3px;
    display: block;
    width: auto;
    max-width: none;
    height: 72px;
}
.wf .wf-secure {
    position: absolute;
    right: 48px;
    top: 28px;
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-size: 12px;
    line-height: 15px;
    color: var(--wf-text-2);
}
.wf-secure > span { padding-top: 1px; }
.wf-ico { flex: none; }
.wf-ico--lock rect { fill: var(--wf-petrol); }
.wf-ico--lock path { fill: none; stroke: var(--wf-petrol); stroke-width: 1.6; }
.wf-ico-fill { fill: var(--wf-petrol); }
.wf-ico-mark { fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.wf-ico--doc .wf-ico-mark { stroke-width: 1.3; stroke-linecap: butt; }
.wf .wf-close {
    position: absolute;
    right: 18px;
    top: 17.5px;
    width: 30px;
    height: 30px;
    border-radius: 15px;
    font-size: 22px;
    line-height: 30px;
    text-align: center;
    color: var(--wf-text-3);
}
.wf .wf-close:hover { color: var(--wf-text); background: var(--wf-surface); }

/* Header im Abschluss-/Fehlerzustand (Modal 545 px) */
.wf--done .wf-head,
.wf--restored-idle .wf-head,
.wf--error .wf-head {
    height: 64px;
    padding: 25px 60px 0 64px;
    font-size: 17px;
    line-height: 17px;
}
.wf--done .wf-logo,
.wf--restored-idle .wf-logo,
.wf--error .wf-logo { left: 10px; top: -4px; }

/* =========================================================================
   3. Popup – Verarbeitung läuft
   ========================================================================= */

.wf-body--running { padding: 38px 48px 0; }
.wf-kicker {
    font-size: 12px;
    line-height: 16px;
    font-weight: 700;
    letter-spacing: 1.6px;
    color: var(--wf-kupfer-text);
}
.wf .wf-title {
    margin-top: 6px;
    font-size: 27px;
    line-height: 34px;
    font-weight: 600;
    color: var(--wf-text);
    letter-spacing: 0;
}
.wf-title:focus, .wf-title-c:focus { outline: none; }
.wf-lead {
    max-width: 515px;
    margin-top: 8px;
    font-size: 15px;
    line-height: 21px;
    color: var(--wf-text-2);
}
.wf-progress-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-top: 29px;
    font-size: 14px;
    line-height: 20px;
}
.wf-progress-label { font-weight: 600; color: var(--wf-text); }
.wf-progress-pct { font-weight: 700; color: var(--wf-petrol); font-variant-numeric: tabular-nums; }
.wf-bar {
    position: relative;
    height: 10px;
    margin-top: 7px;
    border-radius: 5px;
    background: var(--wf-line);
    overflow: hidden;
}
.wf-bar-fill {
    position: relative;
    height: 100%;
    border-radius: 5px;
    background: linear-gradient(90deg, var(--wf-petrol-dark), var(--wf-petrol));
    overflow: hidden;
    transition: width .4s ease-out;
}
.wf-bar-shine {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 3px;
    width: 90px;
    border-radius: 5px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .35), rgba(255, 255, 255, 0));
    animation: wf-shine 2.4s ease-in-out infinite;
}
.wf-progress-foot {
    display: flex;
    justify-content: space-between;
    margin-top: 10.5px;
    font-size: 13px;
    line-height: 18px;
    color: var(--wf-text-2);
}
.wf-stepof { color: var(--wf-text-3); }

/* ---- Timeline (4 Phasen, Desktop horizontal) ---- */
.wf-timeline-wrap { margin: 38.5px -41.33px 0; }
.wf .wf-timeline {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}
.wf .wf-tl-track {
    position: absolute;
    left: 0;
    right: 0;
    top: 15.5px;
    height: 3px;
    pointer-events: none;
}
.wf-tl-line, .wf-tl-fill, .wf-tl-dash {
    position: absolute;
    top: 0;
    height: 3px;
}
.wf-tl-line { left: 12.5%; right: 12.5%; background: var(--wf-line); }
.wf-tl-fill {
    left: 12.5%;
    width: calc(var(--wf-ai, 0) * 25%);
    background: var(--wf-petrol);
    transition: width .4s ease-out;
}
.wf-tl-dash {
    display: none;
    left: calc(12.5% + var(--wf-ai, 0) * 25%);
    width: 12.5%;
    background: repeating-linear-gradient(90deg, var(--wf-petrol) 0 6px, transparent 6px 11px);
}
.wf-timeline--dash .wf-tl-dash { display: block; }
.wf .wf-phase {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.wf-node {
    position: relative;
    display: block;
    flex: none;
    width: 34px;
    height: 34px;
}
.wf-node-svg {
    position: absolute;
    left: -7px;
    top: -7px;
    width: 48px;
    height: 48px;
}
.wf-node-fill { fill: var(--wf-petrol); }
.wf-node-check { fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.wf-node-halo {
    fill: var(--wf-kupfer);
    fill-opacity: .14;
    transform-box: fill-box;
    transform-origin: center;
    animation: wf-pulse 1.6s ease-in-out infinite;
}
.wf-node-ring { fill: #fff; stroke: var(--wf-kupfer); stroke-width: 3; }
.wf-node-dot { fill: var(--wf-kupfer); }
.wf-node-pending { fill: #fff; stroke: var(--wf-ring-pending); stroke-width: 2; }
.wf-node-num {
    position: absolute;
    inset: 0;
    font-size: 13px;
    line-height: 34px;
    font-weight: 700;
    color: var(--wf-text-3);
    text-align: center;
}
.wf-phase-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 10px;
}
.wf-phase-label {
    font-size: 14px;
    line-height: 20px;
    font-weight: 400;
    color: var(--wf-text-2);
    white-space: nowrap;
}
.wf-phase-sub {
    margin-top: 3px;
    font-size: 12px;
    line-height: 16px;
    color: var(--wf-text-3);
    white-space: nowrap;
}
.wf-phase.is-done .wf-phase-label { font-weight: 600; color: var(--wf-text); }
.wf-phase.is-done .wf-phase-sub { color: var(--wf-petrol); }
.wf-phase.is-active .wf-phase-label { font-weight: 700; color: var(--wf-text); }
.wf-phase.is-active .wf-phase-sub { color: var(--wf-kupfer-text); }

/* ---- „Gut zu wissen“ ---- */
.wf .wf-note {
    position: relative;
    display: block;
    min-height: 72px;
    margin-top: 32px;
    padding: 14px 40px 0 22px;
    border-radius: 8px;
    background: var(--wf-surface);
    font-size: 13.5px;
    line-height: 18px;
}
.wf-note::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    border-radius: 2px;
    background: var(--wf-kupfer);
}
.wf-note-title { display: block; font-weight: 700; color: var(--wf-text); }
.wf-note-text { display: block; max-width: 490px; margin-top: 4px; color: var(--wf-text-2); }

/* ---- Vertrauensleiste ---- */
.wf .wf-trust {
    display: grid;
    grid-template-columns: 216px 194px auto;
    height: 72px;
    margin: 32px -48px 0;
    padding: 23px 0 0 50px;
    border-top: 1px solid var(--wf-line);
    font-size: 12.5px;
    line-height: 16px;
    color: var(--wf-text-2);
}
.wf .wf-trust-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    white-space: nowrap;
}
.wf .wf-trust-item--1 { grid-column: 1; }
.wf .wf-trust-item--2 { grid-column: 2; }
.wf .wf-trust-item--3 { grid-column: 3; gap: 7px; }
.wf .wf-trust-item .wf-ico--lock { margin-top: 1px; }
.wf .wf-trust a { color: var(--wf-text-2); text-decoration: underline; text-decoration-color: rgba(91, 103, 112, .45); text-underline-offset: 2px; }
.wf .wf-trust a:hover { color: var(--wf-petrol); }
.wf .wf-trust-mobile { display: none; }

/* =========================================================================
   4. Popup – fertig / Fehler
   ========================================================================= */

.wf-body--done,
.wf-body--error {
    display: flex;
    flex-direction: column;
    min-height: 582px;
    padding: 0 40px 11px;
}
.wf-done-main { min-height: 426px; }
.wf-status {
    width: 68px;
    height: 68px;
    margin: 22px auto 0;
    animation: wf-pop .25s ease-out both;
}
.wf-status-svg { display: block; width: 100%; height: 100%; }
.wf-status--ok .wf-status-halo { fill: var(--wf-petrol); fill-opacity: .12; }
.wf-status--ok .wf-status-core { fill: var(--wf-petrol); }
.wf-status-check {
    fill: none;
    stroke: #fff;
    stroke-width: 3.4;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 44;
    stroke-dashoffset: 0;
    animation: wf-draw .3s ease-out .1s both;
}
.wf-status--warn .wf-status-halo { fill: var(--wf-kupfer); fill-opacity: .14; }
.wf-status--warn .wf-status-ring { fill: #fff; stroke: var(--wf-kupfer-dark); stroke-width: 2.6; }
.wf-status--warn .wf-status-mark { fill: var(--wf-kupfer-dark); }
.wf .wf-title-c {
    margin-top: 8px;
    font-size: 23px;
    line-height: 30px;
    font-weight: 600;
    color: var(--wf-text);
    text-align: center;
    letter-spacing: 0;
}
.wf-text-c {
    margin-top: 5px;
    font-size: 14.5px;
    line-height: 20px;
    color: var(--wf-text-2);
    text-align: center;
}

/* ---- Info-Karte (SMS/E-Mail) ---- */
.wf .wf-card {
    position: relative;
    min-height: 92px;
    margin-top: 19px;
    padding: 16px 16px 14px 59px;
    border: 1px solid var(--wf-line);
    border-radius: 10px;
    background: var(--wf-surface);
}
.wf .wf-card--mail { padding-left: 61px; }
.wf-card-ico {
    position: absolute;
    left: 20px;
    top: 22px;
    fill: none;
    stroke: var(--wf-petrol);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.wf-card--mail .wf-card-ico { left: 18px; top: 24px; }
.wf-card-title {
    font-size: 14px;
    line-height: 20px;
    font-weight: 700;
    color: var(--wf-text);
}
.wf-card-text {
    margin-top: 3.5px;
    font-size: 13px;
    line-height: 18px;
    color: var(--wf-text-2);
}
.wf-card--sms .wf-card-text .wf-lg { display: block; max-width: 290px; }
.wf-card:not(:has(.wf-card-title)) .wf-card-text { margin-top: 11px; }

/* ---- nächste Schritte / Checkliste ---- */
.wf-kicker2 {
    margin-top: 24px;
    font-size: 12px;
    line-height: 16px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--wf-kupfer-text);
}
.wf .wf-steps { margin-top: 13px; }
.wf .wf-steps li,
.wf .wf-checks li {
    display: flex;
    align-items: flex-start;
    min-height: 22px;
    font-size: 13.5px;
    line-height: 22px;
    color: var(--wf-text);
}
.wf .wf-steps li + li { margin-top: 10px; }
.wf-step-num {
    flex: none;
    width: 22px;
    height: 22px;
    margin: 0 11px 0 1px;
    border: 2px solid var(--wf-petrol);
    border-radius: 50%;
    background: #fff;
    font-size: 12px;
    line-height: 18px;
    font-weight: 700;
    color: var(--wf-petrol);
    text-align: center;
}
.wf .wf-steps a { color: var(--wf-petrol); text-decoration: underline; text-underline-offset: 2px; }
.wf .wf-checks {
    display: grid;
    grid-template-columns: 220px 1fr;
    row-gap: 10px;
    margin-top: 13px;
}
.wf-minichk { flex: none; width: 18px; height: 18px; margin: 2px 13px 0 3px; }
.wf-minichk circle { fill: var(--wf-petrol); }
.wf-minichk path { fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---- Aktionen + Countdown ---- */
.wf-actions {
    display: flex;
    flex-direction: column;
}
.wf-countdown { margin-top: 16px; text-align: center; }
.wf-countdown--empty { display: none; }
.wf-countdown-text {
    font-size: 12.5px;
    line-height: 16px;
    color: var(--wf-text-2);
}
.wf .wf-linkbtn {
    display: inline;
    color: var(--wf-petrol);
    text-decoration: underline;
    text-underline-offset: 2px;
    font-size: inherit;
    line-height: inherit;
}
.wf .wf-linkbtn:hover { color: var(--wf-petrol-dark); }
.wf-countdown-bar {
    display: block;
    position: relative;
    width: 152px;
    height: 3px;
    margin: 6px auto 0;
    border-radius: 1.5px;
    background: var(--wf-line);
    overflow: hidden;
}
.wf-countdown-fill {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    border-radius: 1.5px;
    background: var(--wf-petrol);
    transition: width 1s linear;
}

/* ---- Fehler ---- */
.wf-ref {
    margin-top: 16px;
    padding: 12px 16px;
    border: 1px solid var(--wf-warn-line);
    border-radius: 10px;
    background: var(--wf-warn-bg);
    font-size: 11px;
    line-height: 16px;
    color: var(--wf-text-2);
    text-align: center;
}
.wf-body--error .wf-btn--outline { margin-top: 10px; }

/* =========================================================================
   5. Popup – mobil (≤ 575.98 px): Vollbild-Sheet
   ========================================================================= */

@media (max-width: 575.98px) {
    #wizardModal.wf-finalizing .modal-dialog,
    #wizardModal.wf-finalizing.wf-state-done .modal-dialog,
    #wizardModal.wf-finalizing.wf-state-error .modal-dialog {
        max-width: 100%;
        width: 100%;
        margin: 0;
        min-height: 100vh;
        min-height: 100dvh;
        align-items: stretch;
    }
    #wizardModal.wf-finalizing .modal-dialog-centered::before { display: none; }
    #wizardModal.wf-finalizing .modal-content {
        min-height: 100vh;
        min-height: 100dvh;
        max-height: none;
        border-radius: 0;
        box-shadow: none;
    }
    #wizardModal.wf-finalizing .modal-body { display: flex; flex-direction: column; }
    #wizardModal.wf-finalizing #wizard-app,
    #wizardModal.wf-finalizing #wizard-app > .container-fluid { display: flex; flex-direction: column; flex: 1 1 auto; }
    #wizardModal.wf-finalizing .wf { flex: 1 1 auto; display: flex; flex-direction: column; }

    .wf-lg, .wf .wf-lg-flex { display: none !important; }
    .wf-sm { display: inline; }
    .wf-line { display: block; }

    .wf::before { display: none; }
    .wf .wf-head,
    .wf--done .wf-head,
    .wf--restored-idle .wf-head,
    .wf--error .wf-head {
        height: 48px;
        padding: 15.3px 56px 0 46px;
        padding-top: calc(15.3px + env(safe-area-inset-top, 0px));
        height: calc(48px + env(safe-area-inset-top, 0px));
        font-size: 15px;
        line-height: 15px;
    }
    .wf .wf-logo { left: 5px; top: env(safe-area-inset-top, 0px); height: 48px; }
    .wf .wf-close { right: 16px; top: calc(7px + env(safe-area-inset-top, 0px)); width: 32px; height: 32px; font-size: 20px; line-height: 32px; }

    /* läuft */
    .wf-body--running {
        flex: 1 1 auto;
        padding: 29.4px 20px calc(16px + env(safe-area-inset-bottom, 0px));
    }
    .wf-kicker { font-size: 10.5px; line-height: 14px; letter-spacing: 1.3px; }
    .wf .wf-title { max-width: 240px; margin-top: 5.2px; font-size: 20px; line-height: 25px; }
    .wf-lead { margin-top: 8.9px; font-size: 13px; line-height: 18px; max-width: none; }
    .wf-progress-head { margin-top: 24px; font-size: 13px; line-height: 18px; }
    .wf-bar { height: 8px; margin-top: 5.5px; border-radius: 4px; }
    .wf-bar-fill, .wf-bar-shine { border-radius: 4px; }
    .wf-progress-foot { margin-top: 7.8px; font-size: 12px; line-height: 16px; }

    .wf-timeline-wrap { margin: 30.2px 0 0; }
    .wf .wf-timeline { display: block; }
    .wf .wf-tl-track { left: 14.5px; right: auto; top: 12px; width: 3px; height: 198px; }
    .wf-tl-line, .wf-tl-fill, .wf-tl-dash { left: 0; right: auto; top: 0; width: 3px; height: auto; }
    .wf-tl-line { bottom: 0; }
    .wf-tl-fill { height: calc(var(--wf-ai, 0) * 66px); width: 3px; transition: height .4s ease-out; }
    .wf-timeline--dash .wf-tl-dash { display: none; }
    .wf .wf-phase {
        flex-direction: row;
        align-items: flex-start;
        height: 66px;
        text-align: left;
    }
    .wf .wf-node { width: 24px; height: 24px; margin-left: 4px; }
    .wf .wf-node-svg { left: -5px; top: -5px; width: 34px; height: 34px; }
    .wf .wf-node-check { stroke-width: 3.1; }
    .wf .wf-node-ring { stroke-width: 3.7; }
    .wf .wf-node-pending { stroke-width: 2.83; }
    .wf .wf-node-num { font-size: 11px; line-height: 24px; }
    .wf .wf-phase-text { align-items: flex-start; margin: -4.85px 0 0 18px; }
    .wf .wf-phase-label { line-height: 18px; }
    .wf .wf-phase-sub { margin-top: 1.7px; }

    .wf .wf-trust {
        display: block;
        height: auto;
        margin: 10px -20px 0;
        padding: 15.5px 20px 0;
        font-size: 11.5px;
        line-height: 15px;
    }
    .wf .wf-trust-mobile { display: flex; align-items: flex-start; gap: 7px; }
    .wf .wf-trust-mobile .wf-ico--lock { width: 11px; height: 14px; margin-top: -2px; }

    /* fertig / Fehler */
    .wf-body--done,
    .wf-body--error {
        flex: 1 1 auto;
        min-height: 0;
        padding: 0 16px calc(32.5px + env(safe-area-inset-bottom, 0px));
    }
    .wf-done-main { min-height: 0; }
    .wf-actions { margin-top: auto; padding-top: 24px; }
    .wf-status { width: 60px; height: 60px; margin-top: 34px; }
    .wf .wf-title-c { margin-top: 12.6px; font-size: 20px; line-height: 25px; }
    .wf-text-c { max-width: 212px; margin: 6.9px auto 0; font-size: 13px; line-height: 18px; }
    .wf .wf-card {
        display: grid;
        grid-template-columns: 1fr;
        min-height: 100px;
        margin-top: 19.5px;
        padding: 13.5px 12px 7.6px 43px;
    }
    .wf .wf-card-ico { left: 15px; top: 15px; width: 18px; height: 28px; }
    .wf .wf-card--mail .wf-card-ico { left: 12px; top: 17px; width: 26px; height: 18px; }
    .wf-card-title { font-size: 13px; line-height: 18px; }
    .wf .wf-card-text { margin: 6.8px 0 0 -28px; font-size: 12px; line-height: 17px; max-width: 215px; }
    .wf .wf-card:not(:has(.wf-card-title)) .wf-card-text { margin: 6px 0 0 0; }
    .wf-kicker2 { margin-top: 23.4px; font-size: 10.5px; line-height: 14px; letter-spacing: 1.3px; }
    .wf .wf-steps { margin-top: 10.6px; }
    .wf .wf-steps li, .wf .wf-checks li { min-height: 20px; font-size: 12.5px; line-height: 20px; }
    .wf .wf-steps li + li { margin-top: 10px; }
    .wf-step-num { width: 20px; height: 20px; margin: 0 9px 0 1px; font-size: 11px; line-height: 16px; }
    .wf .wf-checks { grid-template-columns: 1fr 1fr; row-gap: 10px; margin-top: 10.6px; }
    .wf-minichk { width: 16px; height: 16px; margin: 2px 8px 0 2px; }
    .wf-countdown { margin-top: 14.5px; }
    .wf-countdown-text { font-size: 11.5px; line-height: 15px; }
    .wf-countdown--empty { display: block; height: 15px; }
    .wf-ref { margin-top: 16px; }
    .wf-body--error .wf-text-c { margin-top: 9.9px; }
    .wf-body--error .wf-countdown--empty { height: 12px; }
}

/* =========================================================================
   6. Animationen
   ========================================================================= */

@keyframes wf-shine {
    0%   { transform: translateX(-160px); opacity: 0; }
    20%  { opacity: 1; }
    80%  { opacity: 1; }
    100% { transform: translateX(0); opacity: 0; }
}
@keyframes wf-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%      { transform: scale(1.15); opacity: .55; }
}
@keyframes wf-draw {
    from { stroke-dashoffset: 44; }
    to   { stroke-dashoffset: 0; }
}
@keyframes wf-pop {
    from { opacity: 0; transform: scale(.9); }
    to   { opacity: 1; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    .wf *, .wf *::before, .wf *::after,
    .wf-page *, .wf-page *::before, .wf-page *::after {
        animation: none !important;
        transition: none !important;
    }
    #wizardModal.wf-finalizing .modal-dialog { transition: none; }
}

/* =========================================================================
   7. Danke-Seite (advisoryflow/thankyou)
   ========================================================================= */

.wf-page {
    font-family: var(--wf-font);
    color: var(--wf-text);
    background: var(--wf-page);
    text-align: left;
    -webkit-font-smoothing: antialiased;
}
.wf-page *, .wf-page *::before, .wf-page *::after { box-sizing: border-box; }
:where(.wf-page) p, :where(.wf-page) h1, :where(.wf-page) ol, :where(.wf-page) li {
    margin: 0;
    padding: 0;
    list-style: none;
    font-family: inherit;
    text-transform: none;
    letter-spacing: 0;
}
.wf-page a { color: var(--wf-petrol); }
.wf-page svg { overflow: visible; }
.wf-page .wf-sm { display: none; }
.wf-page .wf-line { display: block; }

.wf-page-head {
    position: relative;
    height: 61px;
    padding: 19.6px 120px 0 68px;
    border-top: 3px solid var(--wf-kupfer);
    border-bottom: 1px solid var(--wf-line);
    background: #fff;
    font-size: 17px;
    line-height: 17px;
    white-space: nowrap;
}
.wf-page .wf-logo { left: 16px; top: -2px; height: 60px; }
.wf-page .wf-secure {
    position: absolute;
    right: 70px;
    top: 21px;
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-size: 12px;
    line-height: 15px;
    color: var(--wf-text-2);
}
.wf-page-main { padding: 29px 16px 32px; }
.wf-page-card {
    display: flex;
    flex-direction: column;
    width: 600px;
    max-width: 100%;
    margin: 0 auto;
    padding: 30px 40px 48.7px;
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--wf-shadow-card);
}
.wf-page-status { width: 64px; height: 64px; margin: 0 auto; }
.wf-page-status svg { display: block; width: 100%; height: 100%; }
.wf-page-status .wf-status-halo { fill: var(--wf-petrol); fill-opacity: .12; }
.wf-page-status .wf-status-core { fill: var(--wf-petrol); }
.wf-page-status .wf-status-check { fill: none; stroke: #fff; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.wf-page-kicker {
    margin-top: 14px;
    font-size: 11.5px;
    line-height: 16px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--wf-kupfer-text);
    text-align: center;
}
.wf-page .wf-page-title {
    margin-top: 3.3px;
    font-size: 25px;
    line-height: 32px;
    font-weight: 600;
    color: var(--wf-text);
    text-align: center;
}
.wf-page-lead {
    max-width: 355px;
    margin: 5.6px auto 0;
    font-size: 14.5px;
    line-height: 20px;
    color: var(--wf-text-2);
    text-align: center;
}
.wf-page-info {
    position: relative;
    min-height: 70px;
    margin-top: 17px;
    padding: 12.2px 16px 10px 61px;
    border: 1px solid var(--wf-line);
    border-radius: 10px;
    background: var(--wf-surface);
}
.wf-page-info .wf-card-ico {
    position: absolute;
    left: 18px;
    top: 22px;
    fill: none;
    stroke: var(--wf-petrol);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.wf-page-info--sms .wf-card-ico { left: 20px; top: 17px; }
.wf-page-info--sms { padding-left: 59px; }
.wf-page-info-title {
    font-size: 14px;
    line-height: 20px;
    font-weight: 700;
    color: var(--wf-text);
}
.wf-page-info-text {
    margin-top: 4px;
    font-size: 12.5px;
    line-height: 17px;
    color: var(--wf-text-2);
}
.wf-page-info-text:first-of-type { margin-top: 13px; font-size: 13px; }
.wf-page-kicker2 {
    margin-top: 20px;
    font-size: 11.5px;
    line-height: 16px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--wf-kupfer-text);
}
.wf-page-steps { margin-top: 9px; }
.wf-page .wf-page-steps li {
    display: flex;
    align-items: flex-start;
    min-height: 22px;
    font-size: 13.5px;
    line-height: 22px;
    color: var(--wf-text);
}
.wf-page .wf-page-steps li + li { margin-top: 8px; }
.wf-page .wf-step-num {
    flex: none;
    width: 22px;
    height: 22px;
    margin: 0 11px 0 1px;
    border: 2px solid var(--wf-petrol);
    border-radius: 50%;
    background: #fff;
    font-size: 11.5px;
    line-height: 18px;
    font-weight: 700;
    color: var(--wf-petrol);
    text-align: center;
}
.wf-if-open { font-size: 11.5px; color: var(--wf-kupfer-text); }
.wf-page-steps a { text-decoration: underline; text-underline-offset: 2px; }
.wf-page-actions { margin-top: 19px; }
.wf-page-forgot {
    display: block;
    margin-top: 15.3px;
    font-size: 13.5px;
    line-height: 20px;
    font-weight: 700;
    text-align: center;
}
.wf-page .wf-page-forgot a { color: var(--wf-petrol); text-decoration: underline; }
/* Kompakte Karte (Freischaltseite showreport/showwizard): ohne Mindesthöhe */
.wf-page .wf-page-card--compact { min-height: 0; }

@media (max-width: 575.98px) {
    .wf-page .wf-lg { display: none !important; }
    .wf-page .wf-sm { display: inline; }
    .wf-page .wf-line { display: block; }
    .wf-page-head {
        height: 52px;
        padding: 17.3px 16px 0 52px;
        border-bottom: 0;
        font-size: 15px;
        line-height: 15px;
    }
    .wf-page .wf-logo { left: 5px; top: 0; height: 48px; }
    .wf-page .wf-if-open { font-size: inherit; color: inherit; }
    .wf-page .wf-secure { display: none; }
    .wf-page-main { padding: 16px 12px 16px; }
    .wf-page-card {
        min-height: 720px;
        padding: 28px 16px 44.5px;
        border-radius: 12px;
        box-shadow: none;
    }
    .wf-page-status { width: 56px; height: 56px; }
    .wf-page-kicker { display: none; }
    .wf-page .wf-page-title { margin-top: 9.7px; font-size: 21px; line-height: 26px; }
    .wf-page-lead { max-width: 215px; margin-top: 10.8px; font-size: 13px; line-height: 18px; }
    .wf-page-info { min-height: 84px; margin-top: 17.5px; padding: 13.7px 12px 8px 53px; }
    .wf-page-info .wf-card-ico { left: 12px; top: 16px; }
    .wf-page-info--sms { padding-left: 45px; }
    .wf-page-info--sms .wf-card-ico { left: 14px; top: 13px; }
    .wf-page-info-title { font-size: 12.5px; line-height: 18px; }
    .wf-page-info-text { margin: 7px 0 0 -40px; font-size: 11.5px; line-height: 15px; }
    .wf-page-info-text:first-of-type { margin: 12px 0 0 0; font-size: 12.5px; line-height: 17px; }
    .wf-page-kicker2 { margin-top: 23.4px; font-size: 10.5px; line-height: 14px; letter-spacing: 1.3px; }
    .wf-page-steps { margin-top: 11.6px; }
    .wf-page .wf-page-steps li { font-size: 12.5px; }
    .wf-page .wf-step-num { font-size: 11px; margin-right: 9px; }
    .wf-page-actions { margin-top: auto; padding-top: 24px; }
    .wf-page-forgot { margin-top: 23.5px; font-size: 13px; }
    .wf-page-card--compact .wf-page-actions { margin-top: 19px; }
}

/* =========================================================================
   8. Danke-Seite Footer (.wf-page-foot, Section-Override in footer_min.php)
   Sticky am Seitenende über :has() – greift nur, wenn <main> eine .wf-page
   enthält (Startseite hat nur .wf im Modal). Ohne :has()-Support folgt der
   Footer einfach dem Inhalt, im selben Look.
   ========================================================================= */

body:has(> main > .wf-page) {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    height: auto;
    background: var(--wf-page);
}
body:has(> main > .wf-page) > main {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
}
body:has(> main > .wf-page) > main > .wf-page { flex: 1 0 auto; }

.wf-page-foot {
    flex-shrink: 0;
    box-sizing: border-box;
    padding: 8px 16px 28px;
    background: var(--wf-page);
    font-family: var(--wf-font);
    font-size: 12.5px;
    line-height: 18px;
    color: var(--wf-text-2);
    -webkit-font-smoothing: antialiased;
}
.wf-page-foot *,
.wf-page-foot *::before,
.wf-page-foot *::after { box-sizing: border-box; }
.wf-page-foot-in {
    width: 600px;
    max-width: 100%;
    margin: 0 auto;
    padding-top: 16px;
    border-top: 1px solid var(--wf-line);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 8px 24px;
}
.wf-page-foot p {
    margin: 0;
    font-size: inherit;
    line-height: inherit;
    color: inherit;
}
.wf-page-foot-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 20px;
}
.wf-page-foot a {
    color: var(--wf-petrol);
    text-decoration: none;
}
.wf-page-foot a:hover {
    color: var(--wf-petrol-dark);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.wf-page-foot a:focus-visible {
    outline: var(--wf-focus);
    outline-offset: 2px;
    border-radius: 2px;
}

@media (max-width: 575.98px) {
    .wf-page-foot {
        padding: 4px 12px 20px;
        font-size: 12px;
    }
    .wf-page-foot-in {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    .wf-page-foot-nav {
        justify-content: center;
        gap: 2px 16px;
    }
    .wf-page-foot a {
        display: inline-block;
        padding: 6px 2px;
    }
}
