#projektebutton {
    text-decoration: none;
}
body {
    background-image: none;
  }
/* Titel */
h2 {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 0px;
    margin-bottom: 20px;
    margin-top: 30px;
    font-size: 2rem;
}

/* Allgemeine Stile für Abschnitte */
.bodyelements {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    margin-top: 20px;
    margin-bottom: 0px;
    padding: 0px;
    border-radius: 10px;
    width: 100%;
    max-width: 100vw;
    margin-left: auto;
    margin-right: auto;
}

h4 {
    font-size: larger;
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 30px;
    margin-top: 40px;
}

.image-gallery .gallery-heading {
    margin-bottom: 30px;
    font-size: 1.2rem; /* Hier den gewünschten Wert setzen */
}
/* Bilderreihe mit zwei Bildern nebeneinander (größer gemacht) */
.image-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    width: 100%; /* Die gesamte Breite der beiden Bilder zusammen */
    max-width: 900px; /* Maximale Breite */
}

.image-row img {
    width: 50%; /* Jedes Bild nimmt 50% der .image-row ein */
    max-width: 450px;
    border-radius: 8px;
    transition: transform 0.3s ease-in-out;
}

/* Bilder untereinander zentriert und größer gemacht */
.image-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
    width: 100%; /* Die Bilder nehmen 100% der Breite ein */
    max-width: 1000px;
}

.image-column img {
    width: 100%; /* Volle Breite der .image-column */
    max-width: 100%; /* Maximale Breite */
    border-radius: 10px; /* Sichtbare abgerundete Ecken */
    border: 1px solid rgb(155, 155, 155);
    transition: transform 0.3s ease-in-out;
}

/* Buttons */
.button-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
    margin-bottom: 50px;
    width: 100%;
}



/* Galerie Container */
.image-gallery {
    margin-top: 40px;
    text-align: center;
}

.image-gallery h4 {
    margin-bottom: 30px;
    font-size: 1.5rem;
}

/* Container für die Galerie */
.gallery-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Zwei Spalten */
    gap: 20px;
    margin: 0 auto;
    max-width: 900px;
}

.gallery-container img {
    width: 100%;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
}

/* Hover-Effekt für die Bilder */
.gallery-container img:hover {
    transform: scale(1.05);
}

/* Lightbox-Styling */
.lightbox {
    display: none; /* Standardmäßig ausgeblendet */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Hintergrund abdunkeln */
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* Vergrößertes Bild */
#lightbox-img {
    max-width: 80vw;
    max-height: 80vh;
    border-radius: 10px;
    transition: transform 0.3s ease-in-out;
}

/* Close Button */
.close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    cursor: pointer;
}

/* Lightbox-Navigation */
.lightbox-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
}

.lightbox-btn {
    background: rgba(255, 255, 255, 0.3);
    border: none;
    padding: 15px;
    font-size: 24px;
    color: white;
    cursor: pointer;
    border-radius: 5px;
}

.lightbox-btn:hover {
    background: rgba(255, 255, 255, 0.6);
}



/* Responsives Design für kleinere Bildschirme */
@media (max-width: 768px) {
    .überschrift{
        margin-top: 70px;
    }
    /* Für kleinere Bildschirme: */
    .image-column {
        flex-direction: column; /* Stellt sicher, dass die Bilder untereinander sind */
        width: 90%; /* Stellt sicher, dass die Bilder die volle Breite einnehmen */
        align-items: center; /* Zentriert die Bilder */
    }

    .image-column img {
        width: 100%; /* Stellt sicher, dass jedes Bild die volle Breite der Container hat */
        max-width: 100%; /* Keine Maximalbreite mehr */
        margin-bottom: 10px; /* Optionaler Abstand zwischen den Bildern */
        border-radius: 15px; /* Größerer Border-Radius für bessere Sichtbarkeit */
      
    }

    /* Bei der .image-row sorgen wir dafür, dass sie auf mobilen Geräten ebenfalls vertikal angezeigt wird */
    .image-row {
        flex-direction: column; /* Stellt sicher, dass die Bilder untereinander sind */
        width: 100%; /* Stellt sicher, dass die Bilder die volle Breite einnehmen */
    }

    .image-row img {
        width: 90%; /* Stellt sicher, dass jedes Bild die volle Breite der Container hat */
        margin-bottom: 10px;
         margin: 20px;
        border-radius: 20px; /* Optionaler Abstand zwischen den Bildern */
    }
    .gallery-container {
        grid-template-columns: 1fr; /* Bei kleinen Bildschirmen wird nur eine Spalte angezeigt */
    }

    .gallery-container img {
        width: 90%;
        margin: 20px;
        margin-bottom: 10px; /* Optionaler Abstand zwischen den Bildern */
    }
}
