/* ==========================================================================
   YAKA BAU – Gestaltung
   Farben & Schriften laut Markenvorgabe: Anthrazit, Signalrot, Steingrau,
   Hellgrau, Weiß · Montserrat (Überschriften) · Inter (Text)
   Leitmotiv: Bauzeichnung – Grundlinie, Maßlinien, eckige Formen wie im Logo.
   ========================================================================== */

/* ---------- Schriften (lokal, DSGVO-konform) ---------- */
@font-face {
	font-family: "Montserrat";
	font-style: normal;
	font-display: swap;
	font-weight: 100 900;
	src: url(../fonts/montserrat-latin-wght-normal.woff2) format("woff2-variations");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Montserrat";
	font-style: normal;
	font-display: swap;
	font-weight: 100 900;
	src: url(../fonts/montserrat-latin-ext-wght-normal.woff2) format("woff2-variations");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Inter";
	font-style: normal;
	font-display: swap;
	font-weight: 100 900;
	src: url(../fonts/inter-latin-wght-normal.woff2) format("woff2-variations");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Inter";
	font-style: normal;
	font-display: swap;
	font-weight: 100 900;
	src: url(../fonts/inter-latin-ext-wght-normal.woff2) format("woff2-variations");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens ---------- */
:root {
	--ink: #1A1A1A;
	--red: #D62828;
	--red-deep: #B21F1F;
	--stone: #6B7280;
	--line: #E5E7EB;
	--white: #FFFFFF;
	--tint: #F3F4F6;
	--ink-soft: #2A2A2A;
	--on-dark: #FFFFFF;
	--on-dark-muted: #A6AAB2;
	--on-dark-line: rgba(255, 255, 255, .14);

	--f-head: "Montserrat", "Segoe UI", system-ui, sans-serif;
	--f-body: "Inter", "Segoe UI", system-ui, sans-serif;

	--fs-xs: .8125rem;
	--fs-sm: .9375rem;
	--fs-base: 1.0625rem;
	--fs-md: 1.25rem;
	--fs-lg: clamp(1.375rem, 1.15rem + .8vw, 1.75rem);
	--fs-xl: clamp(2rem, 1.35rem + 2.5vw, 3.375rem);
	--fs-2xl: clamp(2.5rem, 1.4rem + 3.6vw, 4.625rem);

	--wrap: 1320px;
	--gutter: clamp(20px, 4vw, 48px);
	--section: clamp(84px, 10vw, 150px);
	--header-h: 84px;

	--ease-out: cubic-bezier(.16, 1, .3, 1);
	--ease-in-out: cubic-bezier(.76, 0, .24, 1);
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
html.intro-lock { overflow: hidden; }
body {
	margin: 0;
	font-family: var(--f-body);
	font-size: var(--fs-base);
	line-height: 1.65;
	color: var(--ink);
	background: var(--white);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--f-head); font-weight: 700; line-height: 1.1; letter-spacing: -.022em; margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
address { font-style: normal; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: calc(820px + var(--gutter) * 2); }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}
.skip-link {
	position: fixed; left: 16px; top: -60px; z-index: 2000;
	background: var(--red); color: #fff; padding: 12px 18px; font-weight: 600;
	transition: top .2s;
}
.skip-link:focus { top: 16px; }

/* ---------- Logo-Farben ---------- */
.yaka-logo { height: auto; }
.yaka-logo .lg-d { fill: var(--logo-d, var(--ink)); transition: fill .4s; }
.yaka-logo .lg-r { fill: var(--red); }
.yaka-logo .lg-g { fill: var(--stone); }

/* ---------- Icons ---------- */
.yaka-icon { width: 1.5em; height: 1.5em; flex: none; }

/* ---------- Buttons & Links ---------- */
.btn {
	--btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--ink); --btn-fill: var(--ink); --btn-fg-hover: #fff;
	position: relative; isolation: isolate; overflow: hidden;
	display: inline-flex; align-items: center; justify-content: center; gap: .6em;
	min-height: 54px; padding: 0 28px;
	font-family: var(--f-head); font-weight: 600; font-size: var(--fs-sm); letter-spacing: .01em; line-height: 1.2;
	color: var(--btn-fg); background: var(--btn-bg); border: 1.5px solid var(--btn-bd);
	transition: color .35s var(--ease-out), border-color .35s;
	text-align: center;
}
.btn::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: var(--btn-fill);
	transform: scaleX(0); transform-origin: right center;
	transition: transform .5s var(--ease-out);
}
.btn:hover::before, .btn:focus-visible::before { transform: scaleX(1); transform-origin: left center; }
.btn:hover, .btn:focus-visible { color: var(--btn-fg-hover); }
.btn--red { --btn-bg: var(--red); --btn-fg: #fff; --btn-bd: var(--red); --btn-fill: var(--red-deep); }
.btn--red:hover { border-color: var(--red-deep); }
.btn--line-light { --btn-fg: #fff; --btn-bd: rgba(255, 255, 255, .45); --btn-fill: #fff; --btn-fg-hover: var(--ink); }
.btn--line-light:hover { border-color: #fff; }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: .875rem; }
.btn--lg { min-height: 60px; padding: 0 34px; font-size: 1rem; }
.btn--block { width: 100%; }

.link-line {
	display: inline-flex; align-items: center; gap: .5em;
	font-family: var(--f-head); font-weight: 600; font-size: var(--fs-sm);
	padding-bottom: 4px;
	background: linear-gradient(var(--red), var(--red)) left bottom / 100% 2px no-repeat;
	transition: background-size .45s var(--ease-out), color .3s;
}
.link-line:hover { background-size: 30% 2px; color: var(--red); }

/* ==========================================================================
   Kopfzeile
   ========================================================================== */
.site-header {
	position: fixed; inset: 0 0 auto; z-index: 900;
	height: var(--header-h);
	color: #fff; --logo-d: #fff;
	background: rgba(26, 26, 26, 0);
	transition: transform .5s var(--ease-out), background-color .4s, box-shadow .4s, color .4s;
}
.site-header__inner { height: 100%; display: flex; align-items: center; gap: 40px; }
.site-header__brand { flex: none; display: block; }
.site-header__logo { width: 178px; }
.site-nav { margin-left: auto; }
.site-nav__list { display: flex; gap: 6px; }
.site-nav__list a {
	position: relative; display: block; padding: 10px 14px;
	font-family: var(--f-head); font-weight: 500; font-size: .9375rem;
	transition: color .3s;
}
.site-nav__list a::after {
	content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px;
	background: var(--red); transform: scaleX(0); transform-origin: right;
	transition: transform .4s var(--ease-out);
}
.site-nav__list a:hover::after,
.site-nav__list .current-menu-item > a::after,
.site-nav__list .current_page_item > a::after { transform: scaleX(1); transform-origin: left; }
.site-header__actions { display: flex; align-items: center; gap: 22px; }
.site-header__phone { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-head); font-weight: 600; font-size: .9375rem; white-space: nowrap; }
.site-header__phone .yaka-icon { width: 18px; height: 18px; color: var(--red); }

/* Über dunklem Seitenkopf: helles Logo */
.site-header.is-solid {
	background: rgba(26, 26, 26, .94);
	box-shadow: 0 1px 0 rgba(255, 255, 255, .08);
	-webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
}
.site-header.is-hidden { transform: translateY(-100%); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

.menu-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; }
.menu-toggle__bars { position: relative; width: 26px; height: 12px; }
.menu-toggle__bars span { position: absolute; left: 0; width: 100%; height: 2px; background: currentColor; transition: transform .45s var(--ease-out), top .45s var(--ease-out); }
.menu-toggle__bars span:first-child { top: 0; }
.menu-toggle__bars span:last-child { top: 10px; }
.menu-open .menu-toggle__bars span:first-child { top: 5px; transform: rotate(45deg); }
.menu-open .menu-toggle__bars span:last-child { top: 5px; transform: rotate(-45deg); }

.mobile-menu {
	position: fixed; inset: 0; z-index: 850;
	background: var(--ink); color: #fff;
	padding-top: calc(var(--header-h) + 24px);
	display: flex; overflow-y: auto;
	clip-path: inset(0 0 100% 0);
	transition: clip-path .7s var(--ease-in-out);
}
.mobile-menu[hidden] { display: none; }
.menu-open .mobile-menu { clip-path: inset(0 0 0 0); }
.mobile-menu__inner { display: flex; flex-direction: column; justify-content: space-between; gap: 48px; padding-bottom: 40px; }
.mobile-menu__list a {
	display: block; padding: 14px 0;
	font-family: var(--f-head); font-weight: 700; font-size: clamp(2rem, 8vw, 3rem); letter-spacing: -.02em; line-height: 1.1;
	border-bottom: 1px solid var(--on-dark-line);
	opacity: 0; transform: translateY(30px);
	transition: opacity .5s, transform .7s var(--ease-out), color .3s;
}
.mobile-menu__list a:hover { color: var(--red); }
.menu-open .mobile-menu__list a { opacity: 1; transform: none; }
.menu-open .mobile-menu__list li:nth-child(1) a { transition-delay: .2s; }
.menu-open .mobile-menu__list li:nth-child(2) a { transition-delay: .26s; }
.menu-open .mobile-menu__list li:nth-child(3) a { transition-delay: .32s; }
.menu-open .mobile-menu__list li:nth-child(4) a { transition-delay: .38s; }
.menu-open .mobile-menu__list li:nth-child(5) a { transition-delay: .44s; }
.mobile-menu__contact { display: grid; gap: 18px; }
.mobile-menu__line { display: inline-flex; align-items: center; gap: 12px; color: var(--on-dark-muted); font-weight: 500; }
.mobile-menu__line .yaka-icon { width: 20px; height: 20px; color: #fff; }
.menu-open .site-header { color: #fff; --logo-d: #fff; background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; transform: none; }

/* ==========================================================================
   Intro
   ========================================================================== */
.intro { display: none; }
html.intro-on .intro {
	display: flex; align-items: center; justify-content: center;
	position: fixed; inset: 0; z-index: 3000;
	background: radial-gradient(120% 90% at 50% 45%, #262626 0%, var(--ink) 55%, #121212 100%);
}
html.intro-out .intro { animation: intro-leave .85s var(--ease-in-out) forwards; }
html.intro-on .intro::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--red);
	transform: scaleX(0); transform-origin: left;
}
html.intro-css .intro::after { animation: intro-bar 2.6s cubic-bezier(.4, 0, .2, 1) .1s forwards; }
html.intro-3d .intro::after { animation: intro-bar 3.7s cubic-bezier(.4, 0, .2, 1) forwards; animation-play-state: paused; }
html.intro-3d-run .intro::after { animation-play-state: running; }

/* 3D-Bühne */
.intro__canvas { display: none; position: absolute; inset: 0; width: 100%; height: 100%; }
html.intro-3d .intro__canvas { display: block; }
html.intro-3d .intro__stage { display: none; }

/* Rückfall: gezeichnetes Logo (ohne 3D-Unterstützung) */
.intro__stage { width: min(460px, 70vw); }
.intro__logo { width: 100%; height: auto; overflow: visible; }
.intro .lg-d { fill: #fff; }
.intro .lg-r { fill: var(--red); }
.intro .lg-g { fill: var(--stone); }
.intro__ground { stroke: #fff; stroke-width: 7; stroke-dasharray: 1; stroke-dashoffset: 1; }
.intro__rise { transform: translateY(880px); }
.intro__tower { transform: translateY(900px); }
.intro__glass { opacity: 0; }
.intro__word { transform: translateY(330px); }
.intro__tag { opacity: 0; transform: translateY(40px); }
html.intro-css .intro__ground { animation: draw .7s var(--ease-out) .05s forwards; }
html.intro-css .intro__rise { animation: rise .85s var(--ease-out) forwards; }
html.intro-css .intro__rise--1 { animation-delay: .4s; }
html.intro-css .intro__rise--2 { animation-delay: .52s; }
html.intro-css .intro__rise--3 { animation-delay: .64s; }
html.intro-css .intro__tower { animation: rise-tower 1s cubic-bezier(.34, 1.35, .64, 1) .9s forwards; }
html.intro-css .intro__glass { animation: fade .6s ease 1.35s forwards; }
html.intro-css .intro__word { animation: rise .9s var(--ease-out) forwards; }
html.intro-css .intro__word--1 { animation-delay: 1.4s; }
html.intro-css .intro__word--2 { animation-delay: 1.55s; }
html.intro-css .intro__tag { animation: rise-soft .8s var(--ease-out) 1.95s forwards; }
.intro__skip {
	position: absolute; z-index: 2; right: var(--gutter); bottom: 28px;
	font-size: var(--fs-xs); color: var(--on-dark-muted); padding: 8px 0;
	opacity: 0; animation: fade .4s ease .8s forwards;
}
.intro__skip:hover { color: #fff; }

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes rise { to { transform: translateY(0); } }
@keyframes rise-tower { to { transform: translateY(0); } }
@keyframes rise-soft { to { transform: translateY(0); opacity: 1; } }
@keyframes fade { to { opacity: 1; } }
@keyframes intro-bar { to { transform: scaleX(1); } }
@keyframes intro-leave {
	0% { transform: translateY(0); visibility: visible; }
	99% { visibility: visible; }
	100% { transform: translateY(-100%); visibility: hidden; pointer-events: none; }
}

/* ==========================================================================
   Einblend-Choreografie für Seitenkopf (startet nach Intro bzw. sofort)
   ========================================================================== */
.js [data-hero-step] {
	opacity: 0; transform: translateY(18px);
	transition: opacity .8s ease, transform 1s var(--ease-out);
}
.js .hero__line[data-hero-step] { opacity: 1; transform: none; }
.js .hero__line > span { display: block; transform: translateY(108%); transition: transform 1.1s var(--ease-out); }
.js .dimline[data-hero-step] .dimline__fill { transform: scaleX(0); transition: transform 1.4s var(--ease-in-out) .2s; }
.js .page-hero__rule[data-hero-step] { opacity: 1; transform: scaleX(0); transition: transform 1.2s var(--ease-in-out); }

.is-ready [data-hero-step] { opacity: 1; transform: none; }
.is-ready .hero__line > span { transform: none; }
.is-ready .dimline[data-hero-step] .dimline__fill { transform: scaleX(1); }
.is-ready [data-hero-step="1"], .is-ready [data-hero-step="1"] > span { transition-delay: .05s; }
.is-ready [data-hero-step="2"], .is-ready [data-hero-step="2"] > span { transition-delay: .15s; }
.is-ready [data-hero-step="3"], .is-ready [data-hero-step="3"] > span { transition-delay: .27s; }
.is-ready [data-hero-step="4"] { transition-delay: .45s; }
.is-ready [data-hero-step="4"] .dimline__fill { transition-delay: .6s; }
.is-ready [data-hero-step="5"] { transition-delay: .55s; }
.is-ready [data-hero-step="6"] { transition-delay: .68s; }
.is-ready [data-hero-step="7"] { transition-delay: .9s; }
.hero__line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }

/* Scroll-Einblendung – nur aktiv, wenn das Skript läuft */
.reveal-ready [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform 1.1s var(--ease-out); }
.reveal-ready [data-reveal="image"] { opacity: 1; transform: none; position: relative; }
.reveal-ready [data-reveal="image"]::before { content: ""; position: absolute; inset: -1px; z-index: 3; background: var(--white); transform-origin: bottom; transition: transform 1.3s var(--ease-in-out); pointer-events: none; }
.reveal-ready [data-reveal="image"].is-in::before { transform: scaleY(0); }
.reveal-ready [data-reveal].is-in { opacity: 1; transform: none; }


/* ==========================================================================
   Startseite: Hero
   ========================================================================== */
.hero {
	position: relative; isolation: isolate; overflow: hidden;
	min-height: 100vh; min-height: 100svh;
	display: flex; flex-direction: column;
	background: var(--ink); color: #fff;
}
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__video, .hero__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero--media .hero__media::after {
	content: ""; position: absolute; inset: 0;
	background:
		linear-gradient(90deg, rgba(26, 26, 26, .92) 0%, rgba(26, 26, 26, .72) 45%, rgba(26, 26, 26, .25) 100%),
		linear-gradient(0deg, rgba(26, 26, 26, .7) 0%, rgba(26, 26, 26, 0) 35%);
}
.hero__inner {
	position: relative; flex: 1;
	display: flex; flex-direction: column; justify-content: center;
	padding-top: calc(var(--header-h) + 56px); padding-bottom: 72px;
}
.hero__kicker { display: flex; align-items: center; gap: 14px; font-size: var(--fs-sm); color: var(--on-dark-muted); margin-bottom: 26px; max-width: 64ch; }
.hero__kicker::before { content: ""; flex: none; width: 28px; height: 2px; background: var(--red); }
.hero__title { font-size: var(--fs-2xl); line-height: 1.02; letter-spacing: -.035em; max-width: 13.5ch; }
.hero__text { max-width: 50ch; font-size: clamp(1.0625rem, 1rem + .25vw, 1.1875rem); color: #C9CCD2; margin: 0 0 36px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Maßlinie */
.dimline {
	display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px;
	width: min(560px, 100%); margin: 30px 0 24px;
	font-size: var(--fs-xs); font-weight: 500; color: var(--on-dark-muted);
}
.dimline__track { position: relative; height: 22px; }
.dimline__track::before {
	content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--on-dark-line);
}
.dimline__fill {
	position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -.5px;
	background: var(--red); transform-origin: left;
}
.dimline__fill::before, .dimline__fill::after {
	content: ""; position: absolute; top: -8px; width: 2px; height: 18px; background: var(--red);
	transform: skewX(-40deg);
}
.dimline__fill::before { left: 0; }
.dimline__fill::after { right: 0; }

/* Bauzeichnung (wenn kein Video) */
.plan {
	position: absolute; top: 50%; right: -7vw;
	width: min(68vw, 1180px); height: auto; transform: translateY(-46%);
	overflow: visible;
}
.plan__grid line { stroke: rgba(255, 255, 255, .07); stroke-width: 2; stroke-dasharray: 10 14; }
.plan__dims path { fill: none; stroke: rgba(255, 255, 255, .32); stroke-width: 2.5; stroke-dasharray: 1; stroke-dashoffset: 1; }
.plan__line { fill-opacity: 0; stroke-width: 3.5; stroke-dasharray: 1; stroke-dashoffset: 1; stroke-linejoin: miter; }
.plan__line--dark { fill: #fff; stroke: rgba(255, 255, 255, .55); }
.plan__line--gray { fill: var(--stone); stroke: rgba(255, 255, 255, .35); }
.plan__line--red { fill: var(--red); stroke: var(--red); }
.is-ready .plan__line { animation: draw 2.6s var(--ease-in-out) .2s forwards, plan-fill 1.4s ease 2.4s forwards; }
.is-ready .plan__line--gray { animation-delay: .5s, 2.6s; }
.is-ready .plan__line--red { animation: draw 1.8s var(--ease-in-out) 1s forwards, plan-fill-red 1s ease 2.5s forwards; }
.is-ready .plan__dims path { animation: draw 1.4s var(--ease-in-out) 2s forwards; }
.is-ready .plan__dims path:nth-child(2) { animation-delay: 2.25s; }
.is-ready .plan__dims path:nth-child(3) { animation-delay: 2.5s; }
@keyframes plan-fill { to { fill-opacity: .05; } }
@keyframes plan-fill-red { to { fill-opacity: 1; } }
.no-js .plan__line, .no-js .plan__dims path { stroke-dashoffset: 0; }

/* Untere Leiste */
.hero__foot { position: relative; border-top: 1px solid var(--on-dark-line); }
.hero__foot-inner { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 40px; min-height: 76px; padding-block: 16px; }
.hero__fact { display: inline-flex; align-items: center; gap: 10px; font-size: var(--fs-sm); color: var(--on-dark-muted); transition: color .3s; }
a.hero__fact:hover { color: #fff; }
.hero__fact .yaka-icon { width: 18px; height: 18px; color: #fff; }
.hero__scroll { margin-left: auto; display: block; width: 44px; height: 44px; position: relative; }
.hero__scroll-line { position: absolute; left: 50%; top: 6px; bottom: 6px; width: 1px; background: var(--on-dark-line); overflow: hidden; }
.hero__scroll-line::after {
	content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 40%; background: var(--red);
	animation: scroll-hint 2.2s var(--ease-in-out) infinite;
}
@keyframes scroll-hint { 0% { transform: translateY(-100%); } 100% { transform: translateY(260%); } }

/* ==========================================================================
   Abschnitte allgemein
   ========================================================================== */
.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(64px, 7vw, 110px); }
.section--tint { background: var(--tint); }
.section-head {
	display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px 32px; align-items: end;
	margin-bottom: clamp(44px, 5vw, 72px);
}
.section-head__title { grid-column: 1 / span 6; font-size: var(--fs-xl); max-width: 18ch; }
.section-head__text { grid-column: 8 / span 5; color: var(--stone); font-size: var(--fs-md); line-height: 1.55; }
.section-more { margin-top: 44px; }
.empty-note { padding: 24px; border: 1px dashed var(--stone); color: var(--stone); }
.empty-note a { color: var(--red); text-decoration: underline; }

/* ---------- Leistungen (Liste) ---------- */
.svc-list { border-bottom: 1px solid var(--line); }
.svc { position: relative; }
.svc::before {
	content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line);
	transform-origin: left;
}
.svc__link {
	position: relative; isolation: isolate;
	display: grid; grid-template-columns: 52px minmax(0, 1fr) minmax(0, 1.15fr) 44px; align-items: center; gap: 32px;
	padding: 30px 8px 30px 0;
}
.svc__link::before {
	content: ""; position: absolute; inset: 0 -24px; z-index: -1; background: var(--tint);
	transform: scaleY(0); transform-origin: bottom; transition: transform .5s var(--ease-out);
}
.svc__icon { width: 52px; height: 52px; display: grid; place-items: center; color: var(--ink); transition: color .35s; }
.svc__icon .yaka-icon { width: 40px; height: 40px; }
.svc__title { font-family: var(--f-head); font-weight: 600; font-size: var(--fs-lg); letter-spacing: -.02em; line-height: 1.15; transition: transform .5s var(--ease-out); }
.svc__text { color: var(--stone); font-size: var(--fs-sm); line-height: 1.55; }
.svc__go { justify-self: end; width: 44px; height: 44px; display: grid; place-items: center; border: 1.5px solid var(--line); transition: background-color .35s, border-color .35s, color .35s; }
.svc__go .yaka-icon { width: 20px; height: 20px; transition: transform .5s var(--ease-out); }
.svc__link:hover::before, .svc__link:focus-visible::before { transform: scaleY(1); }
.svc__link:hover .svc__icon { color: var(--red); }
.svc__link:hover .svc__title { transform: translateX(8px); }
.svc__link:hover .svc__go { background: var(--red); border-color: var(--red); color: #fff; }
.svc__link:hover .svc__go .yaka-icon { transform: translateX(3px); }

/* Linien zeichnen sich beim Einscrollen */
.reveal-ready [data-lines] > *::before { transform: scaleX(0); transition: transform 1.2s var(--ease-in-out); transition-delay: calc(var(--i, 0) * 90ms); }
.reveal-ready [data-lines].is-in > *::before { transform: scaleX(1); }
.reveal-ready [data-lines] .svc__link { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .9s var(--ease-out); transition-delay: calc(var(--i, 0) * 90ms + 150ms); }
.reveal-ready [data-lines].is-in .svc__link { opacity: 1; transform: none; }

/* ---------- Leistungen (ausführlich) ---------- */
.svc-detail-list { display: grid; gap: clamp(64px, 8vw, 120px); }
.svc-detail { display: grid; grid-template-columns: repeat(12, 1fr); gap: 32px; align-items: center; }
.svc-detail__media { grid-column: 1 / span 5; position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--tint); }
.svc-detail__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.svc-detail__media:hover img { transform: scale(1.04); }
.svc-detail__icon { position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink); }
.svc-detail__icon .yaka-icon { width: 34%; height: auto; stroke-width: 1.25; }
.svc-detail__media::after {
	content: ""; position: absolute; left: 0; bottom: 0; width: 72px; height: 6px; background: var(--red);
}
.svc-detail__body { grid-column: 7 / span 6; }
.svc-detail:nth-child(even) .svc-detail__media { grid-column: 8 / span 5; grid-row: 1; }
.svc-detail:nth-child(even) .svc-detail__body { grid-column: 1 / span 6; grid-row: 1; }
.svc-detail__title { font-size: var(--fs-xl); margin-bottom: 18px; }
.svc-detail__title a { transition: color .3s; }
.svc-detail__title a:hover { color: var(--red); }
.svc-detail__text { color: var(--stone); font-size: var(--fs-md); line-height: 1.55; margin-bottom: 28px; }
.svc-detail .checklist { margin-bottom: 32px; }

.checklist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; font-size: var(--fs-sm); line-height: 1.5; padding-top: 12px; border-top: 1px solid var(--line); }
.checklist .yaka-icon { width: 18px; height: 18px; margin-top: 2px; color: var(--red); stroke-width: 3; }

/* ---------- Ein Ansprechpartner (Schaltplan) ---------- */
.hub__inner { display: grid; grid-template-columns: repeat(12, 1fr); gap: 48px 32px; align-items: center; }
.hub__text { grid-column: 1 / span 4; }
.hub__text .section-head__title { margin-bottom: 24px; }
.hub__text p { color: var(--stone); }
.hub__text p:last-child { margin-top: 28px; color: var(--ink); }
.scheme { grid-column: 6 / span 7; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; margin-top: 40px; }
.hub__inner > .scheme:only-child { grid-column: 1 / -1; max-width: 980px; margin-inline: auto; width: 100%; }
.scheme__col { position: relative; }
.scheme__legend {
	position: absolute; bottom: 100%; left: 0; margin: 0 0 16px;
	display: flex; align-items: center; gap: 10px; font-size: var(--fs-xs); font-weight: 600; color: var(--stone); white-space: nowrap;
}
.scheme__col--partner .scheme__legend { left: auto; right: 0; }
.scheme__key { width: 28px; height: 2px; background: var(--ink); }
.scheme__key--dash { background: repeating-linear-gradient(90deg, var(--stone) 0 5px, transparent 5px 9px); }
.scheme__list { position: relative; display: grid; gap: 10px; }
.scheme__col--own .scheme__list { padding-right: 34px; }
.scheme__col--partner .scheme__list { padding-left: 34px; }
.scheme__item {
	--h: 50px;
	position: relative; display: flex; align-items: center; gap: 12px;
	min-height: var(--h); padding: 8px 14px;
	background: #fff; border: 1px solid var(--line);
	font-family: var(--f-head); font-weight: 600; font-size: .875rem; line-height: 1.25; letter-spacing: -.01em;
}
.scheme__item .yaka-icon { width: 26px; height: 26px; color: var(--ink); }
.scheme__col--partner .scheme__item .yaka-icon { color: var(--stone); }
/* Anschlussleitungen */
.scheme__item::after { content: ""; position: absolute; top: 50%; height: 2px; margin-top: -1px; width: 34px; }
.scheme__col--own .scheme__item::after { left: 100%; background: var(--ink); transform-origin: left; }
.scheme__col--partner .scheme__item::after { right: 100%; background: repeating-linear-gradient(90deg, var(--stone) 0 5px, transparent 5px 9px); transform-origin: right; }
.scheme__list::before { content: ""; position: absolute; top: 25px; bottom: 25px; width: 2px; }
.scheme__col--own .scheme__list::before { right: 0; background: var(--ink); }
.scheme__col--partner .scheme__list::before { left: 0; background: repeating-linear-gradient(180deg, var(--stone) 0 5px, transparent 5px 9px); }
.scheme__hub { position: relative; padding: 0 34px; }
.scheme__hub::before, .scheme__hub::after { content: ""; position: absolute; top: 50%; width: 34px; height: 2px; margin-top: -1px; }
.scheme__hub::before { left: 0; background: var(--ink); transform-origin: left; }
.scheme__hub::after { right: 0; background: repeating-linear-gradient(90deg, var(--stone) 0 5px, transparent 5px 9px); transform-origin: right; }
.scheme__node {
	width: 168px; padding: 26px 18px 22px; text-align: center;
	background: var(--ink); color: #fff; --logo-d: #fff;
	display: grid; justify-items: center; gap: 4px;
}
.scheme__logo { width: 100px; margin-bottom: 12px; }
.scheme__node strong { font-family: var(--f-head); font-size: 1rem; letter-spacing: .02em; }
.scheme__node span { font-size: var(--fs-xs); color: var(--on-dark-muted); }

.reveal-ready .scheme__item { opacity: 0; transform: translateY(10px); transition: opacity .6s, transform .8s var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms); }
.reveal-ready .scheme__item::after { transform: scaleX(0); transition: transform .6s var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms + 400ms); }
.reveal-ready .scheme__list::before { transform: scaleY(0); transition: transform .8s var(--ease-in-out) .7s; }
.reveal-ready .scheme__hub::before, .reveal-ready .scheme__hub::after { transform: scaleX(0); transition: transform .5s var(--ease-out) 1.2s; }
.reveal-ready .scheme__node { opacity: 0; transform: scale(.94); transition: opacity .8s, transform 1s var(--ease-out); }
.reveal-ready .scheme.is-in .scheme__item, .reveal-ready .scheme.is-in .scheme__node { opacity: 1; transform: none; }
.reveal-ready .scheme.is-in .scheme__item::after, .reveal-ready .scheme.is-in .scheme__hub::before, .reveal-ready .scheme.is-in .scheme__hub::after { transform: scaleX(1); }
.reveal-ready .scheme.is-in .scheme__list::before { transform: scaleY(1); }

/* ---------- Ablauf mit Maßkette ---------- */
.process__track { position: relative; --p: 0; }
.process__chain { position: absolute; left: 0; right: 0; top: 22px; height: 2px; background: var(--line); }
.process__chain-fill { position: absolute; inset: 0; background: var(--red); transform-origin: left; transform: scaleX(var(--p)); }
.process__steps { position: relative; display: grid; grid-template-columns: repeat(var(--steps, 4), minmax(0, 1fr)); gap: 32px; counter-reset: step; }
.process__step { position: relative; padding-right: 12px; }
.process__num {
	position: relative; display: grid; place-items: center;
	width: 46px; height: 46px; margin-bottom: 32px;
	background: #fff; border: 2px solid var(--line);
	font-family: var(--f-head); font-weight: 700; font-size: 1rem;
	transition: background-color .4s, border-color .4s, color .4s;
}
.process__step.is-active .process__num { background: var(--red); border-color: var(--red); color: #fff; }
.process__title { font-size: var(--fs-lg); margin-bottom: 14px; }
.process__text { color: var(--stone); font-size: var(--fs-sm); line-height: 1.6; }

/* ---------- Referenzen ---------- */
.refs__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px 32px; }
.ref { margin: 0; }
.ref--lead { grid-column: 1 / -1; }
.ref__compare { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--tint); --pos: 50%; user-select: none; }
.ref--lead .ref__compare { aspect-ratio: 16 / 8; }
.ref__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ref__before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ref__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; pointer-events: none; }
.ref__handle span {
	position: absolute; top: 50%; left: 50%; width: 52px; height: 52px; transform: translate(-50%, -50%);
	background: var(--red); display: grid; place-items: center;
}
.ref__handle span::before, .ref__handle span::after {
	content: ""; position: absolute; top: 50%; width: 9px; height: 9px; margin-top: -5px;
	border: solid #fff; border-width: 0 0 2px 2px;
}
.ref__handle span::before { left: 13px; transform: rotate(45deg); }
.ref__handle span::after { right: 13px; transform: rotate(-135deg); }
.ref__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.ref__range:focus-visible + * { outline: none; }
.ref__compare:focus-within .ref__handle span { outline: 2px solid #fff; outline-offset: 3px; }
.ref__tag { position: absolute; top: 16px; padding: 6px 12px; background: rgba(26, 26, 26, .82); color: #fff; font-size: var(--fs-xs); font-weight: 600; pointer-events: none; }
.ref__tag--before { left: 16px; }
.ref__tag--after { right: 16px; }
.ref__caption { padding-top: 20px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; }
.ref__caption strong { font-family: var(--f-head); font-size: var(--fs-md); }
.ref__caption span { color: var(--stone); font-size: var(--fs-sm); }
.ref__caption p { flex-basis: 100%; color: var(--stone); font-size: var(--fs-sm); margin: 4px 0 0; max-width: 70ch; }

/* ---------- Abschluss-Aufruf ---------- */
.cta { position: relative; overflow: hidden; background: var(--ink); color: #fff; padding-block: clamp(84px, 9vw, 140px); --logo-d: #fff; }
.cta__inner { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(12, 1fr); gap: 40px 32px; align-items: end; }
.cta__text { grid-column: 1 / span 7; }
.cta__title { font-size: var(--fs-xl); max-width: 14ch; margin-bottom: 24px; }
.cta__text p { color: var(--on-dark-muted); max-width: 46ch; font-size: var(--fs-md); line-height: 1.55; }
.cta__actions { grid-column: 9 / span 4; display: grid; gap: 22px; justify-items: start; }
.cta__line { display: flex; align-items: center; gap: 16px; transition: color .3s; }
.cta__line .yaka-icon { width: 46px; height: 46px; padding: 11px; border: 1px solid var(--on-dark-line); transition: border-color .3s, background-color .3s; }
.cta__line span { display: grid; font-family: var(--f-head); font-weight: 600; font-size: var(--fs-md); line-height: 1.25; }
.cta__line small { font-family: var(--f-body); font-weight: 500; font-size: var(--fs-xs); color: var(--on-dark-muted); }
.cta__line:hover .yaka-icon { background: var(--red); border-color: var(--red); }
.cta__mark { position: absolute; right: -6%; bottom: -14%; width: min(720px, 70vw); opacity: .06; pointer-events: none; }
.cta__mark .lg-r, .cta__mark .lg-g { fill: #fff; }

/* ==========================================================================
   Unterseiten
   ========================================================================== */
.page-hero { position: relative; overflow: hidden; background: var(--ink); color: #fff; }
.page-hero__inner { padding-top: calc(var(--header-h) + clamp(64px, 8vw, 120px)); padding-bottom: clamp(64px, 7vw, 104px); position: relative; z-index: 1; }
.page-hero__back { margin-bottom: 22px; font-size: var(--fs-sm); }
.page-hero__back a { display: inline-flex; align-items: center; gap: 10px; color: var(--on-dark-muted); transition: color .3s; }
.page-hero__back a::before { content: ""; width: 22px; height: 2px; background: var(--red); transition: width .4s var(--ease-out); }
.page-hero__back a:hover { color: #fff; }
.page-hero__back a:hover::before { width: 34px; }
.page-hero__title { font-size: clamp(2.5rem, 1.5rem + 4vw, 5rem); letter-spacing: -.035em; line-height: 1.02; max-width: 18ch; }
.page-hero__lead { margin: 28px 0 0; max-width: 58ch; color: #C9CCD2; font-size: var(--fs-md); line-height: 1.55; }
.page-hero__rule { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--red); transform-origin: left; }
.page-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.page-hero__mark { position: absolute; right: -4%; bottom: -10%; width: min(640px, 60vw); opacity: .08; }
.page-hero__mark .lg-d, .page-hero__mark .lg-g { fill: #fff; }
.page-hero--404 { min-height: 86vh; display: flex; align-items: center; }

.prose { max-width: 68ch; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem); margin-top: 2em; }
.prose h3 { font-size: var(--fs-md); margin-top: 1.8em; }
.prose p, .prose li { color: #3A3D42; }
.prose a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.prose ul { display: grid; gap: .7em; }
.prose ul li { position: relative; padding-left: 26px; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; background: var(--red); }
.prose ol { list-style: decimal; padding-left: 1.3em; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose img { margin-block: 1.8em; }
.prose .wp-block-image figcaption { font-size: var(--fs-xs); color: var(--stone); }

.plain-page { padding: calc(var(--header-h) + 80px) 0 var(--section); }
.plain-page__title { font-size: var(--fs-xl); margin-bottom: 40px; }
.post-teaser { padding: 24px 0; border-top: 1px solid var(--line); }
.post-teaser h2 { font-size: var(--fs-lg); margin-bottom: 8px; }

/* Einzelleistung */
.single-svc { display: grid; grid-template-columns: repeat(12, 1fr); gap: 48px 32px; align-items: start; }
.single-svc__main { grid-column: 1 / span 7; }
.single-svc__image { margin: 0 0 48px; aspect-ratio: 16 / 10; overflow: hidden; }
.single-svc__image img { width: 100%; height: 100%; object-fit: cover; }
.single-svc__main .prose p:first-child { font-size: var(--fs-md); line-height: 1.6; color: var(--ink); }
.single-svc__aside { grid-column: 9 / span 4; display: grid; gap: 24px; position: sticky; top: calc(var(--header-h) + 24px); }
.aside-box { padding: 32px; border: 1px solid var(--line); }
.aside-box__title { font-size: var(--fs-md); margin-bottom: 20px; }
.aside-box .checklist { grid-template-columns: 1fr; }
.aside-box--dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.aside-box--dark p { color: var(--on-dark-muted); font-size: var(--fs-sm); margin-bottom: 24px; }
.aside-box__line { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; font-family: var(--f-head); font-weight: 600; }
.aside-box__line .yaka-icon { width: 18px; height: 18px; color: var(--red); }

/* Fachpartner */
.partners { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-left: 1px solid var(--line); }
.partner { position: relative; padding: 36px 28px 40px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.partner::before { content: ""; position: absolute; left: -1px; right: -1px; top: 0; height: 1px; background: var(--line); transform-origin: left; }
.partner__icon { height: 64px; display: flex; align-items: center; margin-bottom: 28px; color: var(--ink); }
.partner__icon .yaka-icon { width: 52px; height: 52px; stroke-width: 1.6; }
.partner__logo { max-height: 56px; width: auto; object-fit: contain; }
.partner__title { font-size: var(--fs-lg); margin-bottom: 12px; }
.partner__text { color: var(--stone); font-size: var(--fs-sm); line-height: 1.6; }
.partner__company { margin-top: 18px; font-size: var(--fs-sm); font-weight: 600; }
.partner__company a { color: var(--red); }
.reveal-ready [data-lines] .partner > * { opacity: 0; transform: translateY(12px); transition: opacity .7s, transform .9s var(--ease-out); transition-delay: calc(var(--i, 0) * 90ms + 200ms); }
.reveal-ready [data-lines].is-in .partner > * { opacity: 1; transform: none; }

/* Über uns */
.about { display: grid; grid-template-columns: repeat(12, 1fr); gap: 48px 32px; align-items: start; }
.about__text { grid-column: 1 / span 8; }
.about--image .about__image { grid-column: 1 / span 5; margin: 0; position: sticky; top: calc(var(--header-h) + 24px); }
.about--image .about__image img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.about--image .about__text { grid-column: 7 / span 6; }
.about__text > p:first-child { font-family: var(--f-head); font-weight: 600; font-size: var(--fs-lg); line-height: 1.35; letter-spacing: -.015em; color: var(--ink); }

/* Kontakt */
.contact { display: grid; grid-template-columns: repeat(12, 1fr); gap: 56px 32px; align-items: start; }
.contact__form { grid-column: 1 / span 7; }
.contact__info { grid-column: 9 / span 4; position: sticky; top: calc(var(--header-h) + 24px); }
.contact__heading { font-size: var(--fs-lg); margin-bottom: 28px; }
.contact__list { border-top: 1px solid var(--line); }
.contact__list li { border-bottom: 1px solid var(--line); }
.contact__list a, .contact__static { display: flex; align-items: center; gap: 18px; padding: 18px 0; }
.contact__list .yaka-icon { width: 48px; height: 48px; padding: 12px; background: var(--ink); color: #fff; transition: background-color .3s; }
.contact__list a:hover .yaka-icon { background: var(--red); }
.contact__list span { display: grid; font-family: var(--f-head); font-weight: 600; line-height: 1.3; word-break: break-word; }
.contact__list small { font-family: var(--f-body); font-weight: 500; font-size: var(--fs-xs); color: var(--stone); }
.contact__area { margin-top: 28px; padding: 24px; background: var(--tint); font-size: var(--fs-sm); }

/* Formular */
.form { display: grid; gap: 22px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field { display: grid; gap: 8px; }
.field label, .field__label { font-size: var(--fs-sm); font-weight: 600; }
.field__opt { font-weight: 400; color: var(--stone); font-size: var(--fs-xs); margin-left: 4px; }
.field input, .field textarea {
	width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
	padding: 14px 16px; min-height: 54px;
	background: #fff; border: 1.5px solid #D1D5DB; border-radius: 0;
	transition: border-color .25s, box-shadow .25s;
	-webkit-appearance: none; appearance: none;
}
.field textarea { resize: vertical; min-height: 150px; line-height: 1.55; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(214, 40, 40, .14); }
.field input::placeholder, .field textarea::placeholder { color: #9CA3AF; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: block; padding: 10px 14px; border: 1.5px solid #D1D5DB; font-size: .875rem; font-weight: 500; transition: background-color .25s, border-color .25s, color .25s; }
.chip:hover span { border-color: var(--ink); }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 2px; }
.check { display: flex; gap: 14px; align-items: flex-start; font-size: var(--fs-sm); color: #3A3D42; line-height: 1.55; cursor: pointer; }
.check input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--red); }
.check a { color: var(--red); text-decoration: underline; }
.form__submit { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; margin-top: 6px; }
.form__note { font-size: var(--fs-xs); color: var(--stone); margin: 0; }
.form__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-notice { display: flex; gap: 16px; align-items: flex-start; padding: 22px 24px; margin-bottom: 28px; font-weight: 500; }
.form-notice:focus { outline: none; }
.form-notice--ok { background: var(--ink); color: #fff; }
.form-notice--ok .yaka-icon { width: 26px; height: 26px; color: var(--red); stroke-width: 3; }
.form-notice--error { background: #FDECEC; color: #8A1515; border-left: 4px solid var(--red); }
.form.is-sending .btn { pointer-events: none; opacity: .7; }

/* ==========================================================================
   Fußzeile
   ========================================================================== */
.site-footer { background: var(--ink); color: var(--on-dark-muted); --logo-d: #fff; border-top: 1px solid var(--on-dark-line); font-size: var(--fs-sm); }
.site-footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1.2fr; gap: 48px 32px; padding-block: clamp(64px, 7vw, 96px); }
.site-footer__logo { width: 190px; margin-bottom: 26px; }
.site-footer__brand p { max-width: 34ch; }
.site-footer__title { font-size: var(--fs-sm); color: #fff; letter-spacing: 0; margin-bottom: 20px; }
.site-footer__list { display: grid; gap: 10px; }
.site-footer__list a { transition: color .3s; }
.site-footer__list a:hover { color: #fff; }
.site-footer__address { margin-bottom: 14px; line-height: 1.6; }
.site-footer__address strong { color: #fff; font-weight: 600; }
.site-footer__list--contact a { color: #fff; }
.site-footer__list--contact a:hover { color: var(--red); }
.is-muted { color: var(--on-dark-muted); }
.site-footer__bottom { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; padding-block: 26px; border-top: 1px solid var(--on-dark-line); font-size: var(--fs-xs); }
.site-footer__bottom p { margin: 0; }
.site-footer__legal { display: flex; gap: 24px; }
.site-footer__legal a:hover { color: #fff; }
.site-footer__credit { opacity: .7; }
.site-footer__credit a { color: #fff; font-weight: 600; transition: color .3s; }
.site-footer__credit a:hover { color: var(--red); }
.site-footer__social { display: flex; gap: 6px; margin-left: auto; }
.site-footer__social a { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--on-dark-line); color: #fff; transition: background-color .3s, border-color .3s; }
.site-footer__social a:hover { background: var(--red); border-color: var(--red); }
.site-footer__social .yaka-icon { width: 18px; height: 18px; }

/* Schnellkontakt (Handy) */
.quickbar { display: none; }

/* Seitenwechsel-Vorhang */
.page-veil { position: fixed; inset: 0; z-index: 2500; background: var(--ink); pointer-events: none; transform: scaleY(0); transform-origin: bottom; }
.page-veil::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--red); }
.is-leaving .page-veil { transform: scaleY(1); transition: transform .45s var(--ease-in-out); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1180px) {
	.site-header__phone span { display: none; }
	.site-header__inner { gap: 24px; }
	.site-nav__list a { padding-inline: 10px; }
	.site-nav__list a::after { left: 10px; right: 10px; }
	.hub__text { grid-column: 1 / -1; max-width: 640px; }
	.scheme { grid-column: 1 / -1; margin-top: 56px; }
	.partners { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
	:root { --header-h: 72px; }
	.site-nav, .site-header__cta, .site-header__phone { display: none; }
	.menu-toggle { display: inline-flex; }
	.site-header__logo { width: 156px; }

	.section-head { grid-template-columns: 1fr; }
	.section-head__title, .section-head__text { grid-column: 1; }

	.svc__link { grid-template-columns: 44px minmax(0, 1fr) 40px; gap: 6px 18px; padding: 24px 0; }
	.svc__icon { width: 44px; height: 44px; grid-row: span 2; align-self: start; }
	.svc__icon .yaka-icon { width: 34px; height: 34px; }
	.svc__title { grid-column: 2; }
	.svc__text { grid-column: 2; }
	.svc__go { grid-column: 3; grid-row: 1 / span 2; align-self: center; width: 40px; height: 40px; }
	.svc__link::before { inset: 0 calc(var(--gutter) * -1); }

	.svc-detail { grid-template-columns: 1fr; gap: 28px; }
	.svc-detail__media, .svc-detail__body,
	.svc-detail:nth-child(even) .svc-detail__media, .svc-detail:nth-child(even) .svc-detail__body { grid-column: 1; grid-row: auto; }

	.process__chain { top: 0; bottom: 0; left: 22px; right: auto; width: 2px; height: auto; }
	.process__chain-fill { transform-origin: top; transform: scaleY(var(--p)); }
	.process__steps { grid-template-columns: 1fr; gap: 44px; }
	.process__step { padding-left: 76px; padding-right: 0; }
	.process__num { position: absolute; left: 0; top: -6px; margin: 0; }

	.refs__grid { grid-template-columns: 1fr; }
	.ref--lead .ref__compare, .ref__compare { aspect-ratio: 4 / 3; }

	.cta__text, .cta__actions { grid-column: 1 / -1; }

	.single-svc__main, .single-svc__aside { grid-column: 1 / -1; }
	.single-svc__aside { position: static; }

	.about__text, .about--image .about__image, .about--image .about__text { grid-column: 1 / -1; }
	.about--image .about__image { position: static; }

	.contact__form, .contact__info { grid-column: 1 / -1; }
	.contact__info { position: static; }

	.site-footer__top { grid-template-columns: 1fr 1fr; }
	.site-footer__brand { grid-column: 1 / -1; }

	/* Schaltplan untereinander */
	.scheme { grid-template-columns: 1fr; gap: 0; margin-top: 32px; }
	.scheme__hub { order: -1; padding: 0 0 34px; justify-self: start; }
	.scheme__hub::before { left: 22px; top: auto; bottom: 0; width: 2px; height: 34px; transform-origin: top; }
	.scheme__hub::after { display: none; }
	.scheme__node { width: auto; grid-auto-flow: column; justify-items: start; align-items: center; text-align: left; gap: 0 14px; padding: 16px 20px; }
	.scheme__logo { width: 64px; margin: 0; grid-row: span 2; }
	.scheme__col { padding-left: 23px; }
	.scheme__col--partner { margin-top: 0; padding-top: 52px; }
	.scheme__col--own { padding-top: 40px; }
	.scheme__col--own .scheme__list, .scheme__col--partner .scheme__list { padding: 0 0 0 30px; }
	.scheme__legend, .scheme__col--partner .scheme__legend { position: static; margin: 0 0 14px 30px; }
	.scheme__col--own .scheme__list::before, .scheme__col--partner .scheme__list::before { left: 0; right: auto; top: -40px; }
	.scheme__col--partner .scheme__list::before { top: -52px; }
	.scheme__col--own .scheme__item::after, .scheme__col--partner .scheme__item::after { left: auto; right: 100%; width: 30px; transform-origin: right; }
	.scheme__col--own .scheme__item::after { background: var(--ink); }
	.scheme__col--own .scheme__list::before { bottom: 25px; }
	.scheme__col--own { position: relative; }
	.scheme__col--own::after { content: ""; position: absolute; left: 23px; top: 0; bottom: 0; width: 2px; background: var(--ink); }
	.scheme__col--partner .scheme__legend { margin-left: 30px; }
	.reveal-ready .scheme__hub::before { transform: scaleY(0); }
	.reveal-ready .scheme.is-in .scheme__hub::before { transform: scaleY(1); }
	.reveal-ready .scheme__col--own::after { transform: scaleY(0); transform-origin: top; transition: transform .8s var(--ease-in-out) .5s; }
	.reveal-ready .scheme.is-in .scheme__col--own::after { transform: scaleY(1); }

	.plan { right: -34vw; width: 120vw; top: calc(var(--header-h) + 10px); bottom: auto; transform: none; opacity: .22; }
}

@media (max-width: 760px) {
	.form__row { grid-template-columns: 1fr; }
	.checklist { grid-template-columns: 1fr; }
	.partners { grid-template-columns: 1fr; }
	.hero__inner { padding-top: calc(var(--header-h) + 48px); padding-bottom: 64px; }
	.hero__title { max-width: none; }
	.hero__actions .btn { flex: 1 1 100%; }
	.hero__foot-inner { gap: 10px 24px; }
	.hero__scroll { display: none; }
	.site-footer__top { grid-template-columns: 1fr; }
	.site-footer__social { margin-left: 0; }

	.quickbar {
		display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
		position: fixed; left: 0; right: 0; bottom: 0; z-index: 800;
		background: var(--ink); border-top: 1px solid var(--on-dark-line);
		padding-bottom: env(safe-area-inset-bottom);
		transform: translateY(100%); transition: transform .5s var(--ease-out);
	}
	.quickbar.is-visible { transform: none; }
	.quickbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 62px; color: #fff; font-size: .75rem; font-weight: 600; }
	.quickbar a + a { border-left: 1px solid var(--on-dark-line); }
	.quickbar a.is-primary { background: var(--red); }
	.quickbar .yaka-icon { width: 20px; height: 20px; }
	body:has(.quickbar) .site-footer { padding-bottom: 62px; }
	.menu-open .quickbar { transform: translateY(100%); }
}

/* ==========================================================================
   Weniger Bewegung gewünscht
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
	.js [data-hero-step], .reveal-ready [data-reveal] { opacity: 1 !important; transform: none !important; clip-path: none !important; }
	.reveal-ready [data-reveal="image"]::before { display: none; }
	.js .hero__line > span { transform: none !important; }
	.plan__line, .plan__dims path { stroke-dashoffset: 0 !important; }
	.plan__line--red { fill-opacity: 1 !important; }
	.page-veil { display: none; }
}

/* Nachträge */
.is-ready .page-hero__rule[data-hero-step] { transform: scaleX(1); transition-delay: .5s; }
.section--tint .svc__link::before { background: #fff; }
.svc-detail__media:not(:has(img)):not(:has(video)) {
	background-color: var(--tint);
	background-image:
		linear-gradient(var(--line) 1px, transparent 1px),
		linear-gradient(90deg, var(--line) 1px, transparent 1px);
	background-size: 32px 32px;
	background-position: -1px -1px;
}
.svc-detail__icon .yaka-icon { background: var(--tint); padding: 4%; box-sizing: content-box; }

/* ==========================================================================
   Version 2: Mehrseitige Struktur & Bearbeiten
   ========================================================================== */

/* Dropdown im Hauptmenü */
.site-nav__list > li { position: relative; }
.site-nav__list > .menu-item-has-children > a { padding-right: 28px; }
.site-nav__list > .menu-item-has-children::after {
	content: ""; position: absolute; right: 12px; top: 50%; width: 6px; height: 6px; pointer-events: none;
	border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-75%) rotate(45deg);
	transition: transform .3s var(--ease-out);
}
.site-nav__list > .menu-item-has-children:hover::after,
.site-nav__list > .menu-item-has-children:focus-within::after { transform: translateY(-25%) rotate(-135deg); }
.site-nav__list > .menu-item-has-children > a::after { right: 28px; }
.site-nav__list .current-menu-ancestor > a::after,
.site-nav__list .current-menu-parent > a::after { transform: scaleX(1); transform-origin: left; }
.site-nav .sub-menu {
	position: absolute; top: calc(100% + 6px); left: 0; z-index: 20;
	min-width: 300px; padding: 10px 0;
	background: #fff; color: var(--ink);
	box-shadow: 0 18px 50px rgba(26, 26, 26, .16), 0 0 0 1px var(--line);
	opacity: 0; visibility: hidden; transform: translateY(10px);
	transition: opacity .25s, transform .4s var(--ease-out), visibility 0s .4s;
}
.site-nav .sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.site-nav .sub-menu::after { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 3px; background: var(--red); }
.site-nav li:hover > .sub-menu,
.site-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; transition: opacity .25s, transform .4s var(--ease-out); }
.site-nav .sub-menu a {
	display: flex; align-items: center; justify-content: space-between; gap: 16px;
	padding: 11px 22px; font-family: var(--f-head); font-weight: 500; font-size: .9375rem; white-space: nowrap;
	transition: background-color .25s, color .25s, padding .35s var(--ease-out);
}
.site-nav .sub-menu a::after {
	content: ""; width: 7px; height: 7px; border: solid currentColor; border-width: 1.5px 1.5px 0 0; transform: rotate(45deg);
	opacity: 0; transition: opacity .25s, transform .35s var(--ease-out);
}
.site-nav .sub-menu a:hover, .site-nav .sub-menu a:focus-visible { background: var(--tint); color: var(--red); padding-left: 26px; }
.site-nav .sub-menu a:hover::after { opacity: 1; }
.site-nav .sub-menu .current-menu-item > a { color: var(--red); }

/* Untermenü im Handy-Menü */
.mobile-menu__list .sub-menu { padding: 6px 0 14px; border-bottom: 1px solid var(--on-dark-line); }
.mobile-menu__list .sub-menu a {
	font-family: var(--f-body); font-weight: 500; font-size: 1rem; letter-spacing: 0;
	padding: 8px 0 8px 18px; border-bottom: 0; color: var(--on-dark-muted);
	position: relative;
}
.mobile-menu__list .sub-menu a::before { content: ""; position: absolute; left: 0; top: 50%; width: 8px; height: 2px; background: var(--red); }
.mobile-menu__list .menu-item-has-children > a { border-bottom: 0; }

/* „Bearbeiten“-Knöpfe (nur angemeldet sichtbar) */
.section, .intro-about { position: relative; }
.edit-pen {
	position: absolute; z-index: 60; top: 16px; right: 16px;
	display: inline-flex; align-items: center; gap: 7px;
	padding: 8px 14px 8px 11px;
	background: #fff; color: var(--ink);
	border: 1.5px solid var(--red);
	font: 600 .8125rem/1 var(--f-head);
	box-shadow: 0 6px 20px rgba(26, 26, 26, .18);
	transition: background-color .2s, color .2s, transform .2s;
}
.edit-pen svg { width: 15px; height: 15px; color: var(--red); transition: color .2s; }
.edit-pen:hover, .edit-pen:focus-visible { background: var(--red); color: #fff; transform: translateY(-1px); }
.edit-pen:hover svg, .edit-pen:focus-visible svg { color: #fff; }
.edit-pen--second { top: 60px; }
.hero > .edit-pen, .page-hero > .edit-pen { top: calc(var(--header-h) + 16px); }
.hero > .edit-pen--second, .page-hero > .edit-pen--second { top: calc(var(--header-h) + 60px); }
@media (max-width: 760px) { .edit-pen { top: 10px; right: 10px; padding: 7px 10px; } .edit-pen--second { top: 50px; } }

/* Seitenkopf mit Bild */
.page-hero__media { position: absolute; inset: 0; z-index: 0; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero__media::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(90deg, rgba(26, 26, 26, .92) 0%, rgba(26, 26, 26, .7) 50%, rgba(26, 26, 26, .35) 100%);
}
.page-hero--image .page-hero__inner { padding-bottom: clamp(88px, 10vw, 150px); }
.page-hero__mark { z-index: 0; pointer-events: none; }

/* Startseite: Vorstellung mit Zahlen */
.intro-about__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 48px 32px; align-items: center; }
.intro-about__media { grid-column: 1 / span 5; position: relative; margin: 0; aspect-ratio: 4 / 5; overflow: hidden; background: var(--ink); }
.intro-about__media img { width: 100%; height: 100%; object-fit: cover; }
.intro-about__media.is-empty {
	display: grid; place-items: center; --logo-d: #fff;
	background-color: var(--ink);
	background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
	background-size: 40px 40px;
}
.intro-about__mark { width: 64%; }
.intro-about__media::after { content: ""; position: absolute; left: 0; bottom: 0; width: 88px; height: 6px; background: var(--red); }
.intro-about__body { grid-column: 7 / span 6; }
.intro-about__title { font-size: var(--fs-xl); max-width: 15ch; margin-bottom: 28px; }
.intro-about__body p { color: var(--stone); font-size: var(--fs-md); line-height: 1.6; max-width: 52ch; }
.intro-about__body p:last-child { margin-top: 32px; }

.stats { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); margin: clamp(64px, 8vw, 110px) 0 0; border-top: 1px solid var(--line); }
.stat { position: relative; display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 12px; padding: 32px 28px 0 0; }
.stat + .stat { padding-left: 32px; border-left: 1px solid var(--line); }
.stat::before { content: ""; position: absolute; left: 0; top: -1px; width: 56px; height: 3px; background: var(--red); transform-origin: left; }
.stat + .stat::before { left: 32px; }
.stat__value { margin: 0; font-family: var(--f-head); font-weight: 700; font-size: clamp(3rem, 1.9rem + 4.4vw, 5.75rem); line-height: .95; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.stat__label { color: var(--stone); font-size: var(--fs-sm); line-height: 1.5; max-width: 26ch; }

/* Über uns: Grundsätze */
.values__grid { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); border-top: 1px solid #D1D5DB; }
.value { position: relative; padding: 36px 32px 8px 0; }
.value + .value { padding-left: 32px; border-left: 1px solid #D1D5DB; }
.value::before { content: ""; position: absolute; left: 0; top: -1px; width: 56px; height: 3px; background: var(--red); transform-origin: left; }
.value + .value::before { left: 32px; }
.value__title { font-size: var(--fs-lg); margin-bottom: 14px; }
.value__text { color: var(--stone); max-width: 38ch; }
.reveal-ready [data-lines] .value > *, .reveal-ready [data-lines] .stat > * { opacity: 0; transform: translateY(14px); transition: opacity .7s, transform .9s var(--ease-out); transition-delay: calc(var(--i, 0) * 110ms + 200ms); }
.reveal-ready [data-lines].is-in .value > *, .reveal-ready [data-lines].is-in .stat > * { opacity: 1; transform: none; }

/* Referenzen-Seite */
.refs__empty { padding: 56px 24px; border: 1px dashed #C4C8CF; color: var(--stone); text-align: center; font-size: var(--fs-md); }

@media (max-width: 960px) {
	.intro-about__media, .intro-about__body { grid-column: 1 / -1; }
	.intro-about__media { aspect-ratio: 4 / 3; }
	.stats, .values__grid { grid-template-columns: 1fr; }
	.stat, .stat + .stat, .value, .value + .value { padding: 28px 0 22px; border-left: 0; }
	.stat + .stat, .value + .value { border-top: 1px solid var(--line); }
	.stat + .stat::before, .value + .value::before { left: 0; }
	.stat { flex-direction: column-reverse; }
}

/* Kopfzeile mit fünf Menüpunkten: nie umbrechen */
.site-nav__list a, .site-header__cta { white-space: nowrap; }
@media (max-width: 1320px) {
	.site-header__phone span { display: none; }
	.site-header__inner { gap: 24px; }
	.site-header__actions { gap: 14px; }
}
@media (max-width: 1180px) {
	.site-nav__list { gap: 0; }
	.site-nav__list a { padding-inline: 9px; font-size: .9rem; }
	.site-nav__list a::after { left: 9px; right: 9px; }
	.site-nav__list > .menu-item-has-children > a { padding-right: 24px; }
	.site-nav__list > .menu-item-has-children > a::after { right: 24px; }
	.site-nav__list > .menu-item-has-children::after { right: 9px; }
	.site-header__logo { width: 156px; }
}
@media (max-width: 1060px) {
	.site-nav, .site-header__cta, .site-header__phone { display: none; }
	.menu-toggle { display: inline-flex; margin-right: -8px; }
	.site-header__actions { margin-left: auto; }
}

/* Hinweis für Redakteure bei leeren Referenzen */
.refs__empty--editor { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 20px; border-color: var(--red); background: #fff; font-size: var(--fs-sm); }


/* ==========================================================================
   Version 2.2: Videos statt Bildern, Handy-Feinschliff
   ========================================================================== */

/* Videos verhalten sich wie Bilder */
.svc-detail__media video, .single-svc__image video, .page-hero__media video, .intro-about__media video {
	display: block; width: 100%; height: 100%; object-fit: cover;
}
.svc-detail__media video { transition: transform 1.2s var(--ease-out); }
.svc-detail__media:hover video { transform: scale(1.04); }
.about--image .about__image video { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

/* Lange Wörter auf schmalen Bildschirmen sauber trennen statt abschneiden */
h1, h2, h3, .hero__title, .page-hero__title { overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }

/* Leistungen antippen: sofort rot (Handy) */
.svc__link, .svc-detail__media, .svc-detail__title a, .svc-detail .link-line { -webkit-tap-highlight-color: transparent; }
.svc.is-touched .svc__link::before, .svc__link:active::before { transform: scaleY(1); }
.svc.is-touched .svc__icon, .svc__link:active .svc__icon,
.svc.is-touched .svc__title, .svc__link:active .svc__title { color: var(--red); }
.svc.is-touched .svc__go, .svc__link:active .svc__go { background: var(--red); border-color: var(--red); color: #fff; }
.svc__title { transition: transform .5s var(--ease-out), color .15s; }
.svc__icon { transition: color .15s; }
.svc__go { transition: background-color .15s, border-color .15s, color .15s; }
.svc-detail.is-touched .svc-detail__title a, .svc-detail__title a:active { color: var(--red); }
.svc-detail.is-touched .link-line, .svc-detail .link-line:active { color: var(--red); background-size: 30% 2px; }
.svc-detail.is-touched .svc-detail__media { outline: 3px solid var(--red); outline-offset: -3px; }
.svc-detail.is-touched .svc-detail__icon { color: var(--red); }

/* Handy: Kopfbereich mit Bild/Video wird vollständig gezeigt (nicht beschnitten) */
@media (max-width: 760px) {
	.hero--media { min-height: 0; }
	.hero--media .hero__media { position: relative; inset: auto; z-index: 0; margin-top: var(--header-h); }
	.hero--media .hero__video,
	.hero--media .hero__image {
		position: relative; inset: auto; display: block;
		width: 100%; height: auto; aspect-ratio: var(--ratio, 16 / 9); object-fit: cover;
	}
	.hero--media .hero__image { aspect-ratio: auto; }
	.hero--media .hero__media::after { background: linear-gradient(180deg, rgba(26, 26, 26, 0) 55%, var(--ink) 100%); }
	.hero--media .hero__inner { padding-top: 28px; padding-bottom: 56px; }
	.hero > .edit-pen { top: calc(var(--header-h) + 10px); }

	/* Unterseiten: Kopfbild bleibt Hintergrund, aber Text immer gut lesbar */
	.page-hero__media::after { background: linear-gradient(180deg, rgba(26, 26, 26, .55) 0%, rgba(26, 26, 26, .88) 100%); }
	.page-hero__title { font-size: clamp(2.125rem, 8.5vw, 2.75rem); }
	.hero__title { font-size: clamp(2.125rem, 9.6vw, 2.75rem); }
}
