/*
 * Hero-Szene (szenen.php) – rechts im Service-Hero.
 *
 * Besucher schauen drei, vier Sekunden hin: nach 3 s kippt „ohne" zu „mit
 * Northstar Media", jedes Bild ist für sich verständlich. 16 s im Kreis
 * (Prozent = Anteil am Durchlauf):
 *   OHNE    0–19 %   Bild 1  Google (bzw. KI) zeigt die Konkurrenz
 *   MIT    19–47 %   Bild 2  Google (bzw. KI): überall deine Firma
 *          47–72 %   Bild 3  KI (bzw. Google) empfiehlt dich auch
 *          72–99 %   Bild 4  Ergebnis: Termine, Anfragen, Bestellungen
 * Bei .hsz--ki-zuerst (GEO-Seiten) tauschen Google und KI die Plätze, die
 * Regeln hängen deshalb an --google/--ki und --ohne/--mit, nicht an Nummern.
 *
 * Ohne Animation („Bewegung reduzieren") steht Bild 2 da. Animiert werden nur
 * Deckkraft, Verschiebung und beim Tippen clip-path (läuft auf der
 * Grafikkarte, auch in Safari) – kein filter, kein blur (CLAUDE.md,
 * CSS-Performance-Regel). Unter der Maus hält alles an, zum Lesen.
 */

/* --- Hero: Text links, Szene rechts ------------------------------------ */

/* Grünes Licht oben rechts, wie auf der Dashboard-Anmeldung – über Kopfzeile
   und Hero hinweg. Zwei gleich große, gleich gemalte Schichten, die 8rem über
   dem Hero beginnen – bewusst mehr als die Kopfzeile hoch ist (live 86 px,
   nicht mehr 80: mit genau 80 blieb oben ein dunkler Streifen ohne Licht).
   Die Mitte des Lichts sitzt fest 30 px unter der Hero-Oberkante:
   ::before liegt hinter dem Inhalt (unter der Kopfzeile unsichtbar),
   ::after liegt ÜBER der Kopfzeile, zeigt aber nur deren Streifen.
   Die dunkle Kopfzeilen-Farbe kommt aus einer WP-Klasse mit !important und
   lässt sich nicht durchsichtig schalten – daher der Streifen obendrauf.
   Beim Scrollen wandert das Licht mit dem Hero nach oben weg. */
.hero-service--szene {
	--hsz-ueber: 8rem;
	position: relative;
}

.hero-service--szene > .hero-service__inner {
	position: relative;
	z-index: 1;
}

.hero-service--szene::before,
.hero-service--szene::after {
	content: "";
	position: absolute;
	inset: calc(-1 * var(--hsz-ueber)) 0 0;
	background: radial-gradient(circle at 78% calc(var(--hsz-ueber) + 30px), color-mix(in srgb, var(--wp--preset--color--accent) 15%, transparent), transparent 55%);
	pointer-events: none;
}

.hero-service--szene::before {
	z-index: 0;
}

.hero-service--szene::after {
	z-index: 101; /* über der Kopfzeile (100) */
	clip-path: inset(0 0 calc(100% - var(--hsz-ueber)) 0);
}

/* Offenes Handy-Menü nicht einfärben. */
body.mnav-open .hero-service--szene::after {
	display: none;
}

/* Unter 1025 px verhält sich der Text wie ohne Szene. */
.hero-service--szene .hero-service__text {
	display: contents;
}

.hsz-spalte {
	width: 100%;
	max-width: 31rem;
	margin-top: var(--wp--preset--spacing--xl);
	text-align: left;
}

@media (min-width: 1025px) {
	/* Zwei Klassen: WordPress lädt diese Datei VOR style.css des Blocks,
	   dessen .hero-service { text-align: center; padding } sonst gewinnt
	   (live gemessen – die Überschrift stand mittig). */
	.hero-service.hero-service--szene {
		padding-block: 3.5rem;
		text-align: left;
	}

	.hero-service--szene .hero-service__inner {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, 31rem);
		align-items: center;
		gap: 4rem;
	}

	.hero-service--szene .hero-service__text {
		display: flex;
		flex-direction: column;
		align-items: flex-start;
	}

	.hero-service--szene .hero-service__list {
		flex-direction: column;
		align-items: flex-start;
	}

	.hsz-spalte {
		margin-top: 0;
	}
}

