* --- LOKALE EINBINDUNG: MONTSERRAT (NUR TTF) --- */

@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 400; /* Regular */
    src: local('Montserrat Regular'),
         url('/fonts/Montserrat-Regular.ttf') format('truetype');
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 600; /* Semi-Bold */
    src: local('Montserrat SemiBold'),
         url('/fonts/Montserrat-SemiBold.ttf') format('truetype');
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 800; /* Extra Bold */
    src: local('Montserrat ExtraBold'),
         url('/fonts/Montserrat-ExtraBold.ttf') format('truetype');
    font-display: swap;
}

/* --- Globale Variablen & Reset --- */
:root {
    --color-white: #ffffff;
    --color-black: #000000;
    --color-primary-green: #00A34F; 
    --color-text-dark: #333333;
    --font-primary: 'Montserrat', sans-serif;
    --header-height-desktop: 170px;
    --header-height-mobile: 120px; 
}

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

html {
    scroll-behavior: smooth;
    width: 100%; 
}

body {
    font-family: var(--font-primary);
    color: var(--color-text-dark);
    line-height: 1.6;
    
    /* FIX: Verhindert horizontalen Scrollbalken */
    overflow-x: hidden; 
    
    width: 100%;
    margin: 0; 
}

/* ... (andere Container/Title Styles) ... */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px; 
}

.section-padding {
    /* Standard-Abstand (Desktop, iPad Quer) */
    padding: 80px 0; 
}

.section-title {
    text-align: center;
    font-size: 2.5em;
    font-weight: 800;
    margin-bottom: 50px; 
    margin-left: 20px;
    margin-right: 20px;
    color: var(--color-black);
    display: flex; 
    justify-content: center;
    align-items: center;
}

.section-title-icon {
    font-size: 1.1em;
    color: var(--color-black); 
    margin-right: 15px; 
}

section[id] {
    scroll-margin-top: var(--header-height-desktop);
}


/* --- 1. HEADER & NAVIGATION --- */
.sticky-header {
    background-color: var(--color-black); 
    width: 100%; 
    position: fixed;
    top: 0;
    left: 0;
    right: 0; 
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5); 
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px; 
    min-height: var(--header-height-desktop);
}

.logo {
    height: 150px; 
    width: auto;
    transition: height 0.3s;
}

.main-nav ul {
    list-style: none;
    display: flex;
}

.main-nav ul li a {
    color: var(--color-white);
    text-decoration: none;
    padding: 10px 15px;
    display: block;
    font-weight: 600;
    transition: color 0.3s;
}

.main-nav ul li a:hover {
    color: var(--color-primary-green);
}

/* *** GEÄNDERT: Styling für Impressum & Datenschutz (Dezent und Abseits) *** */
.main-nav ul li.legal-link a {
    font-size: 0.8em; /* Noch kleiner */
    color: #888888; /* Noch dezenter */
    padding: 10px 8px; /* Weniger Padding */
}

.main-nav ul li.legal-link a:hover {
    color: var(--color-primary-green);
}
/* WICHTIG: Damit die Abgrenzung zum Hauptmenü funktioniert, muss der erste 
   .legal-link im HTML (z.B. Impressum) ein "style="margin-left: auto;"" 
   Attribut im <li>-Tag enthalten. */


/* --- 2. HERO-SEKTION (Standard/Desktop) --- */
.hero-section {
    position: relative; 
    width: 100%;
    
    min-height: calc(100vh - var(--header-height-desktop));
    margin-top: var(--header-height-desktop); 
    
    background-size: cover;
    background-position: center;
    background-attachment: fixed; 
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; 
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%; 
    min-height: 100%; 
    width: auto;
    height: auto;
    z-index: 1; 
    transform: translate(-50%, -50%); 
    object-fit: cover; 
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); 
    z-index: 2; 
}

.hero-overlay {
    text-align: center;
    color: var(--color-white);
    max-width: 900px;
    padding: 20px;
    z-index: 3; 
    position: relative; 
}

.hero-title {
    font-size: 3.8em;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.1;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.7);
}

.hero-subtitle {
    font-size: 1.5em;
    font-weight: 400;
    margin-bottom: 40px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}

.cta-button {
    display: inline-block;
    background-color: var(--color-primary-green);
    color: var(--color-white);
    padding: 15px 35px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 5px; 
    transition: background-color 0.3s, transform 0.2s;
    border: none;
    cursor: pointer;
    font-size: 1.1em;
}

.cta-button:hover {
    background-color: #008740;
    transform: translateY(-2px);
}

/* --- 3. LEISTUNGSÜBERSICHT (Schwarze Boxen mit Details/Summary) --- */
.services-section {
    background-color: var(--color-white);
}

.services-grid {
    display: flex;
    flex-wrap: wrap; 
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
    justify-content: center; 
}

.service-card {
    text-align: center;
    padding: 25px;
    background-color: #222222;
    color: var(--color-white); 
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s, transform 0.3s;
    
    flex-basis: calc(33.333% - 16.666px); 
    min-width: 250px; 
    flex-grow: 0;
    
}

