/* --- VARIABLES & RESET --- */
:root {
    --color-primary: #e65100;
    --color-primary-dark: #cc4400;
    --color-dark: #0a0a0a;
    --color-dark-light: #1f1f1f;
    --color-gray: #f4f4f4;
    --color-text: #333333;
    --color-text-light: #999999;
    --color-white: #ffffff;
    
    --font-heading: 'Manrope', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    --container-width: 1280px;
    --border-radius: 8px;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; } /* Overflow-x hidden auf html wichtig! */

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background: var(--color-white);
    line-height: 1.6;
    overflow-x: hidden; /* Verhindert seitliches Scrollen */
    width: 100%;
}

/* WICHTIG: Verhindert, dass lange Wörter (URLs) das Layout sprengen */
p, h1, h2, h3, h4, li, a {
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
}

h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--color-dark); font-weight: 700; line-height: 1.2; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* --- UTILITY --- */
.container { width: 90%; max-width: var(--container-width); margin: 0 auto; }
.container--narrow { max-width: 800px; }
.section { padding: var(--spacing-xl) 0; }
.section--dark { background: var(--color-dark); color: var(--color-white); }
.section--gray { background: var(--color-gray); }
.text-accent { color: var(--color-primary); }
.text-light { color: var(--color-white) !important; }
.center { text-align: center; }
.hidden { display: none !important; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.6rem;
    border-radius: 4px;
    font-weight: 600;
    font-family: var(--font-heading);
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}
.btn--primary { background: var(--color-primary); color: var(--color-white); }
.btn--primary:hover { background: var(--color-primary-dark); transform: translateY(-2px); }
.btn--outline { border-color: var(--color-white); color: var(--color-white); }
.btn--outline:hover { background: var(--color-white); color: var(--color-dark); }
.btn--text { background: none; color: var(--color-primary); padding: 0.5rem 0; border-bottom: 1px solid transparent; border-radius: 0; }
.btn--text:hover { border-bottom-color: var(--color-primary); }
.btn--link { background: none; border: none; text-decoration: underline; cursor: pointer; color: inherit; font-size: inherit;}
.btn--full { width: 100%; text-align: center; }
.btn--sm { padding: 0.5rem 1rem; font-size: 0.9rem; }

/* --- HEADER --- */
.header {
    position: fixed; top: 0; width: 100%; z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 0.5rem 0;
    transition: var(--transition);
}

/* DESKTOP GRID (Standard) */
.header__container {
    width: 95%; max-width: var(--container-width); margin: 0 auto;
    display: grid;
    /* Spalten angepasst für größeres Logo: 300px statt 250px */
    grid-template-columns: 300px 1fr 250px; 
    align-items: center;
}

/* 1. Logo */
.header__logo { justify-self: start; display: flex; align-items: center; }
/* Logo stark vergrößert (130px statt 75px) */
.header__logo img { height: 130px; width: auto; object-fit: contain; }

/* 2. Nav (Desktop) */
.header__nav { justify-self: center; }
.header__list { display: flex; gap: 2.5rem; }
.header__link { font-weight: 600; font-size: 1rem; position: relative; color: var(--color-dark); }
.header__link::after {
    content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 2px;
    background: var(--color-primary); transition: var(--transition);
}
.header__link:hover::after, .header__link.active::after { width: 100%; }

/* 3. Actions (CTA & Burger) */
.header__cta-wrapper { justify-self: end; }
.header__burger { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 6px; z-index: 1002;} /* Z-Index höher als Nav! */
.burger-line { width: 25px; height: 2px; background: var(--color-dark); transition: var(--transition); }


