/* ========================================================================
   TABLE OF CONTENTS  —  search "N." (e.g. "7.") to jump to a section
   Reusable objects are marked "★ SHARED" — search "★" to list them all
   ------------------------------------------------------------------------
    1. VARIABLES & BASE
    2. HEADER & NAVIGATION
    3. HERO
    4. FEATURES            (★ SHARED: CARD OBJECT)
    5. CALL TO ACTION (CTA)
    6. FOOTER
    7. SERVICES PAGE       (★ SHARED: IMAGE HOVER-ZOOM)
    8. CONTACT INTRO
    9. CONTACT FORM
   10. ABOUT PAGE
   11. GENERIC SECTIONS
   12. METHOD AREAS (Arbeitsweisen)
   13. CONTENT CAROUSEL    (★ SHARED: ROUND ICON BUTTON)
   14. TYPOGRAPHY (handwritten / justify)
   15. CONTACT INFO        (★ SHARED: AUTO-GRID)
   16. VALUES
   17. PROJECT WORKFLOW
   18. BUTTONS
   19. RESPONSIVE (global media queries)
   20. LEGAL PAGES
   21. MODALS
   22. PROJECTS GALLERY
   23. TESTIMONIALS
   24. PROJECT GALLERY MODAL
   ======================================================================== */


/* ========================================================================
   1. VARIABLES & BASE
   ======================================================================== */
:root {
    --primary-color: #034F32;
    --secondary-color: #023B25;
    --accent-color: #D4AF37;
    --light-grey: #E0E0E0;
    --dark-green: #023B25;
    --text-color: #333333;
    --light-text: #ffffff;
    --background-color: #CCCCCC;
    --header-transition: 0.3s ease;
    --logo-color: #002D21;

    /* Shadow tokens (consolidated from repeated literals) */
    --shadow-card: 0 5px 15px rgba(0, 0, 0, 0.1);      /* card / image resting */
    --shadow-card-subtle: 0 5px 15px rgba(0, 0, 0, 0.05); /* softer resting cards */
    --shadow-card-hover: 0 10px 25px rgba(0, 0, 0, 0.1); /* card hover lift */
    --shadow-panel: 0 5px 30px rgba(0, 0, 0, 0.1);     /* forms / legal panels */
    --shadow-btn-sm: 0 2px 8px rgba(0, 0, 0, 0.15);    /* small round icon buttons */
    --shadow-btn-md: 0 2px 10px rgba(0, 0, 0, 0.1);    /* gallery buttons */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    padding-top: 100px; /* Increased to prevent header overlap */
    font-family: 'Lexend Deca', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 300;
    color: var(--text-color);
    line-height: 1.6;
}

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

a {
    text-decoration: none;
    color: var(--secondary-color);
    transition: color 0.3s;
}

a:hover {
    color: var(--primary-color);
}

ul {
    list-style: none;
}

h1, h2, h3 {
    margin-bottom: 20px;
    line-height: 1.2;
    text-align: center;
}

h1 {
        font-size: 1.8rem;
        padding-bottom: 15px;
}

/* ========================================================================
   2. HEADER & NAVIGATION
   ======================================================================== */
header {
    background-color: var(--logo-color);
    padding: 20px 0;
    box-shadow: var(--shadow-btn-md);
    position: fixed; /* Changed from sticky to fixed */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    transition: padding var(--header-transition), background-color var(--header-transition), transform var(--header-transition);
}

header.scrolled {
    padding: 7px 0;
    background-color: var(--logo-color); /* Uses logo-color when scrolled */
}

/* Auto-hide header on mobile when scrolling down */
@media (max-width: 960px) {
    header.header-hidden {
        transform: translateY(-100%);
    }
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: 20px;
    --logo-size: 80px;
}

header.scrolled .logo {
    --logo-size: 50px;
}

.logo-image {
    width: var(--logo-size);
    height: var(--logo-size);
    transition: all var(--header-transition);
    flex-shrink: 0;
}

.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    height: var(--logo-size);
}

.logo h1 {
    color: var(--light-grey);
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0px;
    padding-bottom: 5px;
    transition: font-size var(--header-transition);
    line-height: 1.1;
}

header.scrolled .logo h1 {
    font-size: 1.7rem;
}

header.scrolled .logo-text {
    height: 50px;
}

