/* Base Styles */
body {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    line-height: 1.6;
    background-color: #fff;
}

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

/* Header */
.mt-20 {
    margin-top: 20px;
}

.main-header {
    background: #fff;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.header-logo-group {
    display: flex;
    align-items: center;
    gap: 40px; /* Bagger näher an die Schrift */
}

.header-right {
    display: flex;
    align-items: center;
    gap: 30px;
}

.logo-text h1 {
    color: #cc0000;
    font-size: 42px;
    margin: 0 0 -5px 0;
    font-weight: 700;
}

.logo-text h2 {
    color: #333;
    font-size: 26px;
    margin: 0;
    font-weight: 700;
}

.logo-image img {
    height: 110px;
}

.header-contact {
    text-align: right;
    font-size: 16px;
    color: #555;
    line-height: 1.5;
}

/* Burger Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
}

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

.header-contact p {
    margin: 0;
}

.header-contact a {
    color: #cc0000;
    text-decoration: none;
}

/* Navigation */
.main-nav {
    border-top: 1px solid #eee;
    border-bottom: 2px solid #ccc;
    background: #fff;
}

.main-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
}

.main-nav li a {
    display: inline-block;
    padding: 20px 30px;
    font-size: 16px;
    font-weight: bold;
    color: #000;
    text-decoration: none;
    transition: background-color 0.3s;
}

.main-nav li a.active, .main-nav li a:hover {
    background-color: #ffcc00;
}

