



#projektebutton {
    text-decoration: none;
}

/* titel  */

body {
  background-image: none;
}

h2 {
    display: flex;          /* Verwenden von Flexbox */
    flex-direction: column; /* Vertikale Anordnung der Elemente */
    justify-content: flex-start; /* Inhalt am Anfang der Seite (relativ oben) ausrichten */
    align-items: center;    /* Horizontal zentrieren */
    padding-top: 0px;
    margin-bottom: 20px; 
    margin-top: 30px;
    font-size: 2rem;    
    
}

.bodyelements {
    display: flex;
    flex-direction: column; /* Vertikale Anordnung */
    justify-content: flex-start; /* Zentriert den Text vertikal */
    align-items: center;     /* Zentriert den Text horizontal */
    text-align: center;      /* Zentriert den Text im Paragraphen */
    margin-top: 0px;      /* Etwas Abstand zum oberen Inhalt */
    margin-bottom: 50px;     /* Abstand zu den Videos */
    padding: 0px;           /* Etwas Polsterung für den Abschnitt */
    border-radius: 10px;     /* Abgerundete Ecken */
    width: 80%;              /* Maximale Breite des Abschnitts */
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;      /* Zentriert den Container auf der Seite */
    max-height: 100%;
}

h4{
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 1.6; /* Bessere Lesbarkeit */
    margin-bottom: 20px;
    margin-top: 40px;
}


.project-video {
    width: 100%;            /* Die Breite des Videos auf 80% der verfügbaren Breite setzen */
    height: auto; 
    aspect-ratio: 16/9;        /* Die Höhe wird proportional zur Breite angepasst */
    margin-bottom: 0px;        /* Vertikaler Abstand zwischen den Videos */
    display: block;        /* Macht das Video zu einem Block-Element, damit es zentriert werden kann */
    object-fit: cover; 
    border-radius: 8px;    /* Fügt einen Border-Radius von 8px hinzu */
    overflow: hidden; 
    transition: transform 0.3s ease-in-out; /* Sanfter Hover-Effekt */
  
}

.project-video:hover {
  transform: scale(1.05); /* Leichte Vergrößerung */
}



h5.musik {
  color: #bbbbbb; /* Helles Grau */
  font-weight: 400; /* Optional: Weniger fett für dezente Darstellung */
  padding-top: 0px;
  padding-bottom: 20px;
}

*,
*::after,
*::before {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

iframe {
  aspect-ratio: 16/9;
}



img {
  display: block;
  max-width: 100%;
}

.container {
 
  display: grid;
  place-content: center;
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  --position: 50%;
  margin-top: 20px;
  
  
}

.button-container {
    display: flex;
    justify-content: center;  /* Button zentrieren */
    align-items: center;
    margin-top: 40px;
    margin-bottom: 50px;  /* Genug Abstand zum Footer */
    width: 100%; 
}



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

.slider-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left;
}

.image-before {
  position: absolute;
  inset: 0;
  width: var(--position);
  filter: grayscale(100%)
}


.slider {
  position: absolute;
  inset: 0;
  cursor: pointer;
  opacity: 0;
  /* for Firefox */
  width: 100%;
  height: 100%;
}

.slider:focus-visible ~ .slider-button {
  outline: 5px solid black;
  outline-offset: 3px;
}

.slider-line {
  position: absolute;
  inset: 0;
  width: .2rem;
  height: 100%;
  background-color: #fff;
  /* z-index: 10; */
  left: var(--position);
  transform: translateX(-50%);
  pointer-events: none;
}
.slider-button {
  position: absolute;
  background-color: #fff;
  color: black;
  width: 50px;  /* Kreisgröße */
  height: 50px; 
  border-radius: 50%; /* Rundes Design */
  display: flex;
  align-items: center;
  justify-content: center;
  top: 50%;
  left: var(--position);
  transform: translate(-50%, -50%);
  pointer-events: none;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
}

/* SVG-Pfeile innerhalb des Buttons */
.slider-button svg {
  width: 30px;
  height: 30px;
  fill: black;
}





/* Bilderreihe Styling */
.image-gallery {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  
    margin-top: 50px;  /* Genug Abstand nach oben */
    margin-bottom: 100px;  /* Abstand nach unten, damit es nicht den Footer überlappt */
    width: 100%;
    overflow: hidden;
    position: relative;
    max-height: auto;
}


.image-gallery h4{

    margin-bottom:40px ;
}

.gallery-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 Bilder pro Reihe */
  gap: 20px;
  max-width: 80%;
  width: 100%;
  justify-content: center; /* Bilder mittig zentrieren */
  align-items: center;
  margin: 0 auto;
  text-align: center;
  margin-bottom: 10px;
}


.gallery-container img {
    width: 100%; /* Füllt die jeweilige Spalte */
    max-width: 500px; /* Maximale Breite der Bilder */
    height: auto;
    border-radius: 8px;
    transition: transform 0.3s ease-in-out;
    object-fit: cover;
    margin: 0 auto;
    box-sizing: border-box; /* Verhindert, dass der Rand das Layout beeinflusst */
    
    
}

/* Hover-Effekt */
.gallery-container img:hover {
    transform: scale(1.05);
}


/* Responsives Design */
@media (max-width: 768px) {

  h2{

    margin-top: 60px;
  }

    .gallery-container {
        grid-template-columns: repeat(1, 1fr); /* 1 Bild pro Zeile auf kleinen Screens */
    }

    .image-gallery {
        margin-bottom: 50px;
    }
    
    .bodyelements {
        max-height: 40vh;
    }


    .gallery-container img {
        max-width: 100%; /* Bilder füllen die gesamte Breite */
    }
}



/* Lightbox-Hintergrund */


.lightbox {
  display: none; /* Standardmäßig versteckt */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8); /* Dunkler Hintergrund */
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 1000;
}

/* Vergrößertes 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);
  }
}


.sketchfab-embed-wrapper {
  display: flex;
  flex-direction: column; /* Stapelt Elemente untereinander */
  align-items: center; /* Zentriert die Elemente horizontal */
  text-align: center; /* Sorgt dafür, dass der Text mittig bleibt */
  width: 100%; /* Volle Breite nutzen */
  margin: 0 auto; /* Falls nötig, zentriert den Container */
  margin-bottom: 40px;
 
}

.sketchfab-embed-wrapper iframe {
  width: 80%; /* Setzt die Breite auf 80% */
  max-width: 1000px; /* Optional: Begrenzung für sehr große Bildschirme */
  height: 600px; /* Setze eine sinnvolle Höhe */
  border-radius: 10px;
  padding: 10px;
  border: 1px solid #c8c8c8; 
}


.sketchfab-embed-wrapper h4 {
  margin-bottom: 30px; /* Fügt etwas Abstand zwischen Überschrift und Modell hinzu */
}