.tagline {
    color: var(--light-grey);
    font-size: 1rem;
    margin-bottom: 0;
    transition: opacity 0.4s ease, height 0.4s ease, margin 0.4s ease, transform 0.4s ease;
    line-height: 1.2;
    transform: translateY(0);
}

header.scrolled .tagline {
    opacity: 0;
    height: 0;
    margin: 0;
    padding: 0;
    transform: translateY(-10px);
    overflow: hidden;
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    color: var(--light-grey);
    font-weight: 600;
    padding: 10px 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
}

nav ul li a:hover, nav ul li a.active {
    border-bottom: 2px solid var(--accent-color);
    color: var(--accent-color);
    /* font-weight: bold; */
}

/* Mobile Navigation */
.hamburger-menu {
    display: none;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 10px;
    z-index: 1050;
    margin-left: auto;
    position: relative;
}

.hamburger-menu span {
    display: block;
    width: 30px;
    height: 3px;
    margin: 6px 0;
    background-color: var(--light-grey);
    transition: transform 0.3s ease, opacity 0.3s ease; /* Only animate needed properties */
}

.nav-mobile {
    display: none;
    visibility: hidden; /* Added visibility for better transitions */
    opacity: 0;
    position: absolute; /* Position absolutely instead of in the flow */
    top: 100%; /* Position directly below the header */
    left: 0;
    width: 100%;
    background-color: var(--dark-green);
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1030;
    box-shadow: var(--shadow-card);
}

.header-right {
    display: flex;
    align-items: center;
    position: relative;
}

@media (max-width: 960px) {
    body {
        padding-top: 60px; /* Less padding on mobile - keep fixed */
    }
    
    header {
        padding: 15px 0;
    }
    
    header.scrolled {
        padding: 5px 0;
    }
    
    .hamburger-menu {
        display: block;
    }
    
    .nav-desktop {
        display: none;
    }
    
    /* Hide tagline in mobile view */
    .tagline {
        display: none;
    }
    
    .nav-mobile {
        display: block;
        position: absolute;
        top: 100%; /* Position right below the header */
        left: 0;
        width: 100%;
        background-color: var(--light-grey);
        z-index: 1030;
        visibility: hidden;
        opacity: 0;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        box-shadow: var(--shadow-card);
    }
    
    .nav-mobile.active {
        visibility: visible;
        opacity: 1;
    }
    
    .nav-mobile ul {
        flex-direction: column;
        padding: 20px;
        margin: 0;
        width: 100%;
        text-align: center;
    }
    
    .nav-mobile ul li {
        margin: 10px 0;
        width: 100%;
    }
    
    .nav-mobile ul li a {
        font-size: 1.2rem;
        padding: 10px;
        display: block;
        text-align: center;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }
    
    .hamburger-menu.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .hamburger-menu.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger-menu.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    .backdrop {
        display: none; /* We're not using the backdrop for the dropdown menu */
    }
    
    .backdrop.active {
        display: none; /* Ensure it stays hidden even when active class is applied */
    }
    
    /* Additional properties for body when menu is open */
    body.menu-open {
        overflow: auto; /* Allow scrolling */
    }
    
    header .container {
        justify-content: space-between;
        flex-direction: row;
        text-align: left;
        align-items: center;
    }
    
    .logo {
        display: flex;
        align-items: center;
        gap: 10px;
    }
    
    .logo-image {
        width: 45px;
        height: 45px;
        border-width: 2px;
    }
    
    header.scrolled .logo-image {
        width: 35px;
        height: 35px;
        border-width: 1px;
    }
    
    nav {
        margin-top: 0;
    }
    
    nav ul {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    nav ul li {
        margin: 5px 10px;
    }
    
    .logo h1 {
        font-size: 1.8rem;
        margin-bottom: 0;
    }

    header.scrolled .logo h1 {
        font-size: 1.5rem;
    }
    
    .hero h2 {
        font-size: 2rem;
    }

    /* Mobile menu optimization */
    nav ul li a {
        padding: 8px 10px;
        display: block;
    }
}

/* ========================================================================
   3. HERO
   ======================================================================== */
.hero {
    position: relative;
    color: var(--dark-green);
    text-align: center;
    padding: 150px 0;
    overflow: hidden;
    /*display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 500px;   Mindesthöhe für mehr Raum */
}

.hero .container {
    transform: translateY(18px);  /* Container nach unten verschieben */
}

.hero-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
}