/* Hero Slider */
.hero-slider {
    position: relative;
    width: 100%;
    height: 500px; /* Adjust as needed */
    overflow: hidden;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.slide.active-slide {
    display: block;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 30px;
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    padding: 10px 15px;
    transition: color 0.3s;
    user-select: none;
}

.slider-arrow:hover {
    color: #fff;
}

.left-arrow {
    left: 20px;
}

.right-arrow {
    right: 20px;
}

/* Yellow Banner */
.banner-yellow {
    background-color: #ffbc00; /* Matching screenshot orange/yellow */
    padding: 40px 0;
}

.banner-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.banner-flex h2 {
    font-size: 42px;
    color: #111;
    margin: 0;
    font-weight: bold;
}

.phone-button {
    background-color: #fff;
    color: #cc0000;
    font-size: 26px;
    font-weight: bold;
    padding: 15px 45px;
    border-radius: 50px;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.phone-button:hover {
    transform: scale(1.05);
}

/* Services */
.services-overview {
    padding: 100px 0;
    text-align: center;
}

.section-title {
    font-size: 34px;
    color: #111;
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 18px;
    color: #555;
    margin-bottom: 60px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.service-item img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
    margin-bottom: 20px;
}

.service-item h3 {
    font-size: 20px;
    color: #000;
    margin: 0;
}

.btn-center {
    margin-top: 50px;
}

.btn-primary {
    background-color: #cc0000;
    color: #fff;
    padding: 15px 40px;
    font-size: 16px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    transition: background-color 0.3s;
}

.btn-primary:hover {
    background-color: #a30000;
}

/* Parallax Section */
.parallax-section {
    position: relative;
    background: url('../images/c2a.jpg') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    height: 450px;
}

.parallax-overlay {
    background: rgba(0, 0, 0, 0.4);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.parallax-content h2 {
    color: #fff;
    font-size: 32px;
    margin: 0 0 15px 0;
}

.parallax-content p {
    color: #fff;
    font-size: 18px;
    margin: 0 auto 30px auto;
    max-width: 600px;
}

/* Footer */
.main-footer {
    background-color: #4d4d4d;
    color: #fff;
    padding-top: 60px;
    font-size: 14px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr 1.5fr;
    gap: 30px;
    margin-bottom: 40px;
}

.footer-col h3 {
    font-size: 20px;
    margin: 0 0 5px 0;
    font-weight: normal;
}

.footer-col h4 {
    font-size: 16px;
    margin: 0 0 15px 0;
    font-weight: bold;
}

.footer-col p {
    color: #ddd;
    margin-bottom: 5px;
    font-size: 13px;
}

.footer-col a {
    color: #fff;
    text-decoration: none;
}

.footer-image-small {
    width: 100%;
    max-width: 120px;
    height: auto;
    background: #fff;
    padding: 5px;
    border-radius: 4px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #ddd;
    text-decoration: none;
}

.footer-links a:hover {
    color: #fff;
    text-decoration: underline;
}

.mt-20 {
    margin-top: 25px;
}

.footer-bottom {
    background-color: #404040;
    padding: 20px 0;
    font-size: 12px;
    color: #aaa;
}

/* Unternehmen Page */
.unternehmen-content {
    padding: 80px 0;
}

.unternehmen-top h2 {
    font-size: 38px;
    color: #111;
    margin-bottom: 20px;
}

.unternehmen-top p {
    font-size: 16px;
    margin-bottom: 10px;
    color: #444;
}

.unternehmen-split {
    display: flex;
    gap: 50px;
    margin-top: 60px;
    align-items: flex-start;
}

.unternehmen-text {
    flex: 1;
}

.unternehmen-text h2 {
    font-size: 28px;
    margin-bottom: 25px;
    color: #111;
}

.unternehmen-text p {
    font-size: 16px;
    margin-bottom: 20px;
    color: #444;
}

.unternehmen-image {
    flex: 1;
}

.unternehmen-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Leistungen Page */
.leistungen-content {
    padding: 80px 0;
}

.leistungen-content > h1 {
    font-size: 42px;
    color: #111;
    margin-bottom: 50px;
}

.leistungen-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

.leistung-box {
    margin-bottom: 30px;
}

.leistung-box img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    margin-bottom: 20px;
    border: 1px solid #eee;
}

.leistung-box h2 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #000;
}

.leistung-box ul {
    list-style-type: disc;
    padding-left: 20px;
    margin-bottom: 15px;
    font-size: 15px;
    color: #444;
}

.leistung-box ul li {
    margin-bottom: 8px;
}

.leistung-box p {
    font-size: 15px;
    margin: 15px 0 10px 0;
    color: #444;
}

/* Karriere Page */
.karriere-content {
    padding: 80px 0;
    max-width: 900px;
    margin-left: 0;
}

.karriere-content h1 {
    font-size: 38px;
    color: #111;
    margin-bottom: 40px;
}

.karriere-content p {
    font-size: 16px;
    margin-bottom: 20px;
    color: #444;
}

.karriere-content .mb-5 {
    margin-bottom: 5px;
}

.karriere-content strong {
    color: #333;
}

.karriere-content .red-link {
    color: #cc0000;
    text-decoration: none;
}

.karriere-content .red-link:hover {
    text-decoration: underline;
}

.karriere-content .disclaimer {
    color: #666;
    margin-top: 30px;
}



/* Legal Pages Formats */
.legal-content {
    padding: 80px 0;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.legal-content h1 {
    font-size: 38px;
    color: #111;
    margin-bottom: 40px;
}

.legal-content h2 {
    font-size: 28px;
    color: #111;
    margin-top: 40px;
    margin-bottom: 20px;
}

.legal-content h3 {
    font-size: 22px;
    color: #111;
    margin-top: 30px;
    margin-bottom: 15px;
}

.legal-content p, .legal-content ul, .legal-content li {
    font-size: 16px;
    margin-bottom: 15px;
    color: #444;
}

.legal-content a {
    color: #cc0000;
    text-decoration: none;
}

.legal-content a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 991px) {
    .header-inner {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .header-contact {
        text-align: center;
    }
    
    .banner-flex {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .leistungen-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .unternehmen-split {
        flex-direction: column;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    .leistungen-grid {
        grid-template-columns: 1fr;
    }
    .main-nav ul {
        flex-direction: column;
        width: 100%;
    }
    .main-nav li {
        width: 100%;
        text-align: center;
    }
    .main-nav li a {
        display: block;
        padding: 10px;
        border-bottom: 1px solid #eee;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-image-small {
        margin: 0 auto;
    }

/* Google Maps */
.gmap-container {
    width: 100%;
    margin: 40px 0;
    filter: grayscale(100%) invert(90%) contrast(90%);
    transition: filter 0.5s;
}

.gmap-container:hover {
    filter: none;
}

.gmap-container iframe {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Robuster Galerie-Trigger */
.gallery-trigger, [data-gallery] {
    cursor: pointer !important;
}

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

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

.service-item.gallery-trigger img,
.service-item.gallery-trigger h3 {
    pointer-events: none !important;
}

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

/* Unkaputtbare Lightbox (Unique ID) */
#jahns-gallery-lightbox {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 999999 !important;
    display: none;
    align-items: center;
    justify-content: center;
}

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

.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: 85vh;
    border-radius: 4px;
    box-shadow: 0 0 50px rgba(0,0,0,1);
    user-select: none;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    color: #fff;
    font-size: 50px;
    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: 50px;
    cursor: pointer;
    padding: 30px;
    user-select: none;
    transition: all 0.3s;
}

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

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

.lightbox-counter {
    color: #fff;
    margin-top: 25px;
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 2px;
}

@media (max-width: 1100px) {
    .lightbox-prev { left: 0; background: rgba(0,0,0,0.5); }
    .lightbox-next { right: 0; background: rgba(0,0,0,0.5); }
}

/* Offcanvas Menu */
.offcanvas-menu {
    display: block !important;
    position: fixed;
    top: 0;
    right: -100%; /* Garantiert zugeklappt */
    width: 85%;
    max-width: 300px;
    height: 100%;
    background: #fff;
    z-index: 1000005;
    transition: right 0.5s ease-in-out;
    padding: 50px 25px;
    box-shadow: -10px 0 30px rgba(0,0,0,0.3);
}

.offcanvas-menu.active {
    right: 0 !important;
}

.offcanvas-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(3px);
    z-index: 1000000;
    display: none;
    cursor: pointer;
}

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

.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;
}

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

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

.offcanvas-body li {
    margin-bottom: 15px;
}

.offcanvas-body li a {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

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

.offcanvas-footer {
    margin-top: 50px;
    font-size: 14px;
    color: #777;
}

/* Mobile Media Queries */
@media (max-width: 991px) {
    .main-nav {
        display: none !important;
    }
    
    /* Burger-Button Sichtbarkeit erzwingen */
    .mobile-toggle {
        display: flex !important;
        flex-direction: column;
        justify-content: space-between;
        width: 32px;
        height: 22px;
        cursor: pointer;
        z-index: 1000002;
    }

    .mobile-toggle span {
        display: block !important;
        height: 4px !important;
        width: 100% !important;
        background-color: #cc0000 !important; /* Kräftiges Rot */
        border-radius: 2px;
        line-height: 0;
        font-size: 0;
    }

    .header-contact {
        display: none;
    }

    .header-logo-group {
        gap: 15px;
    }

    .logo-text h1 {
        font-size: 28px;
    }
    
    .logo-text h2 {
        font-size: 18px;
    }

    .logo-image img {
        height: 70px;
    }

    .section-title {
        font-size: 30px;
    }
}
