:root {
    --glass: rgba(255, 255, 255, 0.95);
    --primary: #6c5ce7;
    --red: #ff7675;
    --green: #00b894;
    --yellow: #fdcb6e;
    --dark: #2d3436;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    /* Optimierter Hintergrund (weniger Akkuverbrauch als Animation) */
    background: linear-gradient(135deg, #74b9ff, #a29bfe);
    min-height: 100vh;
    /* Fix für iOS Safari Address Bar */
    min-height: 100dvh; 
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 15px;
    color: var(--dark);
}

.container {
    background: var(--glass);
    padding: 1.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 500px; /* Schmaler für Handy-Look */
    text-align: center;
    margin-top: 10px;
    margin-bottom: 50px;
}

h1 { font-size: 1.8rem; margin-bottom: 1rem; }
h2 { font-size: 1.4rem; }

/* Eingabefelder: Größere Schrift für Handy */
input[type="text"], input[type="password"] {
    width: 100%;
    padding: 15px;
    margin: 10px 0;
    border-radius: 12px;
    border: 2px solid #dfe6e9;
    font-size: 16px; /* Verhindert Zoom auf iOS */
    text-align: center;
    outline: none;
    -webkit-appearance: none;
}
input:focus { border-color: var(--primary); }

/* Buttons: Touch-freundlich */
button {
    cursor: pointer;
    border: none;
    outline: none;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 12px;
    touch-action: manipulation; /* Verbessert Klick-Reaktion */
}
button:active { opacity: 0.8; transform: scale(0.98); }

.btn-main {
    background: var(--primary);
    color: white;
    padding: 18px;
    width: 100%;
    font-size: 1.1rem;
    margin-top: 10px;
    box-shadow: 0 4px 12px rgba(108, 92, 231, 0.3);
}

.btn-small {
    padding: 8px 12px;
    font-size: 0.9rem;
    color: white;
    border-radius: 8px;
}

.bg-green { background: var(--green); }
.bg-red { background: var(--red); }
.bg-blue { background: #0984e3; }

/* Responsive Buzzer */
#buzzerBtn {
    /* Größe passt sich dem Bildschirm an */
    width: min(35vh, 60vw); 
    height: min(35vh, 60vw);
    border-radius: 50%;
    margin: 20px auto;
    font-size: 2rem;
    font-weight: 900;
    color: white;
    background: #b2bec3;
    box-shadow: 0 8px 0 #636e72;
    display: flex; justify-content: center; align-items: center;
    transition: all 0.1s;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

#buzzerBtn.open {
    background: var(--green);
    box-shadow: 0 8px 0 #00896f;
    cursor: pointer;
}
#buzzerBtn.open:active { 
    transform: translateY(8px); 
    box-shadow: 0 0 0 #00896f; 
}

#buzzerBtn.locked {
    background: var(--red);
    box-shadow: 0 8px 0 #c0392b;
    opacity: 0.6;
}

/* Listen */
.player-row {
    background: #f1f2f6;
    margin: 8px 0;
    padding: 12px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.quiz-img { 
    max-width: 100%; 
    max-height: 30vh; 
    object-fit: contain;
    border-radius: 10px; 
    margin: 10px 0; 
}

.hidden { display: none !important; }

/* Hover-Effekte entfernen auf Touchscreens */
@media (hover: hover) {
    button:hover { opacity: 0.9; }
}