/* ============================================================
   booking.css — Probetraining-Checkout clever fit Voerde
   Light-Theme passend zur Hauptseite
   ============================================================ */

/* --- Light-Mode body override ----------------------------- */
.body--checkout-light {
    background-color: #f5f1e8;
    color: #0a0a0c;
}

.body--checkout-light::before {
    display: none; /* Grain-Texture entfernen im Light-Mode */
}

/* --- Header im Light-Mode bleibt dunkel (site-header hat eigenes BG) */

/* ---------- Page-Wrapper ---------- */
.checkout-page {
    padding-block: var(--space-xl) var(--space-2xl);
    min-height: 70vh;
    background-color: #f5f1e8;
}

.checkout-header {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.checkout-header h1 {
    font-family: var(--font-display);
    font-size: clamp(32px, 5vw, 48px);
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #0a0a0c;
    margin: 0 0 var(--space-sm);
}

.checkout-header__sub {
    font-size: 16px;
    line-height: 1.5;
    color: rgba(10, 10, 10, 0.55);
    max-width: 540px;
    margin: 0 auto;
}

.checkout-header__sub strong {
    color: #0a0a0c;
}

/* ---------- Booking-Wrapper (Card) ---------- */
.booking-wrapper {
    background: #ffffff;
    border: 1px solid rgba(10, 10, 10, 0.08);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 2px 24px rgba(10, 10, 10, 0.08);
}

.bform {
    position: relative;
}

/* ---------- Schritt-Transitions ---------- */
.bform-step { display: block; }
.bform-step--hidden { display: none; }

/* ---------- Schritt 1: Kalender + Slots ---------- */
.bform-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 340px;
}

/* ---------- Kalender ---------- */
.bcal {
    padding: 32px;
    border-right: 1px solid rgba(10, 10, 10, 0.08);
}

.bcal-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.bcal-btn {
    background: rgba(10, 10, 10, 0.05);
    border: 1px solid rgba(10, 10, 10, 0.12);
    color: #0a0a0c;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}
.bcal-btn:hover { background: rgba(226, 0, 26, 0.1); }
.bcal-btn:disabled { opacity: 0.25; cursor: default; }

.bcal-month-label {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 700;
    color: #0a0a0c;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.bcal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 8px;
}
.bcal-weekdays span {
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    color: rgba(10, 10, 10, 0.35);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 4px 0;
}

.bcal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.bcal-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 500;
    color: #0a0a0c;
    border-radius: 6px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.15s;
    background: transparent;
    min-width: 0;
}
.bcal-day:hover:not(.bcal-day--disabled):not(.bcal-day--empty) {
    background: rgba(226, 0, 26, 0.08);
    border-color: rgba(226, 0, 26, 0.3);
    color: #e2001a;
}
.bcal-day--today {
    border-color: rgba(226, 0, 26, 0.4);
    font-weight: 700;
}
.bcal-day--selected {
    background: #e2001a;
    border-color: #e2001a;
    color: #ffffff;
    font-weight: 700;
}
.bcal-day--disabled {
    color: rgba(10, 10, 10, 0.2);
    cursor: default;
    text-decoration: line-through;
}
.bcal-day--empty {
    cursor: default;
}

/* ---------- Zeitslots ---------- */
.bslots {
    padding: 32px;
    display: flex;
    flex-direction: column;
    background: #faf8f4;
}

.bslots-empty {
    color: rgba(10, 10, 10, 0.35);
    font-size: 14px;
    margin: auto 0;
    text-align: center;
    padding: 40px 0;
}

.bslots-empty a {
    color: #e2001a;
    text-decoration: none;
}

.bslots-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    align-content: start;
}

.bslot {
    padding: 10px 6px;
    background: #ffffff;
    border: 1px solid rgba(10, 10, 10, 0.12);
    border-radius: 6px;
    color: #0a0a0c;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.15s;
    font-family: var(--font-display);
    letter-spacing: 0.02em;
}
.bslot:hover {
    background: rgba(226, 0, 26, 0.06);
    border-color: rgba(226, 0, 26, 0.4);
    color: #e2001a;
}
.bslot--selected {
    background: #e2001a;
    border-color: #e2001a;
    color: #ffffff;
}

.bslots-disclaimer {
    font-size: 13px;
    color: rgba(10, 10, 10, 0.4);
    text-align: center;
    margin-top: auto;
    padding-top: var(--space-md);
    line-height: 1.5;
}
.bslots-disclaimer a {
    color: #e2001a;
    text-decoration: none;
    font-weight: 600;
}

/* ---------- Schritt 2: Kontaktformular ---------- */
.bstep2-inner {
    padding: 32px;
}

.bselected-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(226, 0, 26, 0.06);
    border: 1px solid rgba(226, 0, 26, 0.2);
    border-radius: 8px;
    padding: 14px 20px;
    margin-bottom: 28px;
    font-size: 15px;
    color: #0a0a0c;
    font-weight: 600;
}
.bselected-icon { font-size: 20px; }

.bchange-btn {
    margin-left: auto;
    background: transparent;
    border: 1px solid rgba(10, 10, 10, 0.2);
    color: rgba(10, 10, 10, 0.5);
    font-size: 12px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.15s;
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
}
.bchange-btn:hover {
    border-color: rgba(10, 10, 10, 0.4);
    color: #0a0a0c;
}

.bcontact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.bfield-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.bfield-row--half {
    grid-template-columns: 1fr;
    max-width: 50%;
}

