/* Mitgliedschafts-Wizard — Brand-aligned mit FusionFitness Ulmen
   Eigene minimalistische Hülle (kein Hauptnavbar/-Footer), aber
   gleiche Farbwelt + Typografie wie Hauptseite. */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&family=Raleway:wght@400;500;600;700;800&display=swap');

:root {
    --primary:      #ffcc00;
    --primary-hover:#ffdd33;
    --dark-bg:      #121212;
    --darker-bg:    #0a0a0a;
    --light-text:   #ffffff;
    --gray-text:    #aaaaaa;
    --accent:       #2a2a2a;
    --accent-2:     #1c1c1c;
    --border:       #333333;
    --error:        #ff5252;
    --success:      #00d4aa;
    --r-md: 12px;
    --r-lg: 16px;
    --font-main:     'Montserrat', sans-serif;
    --font-headings: 'Raleway', sans-serif;
}

* { box-sizing: border-box; }

body.booking-page {
    margin: 0;
    font-family: var(--font-main);
    color: var(--light-text);
    background: var(--dark-bg);
    line-height: 1.6;
    min-height: 100vh;
}

h1, h2, h3 {
    font-family: var(--font-headings);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 16px;
}
h1 { font-size: 2rem; }
h2 { font-size: 1.4rem; margin-top: 32px; color: var(--primary); }
h3 { font-size: 1.1rem; }
a { color: var(--primary); }
p { margin: 0 0 12px; color: var(--gray-text); }

/* Header */
.booking-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 32px;
    background: var(--darker-bg);
    border-bottom: 1px solid var(--border);
}
.booking-logo img { height: 44px; display: block; }
.booking-step {
    font-family: var(--font-headings);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--gray-text);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Main */
.booking-main { max-width: 760px; margin: 40px auto; padding: 0 20px; }

/* Karten-Container — wie pricing-card-main auf Hauptseite */
.booking-step-content {
    background: linear-gradient(145deg, #242424, #303030);
    border-radius: var(--r-lg);
    padding: 40px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border-top: 4px solid var(--primary);
    position: relative;
    overflow: hidden;
}
.booking-step-content::before {
    content: '';
    position: absolute;
    width: 240px; height: 240px;
    background: radial-gradient(circle, rgba(255,204,0,0.08) 0%, rgba(255,204,0,0.03) 50%, transparent 70%);
    top: -120px; right: -120px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}
.booking-step-content > * { position: relative; z-index: 1; }

/* Trust-Bar */
.booking-trust {
    text-align: center;
    padding: 32px 16px;
    color: var(--gray-text);
    font-size: 0.85rem;
}
.booking-trust a, .booking-trust .trust-link {
    color: var(--gray-text);
    margin: 0 8px;
    text-decoration: underline;
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    cursor: pointer;
}
.booking-trust .trust-link:hover { color: var(--primary); }

/* Buttons */
.btn-primary, button.btn-primary {
    display: inline-block;
    padding: 14px 32px;
    background: var(--primary);
    color: var(--darker-bg);
    border: none;
    border-radius: 50px;
    font-family: var(--font-headings);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}
.btn-primary:hover { background: var(--primary-hover); }
.btn-primary:active { transform: scale(0.98); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-secondary {
    display: inline-block;
    padding: 13px 28px;
    background: transparent;
    color: var(--light-text);
    border: 2px solid var(--border);
    border-radius: 50px;
    font-family: var(--font-headings);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
}
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); }

.btn-link {
    display: block;
    margin-top: 8px;
    color: var(--gray-text);
    text-decoration: underline;
    font-size: 0.85rem;
    text-align: center;
}

/* Honeypot */
.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; overflow: hidden; }

/* Form Fields */
.error-msg { color: var(--error); font-size: 0.85rem; margin-top: 4px; }
.muted { color: var(--gray-text); font-size: 0.9rem; }

.field { margin-bottom: 18px; }
.field label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 6px;
    color: var(--light-text);
    letter-spacing: 0.02em;
}
.field input, .field select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    font: inherit;
    font-family: var(--font-main);
    background: var(--accent-2);
    color: var(--light-text);
    transition: border-color 0.2s;
}
.field input:focus, .field select:focus {
    outline: none;
    border-color: var(--primary);
}
.field input::placeholder { color: #555; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 540px) { .field-row { grid-template-columns: 1fr; } }

/* Bundle / Tarif Cards */
.bundle-card {
    position: relative;
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 24px;
    margin-bottom: 24px;
    background: rgba(0,0,0,0.25);
}
.bundle-image {
    display: block;
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    border-radius: var(--r-md);
    margin-bottom: 16px;
}
.bundle-name {
    font-family: var(--font-headings);
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--primary);
    margin: 0 0 8px;
}
.bundle-sub {
    color: var(--light-text);
    font-size: 1rem;
    font-weight: 500;
    margin: 0 0 12px;
}
.bundle-description {
    color: var(--gray-text);
    font-size: 0.95rem;
    margin: 0 0 16px;
}
.bundle-footnote {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px dashed var(--border);
    color: var(--gray-text);
    font-size: 0.8rem;
    font-style: italic;
}

