/**
 * Layout-Komponenten
 * Container, Navigation, Grundstruktur
 */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Section Styling */
section {
    padding: 80px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.2rem;
    position: relative;
    padding-bottom: 15px;
}

.section-header h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--accent-color);
}

.section-header p {
    font-size: 1.1rem;
    color: var(--dark-gray);
    max-width: 700px;
    margin: 15px auto 0;
}

/* Überschriften in dunklen Sektionen weiß machen */
.gallery-section .section-header h2,
.gallery-section .section-header p,
.about-section .section-header h2,
.about-section .section-header p,
.map-section .section-header h2, 
.map-section .section-header p,
.full-width-image .section-header h2,
.full-width-image .section-header p {
    color: var(--white);
}

/* Unterstriche unter Überschriften in dunklen Sektionen anpassen */
.gallery-section .section-header h2::after,
.about-section .section-header h2::after,
.map-section .section-header h2::after,
.full-width-image .section-header h2::after {
    background-color: var(--white);
}

/* Modernerer Navigationsbereich */
.main-nav {
    background-color: var(--primary-dark);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 15px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25); /* Verstärkter Schatten nach unten */
    backdrop-filter: blur(5px); /* Moderner Blur-Effekt für Glasmorphismus */
}

/* Modernerer Navigationsbereich - zusätzliche Überschreibungen */
.main-nav {
    background-color: var(--primary-dark);
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: var(--z-index-header) !important; /* Stellt sicher, dass die Navigation einen sehr hohen z-index hat */
    padding: 15px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25) !important;
    backdrop-filter: blur(5px);
    width: 100% !important;
}

.nav-wrapper {
    display: flex;
    justify-content: center; /* Zentriert die Navigation in der Mitte */
    align-items: center;
    padding: 10px 0;
    position: relative; /* Für absolute Positionierung des Accessibility-Buttons */
}

/* Vereinfachte Navigation ohne Trennlinien und Hover-Effekte */
.nav-menu {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 30px;
}

.nav-menu li {
    margin: 0;
    position: relative;
}

/* Alle Trennlinien-Stile entfernt */

/* Vereinfachte Nav-Links ohne Hover-Effekte */
.nav-menu a {
    color: var(--white);
    font-weight: 500;
    position: relative;
    padding: 8px 15px;
    transition: color 0.3s ease;
    border-radius: 4px;
}

.nav-menu a:hover,
.nav-menu a:focus {
    color: var(--accent-bright);
}

/* Mobile Menu Button nach rechts verschieben */
.mobile-menu-btn {
    display: none; /* Standardmäßig ausblenden */
    position: absolute;
    right: 20px; /* Von 70px auf 20px geändert, um näher am rechten Rand zu sein */
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Barrierefreiheit Toggle in die Navbar verschieben */
/* ALTE Barrierefreiheit Toggle-Implementierung entfernen */
/* 
.accessibility-toggle {
    position: absolute !important;
    left: 0 !important; 
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: var(--z-index-accessibility) !important;
}

#accessibility-toggle-btn {
    background-color: #FFDE59;
    color: var(--primary-dark);
    border: none;
    border-radius: 4px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    font-weight: 500;
    font-family: 'Montserrat', sans-serif;
}

#accessibility-toggle-btn i {
    margin-right: 8px;
}

#accessibility-toggle-btn:hover {
    background-color: #FFE980;
    transform: scale(1.05);
}
*/

/* Navigationskorrekturen */
.main-nav {
    background-color: #132a3f !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: var(--z-index-header) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3) !important;
}

/* Kartenelemente unter die Navigation setzen */
.leaflet-container,
.leaflet-pane,
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-tile-container,
.leaflet-overlay-pane,
.leaflet-shadow-pane,
.leaflet-marker-pane,
.leaflet-popup-pane,
.leaflet-map-pane,
#osm-map {
    z-index: var(--z-index-map) !important;
}

/* Erweitertes Footer Styling - OPTIMIERT MIT LINKSBÜNDIGER AUSRICHTUNG */
footer {
    background-color: #0f2338;
    color: rgba(255, 255, 255, 0.8);
    padding: 70px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
    text-align: left; /* Von zentriert zu linksbündig geändert */
}

.footer-info,
.footer-links,
.footer-legal {
    padding: 0 15px; /* Einheitliche Innenabstände */
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Von zentriert zu linksbündig */
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Von zentriert zu linksbündig */
}

.footer-logo h3 {
    color: var(--white);
    margin-bottom: 15px;
    text-align: left; /* Von zentriert zu linksbündig */
}

.footer-info p {
    margin-bottom: 15px;
    text-align: left; /* Von zentriert zu linksbündig */
}

.footer-contact p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Von zentriert zu linksbündig */
}

.footer-contact i {
    margin-right: 10px;
    color: var(--accent-color);
    width: 16px; /* Feste Breite für bessere Ausrichtung */
    text-align: center;
}