.carousel-nav {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 10;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.carousel-dot.active {
    background-color: var(--accent-color);
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;  /* Mehr Abstand unter dem Haupttitel */
    text-shadow: 0px 0px 5px rgba(255, 255, 255, 0.9);
    position: relative;
    z-index: 2;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0px 0px 5px rgba(255, 255, 255, 0.9);
    position: relative;
    z-index: 2;
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 600;
    /* text-transform: uppercase; */
    letter-spacing: 1px;
    transition: all 0.3s;
    text-align: center;
    white-space: normal;
    word-break: break-word;
}

.btn:hover {
    background-color: var(--secondary-color);
    color: var(--light-text);
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* ========================================================================
   4. FEATURES
   ======================================================================== */
.features {
    padding: 80px 0;
    background-color: #ffffff;
}

.features .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* ----- ★ SHARED: CARD OBJECT (feature / contact / value / workflow / testimonial) ----- */
.card {
    padding: 30px;
    text-align: center;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: var(--shadow-card-subtle);
    transition: all 0.3s ease;
}

/* Shared card hover-lift (value & testimonial deliberately have none) */
.feature:hover,
.contact-card:hover,
.workflow-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-card-hover);
}

.feature {
    background-color: var(--light-grey);
    box-shadow: none;
}

.feature i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature h3 {
    font-size: 1.5rem;
    color: var(--secondary-color);
}

/* ========================================================================
   5. CALL TO ACTION (CTA)
   ======================================================================== */
.cta {
    background-color: var(--primary-color);
    color: var(--light-text);
    text-align: center;
    padding: 80px 0;
}

.cta h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.cta p {
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.1rem;
}

.cta .btn {
    background-color: var(--light-text);
    color: var(--primary-color);
}

.cta .btn:hover {
    background-color: var(--light-grey);
    color: var(--secondary-color);
}

/* ========================================================================
   6. FOOTER
   ======================================================================== */
footer {
    background-color: var(--dark-green);
    color: var(--light-text);
    padding: 60px 0 30px;
}

footer .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

footer h3 {
    color: var(--light-grey);
    margin-bottom: 20px;
    font-size: 1.3rem;
}

footer a {
    color: var(--light-text);
    transition: color 0.3s;
}

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

footer ul li {
    margin-bottom: 10px;
}

.contact-info p {
    margin-bottom: 8px;
}

.contact-info i {
    margin-right: 8px;
    color: var(--accent-color);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ========================================================================
   7. SERVICES PAGE
   ======================================================================== */
.page-header {
    background-color: #ffffff;
    padding-top: 60px;
    padding-bottom: 30px;
    text-align: center;
}

.page-header h2 {
    color: var(--dark-green);
    font-size: 2.5rem;
}

.page-header p {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
    font-size: 1.1rem;
    color: var(--text-color);
    font-weight: normal;
}

/* --- Services-Seite: einheitliche Überschriften-Hierarchie --- */
/* Seitentitel (größte Stufe) */
#services .page-header h1 {
    color: var(--dark-green);
    font-size: 2.5rem;
}

/* Alle Abschnitts-Überschriften auf hellem Grund einheitlich */
#services .services-method > .container > h2,
#services .project-workflow h2,
#services .services-packages h2,
#services .services-faq h2 {
    color: var(--dark-green);
    font-size: 2rem;
}

/* CTA: grüner Grund, Schrift bleibt weiß – nur Größe angleichen */
#services .cta h2 {
    font-size: 2rem;
}

/* --- Services-Seite: einheitlicher Abschnitts-Rhythmus (Zebra) --- */
/* Reihenfolge: weiß · grau · weiß · grau · weiß · grün, alle 70px Innenabstand */

/* 1. Seitenkopf (weiß) */
#services .page-header {
    padding-top: 70px;
    padding-bottom: 40px;
}

/* 2. Meine Arbeitsweise (grau) */
#services .services-method {
    padding: 70px 0;
    background-color: var(--light-grey);
}

/* 3. Ablauf des Projektes (weiß) – Karten werden grau für Kontrast */
#services .project-workflow {
    padding: 70px 0;
    background-color: #ffffff;
}

