/* Titel */
h2 {
    text-align: center;
    margin-top: 30px;
    font-size: 2rem;
}
body {
    background-image: none;
  }
h4 {
    font-weight: 400;
    font-size: larger;
}

.highlight {
    font-weight: bold;
    color: #a4cf07; /* Grüner Farbton */
}

.sub-heading {
    font-size: 1rem;
    font-weight: 300;
    color: #666;
    text-align: center;
    margin-bottom: 20px;
}

/* Allgemeines Layout */
.bodyelements {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: 1900px;
    margin: 10vh auto;
    margin-bottom: 60px;
}

.bodyelements h4 {
    margin-bottom: 30px;
}

/* Projekt-Beschreibung */
.project-description {
    max-width: 800px;
    text-align: center;
    font-size: 1rem;
    line-height: 1.6;
    margin-top: 30px;
    padding: 0 20px;
    margin-bottom: 40px;
}

/* Zentriertes Video */
.project-video {
    max-width: 900px;  /* optional: Deckel für Desktop */
  height: auto;      /* << proportional skalieren */
  display: block;
  margin: 4px auto 0;
  border-radius: 8px;
  /* WICHTIG: diese beiden entfernen/übersteuern */
  aspect-ratio: auto !important;
  object-fit: contain !important;
}

/* Styleguide-Sektion */
.image-gallery-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 70vw;
    margin: 10vh auto 100px auto;
}

/* Einzelne Styleguide-Elemente */
.image-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    width: 100%;
}

.image-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-radius: 10px;
}

/* Bildrahmen entfernen */
#bild {
    border: none;
    margin-bottom: 20px;
    
}

/* Bilder mit Rahmen */
.gallery-image {
    width: 90%;
    max-width: 800px;
    border-radius: 10px;
    transition: transform 0.3s ease-in-out;
}



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

/* Einzelbild-Styling */
.image {
    margin-top: 10vh;
}

.image .gallery-image {
    border: none;
}

/* LIGHTBOX */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(76, 76, 76, 0.4);
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 1000;
}

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

/* Lightbox-Navigation */
.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);
}

/* Fade-in Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* BILDERGALERIE: 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;
    margin-top: 100px;
}

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

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

/* BILDERGALERIE: MEDIA QUERY für Handy-Ansicht */
@media (max-width: 768px) {
    .überschrift {
        margin-top: 30px;
        padding: 18px;
    }

    h2 {
        font-size: 1.7rem;
    }

    .project-video {
        width: 90%;
        max-width: 700px;
        height: 70vh;
        border-radius: 8px;
        object-fit: cover;
    }

    .project-description {
        padding: 0 20px;
        margin-top: 30px;
    }

    .bodyelements {
        margin-bottom: 30px;
    }

    .image-gallery-section {
        margin-top: 50px;
        width: 85vw;
        margin: 5vh auto 50px auto;
    }

    .image-container {
        width: 100%;
    }

    .gallery-image {
        width: 100%;
        max-width: none;
        border-radius: 5px;
    }

    /* GALLERY-CONTAINER für mobile Ansicht (Bilder untereinander) */
    .gallery-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        
    }

    .gallery-container img {
        width: 100%;
        max-width: 400px;
        margin-bottom: 10px;
    }

    #lightbox {
        display: none !important; /* Versteckt die Lightbox auf mobilen Geräten */
    }

    .gallery-container img {
        pointer-events: none; /* Verhindert das Öffnen der Lightbox */
        padding-left: 10px;
        padding-right: 10px;
    }
}
