/* ============================================================
   emailconversion · emc-buchen.css
   Version : 1.0.4
   Stand   : 07.04.2026
   Autor   : EMC Development
   ============================================================
   CSS für die öffentliche Buchungsstrecke (buchen.php).
   Eingebunden via: <link rel="stylesheet" href="/emc-buchen.css?v=1.0.0">
   ============================================================ */

:root {
    --emc: #2471be;
    --emc-dark: #1a5a9e;
    --emc-dim: rgba(36,113,190,.08);
    --success: #2d9f6e;
    --warn: #e8a020;
    --error: #e03e52;
    --text: #1a1d24;
    --muted: #6b7280;
    --border: #e5e7eb;
    --surface: #f9fafb;
    --white: #ffffff;
    --radius: 8px;
    --shadow: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
    --shadow-md: 0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.06);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--surface);
    color: var(--text);
    min-height: 100vh;
    font-size: 15px;
    line-height: 1.6;
}

/* ── Header ─────────────────────────────────────── */
.bk-header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.bk-logo {
    font-family: 'DM Mono', monospace;
    font-size: 13px;
    font-weight: 500;
    color: var(--emc);
    letter-spacing: .05em;
    text-decoration: none;
}
.bk-logo-dot {
    display: inline-block;
    width: 7px; height: 7px;
    background: var(--emc);
    border-radius: 50%;
    margin-right: 8px;
    box-shadow: 0 0 8px var(--emc);
}

/* ── Progress-Bar ────────────────────────────────── */
.progress-wrap {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 0 24px;
}
.progress-bar {
    display: flex;
    align-items: center;
    max-width: 860px;
    margin: 0 auto;
    padding: 16px 32px;
    gap: 0;
}
.progress-step {
    display: flex;
    align-items: center;
    flex: 1;
    position: relative;
}
.progress-step:last-child { flex: 0; }
.progress-dot {
    width: 28px; height: 28px;
    border-radius: 50%;
    border: 2px solid var(--border);
    background: var(--white);
    display: flex; align-items: center; justify-content: center;
    font-size: 11px;
    font-family: 'DM Mono', monospace;
    color: var(--muted);
    flex-shrink: 0;
    transition: all .2s;
    z-index: 1;
}
.progress-dot.aktiv { border-color: var(--emc); color: var(--emc); background: var(--emc-dim); }
.progress-dot.fertig { border-color: var(--emc); background: var(--emc); color: #fff; }
.progress-label {
    font-size: 11px;
    color: var(--muted);
    margin-left: 6px;
    white-space: nowrap;
    transition: color .2s;
}
.progress-label.aktiv { color: var(--emc); font-weight: 500; }
.progress-label.fertig { color: var(--emc); }
.progress-line {
    flex: 1;
    height: 2px;
    background: var(--border);
    margin: 0 8px;
    transition: background .2s;
}
.progress-line.fertig { background: var(--emc); }

/* ── Container ───────────────────────────────────── */
.bk-main {
    max-width: 860px;
    margin: 48px auto;
    padding: 0 32px 80px;
}

/* ── Card ────────────────────────────────────────── */
.card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 40px;
    margin-bottom: 20px;
}
.card-title {
    font-size: 20px;
    font-weight: 500;
    letter-spacing: -.02em;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}

/* ── Formular-Elemente ───────────────────────────── */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-full  { grid-column: 1 / -1; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    letter-spacing: 0;
    color: var(--text);
    font-weight: 500;
}
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="url"],
.field select,
.field textarea {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    padding: 10px 14px;
    outline: none;
    transition: border-color .15s;
    width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
    border-color: var(--emc);
    background: var(--white);
}
.field .hinweis {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.4;
}

/* ── Radio-Karten ────────────────────────────────── */
.radio-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.radio-grid.single { grid-template-columns: 1fr; }

.radio-karte {
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    cursor: pointer;
    transition: all .15s;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: var(--white);
}
.radio-karte:hover { border-color: var(--emc); background: var(--emc-dim); }
.radio-karte.ausgewaehlt { border-color: var(--emc); background: var(--emc-dim); }
.radio-karte input[type="radio"] {
    width: 18px; height: 18px;
    accent-color: var(--emc);
    flex-shrink: 0;
    margin-top: 2px;
}
.radio-karte-body { flex: 1; }
.radio-karte-titel { font-weight: 500; font-size: 14px; margin-bottom: 2px; }
.radio-karte-sub   { font-size: 12px; color: var(--muted); line-height: 1.4; }
.radio-karte-icon  { font-size: 22px; flex-shrink: 0; }

/* ── Plan-Karten (alt, noch für Wechselkunde) ────── */
.plan-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.plan-karte {
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 16px;
    cursor: pointer;
    transition: all .15s;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--white);
}
.plan-karte:hover  { border-color: var(--emc); }
.plan-karte.ausgewaehlt { border-color: var(--emc); background: var(--emc-dim); }
.plan-karte input[type="radio"] {
    width: 16px; height: 16px;
    accent-color: var(--emc);
    flex-shrink: 0;
}
.plan-karte-name { font-weight: 500; font-size: 14px; }
.plan-karte-preis { font-family: 'DM Mono', monospace; font-size: 12px; color: var(--muted); }

