/* Allgemeine Einstellungen */
body {
    background-color: rgba(71, 67, 67, 1); /* Dunkles Grau als Hintergrund */
    color: #e0e0e0; /* Helle Schriftfarbe für besseren Kontrast */
    font-family: 'Arial', sans-serif; /* Moderne und klare Schrift */
    margin: 0;
    padding: 0;
}

/* Container mit abgerundeten Ecken und Schatten */
.container {
    max-width: 900px;
    margin: 0 auto;
    margin-top: 30px;
    padding: 35px 50px;
    background-color: #1D1E1F; /* Sehr dunkles Grau für den Container */
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6); /* Subtiler Schatten für Tiefe */
}

/* Links */
a { 
    color: white;
}

/* Überschrift für die Saison */
h2 {
    color: #cb4232; /* Kräftiges Rot für den Titel */
    font-size: 30px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 30px;
}

h3 {
    font-size: 24px;
    text-align: center;
    font-weight: bold;
}

h4 {
    font-size: 20px;
    font-weight: bold;
}

/* Liga-Umschalt-Buttons */
.button-container {
    text-align: center;
    margin-bottom: 20px;
}

button {
    background-color: #cb4232; /* Kräftiges Rot */
    color: white;
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin: 5px;
}

button:hover {
    background-color: #a53528; /* Dunkleres Rot beim Hover */
    transform: scale(1.05);
}

button.active {
    background-color: #871d12; /* Noch dunkleres Rot für aktive Liga */
}

/* Horizontale Linie */
hr {
    border: 0;
    border-top: 2px solid #cb4232; /* Rotes Blau für den Trenner */
    margin-top: 25px;
    margin-bottom: 25px;
}

.navbar {
    background-color: #1a1a1a;
    padding: 20px 20px;
    border-bottom: 2px solid #cb4232;
}

.nav-container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.brand {
    color: #ffffff;
    font-size: 20px;
    font-weight: bold;
    text-decoration: none;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: #cb4232;
}

.nav-toggle {
    display: none;
}

.nav-toggle-label {
    display: none;
    cursor: pointer;
}

.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
    display: block;
    background-color: #fff;
    height: 3px;
    width: 25px;
    position: relative;
    border-radius: 2px;
}

.nav-toggle-label span::before,
.nav-toggle-label span::after {
    content: "";
    position: absolute;
    left: 0;
}

.nav-toggle-label span::before {
    top: -8px;
}
.nav-toggle-label span::after {
    top: 8px;
}

.nav-logo {
    height: 30px;
    margin-right: 10px;
    vertical-align: middle;
}

.brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #fff;
}

.brand-text {
    font-size: 20px;
    font-weight: bold;
}

/* Tabelle */
table {
    width: 100%;
    margin: auto;
    border-collapse: collapse;
}

.table-hint {
    font-size: 0.95em;
    color: #ccc;
    margin-bottom: 10px;
    font-style: italic;
}

th, td {
    padding: 15px 20px;
    text-align: left;
    font-size: 16px;
    border: 1px solid #333; /* Dunkler Rand für die Zellen */
}

/* Tabellenkopf */
th {
    background-color: #2c2c2c; /* Dunkles Grau für den Tabellenkopf */
    color: #ffffff; /* Weiße Schrift im Tabellenkopf */
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
}

/* Abwechselnde Zeilenfarbe für die Tabelle */
tr:nth-child(even) {
    background-color: #2a2a2a; /* Dunkleres Grau für gerade Zeilen */
}

tr:nth-child(odd) {
    background-color: #333333; /* Etwas helleres Grau für ungerade Zeilen */
}

/* Hover-Effekt für Zeilen */
tr:hover {
    background-color: #444444; /* Etwas helleres Grau beim Überfahren einer Zeile */
    cursor: pointer; /* Mauszeiger ändern, um Interaktivität anzuzeigen */
}

/* Zelleninhalt */
td {
    color: #e0e0e0; /* Helle Schrift für die Zellen */
}

/* Container für die Tabelle */
.table-container {
    border-radius: 10px;
    overflow: hidden;
    margin-top: 20px;
}

.tooltip {
    position: relative;
    display: inline-block;
    cursor: help;
}

.tooltip .tooltiptext {
    visibility: hidden;
    opacity: 0;
    width: max-content;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 6px 10px;
    position: absolute;
    z-index: 10;
    bottom: 125%; /* oberhalb des Elements */
    left: 50%;
    transform: translateX(-50%);
    transition: opacity 0.2s ease-in-out;
    white-space: nowrap;
    font-size: 13px;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}


/* Responsive Design für kleine Bildschirme */
@media (max-width: 768px) {
    .container {
        padding: 15px;
        border-radius: 8px;
        box-shadow: none;
    }

    h2 {
        font-size: 22px;
        text-align: center;
    }

    button {
        font-size: 14px;
        padding: 10px 16px;
    }

    /* Tabelle wird zu flexiblen Karten */
    table {
        display: block;
        width: 100%;
    }

    table thead {
        display: none;
    }

    table tbody {
        display: flex;
        flex-direction: column;
        gap: 12px;
        align-items: center;
        padding: 0 10px; /* 🔥 Abstand zum Bildschirmrand */
    }

    table tbody tr {
        display: flex;
        flex-direction: column;
        width: 100%;
        max-width: 350px;
        background-color: #2c2c2c;
        border: 1px solid #444;
        border-radius: 10px;
        padding: 10px 15px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
    }

    table td {
        display: flex;
        justify-content: space-between;
        padding: 6px 0;
        font-size: 14px;
        border: none;
    }

    table td::before {
        content: attr(data-label);
        font-weight: bold;
        color: #aaa;
        min-width: 120px;
        margin-right: 10px;
    }

    table td:last-child {
        border-bottom: none;
    }

    .nav-toggle {
        display: None;
    }

    .nav-toggle-label {
        display: block;
    }

    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 0;
        background-color: #1a1a1a;
        margin-top: 10px;
        padding: 10px 0;
    }

    .nav-links li {
        text-align: center;
        padding: 10px 0;
    }

    .nav-toggle:checked + .nav-toggle-label + .nav-links {
        display: flex;
    }
}
