/* Wohnbau Startseiten-Slider – Ergänzungen zum bestehenden Startseiten-Slider (wb26).
   Folien, Balken, Knöpfe gestaltet das Startseiten-CSS („wb26-…“); hier nur der Rahmen,
   weil der Bereich bewusst nicht „wb26-hero“ heißt (eigene Steuerung). */
.wbss-hero {
	/* Farben (einstellbar unter „Startseiten-Slider → Einstellungen“, Standard = Kadence-Palette 2 / 7) */
	--wbss-blau: var(--global-palette2, #0070AB);
	--wbss-eis: var(--global-palette7, #E3F3FA);
	--wbss-schiene: #4D8FB8;
	position: relative;
	height: clamp(420px, 38vw, 640px);
	overflow: hidden;
	background: #565656;
	box-sizing: border-box;
	font-size: 16px;
	color: #565656;
}
.wbss-hero *, .wbss-hero *::before, .wbss-hero *::after { box-sizing: border-box; }
.wbss-hero.is-paused .wb26-prog span { animation-play-state: paused; }
.wbss-hero .wb26-hero-top { justify-content: flex-end; } /* ohne Etikett: Steuerung rechts */
.wbss-hero .wb26-slide-img video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	background: #565656;
}
.wbss-hero div.wb26-slide { cursor: default; }
/* Bildausschnitt: Fokuspunkt je Folie (--wbss-fokus, Standard 50 % 30 % – Gesichter sind meist im oberen
   Drittel). Derselbe Punkt ist Ursprung des langsamen Zooms und des Hover-Zooms: Bei object-position p %
   liegt die Bildstelle p % genau bei p % der Fläche, so bleibt sie beim Vergrößern an ihrem Platz. */
.wbss-hero .wb26-slide-img img,
.wbss-hero .wb26-slide-img video {
	object-position: var(--wbss-fokus, 50% 30%);
	transform-origin: var(--wbss-fokus, 50% 30%);
}
/* Liegt der Kopf der Seite über dem Slider, setzt das Seiten-CSS z. B. --wbss-frei-oben: 120px und
   --wbss-frei-unten: 196px (Standard 0). Das Skript rückt den Fokuspunkt dann in den freien Bereich
   (ohne Skript gilt object-position oben). --wbss-nachzoom-max (Standard 1.25, 1 = aus) begrenzt die
   zusätzliche Vergrößerung, falls das Bild zu wenig Überstand hat.
   „Bild unter dem Kopf beginnen“: scharfes Bild erst unter dem Kopf, darüber eine unscharfe Kopie. */
.wbss-hero .wbss-unter-kopf { background: var(--wbss-bild) center / cover no-repeat; }
.wbss-hero .wbss-unter-kopf::before {
	content: ''; position: absolute; inset: 0; pointer-events: none;
	background: inherit; filter: blur(18px) brightness(.85); transform: scale(1.1);
}
.wbss-hero .wbss-unter-kopf > img,
.wbss-hero .wbss-unter-kopf > video {
	position: absolute; left: 0; top: var(--wbss-frei-oben, 0px);
	height: calc(100% - var(--wbss-frei-oben, 0px));
}
/* Runde Knöpfe: Symbol bleibt immer blau (das Theme färbt Knöpfe beim Hover/Fokus sonst weiß ein) */
.wbss-hero .wb26-arrowbtn,
.wbss-hero .wb26-arrowbtn:hover,
.wbss-hero .wb26-arrowbtn:focus,
.wbss-hero .wb26-arrowbtn:active { color: var(--wbss-blau); border: 0; box-shadow: none; text-decoration: none; }
.wbss-hero .wb26-arrowbtn { background: #fff; }
.wbss-hero .wb26-arrowbtn:hover,
.wbss-hero .wb26-arrowbtn:focus-visible { background: var(--wbss-eis); }
/* Anhalten-Knopf: mindestens 44 × 44 px Klickfläche */
.wbss-hero .wbss-pause { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
.wbss-hero .wb26-arrowbtn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.wbss-hero .wb26-dotbtn:hover, .wbss-hero .wb26-dotbtn:focus { background: rgba(255, 255, 255, .85); box-shadow: none; }
.wbss-hero .wb26-dotbtn.is-active { background: #fff; }
.wbss-hero .wbss-pause[hidden], .wbss-hero .wbss-tonleiste[hidden], .wbss-hero .wbss-regler[hidden] { display: none !important; }
/* Ton: Lautsprecher-Knopf + ausklappende Lautstärke-Leiste in einer weißen Pille */
.wbss-hero .wbss-tonleiste { display: inline-flex; align-items: center; background: #fff; border-radius: 999px; }
.wbss-hero .wbss-tonleiste .wbss-ton { box-shadow: none; }
.wbss-hero .wbss-regler { display: inline-flex; align-items: center; padding: 0 18px 0 4px; }
.wbss-hero .wbss-lautstaerke { width: 120px; height: 28px; margin: 0; padding: 0; border: 0; background: transparent; box-shadow: none; accent-color: var(--wbss-blau); cursor: pointer; } /* Theme-Rahmen um Eingabefelder entfernen */
/* Schiene und Griff selbst zeichnen – das Theme setzt das Aussehen von Schiebereglern zurück (Schiene war unsichtbar). */
.wbss-hero .wbss-lautstaerke { -webkit-appearance: none; appearance: none; }
.wbss-hero .wbss-lautstaerke::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: var(--wbss-schiene); }
.wbss-hero .wbss-lautstaerke::-moz-range-track { height: 6px; border-radius: 3px; background: var(--wbss-schiene); }
.wbss-hero .wbss-lautstaerke::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; margin-top: -7px; border-radius: 50%; background: var(--wbss-blau); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--wbss-blau); }
.wbss-hero .wbss-lautstaerke::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--wbss-blau); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--wbss-blau); }
.wbss-hero .wbss-lautstaerke:focus-visible { outline: 3px solid var(--wbss-blau); outline-offset: 4px; border-radius: 4px; }
.wbss-hero .wbss-ton .wbss-ico-laut { display: none; }
.wbss-hero .wbss-ton.ist-laut .wbss-ico-stumm { display: none; }
.wbss-hero .wbss-ton.ist-laut .wbss-ico-laut { display: inline; }
.wbss-hero .wbss-ton:focus-visible { outline: 4px solid #fff; outline-offset: 3px; }
.wbss-hero .wbss-pause .wbss-ico-play { display: none; }
.wbss-hero .wbss-pause.ist-angehalten .wbss-ico-pause { display: none; }
.wbss-hero .wbss-pause.ist-angehalten .wbss-ico-play { display: inline; }
.wbss-hero .wbss-pause:focus-visible { outline: 4px solid #fff; outline-offset: 3px; }
@media (max-width: 767px) {
	.wbss-hero { height: 560px; }
}

/* Textposition je Folie (nur ab 901 px – darunter steht der Text unter dem Bild).
   Gleicher Seitenrand wie Logo/Menü (--wb-rand), oben unterhalb der Steuerknöpfe,
   unten mit dem Abstand zu den Kacheln. „translate“ statt „transform“, damit der
   Hover-Effekt des Balkens (transform) die Position nicht überschreibt. */
@media (min-width: 901px) {
	.wbss-hero { --wbss-oben: 104px; --wbss-unten: 92px; }
	.wbss-hero .wbss-pos-oben-links .wb26-bar,
	.wbss-hero .wbss-pos-oben-mitte .wb26-bar,
	.wbss-hero .wbss-pos-oben-rechts .wb26-bar { top: var(--wbss-oben); bottom: auto; }
	.wbss-hero .wbss-pos-mitte-links .wb26-bar,
	.wbss-hero .wbss-pos-mitte-mitte .wb26-bar,
	.wbss-hero .wbss-pos-mitte-rechts .wb26-bar { top: 50%; bottom: auto; translate: 0 -50%; }
	.wbss-hero .wbss-pos-oben-rechts .wb26-bar,
	.wbss-hero .wbss-pos-mitte-rechts .wb26-bar,
	.wbss-hero .wbss-pos-unten-rechts .wb26-bar { left: auto; right: var(--wb-rand, 40px); }
	/* Mittig: Balken zentriert, Text mittig, Knopf darunter */
	.wbss-hero .wbss-pos-oben-mitte .wb26-bar,
	.wbss-hero .wbss-pos-mitte-mitte .wb26-bar,
	.wbss-hero .wbss-pos-unten-mitte .wb26-bar {
		left: 50%; right: auto; translate: -50% 0;
		width: min(760px, calc(100% - 2 * var(--wb-rand, 40px)));
		flex-direction: column; align-items: center; text-align: center; gap: 16px;
	}
	.wbss-hero .wbss-pos-mitte-mitte .wb26-bar { translate: -50% -50%; }
	.wbss-hero .wbss-pos-oben-mitte .wb26-meta,
	.wbss-hero .wbss-pos-mitte-mitte .wb26-meta,
	.wbss-hero .wbss-pos-unten-mitte .wb26-meta { justify-content: center; }
	.wbss-hero .wbss-pos-oben-mitte .wb26-bar-text,
	.wbss-hero .wbss-pos-mitte-mitte .wb26-bar-text,
	.wbss-hero .wbss-pos-unten-mitte .wb26-bar-text { align-items: center; }
}

/* Song-Slide: Bild abgedunkelt, Equalizer darüber, Abspielknopf + Zeitleiste im Balken.
   Der Balken bleibt hier immer dunkelblau (kein weißer Hover wie bei Link-Folien),
   damit weiße Schrift und Knöpfe überall mindestens 4,5 : 1 Kontrast haben. */
.wbss-hero .wbss-hat-song .wb26-slide-img::after {
	content: ''; position: absolute; inset: 0; pointer-events: none;
	background: linear-gradient(180deg, rgba(0, 38, 64, .42) 0%, rgba(0, 38, 64, .58) 100%);
}
.wbss-hero .wbss-eq { position: absolute; inset: 0; z-index: 1; display: block; width: 100%; height: 100%; pointer-events: none; }
.wbss-hero .wbss-eq-ruhig,
.wbss-hero .wbss-eq-ersatz { position: absolute; left: 50%; top: 46%; z-index: 1; translate: -50% -50%; pointer-events: none; }
.wbss-hero .wbss-eq-ruhig { display: none; width: clamp(96px, 11vw, 168px); height: auto; fill: var(--global-palette7, #E3F3FA); filter: drop-shadow(0 0 10px var(--global-palette1, #0089D0)); }
.wbss-hero .wbss-hat-song.ist-eq-ersatz .wbss-eq { display: none; }
/* Ersatz ohne Web Audio: Balken als CSS-Animation, nur solange der Song läuft */
.wbss-hero .wbss-eq-ersatz { display: flex; align-items: center; justify-content: space-between; width: min(86%, 1056px); height: 68%; }
.wbss-hero .wbss-eq-ersatz i {
	display: block; width: clamp(5px, .9vw, 12px); height: 100%; border-radius: 999px;
	background: linear-gradient(180deg, var(--global-palette2, #0070AB), var(--global-palette7, #E3F3FA) 50%, var(--global-palette2, #0070AB));
	box-shadow: 0 0 14px var(--global-palette1, #0089D0);
	transform: scaleY(.05); transition: transform .6s ease-out;
}
.wbss-hero .ist-am-spielen .wbss-eq-ersatz i { animation: wbssEq .9s ease-in-out infinite alternate; }
.wbss-hero .wbss-eq-ersatz i:nth-child(3n+1) { animation-duration: .72s; animation-delay: -.3s; }
.wbss-hero .wbss-eq-ersatz i:nth-child(3n+2) { animation-duration: 1.1s; animation-delay: -.6s; }
.wbss-hero .wbss-eq-ersatz i:nth-child(4n) { animation-duration: .84s; animation-delay: -.15s; }
.wbss-hero .wbss-eq-ersatz i:nth-child(n+9):nth-child(-n+16) { animation-name: wbssEqMitte; }
@keyframes wbssEq { 0% { transform: scaleY(.1); } 50% { transform: scaleY(.45); } 100% { transform: scaleY(.22); } }
@keyframes wbssEqMitte { 0% { transform: scaleY(.25); } 50% { transform: scaleY(.85); } 100% { transform: scaleY(.45); } }

.wbss-hero .wbss-hat-song .wb26-bar,
.wbss-hero .wbss-hat-song:hover .wb26-bar {
	background: var(--wbss-blau);
	background: color-mix(in srgb, var(--wb-blau-dark, #0070AB) 95%, transparent);
	color: #fff; transform: none; box-shadow: none;
}
.wbss-hero .wbss-hat-song:hover .wb26-title { text-decoration: none; }
.wbss-hero .wbss-hat-song:hover .wb26-excerpt { color: inherit; }
.wbss-hero .wbss-hat-song:hover .wb26-slide-img img { transform: none; }
.wbss-hero .wbss-spieler {
	flex: 1; min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr);
	grid-template-areas: "knopf text" "knopf leiste" "fehler fehler"; column-gap: 22px; row-gap: 6px; align-items: center;
}
.wbss-hero .wbss-spieler .wb26-bar-text { grid-area: text; }
.wbss-hero .wbss-interpret { font-size: 17px; font-weight: 600; line-height: 1.35; }
/* Runder Abspielknopf (Farben für alle Zustände fest, sonst färbt das Theme ihn ein) */
.wbss-hero .wbss-song-knopf,
.wbss-hero .wbss-song-knopf:hover,
.wbss-hero .wbss-song-knopf:focus,
.wbss-hero .wbss-song-knopf:active {
	grid-area: knopf; flex-shrink: 0; width: 68px; height: 68px; padding: 0; margin: 0;
	display: flex; align-items: center; justify-content: center; border: 0; border-radius: 50%;
	background: #fff; color: var(--wbss-blau); box-shadow: 0 6px 18px -8px rgba(0, 30, 50, .6); cursor: pointer; text-decoration: none;
	transition: transform .2s, background-color .2s;
}
.wbss-hero .wbss-song-knopf:hover,
.wbss-hero .wbss-song-knopf:focus-visible { background: var(--wbss-eis); transform: scale(1.06); }
.wbss-hero .wbss-song-knopf:focus-visible { outline: 4px solid #fff; outline-offset: 4px; }
.wbss-hero .wbss-song-knopf .wbss-ico-play { translate: 1px 0; }
.wbss-hero .wbss-song-knopf .wbss-ico-pause { display: none; }
.wbss-hero .ist-am-spielen .wbss-song-knopf .wbss-ico-play { display: none; }
.wbss-hero .ist-am-spielen .wbss-song-knopf .wbss-ico-pause { display: inline; }
.wbss-hero .ist-am-spielen .wbss-song-knopf { animation: wbssPuls 2.2s ease-out infinite; }
@keyframes wbssPuls { 0% { box-shadow: 0 0 0 0 rgba(170, 221, 240, .7); } 100% { box-shadow: 0 0 0 14px rgba(170, 221, 240, 0); } }
/* Zeit und Positionsleiste (Klickfläche 44 px hoch, Spur 8 px) */
.wbss-hero .wbss-song-leiste { grid-area: leiste; display: flex; align-items: center; gap: 12px; min-width: 0; }
.wbss-hero .wbss-song-jetzt,
.wbss-hero .wbss-song-gesamt { flex-shrink: 0; min-width: 2.9em; font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
.wbss-hero .wbss-song-gesamt { text-align: right; }
.wbss-hero .wbss-song-zeit {
	--wbss-anteil: 0%;
	-webkit-appearance: none; appearance: none; flex: 1; min-width: 60px; height: 44px; margin: 0; padding: 0;
	background: transparent; border: 0; cursor: pointer;
}
.wbss-hero .wbss-song-zeit:disabled { cursor: default; opacity: .6; }
.wbss-hero .wbss-song-zeit::-webkit-slider-runnable-track {
	height: 8px; border-radius: 4px;
	background: linear-gradient(to right, #fff var(--wbss-anteil), rgba(255, 255, 255, .38) var(--wbss-anteil));
}
.wbss-hero .wbss-song-zeit::-webkit-slider-thumb {
	-webkit-appearance: none; appearance: none; width: 24px; height: 24px; margin-top: -8px; border-radius: 50%;
	background: #fff; border: 4px solid var(--wbss-blau); box-shadow: 0 2px 6px rgba(0, 0, 0, .35);
}
.wbss-hero .wbss-song-zeit::-moz-range-track { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .38); }
.wbss-hero .wbss-song-zeit::-moz-range-progress { height: 8px; border-radius: 4px; background: #fff; }
.wbss-hero .wbss-song-zeit::-moz-range-thumb {
	width: 16px; height: 16px; border-radius: 50%; background: #fff;
	border: 4px solid var(--wbss-blau); box-shadow: 0 2px 6px rgba(0, 0, 0, .35);
}
.wbss-hero .wbss-song-zeit:focus { outline: none; }
.wbss-hero .wbss-song-zeit:focus-visible { outline: 3px solid #fff; outline-offset: 2px; border-radius: 6px; }
.wbss-hero .wbss-song-fehler { grid-area: fehler; font-size: 16px; font-weight: 700; }
.wbss-hero .wbss-song-fehler[hidden] { display: none; }
/* Link beim Song nur als Knopf */
.wbss-hero .wbss-hat-song a.wb26-pill,
.wbss-hero .wbss-hat-song:hover a.wb26-pill { background: #fff; color: var(--wbss-blau); text-decoration: none; min-height: 44px; }
.wbss-hero .wbss-hat-song a.wb26-pill:hover,
.wbss-hero .wbss-hat-song a.wb26-pill:focus-visible { background: var(--wbss-eis); color: var(--wbss-blau); }
.wbss-hero .wbss-hat-song a.wb26-pill:focus-visible { outline: 4px solid #fff; outline-offset: 3px; }
.wbss-hero .wbss-hat-song a.wb26-pill:hover .wb26-arr { transform: translateX(5px); }
@media (min-width: 901px) {
	.wbss-hero .wbss-pos-oben-mitte .wbss-spieler,
	.wbss-hero .wbss-pos-mitte-mitte .wbss-spieler,
	.wbss-hero .wbss-pos-unten-mitte .wbss-spieler { width: 100%; text-align: left; }
}
@media (max-width: 767px) {
	.wbss-hero .wbss-hat-song .wb26-bar { gap: 10px; padding: 16px 16px 18px; }
	.wbss-hero .wbss-spieler { align-self: stretch; grid-template-areas: "knopf text" "leiste leiste" "fehler fehler"; column-gap: 14px; row-gap: 4px; }
	.wbss-hero .wbss-song-knopf,
	.wbss-hero .wbss-song-knopf:hover,
	.wbss-hero .wbss-song-knopf:focus,
	.wbss-hero .wbss-song-knopf:active { width: 58px; height: 58px; }
	.wbss-hero .wbss-interpret { font-size: 16px; }
	.wbss-hero .wbss-hat-song a.wb26-pill { padding: 10px 18px; }
	/* Mit Link-Knopf wird der Song-Balken höher: Mindesthöhe statt abgeschnittenem Knopf
	   (greift nur, wo der Balken unter dem Bild steht – sonst ist der Slider ohnehin höher). */
	.wbss-hero.wbss-mit-songknopf { min-height: calc(56.25vw + 250px); }
}

@media (prefers-reduced-motion: reduce) {
	.wbss-hero *, .wbss-hero .wb26-slide { animation: none !important; transition: none !important; }
	.wbss-hero .wb26-prog { display: none; }
	/* Statt bewegter Balken ein ruhiges Equalizer-Symbol */
	.wbss-hero .wbss-eq, .wbss-hero .wbss-eq-ersatz { display: none; }
	.wbss-hero .wbss-eq-ruhig { display: block; }
}
