/* ==================== */
/* 1. Globale Variablen & Reset */
/* ==================== */
:root {
    --primary-blue: #2563EB;
    --secondary-blue: #1D4ED8;
    --light-gray: #F9FAFB;
    --text-dark: #1F2937;
    --text-light: #ffffff;
    --white: #ffffff;
    --border-color: #E5E7EB;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    margin-bottom: 1rem;
    font-weight: 700;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
p {
    margin-bottom: 1rem;
    color: #4B5563;
}

section {
    padding: 80px 0;
}

/* ==================== */
/* 2. Header & Navigation */
/* ==================== */
.main-header {
    background-color: var(--white);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo img {
    height: 80px;
    width: auto;
    padding-top: 8px;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 35px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    transition: color 0.3s;
    font-size: 1rem;
}

.nav-links a:hover {
    color: var(--primary-blue);
}

.nav-links a.active {
    color: var(--primary-blue);
    font-weight: 700;
}

.header-contact {
    display: flex;
    align-items: center;
    gap: 25px;
}

.phone-number {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1rem;
}

.cta-button {
    background-color: var(--primary-blue);
    color: var(--text-light);
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s;
}
.cta-button:hover {
    background-color: var(--secondary-blue);
}

/* Mobile Navigation */
.mobile-nav-toggle { display: none; }

/* ==================== */
/* 3. Hero Section */
/* ==================== */
.hero {
    background-color: var(--light-gray);
    padding: 100px 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content .subtitle-hero {
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.hero-content h1 .highlight {
    color: var(--primary-blue);
}

.hero-content .hero-text {
    font-size: 1.1rem;
    max-width: 650px;
    margin: 0 auto 2.5rem auto;
}

.stats-container {
    display: flex;
    gap: 40px;
    margin-bottom: 3rem;
}

.stat {
    display: flex;
    align-items: center;
    gap: 15px;
}

.stat i {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.stat h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.stat p {
    font-size: 1rem;
    color: #6B7280;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.hero-image {
    position: relative;
}

.hero-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.certification-box {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background-color: var(--white);
    border-radius: 12px;
    padding: 15px 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 15px;
}

.cert-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #E0E7FF;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    color: var(--primary-blue);
}

.certification-box strong {
    display: block;
}

.certification-box span {
    color: #6B7280;
    font-size: 0.9rem;
}

.cta-button-main {
    background-color: var(--primary-blue);
    color: var(--text-light);
    padding: 16px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}
.cta-button-main:hover {
    background-color: var(--secondary-blue);
    transform: translateY(-3px);
}

.cta-button-secondary {
    background-color: var(--white);
    color: var(--text-dark);
    padding: 16px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}
.cta-button-secondary:hover {
    background-color: var(--light-gray);
    transform: translateY(-3px);
}

/* ==================== */
/* 4. Common Section Styles */
/* ==================== */
.section-header {
    margin-bottom: 4rem;
}
.section-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
.section-subtitle {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: transform 0.3s, box-shadow 0.3s;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.07);
}

.service-image {
    position: relative;
}

.service-image img {
    width: 100%;
    display: block;
}

.service-icon-wrapper {
    position: absolute;
    bottom: -25px;
    left: 25px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.service-icon-wrapper i {
    font-size: 1.8rem;
    color: var(--primary-blue);
}

.service-content {
    padding: 35px;
}

.service-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.learn-more {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s;
}

.learn-more:hover {
    color: var(--secondary-blue);
}

.learn-more i {
    transition: transform 0.3s;
}

.learn-more:hover i {
    transform: translateX(5px);
}

/* Leistungen Section */
.leistungen-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.leistung-category {
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.leistung-category:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.leistung-image {
    height: 200px;
    overflow: hidden;
}

.leistung-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.leistung-category:hover .leistung-image img {
    transform: scale(1.05);
}

.leistung-content {
    padding: 30px;
    position: relative;
    min-height: 380px;
    display: flex;
    flex-direction: column;
}

.leistung-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    position: absolute;
    top: -30px;
    left: 30px;
}

.leistung-icon i {
    font-size: 2.2rem;
    color: var(--primary-blue);
}

.leistung-category h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    margin-top: 1.5rem;
}

.leistung-category ul {
    list-style: none;
    padding-left: 0;
    color: #4B5563;
}

.leistung-category ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 0.75rem;
}

.leistung-category ul li::before {
    content: '\ea4c'; /* boxicons check icon */
    font-family: 'boxicons';
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--primary-blue);
    font-weight: bold;
}


/* References Section */
.project-item {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
    align-items: center;
    padding: 30px;
    border-radius: 12px;
    transition: background-color 0.3s, box-shadow 0.3s;
}

.project-item:hover {
    background-color: var(--white);
    box-shadow: 0 10px 20px rgba(0,0,0,0.07);
}

.project-item:not(:last-child) {
    border-bottom: 1px solid var(--border-color);
}

.project-image img, .project-logo img {
    width: 100%;
    border-radius: 8px;
}

.project-details h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.project-details p {
    margin-bottom: 0.5rem;
}

.project-details a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
}

