/* ============================================================
   BEK Gutachter — Theme styles
   ============================================================ */

:root {
	--bek-header-h: 88px; /* JS overrides with the actual measured height on load + resize */
	--bek-abyss: #050b19;
	--bek-ink: #0a1428;
	--bek-navy-deep: #0a1f3d;
	--bek-navy: #0f2a50;
	--bek-navy-raised: #13345e;
	--bek-blue: #1e73e8;
	--bek-blue-soft: #3e8ff0;
	--bek-cyan: #00c2ff;
	--bek-muted: #9aa7bd;
	--bek-text: #e8edf6;
	--bek-border: rgba(255, 255, 255, 0.08);
	--bek-border-strong: rgba(255, 255, 255, 0.14);
	--bek-shadow-lg: 0 30px 80px -20px rgba(0, 0, 0, 0.55);
	--bek-radius: 18px;
	--bek-radius-lg: 24px;
	--bek-ease: cubic-bezier(0.22, 1, 0.36, 1);
	color-scheme: dark;
}

/* ------------------------------------------------------------
   Base
   ------------------------------------------------------------ */

html { scroll-behavior: smooth; background: var(--bek-ink); }

/* Anchor scroll offset — keep section headings clear of the sticky header */
[id] { scroll-margin-top: calc(var(--bek-header-h) + 1.5rem); }

body {
	background: var(--bek-ink);
	color: var(--bek-text);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	position: relative;
}

/* Fixed ambient backdrop — sits behind ALL content and never scrolls.
   Because content scrolls over it, the orbs read as parallax. */
body::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: 0;
	background:
		radial-gradient(40vw 40vw at 12% 18%, rgba(30, 115, 232, 0.18) 0%, transparent 60%),
		radial-gradient(48vw 48vw at 88% 72%, rgba(0, 194, 255, 0.10) 0%, transparent 65%),
		radial-gradient(30vw 30vw at 60% 95%, rgba(62, 143, 240, 0.10) 0%, transparent 60%),
		linear-gradient(180deg, #060c1c 0%, var(--bek-ink) 50%, #07101f 100%);
	pointer-events: none;
	will-change: transform;
	animation: bekDrift 28s ease-in-out infinite alternate;
}
@keyframes bekDrift {
	from { transform: translate3d(-2%, -1%, 0) scale(1.05); }
	to   { transform: translate3d( 2%,  1%, 0) scale(1.1); }
}

/* All real content sits above the ambient layer */
.wp-site-blocks { position: relative; z-index: 1; }

.wp-site-blocks > * + * { margin-block-start: 0; }

.has-panel-background-color {
	background-color: rgba(255, 255, 255, 0.04) !important;
	border: 1px solid var(--bek-border);
	backdrop-filter: blur(8px);
}

.has-muted-color { color: var(--bek-muted) !important; }

hr.wp-block-separator { border-color: var(--bek-border); opacity: 1; }

/* ------------------------------------------------------------
   Layout safety nets
   ------------------------------------------------------------ */

main.wp-block-group { padding: 0 !important; }
.entry-content.wp-block-post-content { max-width: none !important; }
.bek-section.has-global-padding,
.bek-hero.has-global-padding {
	padding-left: clamp(1.25rem, 4vw, 3rem) !important;
	padding-right: clamp(1.25rem, 4vw, 3rem) !important;
}

/* ------------------------------------------------------------
   Sticky translucent header + nav + hamburger
   ------------------------------------------------------------ */

.wp-site-blocks > header { position: sticky; top: 0; z-index: 100; }

.bek-header-shell {
	background: rgba(6, 12, 26, 0.78);
	backdrop-filter: blur(14px) saturate(140%);
	-webkit-backdrop-filter: blur(14px) saturate(140%);
	border-bottom: 1px solid var(--bek-border);
}

.bek-mainnav {
	display: flex;
	gap: 1.75rem;
	flex-wrap: wrap;
	align-items: center;
	font-family: Montserrat, system-ui, sans-serif;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	font-size: 0.82rem;
}
.bek-mainnav a {
	color: #fff;
	text-decoration: none;
	position: relative;
	transition: color 0.2s var(--bek-ease);
}
.bek-mainnav a::after {
	content: "";
	position: absolute;
	left: 0; right: 0; bottom: -6px;
	height: 2px;
	background: linear-gradient(90deg, var(--bek-blue), var(--bek-cyan));
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.3s var(--bek-ease);
}
.bek-mainnav a:hover { color: var(--bek-cyan); }
.bek-mainnav a:hover::after { transform: scaleX(1); }

