:root {
    --vfb_red: #d30029;
    --white: #fff;
    --background: #121212;
    --dark-gray: #1e1e1e;
    --medium-gray: #2a2a2a;
    --light-gray: #c0c0c0;
}

body {
    font-family: 'Roboto', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--background);
    color: white;
    margin: 0;
}

.ranking-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--dark-gray);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    margin-top: 32px;
}

.ranking-container h2 {
    color: white;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 24px;
}

/* table styles */
.ranking-table {
    width: 100%;
    border-collapse: collapse;
    color: white;
}

.ranking-table th {
    text-align: left;
    padding: 12px 16px;
    color: var(--light-gray);
    background-color: var(--medium-gray);
    font-weight: 200;
    font-size: 14px;
    text-transform: capitalize;
    letter-spacing: 1px;
}

.ranking-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--medium-gray);
}

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

/* mobile view without Spiele, Minuten and Punkte/90 */
@media (max-width: 768px) {

    .ranking-table th:nth-child(3),
    .ranking-table th:nth-child(4),
    .ranking-table th:nth-child(5),
    .ranking-table td:nth-child(3),
    .ranking-table td:nth-child(4),
    .ranking-table td:nth-child(5) {
        display: none;
    }

    .shirt-number {
        display: none;
    }

    h1 {
        font-size: medium;
        font-weight: 600;
    }
}

/* position colors */
.ranking-table tr.rank-1 {
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.15) 0%, rgba(255, 215, 0, 0) 100%);
    border-left: 4px solid #ffd700;
}

.ranking-table tr.rank-2 {
    background: linear-gradient(90deg, rgba(192, 192, 192, 0.15) 0%, rgba(192, 192, 192, 0) 100%);
    border-left: 4px solid #c0c0c0;
}

.ranking-table tr.rank-3 {
    background: linear-gradient(90deg, rgba(205, 127, 50, 0.15) 0%, rgba(205, 127, 50, 0) 100%);
    border-left: 4px solid #cd7f32;
}

/* points colored red */
.ranking-table td:last-child {
    font-weight: bold;
    color: var(--vfb_red);
    text-align: right;
}

.ranking-table td:nth-last-child(2),
.ranking-table td:nth-last-child(3),
.ranking-table td:nth-last-child(4) {
    text-align: center;
}

/* shirt numbers */
.shirt-number {
    display: inline-block;
    text-align: right;
    width: 16px;
    color: var(--light-gray);
    border-radius: 8px;
    margin-right: 8px;
}

/* hover-effect because why not */
.ranking-table tr:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

/* "Show More"-Button */
.expand-button {
    display: block;
    margin: 20px auto;
    padding: 12px 24px;
    background-color: var(--dark-gray);
    color: var(--white);
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.25s ease-in-out;
}

.expand-button:hover {
    background-color: var(--vfb_red);
    transition: 0.25s ease-in-out;
}

.tab-group {
    display: flex;
    background-color: #222;
    border-radius: 5px;
    padding: 5px;
    margin-bottom: 20px;
    border-radius: 100vh;
}

.tab-button {
    flex: 1;
    padding: 10px;
    background: none;
    border: none;
    color: white;
    border-radius: 100vh;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

.tab-button:hover {
    background-color: #444;
}

.tab-button.active {
    background-color: var(--vfb_red);
    color: var(--white);
    border-radius: 100vh;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

a {
    text-decoration: none;
    color: white;
}

#home {
    font-size: small;
}

.sticky-header {
    position: sticky;
    top: 0;
    width: 100%;
    background-color: rgba(30, 30, 30, 0.4);
    backdrop-filter: blur(5px);
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px;
    max-width: 1200px;
    margin: 0 auto;
}

.navbar ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.navbar li {
    margin-left: 20px;
}

.navbar a {
    color: white;
    text-decoration: none;
    font-weight: normal;
    transition: color 0.3s;
}

.navbar a:hover {
    color: var(--vfb_red);
}

.chart {
    margin: 32px;
}

footer {
    text-align: center;
    margin: 32px;
    font-size: small;
}