/* Echter Link unter der Szene: zum Termin, mittig unter dem Fenster. */
.hsz-cta,
.hsz-cta:hover,
.hsz-cta:focus-visible {
	display: block;
	margin-top: var(--wp--preset--spacing--sm);
	text-align: center;
	font-size: var(--wp--preset--font-size--sm);
	font-weight: 600;
	color: var(--wp--preset--color--accent);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 4px;
}

.hsz-cta:hover {
	text-decoration-thickness: 2px;
}

/* --- Szene ------------------------------------------------------------- */

.hsz {
	--hsz-dauer: 16s;
	--hsz-linie: color-mix(in srgb, var(--wp--preset--color--contrast-light) 9%, transparent);
	--hsz-flaeche: color-mix(in srgb, var(--wp--preset--color--contrast-light) 3%, transparent);
	--hsz-leise: color-mix(in srgb, var(--wp--preset--color--contrast-light) 58%, transparent);
	--hsz-gruen-flaeche: color-mix(in srgb, var(--wp--preset--color--accent) 6%, transparent);
	--hsz-gruen-linie: color-mix(in srgb, var(--wp--preset--color--accent) 24%, transparent);
	--hsz-rot: color-mix(in srgb, var(--wp--preset--color--negative) 75%, var(--wp--preset--color--contrast-light));
	font-size: var(--wp--preset--font-size--sm);
	line-height: var(--wp--custom--line-height--normal);
	color: var(--wp--preset--color--contrast-light);
}

/* :where = keine Spezifität, damit die Klassen unten gewinnen. */
:where(.hsz) p,
:where(.hsz) ul {
	margin: 0;
	padding: 0;
}

:where(.hsz) ul {
	list-style: none;
}

.hsz .hsz__kicker {
	margin-bottom: 0.75rem;
	font-size: 0.8125rem;
	letter-spacing: 0.04em;
	color: var(--hsz-leise);
}

/* Reiter: nur Anzeige, keine Knöpfe – die Geschichte läuft in ihrer
   Reihenfolge. Standard: Google leuchtet bei Bild 1–2, die KI-Reiter bei
   Bild 3; bei „KI zuerst“ umgekehrt. */
.hsz__reiter {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 2px;
	padding: 4px;
	border: 1px solid var(--hsz-linie);
	border-radius: var(--wp--custom--radius--sm);
	background: var(--hsz-flaeche);
}

.hsz__tab {
	position: relative;
	isolation: isolate;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 11px;
	border-radius: 9px;
	font-size: 0.8125rem;
	color: color-mix(in srgb, var(--wp--preset--color--contrast-light) 80%, transparent);
}

.hsz__tab::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--accent) 30%, transparent);
	border-radius: inherit;
	background: color-mix(in srgb, var(--wp--preset--color--accent) 12%, transparent);
	opacity: 0;
}

.hsz__tab--google::before,
.hsz--ki-zuerst .hsz__tab--ki::before {
	opacity: 1;
}

.hsz--ki-zuerst .hsz__tab--google::before {
	opacity: 0;
}

.hsz__symbol {
	flex-shrink: 0;
}

/* Fenster: alle Bilder liegen übereinander in einer Zelle, die Höhe richtet
   sich nach dem höchsten – nichts springt. */
.hsz__fenster {
	position: relative;
	isolation: isolate;
	margin-top: 1.5rem; /* Platz für die Plakette */
	padding: 1.75rem 1.25rem 1.25rem;
	border: 1px solid var(--hsz-linie);
	border-radius: var(--wp--custom--radius--md);
	background: var(--hsz-flaeche);
	box-shadow: var(--wp--custom--shadow--panel);
}

/* Stimmung des Fensters: ohne Northstar Media kühl-rötlich, mit Northstar
   Media grüner Rand und Leuchten. Zwei Schichten, nur die Deckkraft wechselt. */
.hsz__fenster::before,
.hsz__fenster::after {
	content: "";
	position: absolute;
	inset: -1px;
	z-index: -1;
	border-radius: inherit;
	pointer-events: none;
	opacity: 0;
}

.hsz__fenster::before {
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--negative) 40%, transparent);
	background: color-mix(in srgb, var(--wp--preset--color--negative) 5%, transparent);
}