.bek-mainnav__cta {
	background: linear-gradient(135deg, var(--bek-blue), var(--bek-cyan));
	padding: 0.55rem 1.1rem;
	border-radius: 999px;
	font-weight: 700;
	letter-spacing: 0.06em;
	box-shadow: 0 6px 16px -6px rgba(30, 115, 232, 0.5);
}
.bek-mainnav__cta::after { display: none !important; }
.bek-mainnav__cta:hover { color: #fff !important; transform: translateY(-1px); }

/* Hamburger button — hidden on desktop, visible on mobile */
.bek-nav-toggle {
	display: none;
	background: transparent;
	border: 0;
	width: 44px;
	height: 44px;
	padding: 0;
	cursor: pointer;
	position: relative;
	z-index: 102;
	margin-left: auto;
}
.bek-nav-toggle span {
	display: block;
	width: 26px;
	height: 2px;
	background: #fff;
	margin: 6px auto;
	border-radius: 2px;
	transition: transform 0.3s var(--bek-ease), opacity 0.2s;
}
.bek-nav-toggle.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.bek-nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.bek-nav-toggle.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

body.bek-no-scroll { overflow: hidden; }

@media (max-width: 900px) {
	.bek-nav-toggle { display: block; }

	/* backdrop-filter on the header creates a containing block for fixed
	   descendants — kill it on mobile so the .bek-mainnav overlay escapes
	   to the viewport */
	.bek-header-shell {
		backdrop-filter: none;
		-webkit-backdrop-filter: none;
		background: rgba(6, 12, 26, 0.92);
	}

	.bek-mainnav {
		position: fixed;
		inset: 0;
		flex-direction: column;
		justify-content: center;
		align-items: center;
		gap: 1.75rem;
		font-size: 1.15rem;
		padding: 5rem 2rem 3rem;
		background: rgba(5, 11, 24, 0.97);
		backdrop-filter: blur(20px);
		-webkit-backdrop-filter: blur(20px);
		transform: translateX(100%);
		opacity: 0;
		transition: transform 0.4s var(--bek-ease), opacity 0.3s;
		z-index: 101;
		overflow-y: auto;
	}
	.bek-mainnav.is-open {
		transform: translateX(0);
		opacity: 1;
	}
	.bek-mainnav a::after { display: none; }
	.bek-mainnav__cta {
		margin-top: 1rem;
		padding: 0.85rem 1.8rem;
		font-size: 0.95rem;
	}
}

/* ------------------------------------------------------------
   Hero — pinned to viewport, smooth GPU road animation
   ------------------------------------------------------------ */

.bek-hero {
	position: relative;
	overflow: hidden;
	width: 100%;
	height: calc(100vh - var(--bek-header-h));
	height: calc(100dvh - var(--bek-header-h));
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	isolation: isolate;
	padding: 0;
}

.bek-hero__scene {
	position: absolute;
	inset: 0;
	z-index: 0;
	background:
		radial-gradient(60% 50% at 50% 110%, #0a3a72 0%, transparent 60%),
		radial-gradient(40% 30% at 50% 40%, rgba(30, 115, 232, 0.18) 0%, transparent 70%),
		linear-gradient(180deg, #02060f 0%, #050d20 40%, #08183a 75%, #0a2554 100%);
}

.bek-hero__video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0;
	transition: opacity 0.8s var(--bek-ease);
}
.bek-hero__video[src]:not([src=""]) { opacity: 1; }

/* The road plate — perspective-receding lanes (static asphalt + outer edges) */
.bek-hero__road {
	position: absolute;
	left: 50%;
	bottom: -10%;
	width: 280%;
	height: 70%;
	transform: translateX(-50%) perspective(700px) rotateX(62deg);
	transform-origin: 50% 0%;
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.55)),
		linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.55)),
		radial-gradient(80% 100% at 50% 100%, #0b1c38 0%, #050a17 70%);
	background-size:
		3px 100%,
		3px 100%,
		100% 100%;
	background-position:
		calc(50% - 220px) 0,
		calc(50% + 220px) 0,
		0 0;
	background-repeat: no-repeat;
	mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 80%, transparent 100%);
	-webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 80%, transparent 100%);
	overflow: hidden;
}

/* Dashed center line — separate layer, GPU-composited transform animation, no jitter */
.bek-hero__stripes {
	position: absolute;
	left: 50%;
	top: -50%;
	width: 8px;
	height: 200%;
	transform: translate3d(-50%, 0, 0);
	background-image: linear-gradient(
		180deg,
		rgba(255, 255, 255, 0.92) 0,
		rgba(255, 255, 255, 0.92) 60px,
		transparent 60px,
		transparent 180px
	);
	background-size: 100% 180px;
	background-repeat: repeat-y;
	will-change: transform;
	animation: bekStripes 1.6s linear infinite;
	filter: blur(0.4px);
}
@keyframes bekStripes {
	from { transform: translate3d(-50%, 0, 0); }
	to   { transform: translate3d(-50%, 180px, 0); }
}

/* Distant horizon glow */
.bek-hero__horizon {
	position: absolute;
	left: 0; right: 0;
	top: 42%;
	height: 220px;
	background:
		radial-gradient(50% 80% at 50% 50%, rgba(30, 115, 232, 0.55) 0%, transparent 65%),
		radial-gradient(35% 60% at 50% 50%, rgba(0, 194, 255, 0.35) 0%, transparent 70%);
	filter: blur(20px);
	pointer-events: none;
	will-change: opacity, transform;
	animation: bekHorizonPulse 7s ease-in-out infinite;
}
@keyframes bekHorizonPulse {
	0%, 100% { opacity: 0.7; transform: translate3d(0, 0, 0); }
	50%      { opacity: 1;   transform: translate3d(0, -6px, 0); }
}

/* Drifting headlight beams */
.bek-hero__beams {
	position: absolute;
	inset: 0;
	pointer-events: none;
	overflow: hidden;
}
.bek-hero__beams::before,
.bek-hero__beams::after {
	content: "";
	position: absolute;
	width: 260px;
	height: 260px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(255, 240, 200, 0.55), transparent 65%);
	filter: blur(40px);
	will-change: transform, opacity;
}
.bek-hero__beams::before {
	top: 55%; left: -10%;
	animation: bekBeamL 12s ease-in-out infinite;
}
.bek-hero__beams::after {
	top: 60%; right: -10%;
	animation: bekBeamR 14s ease-in-out infinite;
}
@keyframes bekBeamL {
	0%, 100% { transform: translate3d(0, 0, 0) scale(0.9); opacity: 0; }
	20%      { opacity: 0.55; }
	50%      { transform: translate3d(45vw, -10vh, 0) scale(1.1); opacity: 0.35; }
	80%      { opacity: 0; }
}
@keyframes bekBeamR {
	0%, 100% { transform: translate3d(0, 0, 0) scale(0.85); opacity: 0; }
	30%      { opacity: 0.45; }
	60%      { transform: translate3d(-50vw, -8vh, 0) scale(1.15); opacity: 0.3; }
	90%      { opacity: 0; }
}

