/* Allgemeine Stile */
body {
    font-family: sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
}

header {
    background-color: #333;
    color: #fff;
    padding: 1rem 0;
    text-align: center;
}

header h1 {
    margin: 0;
    font-size: 2.5rem;
}

header p {
    font-size: 1.1rem;
}

nav {
    background-color: #444;
    padding: 0.5rem;
    text-align: center;
}

nav a {
    color: #fff;
    text-decoration: none;
    padding: 0.5rem 1rem;
    margin: 0 0.5rem;
}

nav a:hover {
    background-color: #555;
    border-radius: 5px;
}

main {
    padding: 1rem;
    max-width: 1200px; /* Begrenzt die maximale Breite auf Desktops */
    margin: 0 auto; /* Zentriert den Inhalt */
}

section {
    padding: 2rem 0;
    border-bottom: 1px solid #ddd;
}

section:last-of-type {
    border-bottom: none;
}

h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #333;
}

/* Hero Bereich */
.hero {
    text-align: center;
}

.hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-top: 1rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Produktgalerie */
.produkt-galerie h2 {
    margin-bottom: 2rem;
}

.produkt-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Responsive Grid */
    gap: 1.5rem;
}

.produkt-item {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease; /* Für Hover-Effekt */
}

.produkt-item:hover {
    transform: translateY(-5px); /* Leichter Hebe-Effekt beim Hovern */
}

.produkt-item img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 0.5rem;
}

.produkt-item h3 {
    margin-top: 0.5rem;
    margin-bottom: 0.3rem;
    font-size: 1.2rem;
    color: #333;
}

.produkt-item p {
    font-size: 0.9rem;
    color: #666;
}

/* Kontakt Bereich */
.kontakt-bereich {
    text-align: center;
}

.kontakt-bereich p {
    margin-bottom: 0.5rem;
}

.kontakt-bereich a {
    color: #337ab7;
    text-decoration: none;
}

.kontakt-bereich a:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 1rem 0;
    margin-top: 2rem;
}

/* Media Queries für mobile Anpassung */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    nav a {
        display: block; /* Menüpunkte untereinander auf kleinen Bildschirmen */
        margin: 0.5rem 0;
    }

    .produkt-grid {
        grid-template-columns: 1fr; /* Einspaltig auf kleinen Bildschirmen */
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.8rem;
    }

    header p {
        font-size: 1rem;
    }

    .produkt-item h3 {
        font-size: 1.1rem;
    }

    .produkt-item p {
        font-size: 0.85rem;
    }
}