@property --service-orbit-turn {
	syntax: '<angle>';
	inherits: true;
	initial-value: 0deg;
}

.service-orbit {
	position: relative;
	isolation: isolate;
	padding: calc(var(--header-height) + 16px + clamp(14px, 3vw, 44px)) 12px clamp(28px, 4vw, 56px);
	min-height: 100svh;
	overflow: clip;
	background:
		radial-gradient(circle at 12% 37%, #ffffff5e 0 1px, transparent 2px),
		radial-gradient(circle at 88% 22%, #ffffff6c 0 1px, transparent 2px),
		radial-gradient(circle at 76% 82%, #ffffff73 0 1px, transparent 2px),
		radial-gradient(circle at 28% 77%, #ffffff70 0 1px, transparent 2px),
		radial-gradient(ellipse at 50% 65%, #4b3154 0%, #281d37 48%, #171422 90%);
	color: var(--pop-paper);
	text-align: center;
}

.service-orbit h1 {
	position: relative;
	z-index: 1;
	margin: 0;
	color: inherit;
	font: 400 clamp(44px, 10vw, 145px)/.94 var(--pop-font);
	letter-spacing: -.035em;
	text-transform: uppercase;
}

.service-orbit-stage {
	--orbit-x: 36cqw;
	--orbit-y: 30cqh;
	--orbit-tilt: -9deg;
	container-type: size;
	position: relative;
	inline-size: min(100%, 1060px);
	block-size: clamp(460px, 66vw, 650px);
	margin-inline: auto;
}

.service-orbit-path {
	position: absolute;
	inset: calc(50% - var(--orbit-y)) calc(50% - var(--orbit-x));
	rotate: var(--orbit-tilt);
	border: 2px solid #f8a4db2e;
	border-bottom-color: #f9a6dfb5;
	box-shadow: 0 9px 24px -12px #ee71e4b3, inset 0 -7px 22px -12px #e87eedb3;
	border-radius: 50%;
	pointer-events: none;
}

.service-orbit-path::after {
	position: absolute;
	inset: -10% -3%;
	border: 1px dashed color-mix(in srgb, var(--pop-paper) 25%, transparent);
	border-radius: inherit;
	content: '';
}

.service-orbit-rocket {
	position: absolute;
	z-index: 2;
	inset: 50% auto auto 50%;
	width: clamp(70px, min(19cqw, 23cqh), 170px);
	translate: -50% -50%;
	pointer-events: none;
}

.service-orbit-rocket-body {
	position: relative;
	rotate: var(--rocket-angle, 0deg);
	transition: rotate .36s var(--ease);
	filter: drop-shadow(0 8px 12px #24192280);
}

.service-orbit-rocket img {
	position: relative;
	width: 100%;
	height: auto;
}

.service-orbit-exhaust {
	position: absolute;
	top: 93%;
	left: 50%;
	width: 42%;
	height: 120%;
	translate: -50% 0;
	transform-origin: 50% 0;
	opacity: 0;
	background: radial-gradient(ellipse at 50% 7%, #fffce3 0 9%, #ffea85 21%, #ff8b42 36%, #f157b675 56%, transparent 74%);
	clip-path: polygon(2% 0, 98% 0, 79% 34%, 61% 65%, 50% 100%, 39% 65%, 21% 34%);
}

.is-launching .service-orbit-exhaust {
	animation: service-orbit-ignite .72s ease-out both;
}

@keyframes service-orbit-ignite {
	0%, 10% { opacity: 0; scale: .5 .08; }
	25% { opacity: 1; scale: 1.25 .8; }
	38% { opacity: .9; scale: .8 .65; }
	62% { opacity: 1; scale: 1 1.3; }
	85% { opacity: .9; scale: .85 1.1; }
	100% { opacity: 0; scale: .65 1.2; }
}

.service-orbit-planets {
	position: absolute;
	inset: 0;
	margin: 0;
	padding: 0;
	list-style: none;
	animation: service-orbit-drift 13s ease-in-out infinite alternate;
}

@keyframes service-orbit-drift {
	from { --service-orbit-turn: -18deg; }
	to { --service-orbit-turn: 12deg; }
}

.service-orbit-stage:focus-within .service-orbit-planets,
.service-orbit-planets:has(.service-orbit-planet:hover),
.service-orbit-stage.is-launching .service-orbit-planets {
	animation-play-state: paused;
}

.service-orbit-position {
	position: absolute;
	left: 50%;
	top: 50%;
	--phase: calc(var(--planet-angle) + var(--service-orbit-turn));
	--depth: calc(sin(var(--phase)));
	--x: calc(cos(var(--phase)) * var(--orbit-x));
	--y: calc(var(--depth) * var(--orbit-y));
	transform: translate(-50%, -50%) rotate(var(--orbit-tilt))
		translate(var(--x), var(--y)) rotate(calc(-1 * var(--orbit-tilt)))
		scale(calc(1 + .13 * var(--depth)));
}

.service-orbit-content { --planet-angle: -93deg; --planet-color: var(--blue); }
.service-orbit-social { --planet-angle: -18deg; --planet-color: var(--pink); }
.service-orbit-events { --planet-angle: 54deg; --planet-color: #b093d8; }
.service-orbit-web { --planet-angle: 126deg; --planet-color: #f3dd8c; }
.service-orbit-design { --planet-angle: 198deg; --planet-color: #f0b698; }

.service-orbit-planet {
	position: relative;
	display: grid;
	place-items: center;
	width: clamp(85px, min(25cqw, 31cqh), 218px);
	aspect-ratio: 1;
	padding: 0;
	border-radius: 50%;
	isolation: isolate;
	color: var(--pop-paper);
	font: 400 clamp(11px, min(3.2cqw, 4cqh), 24px)/1.08 var(--pop-font);
	overflow-wrap: anywhere;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
	transition: scale .25s var(--ease);
}

.service-orbit-planet:hover,
.service-orbit-planet:focus-visible {
	color: var(--pop-paper);
	scale: 1.055;
}

.service-orbit-planet:focus-visible {
	outline: 3px solid var(--pop-paper);
	outline-offset: 5px;
}

.service-orbit-planet img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
	filter: drop-shadow(0 10px 13px #110b20a6);
	z-index: -1;
}

.service-orbit-planet span {
	width: 85%;
	padding: .38em .4em;
	border-radius: .55em;
	background: #1a1426ed;
}

.service-orbit-zoom {
	position: fixed;
	inset: 0;
	z-index: 1200;
	pointer-events: none;
}

@media (max-width: 580px) {
	.service-orbit-stage {
		--orbit-x: 33cqw;
		--orbit-y: 32cqh;
		--orbit-tilt: -5deg;
		block-size: clamp(350px, 115vw, 445px);
	}
}

.motion-paused .service-orbit-planets {
	animation: none;
}

.motion-paused .service-orbit-rocket-body,
.motion-paused .service-orbit-planet {
	transition: none;
}

.motion-paused .service-orbit-planet:is(:hover, :focus-visible) {
	scale: 1;
}

@media (prefers-reduced-motion: reduce) {
	.service-orbit-planets { animation: none; }
	.service-orbit-rocket-body, .service-orbit-planet { transition: none; }
	.service-orbit-planet:hover, .service-orbit-planet:focus-visible { scale: 1; }
}

.motion-paused .service-orbit-exhaust { animation: none; }

@media (prefers-reduced-motion: reduce) {
	.service-orbit-exhaust { animation: none; }
}

/* The orbit page starts at the very top: the same dark background reaches behind the floating header. */
:root body.mamy-page-leistungen[class] main { margin-block-start: 0; padding-top: 0; }
@media (max-width: 760px) {
	.service-orbit { min-height: 0; padding-top: calc(var(--header-height) + 12px + 14px); }
}