#services .project-workflow .workflow-item {
    background-color: var(--light-grey);
}

/* 4. Pakete und Preise (grau) */
#services .services-packages {
    padding: 70px 0;
    background-color: var(--light-grey);
}

#services .package-card ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
    text-align: left;
}

#services .package-card li {
    position: relative;
    padding-left: 0.9rem;
    margin-bottom: 0.5rem;
    text-align: left;
}

#services .package-card li::before {
    content: "–";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
}

/* 5. FAQ-Verweis (weiß) */
#services .services-faq {
    padding: 70px 0;
    background-color: #ffffff;
    text-align: center;
}

#services .services-faq p {
    max-width: 700px;
    margin: 0 auto 30px;
}

/* 6. CTA (grün) */
#services .cta {
    padding: 70px 0;
}

.services {
    padding: 80px 0;
}

.service-item {
    margin-bottom: 60px;
    display: flex;
    align-items: center;
    gap: 40px;
}

.service-item:nth-child(even) {
    flex-direction: row-reverse;
}

.service-image {
    flex: 1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

/* ----- ★ SHARED: IMAGE HOVER-ZOOM (service / content / project thumbnails) ----- */
.service-image img,
.content-image img,
.project-image img {
    transition: transform 0.5s ease;
}

.service-image:hover img,
.content-image:hover img,
.project-item:hover .project-image img {
    transform: scale(1.05);
}

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

.service-content {
    flex: 1;
}

.service-content h3 {
    color: var(--secondary-color);
    font-size: 1.8rem;
    margin-bottom: 15px;
}

/* ========================================================================
   8. CONTACT INTRO
   ======================================================================== */
.contact-intro {
    padding: 0px 0 50px;
    background-color: #ffffff;
    text-align: center;
}

.contact-intro-greeting {
    margin-bottom: 10px;
}

.handwritten-intro.contact-intro-greeting {
    font-size: clamp(1.1rem, 6vw, 1.8rem);
    margin: 12px 0 32px;
}

.contact-intro-inner {
    max-width: 660px;
    margin: 0 auto;
}

.contact-intro-lead {
    font-size: 1.05rem;
    color: var(--text-color);
    margin-bottom: 12px;
    line-height: 1.8;
}

.contact-intro .btn {
    font-size: 1rem;
    padding: 14px 32px;
    border-radius: 4px;
}

.contact-intro-divider {
    display: flex;
    align-items: center;
    margin: 24px 0;
    color: var(--text-color);
    opacity: 0.5;
}

.contact-intro-divider::before,
.contact-intro-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background-color: var(--light-grey);
}

.contact-intro-divider span {
    padding: 0 16px;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
}

.contact-intro-alt {
    font-size: 1rem;
    color: var(--text-color);
    line-height: 1.8;
    opacity: 0.85;
}

@media (max-width: 768px) {
    .desktop-break {
        display: none;
    }
}

/* ========================================================================
   9. CONTACT FORM
   ======================================================================== */
.contact-form {
    padding: 80px 0;
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: #ffffff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: var(--shadow-panel);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--secondary-color);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
}

textarea.form-control {
    height: 150px;
    resize: vertical;
}

/* ========================================================================
   10. ABOUT PAGE
   ======================================================================== */
/* About Preview on Homepage (Vision Section) */
.about-preview {
    padding: 60px 0;
    background-color: #ffffff;
}

.about-detail {
    padding: 70px 0;
    background-color: var(--light-grey);
}

.about-detail h2 {
    color: var(--dark-green);
    text-align: center;
    margin-bottom: 25px;
}

.about-detail-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-detail-content p:last-child {
    margin-bottom: 0;
}

/* ========================================================================
   11. GENERIC SECTIONS
   ======================================================================== */
.white-section {
    padding: 60px 0;
    background-color: #ffffff;
}

.white-section h2 {
    color: var(--dark-green);
    font-size: 1.6rem;
    margin-bottom: 30px;
    line-height: 1.2;
    text-align: center;
}

.white-section p {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.1rem;
}

/* Legacy class names for backwards compatibility */
.light-grey-section {
    padding: 50px 0;
    background-color: var(--light-grey);
}

.services-method {
    padding: 60px 0;
    background-color: var(--light-grey);
}

