/* Basis-Styles für den gesamten Body */
body {
    font-family: 'Arial', sans-serif;
    background: #e0f2f1; /* Helles Grün mit kühlem Blau */
    color: #004d40; /* Dunkles Grün */
    margin: 0;
    padding: 0;
    background-image: url('Grafik/pattern.png'); /* Leichtes Hintergrundmuster */
    background-size: cover;
}

/* Container für zentrale Ausrichtung */
.container {
    width: 90%;
    margin: 20px auto; /* Einheitlicher Abstand für alle Seiten */
    max-width: 1200px;
    padding: 20px; /* Konsistenter Innenabstand */
    background: rgba(255, 255, 255, 0.8); /* Leicht transparentes Weiß für besseren Kontrast */
    border-radius: 10px;
}

/* Style für das Logo */
.logo {
    display: block;
    max-width: 150px; /* Maximale Breite des Logos */
    margin: 0 auto 10px; /* Zentriert und mit Abstand nach unten */
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.5)); /* Leichter Schatteneffekt */
}

/* Styles für den Header */
header {
    background: linear-gradient(90deg, #00796b, #004d40); /* Dunkles Blau-Grün-Gemisch */
    color: white;
    padding: 20px 0;
    text-align: center;
    border-bottom: 4px solid #004d40; /* Dunkles Grün */
    position: relative;
}

header h1 {
    margin: 0;
    font-size: 2.5em;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeIn 2s ease-out; /* Animation beim Laden */
}

/* Styles für die Navigation */
nav ul {
    list-style: none;
    padding: 0;
    margin: 10px 0;
    display: flex;
    justify-content: center;
    gap: 20px;
    background-color: #004d40; /* Dunkles Grün */
}

nav ul li {
    position: relative;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 1.2em;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.3s ease, color 0.3s ease;
    font-family: 'Arial', sans-serif; /* Schriftart */
}

nav ul li a:hover {
    background-color: #00796b; /* Dunkles Blau-Grün beim Hover */
    transform: translateY(-3px);
    color: #fff;
}

/* Styles für die Hero-Section */
.hero {
    background: linear-gradient(120deg, #004d40, #00796b); /* Dunkles Grün bis kühles Blau-Grün */
    padding: 60px 20px; /* Mehr Padding für ein ausdrucksstarkes Layout */
    text-align: center;
    color: #82adaa; /* Helles Blau-Grün */
    border-bottom: 4px solid #004d40; /* Sehr dunkles Grün */
    position: relative;
    overflow: hidden;
}

.hero h2 {
    font-size: 3.5em;
    margin: 0;
    line-height: 1.2;
    font-weight: bold;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
    animation: fadeIn 2s ease-out; /* Animation beim Laden */
}

.hero::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3), transparent);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
}

.hero > * {
    position: relative;
    z-index: 1;
}

/* Styles für die Featured Products Section */
.featured-products {
    padding: 40px 0;
    background-color: #004d40; /* Dunkles Grün */
    color: white;
    text-align: center;
    border-top: 4px solid #00796b; /* Dunkles Blau-Grün */
    border-bottom: 4px solid #00796b; /* Dunkles Blau-Grün */
}

.featured-products h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    font-weight: bold;
}

/* Styles für das Produkt-Grid */
.product-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.product-item {
    background-color: #80cbc4; /* Helles Grün */
    padding: 20px;
    border: 2px solid #004d40; /* Dunkles Grün */
    width: 30%;
    box-sizing: border-box;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.product-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #00796b, #004d40); /* Farbverlauf */
}

.product-item:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    border-color: #00796b; /* Dunkles Blau-Grün */
}

.product-item h3 {
    color: #004d40; /* Dunkles Grün */
    font-weight: bold;
}

.product-item p {
    color: #004d40; /* Dunkles Grün */
}

/* Styles für den Footer */
footer {
    background-color: #00251a; /* Sehr dunkles Grün */
    color: white;
    text-align: center;
    padding: 20px;
    border-top: 4px solid #00796b; /* Dunkles Blau-Grün */
}

footer ul {
    list-style: none;
    padding: 0;
    margin: 10px 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

footer ul li a {
    color: white;
    text-decoration: none;
    font-size: 1.2em;
    transition: color 0.3s ease;
}

footer ul li a:hover {
    color: #00796b; /* Hover-Farbe für Links */
}

/* Styles für den Newsletter-Bereich */
.newsletter {
    background-color: #004d40; /* Dunkles Grün */
    color: white;
    padding: 20px;
    text-align: center;
    border-radius: 10px;
    margin: 20px 0;
}

.newsletter h2 {
    font-size: 1.8em;
    margin-bottom: 10px;
}

.newsletter input[type="email"] {
    padding: 10px;
    border: 2px solid #00796b;
    border-radius: 5px;
    width: 70%;
    max-width: 300px;
    margin-right: 10px;
}

.newsletter button {
    padding: 10px 20px;
    background-color: #00796b;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.newsletter button:hover {
    background-color: #00695c;
}

footer p {
    margin-top: 10px;
    font-size: 1em;
    font-weight: bold;
}

/* Keyframes für die Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Responsive Design für kleinere Bildschirme */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.8em; /* Kleinere Schriftgröße für kleine Bildschirme */
    }

    nav ul {
        flex-direction: column; /* Stapelung der Navigationslinks */
        gap: 10px;
    }

    nav ul li a {
        font-size: 1em; /* Kleinere Schriftgröße */
        padding: 10px;
    }

    .product-item {
        width: 100%; /* Volle Breite für Produkt-Items */
    }

    .newsletter input[type="email"] {
        width: calc(100% - 20px); /* Breite an den Container anpassen */
        margin-right: 0;
    }

    .newsletter button {
        width: 100%; /* Knopf auf volle Breite anpassen */
    }
}

@media (max-width: 480px) {
    .container {
        width: 95%; /* Etwas mehr Platz auf sehr kleinen Bildschirmen */
    }

    .hero h2 {
        font-size: 2em; /* Kleinere Schriftgröße für den Hero-Bereich */
    }

    .featured-products h2 {
        font-size: 2em; /* Kleinere Schriftgröße */
    }
}

/* Vermeidung von Overflow-Problemen */
*,
*::before,
*::after {
    box-sizing: border-box;
}