/*
 * NRWZ Dossierband
 * Alle Farben laufen über lokale Variablen mit Fallback:
 * definiert das Theme --rot, --papier usw., werden diese genutzt.
 */

.nrwz-band{
  --band-rot:        var(--rot,        #BB2727);
  --band-rot-tief:   var(--rot-tief,   #8E1D1D);
  --band-rot-tint:   var(--rot-tint,   #F8EBEB);
  --band-papier:     var(--papier,     #FFFFFF);
  --band-grau:       var(--grau,       #5E646B);
  --band-grau-hell:  var(--grau-hell,  #888E93);
  --band-linie:      var(--linie,      #DBDDDC);
  --band-linie-fein: var(--linie-fein, #EAECEB);
  --band-tinte:      var(--tinte,      #17181A);
  --band-zone:       var(--zone,       #DCE1E4);
  --band-zone-linie: var(--zone-linie, #C1C9CE);
  --band-mono:       var(--mono,       'IBM Plex Mono', ui-monospace, monospace);
  --band-sans:       var(--sans,       'Archivo', system-ui, sans-serif);
  --band-breite:     1180px;
  --band-rand:       24px;

  position: relative;
  z-index: 20;
  background: var(--band-papier);
  border-bottom: 1px solid var(--band-linie);
}

.nrwz-band *,
.nrwz-band *::before,
.nrwz-band *::after{ box-sizing: border-box; }

.nrwz-band__inner{
  display: flex;
  align-items: stretch;
  max-width: var(--band-breite);
  margin: 0 auto;
  padding: 0 var(--band-rand);
}

/* ---------- Kopf ---------- */
.nrwz-band__kopf{
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding-right: 16px;
  border-right: 1px solid var(--band-linie);
  font-family: var(--band-mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--band-rot);
}
.nrwz-band__punkt{
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--band-rot);
  flex-shrink: 0;
}

/* ---------- Scrollfenster ---------- */
.nrwz-band__fenster{
  position: relative;
  flex: 1;
  min-width: 0;
}

.nrwz-band__spur{
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
}
.nrwz-band__spur::-webkit-scrollbar{ display: none; }

/* ---------- Eintrag ---------- */
.nrwz-band__dos{
  flex-shrink: 0;
  min-width: 0;
  padding: 9px 17px;
  border-right: 1px solid var(--band-linie-fein);
  text-decoration: none;
  transition: background .15s ease;
}
.nrwz-band__dos:hover,
.nrwz-band__dos:focus-visible{ background: var(--band-rot-tint); }

.nrwz-band__name{
  display: block;
  font-family: var(--band-sans);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
  color: var(--band-grau);
  transition: color .15s ease;
}
.nrwz-band__dos:hover .nrwz-band__name,
.nrwz-band__dos:focus-visible .nrwz-band__name{ color: var(--band-rot-tief); }

.nrwz-band__zahl{
  display: block;
  margin-top: 2px;
  font-family: var(--band-mono);
  font-size: 9px;
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--band-grau-hell);
}

/* Dossier mit Beitrag von heute */
.nrwz-band__dos--neu .nrwz-band__name::before{
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--band-rot);
  vertical-align: middle;
}
.nrwz-band__dos--neu .nrwz-band__zahl{ color: var(--band-rot); }

/* ---------- Gruppentrenner ---------- */
.nrwz-band__gruppe{
  display: flex;
  align-items: center;
  flex-shrink: 0;
  padding: 0 15px;
  background: #FAFAFA;
  border-right: 1px solid var(--band-linie-fein);
  font-family: var(--band-mono);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--band-grau-hell);
}

/* ---------- Abschluss ---------- */
.nrwz-band__alle{
  display: flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
  padding: 0 18px;
  white-space: nowrap;
  text-decoration: none;
  font-family: var(--band-mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--band-tinte);
  transition: color .15s ease;
}
.nrwz-band__alle::after{ content: "\2192"; font-size: 12px; }
.nrwz-band__alle:hover,
.nrwz-band__alle:focus-visible{ color: var(--band-rot); }

/* ---------- Randverläufe ---------- */
.nrwz-band__hauch{
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: 34px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.nrwz-band__hauch--l{
  left: 0;
  background: linear-gradient(90deg, var(--band-papier) 15%, rgba(255,255,255,0));
}
.nrwz-band__hauch--r{
  right: 0;
  background: linear-gradient(270deg, var(--band-papier) 15%, rgba(255,255,255,0));
}
.nrwz-band__hauch.is-an{ opacity: 1; }

/* ---------- Schiene: Pfeile + Sponsor ---------- */
.nrwz-band__rail{
  display: flex;
  align-items: stretch;
  flex-shrink: 0;
  border-left: 1px solid var(--band-linie);
}
.nrwz-band__rail.is-aus .nrwz-band__pfeil{ display: none; }

.nrwz-band__pfeil{
  width: 27px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  background: none;
  border: none;
  border-right: 1px solid var(--band-linie-fein);
  color: var(--band-grau);
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.nrwz-band__pfeil:hover:not(:disabled){
  background: var(--band-rot-tint);
  color: var(--band-rot);
}
.nrwz-band__pfeil:disabled{
  color: #D5D8D6;
  cursor: default;
}
.nrwz-band__pfeil svg{ width: 7px; height: 12px; display: block; }

/* ---------- Sponsor ---------- */
.nrwz-band__sponsor{
  display: flex;
  align-items: center;
  padding-left: 16px;
  flex-shrink: 0;
}
.nrwz-band__logo{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 142px;
  height: 32px;
  background: var(--band-zone);
  border: 1px solid var(--band-zone-linie);
  text-decoration: none;
  overflow: hidden;
}
.nrwz-band__logo img{
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.nrwz-band__sponsor-label{
  position: absolute;
  top: 0;
  left: 0;
  padding: 2px 5px;
  background: rgba(255,255,255,.72);
  font-family: var(--band-mono);
  font-size: 7.5px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #6E7A82;
  pointer-events: none;
}

/* ---------- Fokus ---------- */
.nrwz-band a:focus-visible,
.nrwz-band button:focus-visible{
  outline: 2px solid var(--band-rot);
  outline-offset: -2px;
}

/* ---------- Responsiv ---------- */
@media (max-width: 860px){
  .nrwz-band__sponsor{ display: none; }
}
@media (max-width: 720px){
  .nrwz-band{ --band-rand: 14px; }

  /* Nur den Text ausblenden, Punkt bleibt als Marker */
  .nrwz-band__kopf > span:not(.nrwz-band__punkt){ display: none; }
  .nrwz-band__kopf{ padding-right: 12px; }

  .nrwz-band__rail{ display: none; }

  .nrwz-band__spur{
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    /* Rand rechts, damit der letzte Eintrag nicht am Displayrand klebt */
    padding-right: 14px;
  }
  .nrwz-band__dos{ scroll-snap-align: start; }

  /* Gruppentrenner mitsnappen lassen, sonst springt es */
  .nrwz-band__gruppe{ scroll-snap-align: start; }

  /* Touchfläche vergrößern */
  .nrwz-band__dos{ padding: 11px 15px; }
}


@media (prefers-reduced-motion: reduce){
  .nrwz-band__spur{ scroll-behavior: auto; }
  .nrwz-band *{ transition: none !important; }
}

@media print{
  .nrwz-band{ display: none; }
}
