/* NF-Digital Shop – Widerruf-Button (Frontend, geführter Wizard)
   Farb-/Stil-Variablen werden per wp_add_inline_style auf .nfds-wr-wrap gesetzt. */

.nfds-wr-wrap {
    --nfds-wr-btn: #c0392b;
    --nfds-wr-btn-text: #ffffff;
    --nfds-wr-border: #c0392b;
    --nfds-wr-radius: 6px;
    --nfds-wr-ink: #1f2430;
    --nfds-wr-muted: #6b7280;
    --nfds-wr-line: #e5e7eb;
    max-width: 640px;
    margin: 0 auto 1.5em;
    box-sizing: border-box;
}

.nfds-wr-wrap *,
.nfds-wr-wrap *::before,
.nfds-wr-wrap *::after {
    box-sizing: border-box;
}

/* Karte */
.nfds-wr-card {
    position: relative;
    background: #fff;
    border: 1px solid var(--nfds-wr-line);
    border-radius: calc(var(--nfds-wr-radius) + 8px);
    padding: 30px 28px;
    box-shadow: 0 10px 30px rgba(17, 24, 39, .06);
    overflow: hidden;
}

.nfds-wr-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 5px;
    background: var(--nfds-wr-btn);
}

/* ---------------- Start-Screen ---------------- */
.nfds-wr-hero {
    text-align: center;
    padding: 8px 4px 4px;
}

.nfds-wr-hero-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    color: var(--nfds-wr-btn);
    background: color-mix(in srgb, var(--nfds-wr-btn) 12%, #fff);
    margin-bottom: 14px;
}

.nfds-wr-hero-title {
    margin: 0 0 8px;
    font-size: 22px;
    line-height: 1.25;
    color: var(--nfds-wr-ink);
    font-weight: 800;
}

.nfds-wr-hero-text {
    margin: 0 auto 22px;
    max-width: 460px;
    font-size: 15px;
    line-height: 1.6;
    color: var(--nfds-wr-muted);
}

.nfds-wr-hero-note {
    margin: 14px 0 0;
    font-size: 12.5px;
    color: var(--nfds-wr-muted);
}

/* ---------------- Buttons ---------------- */
.nfds-wr-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    background: var(--nfds-wr-btn);
    color: var(--nfds-wr-btn-text);
    border: 2px solid var(--nfds-wr-border);
    border-radius: var(--nfds-wr-radius);
    padding: 13px 26px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.15;
    cursor: pointer;
    text-decoration: none;
    transition: transform .08s ease, box-shadow .15s ease, filter .15s ease;
    box-shadow: 0 6px 16px color-mix(in srgb, var(--nfds-wr-btn) 28%, transparent);
}

.nfds-wr-btn:hover {
    filter: brightness(.94);
    box-shadow: 0 8px 20px color-mix(in srgb, var(--nfds-wr-btn) 34%, transparent);
}

.nfds-wr-btn:active {
    transform: translateY(1px);
}

.nfds-wr-btn:disabled {
    opacity: .6;
    cursor: default;
    box-shadow: none;
}

.nfds-wr-start-btn {
    padding: 15px 30px;
    font-size: 17px;
}

.nfds-wr-btn-ico {
    display: inline-flex;
    align-items: center;
}

.nfds-wr-btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: transparent;
    color: var(--nfds-wr-muted);
    border: 1px solid var(--nfds-wr-line);
    border-radius: var(--nfds-wr-radius);
    padding: 12px 18px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color .15s ease, color .15s ease;
}

.nfds-wr-btn-ghost:hover {
    color: var(--nfds-wr-ink);
    border-color: #cfd4dc;
}

/* ---------------- Stepper ---------------- */
.nfds-wr-steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    list-style: none;
    margin: 0 0 26px;
    padding: 0;
}

.nfds-wr-stepitem {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    flex: 1 1 0;
    position: relative;
    color: var(--nfds-wr-muted);
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    max-width: 180px;
}

.nfds-wr-stepitem::before {
    content: "";
    position: absolute;
    top: 15px;
    left: -50%;
    width: 100%;
    height: 2px;
    background: var(--nfds-wr-line);
    z-index: 0;
}

.nfds-wr-stepitem:first-child::before {
    display: none;
}

.nfds-wr-stepnum {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--nfds-wr-line);
    color: var(--nfds-wr-muted);
    font-weight: 800;
    font-size: 14px;
    transition: all .2s ease;
}

