/* --- Grundlegende Einstellungen & Variablen --- */
:root {
    --primary-color: #FFC300; /* Ein kräftiges, modernes Gelb */
    --secondary-color: #FFF9E1; /* Helles Gelb als neue Sekundärfarbe */
    --text-color: #333333;
    --light-gray-bg: #f8f9fa;
    --border-color: #e0e0e0;
    --font-family: 'Be Vietnam Pro', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: var(--text-color);
    background-color: var(--secondary-color); /* Helles Gelb als Hintergrund */
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Header & Navigation --- */
.main-header {
    background: var(--secondary-color); /* Immer hell Gelb */
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(224, 224, 224, 0.2); /* Rand leicht transparent */
    transition: background-color 0.3s ease;
}

/* Optional: Header wird beim Scrollen wieder weiß */
.main-header.scrolled {
    background: var(--secondary-color); /* Immer hell Gelb */
    border-bottom: 1px solid var(--border-color);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0a1931; /* Logo jetzt Dunkelblau */
    text-decoration: none;
}
.main-header.scrolled .logo {
    color: #0a1931; /* Logo auch im scrolled Zustand Dunkelblau */
}

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

.main-nav li {
    margin-left: 2rem;
}

.main-nav a {
    text-decoration: none;
    color: #0a1931; /* Menü-Text jetzt Dunkelblau */
    font-weight: 600;
    transition: color 0.3s ease;
}
.main-header.scrolled .main-nav a {
    color: #0a1931; /* Menü-Text auch im scrolled Zustand Dunkelblau */
}


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

.lang-switcher a {
    text-decoration: none;
    color: #ccc; /* Sprachumschalter-Farbe angepasst */
    font-weight: 600;
    padding: 0.2rem;
    transition: color 0.3s ease;
}
.main-header.scrolled .lang-switcher a {
    color: #888;
}

.lang-switcher a.active {
    color: var(--primary-color);
}
.lang-separator {
    color: #aaa;
    margin: 0 5px;
}
.main-header.scrolled .lang-separator {
    color: #ccc;
}


/* --- Hero Section & Animation (STARK VERÄNDERT) --- */
#hero {
    position: relative; /* Wichtig für das Overlay */
    overflow: hidden; /* Verhindert, dass das Bild übersteht */
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: left;
    
    /* Hintergrundbild und Animation */
    background-image: url('https://images.unsplash.com/photo-1521737604893-d14cc237f11d?q=80&w=2084&auto=format&fit=crop');
    background-size: cover;
    background-position: center center;
    animation: kenBurnsEffect 15s infinite alternate ease-in-out; /* Geschwindigkeit erhöht */
}

/* NEU: Keyframes für die Ken-Burns-Animation */
@keyframes kenBurnsEffect {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.1);
    }
}

/* NEU: Styling für das Overlay */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* 50% schwarzes Overlay */
    z-index: 1; /* Über dem Bild, aber unter dem Inhalt */
}

/* Wichtig: stellt sicher, dass der Inhalt ÜBER dem Overlay liegt */
.hero-container {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #fff; /* Textfarbe jetzt weiß */
}

.hero-title span {
    display: block;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.hero-title .line2 {
    animation-delay: 0.3s;
}

.hero-subtitle {
    font-size: 1.2rem;
    max-width: 600px;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9); /* Textfarbe leicht transparentes weiß */
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.6s forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-color);
    border: 2px solid var(--primary-color);
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.9s forwards;
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}


/* --- Allgemeine Sektionen --- */
.content-section {
    padding: 80px 0;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.content-section.visible {
    opacity: 1;
    transform: translateY(0);
}


.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    font-weight: 700;
}
.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.alt-bg {
    background-color: var(--light-gray-bg);
}

/* --- Services Section --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    background: #fff; /* Hintergrund jetzt weiß */
    padding: 2rem 0;
}

.service-card {
    background: var(--secondary-color);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
}
.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}
.service-card h3 {
    padding: 1.5rem 1.5rem 0.5rem 1.5rem;
    font-size: 1.3rem;
}
.service-card p {
    padding: 0 1.5rem 1.5rem 1.5rem;
    color: #666;
}

