/* zwinker.link – Party-Bus „30 Plätze“. Keine Fremdserver, Ton nur auf Klick. */
.zlb {
	--esp: #1C1917; --creme: #FBF6EC; --gelb: #FFC83D; --sand: #E7DCC6; --pfirsich: #FFB38A; --orange: #FF8A3D;
	--takt: 484ms; /* 124 BPM */
	position: relative; width: 100%; max-width: 1180px; margin: 0 auto;
	color: var(--esp); font-family: Gabarito, system-ui, sans-serif;
	-webkit-user-select: none; user-select: none;
}
.zlb *, .zlb *::before, .zlb *::after { box-sizing: border-box; }

/* Landschaft */
.zlb-welt { position: relative; overflow: hidden; border-radius: 28px; background: var(--creme); padding-top: clamp(18px, 4vw, 40px); isolation: isolate; }
.zlb-huegel { position: absolute; left: 0; right: 0; bottom: 64px; height: 46%; z-index: -1; display: flex; width: 200%; animation: zlb-fahrt 38s linear infinite; }
.zlb-huegel svg { width: 50%; height: 100%; flex: none; }
.zlb-strasse { position: relative; height: clamp(42px, 7vw, 70px); background: var(--esp); margin-top: -2px; overflow: hidden; }
.zlb-strasse::before {
	content: ""; position: absolute; left: 0; top: 50%; width: 200%; height: 5px; margin-top: -2px;
	background: repeating-linear-gradient(90deg, var(--creme) 0 46px, transparent 46px 92px);
	animation: zlb-fahrt 1.1s linear infinite;
}
@keyframes zlb-fahrt { to { transform: translateX(-50%); } }

/* Bus */
.zlb-kamera { position: relative; }
.zlb-bus { position: relative; width: 94%; margin: 0 auto -1.2%; aspect-ratio: 1200 / 520; animation: zlb-federn 0.97s ease-in-out infinite; transform-origin: 50% 100%; }
.zlb-musik .zlb-bus { animation: none; }
.zlb-bus.zlb-wumms { animation: zlb-wumms var(--takt) cubic-bezier(.2, .8, .2, 1); }
@keyframes zlb-federn { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-0.6%) rotate(-0.15deg); } }
@keyframes zlb-wumms { 0% { transform: translateY(1.1%) scaleY(.985); } 40% { transform: translateY(-1.2%) rotate(-.3deg); } 100% { transform: none; } }
.zlb-bus > svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.zlb-rad { transform-box: fill-box; transform-origin: center; animation: zlb-drehen .55s linear infinite; }
@keyframes zlb-drehen { to { transform: rotate(360deg); } }
.zlb-licht { mix-blend-mode: screen; animation: zlb-licht 3.2s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: center; }
.zlb-licht:nth-of-type(2) { animation-duration: 2.3s; animation-delay: -1s; }
.zlb-licht:nth-of-type(3) { animation-duration: 2.8s; animation-delay: -2s; }
@keyframes zlb-licht { 0% { transform: translateX(-30%) scale(.8); opacity: .55; } 100% { transform: translateX(35%) scale(1.15); opacity: .95; } }
.zlb-kugel { transform-box: fill-box; transform-origin: 50% 0; animation: zlb-pendel 2.6s ease-in-out infinite alternate; }
.zlb-kegel { transform-box: view-box; transform-origin: 440px 150px; animation: zlb-kegel 5s ease-in-out infinite alternate; mix-blend-mode: screen; }
@keyframes zlb-kegel { from { transform: rotate(-14deg); } to { transform: rotate(14deg); } }
.zlb-flecken circle { animation: zlb-funkeln 1.3s steps(2) infinite; }
.zlb-flecken circle:nth-child(odd) { animation-delay: -.6s; }
@keyframes zlb-pendel { from { transform: rotate(-7deg); } to { transform: rotate(7deg); } }
.zlb-funkeln { animation: zlb-funkeln .9s steps(2) infinite; }
@keyframes zlb-funkeln { 50% { opacity: .25; } }
.zlb-rauch circle { transform-box: fill-box; transform-origin: center; animation: zlb-rauch 1.6s ease-out infinite; opacity: 0; }
.zlb-rauch circle:nth-child(2) { animation-delay: .53s; }
.zlb-rauch circle:nth-child(3) { animation-delay: 1.06s; }
@keyframes zlb-rauch { 0% { transform: translate(0, 0) scale(.4); opacity: .9; } 100% { transform: translate(-260%, -90%) scale(1.5); opacity: 0; } }

