/* Hero styles extracted from components.css. */

/* Canonical hero system: one shell, two content models.
   `sw-hero-copy` is the current homepage model.
   `sw-hero-home-2-card` / `is-style-sw-cover-panel` stays as the legacy glass-panel variant. */
:is(.is-style-sw-hero-home, .sw-hero-home, .is-style-sw-hero-home-2) {
	--sw-hero-min-height: 66svh;
	--sw-hero-shell-width: min(var(--wp--style--global--content-size, 53.75rem), calc(100vw - 2rem));
	--sw-hero-overlay:
		linear-gradient(100deg, rgba(20, 24, 18, 0.16) 0%, rgba(20, 24, 18, 0.05) 38%, rgba(20, 24, 18, 0) 70%),
		linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(33, 22, 15, 0.08)),
		radial-gradient(circle at 82% 18%, rgba(248, 200, 109, 0.14), transparent 16%),
		linear-gradient(124deg, transparent 0 72%, rgba(255, 243, 224, 0.16) 72% 77%, transparent 77% 100%);
	position: relative;
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	min-height: var(--sw-hero-min-height);
	border-radius: 0;
	overflow: hidden;
}

:is(.is-style-sw-hero-home, .sw-hero-home, .is-style-sw-hero-home-2)::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: var(--sw-hero-overlay);
	pointer-events: none;
}

:is(.is-style-sw-hero-home, .sw-hero-home, .is-style-sw-hero-home-2) .wp-block-cover__image-background {
	filter: saturate(1.06) contrast(1.02) brightness(1.02);
	animation: swHeroKenBurns 12s ease-out forwards;
	transform-origin: center center;
}

:is(.is-style-sw-hero-home, .sw-hero-home, .is-style-sw-hero-home-2) > .wp-block-cover__inner-container {
	position: relative;
	z-index: 2;
	min-height: var(--sw-hero-min-height);
	display: flex;
	align-items: flex-end;
}

.wp-block-cover:is(.is-style-sw-hero-home, .sw-hero-home, .is-style-sw-hero-home-2) > .wp-block-cover__inner-container > .is-style-sw-section-shell {
	width: var(--sw-hero-shell-width);
	margin-inline: auto;
	padding-top: 1rem;
	padding-bottom: 1.2rem;
	display: flex;
	justify-content: flex-start;
	flex-direction: row;
	align-items: flex-end;
	margin-bottom: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
}

:is(.is-style-sw-hero-home, .sw-hero-home, .is-style-sw-hero-home-2) :is(.sw-hero-home-2-card, .is-style-sw-cover-panel) {
	width: min(31rem, 100%);
	padding: clamp(0.9rem, 2vw, 1.08rem) clamp(1.15rem, 2.7vw, 1.42rem) clamp(0.96rem, 2.1vw, 1.12rem);
	border-radius: 24px;
	box-shadow: var(--sw-glass-warm-shadow);
	margin-left: 0;
	margin-right: auto;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	animation: swHeroCardIn 700ms ease-out both;
}

:is(.is-style-sw-hero-home, .sw-hero-home, .is-style-sw-hero-home-2) :is(.sw-hero-home-2-card, .is-style-sw-cover-panel) > :is(.is-style-sw-eyebrow, .sw-eyebrow, p.is-style-sw-eyebrow) {
	display: inline-flex;
	margin: 0 0 0.5rem;
	align-self: flex-start;
}

:is(.is-style-sw-hero-home, .sw-hero-home, .is-style-sw-hero-home-2) :is(.sw-hero-home-2-card, .is-style-sw-cover-panel) > :is(h1, .wp-block-heading) {
	width: min(18.5ch, 100%);
	margin: 0;
	line-height: 1.14;
	letter-spacing: 0;
	text-wrap: pretty;
	text-shadow: none;
	align-self: flex-start;
}

:is(.is-style-sw-hero-home, .sw-hero-home, .is-style-sw-hero-home-2) :is(.sw-hero-home-2-card, .is-style-sw-cover-panel) > :is(p:not(.is-style-sw-eyebrow):not(.has-text-align-center), .is-style-sw-lead) {
	max-width: 24rem;
	margin: 0.54rem 0 0;
	color: #4b3a33;
	align-self: flex-start;
}

:is(.is-style-sw-hero-home, .sw-hero-home, .is-style-sw-hero-home-2) :is(.sw-hero-home-2-card, .is-style-sw-cover-panel) > :is(.wp-block-buttons, .is-style-sw-button-row) {
	margin-top: 0.72rem;
	align-self: flex-start;
}

:is(.is-style-sw-hero-home, .sw-hero-home, .is-style-sw-hero-home-2) :is(.sw-hero-home-2-card, .is-style-sw-cover-panel) .wp-block-button.is-style-outline .wp-block-button__link {
	background: rgba(255, 248, 242, 0.28);
	border-width: 2px;
	border-color: rgba(180, 95, 66, 0.78);
	color: rgba(143, 72, 49, 0.98);
	box-shadow: none;
	font-weight: 700;
}

