:root {
    --primary-green: #a6ce39;
    --dark-bg: #0f0f0f;
    --dark-card: #1a1a1a;
    --light-bg: #ffffff;
    --text-main: #333;
    --text-muted: #666;
    --white: #ffffff;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

body { 
    font-family: 'Inter', sans-serif; 
    color: var(--text-main); 
    line-height: 1.6; 
    overflow-x: hidden; 
    background-color: var(--white);
    width: 100%;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

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

/* --- NAVIGATION --- */
header {
    position: fixed; 
    top: 0; 
    width: 100%; 
    z-index: 1000;
    padding: 20px 0; 
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px); 
    transition: var(--transition);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

.logo-text { font-weight: 900; font-size: 1.4rem; letter-spacing: -0.5px; z-index: 1001; }
.logo-text .green { color: var(--primary-green); }

nav ul { display: flex; gap: 30px; }
nav ul li a { 
    color: #111; font-weight: 700; font-size: 0.85rem; 
    letter-spacing: 1px; transition: 0.3s; position: relative;
}
nav ul li a:hover { color: var(--primary-green); }

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    z-index: 1001;
}

/* --- HERO SECTION (angepasst) --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    padding: 120px 20px 60px;
    width: 100%;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-background {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-content {
    max-width: 900px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: white;
    position: relative;
    z-index: 1;
}

/* Text-Schatten für bessere Lesbarkeit */
.hero-content h1,
.hero-content p,
.hero-content .hero-tagline,
.hero-content .hero-badges span {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
}

/* Logo Anpassung für dunklen Hintergrund */
.main-logo {
    display: block;
    margin: 0 auto 30px;
    width: 600px;
    max-width: 90vw;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}



.main-title span {
    color: var(--primary-green);
}

/* Subtitle Anpassung */
.hero-subtitle {
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    margin-bottom: 20px;
    font-weight: 600;
}

/* Divider Anpassung */
.line-divider {
    width: 80px;
    height: 6px;
    background: var(--primary-green);
    margin: 20px auto;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(166, 206, 57, 0.5);
}

/* Tagline Anpassung */
.hero-tagline {
    font-weight: 800;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

/* Badges Anpassung */
.hero-badges {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.hero-badges span {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-badges span i {
    color: var(--primary-green);
}

/* CTA Button Anpassung */
.cta-button {
    display: inline-block;
    background: var(--primary-green);
    color: var(--dark-bg);
    padding: 18px 40px;
    border-radius: 50px;
    font-weight: 900;
    transition: var(--transition);
    border: 2px solid var(--primary-green);
    box-shadow: 0 5px 15px rgba(166, 206, 57, 0.3);
}

.cta-button:hover {
    background: transparent;
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(166, 206, 57, 0.5);
}

/* Mobile Anpassungen */
@media (max-width: 768px) {
    .hero {
        padding-top: 100px;
        padding-left: 15px;
        padding-right: 15px;
    }

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

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-badges span {
        padding: 6px 15px;
        font-size: 0.85rem;
    }
}


/* --- LOGO FIX (Text ist jetzt im Bild) --- */
.main-logo {
    display: block;
    margin: 0 auto 30px;
    /* Da Text im Logo ist, darf es etwas größer sein */
    width: 600px; 
    /* WICHTIG: Passt sich dem Handybildschirm an (max 90% der Breite) */
    max-width: 90vw; 
    height: auto;
    object-fit: contain;
}

/* --- TEXT AUSBLENDEN --- */
.main-title { 
    display: none; /* Blendet den Text "HAUSMEISTERSERVICE MELNIK" aus */
}

.hero-subtitle { 
    font-size: clamp(1rem, 2vw, 1.3rem); 
    color: var(--text-muted); 
    margin-bottom: 20px;
    margin-top: 10px;
}

.line-divider { width: 80px; height: 6px; background: var(--primary-green); margin: 20px auto; border-radius: 10px; }
.hero-tagline { font-weight: 800; margin-bottom: 20px; font-size: 1.1rem; }

.hero-badges { display: flex; justify-content: center; gap: 15px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-badges span { 
    background: #272727; padding: 5px 15px; border-radius: 20px; 
    font-weight: 600; font-size: 0.9rem; display: flex; align-items: center; gap: 5px;
}
.hero-badges span i { color: var(--primary-green); }

.cta-button {
    display: inline-block; background: var(--dark-bg); color: white;
    padding: 18px 40px; border-radius: 50px; font-weight: 900; 
    transition: var(--transition); border: 2px solid var(--dark-bg);
}
.cta-button:hover { 
    background: transparent; color: var(--dark-bg); 
    transform: translateY(-5px); 
}

/* --- SECTIONS --- */
section { padding: 80px 0; }
.section-title { 
    font-size: clamp(1.8rem, 4vw, 2.8rem); 
    font-weight: 900; 
    text-align: center; 
    margin-bottom: 40px; 
    text-transform: uppercase; 
    color: var(--text-main);
}
.section-title.left { text-align: left; }
.light-section { background: white; }
.dark-section { background: var(--dark-bg); color: white; }
.dark-section .section-title { color: white; }

/* --- ABOUT --- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-features { display: flex; flex-direction: column; gap: 20px; }
.feat-card { 
    background: #f9f9f9; padding: 25px; border-radius: 15px; 
    border-left: 5px solid var(--primary-green); 
}
.feat-card i { font-size: 2rem; color: var(--primary-green); margin-bottom: 10px; }
.feat-card h4 { margin-bottom: 5px; font-size: 1.2rem; }
.check-list li { margin-bottom: 12px; font-weight: 600; display: flex; align-items: start; gap: 10px; }
.check-list i { color: var(--primary-green); margin-top: 5px; }

/* --- SERVICES --- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.service-card {
    background: var(--dark-card); padding: 40px 30px; border-radius: 20px;
    transition: var(--transition); border: 1px solid #333; 
    position: relative; overflow: hidden; height: 100%; display: flex; flex-direction: column;
}
.service-card i { font-size: 2.5rem; color: var(--primary-green); margin-bottom: 20px; }
.service-card h3 { margin-bottom: 20px; font-size: 1.4rem; line-height: 1.3; }
.service-card ul li { margin-bottom: 10px; font-size: 0.95rem; color: #ccc; padding-left: 15px; position: relative; }
.service-card ul li::before { content: "•"; color: var(--primary-green); position: absolute; left: 0; }
.service-card:hover { transform: translateY(-10px); background: #222; border-color: var(--primary-green); }

/* --- CONTACT --- */
.contact-flex { display: grid; grid-template-columns: 1fr 1.5fr; gap: 60px; margin-top: 30px; }
.contact-form { background: #f4f4f4; padding: 40px; border-radius: 20px; }
.form-group { display: flex; gap: 20px; }
.contact-form input, .contact-form textarea {
    width: 100%; padding: 15px; border: 1px solid #ddd;
    border-radius: 8px; margin-bottom: 15px; outline: none; font-family: inherit;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--primary-green); }
.submit-btn {
    width: 100%; background: var(--primary-green); border: none; padding: 15px;
    font-weight: 900; border-radius: 8px; cursor: pointer; transition: 0.3s;
    color: white; font-size: 1rem;
}
.info-item { display: flex; align-items: start; gap: 15px; margin-bottom: 20px; font-size: 1.1rem; }
.info-item i { color: var(--primary-green); font-size: 1.3rem; margin-top: 4px; }

/* --- FOOTER --- */
footer { background: #050505; color: #555; text-align: center; padding: 30px 20px; border-top: 1px solid #111; font-size: 0.9rem; }

/* --- MOBILE RESPONSIVE --- */
@media (max-width: 992px) {
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .contact-flex { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
    /* Menü */
    .hamburger { display: block; }
    nav {
        position: fixed; top: 70px; left: -100%; width: 100%; height: calc(100vh - 70px);
        background: white; transition: 0.4s ease; flex-direction: column;
        justify-content: center; align-items: center; border-top: 1px solid #eee; display: flex;
    }
    nav.active { left: 0; }
    nav ul { flex-direction: column; align-items: center; gap: 40px; }
    nav ul li a { font-size: 1.5rem; }

    /* Hero Anpassung */
    .hero { padding-top: 100px; padding-left: 15px; padding-right: 15px; }
    
    /* Logo / Bild Anpassung für Mobile */
    .main-logo {
        width: 100%; /* Nutzt den Platz aus */
        max-width: 90vw; /* Sicherheitsabstand zum Rand */
    }

    /* Restliche Mobile Styles */
    .form-group { flex-direction: column; gap: 0; }
    .contact-form { padding: 25px; }
    .section-title.left { text-align: center; }
    .contact-info { text-align: center; }
    .info-item { justify-content: center; }
}
/* --- HEADER NOTDIENST BUTTON --- */
.header-call-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #dc3545; 
    color: #fff !important;    
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 5px;        
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    
    /* ÄNDERUNG: */
    margin-left: auto;   /* Schiebt alles nach rechts */
    margin-right: 10px;  /* Nur kleiner Abstand zum schwarzen Button daneben */
    
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}


/* Icon animieren */
.header-call-btn i {
    animation: phone-wiggle 3s infinite;
}

.header-call-btn:hover {
    background-color: #b02a37;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(220, 53, 69, 0.3);
}

/* Wackel-Animation für das Telefon */
@keyframes phone-wiggle {
    0%, 90% { transform: rotate(0deg); }
    92% { transform: rotate(15deg); }
    94% { transform: rotate(-15deg); }
    96% { transform: rotate(15deg); }
    98% { transform: rotate(-15deg); }
    100% { transform: rotate(0deg); }
}

/* --- MOBILE ANPASSUNG (WICHTIG) --- */
@media (max-width: 768px) {
    /* Button etwas kleiner machen, damit er neben das Logo passt */
    .header-call-btn {
        padding: 8px 12px;
        font-size: 0.8rem; /* Schrift etwas kleiner */
        margin-right: 15px; /* Abstand zum Burger verringern */
        white-space: nowrap; /* Verhindert Umbruch des Textes */
    }

    /* Falls das Handy sehr schmal ist (z.B. iPhone SE), Text ausblenden oder verkürzen? 
       Hier lassen wir es erstmal so, da "Schlüsselnotdienst" lang ist. 
       Optional: Schriftgröße weiter verringern: */
    
    @media (max-width: 380px) {
        .header-call-btn span {
            display: none; /* Blendet Text aus auf winzigen Handys */
        }
        .header-call-btn::after {
            content: "Notdienst"; /* Kürzerer Text */
            font-size: 0.8rem;
        }
        .header-call-btn {
            gap: 5px;
        }
    }
}

.legal-note {
    text-align: center;      /* Macht den Text mittig */
    display: block;          /* Stellt sicher, dass der Container die volle Breite nutzt */
    margin-bottom: 30px;     /* Etwas Abstand zu den Boxen darunter */
    margin-top: -20px;       /* Zieht es etwas näher an die Überschrift (optional) */
    opacity: 0.8;            /* Macht den Text leicht transparenter (sieht edler aus) */
    font-size: 0.95rem;      /* Optionale Schriftgröße */
}

/* Jobs Page Styles */
.jobs-hero {
    min-height: 50vh;
    display: flex;
    align-items: center;
    background: radial-gradient(circle, #fff 0%, #f4f4f4 100%);
    padding: 120px 0 60px;
    text-align: center;
}

.jobs-content {
    padding: 80px 0;
    background: white;
}

.jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.job-card {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 15px;
    border-left: 5px solid var(--primary-green);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.job-card h3 {
    color: var(--dark-bg);
    margin-bottom: 10px;
}

.job-location {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.job-description {
    margin-bottom: 25px;
}

.job-description h4 {
    margin: 15px 0 10px;
    color: var(--dark-bg);
}

.job-description ul {
    padding-left: 20px;
}

.job-description li {
    margin-bottom: 8px;
}

.initiative-bewerbung {
    text-align: center;
    padding: 40px;
    background: var(--dark-card);
    border-radius: 15px;
    color: white;
}

.initiative-bewerbung h3 {
    margin-bottom: 15px;
}

.initiative-bewerbung p {
    margin-bottom: 25px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
/* --- CAR ANIMATION SECTION --- */
.car-display-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 60px; /* Abstand zum Text darüber */
    padding-bottom: 20px;
    position: relative;
}

.car-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 500px; /* Maximale Größe des Autos */
}

.service-car {
    width: 100%;
    height: auto;
    object-fit: contain;
    z-index: 2;
    /* Die Schwebe-Animation */
    animation: floatCar 4s ease-in-out infinite;
}

/* Der Schatten unter dem Auto */
.car-shadow-effect {
    width: 80%;
    height: 15px;
    background: radial-gradient(ellipse at center, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0) 70%);
    border-radius: 50%;
    margin-top: -15px; /* Zieht den Schatten etwas unter das Bild */
    z-index: 1;
    /* Schatten-Animation passend zum Schweben */
    animation: shrinkShadow 4s ease-in-out infinite;
}

/* --- KEYFRAMES (Animationen) --- */

/* Auto bewegt sich sanft auf und ab */
@keyframes floatCar {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-12px); /* Schwebt nach oben */
    }
    100% {
        transform: translateY(0px);
    }
}

/* Schatten wird kleiner/heller, wenn Auto oben ist */
@keyframes shrinkShadow {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(0.85); /* Schatten wird kleiner */
        opacity: 0.6; /* Schatten wird schwächer */
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Mobile Anpassung */
@media (max-width: 768px) {
    .car-wrapper {
        max-width: 85%; /* Etwas kleiner auf Handys */
    }
    .car-display-container {
        margin-top: 40px;
    }
}

/* Notdienst Preise Button - schwarzer Button */
.notdienst-preise-btn {
    background-color: #272727; 
    
    /* ÄNDERUNG: Wichtig, damit er am roten Button klebt! */
    margin-left: 0; 
    
    margin-right: 20px; /* Abstand zum Burger-Menü/Rand */
}

/* Icon Animation für den Preise-Button */
.notdienst-preise-btn i {
    animation: none; /* Keine Animation für diesen Button */
}

/* Mobile Anpassungen für den Preise-Button */
@media (max-width: 768px) {
    .notdienst-preise-btn {
        margin-right: 15px;
    }

    @media (max-width: 380px) {
        .notdienst-preise-btn span {
            display: none;
        }
        .notdienst-preise-btn::after {
            content: "Preise";
            font-size: 0.8rem;
        }
    }
}