.term-option {
    display: block;
    padding: 14px 16px;
    margin: 10px 0;
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    color: var(--light-text);
}
.term-option:hover { border-color: var(--primary); }
.term-option input[type="radio"] { margin-right: 10px; accent-color: var(--primary); }
.term-option:has(input:checked) {
    border-color: var(--primary);
    background: rgba(255,204,0,0.08);
}
.term-option strong { color: var(--primary); font-family: var(--font-headings); }

/* "Weitere Tarife" — Akkordeon */
.other-tariffs { margin: 16px 0 24px; }
.other-tariffs > summary {
    cursor: pointer;
    padding: 14px 18px;
    background: var(--accent-2);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    color: var(--gray-text);
    font-family: var(--font-headings);
    font-weight: 600;
    list-style: none;
    transition: border-color 0.2s, color 0.2s;
}
.other-tariffs > summary::-webkit-details-marker { display: none; }
.other-tariffs > summary::after {
    content: ' ▾';
    color: var(--primary);
    transition: transform 0.2s;
}
.other-tariffs[open] > summary::after { content: ' ▴'; }
.other-tariffs > summary:hover { border-color: var(--primary); color: var(--light-text); }
.other-tariffs[open] > summary { margin-bottom: 16px; }

/* Anschluss-Tarif Info — kompakt unter Term-Option und in Pruefen-Summary */
.follow-up-hint {
    margin: 8px 0 16px;
    padding: 10px 14px;
    background: rgba(255,204,0,0.06);
    border-left: 3px solid var(--primary);
    border-radius: 4px;
    font-size: 0.85rem;
    color: var(--gray-text);
    line-height: 1.5;
}
.follow-up-hint strong { color: var(--primary); font-family: var(--font-headings); }

/* Bundle Highlight: Angebote */
.bundle-card--offer {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary), 0 8px 24px rgba(255,204,0,0.12);
    position: relative;
}
.bundle-card--hot {
    box-shadow: 0 0 0 2px var(--primary), 0 12px 32px rgba(255,204,0,0.25);
    background: linear-gradient(145deg, rgba(255,204,0,0.06), rgba(0,0,0,0.2));
}
.bundle-card--hot::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: var(--r-md);
    background: linear-gradient(135deg, transparent, rgba(255,204,0,0.4), transparent);
    z-index: -1;
    animation: shimmer 3s infinite;
    opacity: 0;
}
@keyframes shimmer { 0%, 100% { opacity: 0; } 50% { opacity: 0.5; } }
.bundle-ribbon {
    display: inline-block;
    background: var(--primary);
    color: var(--darker-bg);
    font-family: var(--font-headings);
    font-weight: 700;
    font-size: 0.8rem;
    padding: 6px 14px;
    border-radius: 50px;
    margin-bottom: 12px;
    letter-spacing: 0.03em;
    box-shadow: 0 4px 12px rgba(255,204,0,0.3);
}

/* Inclusive Modules — Geschenk-Block */
.modules-inclusive {
    margin: 16px 0;
    padding: 16px;
    background: rgba(0,212,170,0.08);
    border: 1px solid rgba(0,212,170,0.3);
    border-radius: var(--r-md);
}
.inclusive-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.inclusive-header strong {
    color: var(--success);
    font-family: var(--font-headings);
    font-size: 0.95rem;
}
.inclusive-badge {
    display: inline-block;
    background: var(--success);
    color: var(--darker-bg);
    font-family: var(--font-headings);
    font-weight: 700;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 50px;
    letter-spacing: 0.03em;
}
.modules-inclusive ul { margin: 0; padding: 0; list-style: none; }
.modules-inclusive li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    color: var(--light-text);
    font-size: 0.95rem;
}
.modules-inclusive .check { color: var(--success); font-weight: 700; flex-shrink: 0; }
.module-image {
    width: 40px; height: 40px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}
