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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0F0D2E;
    color: #E2E8F0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 40px 16px;
}

.container {
    width: 100%;
    max-width: 560px;
}
@media (min-width: 720px) {
    .container { max-width: 720px; }
}
@media (min-width: 1024px) {
    .container { max-width: 820px; }
}

.logo {
    text-align: center;
    margin-bottom: 32px;
}
.logo h1 {
    font-size: 22px;
    color: #F39C12;
    font-weight: 700;
}
.logo p {
    font-size: 14px;
    color: #818CF8;
    margin-top: 4px;
}

.card {
    background: #1E1B4B;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}

.step-indicator {
    display: flex;
    gap: 8px;
    margin-bottom: 28px;
}
.step-dot {
    flex: 1;
    height: 4px;
    border-radius: 2px;
    background: #312E81;
}
.step-dot.active {
    background: #F39C12;
}
.step-dot.done {
    background: #4338CA;
}

h2 {
    font-size: 20px;
    color: #F39C12;
    margin-bottom: 8px;
}

.subtitle {
    font-size: 15px;
    color: #94A3B8;
    margin-bottom: 24px;
    line-height: 1.5;
}

label {
    display: block;
    font-size: 14px;
    color: #CBD5E1;
    margin-bottom: 6px;
    font-weight: 500;
}

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 12px 14px;
    background: #0F0D2E;
    border: 1px solid #312E81;
    border-radius: 8px;
    color: #E2E8F0;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.2s;
}
input:focus, textarea:focus {
    outline: none;
    border-color: #6D5BDE;
}
textarea {
    min-height: 100px;
    resize: vertical;
}

.field {
    margin-bottom: 20px;
}

.radio-group, .checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.radio-option, .checkbox-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: #0F0D2E;
    border: 1px solid #312E81;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.2s;
}
.radio-option:hover, .checkbox-option:hover {
    border-color: #6D5BDE;
}
.radio-option input, .checkbox-option input {
    accent-color: #F39C12;
    width: 18px;
    height: 18px;
}
.radio-option span, .checkbox-option span {
    font-size: 15px;
    color: #E2E8F0;
}

.btn {
    display: inline-block;
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #F39C12, #E67E22);
    color: #1E1B4B;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 8px;
    transition: transform 0.1s, opacity 0.2s;
}
.btn:hover { opacity: 0.9; }
.btn:active { transform: scale(0.98); }
.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Loading Spinner */
.loading {
    text-align: center;
    padding: 40px 0;
}
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #312E81;
    border-top-color: #F39C12;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 16px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading p {
    color: #818CF8;
    font-size: 15px;
}

/* Plan-Anzeige */
.plan-list {
    list-style: none;
    margin: 20px 0;
}
.plan-day {
    display: flex;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid #1a1747;
}
.plan-day:last-child { border-bottom: none; }