/* ========================================================================
   12. METHOD AREAS (Arbeitsweisen)
   ======================================================================== */
/* Arbeitsweisen-Karten (zwei einklappbare Bereiche) */
.method-area {
    background-color: #ffffff;
    border-left: 5px solid var(--primary-color);
    border-radius: 10px;
    box-shadow: var(--shadow-card-subtle);
    padding: 28px 32px;
    margin-top: 30px;
}

.method-area h3 {
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin-bottom: 6px;
}

.method-area h4 {
    text-align: center;
    font-weight: 400;
    font-style: italic;
    color: var(--primary-color);
    font-size: 1.05rem;
    margin-bottom: 16px;
}

.method-area p {
    margin-bottom: 12px;
}

.method-area p:last-child {
    margin-bottom: 0;
}

/* Eingeklappter Volltext – wird per .open ausgefahren */
.method-full {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s ease;
}

.method-area.open .method-full {
    max-height: 2000px;
}

/* "…" nur im eingeklappten Zustand zeigen */
.method-area.open .method-ellipsis {
    display: none;
}

/* Auf-/Zuklappen-Button */
.method-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--primary-color);
    font-family: inherit;
    font-weight: 600;
    font-size: 0.9rem;
}

.method-toggle i {
    transition: transform 0.3s ease;
}

.method-area.open .method-toggle i {
    transform: rotate(180deg);
}

.method-toggle-less {
    display: none;
}

.method-area.open .method-toggle-more {
    display: none;
}

.method-area.open .method-toggle-less {
    display: inline;
}

.text-content-small {
    margin-left: auto;
    margin-right: auto;
    text-align: justify;
}

/* Breitenreduzierung nur für größere Bildschirme */
@media (min-width: 992px) {
    .text-content-small {
        max-width: 80%;
    }
}

/* ========================================================================
   13. CONTENT CAROUSEL
   ======================================================================== */
/* Inhalt-Carousel Styles */
.content-carousel-container {
    width: 70%;
    max-width: 800px;
    margin: 30px auto 48px;
    position: relative;
}

.content-carousel {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: none;
    aspect-ratio: 5 / 3;
    margin: 0 auto;
}

/* ----- ★ SHARED: ROUND ICON BUTTON (carousel / project-nav / gallery) ----- */
.content-carousel-btn,
.project-nav-btn,
.gallery-btn {
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.content-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    z-index: 3;
    color: var(--primary-color);
    box-shadow: var(--shadow-btn-sm);
    opacity: 0;
    pointer-events: none;
}

.content-carousel:hover .content-carousel-btn {
    opacity: 1;
    pointer-events: auto;
}

.content-carousel-btn:hover {
    background: var(--primary-color);
    color: #ffffff;
    transform: translateY(-50%) scale(1.1);
}

.content-carousel-prev {
    left: 12px;
}

.content-carousel-next {
    right: 12px;
}

.content-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.content-slide.active {
    opacity: 1;
    z-index: 1;
}

.content-image {
    width: 100%;
    max-width: none;
    height: 100%;
    margin-bottom: 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--shadow-card);
}

.content-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.content-caption {
    text-align: center;
    color: var(--dark-green);
    font-size: 1.2rem;
    max-width: 80%;
    margin: 0 auto;
    line-height: 1.5;
}

.content-carousel-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 16px;
    z-index: 2;
    margin-top: 0;
    padding: 6px 12px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.content-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #cccccc;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.content-dot.active {
    background-color: var(--accent-color);
}

/* ========================================================================
   14. TYPOGRAPHY (handwritten / justify)
   ======================================================================== */
/* Handschrift-Stil für die Intro */
.handwritten-intro {
    font-family: 'Dancing Script', 'Segoe Script', 'Brush Script MT', cursive;
    font-size: 1.8rem;
    margin-bottom: 12px;
    color: var(--primary-color);
    font-weight: 500;
}

.handwritten {
    font-family: 'Dancing Script', 'Segoe Script', 'Brush Script MT', cursive;
}

/* Vergrößerung nur für die Frage im Services-Seitenkopf, nicht global für .handwritten */
@media (min-width: 992px) {
    .page-header h3.services-header-question {
        font-size: 1.4rem;
    }
}

