:root {
	--color-background: #f4f6f8;
	--color-surface: #fff;
	--color-surface-soft: #eef1f4;
	--color-text: #17212b;
	--color-muted: #5f6974;
	--color-accent: #d41920;
	--color-accent-dark: #98131a;
	--color-on-accent: #fff;
	--color-line: #dfe4e8;
	--font-body: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--font-heading: var(--font-body);
	--space-l: clamp(4.5rem, 8vw, 7.5rem);
	--content-width: 800px;
	--wide-width: 1240px;
	--header-height: 5.75rem;
	--radius-s: 0.65rem;
	--radius-m: 1.1rem;
	--shadow-soft: 0 0.5rem 2rem rgb(23 33 43 / 7%);
	--shadow-lift: 0 1.25rem 3.5rem rgb(23 33 43 / 13%);
}

::selection {
	background: color-mix(in srgb, var(--color-accent) 24%, white);
	color: var(--color-text);
}

body {
	background: var(--color-background);
	font-size: clamp(1rem, 0.97rem + 0.12vw, 1.075rem);
	line-height: 1.72;
	-webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
	letter-spacing: -0.035em;
}

.site-header {
	min-height: var(--header-height);
	background: rgb(255 255 255 / 95%);
	border-top: 3px solid var(--color-accent);
	border-bottom: 1px solid rgb(23 33 43 / 8%);
	box-shadow: 0 0.25rem 1.5rem rgb(23 33 43 / 5%);
}

.site-header__inner {
	gap: clamp(1rem, 2.5vw, 2.5rem);
}

.site-branding {
	flex: 0 0 auto;
}

.custom-logo {
	width: 7.5rem;
	max-height: none;
}

.site-menu__list {
	gap: clamp(0.5rem, 1.1vw, 1.05rem);
}

.site-menu__list a {
	position: relative;
	display: block;
	padding-block: 0.85rem;
	color: var(--color-text);
	font-size: clamp(0.68rem, 0.54rem + 0.2vw, 0.78rem);
	font-weight: 720;
	letter-spacing: 0.055em;
	line-height: 1.25;
	text-transform: uppercase;
}

.site-menu__list a::after {
	position: absolute;
	right: 0;
	bottom: 0.5rem;
	left: 0;
	height: 2px;
	background: var(--color-accent);
	border-radius: 999px;
	content: "";
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 180ms ease;
}

.site-menu__list a:hover::after,
.site-menu__list a:focus-visible::after {
	transform: scaleX(1);
}

.site-main {
	overflow: clip;
}

.section-hero {
	position: relative;
	isolation: isolate;
	min-height: clamp(25rem, 52vh, 34rem) !important;
	box-shadow: inset 0 -5rem 8rem rgb(0 0 0 / 12%);
}

#willkommen.section-hero {
	min-height: clamp(39rem, 82vh, 54rem) !important;
}

.section-hero .wp-block-cover__image-background {
	filter: saturate(0.82) contrast(1.06);
	transform: scale(1.015);
}

.section-hero .wp-block-cover__background {
	background: linear-gradient(90deg, rgb(12 19 25 / 88%) 0%, rgb(89 14 19 / 72%) 47%, rgb(12 19 25 / 24%) 100%) !important;
	opacity: 1 !important;
}

.section-hero .wp-block-cover__inner-container {
	display: flex;
	align-items: center;
	width: min(100% - 3rem, var(--wide-width));
	height: 100%;
}

.section-hero h1,
.section-hero h2 {
	position: relative;
	max-width: 13ch;
	margin: 0;
	padding-left: clamp(1rem, 2vw, 1.5rem);
	color: var(--color-on-accent) !important;
	font-size: clamp(2.5rem, 5.6vw, 5rem);
	font-weight: 720;
	letter-spacing: -0.055em;
	line-height: 1.02;
	text-shadow: 0 0.25rem 2rem rgb(0 0 0 / 32%);
}

.section-hero h1::before,
.section-hero h2::before {
	position: absolute;
	top: 0.08em;
	bottom: 0.04em;
	left: 0;
	width: 4px;
	background: var(--color-accent);
	border-radius: 999px;
	content: "";
}

.site-main > .wp-block-group.section {
	padding-block: var(--space-l);
}

#willkommen + .wp-block-group.section {
	background: linear-gradient(180deg, #eef1f4 0%, var(--color-background) 100%);
}

.feature-list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
	gap: clamp(1rem, 2vw, 1.5rem);
}

.feature-list > * {
	display: flex;
	min-height: 100%;
	flex-direction: column;
	padding: clamp(1.5rem, 2.5vw, 2.1rem);
	background: var(--color-surface);
	border: 1px solid var(--color-line);
	border-top: 3px solid var(--color-accent);
	border-radius: var(--radius-m);
	box-shadow: var(--shadow-soft);
	transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
	margin-block-start: 0 !important;
}

.feature-list > :nth-child(-n+4) {
	min-height: 16rem;
}

.feature-list > :nth-child(5) {
	display: grid;
	grid-column: 1 / -1;
	grid-template-columns: minmax(12rem, 0.75fr) minmax(0, 1.25fr);
	align-items: center;
	gap: clamp(1.5rem, 4vw, 3.5rem);
}

.feature-list > :nth-child(5) h3,
.feature-list > :nth-child(5) p {
	margin: 0;
}

.feature-list > :nth-child(n+6) {
	min-height: 9rem;
	justify-content: center;
	background: #17212b;
	border-color: #17212b;
	border-left: 4px solid var(--color-accent);
	border-top-width: 1px;
}

.feature-list > :nth-child(n+6) h3 {
	margin: 0;
	color: #fff;
	font-size: clamp(1.2rem, 1.08rem + 0.45vw, 1.5rem);
}

