body {
    font-family: Arial, sans-serif;
    background-color: #f3f4f6;
    margin: 0;
    padding: 20px;
    color: #1f2937;
}

.scout-container {
    max-width: 800px;
    margin: 0 auto;
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

h2 {
    color: #1e3a8a;
    margin-top: 0;
}

.game-control {
    margin-bottom: 20px;
}

.game-control select {
    padding: 8px;
    width: 60%;
    margin-top: 5px;
}

.game-control button {
    padding: 8px 12px;
    cursor: pointer;
}

/* 1. GROSSE SMARTPHONE-AKTIONS-BUTTONS OBEN */
.action-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.action-buttons button {
    flex: 1;
    padding: 18px 10px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    border: none;
    color: white;
    text-align: center;
}

#btn-ass { 
    background-color: #10b981; 
}

#btn-okay { 
    background-color: #0284c7; 
}

#btn-error { 
    background-color: #dc2626; 
}

/* 2. SPIELER-AUSWAHL ALS PERFEKTES 3x2 GRID */
.player-selection {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.player-btn {
    width: 100%;
    padding: 12px 10px;
    border: 1px solid #d1d5db;
    background: #e5e7eb;
    cursor: pointer;
    border-radius: 4px;
    font-size: 14px;
    text-align: center;
    box-sizing: border-box;
}

.player-btn.active {
    background: #2563eb;
    color: white;
    border-color: #1d4ed8;
}

/* 3. FUNKTIONS-BUTTONS */
.footer-buttons {
    margin-top: 15px;
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
}

.footer-buttons button {
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    color: white;
}

#btn-end-set { 
    background: #4f46e5; 
}

#btn-pdf-export { 
    background: #059669; 
}

#btn-reset-scout { 
    background: #ef4444; 
}

/* 4. LIVE-ANZEIGE DES AKTIVEN SPIELERS UNTEN */
.counter-display {
    display: block;
    margin-top: 20px;
    background: #f9fafb;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}

.counter-display span {
    font-weight: bold;
}

/* TABELLE FÜR SATZ-GESAMTAUSWERTUNG */
.evaluation-section {
    margin-top: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

th, td {
    border: 1px solid #e5e7eb;
    padding: 10px;
    text-align: center;
}

th {
    background: #1e3a8a;
    color: white;
}
/* Nur für Smartphones (max. 768px Breite) */
@media screen and (max-width: 768px) {
    /* Lässt die Tabelle auf Smartphones horizontal scrollen, statt dass sie übersteht */
    .table-container, #set-table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    #set-table {
        font-size: 0.8rem; /* Macht den Text in der Tabelle auf Handys etwas kompakter */
    }

    #set-table th, #set-table td {
        padding: 6px 4px; /* Reduziert die Innenabstände der Zellen */
        white-space: nowrap; /* Verhindert unsaubere Zeilenumbrüche im Text */
    }
}