/* style.css */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #12141c;
    color: #f8f9fa;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.game-container {
    max-width: 1400px;
    width: 100%;
}

/* Obere Fragen-Box */
.question-box {
    background: #1e222b;
    border: 2px solid #2e3440;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    margin-bottom: 40px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.badge {
    display: inline-block;
    background: #4c566a;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

#current-question {
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.5;
}

/* 4-Spieler Raster-Layout */
.players-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* Responsive Anpassung für kleinere Screens */
@media (max-width: 1024px) {
    .players-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    .players-grid {
        grid-template-columns: 1fr;
    }
}

/* Einzelne Spielerkarte */
.player-card {
    background: #1e222b;
    border: 2px solid #2e3440;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Zustand: Dieser Spieler hat erfolgreich gebuzzert */
.player-card.state-buzzed {
    border-color: #bf616a;
    transform: scale(1.02);
    box-shadow: 0 0 20px rgba(191, 97, 106, 0.4);
}

.photo-container img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 2px solid #2e3440;
}

.player-details {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 15px;
}

.player-name {
    text-align: center;
    font-size: 1.2rem;
    color: #e5e9f0;
}

/* Interaktionszeile mit LED und Score */
.status-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    background: #151820;
    padding: 10px;
    border-radius: 8px;
}

.buzzer-led {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.buzzer-led.inactive {
    background-color: #4c566a;
}

.buzzer-led.active {
    background-color: #bf616a;
    box-shadow: 0 0 12px #bf616a;
}

.score-display {
    font-size: 1.8rem;
    font-weight: bold;
    color: #8fbcbb;
}

/* Schätzfragen-Eingabefeld */
.estimation-container {
    width: 100%;
}

.estimation-field {
    width: 100%;
    padding: 10px;
    background: #2e3440;
    border: 1px solid #4c566a;
    border-radius: 6px;
    color: #fff;
    text-align: center;
    font-size: 1rem;
}

.estimation-field:focus {
    outline: none;
    border-color: #88c0d0;
}

/* Test-Button */
.local-buzz-btn {
    background: #434c5e;
    color: #fff;
    border: none;
    padding: 10px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.2s;
}

.local-buzz-btn:hover {
    background: #4c566a;
}
/* --- STICKY FOOTER INTERAKTIONSBEREICH --- */
.player-action-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #1e222b;
    border-top: 3px solid #4c566a;
    padding: 20px;
    display: flex;
    justify-content: center;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.5);
    z-index: 1000;
}

/* Großer Buzzer Button */
.huge-buzzer-btn {
    background: #bf616a;
    color: white;
    font-size: 2rem;
    font-weight: bold;
    border: none;
    border-radius: 12px;
    padding: 20px 100px;
    cursor: pointer;
    box-shadow: 0 8px 0 #8f4850;
    transition: all 0.1s;
}

.huge-buzzer-btn:active {
    transform: translateY(8px);
    box-shadow: 0 0 0 #8f4850;
}

/* Eingabebereich Schätzfrage */
.estimation-input-group {
    display: flex;
    gap: 15px;
    width: 100%;
    max-width: 600px;
}

.estimation-input-group input {
    flex-grow: 1;
    padding: 15px;
    font-size: 1.2rem;
    border-radius: 8px;
    border: 2px solid #4c566a;
    background: #2e3440;
    color: white;
}

.lock-in-btn {
    background: #a3be8c; /* Grün für "Einloggen" */
    color: #12141c;
    font-size: 1.2rem;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    padding: 0 30px;
    cursor: pointer;
}

/* Anzeigen im Grid (Studio Display) */
.public-estimation-box {
    background: #2e3440;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
    min-height: 50px;
}

.status-thinking { color: #ebcb8b; font-style: italic; }
.status-locked { color: #a3be8c; }
.success-message { color: #a3be8c; font-size: 1.5rem; font-weight: bold; padding: 10px; text-align: center; }
/* Platzhalter für Spieler ohne Foto - Verhindert Ladeschleifen */
.avatar-placeholder {
    width: 100%;
    height: 180px;
    background: #434c5e;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3.5rem;
    font-weight: bold;
    color: #d8dee9;
    border-bottom: 2px solid #2e3440;
    text-transform: uppercase;
}