/* === Scroll-Animationen ===
 * Greift nur, wenn <html> die Klasse .nds-motion hat (setzt das Inline-Skript
 * im <head>, nicht bei „reduzierte Bewegung“). motion.js setzt .rv-in beim
 * Hereinscrollen und .rv-done nach der Animation – danach gelten wieder die
 * normalen Stile des Elements. Die Selektoren müssen zu motion.js passen.
 * Eigene Animationen (Tickets, Highlights, Slide-out) sind bewusst ausgenommen.
 */

.nds-motion{--rv-ease:cubic-bezier(.16,.84,.3,1)}

/* Einblenden von unten */
.nds-motion :is(
	.nds-hero .wrap > *,
	.shop-head .wrap > *,
	.block .head > *,
	.nds-recap > .nds-reel,
	.nds-subhead > *,
	.nds-slider,
	.nds-visit > *,
	.nds-faq details,
	.nds-foot p,
	.nds-foot nav,
	.tp-steps > *,
	.tp-facts > *
):not(.rv-done){
	opacity:0;
	transform:translate3d(0,32px,0);
	transition:opacity .9s var(--rv-ease) var(--rd,0s),transform 1.1s var(--rv-ease) var(--rd,0s);
}

/* Ticket-Zusammenfassung kommt von rechts */
.nds-motion .tp-sum:not(.rv-done){
	opacity:0;
	transform:translate3d(40px,0,0);
	transition:opacity .9s var(--rv-ease) var(--rd,0s),transform 1.2s var(--rv-ease) var(--rd,0s);
}

/* Gastgeber-Karten: Bild öffnet sich von unten, Foto zoomt leicht zurück */
.nds-motion .nds-hosts > .host:not(.rv-done){
	opacity:0;
	clip-path:inset(18% 0 0 0);
	transform:translate3d(0,48px,0);
	transition:opacity .8s var(--rv-ease) var(--rd,0s),clip-path 1.4s var(--rv-ease) var(--rd,0s),transform 1.4s var(--rv-ease) var(--rd,0s);
}
.nds-motion .nds-hosts > .host:not(.rv-done) img{
	transform:scale(1.12);
	transition:transform 2s var(--rv-ease) var(--rd,0s);
}

.nds-motion :is(
	.nds-hero .wrap > *,
	.shop-head .wrap > *,
	.block .head > *,
	.nds-recap > .nds-reel,
	.nds-subhead > *,
	.nds-slider,
	.nds-visit > *,
	.nds-faq details,
	.nds-foot p,
	.nds-foot nav,
	.tp-steps > *,
	.tp-facts > *,
	.tp-sum,
	.nds-hosts > .host
).rv-in:not(.rv-done){
	opacity:1;
	transform:none;
	clip-path:inset(0 0 0 0);
}
.nds-motion .nds-hosts > .host.rv-in:not(.rv-done) img{transform:none}

/* Monogramm-Trenner: Linien wachsen vom Monogramm nach außen */
.nds-motion .nds-divider:not(.rv-done) > span{
	transform:scaleX(0);
	transition:transform 1.4s var(--rv-ease) .15s;
}
.nds-motion .nds-divider:not(.rv-done) > span:first-child{transform-origin:right center}
.nds-motion .nds-divider:not(.rv-done) > span:last-child{transform-origin:left center}
.nds-motion .nds-divider:not(.rv-done) > svg{
	opacity:0;
	transform:scale(.8) rotate(-8deg);
	transition:opacity .8s var(--rv-ease),transform 1.2s var(--rv-ease);
}
.nds-motion .nds-divider.rv-in:not(.rv-done) > span,
.nds-motion .nds-divider.rv-in:not(.rv-done) > svg{opacity:1;transform:none}

