/* 1000PS Annahme-Wizard — built on tokens.css.
   Scoped under .wiz to avoid bleeding into other (legacy Bootstrap) pages. */

.wiz {
    --wiz-rail-w: 340px;
    --wiz-body-pad-x: 56px;
    --wiz-body-pad-y: 40px;
    font-family: var(--font-sans);
    color: var(--fg);
}

/* Page background reset — wizard owns the viewport */
body.wiz-host {
    background: var(--bg-muted);
    margin: 0;
}

body.wiz-host > header,
body.wiz-host > footer {
    display: none;
}

body.wiz-host > main {
    max-width: none;
    padding: 0;
    margin: 0;
}

.wiz-shell {
    display: grid;
    grid-template-columns: var(--wiz-rail-w) 1fr;
    min-height: 100vh;
}

/* ── Rail (left, dark) ───────────────────────────────────────── */
.wiz-rail {
    background: var(--gray-90);
    color: #fff;
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.wiz-rail__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: var(--fw-black);
    font-size: 18px;
    letter-spacing: -0.02em;
    color: #fff;
}

.wiz-rail__logo-img {
    height: 34px;
    width: auto;
    display: block;
}

.wiz-rail__eyebrow {
    font-size: var(--fs-eyebrow);
    font-weight: var(--fw-bold);
    letter-spacing: var(--tracking-eyebrow);
    text-transform: uppercase;
    color: var(--torch-red);
}

.wiz-rail__title {
    font-size: 26px;
    font-weight: var(--fw-black);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 8px 0 0;
    color: #fff;
}

.wiz-rail__lead {
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.65);
}

.wiz-steps {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.wiz-step-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.55);
    transition: background var(--dur-fast) var(--ease-out);
}

.wiz-step-link.is-active {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.wiz-step-link.is-done {
    color: #fff;
}

.wiz-step-link__num {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: var(--fw-black);
    font-size: 11px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    flex: 0 0 auto;
}

.wiz-step-link.is-done .wiz-step-link__num,
.wiz-step-link.is-active .wiz-step-link__num {
    background: var(--torch-red);
}

.wiz-step-link.is-active .wiz-step-link__num {
    box-shadow: 0 0 0 3px rgba(255, 27, 55, 0.25);
}

.wiz-step-link__body {
    flex: 1;
    min-width: 0;
}

.wiz-step-link__label {
    font-size: 13px;
    font-weight: var(--fw-semibold);
}

.wiz-step-link.is-active .wiz-step-link__label {
    font-weight: var(--fw-extrabold);
}

.wiz-step-link__title {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.55);
    margin-top: 2px;
}

.wiz-contact {
    margin-top: auto;
    padding: 14px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 10px;
}

.wiz-contact__label {
    font-size: 10px;
    font-weight: var(--fw-extrabold);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
}

.wiz-contact__row {
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.wiz-contact__avatar {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: var(--torch-red);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: var(--fw-black);
    font-size: 12px;
}

.wiz-contact__name {
    font-size: 13px;
    font-weight: var(--fw-extrabold);
}

.wiz-contact__sub {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.55);
}

.wiz-legal-note {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.5;
}

/* ── Main column ──────────────────────────────────────────── */
.wiz-main {
    background: var(--bg);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.wiz-body {
    flex: 1;
    padding: var(--wiz-body-pad-y) var(--wiz-body-pad-x) 32px;
}

.wiz-body__inner {
    max-width: 720px;
    margin: 0 auto;
}

.wiz-eyebrow {
    font-size: var(--fs-eyebrow);
    font-weight: var(--fw-bold);
    letter-spacing: var(--tracking-eyebrow);
    text-transform: uppercase;
    color: var(--torch-red);
    display: block;
    margin-bottom: 8px;
}

.wiz-title {
    font-size: 36px;
    font-weight: var(--fw-black);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0 0 8px;
    text-wrap: balance;
}

.wiz-title--xl {
    font-size: 40px;
    line-height: 1.05;
    margin-bottom: 12px;
}

.wiz-lead {
    font-size: 15px;
    line-height: 1.55;
    color: var(--fg-2);
    max-width: 580px;
    margin: 0 0 24px;
}

.wiz-lead--sm {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 22px;
}

.wiz-section-label {
    font-size: 11px;
    font-weight: var(--fw-extrabold);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--fg-3);
    margin: 0 0 8px;
}