.bfield {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.bfield-label {
    font-size: 12px;
    font-weight: 600;
    color: rgba(10, 10, 10, 0.45);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.bfield-input {
    background: #ffffff;
    border: 1px solid rgba(10, 10, 10, 0.15);
    border-radius: 7px;
    color: #0a0a0c;
    font-family: var(--font-body);
    font-size: 15px;
    padding: 12px 14px;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    width: 100%;
    box-sizing: border-box;
}
.bfield-input::placeholder { color: rgba(10, 10, 10, 0.3); }
.bfield-input:focus {
    border-color: #e2001a;
    box-shadow: 0 0 0 3px rgba(226, 0, 26, 0.1);
}

/* ---------- GDPR-Checkbox ---------- */
.bfield-gdpr { margin-top: 4px; }

.bcheckbox {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    cursor: pointer;
}
.bcheckbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.bcheckbox-box {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border: 1px solid rgba(10, 10, 10, 0.25);
    border-radius: 4px;
    background: #ffffff;
    margin-top: 2px;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.bcheckbox input:checked + .bcheckbox-box {
    background: #e2001a;
    border-color: #e2001a;
}
.bcheckbox input:checked + .bcheckbox-box::after {
    content: '';
    display: block;
    width: 10px;
    height: 6px;
    border-left: 2px solid #ffffff;
    border-bottom: 2px solid #ffffff;
    transform: rotate(-45deg) translateY(-1px);
}
.bcheckbox-label {
    font-size: 13px;
    color: rgba(10, 10, 10, 0.5);
    line-height: 1.5;
}
.bcheckbox-label a {
    color: #e2001a;
    text-decoration: underline;
}

/* ---------- Submit-Button ---------- */
.bsubmit-btn {
    background: linear-gradient(180deg, #ff1a42 0%, #e2001a 100%);
    border: none;
    border-radius: var(--radius-full);
    color: #ffffff;
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.01em;
    padding: 18px 32px;
    cursor: pointer;
    transition: box-shadow 0.2s, transform 0.1s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin-top: 8px;
    position: relative;
    box-shadow: 0 4px 20px rgba(226, 0, 26, 0.3);
}
.bsubmit-btn:hover {
    box-shadow: 0 8px 32px rgba(226, 0, 26, 0.45);
    transform: translateY(-1px);
}
.bsubmit-btn:active { transform: scale(0.98); }
.bsubmit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.bsubmit-spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: bspin 0.7s linear infinite;
}
.bsubmit-btn--loading .bsubmit-label { opacity: 0.5; }
.bsubmit-btn--loading .bsubmit-spinner { display: block; }

@keyframes bspin {
    to { transform: rotate(360deg); }
}

.bform-error {
    color: #c0000f;
    font-size: 13px;
    text-align: center;
    min-height: 18px;
    margin-top: 4px;
    padding: 10px 14px;
    background: rgba(226, 0, 26, 0.06);
    border-radius: 6px;
    border: 1px solid rgba(226, 0, 26, 0.15);
}
.bform-error:empty { display: none; }
.bform-error a { color: inherit; font-weight: 600; }

/* ---------- Schritt 3: Erfolg ---------- */
.bsuccess {
    padding: 60px 32px;
    text-align: center;
}
.bsuccess-check {
    width: 64px;
    height: 64px;
    background: #e8f5e9;
    border: 2px solid #4caf50;
    border-radius: 50%;
    color: #2e7d32;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}
.bsuccess-title {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 800;
    color: #0a0a0c;
    margin-bottom: 12px;
}
.bsuccess-sub {
    font-size: 16px;
    color: rgba(10, 10, 10, 0.6);
    margin-bottom: 16px;
    font-weight: 600;
}
.bsuccess-cal {
    margin: 20px 0;
}
.bsuccess-cal-label {
    font-size: 12px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(10, 10, 10, 0.35);
    margin: 0 0 10px;
    font-weight: 600;
}
.bsuccess-cal-btns {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}
.bsuccess-cal-btn {
    padding: 10px 18px;
    background: #ffffff;
    border: 1px solid rgba(10, 10, 10, 0.12);
    border-radius: 6px;
    color: #0a0a0c;
    font-size: 14px;
    text-decoration: none;
    transition: border-color 0.15s;
}
.bsuccess-cal-btn:hover {
    border-color: #e2001a;
    color: #e2001a;
}
.bsuccess-note {
    font-size: 13px;
    color: rgba(10, 10, 10, 0.4);
    line-height: 1.7;
    margin: 16px 0;
}
.bsuccess-note a { color: #e2001a; }

.bsuccess-reset {
    margin-top: 8px;
    padding: 10px 20px;
    background: transparent;
    border: 1px solid rgba(10, 10, 10, 0.15);
    border-radius: 6px;
    color: rgba(10, 10, 10, 0.5);
    font-size: 14px;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s;
}
.bsuccess-reset:hover {
    border-color: rgba(10, 10, 10, 0.3);
    color: #0a0a0c;
}

/* ---------- btn--ghost Header-Back-Link ---------- */
.btn--ghost {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
}
.btn--ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
}

/* ---------- Responsive ---------- */
@media (max-width: 700px) {
    .bform-columns {
        grid-template-columns: 1fr;
    }
    .bcal {
        border-right: none;
        border-bottom: 1px solid rgba(10, 10, 10, 0.08);
        padding: 24px 20px;
    }
    .bslots {
        padding: 24px 20px;
    }
    .bslots-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .bstep2-inner {
        padding: 24px 20px;
    }
    .bfield-row {
        grid-template-columns: 1fr;
    }
    .bfield-row--half {
        max-width: 100%;
    }
}

@media (max-width: 420px) {
    .bslots-grid { grid-template-columns: repeat(3, 1fr); }
}