.hsz__fenster::after {
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--accent) 50%, transparent);
	background: color-mix(in srgb, var(--wp--preset--color--accent) 4%, transparent);
	box-shadow: 0 24px 70px -20px color-mix(in srgb, var(--wp--preset--color--accent) 40%, transparent);
	opacity: 1;
}

/* Plakette auf dem oberen Fensterrand. Hintergründe deckend (mit der
   Seitenfarbe gemischt), damit die Randlinie nicht durchscheint. */
.hsz .hsz__phase {
	position: absolute;
	top: 0;
	left: 1.25rem;
	z-index: 2;
	display: grid;
	justify-items: start;
	transform: translateY(-50%);
}

.hsz__phase-text {
	grid-area: 1 / 1;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 11px;
	border: 1px solid;
	border-radius: var(--wp--custom--radius--pill);
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	white-space: nowrap;
}

.hsz__phase-text::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: currentColor;
}

.hsz__phase-text--ohne {
	border-color: color-mix(in srgb, var(--wp--preset--color--negative) 55%, transparent);
	background: color-mix(in srgb, var(--wp--preset--color--negative) 16%, var(--wp--preset--color--base-dark));
	color: var(--hsz-rot);
	opacity: 0;
}

.hsz__phase-text--mit {
	border-color: var(--wp--preset--color--accent);
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--base-dark);
}

/* minmax(0, 1fr) und min-width: 0: langer Text darf das Fenster nie breiter
   machen (live gemessen: eine lange Suche schob es am Handy 40 px hinaus). */
.hsz__buehne {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
}

.hsz__bild {
	grid-area: 1 / 1;
	min-width: 0;
	opacity: 0;
}

.hsz__bild--2 {
	opacity: 1;
}

/* Google */
.hsz__suche {
	display: flex;
	align-items: center;
	gap: 0.625rem;
	padding: 0.75rem 1rem;
	border: 1px solid var(--hsz-linie);
	border-radius: var(--wp--custom--radius--sm);
	background: var(--hsz-flaeche);
	font-size: var(--wp--preset--font-size--base);
}

.hsz__symbol--lupe {
	color: var(--hsz-leise);
}

.hsz__anfrage {
	display: inline-block;
	min-width: 0;
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.hsz__zwischen {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin: 1rem 0 0.625rem;
	font-weight: 600;
	font-size: 0.8125rem;
}

.hsz .hsz__zwischen--oben {
	margin-top: 0;
	margin-bottom: 0.875rem;
}

.hsz__zeilen,
.hsz__buchungen {
	display: grid;
	gap: 0.5rem;
}

.hsz__zeile {
	display: grid;
	gap: 2px;
	padding: 0.625rem 0.875rem;
	border: 1px solid var(--hsz-linie);
	border-radius: var(--wp--custom--radius--sm);
	background: var(--hsz-flaeche);
}

.hsz__art {
	font-size: 0.65625rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--hsz-leise);
}

.hsz__titel {
	font-weight: 600;
}

.hsz__meta {
	font-size: var(--wp--preset--font-size--xs);
	color: var(--hsz-leise);
}

.hsz__chip {
	display: inline-flex;
	justify-self: start;
	margin-top: 4px;
	padding: 1px 8px;
	border: 1px solid var(--hsz-linie);
	border-radius: var(--wp--custom--radius--pill);
	font-size: 0.6875rem;
	color: var(--hsz-leise);
}

/* Ohne: Konkurrenz blass */
.hsz__bild--ohne .hsz__text,
.hsz__bild--ohne .hsz__titel,
.hsz__blass {
	color: var(--hsz-leise);
}

/* Mit: deine Firma leuchtet */
.hsz__bild--google.hsz__bild--mit .hsz__zeile {
	border-color: var(--hsz-gruen-linie);
	background: var(--hsz-gruen-flaeche);
}

.hsz__marke {
	padding: 0 0.3em;
	border-radius: 4px;
	background: color-mix(in srgb, var(--wp--preset--color--accent) 18%, transparent);
	color: var(--wp--preset--color--accent);
	font-weight: 600;
}

.hsz__platz {
	display: inline-block;
	margin-left: 4px;
	padding: 0 6px;
	border-radius: var(--wp--custom--radius--pill);
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--base-dark);
	letter-spacing: 0;
}

/* ChatGPT */
.hsz__bild--ki {
	display: grid;
	align-content: start;
}