/* --- ZUSÄTZLICHE STYLES FÜR LEISTUNGSKARTEN (Details/Summary) --- */

.service-card details {
    width: 100%;
    padding: 0; 
}

.service-card summary {
    list-style: none;
    cursor: pointer; 
    text-align: center;
    padding: 0 0 10px 0; 
    display: flex; 
    flex-direction: column;
    align-items: center;
    outline: none; 
    position: relative; 
}

.service-card summary::-webkit-details-marker {
    display: none;
}

.service-card summary::after {
    content: '\f078'; 
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--color-primary-green);
    font-size: 1.5em; 
    position: absolute;
    left: 50%;
    bottom: -5px; 
    transform: translateX(-50%); 
    transition: transform 0.3s;
}

.service-card details[open] summary::after {
    transform: translateX(-50%) rotate(180deg);
}

.service-card details[open] summary h3 {
    color: var(--color-primary-green);
}

.service-card:hover {
    background-color: #1a1a1a; 
    transform: translateY(-5px);
}

.service-card .service-image-icon {
    width: 80px; 
    height: auto; 
    margin-bottom: 10px; 
    display: block; 
    max-width: 100%;
}

.service-card .icon {
    font-size: 4em;
    color: var(--color-primary-green); 
    margin-bottom: 10px; 
    display: block;
}

.service-card h3 {
    color: var(--color-white); 
    font-weight: 600; 
    margin-bottom: 10px;
}

.service-card .service-description {
    text-align: left; 
    padding-top: 10px; 
    border-top: 1px solid #333; 
    margin-top: 10px; 
    font-size: 0.95em;
    line-height: 1.4;
    
    word-wrap: break-word; 
    overflow-wrap: break-word;
}

/* --- 4. PARALLAX-BANNER (Neu) --- */
.parallax-section {
    background-image: url('https://www.sigel-karosserie.de/img/werkstatt.jpg'); 
    background-size: cover;
    background-position: center;
    background-attachment: fixed; 
    
    height: 400px; 
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.parallax-overlay {
    /* Dunkles, leicht grünes Overlay */
    background-color: rgba(15, 30, 25, 0.85); 
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--color-white);
    text-align: center;
    
    /* Desktop Standard Padding */
    padding: 20px; 
}

.parallax-title {
    font-size: 3em;
    font-weight: 800;
    margin-bottom: 10px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.9);
}


/* --- ZUSÄTZLICHES CSS FÜR DIE TEXT-BOX --- */
.text-box {
    /* Reines Schwarz mit 70% Transparenz */
    background-color: rgba(0, 0, 0, 0.85); 
    padding: 15px 30px;
    border-radius: 5px;
    margin-bottom: 20px; 
    display: inline-block; 
    max-width: 90%;
}

.parallax-subtitle {
    margin-bottom: 0; 
    /* Korrigierte, größere Schriftgröße */
    font-size: 1.3em;
}

.parallax-title {
    margin-bottom: 10px; 
}

/* --- 5. ÜBER UNS SEKTION --- */
.about-section {
    background-color: #f7f7f7;
}

.about-content {
    display: flex;
    gap: 40px;
    align-items: center;
}

.about-text {
    flex: 1;
}