/* --- MOBILE HEADER & NAV LOGIC (Max-Width 992px) --- */
@media (max-width: 992px) {
    .header__container {
        /* WICHTIG: Grid erzwingen */
        display: grid;
        grid-template-columns: 1fr auto 1fr; /* Links Platz | Mitte Burger | Rechts Platz */
        grid-template-areas: "logo burger cta";
        align-items: center;
        width: 95%; /* Etwas breiter auf Mobile */
    }

    /* Zuweisung der Grid-Areas */
    .header__logo { grid-area: logo; justify-self: start; }
    
    .header__burger { 
        display: flex; 
        grid-area: burger; 
        justify-self: center; /* Exakt mittig */
    }

    .header__cta-wrapper { 
        grid-area: cta; 
        justify-self: end; 
    }
    
    /* CTA Button mobil etwas kleiner */
    .header__cta {
        padding: 0.5rem 0.8rem;
        font-size: 0.75rem; /* Etwas kleiner damit er passt */
        white-space: nowrap;
    }

    /* MENÜ OVERLAY (Slide-In) */
    .header__nav {
        position: fixed; 
        top: 0; 
        right: -100%; /* Startet außerhalb des Bildschirms */
        width: 100%; 
        height: 100vh;
        background: var(--color-white); 
        
        /* Flexbox um Links zu zentrieren */
        display: flex;
        flex-direction: column; 
        justify-content: center;
        align-items: center;
        
        box-shadow: -5px 0 15px rgba(0,0,0,0.1); 
        transition: right 0.4s ease-in-out; 
        z-index: 1001; /* Unter dem Burger */
        
        /* Grid-Eigenschaften resetten */
        grid-area: unset;
        justify-self: unset;
    }
    
    .header__nav.open { right: 0; }
    
    .header__list { 
        flex-direction: column; 
        text-align: center; 
        gap: 2rem; 
        font-size: 1.5rem; 
    }
    
    /* Burger Animation */
    .header__burger.active .burger-line:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
    .header__burger.active .burger-line:nth-child(2) { opacity: 0; }
    .header__burger.active .burger-line:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }
}

/* Sehr kleine Handys */
@media (max-width: 380px) {
    .header__cta { display: none; } /* CTA ausblenden wenn zu wenig Platz */
    .header__container { grid-template-columns: 1fr auto; grid-template-areas: "logo burger"; }
}


/* --- REST DER SEITE --- */

/* Hero */
.hero {
    position: relative; height: 100vh; min-height: 600px;
    display: flex; align-items: center; justify-content: center;
    background: var(--color-dark); overflow: hidden; color: var(--color-white);
    padding-top: 80px;
}
#hero-canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; }
.hero__overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 2;
    background: radial-gradient(circle at center, transparent 0%, var(--color-dark) 90%);
}
.hero__content { position: relative; z-index: 3; text-align: center; width: 100%; } /* Width 100% wichtig */

.hero__title { 
    font-size: clamp(2.5rem, 5vw, 5rem); 
    margin-bottom: 1.5rem;
    line-height: 1.3;
    padding-bottom: 0.2em;
    letter-spacing: -1px;
    /* FIX: Farbe explizit auf Weiß setzen */
    color: var(--color-white);
}

.hero__subtitle { font-size: clamp(1.1rem, 2vw, 1.5rem); color: #ccc; margin-bottom: 2.5rem; max-width: 700px; margin-left: auto; margin-right: auto; padding: 0 1rem; }
.hero__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;}
.hero__scroll-indicator {
    position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 3;
    display: flex; flex-direction: column; align-items: center; gap: 10px; opacity: 0.7;
    font-size: 0.8rem; letter-spacing: 1px;
}
.mouse {
    width: 26px; height: 40px; border: 2px solid white; border-radius: 13px; position: relative;
}
.mouse::before {
    content: ''; position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
    width: 4px; height: 4px; background: white; border-radius: 50%;
    animation: scrollMouse 2s infinite;
}
@keyframes scrollMouse { 0% { top: 8px; opacity: 1; } 100% { top: 25px; opacity: 0; } }

/* Sections */
.section-title { font-size: 2.5rem; margin-bottom: 0.5rem; position: relative; display: inline-block;}
.section-subtitle { margin-bottom: 3rem; font-size: 1.1rem; opacity: 0.8; }

/* About */
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about__image-wrapper { position: relative; padding: 20px; } 
.about__img { width: 100%; border-radius: var(--border-radius); box-shadow: var(--shadow); }
.about__badge {
    position: absolute; bottom: -10px; right: -10px;
    background: var(--color-primary); color: white; padding: 1.5rem;
    border-radius: 50%; width: 120px; height: 120px;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    box-shadow: 0 10px 20px rgba(230, 81, 0, 0.4);
    z-index: 10;
}
.about__badge-number { font-size: 1.8rem; font-weight: 800; }
.about__badge-text { font-size: 0.8rem; text-transform: uppercase; }