/* --- About Section --- */
.about-container {
    display: flex;
    align-items: center;
    gap: 3rem;
}
.about-image {
    flex: 1;
}
.about-image img {
    max-width: 100%;
    border-radius: 10px;
}
.about-text {
    flex: 1.2;
    background: var(--secondary-color); /* Helles Gelb */
    border-radius: 10px;
    padding: 2rem;
}
.about-text .section-title {
    text-align: left;
}
.about-text p {
    font-size: 1.1rem;
}

/* --- Contact Form --- */
.contact-form {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: var(--font-family);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 195, 0, 0.3);
}

.contact-form button {
    align-self: center;
    cursor: pointer;
    border-radius: 50px;
}

#form-messages {
    text-align: center;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: none; /* Hidden by default */
}
#form-messages.success {
    background: #d4edda;
    color: #155724;
    display: block;
}
#form-messages.error {
    background: #f8d7da;
    color: #721c24;
    display: block;
}


/* --- Footer --- */
.main-footer {
    background: var(--primary-color); /* Footer Gelb */
    color: var(--text-color);
    text-align: center;
    padding: 2rem 0;
}
.main-footer p {
    color: #333;
}


/* --- Mobile Optimierung (Responsive Design) --- */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .main-header {
        background: var(--secondary-color); /* Header auf mobil immer hell Gelb */
    }
    .main-header.scrolled {
        background: var(--secondary-color);
    }
    .logo, .main-header.scrolled .logo {
        color: #0a1931; /* Logo auf mobil jetzt dunkelblau */
    }
    .main-nav a, .main-header.scrolled .main-nav a {
        color: #0a1931; /* Nav-Links auf mobil jetzt dunkelblau wie Desktop */
    }

    .main-header .container {
        flex-direction: column;
        gap: 10px;
    }
    
    .main-nav ul {
        padding: 0;
    }

    .main-nav li {
        margin: 0 1rem;
    }
    
    #hero {
        text-align: center;
    }

    .hero-container {
        padding: 0 1rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }
    
    .about-container {
        flex-direction: column;
        text-align: center;
    }
    
    .about-text .section-title {
        text-align: center;
    }
    
    /* Burger Menü Styles */
    .burger {
        display: block;
        position: absolute;
        top: 1.2rem;
        right: 1.5rem;
        width: 32px;
        height: 32px;
        cursor: pointer;
        z-index: 2001;
    }
    .burger span, .burger span:before, .burger span:after {
        display: block;
        position: absolute;
        width: 100%;
        height: 4px;
        background: #0a1931; /* Burger-Icon jetzt dunkelblau */
        border-radius: 2px;
        transition: all 0.3s ease;
        content: '';
    }
    .burger span {
        top: 14px;
    }
    .burger span:before {
        top: -10px;
    }
    .burger span:after {
        top: 10px;
    }
    .burger.active span {
        background: transparent;
    }
    .burger.active span:before {
        transform: translateY(10px) rotate(45deg);
    }
    .burger.active span:after {
        transform: translateY(-10px) rotate(-45deg);
    }
    .main-nav {
        position: fixed;
        top: 0;
        right: -100vw;
        width: 70vw;
        height: 100vh;
        background: var(--secondary-color);
        flex-direction: column;
        align-items: flex-start;
        padding: 5rem 2rem 2rem 2rem;
        transition: right 0.3s ease;
        z-index: 2000;
        box-shadow: -2px 0 10px rgba(0,0,0,0.1);
        display: flex;
    }
    .main-nav.open {
        right: 0;
    }
    .main-nav.open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(10,25,49,0.15); /* leichter Overlay */
        z-index: 1999;
        pointer-events: none;
        transition: opacity 0.3s cubic-bezier(0.4,0,0.2,1);
        opacity: 1;
    }
    .main-nav ul {
        flex-direction: column;
        width: 100%;
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.4s cubic-bezier(0.4,0,0.2,1), transform 0.4s cubic-bezier(0.4,0,0.2,1);
    }
    .main-nav.open ul {
        opacity: 1;
        transform: translateY(0);
    }
    .main-nav li {
        margin: 1.5rem 0;
    }
}

/* --- Services Section --- */
.services-section {
    background: var(--secondary-color); /* Helles Gelb für gesamten Bereich */
}

#services {
    background: #fff; /* Weißer Hintergrund für den Services Bereich */
}