.hero-home {
	--hero-home-pad: clamp(2.5rem, 0.7394rem + 7.5117vw, 7.5rem);
	--hero-home-stat-fs: clamp(1.625rem, 1.2261rem + 1.6901vw, 2.75rem);
	--hero-home-stat-lh: clamp(2.125rem, 1.7261rem + 1.6901vw, 3.25rem);

	position: relative;
	overflow: hidden;
	padding-top: var(--hero-home-pad);
	background: var(--neutral-50);
}

.hero-home.is-hidden-preview {
	opacity: 0.4;
}

.hero-home__ring {
	position: absolute;
	border: 2px solid;
	border-radius: 50%;
	pointer-events: none;
}

.hero-home__ring--yellow {
	/* Anchored to the hero bottom: the arc keeps its Figma place at 390 and
	   moves below the stats row while the hero gets wider (md). */
	bottom: calc(clamp(360px, 690px - (100vw - 390px) * 0.873, 690px) - 133.33vw);
	left: 30.77%;
	width: 133.33%;
	aspect-ratio: 1;
	border-color: var(--yellow);
	opacity: 0.6;
}

.hero-home__ring--red {
	bottom: calc(clamp(280px, 610px - (100vw - 390px) * 0.873, 610px) - 107.69vw);
	left: 48.72%;
	width: 107.69%;
	aspect-ratio: 1;
	border-color: var(--red);
	opacity: 0.25;
}

.hero-home__inner {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 20px;
}

.hero-home__overline {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 20px;
	color: var(--red-dark);
}

.hero-home__overline::before {
	content: "";
	width: 24px;
	height: 3px;
	border-radius: 2px;
	background: var(--red);
}

.hero-home__title {
	font-size: var(--fs-display);
	line-height: var(--lh-display);
	letter-spacing: clamp(-1.5px, calc(-0.8px - (100vw - 390px) * 0.000457), -0.8px);
}

.hero-home__text {
	margin-top: 20px;
	font-size: var(--fs-lead);
	line-height: var(--lh-lead);
}

.hero-home__buttons {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 12px;
	margin-top: 28px;
}

.hero-home__stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	margin: 36px 0 0;
	padding: 0;
	list-style: none;
}

.hero-home__stat {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.hero-home__stat-value {
	color: var(--neutral-900);
	font-size: var(--hero-home-stat-fs);
	line-height: var(--hero-home-stat-lh);
	font-weight: 700;
	letter-spacing: clamp(-0.8px, calc(-0.2px - (100vw - 390px) * 0.000392), -0.2px);
}

.hero-home__stat-label {
	font-size: var(--fs-body-s);
	line-height: var(--lh-body-s);
}

.hero-home__media {
	--hero-home-media: clamp(350px, 286.27px + 16.34vw, 600px);
	--hero-home-image: min(clamp(420px, 333.33px + 22.22vw, 760px), 120%);
	--hero-home-circle: min(clamp(300px, 233.73px + 16.99vw, 560px), 85.71%);
	--hero-home-circle-left: calc((100% - var(--hero-home-circle)) / 2 + clamp(5px, 1.176px + 0.9804vw, 20px));
	--hero-home-circle-bottom: clamp(-10px, -12.55px + 0.6536vw, 0px);

	position: relative;
	align-self: end;
	width: var(--hero-home-media);
	max-width: 100%;
	margin-inline: auto;
	transform-origin: 50% 100%;
}

.hero-home__media::before {
	content: "";
	position: absolute;
	bottom: var(--hero-home-circle-bottom);
	left: var(--hero-home-circle-left);
	width: var(--hero-home-circle);
	aspect-ratio: 1;
	border-radius: 50%;
	background: var(--yellow);
}

.hero-home__image {
	position: relative;
	display: block;
	width: var(--hero-home-image);
	max-width: none;
	height: auto;
	aspect-ratio: 800 / 618;
	margin-inline: calc((100% - var(--hero-home-image)) / 2);
}

@media (min-width: 576px) {
	.hero-home__buttons {
		flex-direction: row;
		align-items: flex-start;
	}

	.hero-home__stats {
		display: flex;
		gap: 48px;
	}
}

@media (min-width: 1024px) {
	.hero-home__ring--yellow {
		top: -13.54vw;
		right: -12.5%;
		bottom: auto;
		left: auto;
		width: 57.29%;
	}

	.hero-home__ring--red {
		top: -6.25vw;
		right: -8.33%;
		bottom: auto;
		left: auto;
		width: 46.88%;
	}

	.hero-home__inner {
		grid-template-columns: minmax(0, 760px) min(600px, 38vw);
		justify-content: space-between;
		align-items: end;
		gap: 40px;
	}

	.hero-home__content {
		padding-bottom: var(--hero-home-pad);
	}

	.hero-home__overline {
		gap: 12px;
		margin-bottom: 28px;
	}

	.hero-home__overline::before {
		width: 32px;
	}

	.hero-home__text {
		margin-top: 28px;
	}

	.hero-home__buttons {
		margin-top: 40px;
	}

	.hero-home__stats {
		margin-top: 68px;
	}

	.hero-home__media {
		--hero-home-image: 126.67%;
		--hero-home-circle: 93.33%;
		--hero-home-circle-left: 6.67%;
		--hero-home-circle-bottom: 0px;

		width: 100%;
		margin-inline: 0;
	}
}

/* Compact title (Figma 06 Initiativbewerbung): H1 60/68 instead of display 80/88. */
.hero-home--compact .hero-home__title {
	font-size: var(--fs-h1);
	line-height: var(--lh-h1);
	letter-spacing: var(--ls-h1);
}

@media (prefers-reduced-motion: no-preference) {
	.hero-home__media,
	.hero-home__media::before,
	.hero-home__image {
		transition: width 400ms var(--ease), margin 400ms var(--ease), left 400ms var(--ease), bottom 400ms var(--ease);
	}

	.hero-home__overline,
	.hero-home__title,
	.hero-home__text,
	.hero-home__buttons {
		animation: hero-home-rise 700ms var(--ease) both;
	}

	.hero-home__title { animation-delay: 150ms; }
	.hero-home__text { animation-delay: 300ms; }
	.hero-home__buttons { animation-delay: 450ms; }

	.hero-home__media {
		animation: hero-home-scale-in 900ms var(--ease) 1000ms both;
	}
}

@keyframes hero-home-rise {
	from {
		opacity: 0;
		transform: translateY(16px);
	}
}

@keyframes hero-home-scale-in {
	from {
		opacity: 0;
		transform: scale(0.96);
	}
}