/* Fahrgäste */
.zlb-gaeste { position: absolute; inset: 0; pointer-events: none; }
.zlb-platz { position: absolute; will-change: transform; }
.zlb-pause *, .zlb-pause *::before, .zlb-pause *::after { animation-play-state: paused !important; }
.zlb-tanz { position: absolute; inset: 0; translate: 0 var(--y, 0); rotate: var(--r, -8deg); animation: zlb-tanzen var(--t, .97s) ease-in-out infinite; animation-delay: var(--d, 0s); transform-origin: 50% 100%; }
.zlb-musik .zlb-tanz { animation-duration: calc(var(--takt) * 2); }
@keyframes zlb-tanzen { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-14%) rotate(calc(var(--r, -8deg) * -1.6)); } }
.zlb-kopf { position: absolute; inset: 0; border-radius: 26%; background: var(--farbe, var(--gelb)); box-shadow: inset 0 -8% 0 rgb(28 25 23 / .1); }
.zlb-kopf svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.zlb-arme { position: absolute; left: 50%; bottom: 62%; width: 150%; height: 70%; margin-left: -75%; opacity: 0; transition: opacity .15s; }
.zlb-arme::before, .zlb-arme::after { content: ""; position: absolute; bottom: 0; width: 14%; height: 100%; border-radius: 99px; background: var(--esp); transform-origin: 50% 100%; }
.zlb-arme::before { left: 12%; transform: rotate(-24deg); }
.zlb-arme::after { right: 12%; transform: rotate(24deg); }
.zlb-platz.zlb-jubel .zlb-arme, .zlb-platz.zlb-arme-hoch .zlb-arme { opacity: 1; }
.zlb-arme-hoch .zlb-arme::before { transform: rotate(-34deg); }
.zlb-arme-hoch .zlb-arme::after { transform: rotate(34deg); }
.zlb-platz.zlb-jubel .zlb-tanz { animation-duration: .36s; }
/* ausgewählter Creator */
.zlb-bild { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; border: 3px solid var(--gelb); box-shadow: 0 0 0 2px var(--esp), 0 4px 10px rgb(0 0 0 / .35); background: var(--sand); }
.zlb-bild img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Beschriftung und Steuerung */
.zlb-leiste { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 20px; padding: 18px clamp(4px, 2vw, 16px) 0; }
.zlb-status { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: baseline; font-size: 17px; }
.zlb-status b { font-weight: 800; font-size: clamp(22px, 2.6vw, 28px); letter-spacing: -.03em; }
.zlb-status span { color: #57534E; }
.zlb-knoepfe { display: flex; flex-wrap: wrap; gap: 10px; }
.zlb-knopf {
	display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 22px;
	border-radius: 16px; border: 2px solid var(--esp); font: 800 17px/1 Gabarito, system-ui, sans-serif;
	text-decoration: none; cursor: pointer; transition: transform .15s ease, background-color .15s ease;
	background: transparent; color: var(--esp);
}
.zlb-knopf svg { width: 22px; height: 22px; flex: none; }
.zlb-knopf:hover { background: var(--sand); }
.zlb-knopf:focus-visible { outline: 3px solid var(--esp); outline-offset: 3px; }
.zlb-knopf.zlb-haupt { background: var(--esp); color: var(--creme); }
.zlb-knopf.zlb-haupt:hover { background: #2b2724; transform: translateY(-2px); }
.zlb-knopf[aria-pressed="true"] { background: var(--gelb); }
.zlb-knopf .zlb-welle { transform-box: fill-box; transform-origin: left center; }
.zlb-knopf[aria-pressed="true"] .zlb-welle { animation: zlb-welle var(--takt) ease-out infinite; }
@keyframes zlb-welle { 0% { opacity: .3; } 30% { opacity: 1; } 100% { opacity: .3; } }
/* Namensschilder unter dem Bus */
.zlb-crew { margin: 18px clamp(4px, 2vw, 16px) 0; }
.zlb-crew-titel { margin: 0 0 10px; font-weight: 800; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: #57534E; }
.zlb-schilder { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.zlb-schild {
	display: inline-flex; align-items: center; gap: 10px; padding: 5px 14px 5px 5px;
	background: #fff; color: var(--esp); text-decoration: none;
	border: 2px solid var(--esp); border-radius: 999px; box-shadow: 3px 3px 0 var(--esp);
	transition: transform .15s ease, box-shadow .15s ease;
}
.zlb-schild:hover { transform: translate(-2px, -2px) rotate(-1.5deg); box-shadow: 5px 5px 0 var(--esp); }
.zlb-schild:focus-visible { outline: 3px solid var(--esp); outline-offset: 3px; }
.zlb-schild-foto { width: 38px; height: 38px; flex: none; border-radius: 30%; border: 2px solid var(--esp); object-fit: cover; background: var(--gelb); display: block; }
.zlb-schild-foto svg { display: block; width: 100%; height: 100%; }
.zlb-schild-text { display: grid; line-height: 1.1; }
.zlb-schild-text small { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; opacity: .7; }
.zlb-schild-text b { font-size: 15px; font-weight: 800; }
.zlb-schild-vorne { background: var(--gelb); }
.zlb-schild-vorne .zlb-schild-foto { width: 46px; height: 46px; background: var(--creme); }
.zlb-schild-zahl { margin-left: 2px; padding: 3px 9px; border-radius: 999px; background: var(--esp); color: var(--gelb); font-weight: 800; font-size: 13px; }
@media (prefers-reduced-motion: reduce) { .zlb-schild { transition: none; } .zlb-schild:hover { transform: none; } }

@keyframes zlb-schwenk { 0%, 8% { transform: translateX(0); } 92%, 100% { transform: translateX(-50%); } }

/* Einfahrt beim ersten Erscheinen */
.zlb-wartet .zlb-bus { transform: translateX(-115%); animation: none; }
.zlb-einfahrt .zlb-bus { animation: zlb-einfahrt 1.6s cubic-bezier(.16, 1, .3, 1) both, zlb-federn .97s ease-in-out 1.6s infinite; }
@keyframes zlb-einfahrt { 0% { transform: translateX(-115%) rotate(1.5deg); } 70% { transform: translateX(2%) rotate(-1.2deg); } 100% { transform: none; } }

@media (max-width: 640px) {
	.zlb-welt { border-radius: 20px; padding-top: 12px; }
	/* Am Handy fährt ein großer Bus langsam durchs Bild, damit Gesichter erkennbar sind */
	.zlb-kamera { width: 200%; animation: zlb-schwenk 14s ease-in-out infinite alternate; }
	.zlb-bus { width: 100%; margin-bottom: -1%; }
	.zlb-strasse { height: 26px; }
	.zlb-strasse::before { height: 3px; margin-top: -1px; background: repeating-linear-gradient(90deg, var(--creme) 0 26px, transparent 26px 52px); }
	.zlb-huegel { bottom: 26px; }
	.zlb-knoepfe { width: 100%; }
	.zlb-knopf { flex: 1 1 auto; justify-content: center; }
}

@media (max-width: 640px) and (prefers-reduced-motion: reduce) {
	.zlb-kamera { width: 100%; transform: none; }
}

.zlb-oben .zlb-leiste { padding: 0 clamp(4px, 2vw, 16px) 16px; }

/* klein: ganzer Bus, kein Schwenk */
.zlb-klein .zlb-kamera { width: 100% !important; animation: none !important; transform: none !important; }
.zlb-klein .zlb-strasse { height: 26px; }
.zlb-klein .zlb-leiste { padding-top: 10px; }
.zlb-klein .zlb-status b { font-size: 20px; }
.zlb-klein .zlb-leiste { justify-content: flex-start; }

@media (prefers-reduced-motion: reduce) {
	.zlb *, .zlb *::before, .zlb *::after { animation: none !important; transition: none !important; }
}

/* Fahrerkabine */
.zlb-kabine .zlb-tanz { animation-duration: 1.9s; }
.zlb-bild-vorne { border-color: #FFC83D; box-shadow: 0 0 0 2px var(--esp), 0 0 0 5px #FFC83D; }