/* ── Live-Preis ──────────────────────────────────── */
.preis-box {
    background: linear-gradient(135deg, var(--emc-dim) 0%, rgba(36,113,190,.04) 100%);
    border: 1.5px solid var(--emc);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin-top: 24px;
    display: none;
}
.preis-box.visible { display: block; }
.preis-label { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.preis-betrag { font-size: 28px; font-weight: 300; letter-spacing: -.03em; color: var(--text); line-height: 1; }
.preis-betrag .preis-cur { font-size: 16px; vertical-align: super; }
.preis-hinweis { font-size: 11px; color: var(--muted); margin-top: 6px; }
.plan-desc-box {
    background: var(--surface);
    border-radius: 6px;
    padding: 14px 16px;
    margin-top: 16px;
    font-size: 13px;
    color: var(--muted);
    line-height: 1.6;
    display: none;
}
.plan-desc-box.visible { display: block; }
.plan-desc-box strong { color: var(--text); display: block; margin-bottom: 4px; }

/* ── Checkbox-Reihen ─────────────────────────────── */
.checkbox-sektion {
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 12px;
    overflow: hidden;
}
.checkbox-sektion-head {
    background: var(--emc-dim);
    padding: 12px 16px;
    font-weight: 500;
    font-size: 14px;
    color: var(--text);
    border-bottom: 1px solid var(--border);
}
.checkbox-sektion-body { padding: 16px; }
.checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 8px 0;
    font-size: 13px;
    line-height: 1.5;
}
.checkbox-row:first-child { padding-top: 0; }
.checkbox-row:last-child  { padding-bottom: 0; }
.checkbox-row input[type="checkbox"] {
    width: 17px; height: 17px;
    accent-color: var(--emc);
    flex-shrink: 0;
    margin-top: 2px;
    cursor: pointer;
}
.checkbox-row label { cursor: pointer; }
.checkbox-row a { color: var(--emc); text-decoration: none; }
.checkbox-row a:hover { text-decoration: underline; }
.checkbox-opt { color: var(--muted); }