.feature-list > *:hover {
	border-color: color-mix(in srgb, var(--color-accent) 34%, var(--color-line));
	box-shadow: var(--shadow-lift);
	transform: translateY(-3px);
}

.feature-list h3 {
	margin: 0 0 0.8rem;
	color: var(--color-text);
	font-size: clamp(1.05rem, 1rem + 0.2vw, 1.2rem);
	font-weight: 720;
	letter-spacing: -0.025em;
}

.feature-list p {
	margin: 0;
	color: var(--color-muted);
}

.service-copy {
	background: var(--color-surface);
}

.service-copy > * {
	max-width: var(--content-width);
}

.service-copy h2,
.legal-copy h2,
.site-main > .wp-block-group.section > h2 {
	position: relative;
	margin-bottom: clamp(2rem, 4vw, 3.25rem);
	padding-bottom: 1rem;
	font-size: clamp(2rem, 4vw, 3.25rem);
	font-weight: 740;
}

.service-copy h2::after,
.legal-copy h2::after,
.site-main > .wp-block-group.section > h2::after {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 3.5rem;
	height: 3px;
	background: var(--color-accent);
	border-radius: 999px;
	content: "";
}

.service-copy p,
.legal-copy p {
	color: var(--color-muted);
}

.service-copy p:first-of-type {
	color: var(--color-text);
	font-size: clamp(1.1rem, 1.03rem + 0.3vw, 1.28rem);
	font-weight: 570;
}

.service-copy p + p {
	margin-top: 1.25rem;
}

.section--surface {
	background: var(--color-surface-soft);
}

.logo-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(0.8rem, 1.7vw, 1.25rem);
}

.logo-grid figure {
	display: grid;
	min-height: 8.5rem;
	place-items: center;
	padding: 1.4rem;
	margin: 0;
	background: var(--color-surface);
	border: 1px solid var(--color-line);
	border-radius: var(--radius-s);
	box-shadow: 0 0.25rem 1.25rem rgb(23 33 43 / 4%);
	transition: transform 180ms ease, box-shadow 180ms ease;
}

.logo-grid figure:hover {
	box-shadow: var(--shadow-soft);
	transform: translateY(-2px);
}

.logo-grid img {
	max-width: 9rem;
	max-height: 4.75rem;
	filter: grayscale(1);
	opacity: 0.76;
	transition: filter 180ms ease, opacity 180ms ease;
}

.logo-grid figure:hover img {
	filter: none;
	opacity: 1;
}

.location-list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
	gap: 0.8rem;
	padding: 0;
	margin: 0;
	list-style: none;
}

.location-list li {
	position: relative;
	padding: 1rem 1rem 1rem 2.6rem;
	background: var(--color-surface);
	border: 1px solid var(--color-line);
	border-radius: var(--radius-s);
	box-shadow: 0 0.25rem 1rem rgb(23 33 43 / 4%);
	font-weight: 650;
}

.location-list li::before {
	position: absolute;
	top: 50%;
	left: 1.1rem;
	width: 0.65rem;
	height: 0.65rem;
	background: var(--color-accent);
	border: 3px solid color-mix(in srgb, var(--color-accent) 22%, white);
	border-radius: 50%;
	content: "";
	transform: translateY(-50%);
}

.legal-copy {
	background: linear-gradient(135deg, #fff 0%, #f5f6f7 100%);
}

.legal-copy p {
	max-width: 42rem;
}

.legal-copy a {
	font-weight: 650;
}

.site-footer {
	position: relative;
	padding-block: 2.25rem;
	background: #111820;
	color: #fff;
}

.site-footer::before {
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	height: 3px;
	background: var(--color-accent);
	content: "";
}

.site-footer p {
	color: rgb(255 255 255 / 72%);
	font-size: 0.9rem;
}

@media (max-width: 1040px) {
	:root {
		--header-height: 5.25rem;
	}

	.site-header__inner {
		padding-block: 0.7rem;
	}

	.custom-logo {
		width: 6.5rem;
	}

	.site-menu {
		background: rgb(255 255 255 / 98%);
		border-radius: var(--radius-s);
	}

	.site-menu__list a {
		padding: 0.8rem 0.9rem;
		font-size: 0.78rem;
	}

	.site-menu__list a::after {
		display: none;
	}
}

@media (max-width: 760px) {
	:root {
		--space-l: 4.25rem;
	}

	.section-hero {
		min-height: 22rem !important;
	}

	#willkommen.section-hero {
		min-height: min(72svh, 42rem) !important;
	}

	.section-hero .wp-block-cover__inner-container {
		width: min(100% - 2rem, var(--wide-width));
	}

	.section-hero .wp-block-cover__background {
		background: linear-gradient(90deg, rgb(12 19 25 / 84%) 0%, rgb(89 14 19 / 68%) 68%, rgb(12 19 25 / 28%) 100%) !important;
	}

	.section-hero h1,
	.section-hero h2 {
		max-width: 10ch;
		font-size: clamp(2.35rem, 11vw, 3.75rem);
	}

	.feature-list {
		grid-template-columns: 1fr;
	}

	.feature-list > :nth-child(-n+4),
	.feature-list > :nth-child(5) {
		min-height: 0;
	}

	.feature-list > :nth-child(5) {
		display: flex;
		grid-column: auto;
		align-items: stretch;
		gap: 0;
	}

	.feature-list > :nth-child(5) h3 {
		margin-bottom: 0.8rem;
	}

	.logo-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.logo-grid figure {
		min-height: 7.25rem;
		padding: 1rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.feature-list > *,
	.logo-grid figure,
	.logo-grid img,
	.site-menu__list a::after {
		transition: none;
	}
}