.about-text p {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.about-image-wrapper {
    flex: 1;
    height: auto; 
    width: 100%; 
    
    border-radius: 8px;
    overflow: hidden; 
    
    background-color: #f7f7f7; 
    
    max-height: 400px; 
}

.about-image {
    width: 100%;
    height: 100%; 
    display: block;
    
    object-fit: contain; 
}

.about-text ul {
    list-style: none;
    margin-top: 20px;
}

.about-text ul li {
    padding: 5px 0;
    display: flex;
    align-items: center;
}

.usp-checkmark {
    color: var(--color-primary-green);
    font-size: 1.2em;
    font-weight: 800;
    margin-right: 10px;
}

/* --- 6. KONTAKT SEKTION --- */
.contact-section {
    background-color: var(--color-white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: var(--font-primary);
}

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

.contact-info h3 {
    color: var(--color-primary-green);
    margin-bottom: 15px;
}

.map-placeholder {
    height: 250px; 
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0; 
}

.map-placeholder iframe { 
    width: 100%; 
    height: 100%;
}

/* --- 7. REZENSIONEN --- */
.reviews-section {
    background-color: var(--color-black); 
    color: var(--color-white);
}

.reviews-section .section-title {
    color: var(--color-white);
}

.review-summary {
    text-align: center;
    margin-bottom: 40px;
    font-size: 1.2em;
}

.review-summary strong {
    color: var(--color-primary-green);
    font-weight: 800;
}

.review-button {
    margin-top: 20px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.testimonial-card {
    background-color: #222222; 
    padding: 25px;
    border-left: 5px solid var(--color-primary-green); 
    border-radius: 8px;
    font-style: italic;
}

.testimonial-card p {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.testimonial-card .stars {
    color: gold;
    font-size: 1.2em;
    margin-bottom: 10px;
}

.testimonial-card cite {
    display: block;
    margin-top: 15px;
    font-style: normal;
    font-weight: 600;
    color: var(--color-primary-green);
}

/* --- 8. FOOTER --- */
.footer {
    background-color: #111111; 
    color: #cccccc;
    text-align: center;
    padding: 20px 0;
    font-size: 0.9em;
}

.footer-links a {
    color: var(--color-primary-green);
    text-decoration: none;
    margin: 0 5px;
}

/* --- BURGER-MENÜ STYLING --- */
.burger-menu-toggle {
    display: none; 
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.burger-menu-toggle .bar {
    display: block;
    width: 30px;
    height: 3px;
    margin: 6px auto;
    background-color: var(--color-white);
    transition: all 0.3s ease-in-out;
}

.burger-menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.burger-menu-toggle.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.burger-menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}


/* --- SCROLL-TO-TOP BUTTON --- */
.scroll-to-top {
    display: none; 
    position: fixed;
    bottom: 30px; 
    right: 30px; 
    z-index: 999; 
    background-color: var(--color-primary-green);
    color: var(--color-white);
    text-align: center;
    line-height: 50px;
    font-size: 1.5em;
    width: 50px;
    height: 50px;
    border-radius: 50%; 
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    transition: background-color 0.3s, transform 0.2s;
    text-decoration: none; 
}

.scroll-to-top:hover {
    background-color: #008740;
    transform: scale(1.1);
}

/* --- MEDIA QUERIES (RESPONSIVENESS) --- */

/* **1. TABLET / IPAD HOCHKANT (bis 900px)** */
@media (max-width: 900px) {
    
    section[id] {
        scroll-margin-top: var(--header-height-mobile);
    }
    
    .header-content {
        min-height: var(--header-height-mobile);
        padding: 0; 
    }
    
    .logo {
        height: 100px; 
        padding-left: 20px; 
    }
    
    .burger-menu-toggle {
        display: block; 
        padding-right: 20px;
    }

    .hero-section {
        min-height: calc(100vh - var(--header-height-mobile));
        margin-top: var(--header-height-mobile);
    }
    
    .main-nav {
        position: fixed;
        top: var(--header-height-mobile); 
        left: 0;
        width: 100%;
        height: 0; 
        overflow: hidden;
        background-color: var(--color-black);
        opacity: 0;
        visibility: hidden;
        transition: height 0.3s ease-in-out, opacity 0.3s, visibility 0s 0.3s;
    }

    .main-nav.active {
        height: calc(100vh - var(--header-height-mobile));
        opacity: 1;
        visibility: visible;
        transition: height 0.3s ease-in-out, opacity 0.3s;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: center;
        padding-top: 20px;
    }
    
    /* WICHTIG: Impressum/Datenschutz im mobilen Menü wieder normal stylen */
    .main-nav ul li.legal-link a {
        font-size: 1em; /* Normale Größe */
        color: var(--color-white); /* Normale Farbe */
    }
    
    .about-content, .contact-grid {
        flex-direction: column;
        grid-template-columns: 1fr;
    }
    
    .about-image-wrapper {
        max-height: none; 
        max-width: 500px; 
        margin: 0 auto;
    }
    
    .service-card {
        flex-basis: calc(50% - 12.5px); 
        flex-grow: 0; 
    }
    
    .parallax-section {
        background-attachment: scroll; 
        height: 300px; 
    }
    
    .parallax-overlay {
        padding: 60px 20px; 
    }
    
    .parallax-title {
        font-size: 2.2em; 
    }
    
    .parallax-subtitle {
        font-size: 1.25em; 
        margin-bottom: 20px; 
    }
    
    .section-padding {
        padding: 40px 0; 
    }
    
    .section-title {
        flex-direction: column; 
        margin-bottom: 30px; 
        font-size: 2em;
    }
}

/* **2. MOBILE (bis 600px - iPhone etc.)** */
@media (max-width: 600px) {
    
    /* --- ZUSÄTZLICHE KOMPAKTHEIT FÜR HANDYS --- */
    
    .section-padding {
        padding: 30px 0 !important; 
    }
    
    .section-title {
        margin-bottom: 15px; 
    }
    
    .section-title-icon {
        margin-right: 0; 
        margin-bottom: 10px; 
        font-size: 1.8em; 
    }

    .hero-title {
        font-size: 2em;
        margin-bottom: 25px; 
        line-height: 1.3; 
    }

    .hero-subtitle {
        font-size: 1em;
        margin-bottom: 50px; 
        line-height: 1.6; 
    }

    .cta-button {
        padding: 12px 25px;
        font-size: 0.9em;
    }
    
    .services-grid {
        gap: 20px; 
    }
    
    .service-card {
        flex-basis: 100%; 
        padding: 20px; 
    }
    
    .about-image-wrapper {
        height: auto;
    }
    
    .parallax-section {
        height: 220px; 
    }
    
    .parallax-overlay {
        padding: 30px 15px; 
    }

    .text-box {
        padding: 10px 15px; 
        margin-bottom: 15px; 
    }

    .parallax-title {
        font-size: 1.3em; 
        margin-bottom: 5px; 
    }
    
    .parallax-subtitle {
        font-size: 0.75em; 
        margin-bottom: 10px; 
    }
}