.bek-hero__overlay {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(180deg, rgba(5, 11, 25, 0.55) 0%, rgba(5, 11, 25, 0.15) 35%, rgba(5, 11, 25, 0.85) 100%),
		radial-gradient(120% 80% at 50% 100%, transparent 30%, rgba(5, 11, 25, 0.4) 100%);
	pointer-events: none;
}

.bek-hero__content {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: 1100px;
	padding: 0 clamp(1.25rem, 4vw, 3rem);
	margin-inline: auto;
	text-align: center;
}

.bek-hero__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	font-family: Montserrat, system-ui, sans-serif;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	color: var(--bek-cyan);
	padding: 0.5rem 1rem;
	border: 1px solid rgba(0, 194, 255, 0.3);
	border-radius: 999px;
	background: rgba(0, 194, 255, 0.06);
	backdrop-filter: blur(6px);
}
.bek-hero__eyebrow::before {
	content: "";
	width: 8px; height: 8px;
	border-radius: 50%;
	background: var(--bek-cyan);
	box-shadow: 0 0 12px var(--bek-cyan);
	animation: bekDot 1.6s ease-in-out infinite;
}
@keyframes bekDot {
	0%, 100% { opacity: 1; transform: scale(1); }
	50%      { opacity: 0.4; transform: scale(0.7); }
}

.bek-hero__title {
	font-family: Montserrat, system-ui, sans-serif;
	font-weight: 800;
	font-size: clamp(2.75rem, 6.5vw, 5.5rem);
	line-height: 1.02;
	letter-spacing: -0.015em;
	text-transform: uppercase;
	margin: 1.5rem 0 1.25rem;
	color: #fff;
	text-shadow: 0 4px 30px rgba(0, 0, 0, 0.45);
}
.bek-hero__title .bek-accent {
	background: linear-gradient(135deg, var(--bek-blue-soft) 0%, var(--bek-cyan) 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	white-space: nowrap;
}

.bek-hero__lede {
	max-width: 780px;
	margin: 0 auto;
	font-size: clamp(1.05rem, 1.6vw, 1.35rem);
	line-height: 1.6;
	color: rgba(232, 237, 246, 0.86);
}

.bek-hero__cta {
	display: flex;
	gap: 1rem;
	justify-content: center;
	flex-wrap: wrap;
	margin-top: 2.5rem;
}

.bek-hero__scroll {
	position: absolute;
	bottom: clamp(2.5rem, 5vh, 4rem);
	left: 50%;
	transform: translateX(-50%);
	z-index: 2;
	color: rgba(255, 255, 255, 0.7);
	font-family: Montserrat, sans-serif;
	font-size: 0.75rem;
	letter-spacing: 0.25em;
	text-transform: uppercase;
	text-decoration: none;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.5rem;
}
.bek-hero__scroll::after {
	content: "";
	width: 1px;
	height: 36px;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), transparent);
	transform-origin: top;
	animation: bekScrollLine 2s ease-in-out infinite;
}
@keyframes bekScrollLine {
	0%, 100% { transform: scaleY(0.3); opacity: 0.3; }
	50%      { transform: scaleY(1);   opacity: 1; }
}

/* ------------------------------------------------------------
   Section bands — unified background, no seams, ambient parallax
   All sections are transparent so the fixed body backdrop bleeds through.
   The contact variant gets a distinct subtle accent panel.
   ------------------------------------------------------------ */

.bek-section {
	position: relative;
	padding-top: clamp(4.5rem, 9vw, 7.5rem);
	padding-bottom: clamp(4.5rem, 9vw, 7.5rem);
	padding-left: clamp(1.25rem, 4vw, 3rem);
	padding-right: clamp(1.25rem, 4vw, 3rem);
	background: transparent;
}

/* Each variant has its own subtle tint that fades to transparent at the
   top and bottom edges — so adjacent sections blend smoothly into one
   another without hard seams. */
.bek-section--raised {
	background: linear-gradient(180deg,
		transparent 0%,
		rgba(18, 44, 84, 0.55) 14%,
		rgba(18, 44, 84, 0.55) 86%,
		transparent 100%);
}
.bek-section--deep {
	background: linear-gradient(180deg,
		transparent 0%,
		rgba(8, 22, 46, 0.65) 14%,
		rgba(8, 22, 46, 0.65) 86%,
		transparent 100%);
}
.bek-section--accent {
	background: linear-gradient(180deg,
		transparent 0%,
		rgba(15, 50, 96, 0.5) 14%,
		rgba(15, 50, 96, 0.5) 86%,
		transparent 100%);
}

/* Separated section: cyan top/bottom divider + faintly tinted band */
.bek-section--separated {
	background:
		radial-gradient(60% 90% at 50% 50%, rgba(30, 115, 232, 0.08) 0%, transparent 65%),
		linear-gradient(180deg,
			transparent 0%,
			rgba(12, 30, 60, 0.45) 14%,
			rgba(12, 30, 60, 0.45) 86%,
			transparent 100%);
}
.bek-section--separated::before,
.bek-section--contact::before {
	content: "";
	position: absolute;
	top: 0; left: 50%;
	transform: translateX(-50%);
	width: min(80%, 900px);
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(0, 194, 255, 0.45), transparent);
}