.handwritten-bnt {
    font-family: 'Dancing Script', 'Segoe Script', 'Brush Script MT', cursive;
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: 500;
    text-transform: none;
    /* box-shadow: 0 8px 16px 0 rgba(0,0,0,0.05), 0 6px 20px 0 rgba(0, 0, 0, 0.05); */
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    align-items: center;
}

.about-image {
    /* border-radius: 8px; */
    border-radius: 50%;
    padding: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    
}

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

.about-text {
    padding: 20px 0;
}

/* Text justify styling */
.text-justify {
    text-align: justify;
}

/* ========================================================================
   15. CONTACT INFO
   ======================================================================== */
/* Contact Info Section Styles */
.contact-info-section {
    padding: 80px 0;
    background-color: var(--light-grey);
}

/* ----- ★ SHARED: AUTO-GRID (responsive auto-fit; tune via --col-min / --col-gap) ----- */
.auto-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(var(--col-min, 250px), 1fr));
    gap: var(--col-gap, 30px);
}

.contact-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.contact-card h3 {
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.contact-card p {
    margin-bottom: 5px;
}

.contact-card a {
    color: var(--primary-color);
    font-weight: 600;
}

.contact-card a:hover {
    color: var(--accent-color);
}

/* ========================================================================
   16. VALUES
   ======================================================================== */
/* Values Section - keeping your original code */
.values {
    padding: 70px 0;
    background-color: #ffffff;
}


.value-item {
    background-color: var(--light-grey);
}

.value-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.value-item h3 {
    color: var(--secondary-color);
    margin-bottom: 15px;
}

/* ========================================================================
   17. PROJECT WORKFLOW
   ======================================================================== */
.project-workflow {
    padding: 80px 0;
    background-color: var(--light-grey);
    text-align: center;
}

.project-workflow h2 {
    color: var(--dark-green);
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.project-workflow > .container > p {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.workflow-container {
    --col-min: 280px;
    margin-top: 40px;
}

.workflow-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.workflow-icon {
    width: 80px;
    height: 80px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.workflow-icon i {
    font-size: 2.5rem;
    color: #ffffff;
}

.workflow-item h3 {
    color: var(--dark-green);
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.workflow-item p {
    color: var(--text-color);
    line-height: 1.6;
}

/* ========================================================================
   18. BUTTONS
   ======================================================================== */
/* Button Group Styles */
.button-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 20px;
}

/* Zeilenumbruch zwischen den beiden Fragen im Seitenkopf nur in der mobilen Ansicht */
.mobile-break {
    display: none;
}

@media (max-width: 768px) {
    .mobile-break {
        display: block;
    }
}

.button-group .btn {
    flex: 0 1 auto;
    max-width: 48%;
    min-width: 200px;
}

@media (max-width: 768px) {
    .button-group .btn {
        flex: 0 1 100%;
        max-width: 100%;
    }
}

.btn-light {
    background-color: var(--light-text);
    color: var(--primary-color);
}

.btn-light:hover {
    background-color: var(--light-grey);
    color: var(--light-text);
}

/* Auswahl-Buttons im weißen Seitenkopf: hellgrau gefüllt, grüner Text
   (sonst wäre weiß-auf-weiß unsichtbar) */
.page-header .btn-light {
    background-color: var(--light-grey);
    color: var(--primary-color);
}

.page-header .btn-light:hover {
    background-color: var(--primary-color);
    color: var(--light-text);
}

/* Antwort-Buttons auf die handwritten-Frage sollen nicht fett sein (überschreibt .btn font-weight: 600) */
.page-header .button-group .btn {
    font-weight: normal;
}

/* Schedule Button Styles */
.schedule-btn {
    background-color: var(--primary-color);
    color: white;
    padding: 15px 25px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    margin-top: 20px;
    display: block;
    width: 100%;
    transition: all 0.3s;
}

.schedule-btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

/* ========================================================================
   19. RESPONSIVE (global media queries)
   ======================================================================== */
@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .service-item {
        flex-direction: column !important;
        text-align: center;
    }

    /* Header/nav rules at this breakpoint are inherited from the
       max-width: 960px block above; only the logo title alignment differs. */
    .logo h1 {
        text-align: left;
    }

    /* Anpassung für Light Grey Section Überschriften auf Mobile */
    h2 {
        font-size: 1.6rem;
        margin-bottom: 15px;
    }

    h1 {
        font-size: 1.8rem;
        
    }
    
    /* Content Carousel Anpassungen für Tablets */
    .content-carousel {
        aspect-ratio: 5 / 3;
    }

    .content-carousel-container {
        width: 100%;
        margin: 24px auto 40px;
    }

    .content-carousel-btn {
        opacity: 1;
        pointer-events: auto;
        width: 38px;
        height: 38px;
    }
    
    .content-image {
        height: 100%;
        max-width: none;
    }
    
    .content-caption {
        font-size: 1.1rem;
        max-width: 90%;
    }

    /* Hide footer navigation in mobile view */
    .footer-nav {
        display: none;
    }
}

@media (max-width: 480px) {
    .container {
        width: 95%;
    }
    
    .page-header h2 {
        font-size: 2rem;
    }
    
    .feature {
        padding: 20px;
    }
    
    .form-container {
        padding: 20px;
    }

    .logo h1 {
        font-size: 1.6rem;
    }

    header.scrolled .logo h1 {
        font-size: 1.4rem;
    }

    .tagline {
        font-size: 0.9rem;
    }

    nav ul li {
        margin: 3px 8px;
    }

    section {
        padding: 40px 0;
    }

    /* Weitere Reduzierung für sehr kleine Bildschirme */
    .light-grey-section h2 {
        font-size: 1.6rem;
        line-height: 1.3;
        margin-bottom: 30px;
    }
    
    /* Content Carousel Anpassungen für Smartphones */
    .content-carousel {
        aspect-ratio: 5 / 3;
    }

    .content-carousel-container {
        width: 100%;
        margin: 20px auto 32px;
    }

    .content-carousel-btn {
        opacity: 1;
        pointer-events: auto;
        width: 34px;
        height: 34px;
    }
    
    .content-image {
        height: 100%;
        max-width: none;
    }
    
    .content-caption {
        font-size: 1rem;
        max-width: 95%;
    }
}


/* ========================================================================
   20. LEGAL PAGES
   ======================================================================== */
.legal-content {
    padding: 60px 0;
}

.legal-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: var(--shadow-panel);
}

.legal-container h3 {
    color: var(--secondary-color);
    margin-top: 30px;
    margin-bottom: 15px;
}

.legal-container h3:first-child {
    margin-top: 0;
}

.legal-container h4 {
    margin-top: 20px;
    margin-bottom: 10px;
}

.legal-container p {
    margin-bottom: 15px;
}

/* ========================================================================
   21. MODALS
   ======================================================================== */
/* ----- ★ SHARED: full-screen modal overlay (calendar + project modal) ----- */
.calendar-modal,
.project-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
}

.calendar-modal {
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
}

.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 20px;
    width: 80%;
    max-width: 800px;
    border-radius: 8px;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-modal:hover {
    color: var(--primary-color);
}

/* ========================================================================
   22. PROJECTS GALLERY
   ======================================================================== */
.projects-gallery {
    padding-bottom: 60px;
    background-color: #fff;
}

.projects-gallery h2 {
    color: var(--primary-color);
    margin-bottom: 30px;
}

.projects-gallery > .container > p {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
    font-size: 1.1rem;
    color: var(--text-color);
}

.projects-grid {
    --col-min: 350px;
    --col-gap: 40px;
    margin-top: 50px;
}

.project-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    cursor: pointer;
    transition: all 0.3s ease;
}

