/* =========================================================================
   1. GLOBALER STANDARD & SCHRIFTART (Sorgt überall für die Saira-Schrift)
   ========================================================================= */
html, body {
    background-color: #ffffff;
    margin: 0;
    padding: 0;
    width: 100%;
    font-family: 'Saira', sans-serif;
    color: #2c3e50;
}

/* =========================================================================
   2. ZENTRALES MENÜ-DESIGN (Option C - Cleaner, weißer Look)
   ========================================================================= */
.nav-bar { 
    background-color: #ffffff; 
    width: 100%; 
    position: relative; 
    border-bottom: 1px solid #e2e8f0; /* Hauchdünne Trennlinie nach unten */
    z-index: 1000; 
}

.nav-container { 
    max-width: 1200px; 
    margin: 0 auto; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    padding: 12px 20px; 
    position: relative; 
}

.nav-links { 
    list-style: none; 
    margin: 0; 
    padding: 0; 
    display: flex; 
    gap: 15px; 
}

/* Die Menübuttons im Desktop-Design */
.nav-links li a { 
    color: #2c3e50; /* Edel-dunkelgraue Schrift */
    text-decoration: none; 
    font-size: 14px; 
    font-weight: 400; 
    letter-spacing: 0.3px; 
    padding: 6px 14px; 
    border: 1px solid rgba(44, 62, 80, 0.3); /* Dezent dunkelgrauer Rahmen */
    border-radius: 4px; 
    transition: all 0.3s ease; 
    display: inline-block; 
    position: relative; /* Wichtig für den abgesetzten Unterstrich */
}

/* Hover-Effekt: Hintergrund färbt sich ganz zart grau */
.nav-links li a:hover { 
    color: #1a252f; 
    border-color: #2c3e50; 
    background-color: rgba(0, 0, 0, 0.04); 
}

/* Der Drei-Strich-Button (Hamburger-Symbol) für Smartphones */
.menu-toggle { 
    display: none; 
    font-size: 26px; 
    color: #2c3e50; 
    background: none; 
    border: none; 
    cursor: pointer; 
    position: absolute; 
    right: 20px; 
    top: 50%; 
    transform: translateY(-50%); 
    line-height: 1; 
}

/* Abgesetzter Unterstrich für die aktive Seite im originalen Biker-Rot */
.nav-links li a.active-page::after {
    content: '';
    position: absolute;
    bottom: -8px; /* Schiebt den Strich 8px unter den geschlossenen Schalter */
    left: 0;
    width: 100%;
    height: 3px; /* Dicke des Strichs */
    background-color: #B22312; /* Passend zum Logo-Rot */
    border-radius: 2px;
}

.nav-links li a.active-page {
    border-color: rgba(44, 62, 80, 0.5) !important;
    font-weight: 600 !important;
}

/* =========================================================================
   3. MOBILE STRUKTUR (Für perfekte Ansicht auf Smartphones)
   ========================================================================= */
@media (max-width: 768px) {
    .nav-container { 
        justify-content: flex-start; 
        min-height: 40px; 
    }
    
    .menu-toggle { 
        display: block; 
    }
    
    /* Auf Smartphones klappt das Menü nun in edlem Weiß untereinander auf */
    .nav-links { 
        display: none; 
        flex-direction: column; 
        position: absolute; 
        top: 100%; 
        left: 0; 
        width: 100%; 
        background-color: #ffffff; 
        gap: 0; 
        box-shadow: 0 4px 12px rgba(0,0,0,0.1); 
        border-top: 1px solid #e2e8f0;
    }
    
    .nav-links.active { 
        display: flex; 
    }
    
    .nav-links li { 
        width: 100%; 
        border-top: 1px solid #f1f5f9; 
    }
    
    .nav-links li a { 
        display: block; 
        padding: 15px 20px; 
        text-align: left; 
        border: none; 
        border-radius: 0; 
        font-size: 16px; 
    }
    
    /* Auf dem Smartphone weicht der Unterstrich einem edlen roten Balken am linken Rand */
    .nav-links li a.active-page::after { 
        display: none; 
    }
    
    .nav-links li a.active-page {
        border-left: 4px solid #B22312 !important;
        padding-left: 15px !important;
        background-color: rgba(178, 35, 18, 0.05) !important; /* Minimal rötlicher Hauch */
    }
}
/* =========================================================================
   5. EXKLUSIVES WAAGERECHTES MENÜ NUR FÜR DIE DOWNLOAD-SEITE
   ========================================================================= */
.ftp-page .menu-toggle { 
    display: none !important; /* Versteckt den Hamburger-Button */
}

@media (max-width: 768px) {
    .ftp-page .nav-container { 
        justify-content: center !important; 
    }
    
    .ftp-page .nav-links { 
        display: flex !important; 
        flex-direction: row !important; 
        position: relative !important; 
        top: 0 !important; 
        width: auto !important; 
        box-shadow: none !important; 
        border-top: none !important;
        gap: 8px !important; 
    }
    
    .ftp-page .nav-links li { 
        width: auto !important; 
        border-top: none !important; 
    }
    
    .ftp-page .nav-links li a { 
        display: inline-block !important; 
        padding: 6px 10px !important; 
        font-size: 13px !important; 
        border: 1px solid rgba(44, 62, 80, 0.3) !important; 
        border-radius: 4px !important; 
    }

    .ftp-page .nav-links li a.active-page::after { 
        display: block !important; 
        bottom: -8px !important;
        left: 0 !important;
        width: 100%;
        height: 3px;
        background-color: #B22312;
    }
    
    .ftp-page .nav-links li a.active-page {
        border-left: none !important;
        padding-left: 10px !important;
        background-color: transparent !important;
    }
}
