/* =======================
   HERO SLIDER - CONTAINER
   ======================= */
#sjs-hero-container {
  position: relative;
  width: 100%;
  height: 60vh;
  overflow: hidden;
  background: #000;
  background-size: cover !important;        /* Bild füllt den Container */
  background-position: center center !important;
  background-repeat: no-repeat !important;  /* keine Kacheln */
}

/* =======================
   HERO OVERLAY (Titel, Kategorie, Autor)
   ======================= */
.sjs-hero-main {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #fff;
  max-width: 700px;
  width: 90%;
  z-index: 10;
  background: rgba(0, 0, 0, 0.3); /* leicht transparenter grauer Hintergrund */
  padding: 15px 20px;
  border-radius: 5px;
}

#sjs-hero-cat {
  display: inline-block;
  background: rgba(0, 0, 0, 0.7);
  padding: 4px 10px;
  border-radius: 3px;
  font-size: 1rem;
  text-transform: uppercase;
  margin-bottom: 10px;
  letter-spacing: 1px;
}

#sjs-hero-title {
  font-size: 3.0rem;
  font-weight: bold;
  margin: 10px 0;
  line-height: 1.3;
  color: #ffffff;
}

#sjs-hero-author {
  display: block;
  font-size: 1rem;
  margin-top: 12px;
  opacity: 0.8;
  text-transform: uppercase;
  color: #f5f5f5;
}

/* =======================
   THUMBNAIL LEISTE
   ======================= */
.sjs-hero-thumbs {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 50%);
  width: 80%;
  display: flex;
  justify-content: center;
  z-index: 30;
}

/* =======================
   THUMBNAILS (neue Struktur)
   ======================= */
.sjs-hero-thumbs .thumb {
  flex: 0 0 auto;
  aspect-ratio: 16 / 9;       /* erzwingt gleiches Seitenverhältnis */
  max-height: 240px;          /* optional: maximale Höhe */
  background: #fff;
  border: 3px solid #fff;
  margin: 0 5px;
  transform: scale(0.9);
  filter: sepia(60%);
  cursor: pointer;
  opacity: 1;
  box-sizing: border-box;
  transition: transform 0.3s ease, filter 0.3s ease, border 0.3s ease;
  overflow: hidden;           /* überschüssiges Bild wird abgeschnitten */
}

.sjs-hero-thumbs .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;          /* füllt den Container, ohne weiße Ränder */
  display: block;
}


/* Aktives Thumbnail */
.sjs-hero-thumbs .thumb.active {
  transform: scale(1.2);
  filter: none;
  z-index: 10;
  border: 4px solid #b58b58;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

/* Hover-Effekt */
.sjs-hero-thumbs .thumb:hover:not(.active) {
  transform: scale(1.05);
  filter: sepia(30%);
}


/* =======================
   RESPONSIVE ANPASSUNGEN
   ======================= */

/* Smartphones */
@media (max-width: 480px) {
  .sjs-hero-thumbs {
    width: 95%;
    transform: translate(-50%, 35%);
    overflow: hidden;           /* verhindert Hoch-/Runterscrollen */
    padding: 2px 0;             /* Abstand für sichtbaren Rahmen */
  }

  .sjs-hero-thumbs .thumb {
    flex: 0 0 22%;              /* kleinere Breite */
    transform: scale(0.8);      /* alle Thumbs kleiner */
    margin: 0 3px;
  }

  .sjs-hero-thumbs .thumb.active {
    transform: scale(1);        /* aktives Bild nur leicht größer */
    border: 3px solid #b58b58;  /* goldener Rahmen */
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    margin: 4px 3px;            /* Abstand oben/unten */
  }
  #sjs-hero-title {
    font-size: 1.8rem;   /* vorher 3.0rem */
    line-height: 1.2;
  }

}

/* Tablets */
@media (max-width: 820px) {
  .sjs-hero-thumbs {
    width: 90%;
    transform: translate(-50%, 40%);
    overflow: hidden;
    padding: 3px 0;
  }

  .sjs-hero-thumbs .thumb {
    flex: 0 0 18%;              /* etwas breiter als Smartphone */
    transform: scale(0.9);
    margin: 0 4px;
  }

  .sjs-hero-thumbs .thumb.active {
    transform: scale(1.1);      /* aktives Bild dezent größer */
    border: 3px solid #b58b58;
    box-shadow: 0 3px 8px rgba(0,0,0,0.3);
    margin: 5px 4px;
  }
}
