:root {
    --primary: #0D47A1;
    --primary-light: #1976D2;
    --accent: #2196F3;
    --bg-light: #F5F9FF;
    --text: #1A237E;
    --white: #ffffff;
    --danger: #D32F2F;
    --gold: #FFC107;
    --silver: #B0BEC5;
    --bronze: #A1887F;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #E3F2FD 0%, #BBDEFB 100%);
    margin: 0; min-height: 100vh;
    display: flex; justify-content: center; align-items: center; padding: 20px;
}

.container {
    width: 95%; max-width: 900px;
    background: var(--white); padding: 50px;
    border-radius: 40px; box-shadow: 0 30px 80px rgba(13, 71, 161, 0.2);
    text-align: center;
}

.hidden { display: none !important; }

/* --- FORMULARE --- */
.form-group { position: relative; width: 85%; margin: 25px auto; }
.form-group label { display: block; text-align: left; margin-left: 25px; margin-bottom: 10px; font-weight: 800; color: var(--primary); font-size: 0.9rem; text-transform: uppercase; }
.input-container { position: relative; display: flex; align-items: center; }
.input-icon { position: absolute; left: 25px; font-size: 1.5rem; color:#cccccc !important; }

input[type="text"], input[type="email"] {
    width: 100%; padding: 22px 22px 22px 70px; border: 3px solid #E3F2FD; border-radius: 60px;
    font-size: 1.2rem; font-weight: 600; color: var(--text); background: #fcfdfe; outline: none; transition: 0.3s ease;
}
input:focus { border-color: var(--accent); background: #fff; box-shadow: 0 10px 25px rgba(33, 150, 243, 0.15); }

/* --- SLIDER (25px Grippie) --- */
.difficulty-selector { margin: 0px auto;padding: 22px 22px 22px 22px; width: 85%;}
input[type="range"] { -webkit-appearance: none; width: 100%; height: 25px; background: #E3F2FD; border-radius: 30px; outline: none; cursor: pointer; }

/* Webkit (Chrome, Safari, Edge) */
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none; width: 25px; height: 25px; background: #fff; border: 7px solid var(--primary);
    border-radius: 50%; cursor: pointer; box-shadow: 0 10px 25px rgba(13, 71, 161, 0.4); margin-top: -20px;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
/* Firefox */
input[type="range"]::-moz-range-thumb {
    width: 25px; height: 25px; background: #fff; border: 7px solid var(--primary); border-radius: 50%;
    cursor: pointer; box-shadow: 0 10px 25px rgba(13, 71, 161, 0.4);
}

.slider-labels { display: flex; justify-content: space-between; margin-top: 25px; font-weight: 800; color: #90A4AE; font-size: 1rem; }
.slider-labels span.active { color: var(--primary); transform: scale(1.3); transition: 0.3s; }

/* --- QUIZ PAGE --- */
.quiz-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; padding: 20px 30px; background: var(--primary); color: white; border-radius: 25px; }
.timer-box { font-size: 1.8rem; font-weight: 900; font-family: monospace; background: rgba(255,255,255,0.2); padding: 5px 15px; border-radius: 12px; }
.joker-box { display: flex; align-items: center; gap: 10px; cursor: pointer; background: white; color: var(--primary); padding: 10px 20px; border-radius: 50px; font-weight: 800; transition: 0.2s; }
.joker-box.disabled-visual { opacity: 0.3; filter: grayscale(1); cursor: not-allowed; }

#question-container { background: var(--bg-light); padding: 40px 30px; border-radius: 30px; margin-bottom: 40px; border-left: 10px solid var(--accent); text-align: left; }
#question-text { font-size: 2.2rem; font-weight: 800; color: var(--primary); line-height: 1.3; margin: 0; }

.answers-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 25px; }
.answer-btn {
    position: relative; background: #fff; border: 3px solid #E3F2FD; padding: 30px 30px 30px 90px; border-radius: 25px;
    text-align: left; font-size: 1.3rem; font-weight: 700; color: var(--text); cursor: pointer; transition: 0.2s; min-height: 100px; display: flex; align-items: center;
}
.answer-btn::before {
    content: attr(data-letter); position: absolute; left: 20px; top: 50%; transform: translateY(-50%);
    width: 55px; height: 55px; background: var(--bg-light); color: var(--primary); border-radius: 15px;
    display: flex; align-items: center; justify-content: center; font-size: 1.6rem; font-weight: 900; border: 2px solid var(--accent);
}
.answer-btn:hover { border-color: var(--accent); background: var(--bg-light); transform: translateY(-5px); }
.answer-btn.disabled-joker { opacity: 0.1; pointer-events: none; transform: scale(0.9); }

/* --- RANGLISTE & MEDAILLEN --- */
.ranking-table { width: 100%; border-collapse: separate; border-spacing: 0 12px; }
.ranking-table td { padding: 20px; font-weight: 700; font-size: 1.3rem; background: var(--bg-light); }
.rank-badge { display: inline-block; width: 50px; height: 50px; line-height: 50px; border-radius: 50%; background: #ddd; color: white; font-weight: 900; font-size: 1.4rem; }
.medal-1 { background: var(--gold); box-shadow: 0 0 20px rgba(255, 193, 7, 0.4); }
.medal-2 { background: var(--silver); }
.medal-3 { background: var(--bronze); }

.btn-main { background: var(--primary); color: #fff; border: none; padding: 25px 80px; border-radius: 80px; cursor: pointer; font-weight: 900; font-size: 1.5rem; margin-top: 30px; transition: 0.3s; }
.btn-main:hover { transform: scale(1.05); background: var(--primary-light); }

@media (max-width: 768px) {
    .answers-grid { grid-template-columns: 1fr; }
    #question-text { font-size: 1.6rem; }
}