/* Seitenfluss (Vorgabe Maher 12.11.2026): Triebwerksstrahlen der Header-Raketen, Scroll-Anzeige mit Mini-Rakete,
   schlichter Hintergrund für "Idee rein. Marke raus. Wirkung an.", Footer ohne Raketen. */

/* ---- Header: the two rockets pull the pill apart, now with a flickering engine beam ---- */
.mx-rocket::after {
	position: absolute;
	top: 40.5%;
	left: 50%;
	width: 40%;
	height: 62%;
	translate: -50% 0;
	transform-origin: 50% 0;
	border-radius: 50% 50% 45% 45% / 12% 12% 88% 88%;
	background: radial-gradient(ellipse at 50% 4%, #fffce3 0 10%, #ffea85 22%, #ff8b42 40%, #f157b680 60%, transparent 76%);
	clip-path: polygon(4% 0, 96% 0, 80% 34%, 62% 66%, 50% 100%, 38% 66%, 20% 34%);
	content: "";
	animation: mx-beam 0.16s ease-in-out infinite alternate;
	transition: scale 0.45s cubic-bezier(.4, 0, .2, 1), opacity 0.35s ease-out;
}

/* Once the pill is fully pulled apart the engines cut out: the beam shrinks back into the nozzle. */
.site-header.pop-header:not(.mx-compact) .mx-rocket::after {
	scale: 0.7 0;
	opacity: 0;
	animation-play-state: paused;
}

@keyframes mx-beam {
	from { transform: scale(0.9, 0.82); filter: brightness(0.92); }
	to { transform: scale(1.06, 1.08); filter: brightness(1.08); }
}

/* ---- Scroll indicator: a mini rocket flies along a line on the right ---- */
.mx-scroll-rocket {
	position: fixed;
	z-index: 40;
	top: calc(var(--header-height, 72px) + var(--wp-admin--admin-bar--height, 0px) + 40px);
	bottom: 40px;
	right: 14px;
	width: 26px;
	pointer-events: none;
}

.mx-scroll-rocket::before {
	position: absolute;
	inset: 0 auto 0 50%;
	width: 2px;
	translate: -50% 0;
	border-radius: 2px;
	background: repeating-linear-gradient(to bottom, #36babe 0 7px, transparent 7px 13px);
	opacity: 0.75;
	content: "";
}

.mx-scroll-rocket-track {
	position: absolute;
	inset: 0 auto auto 50%;
	width: 2px;
	height: calc(var(--mx-progress, 0) * 100%);
	translate: -50% 0;
	border-radius: 2px;
	background: linear-gradient(#ec6da6, #36babe);
}

.mx-scroll-rocket-ship {
	position: absolute;
	top: calc(var(--mx-progress, 0) * 100%);
	left: 50%;
	width: 26px;
	translate: -50% -50%;
	rotate: var(--mx-heading, 180deg);
	transition: rotate 0.35s cubic-bezier(.3, 1.4, .5, 1);
	filter: drop-shadow(0 2px 3px #24192266);
}

.mx-scroll-rocket-ship img {
	position: relative;
	display: block;
	width: 100%;
	height: auto;
}

.mx-scroll-rocket-ship::after {
	position: absolute;
	top: 92%;
	left: 50%;
	width: 46%;
	height: 160%;
	translate: -50% 0;
	transform-origin: 50% 0;
	background: radial-gradient(ellipse at 50% 5%, #fffce3 0 10%, #ffea85 24%, #ff8b42 42%, #f157b670 62%, transparent 78%);
	clip-path: polygon(4% 0, 96% 0, 80% 34%, 62% 66%, 50% 100%, 38% 66%, 20% 34%);
	opacity: 0;
	scale: 0.6 0.05;
	transition: opacity 0.45s ease-out, scale 0.55s cubic-bezier(.4, 0, .2, 1);
	content: "";
	z-index: -1;
}

.mx-scroll-rocket.is-thrusting .mx-scroll-rocket-ship::after {
	opacity: 1;
	scale: 1 1;
	transition: opacity 0.08s ease-out, scale 0.14s ease-out;
	animation: mx-beam 0.12s ease-in-out infinite alternate;
}

@media (max-width: 760px) {
	.mx-scroll-rocket { right: 6px; width: 18px; bottom: 24px; }
	.mx-scroll-rocket-ship { width: 18px; }
}

.motion-paused .mx-rocket::after,
.motion-paused .mx-scroll-rocket.is-thrusting .mx-scroll-rocket-ship::after { animation: none; }

@media (prefers-reduced-motion: reduce) {
	.mx-rocket::after { animation: none; }
	.mx-scroll-rocket-ship { transition: none; }
	.mx-scroll-rocket .mx-scroll-rocket-ship::after { display: none; }
}

/* ---- "Idee rein. Marke raus. Wirkung an." on a calm, plain background ---- */
.pop-manifesto .pop-rocket-pattern { display: none; }

.pop-manifesto {
	background: radial-gradient(ellipse 80% 70% at 50% 45%, #45c3c6 0%, var(--blue, #36babe) 60%, #2fa7ab 100%);
}

/* ---- Footer without the rocket illustration ---- */
body .site-footer.pop-footer {
	min-height: 0;
	padding-bottom: 70px;
}

.pop-footer-art { display: none; }

/* Home page: the right header rocket becomes the scroll indicator (mx-scroll-rocket.js) */
.mx-scroll-rocket .mx-scroll-rocket-ship { transition: rotate 0.35s cubic-bezier(.3, 1.4, .5, 1), opacity .2s; }
.mx-scroll-rocket.is-waiting .mx-scroll-rocket-ship { opacity: 0; }
.mx-rocket.is-gone { visibility: hidden; }
.mx-rocket-fly { position: fixed; left: 0; top: 0; z-index: 60; width: 54px; pointer-events: none; transform-origin: 50% 50%; filter: drop-shadow(0 3px 4px #24192266); }
.mx-rocket-fly img { display: block; width: 100%; height: auto; }
.mx-rocket-fly::after { content: ""; position: absolute; top: 92%; left: 50%; width: 46%; height: 70%; translate: -50% 0; background: radial-gradient(ellipse at 50% 5%, #fffce3 0 10%, #ffea85 24%, #ff8b42 42%, #f157b670 62%, transparent 78%); clip-path: polygon(4% 0, 96% 0, 80% 34%, 62% 66%, 50% 100%, 38% 66%, 20% 34%); animation: mx-beam 0.12s ease-in-out infinite alternate; }
