/* .gallery-section {
    background: #111;
    height: 100vh;
  } */
  .gallery-item img:hover {
    transform: scale(1.1);
  }
  
  .gallery-container {
    display: grid;
    position: relative;
    overflow: hidden;
    margin: 0 auto; 
  }
  
  .gallery-slider {
    display: flex;
    transition: transform 0.5s ease-in;
    transform: translateY(-20px);
  }
  
  .gallery-item {
    overflow: hidden;
    border-radius: 8px;
    height: 100%;
    transition: opacity 0.5s ease-in;
  }
  
  .gallery-item img {
    height: 700px;
    object-fit: contain;
    transition: transform 0.3s;
    max-height: 60vh;
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
  }
  
  .slider-nav button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    font-size: 30px;
    border: none;
    padding: 10px;
    cursor: pointer;
  }
  
  #prev {
    left: 10px;
  }
  
  #next {
    right: 10px;
  }
  
.tabs {
    display: flex;
    color: white;
    margin: -10vh 10vw;
    z-index: 100;
}

.tab {
    padding: 10px 20px;
    flex-grow: 1;
    text-align: center;
    margin: 0 5px;
    background-color: #555;
    text-align: center;
    cursor: pointer;
    font-size: 1em;
    color: white;
}

.tab:hover {
    box-shadow: 0 0 3px 3px hwb(0 100% 0% / 0.6);
}

.tabs:hover{
    color: white;
}

.images-headline{
    position: absolute;
    top: 304vh;
    display: block;
    width: 100%;
    font-size: 3em;
}

.active-tab {
    /* background-color: #b71b1b; */
    color: white;
}


.gallery-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 80%; /* Galerie-Breite konstant halten */
    margin: 0 auto;
    overflow: hidden;
}

.gallery-slider {
    display: flex;
    width: 100%;
    transition: transform 0.5s ease-in-out;
}

.gallery-item {
    flex: 0 0 50%; /* Exakt drei Bilder pro Ansicht */
    /* padding: 10px; */
    overflow: hidden;
    border-radius: 8px;
}

.gallery-item img {
    width: 100%;
    height: 400px; /* Höhe kann angepasst werden */
    object-fit: cover; /* Sorgt dafür, dass das Bild nicht verzerrt wird */
    transition: transform 0.3s ease-in-out;
}






.gallery-section {
    background: #111;
    height: 100vh;
    display: flex;
    flex-direction: column;
    /* justify-content: center; */
    align-items: center;
}

.gallery-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 80%;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
    height: 70vh; /* Höhe reduziert für mehr Platz nach unten */
}

.gallery-slider {
    display: flex;
    align-items: center; /* Zentriert die Bilder vertikal */
    transition: transform 0.5s ease-in-out;
    will-change: transform;
}

.gallery-item {
    flex: 0 0 auto;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0; /* Kein Abstand zwischen den Bildern */
}

.gallery-item img {
    width: auto;
    min-height: 600px;  /* Mindesthöhe */
    max-height: 75vh;   /* Maximale Höhe */
    height: auto;
    max-width: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease-in-out;
    /* border: 5px solid white; */

}

/* Vertikale Zentrierung der Pfeile */
.slider-nav button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    font-size: 30px;
    border: none;
    /* padding: 10px; */
    cursor: pointer;
    z-index: 10;
}

#prev {
    left: 10px;
}

#next {
    right: 10px;
}

.gallery-section{
    display: none;
}

@media screen and (max-width: 1000px) {
    #gallery{
        height: 100vh;
    }
    .gallery-container{
        height: 100vh;
    }
    .images-headline{
        font-size: 2vh;
        top: 235vh;
    }
    .gallery-section{
        min-height: 100vh;
    }
}