/**
 * Striped Services – gleitendes Fenster
 * Aktivierung: CSS-Klasse "striped-paged" am WGL-Striped-Services-Widget.
 */

/* Vor dem Start des Skripts nur die ersten 3 zeigen (kein Aufblitzen der Streifen) */
.striped-paged .wgl-striped-services:not(.sp-ready) > .wgl-striped:nth-child(n+4) {
  display: none;
}

/* Ausgeblendete Bilder schrumpfen auf 0 – der Theme-Übergang (0,5 s) sorgt für das Gleiten */
.striped-paged .wgl-striped-services .wgl-striped.is-out {
  flex: 0 0 0 !important;
  min-width: 0;
  min-height: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  margin-right: calc(-1 * var(--sp-gap, 0px));
}

.striped-paged .wgl-striped-services.sp-col .wgl-striped.is-out {
  margin-right: 0;
  margin-bottom: calc(-1 * var(--sp-gap, 0px));
}

/* Navigation (vor allem für Touch und Tastatur) */
.striped-paged__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 24px;
}

.striped-paged__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #FAA222; /* wie die Pfeile im Blog-Bereich */
  cursor: pointer;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.striped-paged__btn:not(:disabled):hover:last-child,
.striped-paged__btn:not(:disabled):focus-visible:last-child {
  transform: translateX(4px);
}

.striped-paged__btn:not(:disabled):hover:first-child,
.striped-paged__btn:not(:disabled):focus-visible:first-child {
  transform: translateX(-4px);
}

.striped-paged__btn:focus-visible {
  outline: 2px solid #FAA222;
  outline-offset: 2px;
  border-radius: 4px;
}

.striped-paged__btn:disabled {
  opacity: 0.3;
  cursor: default;
}

.striped-paged__btn svg {
  width: 19px;
  height: 19px;
  display: block;
}

.striped-paged__count {
  min-width: 5.5em;
  text-align: center;
  font-size: 15px;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  color: var(--calmi-primary-color, #1a1a1a);
}

@media (prefers-reduced-motion: reduce) {
  .striped-paged .wgl-striped-services .wgl-striped {
    transition: none !important;
  }
}