.hsz__kopf {
	display: flex;
	align-items: center;
	gap: 8px;
	padding-bottom: 0.75rem;
	margin-bottom: 1rem;
	border-bottom: 1px solid var(--hsz-linie);
}

.hsz__name {
	font-weight: 600;
}

.hsz__typ {
	margin-left: auto;
	font-size: 0.65625rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--hsz-leise);
}

.hsz .hsz__frage {
	justify-self: end;
	max-width: 85%;
	margin-bottom: 0.875rem;
	padding: 0.5rem 0.875rem;
	border-radius: 14px 14px 4px 14px;
	background: color-mix(in srgb, var(--wp--preset--color--contrast-light) 9%, transparent);
}

/* Die KI „tippt": drei Punkte in derselben Zelle wie die Antwort. */
.hsz__antwort-feld {
	display: grid;
}

.hsz__tippt,
.hsz__antwort {
	grid-area: 1 / 1;
}

/* Wie im echten Chat: kleine Blase mit Rahmen, bevor die Antwort kommt
   (gut eine Sekunde – kürzer ging sie unter, Elias 23.09.2026). */
.hsz__tippt {
	display: inline-flex;
	align-self: start;
	justify-self: start;
	gap: 5px;
	padding: 0.75rem 0.95rem;
	border: 1px solid var(--hsz-linie);
	border-radius: 999px;
	background: color-mix(in srgb, var(--wp--preset--color--contrast-light) 7%, transparent);
	opacity: 0;
}

.hsz__tippt i {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: color-mix(in srgb, var(--wp--preset--color--contrast-light) 75%, transparent);
}

.hsz__antwort p {
	margin-bottom: 0.625rem;
}

/* Visitenkarte in der KI-Antwort: aus der Empfehlung wird ein Termin. */
.hsz__karte {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 0.75rem;
	padding: 0.625rem 0.75rem;
	border: 1px solid var(--hsz-gruen-linie);
	border-radius: var(--wp--custom--radius--sm);
	background: var(--hsz-gruen-flaeche);
}

.hsz__kuerzel {
	display: grid;
	place-items: center;
	flex-shrink: 0;
	width: 2.25rem;
	height: 2.25rem;
	border-radius: var(--wp--custom--radius--pill);
	background: color-mix(in srgb, var(--wp--preset--color--accent) 18%, transparent);
	color: var(--wp--preset--color--accent);
	font-size: var(--wp--preset--font-size--xs);
	font-weight: 700;
}

.hsz__karte-text {
	display: grid;
	min-width: 0;
	line-height: var(--wp--custom--line-height--snug);
}

.hsz__karte-text span {
	font-size: var(--wp--preset--font-size--xs);
	color: var(--hsz-leise);
}

.hsz__knopf {
	margin-left: auto;
	flex-shrink: 0;
	padding: 0.375rem 0.75rem;
	border-radius: 8px;
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--base-dark);
	font-size: var(--wp--preset--font-size--xs);
	font-weight: 600;
}

.hsz__punkte {
	display: grid;
	gap: 6px;
}

.hsz__punkte li {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 0.8125rem;
}

.hsz__symbol--haken {
	color: var(--wp--preset--color--accent);
}

/* KI ohne Northstar Media: die Konkurrenz bekommt die Karte samt Knopf
   (grau – Grün gehört nur deiner Firma), du fehlst. */
.hsz .hsz__karte--fremd {
	border-color: var(--hsz-linie);
	background: var(--hsz-flaeche);
}

.hsz__karte--fremd .hsz__kuerzel {
	background: color-mix(in srgb, var(--wp--preset--color--contrast-light) 8%, transparent);
	color: var(--hsz-leise);
}

.hsz__karte--fremd .hsz__knopf {
	background: color-mix(in srgb, var(--wp--preset--color--contrast-light) 14%, transparent);
	color: var(--wp--preset--color--contrast-light);
}

.hsz .hsz__fehlt {
	display: inline-flex;
	padding: 3px 10px;
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--negative) 45%, transparent);
	border-radius: var(--wp--custom--radius--pill);
	background: color-mix(in srgb, var(--wp--preset--color--negative) 10%, transparent);
	color: var(--hsz-rot);
	font-size: var(--wp--preset--font-size--xs);
	font-weight: 600;
}