.day-num {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #4338CA, #6D5BDE);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
}
.day-content h3 {
    font-size: 15px;
    color: #E2E8F0;
    font-weight: 600;
    margin-bottom: 2px;
}
.day-content p {
    font-size: 13px;
    color: #94A3B8;
    line-height: 1.4;
}
.badge {
    display: inline-block;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
    margin-top: 4px;
}
.badge.beginner { background: #065F46; color: #6EE7B7; }
.badge.intermediate { background: #1E3A5F; color: #7DD3FC; }
.badge.advanced { background: #5B21B6; color: #C4B5FD; }

/* Week separator */
.week-header {
    font-size: 13px;
    color: #F39C12;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 16px 0 8px;
    margin-top: 8px;
}

.success-box {
    text-align: center;
    padding: 20px 0;
}
.success-box .emoji {
    font-size: 48px;
    margin-bottom: 12px;
}
.success-box h2 {
    color: #E2E8F0;
    margin-bottom: 8px;
}
.success-box p {
    color: #94A3B8;
    line-height: 1.6;
}

.cta-box {
    margin-top: 24px;
    padding: 20px;
    background: linear-gradient(135deg, #312E81, #1a1747);
    border-radius: 12px;
    text-align: center;
}
.cta-box p {
    color: #CBD5E1;
    font-size: 14px;
    margin-bottom: 12px;
}
.cta-box a.btn {
    text-decoration: none;
    display: block;
}

.error {
    background: #7F1D1D;
    color: #FCA5A5;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 16px;
}

/* ─── Slider-Feld (Lern-Profil in Step 2) ──────────────── */
.slider-field {
    margin-bottom: 28px;
    padding: 22px 24px 20px;
    background: linear-gradient(160deg, rgba(67,56,202,0.09), rgba(232,130,12,0.04) 70%);
    border: 1px solid rgba(67,56,202,0.25);
    border-radius: 14px;
    transition: border-color 0.15s, transform 0.1s;
}
.slider-field:focus-within {
    border-color: rgba(232,130,12,0.55);
    box-shadow: 0 0 0 3px rgba(232,130,12,0.10);
}
.slider-field > label {
    font-size: 17px;
    color: #FFFFFF;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 8px;
    display: block;
}

/* Track + Thumb */
.slider-track-wrap {
    position: relative;
    padding: 10px 0 4px;
}
.slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 12px;
    border-radius: 999px;
    background: linear-gradient(to right, #2A3160 0%, #4338CA 50%, #6D5BDE 100%);
    outline: none;
    cursor: pointer;
    position: relative;
    z-index: 2;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.35);
}
.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #FFB661, #E8820C 60%, #B85F00);
    border: 4px solid #0F0D2E;
    box-shadow: 0 0 0 1px rgba(232,130,12,0.5), 0 4px 16px rgba(232,130,12,0.45), 0 2px 4px rgba(0,0,0,0.4);
    cursor: grab;
    transition: transform 0.12s ease;
}
.slider::-webkit-slider-thumb:hover { transform: scale(1.08); }
.slider::-webkit-slider-thumb:active { cursor: grabbing; transform: scale(1.04); }
.slider::-moz-range-thumb {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #FFB661, #E8820C 60%, #B85F00);
    border: 4px solid #0F0D2E;
    box-shadow: 0 0 0 1px rgba(232,130,12,0.5), 0 4px 16px rgba(232,130,12,0.45), 0 2px 4px rgba(0,0,0,0.4);
    cursor: grab;
}

/* Stufen-Markierungen unter dem Track (1-6) */
.slider-ticks {
    display: flex;
    justify-content: space-between;
    margin: 10px 14px 4px;
    pointer-events: none;
}
.slider-tick {
    width: 4px;
    height: 8px;
    border-radius: 999px;
    background: rgba(255,255,255,0.16);
    transition: background 0.15s, height 0.15s;
}
.slider-tick.passed { background: rgba(232,130,12,0.55); }
.slider-tick.active { background: #E8820C; height: 12px; }

/* Readout-Karte (Titel + Beschreibung) */
.slider-readout {
    margin-top: 14px;
    padding: 16px 18px;
    background: rgba(15,13,46,0.55);
    border-left: 4px solid #E8820C;
    border-radius: 10px;
    min-height: 78px;
}
.slider-readout strong {
    display: block;
    font-size: 17px;
    color: #FFFFFF;
    line-height: 1.3;
    margin-bottom: 6px;
}
.slider-readout span {
    color: #B6C3DC;
    font-size: 14px;
    line-height: 1.55;
}

/* Anker-Skala unten (Endpunkte) */
.slider-scale {
    display: flex;
    justify-content: space-between;
    color: #7B94B8;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    font-weight: 600;
    margin-top: 12px;
    padding: 0 6px;
}

/* Auf größeren Screens: mehr Atemraum + Slider noch satter */
@media (min-width: 720px) {
    .slider-field { padding: 26px 28px 22px; }
    .slider { height: 14px; }
    .slider::-webkit-slider-thumb { width: 38px; height: 38px; }
    .slider::-moz-range-thumb     { width: 38px; height: 38px; }
    .slider-readout strong { font-size: 18px; }
}

/* Hinweis unter einer Feldbeschriftung — etwa „Mehrfachauswahl moeglich".
   Kommt aus dem Onboarding-Schema des Mandanten. */
.feld-hinweis {
    margin: -6px 0 10px;
    font-size: 13px;
    line-height: 1.45;
    color: #A5B4FC;
}
