
body {
    margin: 0;
    font-family: sans-serif;
    background-color: #111;
    color: white;
}
header {
    background: black;
    padding: 1em;
    text-align: center;
}
header h1 {
    color: #cd9b32;
    margin: 0;
}
nav ul {
    list-style: none;
    padding: 0;
}
nav li {
    display: inline;
    margin: 0 1em;
}
nav a {
    color: white;
    text-decoration: none;
}
#hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #222;
    padding: 2em;
}
.hero-image {
    width: 50%;
    height: 200px;
    background: #444;
    display: flex;
    align-items: center;
    justify-content: center;
    color: beige;
    font-style: italic;
}
section {
    padding: 2em;
}
.product-gallery {
    display: flex;
    gap: 1em;
}
.product {
    flex: 1;
    background: #333;
    padding: 1em;
    text-align: center;
    color: beige;
}
footer {
    text-align: center;
    padding: 1em;
    background: #000;
}
footer a {
    color: #cd9b32;
    text-decoration: none;
}


.menu-item {
    display: flex;
    flex-direction: row;
    gap: 1em;
    margin-bottom: 2em;
    flex-wrap: wrap;
}
.menu-image {
    width: 300px;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 0 8px rgba(0,0,0,0.3);
}
.menu-text {
    flex: 1;
    min-width: 250px;
}
@media (max-width: 600px) {
    .menu-item {
        flex-direction: column;
        align-items: center;
    }
    .menu-text {
        text-align: center;
    }
}


.slideshow-wrapper {
    text-align: center;
    padding: 2em;
}
.slideshow-container {
    position: relative;
    max-width: 800px;
    margin: auto;
}
.slide-img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 0 8px rgba(0,0,0,0.4);
}
.slide {
    display: none;
}
.fade {
    animation-name: fade;
    animation-duration: 2s;
}
@keyframes fade {
    from {opacity: .4} 
    to {opacity: 1}
}
footer {
    text-align: center;
    padding: 1em;
    background: #000;
    position: relative;
    bottom: 0;
    width: 100%;
}


/* Slideshow Optimierung */
.slideshow-wrapper {
    text-align: center;
    padding: 2em 1em;
}
.slideshow-container {
    position: relative;
    max-width: 1000px;
    margin: auto;
}
.slide-img {
    width: 100%;
    height: auto;
    max-height: 600px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}
@media (max-width: 768px) {
    .slide-img {
        max-height: 300px;
    }
    .hero-text h2 {
        font-size: 1.4em;
    }
    .hero-text p {
        font-size: 1em;
    }
}

/* Korrektur gegen Bildverzerrung in Slideshow */
.slide-img {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: contain;
}
@media (max-width: 768px) {
    .slide-img {
        max-height: 300px;
    }
}

/* Responsive Optimierung der Hero Section */
@media (max-width: 768px) {
    .slideshow-wrapper {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .slideshow-container {
        order: 2;
        width: 100%;
    }

    .hero-text {
        order: 1;
        margin-bottom: 1em;
    }

    .hero-text h2 {
        font-size: 1.6em;
    }

    .hero-text p {
        font-size: 1em;
    }

    .slide-img {
        max-width: 100%;
        border-radius: 10px;
    }
}