/* Ergebnis */
.hsz__buchung {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 0.75rem;
	padding: 0.75rem 0.875rem;
	border: 1px solid var(--hsz-gruen-linie);
	border-radius: var(--wp--custom--radius--sm);
	background: var(--hsz-gruen-flaeche);
	font-size: var(--wp--preset--font-size--xs);
	line-height: var(--wp--custom--line-height--snug);
	color: var(--hsz-leise);
}

.hsz__buchung .hsz__symbol--haken {
	box-sizing: content-box;
	padding: 6px;
	border-radius: var(--wp--custom--radius--pill);
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--base-dark);
}

.hsz__buchung strong {
	display: block;
	font-size: var(--wp--preset--font-size--sm);
	color: var(--wp--preset--color--contrast-light);
}

.hsz__zeit {
	font-weight: 600;
	color: var(--wp--preset--color--accent);
}

.hsz .hsz__summe {
	margin-top: 0.875rem;
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--wp--preset--color--accent);
}

/* Botschaft unter der Bühne – eine je Bild */
.hsz__fazit {
	display: grid;
	align-items: center;
	margin-top: 1rem;
	min-height: 3.25rem;
}

.hsz__fazit-text {
	grid-area: 1 / 1;
	text-align: center;
	font-weight: 600;
	opacity: 0;
}

.hsz .hsz__fazit-text--b1 {
	color: var(--hsz-rot);
}

.hsz .hsz__fazit-text--b2,
.hsz .hsz__fazit-text--b3 {
	color: var(--wp--preset--color--accent);
}

.hsz__fazit-text--b2 {
	opacity: 1;
}

.hsz .hsz__fazit-text--b4 {
	display: grid;
	padding-left: 0.875rem;
	border-left: 3px solid var(--wp--preset--color--accent);
	text-align: left;
	font-weight: 400;
}

.hsz__fazit-text--b4 strong {
	font-size: var(--wp--preset--font-size--heading);
	line-height: var(--wp--custom--line-height--tight);
}

.hsz__fazit-text--b4 span {
	font-size: var(--wp--preset--font-size--xs);
	color: var(--hsz-leise);
}

/* --- Handy (steht am Ende, damit es die Grundregeln oben überschreibt) --- */

/* Schmale Handys: fünf Reiter mit Namen passen nicht in eine Zeile – dort
   nur die (echten) Logos, gleichmäßig verteilt. */
@media (max-width: 520px) {
	.hsz__tab-name {
		display: none;
	}

	.hsz__tab {
		padding: 6px 10px;
	}

	.hsz__tab .hsz__symbol {
		width: 16px;
		height: 16px;
	}
}

@media (max-width: 767px) {
	/* Alle vier Reiter in einer Zeile (335 px). */
	.hsz__reiter {
		display: flex;
		flex-wrap: nowrap;
		justify-content: space-between;
	}

	.hsz__tab {
		gap: 5px;
		padding: 5px 7px;
		font-size: 0.75rem;
	}

	.hsz__fenster {
		padding: 1.5rem 1rem 1rem; /* oben Platz für die Plakette */
	}

	.hsz__suche {
		font-size: 0.9375rem;
	}

	.hsz__karte {
		gap: 0.625rem;
		padding: 0.5rem 0.625rem;
	}

	.hsz__knopf {
		padding: 0.3125rem 0.5rem;
		font-size: 0.6875rem;
	}
}