.project-details a:hover {
    text-decoration: underline;
}

/* Contact Section */
.contact-box {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info-item {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 35px;
    text-align: center;
}

.contact-icon-wrapper {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem auto;
    border-radius: 50%;
    background-color: #E0E7FF; /* Light blue */
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-icon-wrapper i {
    font-size: 2.5rem;
    color: var(--primary-blue);
}

.contact-info-item h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.contact-info-item p {
    margin: 0;
}

.contact-info-item a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
}

.contact-info-item a:hover {
    text-decoration: underline;
}


/* Other sections from old CSS - to be restyled */
.about-section {
    background-color: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.subtitle-about {
    color: var(--primary-blue);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.about-content h2 {
    font-size: 2.8rem;
}

.about-content h2 .highlight {
    color: var(--primary-blue);
}

.promise-box {
    background-color: var(--light-gray);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    margin-top: 2rem;
}

.promise-box h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.promise-box p {
    font-style: italic;
}

.owner-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 1.5rem;
}

.owner-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #E0E7FF;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    color: var(--primary-blue);
}

.owner-info strong {
    display: block;
    font-size: 1.1rem;
}

.owner-info span {
    color: #6B7280;
}

.about-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Responsive About Image Placement */
.about-image-mobile {
    display: none;
}
@media (max-width: 1024px) {
    .about-image-mobile {
        display: block;
        margin-bottom: 1.5rem;
    }
    .about-image:not(.about-image-mobile) {
        display: none;
    }
}

.values-section {
    background-color: var(--light-gray);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.value-item {
    text-align: center;
}

.value-icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem auto;
    border-radius: 50%;
    background-color: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.value-icon-wrapper i {
    font-size: 2.5rem;
    color: var(--primary-blue);
}

.value-item h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.services-section {
    background-color: var(--white);
}
.references-section {
    background-color: var(--white);
}
.contact-section {
    background-color: var(--light-gray);
}

/* ==================== */
/* 5. Gallery Page */
/* ==================== */
.gallery-page-section {
    padding-top: 40px; /* Reduced top padding */
}

.gallery-sub-nav-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 4rem;
    padding: 15px;
    background-color: var(--light-gray);
    border-radius: 12px;
}

.gallery-sub-nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1rem;
    padding: 10px 20px;
    border-radius: 8px;
    transition: background-color 0.3s, color 0.3s;
    border: 1px solid transparent;
}

.gallery-sub-nav-link:hover {
    background-color: var(--white);
    color: var(--primary-blue);
    border-color: var(--border-color);
}

.gallery-sub-nav-link.active {
    background-color: var(--primary-blue);
    color: var(--white);
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2);
}

@media (max-width: 768px) {
    .gallery-sub-nav-container {
        gap: 10px;
    }
    .gallery-sub-nav-link {
        font-size: 0.9rem;
        padding: 8px 15px;
    }
}

.gallery-page-section {
    padding: 80px 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.gallery-grid-item {
    position: relative;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    display: block;
    text-decoration: none;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s;
}

.gallery-grid-item:hover {
    transform: scale(1.03);
}

.gallery-grid-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.3s;
}

.gallery-grid-item:hover .gallery-grid-item-overlay {
    background: rgba(0, 0, 0, 0.7);
}

.gallery-grid-item h3 {
    color: var(--white);
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin: 0;
    padding: 20px;
    transition: transform 0.3s;
}

.gallery-grid-item:hover h3 {
    transform: scale(1.1);
}