.wiz-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 24px;
}

.wiz-card--padless {
    padding: 0;
    overflow: hidden;
}

/* ── Footer (sticky CTAs) ─────────────────────────────────── */
.wiz-footer {
    padding: 18px var(--wiz-body-pad-x);
    border-top: 1px solid var(--border);
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    position: sticky;
    bottom: 0;
}

.wiz-footer__meta {
    font-size: 12px;
    color: var(--fg-3);
}

.wiz-footer__actions {
    display: flex;
    gap: 10px;
}

/* ── Field / inputs ───────────────────────────────────────── */
.wiz-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0; /* prevent grid cells from expanding to content width */
}

.wiz-field__label {
    font-size: 11px;
    font-weight: var(--fw-extrabold);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--fg-3);
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}

.wiz-field__label .req {
    color: var(--torch-red);
    margin-left: 3px;
}

.wiz-field__label .opt {
    color: var(--fg-3);
    text-transform: none;
    letter-spacing: 0;
    font-weight: var(--fw-semibold);
}

.wiz-field__hint {
    font-size: 11px;
    color: var(--fg-3);
    line-height: 1.4;
}

.wiz-field__error {
    font-size: 11px;
    color: var(--torch-red);
    font-weight: var(--fw-bold);
    display: flex;
    align-items: center;
    gap: 4px;
}

.wiz-input,
.wiz-select {
    width: 100%;
    min-width: 0;          /* inputs inherit container width, not size attribute */
    box-sizing: border-box;
    height: 44px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    font-weight: var(--fw-medium);
    background: var(--bg);
    color: var(--fg);
    outline: none;
    transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}

.wiz-input:focus,
.wiz-select:focus {
    border-color: var(--torch-red);
    box-shadow: 0 0 0 3px rgba(255, 27, 55, 0.15);
}

.wiz-input--error,
.wiz-select--error {
    border-color: var(--torch-red);
}

.wiz-input--mono {
    font-family: var(--font-mono);
    letter-spacing: 0.04em;
}

