#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;
}


/* Bilderreihe mit zwei Bildern nebeneinander (größer gemacht) */
.image-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    width: 80%; /* Die gesamte Breite der beiden Bilder zusammen */
    max-width: 900px; /* Maximale Breite */
}

.image-row img {
    width: 100%; /* Jedes Bild nimmt 50% der .image-row ein */
    max-width: 800px;
    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: 70%; /* Gleiche Breite wie die oberen beiden Bilder zusammen */
    max-width: 900px;
}

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

/* Hover-Effekt für die oberen vier Bilder */
.image-row img, 
.image-column img {
    transition: transform 0.3s ease-in-out;
}




.image-container {
    max-width: 600px;
    max-height: 90vh;
    aspect-ratio: auto;
}

/* Bildergalerie für „Weitere Varianten“ */
.image-gallery {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: 50px;
    margin-bottom: 100px;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.image-gallery h4 {
    margin-bottom: 40px;
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 100%;
    margin: 0 auto;
}

.gallery-container img {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 8px;
    transition: transform 0.3s ease-in-out;
    object-fit: cover;
    margin-bottom: 10px;
}

.gallery-container img:hover {
    transform: scale(1.05);
}

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



/*handy*/
@media (max-width: 768px) {
    h2 {
        margin-top: 60px;
    }
    p{
        padding-left: 15px;
        padding-right: 15px;
    }

    .image-row, .image-column {
        width: 90%; /* Mehr Platz auf kleineren Bildschirmen */
    }

    .image-row {
        flex-direction: column; /* Bilder untereinander statt nebeneinander */
        align-items: center;
    }

    .image-row img {
        width: 100%; /* Bilder nehmen die volle Breite ein */
    }

    .image-column {
        width: 90%; /* Breite anpassen */
        margin-top: 40px; /* Abstand zwischen den Abschnitten */
    }

    .image-column img {
        width: 100%; /* Auch die Richtlinienbilder nehmen volle Breite ein */
    }

    .bodyelements {
        max-height: none; /* Entfernt die feste Höhe, damit der Container sich anpasst */
        margin-top: 40px; /* Abstand zwischen den Abschnitten */
        margin-bottom: 40px; /* Genug Platz nach unten */
        padding-bottom: 20px; /* Zusätzlicher Abstand nach unten */
    }

    .image-gallery {
        margin-top: 60px; /* Mehr Abstand zur vorherigen Sektion */
    }

    .gallery-container {
        grid-template-columns: repeat(1, 1fr); /* 1 Bild pro Zeile */
        margin-top: 40px; /* Abstand zur Galerie */
    }

    .gallery-container img {
        max-width: 100%;
    }

    /* Lightbox auf Mobilgeräten deaktivieren */
    #lightbox {
        display: none !important;
    }

    .gallery-container img {
        pointer-events: none; /* Bilder in der Galerie nicht mehr anklickbar */
    }

    /* Verhindert, dass sich Container überlappen */
    .bodyelements + .bodyelements {
        margin-top: 60px;
    }

    .button-container {
        margin-top: 40px;
        margin-bottom: 50px;
    }
}


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

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

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

/* Navigation-Pfeile */
.lightbox-controls {
    position: absolute;
    width: 100%;
    top: 50%;
    transform: translateY(-50%);
    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;
    transition: background 0.3s ease;
}

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

/* Animation für das Bild */
.lightbox img {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
