/* Dynamic wave hero and page motion system */
.hero--waves {
	background: #ecfdf5;
	isolation: isolate;
	min-height: clamp(420px, 54vw, 560px);
	max-height: none;
	--wave-parallax-x: 0px;
	--wave-parallax-y: 0px;
	--panel-parallax-x: 0px;
	--panel-parallax-y: 0px;
}

.hero--with-preview {
	min-height: 560px;
}

.hero--waves > .hero-bg-overlay {
	display: none;
}

.hero--waves .wave-hero-bg {
	position: absolute;
	inset: 0;
	z-index: 0;
	overflow: hidden;
	background: #ecfdf5;
}

.hero--waves .wave-hero-bg::after {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 2;
	background: linear-gradient(90deg, rgba(255, 255, 255, 0.82) 0%, rgba(255, 255, 255, 0.68) 42%, rgba(255, 255, 255, 0.35) 100%);
	pointer-events: none;
}

.wave-hero-bg__svg {
	position: absolute;
	inset: -3% -4%;
	width: 108%;
	height: 106%;
	display: block;
	transform: translate3d(var(--wave-parallax-x), var(--wave-parallax-y), 0);
	transition: transform 0.24s ease-out;
	will-change: transform;
}

.wave-hero-bg__shine {
	animation: wave-shine-drift 16s ease-in-out infinite alternate;
	transform-origin: center;
}

.wave-hero-bg__wave {
	transform-box: fill-box;
	transform-origin: center;
	will-change: transform;
}

.wave-hero-bg__wave--back {
	opacity: 0.58;
	animation: wave-float-back 14s ease-in-out infinite alternate;
}

.wave-hero-bg__wave--middle {
	opacity: 0.8;
	animation: wave-float-middle 11s ease-in-out infinite alternate;
}

.wave-hero-bg__wave--front {
	opacity: 0.66;
	animation: wave-float-front 8.5s ease-in-out infinite alternate;
}

.wave-hero-bg__line {
	fill: none;
	stroke: #fff;
	stroke-linecap: round;
	transform-box: fill-box;
	transform-origin: center;
	will-change: transform;
}

.wave-hero-bg__line--top {
	stroke-width: 3;
	stroke-opacity: 0.58;
	filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.55));
	animation: wave-line-top 9s ease-in-out infinite alternate;
}

.wave-hero-bg__line--bottom {
	stroke-width: 2;
	stroke-opacity: 0.42;
	animation: wave-line-bottom 12s ease-in-out infinite alternate;
}

.hero--waves > .container {
	position: relative;
	z-index: 3;
}

.hero--with-preview > .container {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(330px, 0.8fr);
	align-items: center;
	gap: clamp(28px, 5vw, 72px);
}

.hero--with-preview .hero-copy {
	min-width: 0;
}

.hero-copy {
	min-width: 0;
}

.hero--waves:not(.hero--with-preview) > .container {
	display: block;
	min-height: auto;
}

.hero--waves .badge {
	background: rgba(255, 255, 255, 0.72);
	backdrop-filter: blur(8px);
}

.hero--waves p {
	background: rgba(255, 255, 255, 0.84);
	box-shadow: 0 18px 45px rgba(5, 150, 105, 0.12);
	backdrop-filter: blur(8px);
}

.hero--waves .hero-cta {
	align-items: center;
}

.hero-app-cta {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 2px;
	color: #047857;
	font-weight: 700;
	text-decoration: none;
}

.hero-app-cta:hover,
.hero-app-cta:focus-visible {
	color: #065f46;
	text-decoration: underline;
	text-underline-offset: 4px;
}

.hero-product-panel {
	position: relative;
	justify-self: end;
	width: min(100%, 420px);
	border: 1px solid rgba(255, 255, 255, 0.76);
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.74);
	box-shadow: 0 28px 70px rgba(5, 150, 105, 0.2), 0 12px 26px rgba(15, 23, 42, 0.1);
	backdrop-filter: blur(18px);
	overflow: hidden;
	transform: translate3d(var(--panel-parallax-x), var(--panel-parallax-y), 0);
	animation: product-panel-float 8s ease-in-out infinite alternate;
	will-change: transform;
}