/* Dedupe stacked separators: when a separated/contact section directly follows
   another, the previous section's bottom line already separates them.
   Hide the top line on the second one. */
.bek-section--separated + .bek-section--separated::before,
.bek-section--separated + .bek-section--contact::before,
.bek-section--contact + .bek-section--separated::before,
.bek-section--contact + .bek-section--contact::before { content: none; }
.bek-section--separated::after,
.bek-section--contact::after {
	content: "";
	position: absolute;
	bottom: 0; left: 50%;
	transform: translateX(-50%);
	width: min(80%, 900px);
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(0, 194, 255, 0.2), transparent);
}

/* Contact: separator treatment only — the radial tint is removed so the
   cyan top line sits cleanly without a darker halo beneath it. Atmosphere
   comes entirely from the .bek-section-fx layer below. */
.bek-section--contact {
	background: transparent;
	overflow: hidden;
}

/* ------------------------------------------------------------
   Ambient section FX — reusable atmospheric layer
   (drifting headlight beams + horizon pulse, same vibe as hero)
   ------------------------------------------------------------ */

.bek-section-fx {
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	overflow: hidden;
}
.bek-section-fx + * { position: relative; z-index: 1; }

/* Horizon — slow centered glow pulse, always visible */
.bek-section-fx__horizon {
	position: absolute;
	left: 0; right: 0;
	top: 30%;
	height: 280px;
	background:
		radial-gradient(50% 80% at 50% 50%, rgba(30, 115, 232, 0.40) 0%, transparent 65%),
		radial-gradient(35% 60% at 50% 50%, rgba(0, 194, 255, 0.25) 0%, transparent 70%);
	filter: blur(28px);
	will-change: opacity, transform;
	animation: bekFxHorizon 14s ease-in-out infinite;
}
@keyframes bekFxHorizon {
	0%, 100% { opacity: 0.55; transform: translate3d(0, 0, 0); }
	50%      { opacity: 0.9;  transform: translate3d(0, -8px, 0); }
}

/* Beams — anchored near the middle of the section, drift gently outward
   and back. opacity > 0 at every keyframe, so they're always visible and
   never "launch in" from off-screen no matter when you scroll to them. */
.bek-section-fx__beam {
	position: absolute;
	width: 340px;
	height: 340px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(255, 240, 200, 0.42), transparent 65%);
	filter: blur(56px);
	will-change: transform, opacity;
}
.bek-section-fx__beam--l {
	top: 35%; left: 25%;
	animation: bekFxBeamL 34s ease-in-out infinite;
}
.bek-section-fx__beam--r {
	top: 55%; right: 25%;
	animation: bekFxBeamR 38s ease-in-out infinite;
}
@keyframes bekFxBeamL {
	0%, 100% { transform: translate3d(0, 0, 0) scale(1);   opacity: 0.45; }
	50%      { transform: translate3d(-12vw, 8vh, 0) scale(1.25); opacity: 0.6; }
}
@keyframes bekFxBeamR {
	0%, 100% { transform: translate3d(0, 0, 0) scale(1);   opacity: 0.4; }
	50%      { transform: translate3d(10vw, -10vh, 0) scale(1.2); opacity: 0.55; }
}

/* Cyan accent dot — slowly orbits the middle, always faintly visible */
.bek-section-fx__spark {
	position: absolute;
	top: 45%;
	left: 50%;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--bek-cyan);
	box-shadow: 0 0 24px var(--bek-cyan), 0 0 60px var(--bek-cyan);
	will-change: transform, opacity;
	animation: bekFxSpark 22s ease-in-out infinite;
}
@keyframes bekFxSpark {
	0%, 100% { opacity: 0.55; transform: translate3d(-10vw, 0, 0) scale(0.9); }
	50%      { opacity: 0.85; transform: translate3d(10vw, -3vh, 0) scale(1.1); }
}

.bek-section__eyebrow {
	display: block;
	font-family: Montserrat, sans-serif;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	color: var(--bek-cyan);
	text-align: center;
	margin-bottom: 0.85rem;
}

/* ------------------------------------------------------------
   Service cards — image-only frame, text flat below
   ------------------------------------------------------------ */

/* Widen the Leistungen section so the flyer images get more room.
   Tightens section padding and bumps the column container max-width. */
#leistungen { padding-left: 1rem !important; padding-right: 1rem !important; }
#leistungen .wp-block-columns.alignwide { max-width: 1640px; }

/* Equal-height columns so the lists at the bottom line up across the 3 cards */
#leistungen .wp-block-columns { align-items: stretch !important; }
#leistungen .wp-block-column {
	display: flex !important;
	flex-direction: column;
}
#leistungen .wp-block-column > .bek-service,
#leistungen .wp-block-column > article.bek-service { flex: 1; }

.bek-service {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
	height: 100%;
}
.bek-service__image { margin-bottom: 0.75rem; }  /* extra breathing room after the image */
.bek-service__list { margin-top: auto; }         /* pushes list to bottom — rows align across columns */

/* Image frame — the only "box" in the card. Rounded, with subtle dark backing
   so the white space of the flyer reads cleanly. */