.module-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}
.module-name { font-weight: 500; }
.module-desc {
    color: var(--gray-text);
    font-size: 0.85rem;
    line-height: 1.4;
}
.module-price {
    color: var(--primary);
    font-family: var(--font-headings);
    flex-shrink: 0;
    margin-left: auto;
}

/* Selectable / Optional */
.modules-selectable, .modules-optional {
    border: none;
    margin: 16px 0 0;
    padding: 0;
}
.modules-selectable legend, .modules-optional legend {
    font-family: var(--font-headings);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--gray-text);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0;
    margin-bottom: 8px;
}
.modules-selectable label, .modules-optional label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    margin: 8px 0;
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}
.modules-selectable label > input, .modules-optional label > input { flex-shrink: 0; }
.modules-optional strong.module-price { font-size: 0.95rem; }
.modules-selectable label:hover, .modules-optional label:hover { border-color: var(--primary); }
.modules-selectable input, .modules-optional input { accent-color: var(--primary); }
.modules-selectable label:has(input:checked), .modules-optional label:has(input:checked) {
    border-color: var(--primary);
    background: rgba(255,204,0,0.08);
}
.modules-optional strong { color: var(--primary); }

/* Price Summary */
.price-summary {
    background: var(--darker-bg);
    padding: 24px;
    border-radius: var(--r-md);
    margin-top: 32px;
    border: 1px solid var(--border);
}
.price-summary h3 {
    color: var(--primary);
    font-family: var(--font-headings);
    margin-bottom: 16px;
}
.price-summary dl {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px 24px;
    margin: 0;
}
.price-summary dt, .price-summary dd { margin: 0; }
.price-summary dt { color: var(--gray-text); }
.price-summary dd { color: var(--light-text); font-weight: 600; text-align: right; }

/* Signature Pad */
.signature-pad {
    margin: 20px 0;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    background: var(--accent-2);
}
.signature-pad label {
    display: block;
    font-family: var(--font-headings);
    font-weight: 600;
    margin-bottom: 8px;
}
.signature-pad canvas {
    background: #fff !important;
    border: 1px dashed #555 !important;
}

/* Summary-Liste (Step Pruefen) — Auflistung ohne Summenbildung */
.summary-list {
    list-style: none;
    margin: 16px 0 12px;
    padding: 20px;
    background: var(--darker-bg);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
}
.summary-list li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}
.summary-list li:last-child { border-bottom: none; }
.summary-list .summary-label { color: var(--light-text); }
.summary-list .summary-value { color: var(--primary); font-family: var(--font-headings); font-weight: 600; flex-shrink: 0; }

/* TextBlocks */
.textblock {
    margin: 12px 0;
    padding: 12px 16px;
    background: var(--darker-bg);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
}
.textblock summary { cursor: pointer; font-weight: 600; color: var(--primary); }
.textblock-body {
    padding: 16px 8px 8px;
    max-height: 240px;
    overflow-y: auto;
    font-size: 0.9rem;
    color: var(--gray-text);
    line-height: 1.5;
}
.confirm-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    margin: 8px 0;
    background: rgba(255,204,0,0.04);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    cursor: pointer;
}
.confirm-checkbox input { margin-top: 2px; accent-color: var(--primary); }
.link-modal {
    background: none;
    border: none;
    padding: 0;
    color: var(--primary);
    text-decoration: underline;
    cursor: pointer;
    font: inherit;
}
.link-modal:hover { color: var(--primary-hover); }

/* Modal / Dialog */
dialog.textblock-modal {
    width: min(640px, 92vw);
    max-height: 80vh;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    background: linear-gradient(145deg, #242424, #303030);
    color: var(--light-text);
    box-shadow: 0 25px 60px rgba(0,0,0,0.6);
    overflow: hidden;
}
dialog.textblock-modal::backdrop { background: rgba(0,0,0,0.7); }
dialog.textblock-modal .modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    background: var(--darker-bg);
}
dialog.textblock-modal .modal-header h3 {
    margin: 0;
    color: var(--primary);
    font-family: var(--font-headings);
    font-size: 1.2rem;
}
dialog.textblock-modal .modal-close {
    background: none; border: none; cursor: pointer;
    color: var(--gray-text); font-size: 1.6rem; line-height: 1;
    padding: 0 4px;
}
dialog.textblock-modal .modal-close:hover { color: var(--primary); }
dialog.textblock-modal .modal-body {
    padding: 20px;
    overflow-y: auto;
    max-height: calc(80vh - 140px);
    color: var(--light-text);
    line-height: 1.6;
    font-size: 0.95rem;
}
dialog.textblock-modal .modal-body p { color: var(--light-text); margin: 0 0 12px; }
dialog.textblock-modal .modal-body strong { color: var(--primary); }
dialog.textblock-modal .modal-footer {
    padding: 12px 20px;
    border-top: 1px solid var(--border);
    text-align: right;
    background: var(--darker-bg);
}

