:root {
    --primary: #0693e3;
    --primary-dark: #0470ad;
    --secondary: #ff6900;
    --secondary-dark: #cc5200;
    --text-main: #222;
    --text-light: #666;
    --bg-light: #f9f9f9;
    --border-color: #e0e0e0;
    --radius: 4px;
    --container-width: 1240px;
    --font-main: Aptos, SF Pro, Arial, sans-serif;
}

/* --- BASE --- */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font-main); color: var(--text-main); line-height: 1.6; overflow-x: hidden; background: #fff; padding-top: 90px; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; margin: 0; padding: 0; }

/* --- CONTAINER & LAYOUT (Der Fix für den Rand) --- */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px; /* Immer 20px Abstand zum Bildschirmrand */
    position: relative;
    z-index: 2;
}

/* Abstände zwischen Sektionen erzwingen */
.section, .section-pad { 
    padding: 100px 0; 
    display: block; 
    width: 100%;
}

/* --- TYPOGRAFIE --- */
h1 { 
    font-size: clamp(1.8rem, 4vw, 44px); 
    line-height: 1.1; 
    margin-bottom: 20px; 
    color: #222; 
}
.hero-box h1 strong, .hero-box-home h1 strong { font-weight: 900; display: block; }
.hero-box h1 span, .hero-box-home h1 span { font-weight: 300; display: block; margin-top: 5px; }

