/**
 * ============================================================================
 * DATEI-INFORMATIONEN
 * ============================================================================
 * Name:            quiz-question-types.css
 * Speicherort:     /wp-content/plugins/dsgvo-cards-evolution/assets/css/
 * Version:         6.3.0
 * Erstellt:        2026-02-03 16:30:00 UTC
 *
 * Beschreibung:    Styles für erweiterte Fragetypen (Multiple Choice,
 *                  Reihenfolge). Ergänzt style.css, nutzt dessen Farbschema.
 * ============================================================================
 */

/* =========================================================================
   TYP-BADGE (Hinweis über den Optionen)
   ========================================================================= */

.dsgvo-qt-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: 0.01em;
}

.dsgvo-qt-badge-icon {
    font-size: 16px;
}

.dsgvo-qt-badge-multiple {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.dsgvo-qt-badge-sequence {
    background: #faf5ff;
    color: #7c3aed;
    border: 1px solid #ddd6fe;
}

/* =========================================================================
   MULTIPLE CHOICE – Checkbox
   ========================================================================= */

.dsgvo-qt-checkbox {
    width: 24px;
    height: 24px;
    border: 2px solid #cbd5e1;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
    transition: all 0.2s;
    background: #fff;
}

.dsgvo-qt-checkbox-inner {
    width: 14px;
    height: 14px;
    border-radius: 3px;
    transition: all 0.15s;
}

/* Hover */
.dsgvo-qt-option:hover:not(.disabled) .dsgvo-qt-checkbox {
    border-color: #2563eb;
}

/* Checked */
.dsgvo-qt-option.dsgvo-qt-checked .dsgvo-qt-checkbox {
    background: #2563eb;
    border-color: #2563eb;
}

.dsgvo-qt-option.dsgvo-qt-checked .dsgvo-qt-checkbox-inner {
    width: 7px;
    height: 12px;
    border: solid #fff;
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg);
    margin-top: -2px;
    border-radius: 0;
}

/* Richtig */
.dsgvo-qt-option.correct .dsgvo-qt-checkbox {
    background: #10b981;
    border-color: #10b981;
}

.dsgvo-qt-option.correct .dsgvo-qt-checkbox-inner {
    width: 7px;
    height: 12px;
    border: solid #fff;
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg);
    margin-top: -2px;
    border-radius: 0;
}

/* Falsch */
.dsgvo-qt-option.incorrect .dsgvo-qt-checkbox {
    background: #ef4444;
    border-color: #ef4444;
}

.dsgvo-qt-option.incorrect .dsgvo-qt-checkbox-inner {
    width: 14px;
    height: 14px;
    position: relative;
    border: none;
    transform: none;
    margin-top: 0;
    border-radius: 0;
}

.dsgvo-qt-option.incorrect .dsgvo-qt-checkbox-inner::before,
.dsgvo-qt-option.incorrect .dsgvo-qt-checkbox-inner::after {
    content: '';
    position: absolute;
    width: 14px;
    height: 2.5px;
    background: #fff;
    top: 50%;
    left: 0;
}

.dsgvo-qt-option.incorrect .dsgvo-qt-checkbox-inner::before {
    transform: translateY(-50%) rotate(45deg);
}

.dsgvo-qt-option.incorrect .dsgvo-qt-checkbox-inner::after {
    transform: translateY(-50%) rotate(-45deg);
}

/* Verpasst (richtig, aber nicht gewählt) */
.dsgvo-qt-option.dsgvo-qt-missed {
    border-color: #f59e0b !important;
    background: #fffbeb !important;
}

.dsgvo-qt-option.dsgvo-qt-missed .dsgvo-qt-checkbox {
    border-color: #f59e0b;
    background: #fef3c7;
}

.dsgvo-qt-option.dsgvo-qt-missed .dsgvo-quiz-option-letter {
    background: #f59e0b;
    color: #fff;
}

/* =========================================================================
   SEQUENCE – Nummern-Kreis
   ========================================================================= */

.dsgvo-qt-seq-number {
    width: 32px;
    height: 32px;
    border: 2px dashed #cbd5e1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
    font-size: 16px;
    font-weight: 700;
    color: #94a3b8;
    transition: all 0.2s;
    background: #fff;
}

/* Nummeriert (in Sequenz) */
.dsgvo-qt-seq-number.dsgvo-qt-seq-active {
    border: 2px solid #7c3aed;
    background: #7c3aed;
    color: #fff;
}

/* Hover */
.dsgvo-qt-seq-option:hover:not(.disabled):not(.dsgvo-qt-numbered) .dsgvo-qt-seq-number {
    border-color: #7c3aed;
    color: #7c3aed;
}

/* Nummerierte Option hervorgehoben */
.dsgvo-qt-seq-option.dsgvo-qt-numbered {
    border-color: #c4b5fd;
    background: #faf5ff;
}