/* --- Ablauf ------------------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
	.hsz__bild--1 { animation: hsz-b1 var(--hsz-dauer) infinite both; }
	.hsz__bild--2 { animation: hsz-b2 var(--hsz-dauer) infinite both; }
	.hsz__bild--3 { animation: hsz-b3 var(--hsz-dauer) infinite both; }
	.hsz__bild--4 { animation: hsz-b4 var(--hsz-dauer) infinite both; }

	/* Kinder nutzen den Takt ihres Bildes, nur verzögert. */

	/* 1: kurz tippen, gleich die Treffer, dann die rote Botschaft */
	.hsz__anfrage--tippen { animation: hsz-tippen var(--hsz-dauer) steps(14, end) infinite both; }
	.hsz__bild--1 .hsz__zwischen { animation: hsz-b1 var(--hsz-dauer) 0.4s infinite both; }
	.hsz__bild--1 .hsz__zeile:nth-child(1) { animation: hsz-b1 var(--hsz-dauer) 0.5s infinite both; }
	.hsz__bild--1 .hsz__zeile:nth-child(2) { animation: hsz-b1 var(--hsz-dauer) 0.7s infinite both; }
	.hsz__bild--1 .hsz__zeile:nth-child(3) { animation: hsz-b1 var(--hsz-dauer) 0.9s infinite both; }

	/* Google mit (Bild 2, bei „KI zuerst“ Bild 3): Zeile für Zeile wird es
	   deine Firma, dann die #1 */
	.hsz__bild--2 .hsz__zeile:nth-child(1) { animation: hsz-b2 var(--hsz-dauer) 0.15s infinite both; }
	.hsz__bild--2 .hsz__zeile:nth-child(2) { animation: hsz-b2 var(--hsz-dauer) 0.35s infinite both; }
	.hsz__bild--2 .hsz__zeile:nth-child(3) { animation: hsz-b2 var(--hsz-dauer) 0.55s infinite both; }
	.hsz__bild--2 .hsz__platz { animation: hsz-b2 var(--hsz-dauer) 0.8s infinite both; }
	.hsz__bild--3 .hsz__zeile:nth-child(1) { animation: hsz-b3 var(--hsz-dauer) 0.15s infinite both; }
	.hsz__bild--3 .hsz__zeile:nth-child(2) { animation: hsz-b3 var(--hsz-dauer) 0.35s infinite both; }
	.hsz__bild--3 .hsz__zeile:nth-child(3) { animation: hsz-b3 var(--hsz-dauer) 0.55s infinite both; }
	.hsz__bild--3 .hsz__platz { animation: hsz-b3 var(--hsz-dauer) 0.8s infinite both; }

	/* KI (Bild 3, bei „KI zuerst“ Bild 1 und 2): tippt kurz, dann die Antwort */
	.hsz__bild--1 .hsz__tippt { animation: hsz-d1 var(--hsz-dauer) infinite both; }
	.hsz__bild--2 .hsz__tippt { animation: hsz-d2 var(--hsz-dauer) infinite both; }
	.hsz__bild--3 .hsz__tippt { animation: hsz-d3 var(--hsz-dauer) infinite both; }
	.hsz__bild--1 .hsz__antwort { animation: hsz-b1 var(--hsz-dauer) 1.1s infinite both; }
	.hsz__bild--2 .hsz__antwort { animation: hsz-b2 var(--hsz-dauer) 1.2s infinite both; }
	.hsz__bild--3 .hsz__antwort { animation: hsz-b3 var(--hsz-dauer) 1.3s infinite both; }
	.hsz__bild--1 .hsz__karte--fremd { animation: hsz-b1 var(--hsz-dauer) 1.4s infinite both; }
	.hsz__bild--1 .hsz__fehlt { animation: hsz-b1 var(--hsz-dauer) 1.8s infinite both; }
	.hsz__tippt i { animation: hsz-punkt 1.1s ease-in-out infinite; }
	.hsz__tippt i:nth-child(2) { animation-delay: 0.15s; }
	.hsz__tippt i:nth-child(3) { animation-delay: 0.3s; }

	/* 4: Buchungen trudeln ein */
	.hsz__bild--4 .hsz__buchung:nth-child(1) { animation: hsz-b4 var(--hsz-dauer) 0.3s infinite both; }
	.hsz__bild--4 .hsz__buchung:nth-child(2) { animation: hsz-b4 var(--hsz-dauer) 0.7s infinite both; }
	.hsz__bild--4 .hsz__buchung:nth-child(3) { animation: hsz-b4 var(--hsz-dauer) 1.1s infinite both; }
	.hsz__bild--4 .hsz__summe { animation: hsz-b4 var(--hsz-dauer) 1.6s infinite both; }

	/* ohne → mit: Plakette, Fenster-Stimmung */
	.hsz__phase-text--ohne,
	.hsz__fenster::before { animation: hsz-ohne var(--hsz-dauer) infinite both; }
	.hsz__phase-text--mit,
	.hsz__fenster::after { animation: hsz-mit var(--hsz-dauer) infinite both; }

	.hsz__tab--google::before,
	.hsz--ki-zuerst .hsz__tab--ki::before { animation: hsz-t-vorn var(--hsz-dauer) infinite both; }
	.hsz__tab--ki::before,
	.hsz--ki-zuerst .hsz__tab--google::before { animation: hsz-t-hinten var(--hsz-dauer) infinite both; }

	.hsz__fazit-text--b1 { animation: hsz-f1 var(--hsz-dauer) infinite both; }
	.hsz__fazit-text--b2 { animation: hsz-f2 var(--hsz-dauer) infinite both; }
	.hsz__fazit-text--b3 { animation: hsz-f3 var(--hsz-dauer) infinite both; }
	.hsz__fazit-text--b4 { animation: hsz-f4 var(--hsz-dauer) infinite both; }

	/* Zum Lesen: unter der Maus hält die Geschichte an (nur mit Maus). */
	@media (hover: hover) {
		.hsz:hover,
		.hsz:hover *,
		.hsz:hover *::before,
		.hsz:hover *::after {
			animation-play-state: paused;
		}
	}

	/* Das Licht atmet langsam (nur Deckkraft – kostet nichts). */
	.hero-service--szene::before,
	.hero-service--szene::after {
		animation: hsz-licht 7s ease-in-out infinite alternate;
	}
}