/* ── Buttons ─────────────────────────────────────── */
.btn-row { display: flex; gap: 12px; justify-content: flex-end; margin-top: 24px; align-items: center; }
.btn {
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    padding: 11px 24px;
    border-radius: 6px;
    border: 1.5px solid var(--border);
    background: var(--white);
    color: var(--text);
    cursor: pointer;
    text-decoration: none;
    transition: all .15s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.btn:hover { border-color: var(--muted); }
.btn-primary {
    background: var(--emc);
    border-color: var(--emc);
    color: #fff;
    padding: 11px 32px;
}
.btn-primary:hover { background: var(--emc-dark); border-color: var(--emc-dark); }
.btn-primary:disabled { opacity: .6; cursor: not-allowed; }

/* ── Fehler/Info-Boxen ───────────────────────────── */
.alert {
    border-radius: var(--radius);
    padding: 12px 16px;
    font-size: 13px;
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}
.alert-error  { background: rgba(224,62,82,.08);  border: 1px solid var(--error);   color: var(--error);   }
.alert-info   { background: rgba(36,113,190,.08); border: 1px solid var(--emc);     color: var(--emc);     }
.alert-warn   { background: rgba(232,160,32,.08); border: 1px solid var(--warn);    color: #9a6e0e;        }
.alert-success{ background: rgba(45,159,110,.08); border: 1px solid var(--success); color: var(--success); }
.alert-icon { font-size: 16px; flex-shrink: 0; margin-top: 1px; }

/* ── Plan-Blöcke (progressiv) ────────────────────── */
.plan-block { margin-bottom: 28px; }
.plan-block-hidden { display: none; }
.plan-block-label {
    font-size: 16px;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 14px;
    letter-spacing: -.01em;
}

/* ── Plan-Karten v2 (Schritt 2, 4-spaltig) ───────── */
.plan-grid-3 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
.plan-karte-v2 {
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 16px;
    cursor: pointer;
    transition: all .15s;
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: var(--white);
    position: relative;
}
.plan-karte-v2:hover { border-color: var(--emc); background: var(--emc-dim); }
.plan-karte-v2.ausgewaehlt { border-color: var(--emc); background: var(--emc-dim); }
.plan-karte-v2.ausgewaehlt::after {
    content: '✓';
    position: absolute;
    top: 8px; right: 10px;
    font-size: 12px;
    color: var(--emc);
    font-weight: 600;
}
.plan-karte-v2 input[type="radio"] { display: none; }
.plan-karte-v2-name  { font-weight: 600; font-size: 14px; }
.plan-karte-v2-sub   { font-size: 11px; color: var(--muted); line-height: 1.3; }
.plan-karte-v2-preis { font-size: 12px; color: var(--muted); margin-top: 6px; font-family: 'DM Mono', monospace; }
.plan-karte-enterprise { border-style: dashed; cursor: default; }
.plan-karte-enterprise:hover { border-color: #2d9f6e; background: rgba(45,159,110,.05); }

/* ── Zwischenüberschriften ───────────────────────── */
.section-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    letter-spacing: 0;
    text-transform: none;
    margin-bottom: 14px;
}

/* ── Divider ─────────────────────────────────────── */
.divider { height: 1px; background: var(--border); margin: 24px 0; }

/* ── Danke-Seite ─────────────────────────────────── */
.danke-hero { text-align: center; padding: 48px 24px; }
.danke-icon  { font-size: 56px; margin-bottom: 20px; }
.danke-titel { font-size: 28px; font-weight: 400; letter-spacing: -.02em; margin-bottom: 12px; }
.danke-sub   { font-size: 16px; color: var(--muted); max-width: 440px; margin: 0 auto 32px; line-height: 1.6; }

/* ── Stripe ──────────────────────────────────────── */
#stripe-element {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: 6px;
    padding: 12px 14px;
    transition: border-color .15s;
}
#stripe-element.StripeElement--focus   { border-color: var(--emc); }
#stripe-element.StripeElement--invalid { border-color: var(--error); }

/* ── Info-Leiste ─────────────────────────────────── */
.info-leiste {
    background: var(--emc-dim);
    border: 1px solid rgba(36,113,190,.2);
    border-radius: 6px;
    padding: 12px 16px;
    font-size: 13px;
    color: #1a4a80;
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
}


/* ── URL-Input-Gruppe ────────────────────────────── */
.url-input-wrap {
    display: flex;
    align-items: stretch;
    border: 1.5px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
    background: var(--surface);
    transition: border-color .15s;
}
.url-input-wrap:focus-within {
    border-color: var(--emc);
    background: var(--white);
}
.url-prefix,
.url-suffix {
    background: var(--surface);
    padding: 10px 14px;
    font-size: 14px;
    color: var(--muted);
    white-space: nowrap;
    flex-shrink: 0;
    line-height: 1.6;
}
.url-input-wrap:focus-within .url-prefix,
.url-input-wrap:focus-within .url-suffix {
    background: var(--white);
}
.url-input-mid {
    flex: 1;
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    padding: 10px 4px;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    color: var(--text);
    outline: none;
    min-width: 80px;
}
.url-input-mid:focus {
    background: transparent !important;
    border-color: transparent !important;
}

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 700px) {
    .plan-grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 580px) {
    .form-grid   { grid-template-columns: 1fr; }
    .radio-grid  { grid-template-columns: 1fr; }
    .plan-grid   { grid-template-columns: 1fr; }
    .plan-grid-3 { grid-template-columns: 1fr; }
    .bk-main     { padding: 0 16px 60px; margin-top: 24px; }
    .card        { padding: 20px; }
    .btn-row     { flex-direction: column-reverse; }
    .btn, .btn-primary { width: 100%; justify-content: center; }
}

/* ── Kontakt-Schieberegler ───────────────────────── */
.slider-wrap {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 28px;
}
.slider-wert-zeile {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 8px;
}
.slider-kontakt-zahl {
    font-size: 24px;
    font-weight: 500;
    color: var(--text);
    letter-spacing: -.02em;
}
.slider-email-info {
    font-size: 13px;
    color: var(--muted);
    font-family: 'DM Sans', sans-serif;
}
.kontakt-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    border-radius: 2px;
    /* Fill wird über JS als inline style.background gesetzt */
    background: var(--border);
    outline: none;
    cursor: pointer;
    margin-bottom: 14px;
    display: block;
}
.kontakt-slider::-webkit-slider-runnable-track {
    height: 4px;
    border-radius: 2px;
}
.kontakt-slider::-moz-range-track {
    height: 4px;
    border-radius: 2px;
    background: var(--border);
}
.kontakt-slider::-moz-range-progress {
    height: 4px;
    border-radius: 2px;
    background: var(--emc);
}
.kontakt-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--emc);
    cursor: pointer;
    border: 3px solid #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,.2);
    transition: transform .1s;
    margin-top: -8px; /* Thumb vertikal zentrieren auf Track */
}
.kontakt-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}
.kontakt-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--emc);
    cursor: pointer;
    border: 3px solid #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,.2);
}
.slider-stufen {
    display: flex;
    justify-content: space-between;
    margin-top: 4px;
}
.slider-stufe {
    font-size: 11px;
    color: #4b5563;
    font-family: 'DM Sans', sans-serif;
    text-align: center;
    cursor: pointer;
    padding: 2px 0;
    transition: color .1s;
    user-select: none;
}
.slider-stufe:hover { color: var(--emc); }
.slider-stufe.aktiv {
    color: var(--emc);
    font-weight: 600;
}
