:root {
    --primary: #1e3a8a;
    --primary-hover: #1d4ed8;
    --success: #10b981;
    --bg: #f3f4f6;
    --text: #1f2937;
    --border: #e5e7eb;
    --card-bg: white;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    margin: 0;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

h1 { 
    margin: 0; 
    font-size: 24px; 
    color: var(--primary); 
}

.date-badge { 
    background: #e5e7eb; 
    padding: 6px 12px; 
    border-radius: 20px; 
    font-weight: bold; 
}

/* Navigation Tabs */
.tabs { 
    display: flex; 
    gap: 10px; 
    margin-bottom: 20px;
}

.tab-btn {
    background: white;
    border: 2px solid transparent;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.2s;
}

.tab-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.tab-content { 
    display: none; 
    background: white; 
    padding: 20px; 
    border-radius: 8px; 
    box-shadow: 0 1px 3px rgba(0,0,0,0.1); 
}

.tab-content.active { 
    display: block; 
}

.tab-description {
    margin-top: 0; 
    color: #6b7280;
}

/* Tisch-Grid */
.grid-tische {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.tisch-card {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

/* DEZENTE PASTELLFARBEN FÜR DIE TISCHE */
.tisch-card:nth-of-type(1) { background-color: #eff6ff; border-color: #bfdbfe; } /* Sanftes Blau */
.tisch-card:nth-of-type(2) { background-color: #f0fdf4; border-color: #bbf7d0; } /* Sanftes Grün */
.tisch-card:nth-of-type(3) { background-color: #fffbeb; border-color: #fef3c7; } /* Sanftes Gelb */
.tisch-card:nth-of-type(4) { background-color: #fdf2f8; border-color: #fbcfe8; } /* Sanftes Rosa */
.tisch-card:nth-of-type(5) { background-color: #faf5ff; border-color: #e9d5ff; } /* Sanftes Violett */
.tisch-card:nth-of-type(6) { background-color: #fff7ed; border-color: #ffedd5; } /* Sanftes Orange */
.tisch-card:nth-of-type(7) { background-color: #f0fdfa; border-color: #ccfbf1; } /* Sanftes Türkis */
.tisch-card:nth-of-type(8) { background-color: #f8fafc; border-color: #e2e8f0; } /* Sanftes Grau-Blau */

.tisch-title {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: bold;
    color: #1e3a8a;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding-bottom: 6px;
}

.input-group { 
    display: flex; 
    align-items: center; 
    margin-bottom: 8px; 
    gap: 10px; 
}

.input-group label { 
    width: 90px; 
    font-size: 14px; 
    color: #4b5563; 
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

input[type="text"], input[type="number"], select {
    width: 100%;
    padding: 8px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    box-sizing: border-box;
    background-color: white;
}

input[type="text"]:focus, input[type="number"]:focus, select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(30, 58, 138, 0.1);
}

input[type="number"] { 
    -moz-appearance: textfield; 
}

input[type="number"]::-webkit-outer-spin-button, 
input[type="number"]::-webkit-inner-spin-button { 
    -webkit-appearance: none; 
    margin: 0; 
}

/* Rundenzeile */
.rundenzeile { 
    display: flex; 
    align-items: center; 
    gap: 15px; 
    margin-bottom: 20px; 
    background: #f0fdf4; 
    padding: 12px; 
    border-radius: 6px; 
    border: 1px solid #bbf7d0;
}

.rundenzeile select { 
    width: auto; 
    font-size: 16px; 
    font-weight: bold; 
}

/* Tabellen */
table { 
    width: 100%; 
    border-collapse: collapse; 
    margin-top: 10px; 
}

th, td { 
    border: 1px solid var(--border); 
    padding: 12px 10px; 
    text-align: left; 
}

th { 
    background: var(--primary); 
    color: white; 
}

tr:nth-child(even) { 
    background: var(--card-bg); 
}

.col-platz { width: 70px; text-align: center; }
.col-punkte { width: 120px; text-align: center; }

.runden-badge {
    display: inline-block; 
    background: #e2e8f0; 
    font-size: 11px; 
    padding: 3px 6px; 
    margin: 2px; 
    border-radius: 4px;
    color: #334155;
}

/* Vereinsauswertung Box */
.verein-box {
    background: #ecfdf5;
    border: 2px solid var(--success);
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#verein-punkte-gesamt {
    color: var(--success); 
    font-size: 24px;
}

/* Admin Aktionen */
.admin-actions {
    margin-top: 30px;
    display: flex;
    justify-content: flex-end;
}

.btn-danger {
    background-color: #dc2626;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-danger:hover {
    background-color: #b91c1c;
}

/* Status-Meldung unten rechts */
#status-bar {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #374151;
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 14px;
    display: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    z-index: 1000;
}
/* Hellerer Abmelde-Button */
button[onclick="logoutAdmin()"] {
    background-color: #cbd5e1 !important; /* Helles, dezentes Grau */
    color: #334155 !important;            /* Dunkelgrauer, gut lesbarer Text */
    border: 1px solid #94a3b8 !important;  /* Sanfte Begrenzungslinie */
    transition: background 0.2s ease;
}

/* Stil beim Drüberfahren (Hover) */
button[onclick="logoutAdmin()"]:hover {
    background-color: #cbd5e1 !important; /* Wechselt zu einem etwas dunkleren Grau */
    color: #1e293b !important;
}
/* Das vergrößerte Aufklapp-Fenster oben rechts */
.login-dropdown {
    position: absolute;
    top: 50px;                  /* Minimal mehr Abstand nach oben */
    right: 0;                   /* Bündig mit dem rechten Rand */
    background: white;
    padding: 25px;              /* Mehr Innenabstand für ein luftigeres Gefühl */
    border-radius: 10px;        /* Schönere, abgerundete Ecken */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15); /* Weicherer, edlerer Schatten */
    border: 1px solid #cbd5e1;
    width: 1040px;               /* KORREKTUR: Deutlich breiter für komfortable Eingaben */
    z-index: 1000;
    text-align: left;
    box-sizing: border-box;
}

/* Anpassung der Überschrift für das größere Fenster */
.login-dropdown h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #1e3a8a;
    font-size: 18px;            /* Etwas größere Schrift */
    font-weight: bold;
}

.modal-input-group {
    margin-bottom: 12px;
}

.modal-input-group label {
    display: block;
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 4px;
    color: #4b5563;
}

.modal-input-group input {
    width: 100%;
    padding: 8px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 14px;
}

.modal-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
}

.btn-cancel {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
    padding: 7px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: bold;
}

.btn-submit {
    background: #1e3a8a;
    color: white;
    border: none;
    padding: 7px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: bold;
}

.btn-submit:hover {
    background: #1d4ed8;
}

.btn-cancel:hover {
    background: #e2e8f0;
}
