body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    color: #333;
    background-color: #f0f0f0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.image-container {
    position: relative;
    display: inline-block;
    width: 100%;
    height: auto;
}

.background-images {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.background-images img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 1s ease-in-out;
    opacity: 0;
    animation: zoom 10s ease-in-out infinite;
}

.background-images img.active {
    opacity: 1;
}

@keyframes zoom {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.logo {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 20%;
    opacity: 0.8;
}

.content {
    text-align: center;
    padding: 20px;
    background-color: #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 20px auto;
    max-width: 800px;
    flex-grow: 1;
}

h1 {
    font-size: 2em;
    color: #4a90e2;
    margin-bottom: 20px;
}

p {
    font-size: 1.2em;
    color: #666;
    line-height: 1.6;
}

/* Neues CSS für "OASE DER GEMÜTLICHKEIT" */
.oase-text {
    text-align: center;
    font-size: 4em;
    font-weight: bold;
    color: #8FA225;
    margin: 40px 0;
    letter-spacing: 5px;
    text-transform: uppercase;
    width: 100%;
    display: block;
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 20px;
    background-color: #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 20px auto;
    max-width: 1200px;
}


.gallery-item {
    flex: 1 1 30%;
    margin: 10px;
    position: relative;
    text-align: center;
    max-width: 400px;
    box-sizing: border-box;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: 600px; /* Feste Höhe für die Galerie-Elemente */
}

.gallery-item img {
    width: 100%;
    height: 300px; /* Feste Höhe für die Bilder */
    object-fit: cover;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.gallery-item .text-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 250px; /* Feste Höhe für den Textcontainer */
    padding: 10px 0;
    box-sizing: border-box;
    text-align: center;
}

.gallery-item h2 {
    font-size: 1.5em;
    color: #4a90e2;
    margin: 10px 0 5px 0;
    flex: 0 0 auto;
}

.gallery-item p {
    font-size: 1em;
    color: #666;
    line-height: 1.4;
    flex: 0 0 auto;
    margin: 5px 0 0 0;
}

.gallery-item.no-text {
    height: 300px; /* Feste Höhe nur für Bilder ohne Text */
}

.gallery-item.no-text img {
    height: 100%; /* Höhe auf 100% für Bilder ohne Text */
}

.cost-section {
    text-align: center;
    padding: 20px;
    margin: 20px auto;
    max-width: 800px;
}

.cost-section h2 {
    font-size: 2.5em;
    color: #4a90e2;
    margin-bottom: 20px;
}

.cost-section ul {
    list-style-type: none;
    padding: 0;
}

.cost-section li {
    font-size: 1.5em;
    color: #666;
    line-height: 1.6;
    margin-bottom: 10px;
}

.arrival-section {
    text-align: center;
    padding: 20px;
    margin: 20px auto;
    max-width: 800px;
    background-color: #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.arrival-section h2 {
    font-size: 2em;
    color: #4a90e2;
    margin-bottom: 20px;
}

.arrival-method {
    margin: 20px 0;
}

.arrival-method h3 {
    font-size: 1.8em;
    color: #4a90e2;
    margin-bottom: 10px;
}

.arrival-method img {
    width: 100%;
    max-width: 400px;
    height: auto;
    display: block;
    margin: 0 auto 10px auto;
    border-radius: 8px;
}

.arrival-method p {
    font-size: 1.2em;
    color: #666;
    line-height: 1.6;
}

.seasons-section {
    text-align: center;
    padding: 20px;
    margin: 20px auto;
    max-width: 1200px;
    background-color: #e0f7fa; /* Unterschiedlicher Hintergrund, um den Bereich hervorzuheben */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.seasons-section h2 {
    font-size: 2em;
    color: #00796b;
    margin-bottom: 20px;
}

.seasons-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.season {
    margin: 20px;
    flex: 1 1 20%;
    text-align: center;
}

.season h3 {
    font-size: 1.8em;
    color: #00796b;
    margin-bottom: 10px;
}

.season img {
    width: 100%;
    max-width: 150px;
    height: auto;
    display: block;
    margin: 0 auto 10px auto;
    border-radius: 8px;
    cursor: pointer;
}

.season p {
    font-size: 1.2em;
    color: #666;
    line-height: 1.6;
}


/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9); /* Hintergrund des Modals transparent */
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 1200px;
    background-color: rgba(255, 255, 255, 0.9); /* Hintergrundfarbe des Inhalts mit Transparenz */
    padding: 20px;
    border-radius: 8px;
}

.modal-content, .modal-caption {
    animation: zoom-in-out 0.6s;
}

@keyframes zoom-in-out {
    from {transform: scale(0)}
    to {transform: scale(1)}
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* Footer */
.footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 100; /* Sicherstellen, dass der Footer über anderen Elementen liegt */
    flex-shrink: 0; /* Footer bleibt immer unten */
}

.footer a {
    color: #fff;
    margin: 0 10px;
    text-decoration: none;
    transition: color 0.3s;
}

.footer a:hover {
    color: #ddd;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .gallery-item {
        flex: 1 1 45%;
    }

    h1 {
        font-size: 1.8em;
    }

    p {
        font-size: 1.1em;
    }

    .logo {
        width: 30%; /* Logo-Größe für Tablets und kleinere Laptops */
    }
}

@media (max-width: 768px) {
    .gallery-item {
        flex: 1 1 45%;
    }

    h1 {
        font-size: 1.8em;
    }

    p {
        font-size: 1.1em;
    }

    .logo {
        width: 55%; /* Logo-Größe für kleine Tablets und große Smartphones */
    }
}

@media (max-width: 480px) {
    .gallery-item {
        flex: 1 1 100%;
    }

    h1 {
        font-size: 1.5em;
    }

    p {
        font-size: 1em;
    }

    .logo {
        width: 65%; /* Logo-Größe für Smartphones */
    }
}

/* Zusätzliche Media Queries für verschiedene Bildschirmgrößen */
@media (min-width: 1280px) {
    .logo {
        width: 30%; /* Größeres Logo für breite Bildschirme */
    }
}

@media (min-width: 1440px) {
    .logo {
        width: 20%; /* Noch größeres Logo für sehr breite Bildschirme */
    }
}
