/* Titelbilder / Hero-Slider – Design Joker
   Bühne in Design-Größe, proportional skaliert (wie im Original). */

.dj-hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  /* Höhe = Designhöhe * Skalierung, nach oben auf die Designhöhe begrenzt */
  height: calc(var(--dj-h) * 1px * var(--dj-s, 1));
  background: #1b1b1b;
}

.dj-hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .7s ease;
}
.dj-hero-slide.is-active { opacity: 1; visibility: visible; }
.dj-hero[data-slides="1"] .dj-hero-slide { opacity: 1; visibility: visible; }

.dj-hero-bg {
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-size: cover;
}
.dj-hero-ov { position: absolute; inset: 0; }

/* Bühne: Design-Koordinaten, zentriert und herunterskaliert */
.dj-hero-stage {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(var(--dj-s, 1));
  transform-origin: center center;
}
.dj-hero-el, .dj-hero-txt { position: absolute; }
/* Kantenglättung wie im Original-Stylesheet des Sliders
   (Ebenen des Originalsliders) – ohne sie wirkt die Schrift auf macOS zu fett */
.dj-hero-txt {
  margin: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* klickbarer Störer (runder Button im Titelbild) */
.dj-hero-badge {
  display: block;
  z-index: 20;
  border-radius: 50%;
  text-indent: -9999px;
  overflow: hidden;
  transition: transform .2s ease;
}
.dj-hero-badge:hover { transform: scale(1.04); }
.dj-hero-badge:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

/* Navigation (nur bei mehreren Slides) */
.dj-hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .85);
  color: #253c8f;
  cursor: pointer;
  z-index: 5;
  display: flex; align-items: center; justify-content: center;
  padding: 0;
  opacity: 0;
  transition: opacity .25s, background .2s;
}
.dj-hero:hover .dj-hero-nav, .dj-hero-nav:focus-visible { opacity: 1; }
.dj-hero-nav:hover { background: #fff; }
.dj-hero-nav svg { width: 22px; height: 22px; fill: currentColor; }
.dj-hero-prev { left: 18px; }
.dj-hero-next { right: 18px; }

.dj-hero-dots {
  position: absolute;
  left: 0; right: 0; bottom: 14px;
  display: flex; justify-content: center; gap: 9px;
  z-index: 5;
}
.dj-hero-dot {
  width: 10px; height: 10px;
  border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .5);
  cursor: pointer; padding: 0;
  transition: background .2s, transform .2s;
}
.dj-hero-dot:hover { background: rgba(255, 255, 255, .8); }
.dj-hero-dot.is-active { background: #fff; transform: scale(1.25); }

/* Mobile Darstellung
   Die auf Handybreite herunterskalierte Bühne wäre unlesbar (55px Schrift
   schrumpfen auf ~14px). Deshalb: Bild in sinnvoller Höhe, dunkler Verlauf
   im unteren Bereich und der Text darin in normaler Grösse. */
.dj-hero-m { display: none; }

@media (max-width: 782px) {
  .dj-hero-nav { display: none; }
  .dj-hero-dots { bottom: 9px; }

  .dj-hero {
    height: clamp(280px, 52vh, 420px);
  }
  /* skalierte Bühne aus – sie ist auf dieser Breite nicht lesbar */
  .dj-hero-stage { display: none; }

  .dj-hero-m {
    display: block;
    position: absolute;
    /* mittig statt linksbündig: die fixierten Kontakt-Buttons am linken
       Rand würden sonst den Textanfang überdecken */
    left: 0; right: 0; bottom: 0;
    padding: 92px 22px 22px;
    text-align: center;
    background: linear-gradient(to top,
      rgba(0, 0, 0, .82) 0%, rgba(0, 0, 0, .74) 30%,
      rgba(0, 0, 0, .45) 62%, rgba(0, 0, 0, 0) 100%);
    color: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
  .dj-hero-m-title {
    font-family: "Ubuntu Light", "Ubuntu", sans-serif;
    font-size: clamp(24px, 6.6vw, 31px);
    line-height: 1.2;
    margin-bottom: 8px;
    text-shadow: 0 1px 8px rgba(0, 0, 0, .35);
  }
  /* feine Trennlinie wie in der Desktop-Fassung */
  .dj-hero-m-title::after {
    content: "";
    display: block;
    width: 76px;
    height: 1px;
    background: rgba(255, 255, 255, .85);
    margin: 9px auto 0;
  }
  .dj-hero-m-sub {
    font-family: "Ubuntu Light", "Ubuntu", sans-serif;
    font-size: clamp(15px, 4.1vw, 18px);
    line-height: 1.35;
    opacity: .95;
    text-shadow: 0 1px 8px rgba(0, 0, 0, .35);
  }
  .dj-hero-m-sub + .dj-hero-m-sub { margin-top: 3px; }

  /* Handlungsaufforderung des Störers – mobil als Schaltfläche */
  .dj-hero-m-btn {
    display: inline-block;
    margin-top: 13px;
    padding: 9px 20px;
    border-radius: 999px;
    background: rgba(197, 163, 110, .95);
    color: #fff !important;
    font-family: "Ubuntu Bold", "Ubuntu", sans-serif;
    font-size: clamp(13px, 3.6vw, 15px);
    line-height: 1.25;
    text-decoration: none !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .3);
  }
  .dj-hero-m-btn:hover, .dj-hero-m-btn:focus { background: rgba(197, 163, 110, 1); }
}

/* sehr schmale Geräte: Bild etwas flacher, damit der Text nicht dominiert */
@media (max-width: 420px) {
  .dj-hero { height: clamp(250px, 46vh, 330px); }
  .dj-hero-m { padding: 76px 16px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .dj-hero-slide { transition: none; }
}
