/* --- Globale Styles & Resets --- */
:root {
    --primary-color: #000000;
    --secondary-color: #333333;
    --background-color: #FFFFFF;
    --accent-bg-color: #F8F8F8;
    --button-bg: #000000;
    --button-text: #FFFFFF;
    --button-hover-bg: #333333;
    --link-color: #000000;
    --link-hover-color: #555555;

    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;

    --container-width: 1140px;
    --padding-section: 60px 0;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-body); color: var(--primary-color); background-color: var(--background-color); line-height: 1.6; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

/* FIX: Verhindert horizontales Scrollen auf Mobile */
body, html { overflow-x: hidden; width: 100%; }

.container { width: 90%; max-width: var(--container-width); margin: 0 auto; }
a { color: var(--link-color); text-decoration: none; transition: color 0.3s ease; }
a:hover { color: var(--link-hover-color); }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); font-weight: 700; margin-bottom: 1rem; }
h1 { font-size: 2.8rem; line-height: 1.2; margin-bottom: 1.5rem; }
h2 { font-size: 2.2rem; line-height: 1.3; margin-bottom: 2rem; }
h3 { font-size: 1.5rem; line-height: 1.4; margin-bottom: 0.8rem; }
h4 { font-size: 1.15rem; margin-bottom: 0.75rem; }
p { margin-bottom: 1rem; }
ul { list-style: none; margin-bottom: 1rem; }
img { max-width: 100%; height: auto; display: block; }
.section-padding { padding: var(--padding-section); }
.alternate-bg { background-color: var(--accent-bg-color); }
.text-center { text-align: center; }
.section-title { text-align: center; margin-bottom: 3rem; }

/* --- Buttons --- */
.cta-button { display: inline-block; background-color: var(--button-bg); color: var(--button-text); padding: 12px 25px; border: none; border-radius: 5px; font-family: var(--font-heading); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; cursor: pointer; transition: background-color 0.3s ease, transform 0.3s ease; }
.cta-button:hover { background-color: var(--button-hover-bg); color: var(--button-text); }

/* --- Header --- */
.header { background-color: var(--background-color); padding: 15px 0; border-bottom: 1px solid #eee; position: sticky; top: 0; z-index: 1000; width: 100%; }
.header-container { display: flex; justify-content: space-between; align-items: center; }
.logo-link { display: block; }
.logo-image { height: 50px; width: auto; }
.main-nav ul { display: flex; gap: 25px; margin-bottom: 0; }
.main-nav a { font-weight: 700; padding: 5px 0; position: relative; }
.main-nav a::after { content: ''; position: absolute; width: 0; height: 2px; bottom: -2px; left: 0; background-color: var(--primary-color); transition: width 0.3s ease; }
.main-nav a:hover::after { width: 100%; }
.header-cta { padding: 10px 20px; font-size: 0.9rem; }
.mobile-nav-toggle { display: none; background: none; border: none; font-size: 2rem; cursor: pointer; color: var(--primary-color); }

/* --- Hintergrund-Effekt --- */
.hero-section::before,
.about-section::before,
.service-item::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    filter: blur(4px);
}

.hero-section::before,
.about-section::before {
     background-image: url('../images/hero-background.jpg');
}
.service-item-gebaeudereinigung::before { background-image: url('../images/gebäudereinigung.jpg'); }
.service-item-hausmeister::before     { background-image: url('../images/hausmeisterdienste.webp'); }
.service-item-bauendreinigung::before { background-image: url('../images/bauendreinigung.jpg'); }

.hero-section .container,
.about-section .container,
.service-item > .service-item-content {
    position: relative;
    z-index: 2;
}

/* --- Hero Section --- */
.hero-section {
    background-color: var(--accent-bg-color);
    color: var(--primary-color);
    padding: 100px 0;
    text-align: center;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}
.hero-logo { display: block; max-height: 100px; width: auto; margin: 0 auto 1.5rem auto; }
.hero-content .subtitle { font-size: 1.2rem; margin-bottom: 2rem; max-width: 700px; margin-left: auto; margin-right: auto; }
.hero-cta { padding: 15px 30px; font-size: 1.1rem; }