h2 { font-size: 1.8rem; font-weight: 700; margin-bottom: 30px; color: #222; text-align: left; }
h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 15px; color: #222; }
p { margin-bottom: 20px; color: var(--text-light); font-size: 1rem; }

.text-center { text-align: center !important; }
.text-center h2 { text-align: center; }

/* --- HEADER --- */
header { background: #fff; border-bottom: 3px solid var(--primary); position: fixed; position: fixed; 
top: 0; left: 0; width: 100%; z-index: 1000; height: 90px; display: flex; align-items: center; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.nav-container { width: 100%; max-width: var(--container-width); margin: 0 auto; padding: 0 20px; display: flex; justify-content: space-between; align-items: center; }
.nav-links { display: flex; gap: 30px; height: 100%; align-items: center; }
.nav-links li { position: relative; display: flex; align-items: center; height: 100%; }
.nav-links a { font-weight: 700; text-transform: uppercase; font-size: 0.9rem; color: #333; }
.nav-links a:hover { color: var(--primary); }
.header-contact { color: var(--primary); font-weight: bold; }

/* Dropdown */
.dropdown-content { display: none; position: absolute; top: 100%; left: -20px; background: #fff; min-width: 250px; box-shadow: 0 10px 30px rgba(0,0,0,0.15); border-top: 3px solid var(--secondary); padding: 10px 0; z-index: 2000; }
.nav-links li:hover .dropdown-content { display: block; }
.dropdown-content li { display: block; height: auto; }
.dropdown-content a { display: block; padding: 12px 20px; border-bottom: 1px solid #eee; font-weight: 500; text-transform: none; }
.dropdown-content a:hover { background: #f9f9f9; padding-left: 25px; color: var(--secondary); }


/* --- HERO SECTION (FINAL & CLEAN) --- */
.hero, .hero-home, .hero-service { 
    /* Layout & Positionierung */
    display: flex; 
    align-items: center;         /* Vertikal mittig */
    justify-content: flex-start; /* Horizontal links */
    position: relative;
    width: 100%;
    
    /* Größe & Hintergrund */
    min-height: 80vh;            /* Mindesthöhe: 80% vom Bildschirm */
    height: auto !important;     /* WICHTIG: Darf wachsen bei viel Text! */
    background-size: cover; 
    background-position: center; 
    background-color: #f0f0f0;
    
    /* ABSTÄNDE (Desktop) */
    /* 1. Platz nach oben für den Fixed Header (90px) + Luft */
    padding-top: 150px !important; 
    padding-bottom: 100px !important;
    
    /* 2. Der Container-Trick: Linker Abstand exakt wie beim .container */
    /* (Fensterbreite - Containerbreite) / 2 + 20px Padding */
    padding-left: max(20px, calc((100% - var(--container-width)) / 2 + 20px));
    padding-right: 20px;
}

/* Die weiße Inhalts-Box */
.hero-box, .hero-box-home, .hero-box-service {
    background: #fff; 
    padding: 60px; 
    max-width: 700px; 
    width: 100%; 
    border-radius: var(--radius); 
    box-shadow: 0 30px 60px rgba(0,0,0,0.2);
    border-left: 6px solid var(--secondary); 
    position: relative; 
    z-index: 10;
    text-align: left;
    margin: 0; /* Kein Margin, da wir über Padding positionieren */
}

.hero-sub { color: var(--secondary); font-weight: 800; text-transform: uppercase; letter-spacing: 2px; display: block; margin-bottom: 15px; }
.hero p { font-size: 1.1rem; color: #555; }

/* --- BUTTONS --- */
.btn-wrapper { display: flex; gap: 15px; margin-top: 30px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 15px 35px; border-radius: 4px; font-weight: 700; text-transform: uppercase; font-size: 0.85rem; letter-spacing: 1px; border: none; cursor: pointer; transition: 0.2s; margin-bottom: 5px; text-decoration: none; }
.btn i { margin-right: 10px; }
.btn-primary { background: var(--secondary); color: white; }
.btn-primary:hover { background: var(--secondary-dark); transform: translateY(-2px); }
.btn-secondary { background: var(--primary); color: white; }
.btn-secondary:hover { background: var(--primary-dark); transform: translateY(-2px); }

/* --- GRID SYSTEM (Startseite & Unterseite) --- */
/* Startseite: Enges Grid */
.service-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 0; border: 1px solid var(--border-color); margin-top: 60px; background: #fff;
}

.clean-card {
    padding: 60px 40px; border-right: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color);
    display: flex; flex-direction: column; justify-content: space-between; transition: 0.3s; text-decoration: none !important; color: inherit; position: relative; overflow: hidden;
}
.clean-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 5px; background: var(--primary); transform: scaleX(0); transform-origin: left; transition: 0.4s ease; }
.clean-card:hover { z-index: 10; box-shadow: 0 30px 80px rgba(0,0,0,0.15); transform: scale(1.02); }
.clean-card:hover::before { transform: scaleX(1); background: var(--secondary); }
.icon-wrapper { font-size: 2.5rem; color: #ccc; margin-bottom: 25px; transition: 0.3s; }
.clean-card:hover .icon-wrapper { color: var(--secondary); transform: scale(1.1); }
.clean-card h3 { margin-bottom: 15px; font-size: 1.6rem; color: #222; }
.card-action { margin-top: 40px; font-weight: 800; text-transform: uppercase; font-size: 0.75rem; color: #999; display: flex; align-items: center; gap: 10px; transition: 0.3s; }
.clean-card:hover .card-action { color: #222; gap: 15px; }

/* Unterseite: Luftiges Grid */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; margin-top: 40px; }
.task-card { background: #fff; padding: 40px; border-radius: var(--radius); box-shadow: 0 5px 20px rgba(0,0,0,0.05); border-top: 4px solid var(--primary); border: 1px solid #eee; text-align: left; }
.task-list li { padding-left: 25px; margin-bottom: 10px; border-bottom: 1px solid #f9f9f9; padding-bottom: 8px; position: relative; }
.task-list li::before { content: '✓'; color: var(--secondary); font-weight: bold; position: absolute; left: 0; }

/* --- SECTIONS & MODULE --- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.bg-light { background: var(--bg-light); }

/* Ablauf */
.process-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 50px; margin-top: 50px; text-align: left; }
.step-circle { width: 60px; height: 60px; background: var(--primary); color: #fff; font-size: 1.5rem; font-weight: bold; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }

/* FAQ */
.faq-item { background: #fff; border: 1px solid #eee; margin-bottom: 10px; border-radius: 4px; }
.faq-btn { width: 100%; padding: 20px; text-align: left; background: none; border: none; font-weight: 700; cursor: pointer; display: flex; justify-content: space-between; }
.faq-content { padding: 0 20px 20px; display: none; border-top: 1px solid #f9f9f9; }
.faq-item.active .faq-content { display: block; }
.faq-item.active .faq-btn { background: #f9f9f9; color: var(--primary); }

/* Footer */
footer { background: #fff; color: #333; padding: 80px 0 30px; border-top: 4px solid var(--secondary); margin-top: 120px; }
.footer-flex { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-col { flex: 1; min-width: 200px; }
.footer-img { max-width: 160px; margin-bottom: 20px; }
footer h4 { color: #005662; margin-bottom: 25px; font-weight: 700; text-transform: uppercase; }
footer p, footer li { display: flex; gap: 10px; margin-bottom: 10px; }
.copyright { text-align: center; margin-top: 60px; border-top: 1px solid #eee; padding-top: 20px; font-size: 0.8rem; color: #999; }

/* --- MODAL & FORMULAR DESIGN FIX --- */

/* 1. Das Overlay (Hintergrund) */
.modal {
    display: none; 
    position: fixed; 
    z-index: 2000; 
    left: 0; 
    top: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(0,0,0,0.7); 
    backdrop-filter: blur(5px); 
    overflow-y: auto; /* Scrollen erlauben */
}

/* 2. Die Box (Weißer Kasten) */
.modal-content {
    background: #fff;
    margin: 60px auto 100px auto; /* Mehr Abstand oben/unten */
    padding: 40px;
    width: 90%;
    max-width: 500px;
    border-radius: 8px;
    border-top: 5px solid var(--secondary); /* Oranger Balken oben */
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* 3. Der Schließen-Button (X) - Schön positioniert */
.close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #aaa;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: 0.2s;
}
.close:hover {
    color: var(--secondary);
}

/* 4. Formular-Felder (Inputs) */
.modal-content input[type="text"],
.modal-content input[type="tel"],
.modal-content input[type="email"],
.modal-content textarea {
    width: 100%;
    padding: 15px;
    margin: 10px 0; /* Abstand zwischen Feldern */
    display: block;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #f9f9f9;
    font-family: inherit;
    font-size: 1rem;
    box-sizing: border-box; /* Verhindert, dass Padding die Breite sprengt */
}

.modal-content input:focus,
.modal-content textarea:focus {
    outline: none;
    border-color: var(--secondary);
    background: #fff;
}

/* 5. WICHTIG: Das HONEYPOT Feld verstecken (Der orange Kasten oben) */
.form-row-alt {
    display: none !important;
    visibility: hidden;
    opacity: 0;
    position: absolute;
    left: -9999px;
}

/* 6. Checkbox & Label */
.modal-content input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    margin-right: 10px;
    position: relative;
    top: 5px; /* Optischer Ausgleich */
}

/* 7. Button Abstand */
.modal-content button {
    margin-top: 20px;
}

/* MOBILE */
@media (max-width: 900px) {
    .hero { padding: 40px 20px !important; align-items: flex-end; }
    .hero-box, .hero-box-home, .hero-box-service { width: 100%; padding: 30px; margin: 0; }
    .nav-links { display: none; }
    .grid-2, .service-grid, .grid-3, .footer-flex { grid-template-columns: 1fr; }
    .section-pad { padding: 60px 0; }
    h1 { font-size: 2.5rem; }
}


/* --- DESIGN UPGRADE: STRICHE & ICONS --- */

/* 1. Der Strich unter ALLEN H2 Überschriften */
h2 {
    position: relative;
    padding-bottom: 20px; /* Platz für den Strich */
    margin-bottom: 30px !important;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 70px;       /* Breite des Strichs */
    height: 4px;       /* Dicke */
    background: var(--secondary); /* Orange (Atverna Farbe) */
    border-radius: 2px;
}

/* Wenn der Text zentriert ist, muss auch der Strich in die Mitte */
.text-center h2::after {
    left: 50%;
    transform: translateX(-50%);
}

/* 2. Das große Icon über dem Text (Intro) */
.big-intro-icon {
    font-size: 4rem;
    color: var(--primary); /* Blau */
    margin-bottom: 25px;
    display: inline-block;
    opacity: 0.9;
}



/* --- FIXES & UPDATES (Unterseiten & Mobile JG) --- */

/* 1. H1 Split Styling (Fett oben, dünn unten) */
.hero-box-service h1 strong {
    font-weight: 900;
    display: block;
    color: #222;
}
.hero-box-service h1 span {
    font-weight: 300;     /* Dünn wie gewünscht */
    display: block;
    margin-top: 5px;
    color: #444;
}

/* 2. Box Abstand (Verhindert Überlappen Desktop) */
.hero-box-service {
    margin-top: 40px;
    margin-bottom: 40px;
}

/* 3. Mobile Bild (Standardmäßig ausblenden) */
.mobile-hero-img {
    display: none;
    width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 20px 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* --- MOBILE SPECIFIC OVERRIDES --- */
@media (max-width: 900px) {
    /* H1 kleiner machen (ca. 1/3) */
    .hero-box-service h1 {
        font-size: 1.8rem !important; /* Vorher war es grßer */
    }
    
    .hero-box-service h1 strong {
        font-size: 1.8rem;
    }

    /* Container Verhalten ändern: Kein Background-Image mehr, sondern Auto-Height */
    .hero-service {
        background-image: none !important; /* Hintergrundbild wegnehmen */
        background-color: #f8f9fa;         /* Hellgrauer Hintergrund statt Bild */
        height: auto !important;           /* Höhe passt sich Inhalt an */
        min-height: auto !important;
        padding: 40px 20px !important;     /* Weniger Padding */
        align-items: flex-start;
    }

    /* Das Bild als echtes Element anzeigen */
    .mobile-hero-img {
        display: block !important;
    }
    
    /* Box etwas cleaner auf Mobile */
    .hero-box-service {
        margin: 0;
        width: 100%;
        box-shadow: none;
        border: 1px solid #eee;
    }
}

        /* Box oben desktop Abstände */
@media (min-width: 901px) {
    .hero-service {
        /* WICHTIG: Feste Höhe aufheben, damit er wachsen/schrumpfen kann */
        height: auto !important;
        min-height: 5vh; /* Optional: Damit er bei wenig Text nicht zu flach wirkt */

        /* Hier definierst du den "Schutzabstand" zum Rand */
        padding-top: 5% !important;
        padding-bottom: 5% !important;
        
        /* Flexbox sorgt dafür, dass die Box horizontal sitzt */
        align-items: center; 
    }
    
    /* Box selbst braucht kein Padding außen mehr, der Container drückt sie ja weg */
    .hero-box-service {
        margin: 0; 
    }
}

/* --- FIX: Strich zentrieren, wenn H2 selbst die Klasse hat --- */
h2.text-center::after {
    left: 50%;
    transform: translateX(-50%);
}



/* --- NEUES VORTEILE-GRID (2 Spalten & Modern) --- */
.grid-benefits {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Exakt 2 Spalten */
    gap: 30px;
    margin-top: 50px;
}

.benefit-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 8px; /* Leicht abgerundet */
    border: 1px solid #eee;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03); /* Sehr dezenter Schatten */
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

/* Hover-Effekt: Karte hebt sich an und bekommt Farbe */
.benefit-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-color: var(--secondary); /* Rand wird Orange */
}

/* Das Icon-Styling (Kreis mit Hintergrund) */
.benefit-icon-box {
    width: 80px;
    height: 80px;
    background: rgba(255, 105, 0, 0.1); /* Ganz helles Orange */
    color: var(--secondary);
    font-size: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px auto; /* Zentriert & Abstand nach unten */
    transition: 0.3s;
}

/* Beim Hover wird der Kreis Orange und das Icon Weiß */
.benefit-card:hover .benefit-icon-box {
    background: var(--secondary);
    color: #fff;
}

.benefit-text {
    font-weight: 700;
    color: #333;
    font-size: 1.15rem;
    line-height: 1.5;
}

/* =========================================
   MOBILE NAVIGATION & MENU FIXES
   ========================================= */

/* 1. Standard-Zustand (DESKTOP): Alles Mobile-Zeug ausblenden */
.mobile-nav-toggle {
    display: none; /* WICHTIG: Auf Desktop unsichtbar! */
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    right: -100%; /* Startet außerhalb des Bildschirms */
    width: 300px;
    height: 100vh;
    background: #fff;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    z-index: 9999; /* Ganz oben drüber */
    transition: 0.3s ease-in-out;
    padding: 40px;
    display: flex;
    flex-direction: column;
    text-align: left; /* Text linksbündig */
}

/* Backdrop (dunkler Hintergrund) */
.mobile-backdrop {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9998;
    backdrop-filter: blur(3px);
}

/* Links im Mobile Menü Styling */
.mobile-links { list-style: none; padding: 0; margin-top: 20px; }
.mobile-links li { margin-bottom: 15px; border-bottom: 1px solid #f0f0f0; padding-bottom: 10px; }
.mobile-links a { font-size: 1.1rem; font-weight: 700; color: #333; text-decoration: none; display: block; }
.close-mobile-btn { position: absolute; top: 20px; right: 20px; font-size: 2rem; cursor: pointer; }

/* Submenü (Leistungen) im Mobile Menü */
.mobile-sub-links { display: block; margin-top: 10px; padding-left: 15px; border-left: 3px solid var(--secondary); }
.mobile-sub-links li { border: none; margin-bottom: 5px; padding-bottom: 0; }
.mobile-sub-links a { font-size: 0.95rem; font-weight: 400; color: #666; }

/* Aktiv-Klassen (werden per JS gesetzt) */
.mobile-menu-overlay.active { right: 0; } /* Fährt rein */
.mobile-backdrop.active { display: block; }


/* 2. MOBILE ANSICHT (Handy/Tablet bis 900px) */
@media (max-width: 900px) {
    /* Desktop-Nav ausblenden */
    .nav-links { display: none !important; }

    /* Hamburger sichtbar machen & positionieren */
    .mobile-nav-toggle {
        display: block !important;
        font-size: 1.8rem;
        cursor: pointer;
        color: #333;
        margin-left: 20px; /* Abstand zur Telefonnummer */
    }

    /* Container Anpassung für Header */
    .nav-container {
        justify-content: space-between; /* Verteilt Logo - Tel - Burger */
    }

    /* Telefonnummer Styling auf Mobile */
    .header-phone {
        display: inline-block !important;
        font-size: 1rem;
        margin-left: auto; /* Schiebt alles nach rechts */
    }
}

/* --- GLOBAL FIXES --- */
html, body {
    overflow-x: hidden !important; /* Verhindert das seitliche Wackeln/Scrollen */
    width: 100%;
    position: relative;
    margin: 0; 
    padding: 0;
}


.mobile-menu-overlay {
    position: fixed;
    top: 0;
    right: -100%; /* Startet draußen */
    
    /* ÄNDERUNG HIER: */
    width: 85%;       /* Nimmt 85% der Handybreite ein */
    max-width: 350px; /* Aber nicht breiter als 350px auf Tablets */
    
    height: 100vh;    /* Volle Höhe */
    background: #fff;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    z-index: 9999;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1); /* Etwas geschmeidiger */
    padding: 40px 30px; /* Innenabstand */
    display: flex;
    flex-direction: column;
    text-align: left;
    overflow-y: auto; /* Erlaubt scrollen IM Menü, falls es zu lang ist */
}



/* --- MOBILE HERO FIX (Für Startseite UND Unterseiten) --- */
@media (max-width: 900px) {
    
    /* 1. Hintergrundbild entfernen & Container anpassen */
    .hero-service, .hero-home {
        background-image: none !important; /* Kein BG-Bild mehr */
        background-color: #f8f9fa;         /* Stattdessen hellgrau */
        height: auto !important;           /* Höhe automatisch */
        min-height: auto !important;
        padding: 40px 20px !important;
        align-items: flex-start;
    }

    /* 2. Die Box cleaner machen */
    .hero-box-service, .hero-box-home {
        margin: 0;
        width: 100%;
        box-shadow: none;
        border: 1px solid #eee;
        background: #fff;
        padding: 30px;
    }

    /* 3. Schriftgrößen anpassen */
    .hero-box-service h1, .hero-box-home h1 {
        font-size: 1.8rem !important; 
    }
    .hero-box-service h1 strong, .hero-box-home h1 strong {
        font-size: 1.8rem;
    }

    /* 4. Das Bild im Content sichtbar machen */
    .mobile-hero-img {
        display: block !important; /* Hier wird es eingeschaltet! */
        width: 100%;
        height: auto;
        border-radius: 4px;
        margin: 20px 0;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }
}

/* --- MOBILE FIXES (Benefits & Container) --- */
@media (max-width: 768px) {
    /* 1. Grid einspaltig machen */
    .grid-benefits {
        grid-template-columns: 1fr !important;
        gap: 20px;
        padding: 0 10px; /* Etwas Luft an der Seite */
    }
    
    /* 2. Kacheln dürfen nicht breiter sein als der Screen */
    .benefit-card {
        width: 100% !important;
        box-sizing: border-box !important;
        margin: 0 !important;
    }
}


/* Styling für Inline-Icons */
.icon-svg {
    display: inline-block;
    flex-shrink: 0;
    margin-right: 8px; /* Abstand zum Text rechts */
}

/* Spezialanpassung für den Dropdown-Pfeil (kein Abstand rechts nötig) */
nav .icon-svg {
    margin-right: 0;
}

/* Platzhalter für FontAwesome Icons, damit kein Layout-Shift entsteht */
.fas, .fab, .far {
    display: inline-block;
    width: 1.25em; /* Standardbreite von FA Icons */
    text-align: center;
    visibility: hidden; /* Unsichtbar, bis Font geladen ist */
}

/* Sobald die Font geladen ist (automatisches FA-Verhalten), machen wir sie sichtbar */
.fa-sr-only + .fas, 
.fa-events-icons-ready .fas {
    visibility: visible;
}