.hero-product-panel::before {
	content: '';
	position: absolute;
	inset: 0;
	background: radial-gradient(circle at 14% 0%, rgba(6, 182, 212, 0.2), transparent 28%), radial-gradient(circle at 90% 18%, rgba(5, 150, 105, 0.18), transparent 34%);
	pointer-events: none;
}

.hero-product-panel__topbar,
.hero-product-panel__body {
	position: relative;
	z-index: 1;
}

.hero-product-panel__topbar {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 14px 16px;
	border-bottom: 1px solid rgba(15, 23, 42, 0.08);
	background: rgba(255, 255, 255, 0.48);
}

.hero-product-panel__dot {
	width: 10px;
	height: 10px;
	border-radius: 999px;
	background: #10b981;
	box-shadow: 0 0 0 6px rgba(16, 185, 129, 0.14);
}

.hero-product-panel__title {
	font-weight: 700;
	color: #0f172a;
}

.hero-product-panel__status {
	margin-left: auto;
	padding: 3px 9px;
	border-radius: 999px;
	background: rgba(5, 150, 105, 0.12);
	color: #047857;
	font-size: 0.78rem;
	font-weight: 700;
}

.hero-product-panel__body {
	display: grid;
	gap: 14px;
	padding: 18px;
}

.hero-product-panel__summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
}

.hero-product-panel__eyebrow {
	display: block;
	margin-bottom: 3px;
	color: #047857;
	font-size: 0.78rem;
	font-weight: 700;
	text-transform: uppercase;
}

.hero-product-panel__summary strong {
	display: block;
	color: #0f172a;
	font-size: 1.05rem;
	line-height: 1.25;
}

.hero-product-panel__progress {
	display: grid;
	place-items: center;
	flex: 0 0 72px;
	width: 72px;
	height: 72px;
	border-radius: 50%;
	background: radial-gradient(circle closest-side, rgba(255, 255, 255, 0.96) 72%, transparent 73%), conic-gradient(#059669 0 72%, rgba(5, 150, 105, 0.14) 72% 100%);
	color: #047857;
	font-weight: 800;
	box-shadow: inset 0 0 0 1px rgba(5, 150, 105, 0.08);
}

.hero-product-panel__metrics {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 8px;
}

.hero-product-panel__metrics span {
	padding: 10px 8px;
	border: 1px solid rgba(5, 150, 105, 0.12);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.62);
	color: #475569;
	font-size: 0.78rem;
	line-height: 1.2;
	text-align: center;
}

.hero-product-panel__metrics strong {
	display: block;
	color: #0f172a;
	font-size: 1.1rem;
}

.hero-product-panel__tasks {
	display: grid;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.hero-product-panel__tasks li {
	display: grid;
	grid-template-columns: 14px 1fr auto;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.7);
	box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
	color: #1f2937;
	font-size: 0.9rem;
}

.hero-product-panel__tasks li:nth-child(2) {
	animation: task-pulse 2.8s ease-in-out infinite;
}

.task-state {
	width: 10px;
	height: 10px;
	border: 2px solid rgba(5, 150, 105, 0.35);
	border-radius: 50%;
}

.task-state--done {
	background: #059669;
	border-color: #059669;
}

.task-state--active {
	background: #06b6d4;
	border-color: #06b6d4;
	box-shadow: 0 0 0 5px rgba(6, 182, 212, 0.14);
}

.hero-product-panel__tasks em {
	color: #047857;
	font-size: 0.76rem;
	font-style: normal;
	font-weight: 700;
}

.hero-product-panel__ai {
	padding: 12px 14px;
	border: 1px solid rgba(6, 182, 212, 0.18);
	border-radius: 14px;
	background: linear-gradient(135deg, rgba(6, 182, 212, 0.12), rgba(167, 243, 208, 0.28));
}

.hero-product-panel__ai span {
	display: block;
	margin-bottom: 4px;
	color: #036672;
	font-size: 0.78rem;
	font-weight: 800;
	text-transform: uppercase;
}

