/* AlpenX-XL Modern Styles - Swiper Slider + Leaflet Map */

/* ============================================
   FARBEN: Hintergrund Beige + Anthrazit
   ============================================ */

body {
    background-color: #c8bfb0 !important;
}

#wrapper {
    background-color: #f2ece2 !important;
}

/* Seitennavigation (rechte Sidebar-Buttons): helleres Anthrazit */
.btn-primary {
    background-color: #6b6b6b !important;
    border-color: #6b6b6b !important;
    color: #fff !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: #4a4a4a !important;
    border-color: #4a4a4a !important;
}

/* Page-Title-Balken (oben): Blau → Anthrazit */
#page-title {
    background-color: #6b6b6b !important;
    border-bottom: 1px solid #555 !important;
}

/* Footer: Blau → Anthrazit, volle Breite */
#footer.dark,
.dark #footer,
#footer {
    background-color: #4a4a4a !important;
    border-top: none !important;
    width: 100vw !important;
    position: relative !important;
    left: 50% !important;
    right: 50% !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
}

#copyrights,
.dark #copyrights {
    background-color: #3a3a3a !important;
    color: rgba(255,255,255,0.5) !important;
}

/* ============================================
   NAVIGATION: Hover nur Schrift rot, kein roter Hintergrund
   Dropdown-Menü: Anthrazit statt Blau
   ============================================ */

/* Hauptmenü hover: NUR Schriftfarbe rot, kein Hintergrund */
#primary-menu.sub-title > ul > li:hover > a,
#primary-menu.sub-title > ul > li.current > a,
#primary-menu.sub-title > div > ul > li:hover > a,
#primary-menu.sub-title > div > ul > li.current > a {
    background-color: transparent !important;
    color: #ce172d !important;
    text-shadow: none !important;
    border-top-color: transparent !important;
}

/* Untertitel (span) beim Hover ebenfalls rot */
#primary-menu.sub-title > ul > li:hover span,
#primary-menu.sub-title > ul > li.current span,
#primary-menu.sub-title > div > ul > li:hover span,
#primary-menu.sub-title > div > ul > li.current span {
    color: #ce172d !important;
}

/* Dropdown-Untermenü: Hintergrund Anthrazit statt Blau */
#primary-menu ul ul,
#primary-menu ul li .mega-menu-content {
    background-color: #4a4a4a !important;
    border-color: #3a3a3a !important;
}

/* Dropdown-Links: weiß, hover rot */
#primary-menu ul ul li > a {
    color: #e0e0e0 !important;
    border-bottom-color: #5a5a5a !important;
}

#primary-menu ul ul li:hover > a {
    background-color: #3a3a3a !important;
    color: #ce172d !important;
}

/* ============================================
   KARTE: float left, Text fließt rechts daneben
   ============================================ */

.alpenxxl-map-container {
    float: left;
    width: 48%;
    max-width: 500px;
    margin: 4px 24px 16px 0;
}

/* Nach dem Map-Container Float aufheben */
.alpenxxl-map-container + * {
    overflow: hidden; /* BFC: Text fließt neben der Karte */
}

/* ============================================
   SWIPER SLIDER
   ============================================ */

.alpenxxl-slider {
    position: relative;
    width: 100%;
    max-width: 930px;
    margin: 30px auto;
    background: #111;
}

.alpenxxl-slider .swiper {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.alpenxxl-slider .swiper-slide {
    position: relative;
    overflow: hidden;
}

.alpenxxl-slider .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.alpenxxl-slider .swiper-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px 16px;
    background: linear-gradient(transparent, rgba(0,0,0,0.72));
    color: #fff;
    font-size: 14px;
    font-family: 'Raleway', sans-serif;
    font-weight: 400;
    line-height: 1.4;
}

.alpenxxl-slider .swiper-button-prev,
.alpenxxl-slider .swiper-button-next {
    color: rgba(255,255,255,0.85);
    --swiper-navigation-size: 28px;
}

.alpenxxl-slider .swiper-button-prev:hover,
.alpenxxl-slider .swiper-button-next:hover {
    color: #ce172d;
}

.alpenxxl-slider .swiper-pagination {
    display: none;
}

/* ============================================
   LEAFLET MAP
   ============================================ */

#map1 {
    width: 100%;
    height: 320px;
    display: block;
    border-radius: 3px;
    z-index: 1;
}

/* Leaflet Elevation Chart */
#elevation-div {
    width: 100%;
    margin-top: 8px;
    border-radius: 3px;
    overflow: hidden;
}

#elevation-div .elevation {
    background: #1a1a1a;
    border: 1px solid #333;
}

#elevation-div .elevation-summary {
    color: #ccc;
    font-size: 12px;
}

/* Leaflet dark attribution */
.leaflet-container .leaflet-control-attribution {
    background: rgba(0,0,0,0.6);
    color: #aaa;
    font-size: 10px;
}

.leaflet-container .leaflet-control-attribution a {
    color: #ce172d;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 991px) {
    .alpenxxl-map-container {
        float: none;
        width: 100%;
        max-width: 100%;
        margin: 0 0 20px 0;
    }

    #map1 {
        height: 300px;
    }
}

/* Slider Mindesthöhe falls JS nicht lädt */
#slider.slider-parallax {
    min-height: 250px;
}

/* Bilder immer sichtbar - Fallback für Firefox */
img,
.portfolio-item img,
#logo img {
    visibility: visible !important;
    opacity: 1 !important;
}

/* Portfolio-Overlay auf Touch-Geräten deaktivieren */
@media (hover: none) {
    .portfolio-overlay {
        display: none !important;
    }
}

/* Mobile Dropdown: weißer Hintergrund, dunkler Text */
@media (max-width: 991px) {
    #primary-menu ul ul,
    #primary-menu ul li .mega-menu-content {
        background-color: #fff !important;
    }
    #primary-menu ul ul a,
    #primary-menu.dark ul ul a {
        color: #333 !important;
    }
}

@media (max-width: 768px) {
    .alpenxxl-slider .swiper {
        aspect-ratio: 4 / 3;
    }

    #map1 {
        height: 260px;
    }

    .alpenxxl-slider .swiper-caption {
        font-size: 12px;
        padding: 8px 12px;
    }
}

@media (max-width: 480px) {
    #map1 {
        height: 220px;
    }

    .heading-block h1,
    .heading-block h2 {
        font-size: 22px !important;
        line-height: 1.3 !important;
    }

    #page-title h1 {
        font-size: 18px !important;
    }
}