.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.filter-btn {
    background-color: var(--white);
    color: var(--text-dark);
    border: 1px solid var(--border-color);
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.filter-btn:hover {
    background-color: var(--light-gray);
    color: var(--primary-blue);
}

.filter-btn.active {
    background-color: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
}

.gallery-category {
    margin-bottom: 4rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 2rem;
}

.gallery-category:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.gallery-category h2 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.gallery-category p {
    max-width: 800px;
    margin-bottom: 2rem;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.gallery-image-link {
    display: block;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.gallery-image-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.gallery-image-link:hover img {
    transform: scale(1.05);
}

/* ==================== */
/* 6. Lightbox (Überarbeitet und erweitert) */
/* ==================== */
.lightbox {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: none;
    /* overflow: auto ermöglicht das Verschieben des gezoomten Bildes */
    overflow: auto;
    cursor: grab;
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 85%;
    max-height: 85%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    /* Flüssige Animation für Zoom */
    transition: transform 0.3s ease-in-out;
}

/* -- Steuerleiste für Schliessen, Zoom und Vollbild -- */
.lightbox-controls {
    position: absolute;
    top: 15px;
    right: 25px;
    display: flex;
    gap: 10px;
    z-index: 1002;
}

.control-btn {
    color: #fff;
    font-size: 35px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    user-select: none; /* Verhindert das Markieren des Textes */
    padding: 5px;
    background-color: rgba(30, 30, 30, 0.5);
    border-radius: 8px;
    line-height: 1; /* Sorgt für saubere Darstellung der Icons */
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn:hover {
    color: #bbb;
    background-color: rgba(0, 0, 0, 0.7);
}

/* -- Vor/Zurück Buttons -- */
.prev-btn, .next-btn {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    transition: 0.3s;
    border-radius: 0 5px 5px 0;
    user-select: none;
    background-color: rgba(0,0,0,0.3);
}

.next-btn {
    right: 0;
    border-radius: 5px 0 0 5px;
}

.prev-btn:hover, .next-btn:hover {
    background-color: rgba(0,0,0,0.6);
}


/* -- Mobile Optimierung -- */
@media (max-width: 768px) {
    .lightbox-content {
        max-width: 95%;
        max-height: 75%;
    }

    /* Auf Mobilgeräten Buttons unten platzieren, da oben oft Browser-UI ist */
    .lightbox-controls {
        top: auto;
        bottom: 15px;
        left: 50%;
        transform: translateX(-50%);
        background-color: rgba(30, 30, 30, 0.7);
        border-radius: 12px;
        padding: 5px;
    }
    
    .control-btn {
        font-size: 30px;
    }
}

/* ==================== */
/* 5. Footer */
/* ==================== */
.main-footer {
    background-color: #111827;
    color: #9CA3AF;
    padding: 60px 0 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.footer-column p {
    color: #9CA3AF;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 1.5rem;
}

.social-icons a {
    color: #9CA3AF;
    font-size: 1.5rem;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: var(--white);
}

.footer-links, .contact-list, .opening-hours {
    list-style: none;
}

.footer-links a, .contact-list li, .opening-hours li {
    color: #9CA3AF;
    text-decoration: none;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-links a:hover {
    color: var(--white);
    text-decoration: underline;
}

.opening-hours span {
    display: inline-block;
    width: 120px;
}

.consultation {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-blue);
    margin-top: 1rem;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding: 25px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-bottom-links {
    list-style: none;
    display: flex;
    gap: 25px;
}

.footer-bottom-links a {
    color: #9CA3AF;
    text-decoration: none;
}

.footer-bottom-links a:hover {
    color: var(--white);
    text-decoration: underline;
}


/* ==================== */
/* 6. Responsive */
/* ==================== */
@media (max-width: 1024px) {
    .hero-grid, .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .hero-image {
        order: -1; /* Bild oben auf Mobilgeräten */
        margin-bottom: 30px;
    }
    .project-item {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .project-logo {
        margin: 0 auto;
        max-width: 200px;
    }
}

@media (max-width: 992px) {
    .nav-links, .header-contact {
        display: none;
    }
    .mobile-nav-toggle {
        display: block;
        background: none;
        border: none;
        cursor: pointer;
        z-index: 1001;
    }
    .hamburger {
        display: block;
        width: 25px;
        height: 3px;
        background-color: var(--text-dark);
        position: relative;
        transition: background-color 0.2s;
    }
    .hamburger::before, .hamburger::after {
        content: '';
        position: absolute;
        width: 25px;
        height: 3px;
        background-color: var(--text-dark);
        left: 0;
        transition: transform 0.3s, top 0.3s, bottom 0.3s;
    }
    .hamburger::before { top: -8px; }
    .hamburger::after { bottom: -8px; }

    .main-nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(5px);
        display: flex;
        justify-content: center;
        align-items: center;
        transform: translateX(100%);
        transition: transform 0.4s ease-in-out;
    }

    .main-nav.active {
        transform: translateX(0);
    }
    
    .mobile-nav-toggle.active .hamburger {
        background-color: transparent;
    }
    .mobile-nav-toggle.active .hamburger::before {
        transform: rotate(45deg);
        top: 0;
    }
    .mobile-nav-toggle.active .hamburger::after {
        transform: rotate(-45deg);
        bottom: 0;
    }

    .main-nav .nav-links {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 35px;
    }
    .main-nav .nav-links a {
        font-size: 1.8rem;
        font-weight: 700;
    }
}

@media (max-width: 768px) {
    .leistungen-grid {
        grid-template-columns: 1fr;
    }
    section {
        padding: 60px 0;
    }
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    .hero-content h1 { font-size: 2.8rem; }
    
    .stats-container {
        flex-direction: column;
        gap: 30px;
        align-items: flex-start;
    }
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    .hero-buttons a {
        text-align: center;
    }
    .certification-box {
        position: relative;
        bottom: auto;
        right: auto;
        margin-top: 20px;
        width: 100%;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    h1 { font-size: 2.2rem; }
    .hero-content h1 { font-size: 2.5rem; }
    .service-content, .contact-info-item {
        padding: 25px;
    }
    .footer-grid {
        text-align: center;
    }
.social-icons {
        justify-content: center;
    }
}

/* Lightbox */
.lightbox {

/* Responsive Gallery Grid for Leistungs Pages */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
@media (max-width: 900px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
}

.lightbox-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.close-btn:hover,
.close-btn:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

.prev-btn, .next-btn {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
}

.next-btn {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev-btn:hover, .next-btn:hover {
    background-color: rgba(0,0,0,0.8);
}

/* ==================== */
/* 7. Referenzen Section (simplified) */
/* ==================== */
.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.visitenkarte-kontaktblock {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    padding: 35px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.visitenkarte-kontaktblock:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.07);
}

.visitenkarte-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    overflow: hidden;
}

.visitenkarte-logo img {
    width: 70%;
    height: auto;
}

.visitenkarte-details h4 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: var(--primary-blue);
}

.visitenkarte-details p {
    margin-bottom: 0.3rem;
    color: #4B5563;
    font-size: 1rem;
}

.visitenkarte-details a {
    color: var(--secondary-blue);
    text-decoration: none;
    font-weight: 600;
    word-break: break-all;
    font-size: 1rem;
}

.visitenkarte-details a:hover {
    text-decoration: underline;
}

/* ==================== */
/* Galerie-Bereich-Box für Galerie-Unterseiten */
/* ==================== */
.galerie-subnav-box {
    background: var(--light-gray);
    border-radius: 16px 16px 24px 24px;
    box-shadow: 0 2px 8px rgba(30,41,59,0.06);
    margin: 0 0 0 18px;
    padding: 12px 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border: none;
    min-width: 0;
    min-height: unset;
    height: unset;
    justify-content: flex-start;
    position: relative;
    z-index: 10;
}

.galerie-subnav-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 0;
    letter-spacing: 0.02em;
    display: block;
    padding: 6px 16px;
}

.galerie-subnav ul {
    display: flex;
    gap: 18px;
    list-style: none;
    padding: 0;
    margin: 0 0 0 0;
    flex-wrap: nowrap;
    align-items: center;
    height: unset;
}

.galerie-subnav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1rem;
    padding: 6px 16px;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
    display: inline-block;
    line-height: 1.2;
}

.galerie-subnav a.active,
.galerie-subnav a[aria-current="page"] {
    background: var(--primary-blue);
    color: var(--white);
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(37,99,235,0.10);
    position: relative;
    z-index: 1;
}

.galerie-subnav a:hover:not(.active) {
    background: var(--secondary-blue);
    color: var(--white);
}

.galerie-subnav-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
}

/* Mobile Galerie-Navigation als Dropdown */
@media (max-width: 900px) {
    .main-header .container {
        flex-wrap: wrap;
        height: auto;
        min-height: 60px;
    }
    .galerie-subnav-box {
        width: 100%;
        margin: 0 0 0 0;
        border-radius: 16px;
        box-shadow: 0 2px 8px rgba(30,41,59,0.07);
        padding: 14px 10px 10px 10px;
        min-height: unset;
        height: auto;
        position: static;
    }
    .galerie-subnav-container {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .galerie-subnav-title {
        font-size: 1.08rem;
        margin-bottom: 8px;
        padding: 0 0 0 4px;
        background: none;
        border-radius: 0;
        cursor: default;
        border-bottom: none;
        width: 100%;
        display: block;
        text-align: center;
    }
    .galerie-subnav ul {
        flex-direction: column;
        gap: 0;
        width: 100%;
        background: none;
        border-radius: 0 0 18px 18px;
        box-shadow: none;
        margin: 0;
        padding: 0;
        display: flex !important;
        position: static;
        align-items: center;
    }
    .galerie-subnav li {
        margin-bottom: 0;
        width: 100%;
        display: flex;
        justify-content: center;
    }
    .galerie-subnav a {
        width: 100%;
        max-width: 320px;
        padding: 14px 16px;
        font-size: 1.08rem;
        border-radius: 8px;
        border-bottom: none;
        background: none;
        text-align: center;
        margin-bottom: 6px;
        box-sizing: border-box;
    }
    .galerie-subnav a.active,
    .galerie-subnav a[aria-current="page"] {
        background: var(--primary-blue);
        color: var(--white);
    }
}
@media (max-width: 600px) {
    .galerie-subnav-title {
        font-size: 0.98rem;
        padding: 10px 10px 10px 10px;
    }
    .galerie-subnav a {
        font-size: 1rem;
        padding: 12px 10px;
    }
}

@media (max-width: 480px) {
    .galerie-subnav-box {
        max-width: 100%;
        margin: 0 0 18px 0;
    }
}

/* ==================== */
/* Cookie Banner Styles */
/* ==================== */
.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    background: rgba(30, 41, 59, 0.98);
    color: #fff;
    padding: 0;
    box-shadow: 0 -2px 16px rgba(0,0,0,0.08);
    font-size: 1rem;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 0;
}
.cookie-banner-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 18px 24px;
    max-width: 900px;
    width: 100%;
}
.cookie-banner-content span {
    flex: 1;
    font-size: 1rem;
    color: #fff;
}
.cookie-banner-content a {
    color: #93c5fd;
    text-decoration: underline;
}
.cookie-accept-btn {
    background: #2563EB;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 10px 22px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}
.cookie-accept-btn:hover {
    background: #1D4ED8;
}
@media (max-width: 600px) {
    .cookie-banner-content {
        flex-direction: column;
        gap: 12px;
        padding: 14px 8px;
        font-size: 0.95rem;
    }
    .cookie-accept-btn {
        width: 100%;
    }
}

/* ==================== */
/* Galerie Headline Overlay (für alle Galerie-Seiten) */
/* ==================== */
.gallery-headline-overlay {
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 4.4rem;
    font-weight: 700;
    color: #1D4ED8;
    text-shadow: 0 2px 12px rgba(0,0,0,0.18);
    background: rgba(255,255,255,0.25);
    padding: 0.5em 1.2em;
    border-radius: 12px;
    text-align: center;
    line-height: 1.1;
    display: inline-block;
    box-sizing: border-box;
    max-width: 95%;
    word-break: break-word;
}

@media (max-width: 900px) {
    .gallery-headline-overlay {
        font-size: 2.2rem;
        padding: 0.4em 0.7em;
        border-radius: 10px;
    }
}
@media (max-width: 600px) {
    .gallery-headline-overlay {
        font-size: 2.6rem;
        padding: 0.25em 0.4em;
        border-radius: 8px;
        max-width: 98%;
    }
}
