/* =========================================================
   HWT News Slider – Basis (dein Stand) + responsive Variablen
   ========================================================= */

.hwt-ns{
  --hwt-ns-gap: 1.25rem;
  --hwt-ns-peek: 8%;

  /* Elementor setzt diese beiden Variablen responsive (Desktop/Tablet/Mobile) */
  --hwt-ns-slide: 85%;
  --hwt-ns-height: 36.25rem;

  position: relative;
  width: 100%;
  max-width: 100%;
}

.elementor-widget-hwt_news_slider,
.elementor-widget-hwt_news_slider .elementor-widget-container{
  width: 100% !important;
  max-width: 100% !important;
}

.hwt-ns__viewport{
  position: relative;
  overflow: hidden;
  width: 100%;
}

.hwt-ns__track{
  display: flex;
  gap: var(--hwt-ns-gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 0 var(--hwt-ns-peek);
  margin: 0;
  width: 100%;
  min-width: 100%;
  box-sizing: border-box;
}

.hwt-ns__track::-webkit-scrollbar{ display:none; }
.hwt-ns__track{ scrollbar-width:none; }

/* Slides: Breite/Höhe über Variablen (Elementor responsive) */
.hwt-ns__slide{
  position: relative;
  flex: 0 0 var(--hwt-ns-slide);
  min-width: var(--hwt-ns-slide);
  height: var(--hwt-ns-height);
  scroll-snap-align: center;
  overflow: hidden;
  transform: none;
  transition: none;
  box-sizing: border-box;
}

/* =========================================================
   Responsive: nur Peek anpassen (Breite/Höhe macht Elementor!)
   ========================================================= */

/* Du hattest hier feste Höhen – das entfernen wir, weil jetzt Elementor die Höhe setzt.
   Wenn Elementor mal keine Werte liefert, greift der Fallback --hwt-ns-height oben. */



@media (max-width:900px){
 .hwt-ns__nav{ display: none !important;}
}

/* =========================================================
   Media / Overlay
   ========================================================= */

.hwt-ns__media{
  position: absolute;
  inset: 0;
  background-image: var(--hwt-ns-bg);
  background-size: cover;
  background-position: center;
}

/* Dein Verlauf bleibt – Opacity wird vom JS aktiv gesetzt:
   - aktiver Slide: Elementor Overlay Dunkelheit (z.B. 1.0 bei 100%)
   - nicht aktive Slides: 0.4 */
.hwt-ns__overlay{
  position:absolute;
  inset:0;
  background: transparent linear-gradient(0deg, #0F121A 0%, #0F121A00 100%) 0% 0% no-repeat padding-box;
  opacity:1;
  top: 50%;
  left: 0;
}

/* =========================================================
   Badge (dein Font etc. bleibt)
   ACHTUNG: du hattest top/right anders als vorherige Anforderung.
   -> Ich lasse DEINE Werte als Grundlage drin.
   Wenn du wieder auf top:1.875rem / right:1.25rem willst, sag kurz Bescheid.
   ========================================================= */

.hwt-ns__badge{
  font-family: 'SpecialGothic SemiExpanded';
  font-weight: 500;

  position: absolute;
  top: 1.25rem;
  right: 2.5rem;

  background: #A84000;
  color: #fff;

  padding: 0.3rem 1.25rem;
  border-radius: 0;
  text-transform: uppercase;
  z-index: 3;
}

/* =========================================================
   Content (fade-up) – bleibt
   ========================================================= */

.hwt-ns__content{
  position: absolute;
  left: 2.5rem;
  right: 2.5rem;
  bottom: 1.25rem;
  z-index: 2;

  max-width: 100%;
  color: #fff;

  opacity: 0;
  transform: translateY(18px);
  transition: opacity .45s ease, transform .45s ease;
}
.hwt-ns__slide.is-active .hwt-ns__content{
  opacity: 1;
  transform: translateY(0);
}

.hwt-ns__title{
  color:#fff !important;
  margin-bottom: 0.8rem !important;
  font-family: 'SpecialGothic SemiExpanded Normal';
}

/* =========================================================
   Nav Buttons (dein Style bleibt)
   ========================================================= */

.hwt-ns__nav{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width: 3rem;
  height:3rem;
  background:transparent;
  border:0;
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:5;
  cursor:pointer;
  border-radius: 999%;
  transition: background-color .45s ease;
}
.hwt-ns__nav--prev{ left:3.125rem; }
.hwt-ns__nav--next{ right:3.125rem; }
.hwt-ns__nav img{ width:1.875rem; height:auto; display:block; }
.hwt-ns__nav:hover{ background-color: rgba(247, 247, 245, 0.2); }

/* =========================================================
   Pagination + Toggle (bleibt)
   ========================================================= */

.hwt-ns__pagination{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:1.25rem;
  margin-top:1.25rem;
}
.hwt-ns__pages{
  display:flex;
  gap:.6rem;
  align-items:center;
}
.hwt-ns__page{
  background:transparent;
  border:0;
  padding:0;
  cursor:pointer;
}
.hwt-ns__bar{
  display:block;
  width:3.125rem;
  height:0.25rem;
  border-radius:0;
  background:rgba(149,136,107,0.4);
  overflow:hidden;
}
.hwt-ns__barfill{
  display:block;
  height:100%;
  width:0%;
  background:rgba(149,136,107,1);
  border-radius:0;
}

.hwt-ns__toggle{
  opacity: 0.8;
  position:relative;
  width:1.25rem;
  height:1.25rem;
  border-radius:0;
  background:transparent;
  border:0;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  padding:0;
  margin:0;
  margin-left:1.25rem;
  border-radius:100%;
  background-color: #2D313C;
}
.hwt-ns__toggle img{
  width:0.3rem;
  height:auto;
  display:none;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
}
.hwt-ns__toggle:hover{ opacity: 1; }
.hwt-ns__toggle[data-state="play"] .hwt-ns__icon-play{ display:block; }
.hwt-ns__toggle[data-state="pause"] .hwt-ns__icon-pause{ display:block; }


/* NEW: Dimm-Overlay nur für nicht aktive Slides (links/rechts) */
.hwt-ns__shade{
  position: absolute;
  inset: 0;
  background: #0F121A;      /* oder #000 – je nach gewünschtem Look */
  opacity: 0;               /* aktiv = kein Dim */
  z-index: 1;
  pointer-events: none;
  transition: opacity .45s ease;
}

/* Nicht aktive Slides werden abgedunkelt */
.hwt-ns__slide:not(.is-active) .hwt-ns__shade{
  opacity: 0.4;
}