/* WEPRO Slider — the whole image at every width: the stage takes the format of the tallest slide (capped at 82 % of the screen
   height) and every image sits inside it with object-fit: contain, so nothing is ever cut off. A theme tunes it through the
   --wps-* custom properties (accent, ink, radius, ease, wrap, gutter, title font). */

.wps-area { --wps-g: var(--wps-gutter, clamp(16px, 4vw, 48px)); margin-block: var(--wps-space, clamp(28px, 4vw, 56px)); }
.wps-area--content { max-width: calc(var(--wps-wrap, 1280px) + 2 * var(--wps-g)); margin-inline: auto; padding-inline: var(--wps-g); }
.wps-area--full { max-width: none; padding-inline: 0; }
.wps-embed { margin-block: clamp(20px, 3vw, 40px); }

.wps {
	--wps-accent: var(--wdt-color-primary, #141414);
	--wps-accent-ink: var(--wdt-color-on-primary, #ffffff);
	--wps-radius: 0px;
	--wps-radius-btn: 4px;
	--wps-ease: cubic-bezier(.2, .7, .2, 1);
	--wps-stage-dark: #0d0d0e;
	--wps-stage-light: #f3f1ec;
	--wps-focus: #ffbf00;
	--wps-max-h: 82vh;
	position: relative;
	width: 100%;
	color: inherit;
}
.wps *, .wps *::before, .wps *::after { box-sizing: border-box; }
.wps [hidden] { display: none !important; }

/* Slides share one grid cell: the block keeps one height, slides cross-fade. */
.wps__viewport { display: grid; }
.wps__slide {
	grid-area: 1 / 1;
	position: relative;
	min-width: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity .9s var(--wps-ease), visibility 0s linear .9s;
}
.wps__slide.is-active { opacity: 1; visibility: visible; transition: opacity .9s var(--wps-ease), visibility 0s; }

/* The stage: format of the tallest slide, never taller than the screen allows. */
.wps__frame {
	position: relative;
	width: 100%;
	aspect-ratio: var(--wps-ratio, 1.7778);
	max-height: var(--wps-max-h);
	max-height: min(var(--wps-max-h), 82svh);
	overflow: hidden;
	background: var(--wps-stage-dark);
	border-radius: var(--wps-radius);
}
.wps--stage-light .wps__frame { background: var(--wps-stage-light); }
/* "Höhe passt sich jedem Bild an": every slide keeps its own format; the block follows the active slide. */
.wps--h-each .wps__viewport { display: block; position: relative; }
.wps--h-each .wps__slide { position: absolute; top: 0; left: 0; right: 0; }
.wps--h-each .wps__slide.is-active { position: relative; }
.wps--h-each .wps__frame { aspect-ratio: var(--wps-r, var(--wps-ratio, 1.7778)); }
.wps .wps__img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	object-fit: contain;
	object-position: center;
	box-shadow: none;
}
/* "Unscharfes Bild": a soft, darkened copy of the same image fills the stage behind it (decoration only). */
.wps .wps__fill {
	position: absolute;
	inset: -8%;
	width: 116%;
	height: 116%;
	max-width: none;
	object-fit: cover;
	filter: blur(28px) saturate(1.15) brightness(.62);
	transform: translateZ(0);
}
.wps__scrim {
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: linear-gradient(to top, rgba(0, 0, 0, var(--wps-scrim, .55)) 0%, rgba(0, 0, 0, calc(var(--wps-scrim, .55) * .45)) 38%, rgba(0, 0, 0, 0) 72%);
}
.wps__hit { position: absolute; inset: 0; z-index: 2; }

/* Caption: title + button. Below the image on phones; over it from 640 px when "auf dem Bild" is chosen. */
.wps__cap {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 14px;
	padding: 18px 0 2px;
	text-align: left;
}
.wps__slide--center .wps__cap { align-items: center; text-align: center; }
.wps__slide--right .wps__cap { align-items: flex-end; text-align: right; }
.wps .wps__title {
	margin: 0;
	max-width: 24ch;
	font-family: var(--wps-font-title, inherit);
	font-size: clamp(1.35rem, 1rem + 1.6vw, 2.6rem);
	font-weight: 700;
	line-height: 1.08;
	letter-spacing: -.01em;
	color: inherit;
	text-wrap: balance;
}
.wps a.wps__btn {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	min-height: 48px;
	padding: 0 26px;
	border: 1px solid var(--wps-accent);
	border-radius: var(--wps-radius-btn);
	background: var(--wps-accent);
	color: var(--wps-accent-ink);
	font-size: .95rem;
	font-weight: 700;
	letter-spacing: .02em;
	line-height: 1.2;
	text-decoration: none;
	transition: transform .25s var(--wps-ease), box-shadow .25s var(--wps-ease);
}
.wps a.wps__btn:hover { transform: translateY(-1px); box-shadow: 0 12px 26px -16px rgba(0, 0, 0, .7); color: var(--wps-accent-ink); }
.wps__arrow { display: inline-block; transition: transform .25s var(--wps-ease); }
.wps a.wps__btn:hover .wps__arrow { transform: translateX(3px); }

@media (min-width: 640px) {
	.wps--cap-overlay .wps__cap {
		position: absolute;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 3;
		padding: clamp(22px, 4vw, 56px);
		color: #ffffff;
		pointer-events: none;
	}
	.wps--cap-overlay .wps__cap a { pointer-events: auto; }
	.wps--cap-overlay .wps__title { max-width: min(24ch, 80%); text-shadow: 0 1px 18px rgba(0, 0, 0, .35); }
}

/* Entrance of the caption when its slide becomes active. */
.wps--multi .wps__cap > * { opacity: 0; transform: translateY(12px); transition: opacity .7s var(--wps-ease) .25s, transform .7s var(--wps-ease) .25s; }
.wps--multi .wps__cap > a { transition-delay: .38s; }
.wps--multi .wps__slide.is-active .wps__cap > * { opacity: 1; transform: none; }

/* Controls sit under the stage, never over the image. */
.wps__controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; margin-top: 14px; color: inherit; }
.wps .wps__arrowbtn, .wps .wps__play {
	display: inline-grid;
	place-items: center;
	inline-size: 44px;
	block-size: 44px;
	margin: 0;
	padding: 0;
	border: 1px solid rgba(127, 127, 127, .45);
	border-radius: 50%;
	background: transparent;
	color: inherit;
	font: inherit;
	font-size: 1.05rem;
	line-height: 1;
	cursor: pointer;
	transition: border-color .2s, background-color .2s;
}
.wps .wps__arrowbtn:hover, .wps .wps__play:hover { border-color: currentColor; }
.wps__dots { display: flex; align-items: center; }
.wps .wps__dot { display: inline-grid; place-items: center; inline-size: 30px; block-size: 44px; margin: 0; padding: 0; border: 0; background: none; color: inherit; cursor: pointer; }
.wps__dot span { display: block; inline-size: 8px; block-size: 8px; border-radius: 999px; background: currentColor; opacity: .3; transition: inline-size .35s var(--wps-ease), opacity .35s var(--wps-ease); }
.wps__dot.is-active span { inline-size: 22px; opacity: 1; }
.wps__play-ico { display: block; inline-size: 10px; block-size: 12px; border-inline: 3px solid currentColor; }
.wps__play.is-paused .wps__play-ico { inline-size: 0; block-size: 0; border-inline: 0; border-left: 10px solid currentColor; border-block: 6px solid transparent; margin-left: 3px; }
.wps button:focus-visible, .wps a:focus-visible { outline: 3px solid var(--wps-focus); outline-offset: 3px; }
.wps__hit:focus-visible { outline-offset: -4px; }
.wps__live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.wps-hint { padding: 16px; border: 1px dashed #c3c4c7; color: #50575e; font-size: 14px; }

@media (prefers-reduced-motion: reduce) {
	.wps__slide, .wps__slide.is-active, .wps--multi .wps__cap > *, .wps a.wps__btn, .wps__arrow, .wps__dot span { transition: none !important; }
	.wps--multi .wps__cap > * { transform: none !important; }
}
