@charset "UTF-8";

/* =========================================================
   VIDEOGALERIE - VOLLSTÄNDIGER CSS-CODE
   ========================================================= */


/* =========================================================
   1. HAUPTCONTAINER
   ========================================================= */

.gallery-container {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}


/* =========================================================
   2. HAUPTVIDEO
   ========================================================= */

.main-video-display {
  width: 100%;
  margin-bottom: 15px;
}

.main-video-display video {
  width: 100%;
  height: auto;
  max-height: 500px;
  background-color: #000;
  border-radius: 8px;
  display: block;
}


/* =========================================================
   3. TITEL UNTER DEM VIDEO
   ========================================================= */

#video-title {
  margin-top: 12px;
  font-family: sans-serif;
  font-size: 1rem;
  color: #333;
  transition: opacity 0.2s ease;
}


/* =========================================================
   4. CONTAINER FÜR THUMBNAILS UND PFEILE
   ========================================================= */

.thumbnail-wrapper {
  position: relative;
  width: 100%;
  margin-top: 15px;

  /* Platz links und rechts für Navigationspfeile */
  padding: 0 45px;

  box-sizing: border-box;
}


/* =========================================================
   5. HORIZONTALE THUMBNAIL-LEISTE
   ========================================================= */

.thumbnail-list {
  display: flex;
  gap: 12px;

  /* Horizontales Scrollen ermöglichen */
  overflow-x: auto;
  overflow-y: hidden;

  /* Platz für die Thumbnail-Markierung */
  padding: 8px 4px;

  box-sizing: border-box;

  /* Scrollbalken in Firefox ausblenden */
  scrollbar-width: none;

  /* Flüssiges Scrollen auf iPhone und iPad */
  -webkit-overflow-scrolling: touch;

  /* Einrastfunktion beim horizontalen Wischen */
  scroll-snap-type: x mandatory;
}


/* Scrollbalken in Chrome, Safari und Edge ausblenden */

.thumbnail-list::-webkit-scrollbar {
  display: none;
}


/* =========================================================
   6. THUMBNAILS - GRUNDEINSTELLUNGEN
   ========================================================= */

.thumbnail-list img {

  /* Standardgrösse für Smartphones */
  width: 90px;
  height: 51px;

  /* Bildformat beibehalten */
  object-fit: cover;

  /* Mauszeiger */
  cursor: pointer;

  /* Leicht abgerundete Ecken */
  border-radius: 4px;

  /* Nicht aktive Bilder leicht transparent */
  opacity: 0.6;

  /* Unsichtbarer Rahmen */
  box-shadow: 0 0 0 1px transparent;

  /* Weicher Übergang */
  transition: all 0.2s ease-in-out;

  /* Verhindert das Verkleinern der Thumbnails */
  flex-shrink: 0;

  /* Thumbnail beim Scrollen zentrieren */
  scroll-snap-align: center;

  /* Beim Wischen an einzelnen Bildern einrasten */
  scroll-snap-stop: always;
}


/* =========================================================
   7. AKTIVES THUMBNAIL
   ========================================================= */

.thumbnail-list img.active {

  /* Aktives Bild vollständig sichtbar */
  opacity: 1;

  /* Dünner blauer Rahmen - 1 Pixel */
  box-shadow: 0 0 0 1px #007bff;

  /* Aktives Thumbnail leicht vergrössern */
  transform: scale(1.03);
}


/* =========================================================
   8. NAVIGATIONSPFEILE
   ========================================================= */

.nav-btn {

  /* Pfeile links und rechts positionieren */
  position: absolute;
  top: 50%;
  transform: translateY(-50%);

  /* Runde Schaltflächen */
  width: 40px;
  height: 40px;
  border-radius: 50%;

  /* Hintergrund und Rahmen */
  background-color: #ffffff;
  border: 1px solid #e0e0e0;

  /* Pfeilfarbe */
  color: #555555;

  /* Bedienung */
  cursor: pointer;
  user-select: none;

  /* Weicher Übergang */
  transition: all 0.25s ease;

  /* Pfeile vor anderen Elementen anzeigen */
  z-index: 100;

  /* SVG-Pfeil mittig ausrichten */
  display: flex;
  align-items: center;
  justify-content: center;

  padding: 0;
}


/* =========================================================
   9. SVG-PFEILE
   ========================================================= */

.nav-btn svg {
  width: 20px;
  height: 20px;
}


/* =========================================================
   10. HOVER-EFFEKT DER PFEILE
   ========================================================= */

.nav-btn:hover {
  background-color: #007bff;
  color: #ffffff;
  border-color: #007bff;

  box-shadow: 0 4px 10px rgba(0, 123, 255, 0.25);
}


/* =========================================================
   11. AUSGEBLENDETE NAVIGATIONSPFEILE
   ========================================================= */

.nav-btn.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}


/* =========================================================
   12. POSITION DES LINKEN PFEILS
   ========================================================= */

#prev-btn {
  left: 0;
}


/* =========================================================
   13. POSITION DES RECHTEN PFEILS
   ========================================================= */

#next-btn {
  right: 0;
}


/* =========================================================
   14. TABLETS AB 600 PIXEL
   ========================================================= */

@media (min-width: 600px) {

  .thumbnail-list img {
    width: 100px;
    height: 56px;
  }

}


/* =========================================================
   15. LAPTOPS UND PCS AB 1024 PIXEL
   ========================================================= */

@media (min-width: 1024px) {

  .thumbnail-list img {
    width: 120px;
    height: 68px;
  }

}


/* =========================================================
   16. KLEINE BILDSCHIRME BIS 600 PIXEL
   ========================================================= */

@media (max-width: 600px) {

  #video-title {
    font-size: 0.8rem;
    padding: 0 5px;
  }

}




/* =========================================================
   SICHTBARER SCROLLBALKEN FÜR LAPTOP UND PC
   ========================================================= */

@media (min-width: 1024px) {

  .thumbnail-list {
    overflow-x: scroll;
    overflow-y: hidden;

    scrollbar-width: auto;
    scrollbar-color: #999999 #eeeeee;

    padding-bottom: 14px;
  }

  .thumbnail-list::-webkit-scrollbar {
    display: block;
    height: 10px;
  }

  .thumbnail-list::-webkit-scrollbar-track {
    background: #eeeeee;
    border-radius: 5px;
  }

  .thumbnail-list::-webkit-scrollbar-thumb {
    background: #999999;
    border-radius: 5px;
  }

  .thumbnail-list::-webkit-scrollbar-thumb:hover {
    background: #666666;
  }

}



/* =========================================================
   VIDEO-THUMBNAILS - ABGERUNDET MIT WEISSEM RAND
   ========================================================= */

.thumbnail-list img {
  /* Etwas stärker abgerundete Ecken */
  border-radius: 8px;

  /* Feiner weisser Rand */
  border: 2px solid #ffffff;

  /* Bildgrösse inklusive Rand berechnen */
  box-sizing: border-box;
}

/* Aktives Thumbnail weiterhin blau markieren */
.thumbnail-list img.active {
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 2px #007bff;
}


/* =========================================================
   17. VIDEOINFORMATIONEN (OPTIONAL EINBLENDBAR)
   Für sichtbare Titel/Beschreibungen: display: block;
   ========================================================= */
.video-informationen {
  display: none;
}

.video-informationen p {
  margin-top: 6px;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Fokusmarkierung für Bedienung per Tastatur */
.thumbnail-list .thumb:focus-visible {
  outline: 3px solid #007bff;
  outline-offset: 2px;
}