.bek-service__image {
	border-radius: var(--bek-radius-lg);
	overflow: hidden;
	background: linear-gradient(180deg, #0b1e3d 0%, #08152a 100%);
	border: 1px solid var(--bek-border);
	box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.5);
	transition: transform 0.5s var(--bek-ease), box-shadow 0.5s var(--bek-ease), border-color 0.3s var(--bek-ease);
}
.bek-service:hover .bek-service__image {
	transform: translateY(-6px);
	border-color: var(--bek-border-strong);
	box-shadow: var(--bek-shadow-lg);
}
.bek-service__image img {
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: contain;
	display: block;
	transition: transform 0.8s var(--bek-ease);
}
.bek-service:hover .bek-service__image img {
	transform: scale(1.03);
}

.bek-service__title {
	font-family: Montserrat, sans-serif;
	font-weight: 700;
	font-size: 1.5rem;
	line-height: 1.2;
	margin: 0;
	text-align: center;
	color: #fff;
}
.bek-service__title .bek-accent,
.bek-service__title em {
	font-style: normal;
	background: linear-gradient(135deg, var(--bek-blue-soft) 0%, var(--bek-cyan) 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.bek-service__desc {
	margin: 0;
	color: var(--bek-muted);
	line-height: 1.6;
}

.bek-service__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
}
.bek-service__item {
	display: flex;
	align-items: center;
	gap: 0.9rem;
	padding: 0.85rem 0;
	border-top: 1px solid rgba(30, 115, 232, 0.22);
	color: var(--bek-text);
	font-size: 0.95rem;
	line-height: 1.45;
}
.bek-service__item:first-child {
	border-top: 0;
	padding-top: 0;
}
.bek-service__item:last-child { padding-bottom: 0; }
.bek-service__icon {
	flex: 0 0 38px;
	width: 38px;
	height: 38px;
	border-radius: 999px;
	background: linear-gradient(135deg, var(--bek-blue) 0%, #1862c4 100%);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	box-shadow: 0 6px 16px -6px rgba(30, 115, 232, 0.6);
	transition: transform 0.3s var(--bek-ease);
}
.bek-service__icon svg {
	width: 19px;
	height: 19px;
}
.bek-service__item:hover .bek-service__icon {
	transform: scale(1.08) rotate(-4deg);
}

/* ------------------------------------------------------------
   Benefit tile
   ------------------------------------------------------------ */

/* Benefit tile — boxless: sits flat on the section bg, just spacing + the icon */
.bek-tile {
	background: transparent;
	border: 0;
	border-radius: 0;
	padding: 0.5rem 0;
	height: 100%;
	transition: transform 0.4s var(--bek-ease);
}
.bek-tile:hover { transform: translateY(-2px); }
.bek-tile:hover .bek-tile__icon {
	box-shadow: 0 14px 36px -8px rgba(30, 115, 232, 0.75);
	transform: rotate(-4deg) scale(1.05);
}
.bek-tile__icon {
	flex: 0 0 56px;
	width: 56px;
	height: 56px;
	border-radius: 999px;
	background: linear-gradient(135deg, var(--bek-blue), var(--bek-cyan));
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: Montserrat, sans-serif;
	font-weight: 800;
	font-size: 1.05rem;
	box-shadow: 0 8px 24px -8px rgba(30, 115, 232, 0.6);
	transition: transform 0.3s var(--bek-ease), box-shadow 0.3s var(--bek-ease);
}

/* ------------------------------------------------------------
   Process step
   ------------------------------------------------------------ */

.bek-step {
	width: 64px;
	height: 64px;
	border-radius: 999px;
	background: linear-gradient(135deg, var(--bek-blue), var(--bek-cyan));
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: Montserrat, sans-serif;
	font-weight: 800;
	font-size: 1.6rem;
	margin-bottom: 1rem;
	box-shadow: 0 12px 30px -10px rgba(30, 115, 232, 0.6);
	position: relative;
}
.bek-step::after {
	content: "";
	position: absolute;
	inset: -6px;
	border-radius: 999px;
	border: 1px solid rgba(0, 194, 255, 0.3);
	will-change: transform, opacity;
	animation: bekStepPulse 2.6s ease-out infinite;
}
@keyframes bekStepPulse {
	0%   { transform: scale(0.9); opacity: 0.8; }
	100% { transform: scale(1.35); opacity: 0; }
}

/* ------------------------------------------------------------
   Legal pages (Impressum / Datenschutz)
   ------------------------------------------------------------ */

.bek-page-hero {
	padding-top: clamp(7rem, 14vw, 10rem) !important;
	padding-bottom: clamp(3rem, 6vw, 5rem) !important;
}
.bek-page-hero h1 {
	background: linear-gradient(135deg, #fff 0%, var(--bek-blue-soft) 60%, var(--bek-cyan) 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	letter-spacing: -0.01em;
}

.bek-legal-card {
	background: rgba(10, 22, 44, 0.55);
	border: 1px solid var(--bek-border);
	border-radius: var(--bek-radius-lg);
	padding: clamp(1.75rem, 3vw, 3rem) !important;
	backdrop-filter: blur(10px);
}
.bek-legal-card h2 {
	font-size: 1.35rem !important;
	margin-top: 2.25rem !important;
	margin-bottom: 0.6rem !important;
	color: var(--bek-blue-soft);
	letter-spacing: 0;
}
.bek-legal-card h2:first-of-type { margin-top: 0 !important; }
.bek-legal-card h2 + p { margin-top: 0; }
.bek-legal-card p { color: var(--bek-text); line-height: 1.7; }
.bek-legal-card p strong { color: #fff; }
.bek-legal-card a { color: var(--bek-cyan); text-decoration: none; border-bottom: 1px solid rgba(0,194,255,0.3); transition: border-color 0.2s; }
.bek-legal-card a:hover { border-bottom-color: var(--bek-cyan); }

/* Contact address card — more solid so it reads cleanly over animated bg */
.bek-contact-card {
	background: rgba(10, 22, 44, 0.78);
	border: 1px solid var(--bek-border-strong);
	border-radius: var(--bek-radius-lg);
	backdrop-filter: blur(14px) saturate(140%);
	-webkit-backdrop-filter: blur(14px) saturate(140%);
	transition: border-color 0.3s var(--bek-ease), background 0.3s var(--bek-ease);
}
.bek-contact-card:hover {
	border-color: rgba(0, 194, 255, 0.35);
	background: rgba(12, 28, 56, 0.84);
}

/* Full-vs-short name swap (Daniel Ermentraut → D. Ermentraut on narrow screens) */
.bek-name-short { display: none; }
@media (max-width: 600px) {
	.bek-name-full  { display: none; }
	.bek-name-short { display: inline; }
}

/* ------------------------------------------------------------
   Contact avatar (round, shared between WhatsApp section + modals)
   ------------------------------------------------------------ */

.bek-contact-avatar {
	display: block;
	width: 88px;
	height: 88px;
	margin: 0 auto;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid rgba(0, 194, 255, 0.4);
	box-shadow: 0 8px 24px -8px rgba(0, 194, 255, 0.4);
}

/* ------------------------------------------------------------
   WhatsApp QR
   ------------------------------------------------------------ */

.bek-qr {
	display: block;
	max-width: 280px;
	margin: 0 auto;
	padding: 1.25rem;
	background: #fff;
	border-radius: var(--bek-radius-lg);
	border: 1px solid var(--bek-border);
	box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.5);
	transition: transform 0.4s var(--bek-ease), box-shadow 0.4s var(--bek-ease), border-color 0.3s var(--bek-ease);
}
.bek-qr:hover {
	transform: translateY(-4px);
	box-shadow: var(--bek-shadow-lg);
	border-color: rgba(0, 194, 255, 0.4);
}
.bek-qr img {
	display: block;
	width: 100%;
	height: auto;
	image-rendering: pixelated;
}

/* ------------------------------------------------------------
   Contact form
   ------------------------------------------------------------ */

/* Form panel — wraps either the legacy custom form OR a Contact Form 7 form */
.bek-form,
.bek-form-wrap {
	background: rgba(10, 22, 44, 0.78);
	border: 1px solid var(--bek-border-strong);
	border-radius: var(--bek-radius-lg);
	padding: 2rem;
	backdrop-filter: blur(14px) saturate(140%);
	-webkit-backdrop-filter: blur(14px) saturate(140%);
}
.bek-form,
.bek-form-wrap .wpcf7-form {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}
.bek-form label,
.bek-form-wrap .wpcf7-form label,
.bek-form-wrap .wpcf7-form > p {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	font-family: Inter, sans-serif;
	font-size: 0.95rem;
	margin: 0;
}
.bek-form label > span,
.bek-form-wrap .wpcf7-form label > span:first-child { font-weight: 600; color: var(--bek-text); }
.bek-form input,
.bek-form textarea,
.bek-form-wrap .wpcf7-form input[type="text"],
.bek-form-wrap .wpcf7-form input[type="email"],
.bek-form-wrap .wpcf7-form input[type="tel"],
.bek-form-wrap .wpcf7-form input[type="url"],
.bek-form-wrap .wpcf7-form textarea {
	padding: 0.85rem 1rem;
	border: 1px solid var(--bek-border-strong);
	border-radius: 10px;
	font: inherit;
	background: rgba(0, 0, 0, 0.25);
	color: var(--bek-text);
	transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
	width: 100%;
	box-sizing: border-box;
}
.bek-form input:focus,
.bek-form textarea:focus,
.bek-form-wrap .wpcf7-form input:focus,
.bek-form-wrap .wpcf7-form textarea:focus {
	outline: none;
	border-color: var(--bek-blue-soft);
	background: rgba(0, 0, 0, 0.45);
	box-shadow: 0 0 0 4px rgba(30, 115, 232, 0.15);
}
.bek-form button,
.bek-form-wrap .wpcf7-form input[type="submit"] {
	background: linear-gradient(135deg, var(--bek-blue), var(--bek-blue-soft));
	color: #fff;
	padding: 1rem 2rem;
	border: 0;
	border-radius: 999px;
	font-family: Montserrat, sans-serif;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	cursor: pointer;
	transition: transform 0.2s, box-shadow 0.2s;
	font-size: 0.9rem;
}
.bek-form button:hover,
.bek-form-wrap .wpcf7-form input[type="submit"]:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 30px -8px rgba(30, 115, 232, 0.5);
}

/* CF7-specific: meta text, validation messages, spinner */
.bek-form-wrap .bek-form-meta,
.bek-form .bek-form-meta {
	font-size: 0.85rem;
	color: var(--bek-muted);
	margin: 0;
	font-family: Inter, sans-serif;
}
.bek-form-wrap .wpcf7-response-output {
	margin: 1rem 0 0 !important;
	padding: 0.85rem 1rem !important;
	border-radius: 10px !important;
	font-size: 0.9rem !important;
	border: 1px solid var(--bek-border-strong) !important;
	background: rgba(0, 0, 0, 0.25) !important;
	color: var(--bek-text) !important;
}
.bek-form-wrap .wpcf7 form.sent .wpcf7-response-output {
	border-color: rgba(37, 211, 102, 0.6) !important;
	background: rgba(37, 211, 102, 0.12) !important;
}
.bek-form-wrap .wpcf7 form.invalid .wpcf7-response-output,
.bek-form-wrap .wpcf7 form.failed .wpcf7-response-output {
	border-color: rgba(255, 100, 100, 0.6) !important;
	background: rgba(255, 100, 100, 0.1) !important;
}
.bek-form-wrap .wpcf7-not-valid-tip {
	color: #ff8a8a !important;
	font-size: 0.82rem !important;
	margin-top: 0.25rem !important;
}
.bek-form-wrap .wpcf7-spinner {
	background-color: rgba(0, 194, 255, 0.6) !important;
}

/* ------------------------------------------------------------
   FAQ
   ------------------------------------------------------------ */

.wp-block-details {
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid var(--bek-border);
	border-radius: var(--bek-radius);
	padding: 1.1rem 1.4rem;
	margin-bottom: 0.85rem;
	transition: border-color 0.3s, background 0.3s;
}
.wp-block-details[open] {
	background: rgba(30, 115, 232, 0.06);
	border-color: rgba(30, 115, 232, 0.35);
}
.wp-block-details summary {
	cursor: pointer;
	font-family: Montserrat, sans-serif;
	font-weight: 600;
	color: #fff;
	list-style: none;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after {
	content: "+";
	font-size: 1.4rem;
	color: var(--bek-cyan);
	transition: transform 0.3s var(--bek-ease);
	line-height: 1;
}
.wp-block-details[open] summary::after { transform: rotate(45deg); }
.wp-block-details p { margin-top: 0.85rem; color: var(--bek-muted); }

/* Buttons — global polish */
.wp-block-button__link {
	transition: transform 0.2s, box-shadow 0.25s, background 0.3s;
	box-shadow: 0 6px 24px -8px rgba(30, 115, 232, 0.5);
}
.wp-block-button__link:hover { transform: translateY(-2px); }

/* ------------------------------------------------------------
   Hero CTA modals (call list + WhatsApp QRs)
   ------------------------------------------------------------ */

.bek-modal {
	position: fixed;
	inset: 0;
	z-index: 200;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 1.25rem;
}
.bek-modal.is-open { display: flex; }

.bek-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(2, 6, 15, 0.78);
	backdrop-filter: blur(10px) saturate(140%);
	-webkit-backdrop-filter: blur(10px) saturate(140%);
	opacity: 0;
	animation: bekModalBackdrop 0.3s var(--bek-ease) forwards;
}
@keyframes bekModalBackdrop {
	to { opacity: 1; }
}

.bek-modal__panel {
	position: relative;
	z-index: 1;
	background: linear-gradient(180deg, rgba(20, 38, 70, 0.97) 0%, rgba(10, 22, 44, 0.97) 100%);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: var(--bek-radius-lg);
	padding: 2rem clamp(1.25rem, 4vw, 2rem);
	width: 100%;
	max-width: 520px;
	max-height: 92vh;
	overflow-y: auto;
	box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.7);
	transform: scale(0.92) translateY(20px);
	opacity: 0;
	animation: bekModalPanel 0.45s var(--bek-ease) 0.05s forwards;
}
@keyframes bekModalPanel {
	to { transform: scale(1) translateY(0); opacity: 1; }
}

.bek-modal__close {
	position: absolute;
	top: 0.85rem;
	right: 0.85rem;
	width: 38px;
	height: 38px;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 999px;
	color: #fff;
	font-size: 1.4rem;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.bek-modal__close:hover {
	background: rgba(255, 255, 255, 0.12);
	border-color: rgba(0, 194, 255, 0.4);
	transform: rotate(90deg);
}

.bek-modal__eyebrow {
	display: block;
	font-family: Montserrat, sans-serif;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	color: var(--bek-cyan);
	margin-bottom: 0.5rem;
}
.bek-modal__title {
	font-family: Montserrat, sans-serif;
	font-weight: 800;
	font-size: 1.5rem;
	line-height: 1.15;
	color: #fff;
	margin: 0 0 0.5rem;
	text-transform: uppercase;
	letter-spacing: -0.005em;
	padding-right: 3rem;
}
.bek-modal__lede {
	margin: 0 0 1.5rem;
	color: var(--bek-muted);
	font-size: 0.95rem;
	line-height: 1.5;
}

/* Two contacts side-by-side, each card stacked vertically (avatar → info → action) */
.bek-modal__list {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.85rem;
}
.bek-modal__item {
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid var(--bek-border);
	border-radius: var(--bek-radius);
	padding: 1.25rem 1rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.65rem;
	text-align: center;
	transition: border-color 0.3s, background 0.3s, transform 0.3s;
}
.bek-modal__item:hover {
	border-color: rgba(0, 194, 255, 0.35);
	background: rgba(255, 255, 255, 0.06);
	transform: translateY(-2px);
}
.bek-modal__avatar {
	width: 84px;
	height: 84px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid rgba(0, 194, 255, 0.4);
	box-shadow: 0 8px 24px -8px rgba(0, 194, 255, 0.4);
	display: block;
}
.bek-modal__name {
	font-family: Montserrat, sans-serif;
	font-weight: 700;
	font-size: 1rem;
	color: #fff;
	line-height: 1.2;
}
.bek-modal__sub {
	font-size: 0.85rem;
	color: var(--bek-muted);
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.02em;
}
.bek-modal__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	padding: 0.6rem 1rem;
	background: linear-gradient(135deg, var(--bek-blue), var(--bek-blue-soft));
	color: #fff;
	text-decoration: none;
	font-family: Montserrat, sans-serif;
	font-weight: 700;
	font-size: 0.78rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	border-radius: 999px;
	transition: transform 0.2s, box-shadow 0.2s;
	width: 100%;
	max-width: 200px;
	box-sizing: border-box;
}
.bek-modal__cta:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 30px -8px rgba(30, 115, 232, 0.5);
	color: #fff;
}
.bek-modal__cta--wa { background: #25D366; }
.bek-modal__cta--wa:hover { box-shadow: 0 12px 30px -8px rgba(37, 211, 102, 0.5); }

/* WhatsApp variant: avatar → name+phone → QR → button */
.bek-modal__qr {
	width: 100%;
	max-width: 140px;
	aspect-ratio: 1;
	background: #fff;
	border-radius: 12px;
	padding: 6px;
	box-sizing: border-box;
	margin: 0.25rem auto 0;
}
.bek-modal__qr img {
	width: 100%;
	height: 100%;
	display: block;
	image-rendering: pixelated;
}

@media (max-width: 480px) {
	.bek-modal__panel { padding: 1.5rem 1rem; }
	.bek-modal__list { gap: 0.6rem; }
	.bek-modal__item { padding: 1rem 0.75rem; gap: 0.55rem; }
	.bek-modal__avatar { width: 70px; height: 70px; }
	.bek-modal__qr { max-width: 120px; }
	.bek-modal__cta { padding: 0.55rem 0.75rem; font-size: 0.72rem; }
	.bek-modal__sub { font-size: 0.78rem; }
	.bek-modal__title { font-size: 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
	.bek-modal__backdrop, .bek-modal__panel { animation: none !important; opacity: 1 !important; transform: none !important; }
}

/* ------------------------------------------------------------
   Reveal animations
   ------------------------------------------------------------ */

.bek-reveal {
	opacity: 0;
	transform: translate3d(0, 32px, 0);
	transition: opacity 0.9s var(--bek-ease), transform 0.9s var(--bek-ease);
	will-change: opacity, transform;
}
.bek-reveal--right { transform: translate3d(-40px, 0, 0); }
.bek-reveal--left  { transform: translate3d(40px, 0, 0); }
.bek-reveal--scale { transform: scale(0.94); }
.bek-reveal--fade  { transform: none; }

.bek-reveal.is-visible {
	opacity: 1;
	transform: none;
}

.bek-stagger > .bek-reveal:nth-child(1) { transition-delay: 0.05s; }
.bek-stagger > .bek-reveal:nth-child(2) { transition-delay: 0.18s; }
.bek-stagger > .bek-reveal:nth-child(3) { transition-delay: 0.32s; }
.bek-stagger > .bek-reveal:nth-child(4) { transition-delay: 0.46s; }
.bek-stagger > .bek-reveal:nth-child(5) { transition-delay: 0.6s; }
.bek-stagger > .bek-reveal:nth-child(6) { transition-delay: 0.74s; }

@media (prefers-reduced-motion: reduce) {
	.bek-reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
	body::before,
	.bek-hero__stripes,
	.bek-hero__horizon,
	.bek-hero__beams::before,
	.bek-hero__beams::after,
	.bek-hero__eyebrow::before,
	.bek-step::after,
	.bek-hero__scroll::after,
	.bek-section-fx__horizon,
	.bek-section-fx__beam,
	.bek-section-fx__spark { animation: none !important; }
}

/* ------------------------------------------------------------
   Small screens
   ------------------------------------------------------------ */

@media (max-width: 900px) {
	/* Leistungen overrides become moot when columns stack — clear them */
	#leistungen .wp-block-columns.alignwide { max-width: 100%; }
	#leistungen { padding-left: clamp(1.25rem, 4vw, 3rem) !important; padding-right: clamp(1.25rem, 4vw, 3rem) !important; }
	.bek-service { max-width: 560px; margin-inline: auto; }
}

@media (max-width: 720px) {
	.bek-hero__road { width: 380%; }
	.bek-hero__content { padding: 0 1.25rem; }
	.bek-hero__title { font-size: clamp(2.25rem, 9vw, 3.5rem); }
	.bek-hero__lede { font-size: 1rem; }
	.bek-hero__eyebrow { font-size: 0.7rem; letter-spacing: 0.2em; padding: 0.4rem 0.85rem; }
	.bek-hero__cta { gap: 0.6rem; margin-top: 1.75rem; }
	.bek-hero__cta .wp-block-button__link { padding: 0.8rem 1.4rem; font-size: 0.85rem; }

	.bek-form { padding: 1.25rem; }
	.bek-legal-card { padding: 1.25rem !important; }
	.bek-legal-card h2 { font-size: 1.15rem !important; margin-top: 1.75rem !important; }

	body::before { animation-duration: 40s; }

	/* Tile rows: stack icon + text vertically isn't needed — just tighten gap */
	.bek-tile { padding: 0.25rem 0; }

	/* Service list icons slightly smaller on phone */
	.bek-service__icon { flex-basis: 34px; width: 34px; height: 34px; }
	.bek-service__icon svg { width: 17px; height: 17px; }
	.bek-service__item { font-size: 0.9rem; padding: 0.7rem 0; }

	/* Contact section: stack address card + form with proper gap */
	#kontakt .wp-block-columns { gap: 1.5rem; }
	#kontakt .wp-block-column { flex-basis: 100% !important; }

	/* Hero scroll cue: hide on very tight phones */
	.bek-hero__scroll { display: none; }
}

@media (max-width: 480px) {
	.bek-section { padding-top: 3.5rem; padding-bottom: 3.5rem; }
}
