:root {
    --bg-dark: #121214;
    --card-bg: #1e1e24;
    --border-color: #3b3127;
    --text-gold: #e5c158;
    --text-main: #f0f0f0;
    --btn-action: #2e7d32;
    --btn-primary: #1976d2;
    --btn-danger: #d32f2f;
    --btn-cancel: #616161;
}

body {
    margin: 0;
    padding: 20px;
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

.card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.5);
    margin-bottom: 20px;
}

h1 { margin: 0 0 10px 0; color: var(--text-gold); text-align: center; font-size: 2rem; }
.sub-header { display: flex; justify-content: space-between; font-size: 1.1rem; border-top: 1px solid #333; padding-top: 10px; }
.timer-container { text-align: center; font-size: 1.5rem; font-weight: bold; color: #ff9800; margin-top: 10px; }

.content-split { display: flex; gap: 20px; }
.panel-left { flex: 0 0 60%; max-height: 65vh; overflow-y: auto; }
.panel-right { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 15px; }

.button-stack button { width: 100%; padding: 18px; font-size: 1.1rem; }

.btn { border: none; border-radius: 6px; cursor: pointer; color: #fff; font-weight: bold; }
.btn-action { background-color: var(--btn-action); }
.btn-primary { background-color: var(--btn-primary); }
.btn-danger { background-color: var(--btn-danger); }
.btn-secondary { background-color: #5c6bc0; }
.btn-cancel { background-color: var(--btn-cancel); }
.btn:disabled { background-color: #444; color: #888; cursor: not-allowed; }

/* Pairings Tabelle analog Bild */
.match-table { width: 100%; border-collapse: collapse; margin: 15px 0; }
.match-table th, .match-table td { padding: 12px; text-align: left; border-bottom: 1px solid #2a2a30; }
.match-table th { color: var(--text-gold); background-color: #17171a; }
.match-table tr:nth-child(even) { background-color: #24242c; }

select, input[type="text"] {
    background-color: #2b2b36;
    color: #fff;
    border: 1px solid #555;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 1rem;
}

.footer-actions { display: flex; gap: 15px; justify-content: flex-end; margin-top: 20px; }
.footer-actions button { padding: 12px 24px; font-size: 1rem; }

.modal { position: fixed; inset: 0; background: rgba(0,0,0,0.8); display: flex; align-items: center; justify-content: center; }
.modal-content { width: 450px; }
.hidden { display: none !important; }
.checklist-box { max-height: 300px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; margin: 15px 0; }
