/* Allgemein */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    background-color: #fff;
    color: #222;
    padding-top: 60px; /* Platz für feste Navigation */
}

/* Navigation */
nav ul {
    display: flex;
    justify-content: space-between;
    list-style: none;
    background-color: #aa1616;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

nav ul li {
    flex: 1;
    text-align: center;
}

nav ul li a {
    display: block;
    padding: 7px;
    color: white;
    text-decoration: none;
    transition: background-color 0.3s ease;
	font-size: 13px;
}

nav ul li a:hover {
    background-color: #cc3333;
}

/* Startbild */
.startbild {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 5px;
}

.startbild img {
    max-width: 60%;
    height: auto;
}

/* Home-Bereich */
.home-content {
    display: flex;
    justify-content: space-between;
    align-items: center; /* <-- ÄNDERUNG */
    padding: 40px 20px;
    gap: 40px;
    flex-wrap: wrap;
}

.hometext {
    flex: 1;
    max-width: 800px;
}

.aussenansicht {
    flex: 1;
    min-width: 300px;
}

.aussenansicht img {
    width: 100%;
    border-radius: 8px;
}

/* Allgemeine Überschriften */
h1 {
    font-size: 30px;
    text-align: center;
    margin: 20px 0;
}

/* Öffnungszeiten */
.tableOeffnungszeiten {
    margin: 0 auto;
    border-spacing: 20px 10px;
}

.tableOeffnungszeitenWT {
    padding-right: 20px;
    font-weight: bold;
}

/* Sortiment und Aktuelles */
.TextSortiment {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px 40px 20px;
}

/* Galerie */
#bilder {
    text-align: center;
    padding: 20px;
}

.Galerie {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.Galerie img {
    max-width: 40%;
    border-radius: 8px;
    height: auto;
}

/* Kontakt */
#kontakt {
    padding: 40px 20px;
    background-color: #fafafa;
    text-align: center;
}

.kontakt-formular {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    font-size: 1rem;
    color: #333;
    display: block;
    margin-bottom: 5px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-sizing: border-box;
}

.form-group textarea {
    resize: vertical;
}

.submit-btn {
    padding: 12px 25px;
    font-size: 1rem;
    background-color: #aa1616;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: #555;
}  

/* Footer */
footer {
    text-align: center;
    background-color: #f5f5f5;
    padding: 20px;
    font-size: 0.9em;
    margin-top: 40px;
}

/* Media Queries für Mobile */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        position: static;
    }

    .home-content {
        flex-direction: column;
        align-items: center;
    }

    .Galerie {
        flex-direction: column;
        gap: 20px;
    }

    .Galerie img {
        max-width: 80%;
    }

    .TextSortiment,
    .hometext {
        padding: 0 10px;
    }
}

#oeffnungszeiten {
    padding: 20px 20px;
    margin: 40px auto;
    max-width: 650px;
    background-color: #f9f9f9;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px); /* leichtes Hochkommen */
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.startbild img {
    max-width: 60%;
    margin-top: 5px;
    opacity: 0;
    animation: fadeIn 1.2s ease-out forwards;
    animation-delay: 0.5s; /* optionaler Startverzug */
}

#aktuelles {
    padding: 40px 20px;
    background-color: #fafafa;
}

.aktuelles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px 0;
}

.kachel {
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.kachel img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin-bottom: 10px;
}

.kachel p {
    font-size: 0.95rem;
    color: #333;
}

.kachel:hover {
    transform: translateY(-5px);
}

.kachel {
    position: relative;
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    min-height: 250px; /* sorgt für genug Platz */
}

.kachel .datum {
    position: absolute;
    bottom: 10px;
    right: 10px;
    font-size: 0.75rem;
    color: #888;
}

#sortiment {
    padding: 40px 20px;
    text-align: center;
}

#bilder {
    padding: 40px 20px;
    text-align: center;
}

.diashow-container {
    position: relative;
    width: 60%;              /* Etwas kleiner als 100% */
    aspect-ratio: 4 / 3;     /* Verhältnis z. B. 4:3 – passt für viele Fotos */
    margin: 0 auto;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.diashow-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;       /* Bild wird zugeschnitten, aber nicht verzerrt */
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    z-index: 0;
    border-radius: 8px;
}

.diashow-image.active {
    opacity: 1;
    z-index: 1;
}