:is(.is-style-sw-hero-home, .sw-hero-home, .is-style-sw-hero-home-2) :is(.sw-hero-home-2-card, .is-style-sw-cover-panel) .wp-block-button.is-style-outline .wp-block-button__link:hover,
:is(.is-style-sw-hero-home, .sw-hero-home, .is-style-sw-hero-home-2) :is(.sw-hero-home-2-card, .is-style-sw-cover-panel) .wp-block-button.is-style-outline .wp-block-button__link:focus {
	background: rgba(255, 248, 242, 0.42);
	border-color: rgba(180, 95, 66, 0.92);
}

@keyframes swHeroKenBurns {
	from {
		transform: scale(1) translateY(0);
	}

	to {
		transform: scale(1.04) translateY(-0.5%);
	}
}

@keyframes swHeroCardIn {
	from {
		opacity: 0;
		transform: translateY(16px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (prefers-reduced-motion: reduce) {
	:is(.is-style-sw-hero-home, .sw-hero-home, .is-style-sw-hero-home-2) .wp-block-cover__image-background,
	:is(.is-style-sw-hero-home, .sw-hero-home, .is-style-sw-hero-home-2) :is(.sw-hero-home-2-card, .is-style-sw-cover-panel) {
		animation: none;
	}
}

.sw-hero-copy {
	max-width: min(1320px, calc(100vw - 4rem));
	padding-top: clamp(2.5rem, 6vw, 4.5rem);
	padding-bottom: clamp(2.5rem, 6vw, 4.5rem);
}

.sw-hero-title {
	max-width: 11.5ch;
	color: #fff;
	line-height: 0.98;
	letter-spacing: 0;
	text-wrap: balance;
	text-shadow:
		0 1px 2px rgba(20, 22, 18, 0.26),
		0 6px 18px rgba(20, 22, 18, 0.2),
		0 16px 34px rgba(32, 24, 18, 0.18);
}

.sw-hero-title mark[style*="background-color"],
.sw-hero-title mark {
	padding: 0.02em 0.18em 0.08em;
	border-radius: 0.34em;
	text-shadow:
		0 2px 3px rgba(17, 28, 21, 0.2),
		0 6px 20px rgba(17, 28, 21, 0.22);
}

.sw-hero-title mark.has-events-primary-background-color {
	background-color: rgba(216, 177, 74, 0.96) !important;
	color: rgba(31, 36, 31, 1) !important;
}

.sw-hero-title mark.has-brand-secondary-background-color {
	background-color: rgba(161, 75, 61, 0.96) !important;
	color: rgba(255, 255, 255, 1) !important;
}

.sw-hero-title mark.has-spielwelt-eucalyptus-background-color {
	background-color: rgba(111, 142, 115, 0.96) !important;
	color: rgba(31, 36, 31, 1) !important;
}


.sw-hero-lead {
	max-width: 31rem;
	color: rgba(255, 252, 247, 0.98);
	text-shadow:
		0 1px 2px rgba(20, 22, 18, 0.2),
		0 8px 20px rgba(32, 24, 18, 0.14);
}

.sw-start-anywhere {
	max-width: min(1160px, calc(100vw - 4rem));
}

@media (max-width: 700px) {
	:is(.is-style-sw-hero-home, .sw-hero-home, .is-style-sw-hero-home-2),
	:is(.is-style-sw-hero-home, .sw-hero-home, .is-style-sw-hero-home-2) > .wp-block-cover__inner-container {
		min-height: 66svh;
	}

	.wp-block-cover:is(.is-style-sw-hero-home, .sw-hero-home, .is-style-sw-hero-home-2) > .wp-block-cover__inner-container > .is-style-sw-section-shell {
		width: min(calc(100vw - 1.5rem), var(--wp--style--global--content-size, 53.75rem));
		padding-top: 0.9rem;
		padding-bottom: 0.9rem;
	}

	:is(.is-style-sw-hero-home, .sw-hero-home, .is-style-sw-hero-home-2) :is(.sw-hero-home-2-card, .is-style-sw-cover-panel) {
		width: min(20.5rem, 100%);
		padding: 0.86rem 0.98rem 0.94rem;
		border-radius: 20px;
	}

	:is(.is-style-sw-hero-home, .sw-hero-home, .is-style-sw-hero-home-2) :is(.sw-hero-home-2-card, .is-style-sw-cover-panel) > :is(h1, .wp-block-heading) {
		width: min(18.5ch, 100%);
		line-height: 1.16;
	}

	:is(.is-style-sw-hero-home, .sw-hero-home, .is-style-sw-hero-home-2) :is(.sw-hero-home-2-card, .is-style-sw-cover-panel) > :is(p:not(.is-style-sw-eyebrow):not(.has-text-align-center), .is-style-sw-lead) {
		margin-top: 0.4rem;
	}

	:is(.sw-hero-home-2-card, .is-style-sw-cover-panel) > :is(h1, .wp-block-heading) mark {
		padding: 0 0.04em 0.01em;
		margin-inline: 0.015em 0.03em;
		border-radius: 0.16em;
	}
}