/* Consent-Hint unter "Weiter"-Button (Step Daten) — bewusst dezent */
.consent-hint {
    margin: 12px 0 0;
    padding: 0;
    background: none;
    border: none;
    font-size: 0.75rem;
    line-height: 1.45;
    color: #888;
    max-width: 480px;
}
.consent-hint strong { font-weight: 500; color: #aaa; }
.consent-hint a { color: #aaa; text-decoration: underline; }
.consent-hint a:hover { color: var(--primary); }

/* Fehler-Details (error.php) */
.error-details {
    margin: 16px 0;
    padding: 12px 16px;
    background: var(--darker-bg);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
}
.error-details summary { cursor: pointer; color: var(--gray-text); font-size: 0.9rem; }
.error-details pre {
    margin: 12px 0 0;
    padding: 12px;
    background: #000;
    color: #ff8a8a;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 0.8rem;
    border-radius: 4px;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-word;
}

/* Readonly Bank/BIC */
.field input[readonly] {
    background: var(--darker-bg);
    color: var(--gray-text);
    cursor: default;
    border-style: dashed;
}

/* Termin: Date-Strip + Time-Grid (matched zur Frühlings-Landingpage) */
.date-strip {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 6px;
    margin: 16px 0;
    scrollbar-width: none;
}
.date-strip::-webkit-scrollbar { display: none; }
.date-chip {
    flex-shrink: 0;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--accent-2);
    cursor: pointer;
    text-align: center;
    transition: border-color 0.15s, background 0.15s;
    min-width: 64px;
}
.date-chip:hover { border-color: var(--primary); }
.date-chip.sel {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--darker-bg);
}
.date-chip.empty { opacity: 0.35; cursor: default; pointer-events: none; }
.date-chip .wd {
    display: block;
    font-family: 'JetBrains Mono', 'Monaco', 'Consolas', monospace;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--gray-text);
}
.date-chip.sel .wd { color: var(--darker-bg); }
.date-chip .dm {
    display: block;
    font-family: var(--font-headings);
    font-weight: 600;
    font-size: 15px;
    margin-top: 3px;
}

.slots-area { margin-bottom: 16px; }
.time-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}
@media (max-width: 540px) { .time-grid { grid-template-columns: repeat(2, 1fr); } }
.time-btn {
    padding: 12px 6px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-family: var(--font-headings);
    font-weight: 500;
    font-size: 14px;
    text-align: center;
    cursor: pointer;
    background: var(--accent-2);
    color: var(--light-text);
    transition: border-color 0.15s, background 0.15s;
}
.time-btn:hover { border-color: var(--primary); }
.time-btn.sel {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--darker-bg);
    font-weight: 700;
}
.slots-msg {
    text-align: center;
    padding: 28px 0;
    font-size: 14px;
    color: var(--gray-text);
}
.trial-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    margin-top: 24px;
}
.trial-actions .btn-primary { width: 100%; max-width: 320px; text-align: center; }

/* Danke / Bestätigungs-Seite */
.booking-thanks { text-align: center; }
.booking-thanks .thanks-check {
    width: 80px; height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: var(--success);
    color: var(--darker-bg);
    display: flex;
    align-items: center;
    justify-content: center;
}
.booking-thanks .thanks-check svg { display: block; }
.booking-thanks .lead {
    font-size: 1.05rem;
    color: var(--light-text);
    margin-bottom: 8px;
}
.thanks-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    margin-top: 32px;
}
.thanks-actions .btn-primary { min-width: 260px; text-align: center; }

/* Code/IBAN */
code {
    font-family: 'Monaco', 'Consolas', monospace;
    background: var(--darker-bg);
    padding: 2px 8px;
    border-radius: 4px;
    color: var(--primary);
    font-size: 0.9em;
}

/* Mobile */
@media (max-width: 600px) {
    .booking-header { padding: 14px 16px; }
    .booking-logo img { height: 36px; }
    .booking-step { font-size: 0.75rem; }
    .booking-step-content { padding: 24px 20px; }
    h1 { font-size: 1.6rem; }
    h2 { font-size: 1.2rem; }
    .btn-primary, .btn-secondary { padding: 12px 24px; font-size: 0.95rem; }
}
