body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #00802D;
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Adjust to flex-start or center based on your main content needs */
    min-height: 80vh;
}

/* .main-content { */
    /* background-color: #00802D; */
    /* padding: 30px; */
    /* border-radius: 8px; */
    /* box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); */
    /* text-align: center; */
    /* max-width: 500px; */
    /* width: 80%; */
/* } */

.centered-content {
    display: flex;
    flex-direction: column; /* Elemente untereinander anordnen */
    align-items: center;   /* Horizontale Zentrierung der Elemente */
    justify-content: center; /* Vertikale Zentrierung (falls der Inhalt kleiner als der Viewport ist) */
    min-height: 50vh; /* Mindesthöhe des Containers auf volle Viewport-Höhe */
    text-align: center; /* Text innerhalb des Containers zentrieren */
    padding: 20px; /* Etwas Innenabstand für Mobilgeräte */
    background-color: #09aa41;; /* Hintergrundfarbe für den Inhaltsbereich */
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    max-width: 800px; /* Maximale Breite wie bei main-content */
    width: 100%;
    margin: 20px auto; /* Zentriert den Block selbst und gibt etwas Abstand */
}

.centered-image {
    max-width: 80%; /* Bild soll sich der Containerbreite anpassen */
    height: auto;    /* Seitenverhältnis beibehalten */
    display: block;  /* Entfernt zusätzlichen Platz unter dem Bild */
    margin-bottom: 30px; /* Abstand unter dem Bild */
    border-radius: 8px; /* Leicht abgerundete Ecken für das Bild */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); /* Leichter Schatten für das Bild */
}

.image-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.centered-content h1 {
    color: #333;
    margin-bottom: 30px;
    /* Abstand unter der Überschrift */
    font-size: 2em;
    /* Angepasste Schriftgröße für Überschrift */
}

/* Lightbox Modal (für Bilder) */
.image-modal {
    display: none; /* Standardmäßig versteckt */
    position: fixed; /* Bleibt an Ort und Stelle */
    z-index: 2000; /* Muss über allem anderen liegen */
    padding-top: 10px; /* Position des Inhalts von oben */
    left: 0;
    top: 0;
    width: 100%; /* Volle Breite */
    height: 100%; /* Volle Höhe */
    overflow: auto; /* Aktiviert Scrollen, wenn das Bild zu groß ist */
    background-color: rgb(0,0,0); /* Schwarzer Hintergrund */
    background-color: rgba(0,0,0,0.9); /* Schwarzer Hintergrund mit Transparenz */
    justify-content: center;
    align-items: center;
}

/* Inhalt des Modals (Bild) */
.modal-image {
    margin: auto;
    display: block;
    max-width: 100%;
    max-height: 100vh; /* Maximale Höhe des Bildes im Viewport */
    border-radius: 5px;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19);
}

/* Schließen-Button */
.close-image-modal {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close-image-modal:hover,
.close-image-modal:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* Bildunterschrift */
.caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px; /* Platz für die Unterschrift */
}

/* Animation für das Bild */
@keyframes zoom {
    from {transform:scale(0)} 
    to {transform:scale(1)}
}

.modal-image {
    animation: zoom 0.6s;
}
.modal-open {
    overflow: hidden;
}
/* Responsivität für das Lightbox-Bild */
@media only screen and (max-width: 700px){
    .modal-image {
        width: 100%;
    }
}


.centered-content button {
    background-color: #007bff;
    color: black;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1em;
    text-decoration: none; /* Falls Sie es in einen Link umwandeln */
    display: inline-block; /* Für korrekte Abstände und Zentrierung des Buttons */
    margin-top: 20px; /* Abstand über dem Button */
}

.centered-content button:hover {
    background-color: #0056b3;
}

/* Responsivität für kleinere Bildschirme */
@media (max-width: 600px) {
    .centered-content {
        padding: 15px;
        margin: 10px auto;
    }
    
    .centered-content h1 {
        font-size: 1.5em; /* Kleinere Überschrift auf Mobilgeräten */
        margin-bottom: 20px;
    }

    .centered-image {
        margin-bottom: 20px;
    }

    .centered-content button {
        padding: 10px 20px;
        font-size: 1em;
    }
}