.footer-logo img {
    height: 65px;
    width: auto;
    margin-bottom: 15px;
    display: block;
    margin-left: 0; /* Von auto zu 0 geändert */
    margin-right: auto;
}

.social-links {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    justify-content: flex-start; /* Von zentriert zu linksbündig */
}

.social-link {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--accent-color);
    color: var(--white);
    transform: translateY(-3px);
}

.footer-links h3,
.footer-legal h3 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.2rem;
    text-align: left; /* Von zentriert zu linksbündig */
}

.footer-links ul,
.footer-legal ul {
    list-style: none;
    padding: 0;
    text-align: left; /* Von zentriert zu linksbündig */
    width: 100%;
}

.footer-links li,
.footer-legal li {
    margin-bottom: 10px;
}

.footer-links a,
.footer-legal a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
    display: inline-block;
}

.footer-links a:hover,
.footer-legal a:hover,
.footer-links a:focus,
.footer-legal a:focus {
    color: var(--white);
    transform: translateX(5px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 25px;
    display: flex;
    justify-content: center; /* Copyright-Hinweis zentrieren */
    text-align: center; /* Text zentrieren */
    flex-wrap: wrap;
}

.footer-credit a {
    color: var(--accent-color);
}

/* Zentriertes großes Logo - GRÖSSER UND HARMONISCHER */
.logo-center {
    text-align: center;
    margin-bottom: 22px;
    margin-top: -50px;
    padding: 10px 0;
}

.large-logo, .logo-image {
    height: auto;
    width: 220px; /* Von 180px auf 220px vergrößert für bessere Sichtbarkeit */
    max-width: 90%;
    margin: 0 auto;
    display: block; /* Sicherstellen, dass es als Block-Element dargestellt wird */
}

/* Symmetrische Abstände im responsiven Design */
@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center; /* Für mobile Ansicht wieder zentrieren */
    }
    
    .footer-info,
    .footer-links,
    .footer-legal {
        align-items: center;
    }
    
    .footer-logo,
    .footer-links h3,
    .footer-legal h3,
    .footer-info p,
    .footer-links ul,
    .footer-legal ul {
        text-align: center;
    }
    
    .footer-logo {
        align-items: center;
    }
    
    .footer-contact p {
        justify-content: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* Responsive Navigationsdesign optimieren */
@media only screen and (max-width: 992px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        background-color: var(--primary-dark);
        width: 100%;
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        transition: all 0.3s ease-in-out;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        z-index: 999;
        max-height: 80vh;
        overflow-y: auto;
    }
    
    .nav-menu.show {
        left: 0;
    }
    
    .nav-menu li {
        margin: 0;
        width: 100%;
        text-align: center;
    }
    
    .nav-menu a {
        display: block;
        padding: 12px 20px;
        width: 100%;
        border-radius: 0;
    }
    
    /* Vertikale Trennlinien in der mobilen Ansicht entfernen */
    .nav-menu li:not(:last-child)::after {
        display: none;
    }
    
    /* Stattdessen horizontale Trennlinien mit Farbverlauf */
    .nav-menu li:not(:last-child) {
        border-bottom: none;
        position: relative;
    }
    
    .nav-menu li:not(:last-child)::before {
        content: '';
        position: absolute;
        bottom: 0;
        left: 10%;
        right: 10%;
        height: 1px;
        background: linear-gradient(
            to right,
            transparent,
            rgba(255, 255, 255, 0.1),
            rgba(255, 255, 255, 0.2),
            rgba(255, 255, 255, 0.2),
            rgba(255, 255, 255, 0.1),
            transparent
        );
    }
    
    /* Burger-Menü-Button verbessern */
    .mobile-menu-btn {
        display: block;
        position: absolute;
        right: 20px;
        background: none;
        border: none;
        color: var(--white);
        font-size: 1.5rem;
        cursor: pointer;
        transition: all 0.3s ease;
        z-index: 1000;
        padding: 8px;
    }
    
    .mobile-menu-btn:hover,
    .mobile-menu-btn:focus {
        color: var(--accent-color);
        transform: scale(1.1);
    }
}

@media only screen and (max-width: 768px) {
    .nav-menu {
        top: 60px; /* Kleinere Navigation auf Mobilgeräten */
        padding: 15px 0;
    }
    
    .nav-menu li {
        margin: 0;
    }
    
    .nav-menu a {
        padding: 10px 15px;
        font-size: 0.95rem;
    }
}

@media only screen and (max-width: 480px) {
    .nav-menu a {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
    
    .mobile-menu-btn {
        right: 10px;
        font-size: 1.3rem;
    }
}

/* Zusätzlicher Fix für bessere Sicherheit */
section, 
.container,
.section-header,
.service-grid,
.service-card,
.full-width-image,
.gallery,
.gallery-section,
.testimonials,
.about-section,
.prices-section,
.map-section,
.faq-section,
.contact-section,
.cta-section {
    position: relative;
    z-index: 0; /* Alle Content-Sektionen sollten einen niedrigeren z-index haben */
}
