/* 1. Globaler Reset - MUSS GANZ OBEN STEHEN */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-y: scroll; /* Erzwingt die Scrollbar-Fläche, damit das Layout nicht springt */
}

:root {
    --bg-color: #ffffff;
    --secondary-bg: #f8f9fa; /* Hintergrund für Hero/Suche */
    --nav-bg: #ffffff;
    --text-dark: #111111;
    --text-light: #666666;
    --border: #eeeeee;
    --card-bg: #ffffff;
}

[data-theme="dark"] {
    --bg-color: #0f0f0f;
    --secondary-bg: #121212; /* Dunklerer Hero-Bereich */
    --nav-bg: #161616;
    --text-dark: #f0f0f0;
    --text-light: #aaaaaa;
    --border: #2a2a2a;
    --card-bg: #1a1a1a;
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
	background-color: var(--bg-color);
    color: var(--text-dark);
	transition: background-color 0.3s, color 0.3s;
    margin: 0;
    line-height: 1.6;
}

/* Navigation - Überall identisch */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    height: 70px;
    min-height: 70px; /* Erzwingt die Sichtbarkeit */
    border-bottom: 1px solid var(--border);
    background-color: var(--nav-bg);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

/* Die beiden äußeren Bereiche bekommen die gleiche Flex-Basis */
.nav-spacer, .nav-links {
    flex: 1; 
    display: flex;
}

.nav-links {
    justify-content: flex-end; /* Links im rechten Bereich nach rechts schieben */
}

/* --- NEU: Container für das zentrierte Logo und die Buttons --- */
.nav-center {
    display: flex;
    align-items: center;
    gap: 30px; /* Abstand zwischen Logo und dem ersten Button */
    flex: 0 0 auto; /* Verhindert, dass die Mitte gequetscht wird */
}

/* Container für die Buttons selbst */
.nav-pages {
    display: flex;
    gap: 15px; /* Abstand zwischen den einzelnen Buttons (z.B. Vereine und Transfermarkt) */
}

/* Das Design der neuen Nav-Buttons */
.nav-btn {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.nav-btn:hover {
    color: var(--text-dark);
    background: var(--secondary-bg); /* Leichter grauer Hintergrund beim drüberfahren */
}

.logo {
    flex: 0 0 auto; /* Das Logo nimmt nur den Platz ein, den es braucht */
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-weight: 900;
    font-size: 1.4rem;
    letter-spacing: -0.5px;
    text-decoration: none;
    color: var(--text-dark);
    text-align: center;
}

/* Gemeinsame Komponenten */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

* {
    box-sizing: border-box; /* Padding wird in die Breite eingerechnet, nicht addiert */
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
}

/* Design für die zusammenklebenden Buttons */
.theme-switch-wrapper {
    display: flex;
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    background: var(--card-bg);
    margin-left: 20px;
}

.theme-btn {
    padding: 5px 12px;
    border: none;
    background: transparent;
    color: var(--text-light);
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.2s;
}

.theme-btn.active {
    background: var(--text-dark);
    color: var(--bg-color);
}

.club-navigation {
    display: flex;
    gap: 8px;              
    max-width: 960px;
    margin: 0 auto 25px auto;
    align-items: center;
    padding: 4px 15px; 
    background: var(--card-bg); 
    border: 1px solid var(--border);
    border-radius: 10px;   
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow-x: auto;
    scrollbar-width: none;
    
    /* NEU: Überschreibt das "sticky" vom allgemeinen <nav> Tag */
    position: static; 
    z-index: auto;
}

/* Versteckt den Scrollbalken für Chrome/Safari */
.club-navigation::-webkit-scrollbar {
    display: none;
}

.nav-button {
    /* HÖHE: Der erste Wert (12px) bestimmt die Höhe des Buttons */
    padding: 12px 24px; 
    
    text-decoration: none;
    color: var(--text-light);
    font-weight: 600;
    
    /* RUNDE ECKEN: Höherer Wert = runder. 12px für "modern", 50px für "Pille" */
    border-radius: 12px; 
    
    background: transparent;
    transition: all 0.2s ease-in-out;
    white-space: nowrap;
}

/* Hover-Effekt: Dezent heller Hintergrund */
.nav-button:hover {
    background: var(--card-bg);
    color: var(--accent);
    transform: translateY(-1px); /* Kleiner "Lift"-Effekt beim Drüberfahren */
}

/* Aktive Seite: Markiert den Button farbig */
.nav-button.active {
    background: var(--accent);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* Macht den aktiven Button plastischer */
}


.player-navigation {
    display: flex;
    gap: 8px;              
    max-width: 1200px;
    margin: 0 auto 25px auto;
    align-items: center;
    padding: 4px 15px; 
    background: var(--card-bg); 
    border: 1px solid var(--border);
    border-radius: 10px;   
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow-x: auto;
    scrollbar-width: none;
    
    /* NEU: Überschreibt das "sticky" vom allgemeinen <nav> Tag */
    position: static; 
    z-index: auto;
}

/* Versteckt den Scrollbalken für Chrome/Safari */
.player-navigation::-webkit-scrollbar {
    display: none;
}




.nav-button2 {
    /* HÖHE: Der erste Wert (12px) bestimmt die Höhe des Buttons */
    padding: 12px 100px; 
    
    text-decoration: none;
    color: var(--text-light);
    font-weight: 600;
    
    /* RUNDE ECKEN: Höherer Wert = runder. 12px für "modern", 50px für "Pille" */
    border-radius: 12px; 
    
    background: transparent;
    transition: all 0.2s ease-in-out;
    white-space: nowrap;
}

/* Hover-Effekt: Dezent heller Hintergrund */
.nav-button2:hover {
    background: var(--card-bg);
    color: var(--accent);
    transform: translateY(-1px); /* Kleiner "Lift"-Effekt beim Drüberfahren */
}

/* Aktive Seite: Markiert den Button farbig */
.nav-button2.active {
    background: var(--accent);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* Macht den aktiven Button plastischer */
}
	