/* Ergebnis: Richtig */
.dsgvo-qt-seq-option.correct .dsgvo-qt-seq-number {
    background: #10b981;
    border-color: #10b981;
    border-style: solid;
    color: #fff;
}

/* Ergebnis: Falsch */
.dsgvo-qt-seq-option.incorrect .dsgvo-qt-seq-number {
    background: #ef4444;
    border-color: #ef4444;
    border-style: solid;
    color: #fff;
}

/* Richtige-Position-Hinweis */
.dsgvo-qt-seq-correct-pos {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    background: #dcfce7;
    color: #166534;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 6px;
}

/* =========================================================================
   FOOTER-BUTTONS
   ========================================================================= */

.dsgvo-qt-confirm-btn {
    min-width: 200px;
    font-size: 15px !important;
    padding: 12px 24px !important;
}

.dsgvo-qt-confirm-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.dsgvo-qt-reset-btn {
    padding: 10px 20px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #64748b;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.dsgvo-qt-reset-btn:hover {
    background: #e2e8f0;
    color: #475569;
}

/* =========================================================================
   FEEDBACK-BOX
   ========================================================================= */

.dsgvo-qt-feedback {
    margin-top: 16px;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
}

.dsgvo-qt-feedback-correct {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}

.dsgvo-qt-feedback-wrong {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* =========================================================================
   ADMIN: Fragetyp-Auswahl
   ========================================================================= */

.dsgvo-qt-admin-type-select {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.dsgvo-qt-admin-type-btn {
    padding: 10px 18px;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #666;
}

.dsgvo-qt-admin-type-btn:hover {
    border-color: #999;
    background: #f9f9f9;
}

/* Aktiv: Einzelauswahl (Grün) */
.dsgvo-qt-admin-type-btn.active[data-type="single"],
.dsgvo-qt-admin-type-btn.active:has(input[value="single"]) {
    border-color: #16a34a;
    background: #dcfce7;
    color: #166534;
    font-weight: 700;
    box-shadow: 0 0 0 1px #16a34a;
}

/* Aktiv: Mehrfachauswahl (Blau) */
.dsgvo-qt-admin-type-btn.active[data-type="multiple"],
.dsgvo-qt-admin-type-btn.active:has(input[value="multiple"]) {
    border-color: #2563eb;
    background: #dbeafe;
    color: #1e40af;
    font-weight: 700;
    box-shadow: 0 0 0 1px #2563eb;
}

/* Aktiv: Reihenfolge (Lila) */
.dsgvo-qt-admin-type-btn.active[data-type="sequence"],
.dsgvo-qt-admin-type-btn.active:has(input[value="sequence"]) {
    border-color: #7c3aed;
    background: #ede9fe;
    color: #5b21b6;
    font-weight: 700;
    box-shadow: 0 0 0 1px #7c3aed;
}

/* Fallback für Browser ohne :has() – allgemeiner Active-Style */
@supports not selector(:has(input)) {
    .dsgvo-qt-admin-type-btn.active {
        border-color: #2271b1;
        background: #e0effc;
        color: #135e96;
        font-weight: 700;
        box-shadow: 0 0 0 1px #2271b1;
    }
}

/* Admin: Mehrfach-Checkboxen für correct_answer */
.dsgvo-qt-admin-correct-multi {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.dsgvo-qt-admin-correct-multi label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 2px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.15s;
}

.dsgvo-qt-admin-correct-multi label:hover {
    border-color: #2271b1;
}

.dsgvo-qt-admin-correct-multi label:has(input:checked) {
    border-color: #2271b1;
    background: #f0f6fc;
}

/* Admin: Sequence sortable hint */
.dsgvo-qt-admin-seq-hint {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
    font-style: italic;
}

/* =========================================================================
   ADMIN: Typ-Badge in der Fragenübersicht
   ========================================================================= */

.dsgvo-qt-list-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.dsgvo-qt-list-badge-single {
    background: #f1f5f9;
    color: #64748b;
}

.dsgvo-qt-list-badge-multiple {
    background: #dbeafe;
    color: #1d4ed8;
}

.dsgvo-qt-list-badge-sequence {
    background: #ede9fe;
    color: #7c3aed;
}

/* =========================================================================
   RESPONSIVE
   ========================================================================= */

@media (max-width: 600px) {
    .dsgvo-qt-badge {
        font-size: 12px;
        padding: 6px 12px;
    }

    .dsgvo-qt-checkbox {
        width: 22px;
        height: 22px;
    }

    .dsgvo-qt-seq-number {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }

    .dsgvo-qt-confirm-btn {
        min-width: 160px;
        font-size: 14px !important;
    }

    .dsgvo-qt-admin-type-select {
        flex-direction: column;
    }
}