@keyframes hsz-b1 {
	0% { opacity: 0; transform: translateY(6px); }
	1.5%, 18% { opacity: 1; transform: none; }
	19.5%, 100% { opacity: 0; transform: translateY(-6px); }
}

@keyframes hsz-b2 {
	0%, 18.5% { opacity: 0; transform: translateY(6px); }
	20%, 45.5% { opacity: 1; transform: none; }
	47.5%, 100% { opacity: 0; transform: translateY(-6px); }
}

@keyframes hsz-b3 {
	0%, 46.5% { opacity: 0; transform: translateY(6px); }
	48.5%, 70.5% { opacity: 1; transform: none; }
	72.5%, 100% { opacity: 0; transform: translateY(-6px); }
}

@keyframes hsz-b4 {
	0%, 71.5% { opacity: 0; transform: translateY(6px); }
	73.5%, 97% { opacity: 1; transform: none; }
	99.5%, 100% { opacity: 0; transform: translateY(-6px); }
}

@keyframes hsz-tippen {
	0%, 0.5% { clip-path: inset(0 100% 0 0); }
	3.5%, 100% { clip-path: inset(0 0 0 0); }
}

@keyframes hsz-d1 {
	0%, 1.5% { opacity: 0; }
	2.5%, 6.5% { opacity: 1; }
	7.5%, 100% { opacity: 0; }
}

@keyframes hsz-d2 {
	0%, 19.5% { opacity: 0; }
	20.5%, 26% { opacity: 1; }
	27%, 100% { opacity: 0; }
}

@keyframes hsz-d3 {
	0%, 47.5% { opacity: 0; }
	48.5%, 55% { opacity: 1; }
	56%, 100% { opacity: 0; }
}

@keyframes hsz-punkt {
	0%, 60%, 100% { transform: none; }
	30% { transform: translateY(-3px); }
}

@keyframes hsz-ohne {
	0%, 18% { opacity: 1; }
	19.5%, 98% { opacity: 0; }
	99.5%, 100% { opacity: 1; }
}

@keyframes hsz-mit {
	0%, 18% { opacity: 0; }
	19.5%, 98% { opacity: 1; }
	99.5%, 100% { opacity: 0; }
}

@keyframes hsz-t-vorn {
	0%, 46% { opacity: 1; }
	48%, 98% { opacity: 0; }
	99.5%, 100% { opacity: 1; }
}

@keyframes hsz-t-hinten {
	0%, 46% { opacity: 0; }
	48%, 70.5% { opacity: 1; }
	72.5%, 100% { opacity: 0; }
}

@keyframes hsz-f1 {
	0%, 6% { opacity: 0; }
	7.5%, 18% { opacity: 1; }
	19.5%, 100% { opacity: 0; }
}

@keyframes hsz-f2 {
	0%, 20.5% { opacity: 0; }
	22.5%, 45.5% { opacity: 1; }
	47.5%, 100% { opacity: 0; }
}

@keyframes hsz-f3 {
	0%, 58% { opacity: 0; }
	60%, 70.5% { opacity: 1; }
	72.5%, 100% { opacity: 0; }
}

@keyframes hsz-f4 {
	0%, 82% { opacity: 0; transform: translateY(4px); }
	84%, 97% { opacity: 1; transform: none; }
	99.5%, 100% { opacity: 0; transform: none; }
}

@keyframes hsz-licht {
	from { opacity: 0.65; }
	to { opacity: 1; }
}
