/*
 * Kundenstimmen-Slider (Mask-Element "Kundenstimmen"): gefadeter Rand per scroll-driven animation.
 * Am Anfang ist nur der rechte Rand ausgeblendet, in der Mitte beide, am Ende nur der linke.
 *
 * Bewusst eine eigene CSS-Datei und kein SCSS: @property und animation-timeline sollen unverändert
 * ausgeliefert werden und den SCSS-Compiler (ws_scss/scssphp) nicht berühren.
 * Ohne Browser-Unterstützung (@supports) bleibt der Slider ganz normal scrollbar, nur ohne Fade.
 */
@property --testimonials-fade-l { syntax: "<length>"; inherits: false; initial-value: 0px; }
@property --testimonials-fade-r { syntax: "<length>"; inherits: false; initial-value: 0px; }

.testimonials-track {
	--testimonials-fade: 3.5rem;
}

@supports (animation-timeline: scroll()) {
	.testimonials-track {
		-webkit-mask-image: linear-gradient(90deg, transparent,
			#000 var(--testimonials-fade-l), #000 calc(100% - var(--testimonials-fade-r)), transparent);
		mask-image: linear-gradient(90deg, transparent,
			#000 var(--testimonials-fade-l), #000 calc(100% - var(--testimonials-fade-r)), transparent);
		animation: testimonials-edge-fade linear both;
		animation-timeline: scroll(self inline);
	}
}

@keyframes testimonials-edge-fade {
	0%      { --testimonials-fade-l: 0px;                     --testimonials-fade-r: var(--testimonials-fade); }
	8%, 92% { --testimonials-fade-l: var(--testimonials-fade); --testimonials-fade-r: var(--testimonials-fade); }
	100%    { --testimonials-fade-l: var(--testimonials-fade); --testimonials-fade-r: 0px; }
}