.nfds-wr-stepitem.is-active .nfds-wr-stepnum,
.nfds-wr-stepitem.is-done .nfds-wr-stepnum {
    background: var(--nfds-wr-btn);
    border-color: var(--nfds-wr-btn);
    color: var(--nfds-wr-btn-text);
}

.nfds-wr-stepitem.is-active,
.nfds-wr-stepitem.is-done {
    color: var(--nfds-wr-ink);
}

.nfds-wr-stepitem.is-done::before,
.nfds-wr-stepitem.is-active::before {
    background: var(--nfds-wr-btn);
}

/* ---------------- Felder ---------------- */
.nfds-wr-field {
    margin-bottom: 16px;
}

.nfds-wr-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 14px;
    color: var(--nfds-wr-ink);
}

.nfds-wr-req {
    color: var(--nfds-wr-btn);
}

.nfds-wr-field input[type="text"],
.nfds-wr-field input[type="email"],
.nfds-wr-field textarea {
    width: 100%;
    padding: 11px 13px;
    border: 1px solid #cfd4dc;
    border-radius: var(--nfds-wr-radius);
    font-size: 15px;
    line-height: 1.4;
    color: var(--nfds-wr-ink);
    background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.nfds-wr-field input:focus,
.nfds-wr-field textarea:focus {
    outline: none;
    border-color: var(--nfds-wr-border);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--nfds-wr-border) 16%, transparent);
}

.nfds-wr-hint {
    display: block;
    margin-top: 5px;
    color: var(--nfds-wr-muted);
    font-size: 12.5px;
}

.nfds-wr-datenschutz {
    font-size: 12.5px;
    color: var(--nfds-wr-muted);
    margin: 4px 0 14px;
    line-height: 1.5;
}

/* Honeypot ausblenden */
.nfds-wr-hp {
    position: absolute !important;
    left: -9999px !important;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ---------------- Aktionen ---------------- */
.nfds-wr-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-top: 22px;
}

.nfds-wr-actions .nfds-wr-btn {
    margin-left: auto;
}

/* ---------------- Schritt 2: Zusammenfassung ---------------- */
.nfds-wr-confirm-text {
    font-size: 15px;
    line-height: 1.55;
    margin: 0 0 16px;
    color: var(--nfds-wr-ink);
}

.nfds-wr-summary {
    margin: 0;
    padding: 18px 20px;
    background: #f8fafc;
    border: 1px solid var(--nfds-wr-line);
    border-radius: calc(var(--nfds-wr-radius) + 2px);
}

.nfds-wr-summary dt {
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: var(--nfds-wr-muted);
    margin-top: 14px;
}

.nfds-wr-summary dt:first-child {
    margin-top: 0;
}

.nfds-wr-summary dd {
    margin: 3px 0 0;
    font-size: 15.5px;
    color: var(--nfds-wr-ink);
    word-break: break-word;
}

/* ---------------- Meldungen ---------------- */
.nfds-wr-error {
    color: #b32d2e;
    font-size: 14px;
    margin: 14px 0 0;
    font-weight: 600;
    background: #fdecea;
    border: 1px solid #f5c6c2;
    border-radius: var(--nfds-wr-radius);
    padding: 10px 12px;
}

/* ---------------- Fertig ---------------- */
.nfds-wr-screen--done {
    text-align: center;
    padding: 10px 4px;
}

.nfds-wr-done-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 74px;
    height: 74px;
    border-radius: 50%;
    color: #1e8e3e;
    background: #e7f5ec;
    margin-bottom: 14px;
}

.nfds-wr-done-title {
    margin: 0 0 10px;
    font-size: 21px;
    font-weight: 800;
    color: var(--nfds-wr-ink);
}

.nfds-wr-success {
    font-size: 15.5px;
    line-height: 1.6;
    color: var(--nfds-wr-ink);
    max-width: 480px;
    margin: 0 auto;
}

.nfds-wr-done-stamp {
    margin: 14px 0 0;
    font-size: 13px;
    color: var(--nfds-wr-muted);
}

/* ---------------- Animation Screen-Wechsel ---------------- */
.nfds-wr-screen,
.nfds-wr-step {
    animation: nfds-wr-fade .28s ease;
}

@keyframes nfds-wr-fade {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---------------- Mobil ---------------- */
@media (max-width: 480px) {
    .nfds-wr-card { padding: 24px 18px; }
    .nfds-wr-steplabel { font-size: 12px; }
    .nfds-wr-actions { flex-direction: column-reverse; align-items: stretch; }
    .nfds-wr-actions .nfds-wr-btn,
    .nfds-wr-actions .nfds-wr-btn-ghost { width: 100%; margin-left: 0; justify-content: center; }
}