.project-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.project-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    position: relative;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Project Mini-Gallery Navigation */
.project-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.project-item:hover .project-gallery-nav {
    opacity: 1;
    pointer-events: auto;
}

.project-nav-btn {
    width: 35px;
    height: 35px;
    box-shadow: var(--shadow-btn-sm);
    font-size: 14px;
    color: var(--primary-color);
}

.project-nav-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.project-nav-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

.project-nav-btn:disabled:hover {
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
}

.project-info {
    padding: 25px;
}

.project-info h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    text-align: left;
}

.project-info p {
    margin-bottom: 20px;
    line-height: 1.6;
}

.project-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.benefit-tag {
    background-color: var(--light-grey);
    color: var(--primary-color);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* ========================================================================
   23. TESTIMONIALS
   ======================================================================== */
.testimonials {
    padding: 60px 0;
    background-color: var(--light-grey);
}

.testimonials h2 {
    color: var(--primary-color);
    margin-bottom: 50px;
}

.testimonials-grid {
    --col-min: 300px;
}

.testimonial {
    border-radius: 12px;
    position: relative;
}

.testimonial p {
    font-style: italic;
    margin-bottom: 20px;
    color: var(--text-color);
    line-height: 1.6;
}

.testimonial .author {
    font-weight: 600;
    color: var(--primary-color);
}

/* Responsive Design for Projects */
@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .project-image {
        height: 200px;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .testimonial {
        padding: 20px;
    }
}

/* ========================================================================
   24. PROJECT GALLERY MODAL
   ======================================================================== */
.project-modal {
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 2000;
}

.project-modal .modal-content {
    background-color: #fff;
    margin: 2% auto;
    padding: 0;
    width: 90%;
    max-width: 1000px;
    border-radius: 12px;
    position: relative;
    max-height: 95vh;
    overflow-y: auto;
}

.project-modal .close-modal {
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
    color: #666;
    transition: color 0.3s;
}

.project-modal .close-modal:hover {
    color: var(--primary-color);
}

.modal-header {
    padding: 20px 30px;
    border-bottom: 1px solid var(--light-grey);
}

.modal-header h2 {
    margin: 0;
    color: var(--primary-color);
    text-align: left;
}

.modal-body {
    padding: 30px;
}

.gallery-container {
    margin-bottom: 30px;
}

.gallery-main {
    position: relative;
    margin-bottom: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
}

#mainGalleryImage {
    width: 100%;
    height: 500px;
    object-fit: contain;
    display: block;
    background-color: #f9f9f9;
}