/* --- Services Section --- */
#services { background-color: var(--accent-bg-color); padding: var(--padding-section); }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.service-item { padding: 0; text-align: center; border: 1px solid #eee; border-radius: 8px; transition: transform 0.3s ease, box-shadow 0.3s ease; position: relative; overflow: hidden; z-index: 1; background-color: var(--accent-bg-color); }
.service-item-content { height: 100%; padding: 30px; background-color: rgba(255, 255, 255, 0.7); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); border-radius: 8px; display: flex; flex-direction: column; align-items: center; }
.service-item:hover { transform: translateY(-5px); box-shadow: 0 5px 15px rgba(0, 0, 0, 0.07); }
.service-icon { display: block; height: 60px; width: auto; margin: 0 auto 1.5rem auto; }

/* --- About Us Section --- */
.about-section { padding: var(--padding-section); position: relative; overflow: hidden; z-index: 1; background-color: var(--accent-bg-color); }
.why-us-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin-top: 2rem; }
.why-us-card { background-color: var(--background-color); padding: 25px; text-align: center; border: 1px solid #eee; border-radius: 8px; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.why-us-card:hover { transform: translateY(-5px); box-shadow: 0 5px 15px rgba(0, 0, 0, 0.07); }
.why-us-card-image { max-height: 60px; width: auto; margin: 0 auto 1.5rem auto; }

/* --- Contact Section --- */
.contact-section { background-color: var(--background-color); padding: var(--padding-section); }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 2rem; text-align: left; }

/* --- Footer --- */
.footer { background-color: var(--secondary-color); color: #ccc; padding: 25px 0; margin-top: 40px; border-top: 1px solid #555; }
.footer-container { text-align: center; }
.footer-copyright { font-size: 0.9rem; line-height: 1.5; }
.footer-copyright a { color: #ccc; text-decoration: none; margin: 0 10px; transition: color 0.3s ease; }

/* --- Responsive Design --- */
@media (max-width: 992px) {
    h1 { font-size: 2.4rem; } h2 { font-size: 1.9rem; }
    .why-us-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .header-container { position: relative; }
    
    /* FIX: Mobile Menü Styles */
    .main-nav { 
        display: none; 
        position: absolute; 
        top: 100%; 
        left: 0; 
        width: 100%; 
        background-color: var(--background-color); 
        border-top: 1px solid #eee; 
        border-bottom: 1px solid #eee; 
        padding: 1rem 0; 
        z-index: 999; 
    }
    
    /* Diese Klasse wird per JavaScript getoggled */
    .main-nav.active { 
        display: block !important; 
    }
    
    .main-nav ul { flex-direction: column; align-items: center; gap: 15px; }
    .header-cta { display: none; }
    .mobile-nav-toggle { display: block; }
    
    h1 { font-size: 2rem; } h2 { font-size: 1.7rem; }
    .hero-section { padding: 80px 0; min-height: 50vh; }
    .contact-grid { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 576px) {
    .container { width: 92%; }
    .why-us-grid { grid-template-columns: 1fr; }
}

/* --- Kontaktformular Styles --- */
.contact-form-embedded { max-width: 700px; margin: 3rem auto; border: 1px solid #eee; padding: 30px; border-radius: 5px; background-color: #ffffff; }
.contact-form-embedded .form-title { text-align: center; margin-bottom: 2rem; font-size: 1.8rem; color: var(--primary-color); }

.form-row { display: grid; grid-template-columns: 1fr 2fr; gap: 15px; margin-bottom: 15px; align-items: center; }
.form-row label { font-weight: bold; text-align: left; padding-right: 10px; color: var(--primary-color); font-size: 0.95rem; }

/* FIX: Wunschtermin & Felder auf Mobile (box-sizing ist entscheidend!) */
.form-row input, 
.form-row select { 
    width: 100% !important; 
    max-width: 100% !important;
    padding: 10px; 
    border: 1px solid #ccc; 
    border-radius: 3px; 
    font-size: 1rem; 
    height: 42px; 
    box-sizing: border-box !important; /* Inkludiert Padding in die Breite */
    font-family: var(--font-body); 
}

.form-submit-button { display: block; width: 100%; margin-top: 20px; background-color: var(--button-bg); color: var(--button-text); }
.contact-divider { margin: 4rem auto; width: 50%; border: none; border-top: 1px solid #eee; }

@media (max-width: 600px) {
    .form-row { grid-template-columns: 1fr; gap: 5px; }
    .form-row label { margin-bottom: 3px; text-align: left; }
    .contact-form-embedded { padding: 15px; width: 100%; }
}