.about__text p {
    line-height: 1.9;
    margin-bottom: 2rem;
}

.about__list { margin-top: 1.5rem; }
.about__list li { position: relative; padding-left: 25px; margin-bottom: 0.8rem; }
.about__list li::before { content: '✓'; position: absolute; left: 0; color: var(--color-primary); font-weight: bold; }

/* Services */
.services__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.service-card {
    background: var(--color-dark-light); border-radius: var(--border-radius);
    overflow: hidden; position: relative; transition: var(--transition);
    display: flex; flex-direction: column;
}
.service-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.service-card__bg { height: 200px; background-size: cover; background-position: center; filter: brightness(0.7); }
.service-card__content { padding: 1.5rem; flex-grow: 1; display: flex; flex-direction: column; }
.service-card h3 { color: var(--color-white); margin-bottom: 0.5rem; font-size: 1.5rem; }
.service-card__teaser { color: #ccc; margin-bottom: 1.5rem; flex-grow: 1; }
.service-card__details { 
    max-height: 0; overflow: hidden; transition: max-height 0.4s ease-out; background: rgba(255,255,255,0.05); border-radius: 4px;
}
.service-card__details ul { padding: 1rem; color: #ddd; font-size: 0.9rem; }
.service-card__details ul li { margin-bottom: 0.3rem; list-style: disc inside; }
.service-card.is-expanded .service-card__details { max-height: 500px; margin-bottom: 1.5rem; }
.service-card__actions { display: flex; justify-content: space-between; align-items: center; margin-top: auto;}

/* Values */
#values {
    padding-bottom: 2rem;
}

.values__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; margin-top: 3rem; }
.value-card { background: var(--color-white); padding: 2rem; border-radius: var(--border-radius); box-shadow: var(--shadow); text-align: center; transition: var(--transition); }
.value-card:hover { transform: translateY(-5px); }

.value-card__icon { 
    font-size: 3rem; 
    margin-bottom: 1rem; 
    transition: transform 0.6s ease;
    display: inline-block;
}
.value-card:hover .value-card__icon {
    transform: rotate(360deg);
}

/* Testimonials Marquee */
.testimonials {
    padding-top: 2rem;
}

.marquee-wrapper { overflow: hidden; width: 100%; padding: 2rem 0; mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent); }
.marquee { display: flex; gap: 2rem; width: max-content; animation: scrollLeft 100s linear infinite; } 
.testimonial-card {
    background: white; padding: 1.5rem; border-radius: var(--border-radius);
    width: 300px; box-shadow: var(--shadow); flex-shrink: 0;
}
.testimonial-author { font-weight: bold; margin-top: 1rem; display: block; color: var(--color-primary); }
@keyframes scrollLeft { to { transform: translateX(-50%); } }

