:root {
    --wwds-bg: #0a0a2e;
    --wwds-panel: #1a1a5e;
    --wwds-border: #4040aa;
    --wwds-cyan: #00cfff;
    --wwds-magenta: #ff007f;
    --wwds-gold: #ffd700;
    --wwds-green: #10b981;
    --wwds-red: #ef4444;
    --wwds-orange: #ff8c00;
}

* {
    box-sizing: border-box;
}

/* Haupt-Container */
.quiz-container {
    max-width: 750px;
    width: 100%;
    padding: 25px 20px;
    background: radial-gradient(ellipse at center top, #1e1e6e 0%, #0a0a2e 60%);
    border-radius: 16px;
    box-shadow: 0 0 60px rgba(0, 100, 255, 0.3), 0 20px 40px rgba(0,0,0,0.7);
    border: 2px solid #3333aa;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: #ffffff;
    margin: 20px auto;
}

/* Überschrift / Frage-Box */
.quiz-container h2 {
    color: #ffffff !important;
    margin-top: 0;
    margin-bottom: 25px;
    font-size: 22px;
    text-align: center;
    font-weight: 700;
    letter-spacing: 0.3px;
    line-height: 1.4;
}

/* Frage-Box mit leuchtendem Rahmen */
#quiz-question {
    background: linear-gradient(135deg, #12126e, #1a1a8e);
    border: 2px solid #5555cc;
    border-radius: 12px;
    padding: 20px 25px;
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    line-height: 1.4;
    margin-bottom: 20px;
    box-shadow: 0 0 20px rgba(80, 80, 220, 0.4), inset 0 1px 1px rgba(255,255,255,0.05);
    color: #ffffff;
}

/* Kategorie-Auswahl-Knöpfe */
.category-btn {
    display: block;
    width: 100%;
    padding: 16px;
    margin: 12px 0;
    background: linear-gradient(135deg, #1a1a6e, #12124e);
    color: #fff;
    border: 2px solid #4444bb;
    border-radius: 50px;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.25s ease;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.category-btn:hover {
    background: linear-gradient(135deg, #2a2a9e, #1a1a7e);
    border-color: var(--wwds-cyan);
    box-shadow: 0 0 20px rgba(0, 207, 255, 0.5);
    transform: translateY(-2px);
}

/* Kopfzeile im Quiz */
.quiz-header {
    display: flex;
    justify-content: space-between;
    color: #8888cc;
    font-size: 13px;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-bottom: 1px solid #3333aa;
    padding-bottom: 10px;
    flex-wrap: wrap;
    gap: 5px;
}

#current-category-name {
    color: var(--wwds-cyan);
    font-weight: bold;
}

/* Antwort-Buttons */
.quiz-option {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0;
    margin: 10px 0;
    background: linear-gradient(135deg, #1a1a6e, #12124e);
    color: #fff;
    border: 2px solid #4444bb;
    border-radius: 50px;
    cursor: pointer;
    font-size: 17px;
    text-align: left;
    overflow: hidden;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.quiz-option:hover:not(:disabled) {
    background: linear-gradient(135deg, #2a2a9e, #1a1a7e);
    border-color: var(--wwds-cyan);
    box-shadow: 0 0 20px rgba(0, 207, 255, 0.4);
    transform: scale(1.01);
}

/* Buchstaben-Kreis */
.option-letter {
    background: transparent;
    border: 3px solid var(--wwds-orange);
    color: var(--wwds-orange);
    font-weight: 900;
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px 15px 10px 12px;
    font-size: 18px;
    flex-shrink: 0;
}

.option-text {
    padding: 12px 12px 12px 0;
    font-weight: 600;
    line-height: 1.3;
    flex: 1;
}

/* Richtig – Grün */
.quiz-option.correct-pulse {
    background: linear-gradient(135deg, #065f46, #047857) !important;
    border-color: #10b981 !important;
    box-shadow: 0 0 25px rgba(16, 185, 129, 0.7) !important;
    animation: correctFlash 0.5s ease;
}
.quiz-option.correct-pulse .option-letter {
    border-color: #6ee7b7 !important;
    color: #6ee7b7 !important;
}

/* Falsch – Rot */
.quiz-option.wrong-pulse {
    background: linear-gradient(135deg, #7f1d1d, #991b1b) !important;
    border-color: #ef4444 !important;
    box-shadow: 0 0 25px rgba(239, 68, 68, 0.7) !important;
    animation: shake 0.4s ease;
}
.quiz-option.wrong-pulse .option-letter {
    border-color: #fca5a5 !important;
    color: #fca5a5 !important;
}

/* Nächste Frage & Neu Starten Buttons */
#quiz-next, #quiz-restart {
    background: linear-gradient(180deg, #ffd700, #e0a800);
    color: #0a0a2e;
    border: none;
    padding: 15px;
    font-size: 17px;
    border-radius: 50px;
    cursor: pointer;
    width: 100%;
    margin-top: 20px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.2s;
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.4);
}

#quiz-next:hover, #quiz-restart:hover {
    background: linear-gradient(180deg, #ffe44d, #ffd700);
    box-shadow: 0 5px 25px rgba(255, 215, 0, 0.6);
    transform: translateY(-2px);
}

/* Ergebnis */
#quiz-score {
    text-align: center;
    padding: 20px 0;
    line-height: 1.8;
    font-size: 16px;
}

/* Sound-Leiste */
.quiz-utility-bar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 10px;
}

#quiz-toggle-sound {
    background: transparent;
    border: none;
    font-size: 22px;
    cursor: pointer;
    padding: 5px;
    transition: transform 0.2s;
    user-select: none;
}

#quiz-toggle-sound:hover {
    transform: scale(1.15);
}

.hidden {
    display: none !important;
}

/* ── RESPONSIVE – kleine Bildschirme ── */
@media (max-width: 600px) {
    .quiz-container {
        padding: 15px 12px;
        margin: 10px auto;
        border-radius: 12px;
    }

    #quiz-question {
        font-size: 16px;
        padding: 15px;
    }

    .quiz-option {
        font-size: 15px;
        margin: 8px 0;
    }

    .option-letter {
        width: 36px;
        height: 36px;
        min-width: 36px;
        font-size: 15px;
        margin: 8px 10px 8px 10px;
    }

    .option-text {
        padding: 10px 8px 10px 0;
    }

    .category-btn {
        font-size: 16px;
        padding: 14px;
    }

    #quiz-next, #quiz-restart {
        font-size: 15px;
        padding: 13px;
    }

    .quiz-container h2 {
        font-size: 18px;
    }

    .quiz-header {
        font-size: 11px;
    }
}

@media (max-width: 380px) {
    .quiz-container {
        padding: 12px 8px;
    }

    #quiz-question {
        font-size: 14px;
        padding: 12px;
    }

    .option-letter {
        width: 32px;
        height: 32px;
        min-width: 32px;
        font-size: 13px;
        margin: 6px 8px;
    }

    .quiz-option {
        font-size: 13px;
    }
}

/* Animationen */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes correctFlash {
    0%   { transform: scale(1);    filter: brightness(1); }
    50%  { transform: scale(1.02); filter: brightness(1.3); }
    100% { transform: scale(1);    filter: brightness(1); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25%       { transform: translateX(-6px); }
    75%       { transform: translateX(6px); }
}