#mainGalleryVideo {
    width: 100%;
    height: 500px;
    object-fit: contain;
    display: none;
    background: #000;
}

.thumbnail-video {
    width: 80px;
    height: 80px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    flex-shrink: 0;
    background-color: var(--dark-green);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: var(--light-text);
    font-size: 0.65rem;
    letter-spacing: 0.03em;
}

.thumbnail-video i {
    font-size: 1.6rem;
    color: var(--accent-color);
}

.thumbnail-video:hover {
    transform: scale(1.05);
}

.thumbnail-video.active {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
}

.gallery-btn {
    width: 50px;
    height: 50px;
    pointer-events: auto;
    box-shadow: var(--shadow-btn-md);
}

.gallery-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.gallery-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.gallery-btn:disabled:hover {
    background: rgba(255, 255, 255, 0.9);
    color: inherit;
    transform: none;
}

.gallery-thumbnails {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 10px 0;
}

.thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    object-fit: cover;
    flex-shrink: 0;
}

.thumbnail:hover {
    transform: scale(1.05);
}

.thumbnail.active {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.project-description h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    text-align: left;
}

.project-description p {
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Mobile responsiveness for modal */
@media (max-width: 768px) {
    .project-modal .modal-content {
        width: 95%;
        margin: 5% auto;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    #mainGalleryImage {
        height: 300px;
    }
    
    #mainGalleryVideo {
        height: 300px;
    }
    
    .gallery-btn {
        width: 40px;
        height: 40px;
    }
    
    .gallery-nav {
        padding: 0 10px;
    }
    
    .thumbnail {
        width: 60px;
        height: 60px;
    }
}

/* ========================================================================
   22. FAQ ACCORDION
   ======================================================================== */
/* FAQ-Karten: ganze Kopfzeile klickbar, Pfeil fest rechts auf Fragenhöhe */
.faq-item {
    background-color: #ffffff;
    border-left: 5px solid var(--primary-color);
    border-radius: 10px;
    box-shadow: var(--shadow-card-subtle);
    margin-top: 20px;
    overflow: hidden;
}

.faq-question {
    margin: 0;
}

.faq-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    padding: 24px 32px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
}

.faq-toggle span {
    color: var(--secondary-color);
    font-size: 1.5rem;
}

.faq-toggle i {
    flex-shrink: 0;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.faq-item.open .faq-toggle i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s ease;
    padding: 0 32px;
}

.faq-item.open .faq-answer {
    max-height: 2000px;
    padding: 0 32px 28px;
}

.faq-answer p {
    margin-bottom: 12px;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.bold {
    font-weight: bold;
}