*{
  margin: 0;
 padding: 0;
}

.page-header{
  display: none;
}


/* ==========================================================================
   ROBUSTE LIGHTBOX & GALERIE (FÜR JOOMLA)
   ========================================================================== */

/* Indikator und Hover-Effekte für die Kacheln */
.gallery-trigger, [data-gallery] {
    cursor: pointer !important;
}

.service-item.gallery-trigger {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.service-item.gallery-trigger:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* Verhindert Interaktions-Konflikte mit inneren Elementen */
.service-item.gallery-trigger img,
.service-item.gallery-trigger h3 {
    pointer-events: none !important;
}

.service-item.gallery-trigger:hover img {
    filter: brightness(0.85);
}

/* Das Haupt-Lightbox-Container */
#jahns-gallery-lightbox {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 999999 !important; /* Sicherstellen, dass es über allem liegt */
    display: none;
    align-items: center;
    justify-content: center;
    font-family: Arial, sans-serif;
}

#jahns-gallery-lightbox.active {
    display: flex !important;
}

/* Dunkler Hintergrund mit Blur */
.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95) !important;
    backdrop-filter: blur(8px);
    cursor: zoom-out !important;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
}

.lightbox-img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 4px;
    box-shadow: 0 0 50px rgba(0,0,0,1);
    user-select: none;
    object-fit: contain;
}

/* Controls (Schließen, Zurück, Weiter) */
.lightbox-close {
    position: absolute;
    top: -60px;
    right: 0;
    color: #fff;
    font-size: 60px;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
}

.lightbox-close:hover {
    color: #ffcc00;
}

.lightbox-prev, .lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 60px;
    cursor: pointer;
    padding: 30px;
    user-select: none;
    transition: all 0.3s;
}

.lightbox-prev:hover, .lightbox-next:hover {
    color: #ffcc00;
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev { left: -120px; }
.lightbox-next { right: -120px; }

.lightbox-counter {
    color: #fff;
    margin-top: 30px;
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 2px;
    background: rgba(255,255,255,0.1);
    padding: 5px 20px;
    border-radius: 20px;
}

/* Responsive Anpassungen */
@media (max-width: 1200px) {
    .lightbox-prev { left: 0; background: rgba(0,0,0,0.5); }
    .lightbox-next { right: 0; background: rgba(0,0,0,0.5); }
    .lightbox-close { top: -50px; right: 10px; }
}


/* ==========================================================================
   OFFCANVAS MOBIL-MENÜ (STRICKT NUR MOBIL)
   ========================================================================== */

/* Grundzustand: Auf Desktop ALLES verstecken */
.mobile-toggle, 
.offcanvas-menu, 
.offcanvas-overlay {
    display: none !important;
}

/* Mobile Media Queries (Greift erst ab 991px) */
@media (max-width: 991px) {
    
    .main-nav {
        display: none !important; /* Horizontale Nav verstecken */
    }
    
    .mobile-toggle {
        display: flex !important; /* Burger-Button zeigen */
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 22px;
        cursor: pointer;
    }

    .mobile-toggle span {
        display: block;
        height: 3px;
        width: 100%;
        background: #cc0000;
        border-radius: 3px;
    }

    .offcanvas-menu {
        display: block !important;
        position: fixed;
        top: 0;
        right: -320px; /* Startet außerhalb des Bildschirms */
        width: 300px;
        height: 100%;
        background: #fff;
        z-index: 1000001;
        transition: right 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        padding: 40px 30px;
        box-shadow: -10px 0 30px rgba(0,0,0,0.2);
    }

    .offcanvas-menu.active {
        right: 0 !important; /* Fährt rein */
    }

    .offcanvas-overlay {
        display: none; /* Wird per JS auf 'block' gesetzt */
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.6);
        backdrop-filter: blur(3px);
        z-index: 1000000;
        cursor: pointer;
    }

    .offcanvas-overlay.active {
        display: block !important;
    }

    /* Styling innerhalb des Menüs */
    .offcanvas-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 2px solid #cc0000;
        margin-bottom: 30px;
        padding-bottom: 10px;
    }

    .offcanvas-header h3 {
        margin: 0;
        color: #cc0000;
        font-size: 24px;
    }

    .offcanvas-close {
        font-size: 45px;
        line-height: 1;
        cursor: pointer;
        color: #333;
    }

    .offcanvas-body ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .offcanvas-body li {
        margin-bottom: 15px;
        border-bottom: 1px solid #f0f0f0;
    }

    .offcanvas-body li a {
        display: block;
        padding: 10px 0;
        font-size: 20px;
        font-weight: 700;
        color: #333;
        text-decoration: none;
    }

    .offcanvas-body li a.active, .offcanvas-body li a:hover {
        color: #cc0000;
    }

    .offcanvas-footer {
        margin-top: 50px;
        padding-top: 20px;
        border-top: 1px solid #eee;
        font-size: 16px;
        font-weight: bold;
        color: #cc0000;
    }

    /* Header Anpassungen für Mobil */
    .header-contact { display: none; }
    .header-logo-group { gap: 15px; }
    .logo-text h1 { font-size: 26px; }
    .logo-text h2 { font-size: 16px; }
    .logo-image img { height: 60px; }
}
