/* 
 * responsive.css
 * Media Queries für responsives Design
 */

/* KORRIGIERTE Vollbreite für Header, Navigation und Footer */
body {
    margin: 0;
    padding: 0;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 15px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    position: relative;
}

/* Header bleibt normal im Container */
.full-width-header {
    margin: 0 -15px; /* Nur Container-Padding ausgleichen */
}

/* Navigation bekommt die Vereinsfarbe aber NICHT volle Breite */
.full-width-navbar {
    background-color: var(--primary-color);
    position: relative;
    z-index: 100;
    margin: 0 -15px; /* Gleicht das Container-Padding aus */
}

.full-width-navbar .container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 15px;
}

/* Footer geht auch über die volle Breite */
.full-width-footer {
    background-color: var(--primary-color);
    color: #fff;
    margin: 60px -15px 0 -15px; /* Mehr Abstand und gleicht Container-Padding aus */
    padding: 30px 0; /* Mehr Padding für Höhe */
}

.full-width-footer .container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 15px;
}

/* Tablets und kleinere Desktops */
@media (max-width: 992px) {
    .container {
        max-width: 100%;
    }
    
    .section-title {
        font-size: 1.6em;
    }
}

/* Tablets und große Smartphones */
@media (max-width: 768px) {
    /* Container Fullwidth bei kleinen Geräten */
    body {
        background-color: #f5f5f5; /* Grauer Hintergrund statt weiß */
    }
    
    .container {
        padding: 0; /* Padding entfernen */
        max-width: 100%;
        background-color: transparent; /* Container transparent machen */
        box-shadow: none; /* Schatten entfernen */
    }
    
    /* Header, Navbar und Footer volle Breite */
    .full-width-header,
    .full-width-navbar,
    .full-width-footer {
        width: 100vw;
        margin-left: calc(-50vw + 50%);
        box-sizing: border-box;
    }
    
    .full-width-header .container,
    .full-width-navbar .container,
    .full-width-footer .container {
        width: 100%;
        padding: 0 15px;
    }
    
    /* Header-Bild für Mobile anpassen */
    .header-image {
        width: 100%;
        height: auto;
        display: block;
        max-height: 150px; /* Begrenzte Höhe auf Mobile */
        object-fit: cover;
    }
    
    /* Main Content bekommt weißen Hintergrund */
    .main-content {
        background-color: #fff;
        margin: 0; /* KEIN Margin - geht bis zum Rand */
        padding: 20px 15px; /* Nur innen Padding */
        border-radius: 0; /* Keine abgerundeten Ecken */
        box-shadow: none; /* Kein Schatten */
    }
    
    /* Navigation */
    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
    }

    .nav-menu.active {
        display: flex;
    }

    .hamburger {
        display: block;
    }

    .dropdown-content {
        position: static;
        width: 100%;
        padding-left: 20px;
    }
    
    /* Layoutanpassungen */
    .widgets-row,
    .map-contact,
    .sponsor-section {
        flex-direction: column;
    }
    
    .section-title {
        font-size: 1.5em;
    }
    
    .footer-links {
        display: flex;
        flex-direction: column;
    }
    
    .footer-link {
        margin: 5px 0;
    }
    
    /* FuPa Widget höher machen */
    .fupa-widget {
        height: 500px;
    }
}

/* Kleine Smartphones */
@media (max-width: 480px) {
    body {
        font-size: 14px;
    }
    
    .section {
        margin-bottom: 20px;
        padding: 0 10px;
    }
    
    .section-title {
        font-size: 1.4em;
        margin-bottom: 15px;
    }
    
    .widget,
    .map,
    .contact-info,
    .sponsor-carousel {
        min-width: 100%;
    }
    
    .carousel-button {
        padding: 5px 8px;
    }
    
    /* FuPa Widget anpassen */
    .fupa-widget {
        height: 450px;
    }
}

/* Navigation Fix - GANZ AM ENDE der responsive.css */
.navbar, .full-width-navbar {
    background-color: #333 !important;
    color: white !important;
}

.nav-menu {
    background-color: #333 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.nav-link {
    color: white !important;
}

.nav-link:hover {
    background-color: #007bff !important;
}

.dropdown-content {
    background-color: #333 !important;
}

.dropdown-link {
    color: white !important;
}

.dropdown-link:hover {
    background-color: #007bff !important;
}

/* Hamburger Button Fix */
.hamburger {
    display: none !important; /* Versteckt auf Desktop */
    cursor: pointer;
    padding: 15px;
    color: #fff !important; /* Weiße Farbe für dunklen Hintergrund */
    font-size: 24px;
    visibility: hidden !important; /* Zusätzlich verstecken */
    opacity: 0 !important; /* Komplett transparent */
    position: absolute !important;
    left: -9999px !important; /* Aus dem sichtbaren Bereich */
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .hamburger {
        display: block !important; /* Nur auf Mobile sichtbar */
        visibility: visible !important; /* Sichtbar machen */
        opacity: 1 !important; /* Vollständig sichtbar */
        position: relative !important; /* Normale Position */
        left: auto !important; /* Position zurücksetzen */
    }
    
    .nav-menu {
        display: none !important;
        flex-direction: column !important;
        width: 100% !important;
        background-color: #333 !important;
    }

    .nav-menu.active {
        display: flex !important;
    }

    .dropdown-content {
        position: static !important;
        width: 100% !important;
        padding-left: 20px !important;
    }
}

/* Footer Fix */
.footer, .full-width-footer {
    background-color: #333 !important;
    color: white !important;
}

.footer-links {
    text-align: center !important;
    margin-bottom: 15px !important;
}

.footer-link {
    color: white !important;
    text-decoration: none !important;
    margin: 0 15px !important;
    display: inline-block !important;
}

.footer-link:hover {
    color: #007bff !important;
    text-decoration: underline !important;
}

.copyright {
    text-align: center !important;
    font-size: 0.9em !important;
    margin-top: 15px !important;
    color: white !important;
}

/* Zusätzliche Footer-Debug-Regeln */
.full-width-footer * {
    color: white !important;
}

.full-width-footer .container {
    background-color: transparent !important;
}