.hero-product-panel__ai p {
	max-width: none;
	margin: 0;
	padding: 0;
	background: transparent;
	box-shadow: none;
	color: #164e63;
	font-size: 0.9rem;
	line-height: 1.35;
	text-shadow: none;
}

#produkt,
#typical-workflows,
#preis,
#kontakt,
#demo,
[data-loesungen="auto"],
main > section:not(.hero) {
	position: relative;
	overflow: hidden;
}

#produkt::before,
#preis::before,
[data-loesungen="auto"]::before {
	content: '';
	position: absolute;
	inset: 0 0 auto;
	height: 150px;
	background: linear-gradient(180deg, rgba(128, 240, 212, 0.24), rgba(255, 255, 255, 0));
	pointer-events: none;
}

#typical-workflows::before,
#kontakt::before,
main > section.section--alt::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(236, 253, 245, 0.82), rgba(255, 255, 255, 0.48) 52%, rgba(167, 243, 208, 0.2));
	pointer-events: none;
}

#typical-workflows::after,
#kontakt::after,
#demo::before,
main > section.section--alt::after {
	content: '';
	position: absolute;
	left: -6%;
	right: -6%;
	top: 22px;
	height: 76px;
	background: no-repeat center / 100% 100% url("data:image/svg+xml,%3Csvg viewBox='0 0 1600 120' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 72 C270 26 510 94 800 54 C1080 16 1310 74 1600 36' fill='none' stroke='%2306B6D4' stroke-opacity='.22' stroke-width='3'/%3E%3Cpath d='M0 96 C310 54 560 112 865 74 C1130 42 1350 100 1600 62' fill='none' stroke='%23059669' stroke-opacity='.16' stroke-width='2'/%3E%3C/svg%3E");
	pointer-events: none;
}

#demo::before {
	top: auto;
	bottom: 14px;
	opacity: 0.7;
	filter: brightness(1.6);
}

#produkt > .container,
#typical-workflows > .container,
#preis > .container,
#kontakt > .container,
#demo > .container,
[data-loesungen="auto"] > *,
main > section:not(.hero) > .container {
	position: relative;
	z-index: 1;
}

.hero--waves + #produkt {
	border-top: 1px solid rgba(5, 150, 105, 0.1);
}

#produkt .section-title,
#typical-workflows .section-title,
#preis .section-title,
#kontakt .section-title,
#demo .section-title,
[data-loesungen="auto"] .section-title,
main > section:not(.hero) .section-title {
	position: relative;
	display: inline-block;
}

#produkt .section-title::after,
#typical-workflows .section-title::after,
#preis .section-title::after,
#kontakt .section-title::after,
#demo .section-title::after,
[data-loesungen="auto"] .section-title::after,
main > section:not(.hero) .section-title::after {
	content: '';
	display: block;
	width: 72px;
	height: 3px;
	margin-top: 10px;
	border-radius: 999px;
	background: linear-gradient(90deg, #059669, #06b6d4, rgba(167, 243, 208, 0));
}

#demo .section-title::after {
	background: linear-gradient(90deg, rgba(255, 255, 255, 0.95), rgba(167, 243, 208, 0.72), rgba(255, 255, 255, 0));
}

#produkt .features-list-box {
	border-color: rgba(6, 182, 212, 0.18);
	background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(236, 253, 245, 0.54));
	box-shadow: 0 22px 55px rgba(5, 150, 105, 0.08), 0 1px 0 rgba(6, 182, 212, 0.16) inset;
}

#produkt .feature-item img {
	padding: 4px;
	border-radius: 10px;
	background: rgba(236, 253, 245, 0.88);
	box-shadow: 0 0 0 1px rgba(5, 150, 105, 0.08);
}

#typical-workflows .screen-card,
#preis .pricing-card,
#preis .pricing-custom,
[data-loesungen="auto"] .card-link,
[data-loesungen="auto"] article,
.cards > article,
.card-link,
.pricing-card,
.pricing-custom {
	border-color: rgba(6, 182, 212, 0.14);
	box-shadow: 0 18px 44px rgba(5, 150, 105, 0.08);
}