/* === Hover (nur Geräte mit Maus, nicht bei „reduzierte Bewegung“) === */
@media (hover:hover) and (prefers-reduced-motion:no-preference){
	/* Buttons heben sich leicht an (Nav-Button hat seinen eigenen Lichtpunkt) */
	.nds .btn{transition:transform .35s cubic-bezier(.16,.84,.3,1),box-shadow .35s ease,background .25s,color .25s,border-color .25s}
	.nds :not(.nds-nav) > .btn:hover{transform:translateY(-2px);box-shadow:0 14px 28px -14px rgba(0,10,26,.6)}

	/* Gastgeber-Fotos zoomen langsam heran */
	.host-img img{transition:transform 1.4s cubic-bezier(.16,.84,.3,1)}
	.host:hover .host-img img{transform:scale(1.06)}

	/* Slideshow: etwas mehr Zoom, weicher */
	.nds-slides img{transition:filter .6s ease,transform 1.2s cubic-bezier(.16,.84,.3,1)}
	.nds-slides .slide:hover img{transform:scale(1.06)}

	/* Infokästen der Ticketseite */
	.tp-facts div{transition:transform .45s cubic-bezier(.16,.84,.3,1),box-shadow .45s ease,background .3s}
	.tp-facts div:hover{transform:translateY(-4px);background:#e6e8ec;box-shadow:0 18px 32px -22px rgba(0,23,54,.45)}

	/* FAQ-Frage rückt beim Überfahren leicht ein */
	.nds-faq summary{transition:padding-left .35s cubic-bezier(.16,.84,.3,1)}
	.nds-faq summary:hover{padding-left:8px}

	/* Kasse: Kaufen-Button */
	.nds-shop #place_order{transition:transform .35s cubic-bezier(.16,.84,.3,1),box-shadow .35s ease,background .25s}
	.nds-shop #place_order:not(:disabled):hover{transform:translateY(-2px);box-shadow:0 14px 28px -14px rgba(0,0,0,.6)}
}

/* === Zusätzliche Scroll-Animationen auf dem Handy (unter 900 px) ===
 * Ab 900 px haben Highlights und Preiskarte eigene Animationen. */
@media (max-width:899px){
	.nds-motion :is(.nds-tickets .nds-card,.nds-mono-band):not(.rv-done){
		opacity:0;
		transform:translate3d(0,40px,0);
		transition:opacity .9s var(--rv-ease) var(--rd,0s),transform 1.1s var(--rv-ease) var(--rd,0s);
	}
	.nds-motion :is(.nds-tickets .nds-card,.nds-mono-band).rv-in:not(.rv-done){opacity:1;transform:none}
	/* Highlights: Deckkraft steuert der Scroll-Zähler (aktiv hell, Rest gedimmt), hier nur die Bewegung */
	.nds-motion .nds-hl.is-live .nds-highlights li:not(.rv-done){transform:translate3d(0,40px,0);transition:opacity .6s ease,transform 1.1s var(--rv-ease) var(--rd,0s)}
	.nds-motion .nds-hl.is-live .nds-highlights li.rv-in:not(.rv-done){transform:none}
	/* Slideshow und Reel: Bild öffnet sich von unten */
	.nds-motion :is(.nds-slider,.nds-recap > .nds-reel):not(.rv-done){clip-path:inset(12% 0 0 0);transition:opacity .9s var(--rv-ease) var(--rd,0s),transform 1.1s var(--rv-ease) var(--rd,0s),clip-path 1.3s var(--rv-ease) var(--rd,0s)}
	.nds-motion :is(.nds-slider,.nds-recap > .nds-reel).rv-in:not(.rv-done){clip-path:inset(0 0 0 0)}
}

/* === Monogramm-Band unter dem Header: läuft ganz langsam durch ===
 * Beide Reihen nach links, eine Kachel (96 px) in 40 s. Bewegt wird die
 * Muster-Ebene per transform (läuft auf der Grafikkarte, ruckelt nicht). */
@media (prefers-reduced-motion:no-preference){
	.nds-mono-band:before{animation:nds-mono-drift 40s linear infinite;will-change:transform}
}
@keyframes nds-mono-drift{
	from{transform:translate3d(0,0,0)}
	to{transform:translate3d(-96px,0,0)}
}
