/* css/pages/home.css - Styles spezifisch für die Startseite (index.php) */

/* Hero-Sektion */
.hero-section {
    /* Hintergrundgrösse zu Beginn der Animation (leicht vergrössert, um Zoom-Effekt zu ermöglichen) */
    background-size: 110%; 
    background-position: center center; /* Startposition des Hintergrunds */
    background-repeat: no-repeat; /* Wichtig, damit das Bild nicht gekachelt wird */
    background-size: cover; /* Stellt sicher, dass das Bild den Bereich ausfüllt */


    /* Abgerundete Ecken */
    border-radius: 16px; /* Einheitlicher mit layout.css .hero-section */
    
    overflow: hidden;

    /* NEU: Positionierung nach unten versetzen und Höhe anpassen */
    height: 70vh; /* Etwas niedriger als in layout.css für die Startseite, kann angepasst werden */
    margin-top: 10px; /* Abstand zum Header reduziert (wie in layout.css) */
    
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color-light);
    text-align: center;
    /* !!! DIESE ZEILE MUSS HIER ENTFERNT WERDEN !!! */
    /* animation: heroPan 60s infinite alternate linear; */
}

/* Video im Hero-Bereich */
.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    /* animation: heroPan 60s infinite alternate linear; <-- Diese Zeile wurde bereits hier entfernt */
}

/* Inhalt über dem Hero-Bild/Video */
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 20px;
    box-sizing: border-box;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(var(--primary-color-rgb), 0.6); /* Overlay in Primary Color */
    opacity: 0.8; /* Etwas transparenter */
    z-index: 1;
}

/* NEU: Klasse für das animierte Hintergrundbild */
.hero-animated-background {
    animation: heroPan 60s infinite alternate linear;
}

/* Keyframes für die kombinierte Zoom- und Panning-Animation */
@keyframes heroPan {
    0% {
        transform: scale(1.0);
        object-position: 0% 50%;
    }
    50% {
        transform: scale(1.15);
        object-position: 100% 50%;
    }
    100% {
        transform: scale(1.0);
        object-position: 0% 50%;
    }
}

/* Services Sektion (Startseite) */
.services-section {
    padding: 80px 0; /* Padding reduziert */
    background-color: var(--dark-bg-color); /* Hintergrund wird dunkelgrau */
}

.services-section h2 {
    /* Diese Überschrift ist global für alle Sektionen */
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-item {
    background-color: var(--mid-bg-color); /* Karten bleiben etwas heller */
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 8px 20px var(--shadow-light); /* Aktualisierter Schatten */
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 5px solid var(--accent-color);
}

.service-item:hover {
    transform: translateY(-8px); /* Deutlicherer Schwebe-Effekt */
    box-shadow: 0 12px 30px var(--shadow-medium); /* Stärkerer Schatten */
}

.service-icon {
    font-size: 3.8em; /* Grösser */
    color: var(--accent-color);
    margin-bottom: 25px; /* Mehr Abstand */
}

.service-item h3 {
    font-size: 1.9em; /* Grösser */
    margin-bottom: 15px;
    color: var(--primary-color);
}

.service-item p {
    font-size: 1.05em; /* Etwas grösser */
    color: var(--text-color-dark);
}

/* Why Us Sektion (Startseite) */
.why-us-section {
    padding: 80px 0; /* Padding reduziert */
    background-color: var(--mid-bg-color);
    color: var(--primary-color);
}

.why-us-section h2 {
    color: var(--primary-color);
    font-size: 3em;
    text-align: center;
    margin-bottom: 60px;
}

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    text-align: center;
}

.why-us-item {
    padding: 30px; /* Mehr Padding */
    background-color: var(--light-bg-color); /* Hintergrundfarbe für jedes Item */
    border-radius: 12px;
    box-shadow: 0 5px 15px var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.why-us-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px var(--shadow-medium);
}

.why-us-icon {
    font-size: 4em; /* Grösser */
    color: var(--accent-color);
    margin-bottom: 20px;
}

.why-us-item h3 {
    color: var(--primary-color);
    font-size: 2em; /* Grösser */
    margin-bottom: 10px;
}

.why-us-item p {
    font-size: 1.05em; /* Etwas grösser */
    color: var(--text-color-dark);
}

/* Call-to-Action Sektion (Startseite) */
.cta-section {
    padding: 80px 0; /* Padding reduziert */
    background-color: var(--dark-bg-color);
    color: var(--text-color-light);
    text-align: center;
}

.cta-section h2 {
    color: var(--text-color-light);
    font-size: 3em;
    margin-bottom: 40px;
}
/* ========================================= */
/* NEU: Styles für 404-Fehlerseite           */
/* ========================================= */
.error-404-section {
    padding: 80px 0; /* Padding reduziert */
    padding-top: calc(var(--main-header-height-desktop) + 10px); /* Oben Anpassung an Header-Höhe */
    background-color: var(--light-bg-color);
    color: var(--primary-color);
    text-align: center;
}

.error-404-section .error-code {
    font-size: 10em; /* Grösser */
    font-weight: bold;
    color: var(--accent-color);
    margin-bottom: 20px;
    line-height: 1;
    text-shadow: 4px 4px 10px rgba(var(--accent-color-rgb), 0.3);
}

.error-404-section .error-message-heading {
    font-size: 3.5em; /* Grösser */
    color: var(--primary-color);
    margin-bottom: 20px;
}

.error-404-section .lead-text {
    font-size: 1.3em; /* Grösser */
    max-width: 700px;
    margin: 0 auto 40px auto; /* Mehr Abstand */
    color: var(--text-color-dark);
}

.error-404-section .error-links-grid {
    display: flex;
    justify-content: center;
    gap: 30px; /* Mehr Abstand */
    margin-top: 50px; /* Mehr Abstand */
    flex-wrap: wrap;
}

/* Anpassung der Buttons */
.error-404-section .btn {
    font-size: 1.2em;
    padding: 15px 30px;
}