#typical-workflows .screen-card__image {
	background: linear-gradient(135deg, rgba(236, 253, 245, 0.9), rgba(207, 250, 234, 0.58));
}

#typical-workflows .screen-card:hover,
[data-loesungen="auto"] .card-link:hover,
[data-loesungen="auto"] article:hover,
.cards > article:hover,
.card-link:hover {
	box-shadow: 0 24px 60px rgba(5, 150, 105, 0.14), 0 0 0 1px rgba(6, 182, 212, 0.18);
}

#preis {
	background: linear-gradient(180deg, #fff 0%, rgba(236, 253, 245, 0.55) 50%, #fff 100%);
}

#kontakt {
	border-top: 1px solid rgba(5, 150, 105, 0.08);
	border-bottom: 1px solid rgba(5, 150, 105, 0.08);
}

#demo.section--cta {
	background: radial-gradient(720px 260px at 78% 20%, rgba(6, 182, 212, 0.32), transparent 64%), linear-gradient(135deg, #059669, #047857 72%);
}

.wave-reveal {
	opacity: 0;
	translate: 0 18px;
	filter: blur(3px);
	transition-property: opacity, translate, filter;
	transition-duration: 680ms;
	transition-timing-function: cubic-bezier(.22, 1, .36, 1);
	transition-delay: var(--reveal-delay, 0ms);
	will-change: opacity, translate, filter;
}

.wave-reveal.is-visible {
	opacity: 1;
	translate: 0 0;
	filter: blur(0);
}

.wave-reveal-reduced .wave-reveal {
	opacity: 1;
	translate: 0 0;
	filter: none;
	transition: none;
}

@keyframes wave-float-back {
	0% { transform: translate3d(-18px, 8px, 0) scaleX(1.02); }
	100% { transform: translate3d(18px, -18px, 0) scaleX(1.04); }
}

@keyframes wave-float-middle {
	0% { transform: translate3d(20px, -10px, 0) scaleX(1.03); }
	100% { transform: translate3d(-22px, 20px, 0) scaleX(1.06); }
}

@keyframes wave-float-front {
	0% { transform: translate3d(-26px, 14px, 0) scaleX(1.04); }
	100% { transform: translate3d(24px, -22px, 0) scaleX(1.08); }
}

@keyframes wave-line-top {
	0% { transform: translate3d(16px, 8px, 0); }
	100% { transform: translate3d(-18px, -16px, 0); }
}

@keyframes wave-line-bottom {
	0% { transform: translate3d(-12px, -6px, 0); }
	100% { transform: translate3d(20px, 14px, 0); }
}

@keyframes wave-shine-drift {
	0% { transform: translate3d(-20px, -8px, 0) scale(0.96); opacity: 0.75; }
	100% { transform: translate3d(28px, 18px, 0) scale(1.06); opacity: 1; }
}

@keyframes product-panel-float {
	0% { translate: 0 -7px; }
	100% { translate: 0 9px; }
}

@keyframes task-pulse {
	0%, 100% { box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04); }
	50% { box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.1); }
}

@media (prefers-reduced-motion: reduce) {
	.wave-hero-bg__shine,
	.wave-hero-bg__wave,
	.wave-hero-bg__line,
	.hero-product-panel,
	.hero-product-panel__tasks li:nth-child(2) {
		animation: none;
	}

	.wave-reveal {
		opacity: 1;
		translate: 0 0;
		filter: none;
		transition: none;
	}
}

@media (max-width: 1040px) {
	.hero--with-preview > .container {
		grid-template-columns: 1fr;
	}

	.hero-product-panel {
		justify-self: start;
		width: min(100%, 520px);
	}
}

@media (max-width: 700px) {
	.hero--waves {
		min-height: auto;
	}

	.hero--waves .wave-hero-bg::after {
		background: linear-gradient(180deg, rgba(255, 255, 255, 0.78) 0%, rgba(255, 255, 255, 0.58) 100%);
	}

	.hero-product-panel__metrics {
		grid-template-columns: 1fr;
	}
}
