/* ── Qualifikationsformular Overlay ─────────────────────── */
.cs-qual-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(24, 36, 58, 0.72);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    backdrop-filter: blur(3px);
    animation: cs-qual-fadein .25s ease;
}

@keyframes cs-qual-fadein {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.cs-qual-modal {
    position: relative;
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    background: var(--lp-surface, #ffffff);
    border-radius: 20px;
    box-shadow: 0 24px 64px rgba(24, 36, 58, 0.22);
    padding: 40px 36px 32px;
    animation: cs-qual-slidein .3s cubic-bezier(.22,1,.36,1);
}

@keyframes cs-qual-slidein {
    from { transform: translateY(24px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

/* Fortschrittsbalken */
.cs-qual-progress {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--lp-border-soft, #e8eef9);
    border-radius: 20px 20px 0 0;
    overflow: hidden;
}

.cs-qual-progress__bar {
    height: 100%;
    background: var(--lp-primary, #5e7fc4);
    transition: width .35s ease;
    border-radius: 20px;
}

/* Schließen-Button */
.cs-qual-close {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    font-size: 22px;
    line-height: 1;
    color: var(--lp-text-soft, #6f7f98);
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s;
}

.cs-qual-close:hover {
    background: var(--lp-bg-alt, #e6edf8);
}

/* Schritt-Inhalte */
.cs-qual-step__icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--lp-primary-light, #dfe9ff);
    color: var(--lp-primary-dark, #4e6fb3);
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.cs-qual-step__icon--warn {
    background: #fef9c3;
    color: #854d0e;
}

.cs-qual-step__title {
    font-size: clamp(1.25rem, 3vw, 1.6rem);
    font-weight: 700;
    color: var(--lp-text, #24324a);
    margin: 0 0 12px;
    line-height: 1.25;
}

.cs-qual-step__lead {
    font-size: 1.02rem;
    color: var(--lp-text-soft, #6f7f98);
    line-height: 1.7;
    margin: 0 0 20px;
}

.cs-qual-step__hint {
    font-size: 0.88rem;
    color: var(--lp-text-soft, #6f7f98);
    margin: 0 0 20px;
    padding: 10px 14px;
    background: var(--lp-bg, #eef3fb);
    border-radius: 8px;
    line-height: 1.6;
}

/* Auswahl-Kacheln */
.cs-qual-choices {
    display: grid;
    gap: 10px;
    margin-bottom: 24px;
}

.cs-qual-choice {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1.5px solid var(--lp-border, #dbe5f5);
    border-radius: 12px;
    cursor: pointer;
    transition: border-color .15s, background .15s;
    background: var(--lp-surface, #fff);
}

.cs-qual-choice:hover {
    border-color: var(--lp-primary, #5e7fc4);
    background: var(--lp-accent-soft, #eef4ff);
}

.cs-qual-choice input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--lp-primary, #5e7fc4);
    flex-shrink: 0;
}

.cs-qual-choice input[type="radio"]:checked + .cs-qual-choice__label {
    font-weight: 600;
    color: var(--lp-primary-dark, #4e6fb3);
}

.cs-qual-choice:has(input:checked) {
    border-color: var(--lp-primary, #5e7fc4);
    background: var(--lp-primary-light, #dfe9ff);
}

.cs-qual-choice__label {
    font-size: 1rem;
    color: var(--lp-text, #24324a);
    line-height: 1.4;
}

/* Geburtsdatum */
.cs-qual-birthday {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
}

.cs-qual-birthday__field {
    flex: 1;
    padding: 14px 12px;
    border: 1.5px solid var(--lp-border, #dbe5f5);
    border-radius: 10px;
    font-size: 1.1rem;
    text-align: center;
    background: var(--lp-surface, #fff);
    color: var(--lp-text, #24324a);
    transition: border-color .15s;
}

.cs-qual-birthday__field:focus {
    outline: none;
    border-color: var(--lp-primary, #5e7fc4);
}

.cs-qual-birthday__field--year {
    flex: 2;
    min-width: 90px;
}

/* Textarea */
.cs-qual-textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid var(--lp-border, #dbe5f5);
    border-radius: 12px;
    font-size: 1rem;
    color: var(--lp-text, #24324a);
    background: var(--lp-surface, #fff);
    resize: vertical;
    min-height: 100px;
    margin-bottom: 16px;
    transition: border-color .15s;
    font-family: inherit;
    line-height: 1.6;
}

.cs-qual-textarea:focus {
    outline: none;
    border-color: var(--lp-primary, #5e7fc4);
}

/* Buttons */
.cs-qual-step__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.cs-qual-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 22px;
    border-radius: 10px;
    border: none;
    font-size: 0.97rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform .15s, opacity .15s, background .15s;
    line-height: 1;
    white-space: nowrap;
}

.cs-qual-btn:hover {
    transform: translateY(-1px);
    opacity: .95;
}

.cs-qual-btn--primary {
    background: var(--lp-primary, #5e7fc4);
    color: #fff;
    flex: 1;
}

.cs-qual-btn--primary:disabled {
    opacity: .45;
    cursor: not-allowed;
    transform: none;
}

.cs-qual-btn--back {
    background: var(--lp-bg-alt, #e6edf8);
    color: var(--lp-text-soft, #6f7f98);
}

.cs-qual-btn--ghost {
    background: transparent;
    color: var(--lp-text-soft, #6f7f98);
    border: 1.5px solid var(--lp-border, #dbe5f5);
    width: 100%;
}

.cs-qual-btn--full {
    width: 100%;
}

/* Responsive */
@media (max-width: 600px) {
    .cs-qual-modal { padding: 32px 20px 24px; }
    .cs-qual-step__actions { flex-direction: column; }
    .cs-qual-btn--back { order: 2; }
    .cs-qual-btn--primary { order: 1; }
}