.wiz-select {
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path fill='%23757575' d='M0 0h10L5 6z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

/* Grid helpers */
.wiz-grid {
    display: grid;
    gap: 12px;
}

.wiz-grid--2 {
    grid-template-columns: 1fr 1fr;
}

.wiz-grid--3 {
    grid-template-columns: repeat(3, 1fr);
}

.wiz-grid--firma {
    grid-template-columns: 140px 1fr 1fr 1fr;
}

.wiz-stack {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* ── Buttons (extend tokens.css .btn family) ──────────────── */
.wiz-btn-row {
    display: flex;
    gap: 10px;
}

/* ── Method picker cards (step 5) ─────────────────────────── */
.wiz-method-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.wiz-method {
    position: relative;
    padding: 16px;
    border: 2px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    background: var(--bg);
    transition: background var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.wiz-method:hover {
    border-color: var(--border-strong);
}

.wiz-method.is-active {
    border-color: var(--torch-red);
    background: var(--torch-red-tint);
}

.wiz-method.is-disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.wiz-method__icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--bg-muted);
    color: var(--gray-90);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-bottom: 8px;
}

.wiz-method.is-active .wiz-method__icon {
    background: var(--torch-red);
    color: #fff;
}

.wiz-method__label {
    font-weight: var(--fw-extrabold);
    font-size: 14px;
}

.wiz-method__sub {
    font-size: 12px;
    color: var(--fg-3);
}

.wiz-method__badge {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 9px;
    font-weight: var(--fw-black);
    letter-spacing: 0.08em;
    padding: 3px 6px;
    border-radius: 3px;
    background: var(--gray-90);
    color: #fff;
}

.wiz-method__badge--soon {
    background: var(--gray-50);
}

/* ── Paket-Auswahl-Kacheln (step 2) ───────────────────────── */
.wiz-paket-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.wiz-paket {
    padding: 12px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    background: var(--bg);
    display: flex;
    align-items: flex-start;
    gap: 10px;
    transition: background var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}

.wiz-paket:hover {
    border-color: var(--border-strong);
}

.wiz-paket.is-selected {
    border-color: var(--torch-red);
    background: var(--torch-red-tint);
}

.wiz-paket.is-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.wiz-paket__box {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 1.5px solid var(--gray-30);
    background: var(--bg);
    flex: 0 0 auto;
    margin-top: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    font-size: 11px;
}

.wiz-paket.is-selected .wiz-paket__box {
    border-color: var(--torch-red);
    background: var(--torch-red);
    color: #fff;
}

.wiz-paket__body {
    flex: 1;
    min-width: 0;
}

.wiz-paket__name {
    font-size: 13px;
    font-weight: var(--fw-extrabold);
}

.wiz-paket__sub {
    font-size: 11px;
    color: var(--fg-3);
    margin-top: 2px;
}

.wiz-paket__price {
    text-align: right;
    flex: 0 0 auto;
}

.wiz-paket__price-val {
    font-size: 13px;
    font-weight: var(--fw-black);
}

.wiz-paket.is-selected .wiz-paket__price-val {
    color: var(--torch-red);
}

.wiz-paket__price-period {
    font-size: 10px;
    color: var(--fg-3);
}

/* Selected-paket-Liste (Header in Step 2) */
.wiz-selected {
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    background: var(--bg);
}

.wiz-selected__row {
    padding: 14px 18px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 14px;
    align-items: center;
    border-bottom: 1px solid var(--border);
}

.wiz-selected__row:last-child {
    border-bottom: none;
}

.wiz-selected__check {
    width: 16px;
    height: 16px;
    color: var(--torch-red);
}

.wiz-selected__name {
    font-weight: var(--fw-extrabold);
    font-size: 14px;
}

.wiz-selected__meta {
    font-size: 11px;
    color: var(--fg-3);
}

.wiz-selected__price {
    text-align: right;
    font-weight: var(--fw-black);
    font-size: 15px;
}

/* Angebot-Summary (Step 1 warm + Step 6) */
.wiz-summary {
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
}

.wiz-summary__row {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 14px;
    align-items: center;
}

.wiz-summary__row:last-of-type {
    border-bottom: 0;
}

.wiz-summary__icon {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: var(--gray-90);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
}

.wiz-summary__total {
    padding: 18px 20px;
    background: var(--gray-90);
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.wiz-summary__total-label {
    font-size: 13px;
    font-weight: var(--fw-bold);
}

.wiz-summary__total-val {
    font-size: 28px;
    font-weight: var(--fw-black);
    letter-spacing: -0.02em;
}

.wiz-summary__setup {
    padding: 10px 20px;
    background: var(--gray-80);
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    display: flex;
    justify-content: space-between;
}

/* Trust strip */
.wiz-trust {
    margin-top: 32px;
    padding: 16px;
    background: var(--bg-muted);
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.wiz-trust__item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--fg-2);
}

.wiz-trust__item i {
    color: var(--gray-90);
}

/* Value cards (step 1 kalt) */
.wiz-value-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.wiz-value {
    display: block;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 18px;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

a.wiz-value:hover {
    border-color: var(--torch-red);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    transform: translateY(-1px);
}

.wiz-value__icon {
    width: 22px;
    height: 22px;
    color: var(--torch-red);
    font-size: 22px;
}

.wiz-value__title {
    margin-top: 10px;
    font-weight: var(--fw-extrabold);
    font-size: 14px;
}

.wiz-value__sub {
    margin-top: 4px;
    font-size: 12px;
    color: var(--fg-3);
}

/* SEPA mandate box */
.wiz-mandate {
    padding: 14px;
    background: var(--torch-red-tint);
    border: 1px solid #F2B3BD;
    border-radius: 8px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.wiz-mandate input[type="checkbox"] {
    margin-top: 2px;
    accent-color: var(--torch-red);
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
}

.wiz-mandate__text {
    font-size: 12px;
    color: var(--gray-80);
    line-height: 1.5;
    cursor: pointer;
}

.wiz-mandate__mono {
    margin-top: 6px;
    font-size: 11px;
    color: var(--fg-3);
    font-family: var(--font-mono);
}

/* Info banner */
.wiz-info {
    background: var(--bg-muted);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px 18px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.wiz-info i {
    color: var(--gray-90);
    flex: 0 0 auto;
    margin-top: 2px;
    font-size: 18px;
}

.wiz-info__body {
    flex: 1;
    font-size: 13px;
    color: var(--fg-2);
    line-height: 1.5;
}

/* AGB block (dark, step 6) */
.wiz-agb {
    padding: 16px;
    background: var(--gray-90);
    color: #fff;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wiz-agb__row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 13px;
    line-height: 1.55;
}

.wiz-agb__row input[type="checkbox"] {
    margin-top: 4px;
    accent-color: var(--torch-red);
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
}

.wiz-agb__row a {
    color: var(--torch-red);
    text-decoration: underline;
}

/* Summary cards (step 6) */
.wiz-summary-card {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 18px;
    background: var(--bg);
}

.wiz-summary-card__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.wiz-summary-card__title {
    font-weight: var(--fw-extrabold);
    font-size: 14px;
}

.wiz-summary-card__edit {
    font-size: 12px;
    color: var(--torch-red);
    font-weight: var(--fw-bold);
    text-decoration: none;
}

.wiz-summary-card__body {
    font-size: 13px;
    line-height: 1.6;
}

.wiz-summary-card__body .muted {
    color: var(--fg-2);
}

/* Status / error banners */
.wiz-banner-error {
    border: 1px solid #F2B3BD;
    background: var(--torch-red-tint);
    color: var(--gray-90);
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 16px;
}

.wiz-banner-error ul {
    margin: 4px 0 0 18px;
    padding: 0;
}

.wiz-banner-error li {
    margin: 2px 0;
}

/* Hidden honeypot wrapper */
.wiz-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ── Mobile breakpoint ─────────────────────────────────────── */
@media (max-width: 900px) {
    .wiz-shell {
        grid-template-columns: 1fr;
    }

    .wiz-rail {
        padding: 14px 18px 12px;
        gap: 12px;
    }

    .wiz-rail__title,
    .wiz-rail__lead,
    .wiz-contact,
    .wiz-legal-note {
        display: none;
    }

    .wiz-steps {
        display: none;
    }

    .wiz-rail__progress {
        display: flex;
        gap: 3px;
        margin-top: 4px;
    }

    .wiz-rail__progress > div {
        flex: 1;
        height: 3px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.18);
    }

    .wiz-rail__progress > div.is-done,
    .wiz-rail__progress > div.is-active {
        background: var(--torch-red);
    }

    .wiz-rail__step-meta {
        font-size: 11px;
        font-weight: var(--fw-extrabold);
        color: rgba(255, 255, 255, 0.55);
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }

    .wiz-body {
        padding: 20px 18px 24px;
    }

    .wiz-title,
    .wiz-title--xl {
        font-size: 26px;
    }

    .wiz-grid--2,
    .wiz-grid--3,
    .wiz-grid--firma,
    .wiz-method-grid,
    .wiz-paket-grid,
    .wiz-value-grid {
        grid-template-columns: 1fr;
    }

    .wiz-footer {
        padding: 12px 18px;
        background: rgba(255, 255, 255, 0.96);
        backdrop-filter: blur(8px);
    }

    .wiz-footer__meta {
        display: none;
    }

    .wiz-footer__actions {
        flex: 1;
    }

    .wiz-footer__actions .btn {
        flex: 1;
        justify-content: center;
    }
}

/* Desktop-only show rules — keep progress hidden on desktop */
@media (min-width: 901px) {
    .wiz-rail__progress,
    .wiz-rail__step-meta {
        display: none;
    }
}
