/* Grundlegende Einstellungen */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
}

/* Container für zentrierten Inhalt */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
    text-align: center;
}

/* Navigation */
nav {
    background: #003366; /* Dunkelblau für Business */
    color: #fff;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky; /* Menü bleibt oben kleben */
    top: 0;
    z-index: 1000;
}

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

nav ul li {
    margin-left: 20px;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

/* Hero Sektion */
header {
    background-color: #f4f4f4;
    height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    
    /* Hier wird dein neues Bild geladen */
    /* Der dunkle Schleier (rgba) sorgt dafür, dass man den weißen Text gut lesen kann */
    background: linear-gradient(rgba(0, 51, 102, 0.75), rgba(0, 51, 102, 0.75)), url('lager.jpg');
    
    background-size: cover;
    background-position: center;
    color: white;
}

header h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

/* Button Design */
.btn {
    display: inline-block;
    background: #e67e22; /* Akzentfarbe Orange */
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 20px;
    font-weight: bold;
}

.btn:hover {
    background: #d35400;
}

/* Services Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.card {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    /* NEU: Damit die Animation weich abläuft */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* NEU: Der Effekt beim Drüberfahren mit der Maus */
.card:hover {
    transform: translateY(-10px); /* Bewegt die Box 10px nach oben */
    box-shadow: 0 10px 20px rgba(0,0,0,0.2); /* Wirft einen stärkeren Schatten */
    background: #fff; /* Wird strahlend weiß */
    cursor: default;
}
/* Logistik Sektion */
#logistik {
    background-color: #eef2f5;
}

#logistik ul {
    list-style: none;
    padding: 0;
    max-width: 600px;
    margin: 20px auto;
    text-align: left;
}

#logistik li {
    background: #fff;
    margin-bottom: 10px;
    padding: 15px;
    border-left: 5px solid #003366;
}

/* Footer */
footer {
    background: #333;
    color: white;
    padding: 20px 0;
}
/* --- Optimierung für Handys (Mobile Ansicht) --- */
@media (max-width: 768px) {
    
    /* Header auf dem Handy nicht so riesig machen */
    header {
        height: 60vh; /* Nur 60% der Bildschirmhöhe statt 80% */
        background-position: center; /* Bild zentrieren */
    }

    /* Überschrift kleiner, damit sie ins Bild passt */
    header h1 {
        font-size: 2rem; 
        margin-bottom: 20px;
    }

    /* Text etwas lesbarer machen */
    header p {
        font-size: 1rem;
        padding: 0 10px;
    }

    /* Menü mobil-freundlicher (untereinander statt nebeneinander) */
    nav {
        flex-direction: column;
        text-align: center;
    }

    nav ul {
        padding: 0;
        margin-top: 10px;
    }

    nav ul li {
        margin: 5px 10px;
    }
}
/* --- Animationen --- */

/* Der Startzustand: Unsichtbar und etwas weiter unten */
.hidden {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s ease; /* Die Animation dauert 1 Sekunde */
}

/* Der Endzustand: Sichtbar und an der richtigen Stelle */
.show {
    opacity: 1;
    transform: translateY(0);
}

/* Damit die Boxen nacheinander reinkommen (Kaskade) */
.card:nth-child(2) { transition-delay: 200ms; }
.card:nth-child(3) { transition-delay: 400ms; }