/* FAQ */
.accordion__item { border-bottom: 1px solid #ddd; padding: 1rem 0; }
.accordion__btn {
    width: 100%; text-align: left; background: none; border: none;
    font-size: 1.1rem; font-weight: 600; cursor: pointer;
    display: flex; justify-content: space-between; padding: 0.5rem 0;
}
.accordion__icon { transition: transform 0.3s; }
.accordion__btn[aria-expanded="true"] .accordion__icon { transform: rotate(180deg); color: var(--color-primary); }
.accordion__content { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; color: #555; }
.accordion__inner { padding-top: 0.5rem; padding-bottom: 1rem; }

/* Contact Form */
.contact__grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 4rem; align-items: center; }
.contact__info { padding-right: 2rem; }

.contact__form { 
    background: var(--color-white); 
    padding: 2.5rem; 
    border-radius: var(--border-radius);
    color: var(--color-text); /* FIX */
}

.form-group { margin-bottom: 1.2rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
label { display: block; margin-bottom: 0.5rem; font-weight: 600; font-size: 0.9rem; }
input, select, textarea {
    width: 100%; padding: 0.8rem; border: 1px solid #ddd; border-radius: 4px;
    font-family: inherit; font-size: 1rem; transition: border 0.3s;
}
input:focus, select:focus, textarea:focus { border-color: var(--color-primary); outline: none; }
.form-check { display: flex; gap: 0.5rem; align-items: flex-start; margin-bottom: 1.5rem; font-size: 0.9rem;}
.form-check input { width: auto; margin-top: 3px; }
.contact__item { margin-bottom: 2rem; }

/* Footer */
.footer { background: #000; color: #888; padding: 4rem 0 0rem; }
.footer__content { 
    display: grid; 
    grid-template-columns: 1.5fr 1fr 1fr; 
    gap: 2rem; 
    margin-bottom: 2rem; 
    border-bottom: 1px solid #222; 
    padding-bottom: 2rem; 
}
/* Footer Logo stark vergrößert (300px statt 150px) */
.footer__logo { width: 300px; margin-bottom: 1rem; }

.footer h4 { color: white; margin-bottom: 1rem; }
.footer ul li { margin-bottom: 0.5rem; }
.footer a:hover { color: var(--color-primary); }

/* Fußleiste (Copyright) */
.footer__bottom {
    font-size: 0.85rem;
    color: #555;
    padding: 1.5rem 0;
    border-top: 1px solid #111;
    background: #050505;
}

/* Legal Pages Styling */
.legal-page {
    background-color: var(--color-white);
    color: var(--color-text);
    padding-top: 120px; /* Genug Abstand zum Header */
    padding-bottom: 80px;
}
.legal-page h1 { margin-bottom: 2rem; font-size: clamp(2rem, 4vw, 3rem); }
.legal-page h2 { margin-top: 3rem; margin-bottom: 1rem; font-size: 1.5rem; border-bottom: 2px solid var(--color-primary); display: inline-block; padding-bottom: 0.5rem; }
.legal-page h3 { margin-top: 1.5rem; margin-bottom: 0.5rem; font-size: 1.2rem; color: var(--color-dark); }
.legal-page p { margin-bottom: 1rem; line-height: 1.7; color: #444; }
.legal-page ul { list-style: disc inside; margin-bottom: 1rem; padding-left: 1rem; }

/* Cookie Banner */
.cookie-banner {
    position: fixed; bottom: 0; left: 0; width: 100%;
    background: white; box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
    z-index: 2000; padding: 1.5rem;
    transform: translateY(0); transition: transform 0.3s;
}
.cookie-banner.hidden { transform: translateY(100%); }
.cookie-content { max-width: var(--container-width); margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap;}
.cookie-actions { display: flex; gap: 1rem; }

/* Back to Top */
.back-to-top {
    position: fixed; 
    bottom: 20px; 
    right: 20px; 
    background: var(--color-primary);
    color: white; 
    width: 40px; 
    height: 40px; 
    border-radius: 50%;
    border: none; 
    display: flex; 
    justify-content: center; 
    align-items: center;
    cursor: pointer;
    opacity: 0; 
    pointer-events: none; 
    transform: translateY(20px);
    transition: all 0.3s ease; 
    z-index: 900;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top:hover { background: var(--color-primary-dark); }


/* Animations */
.reveal-text, .reveal-up, .reveal-left, .reveal-right { opacity: 0; transform: translateY(30px); transition: 0.8s ease-out; }
.reveal-left { transform: translateX(-30px); }
.reveal-right { transform: translateX(30px); }
.active-reveal { opacity: 1; transform: translate(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* MEDIA QUERIES FINAL */
@media (max-width: 900px) {
    .about__grid, .contact__grid { grid-template-columns: 1fr; }
    .hero__title { font-size: 2.5rem; }
    .contact__info { margin-bottom: 2rem; padding-right: 0; }
    
    .footer__content { 
        grid-template-columns: 1fr; 
        text-align: center;
        gap: 2rem;
    }
    .footer__logo { margin: 0 auto 1rem auto; }
}

@media (max-width: 600px) {
    .form-row { grid-template-columns: 1fr; }
    .cookie-content { flex-direction: column; align-items: flex-start; }
}