/* ==========================================================
   SolarPlus AG – Eine Marke der Smart Buildings AG
   Gestaltung angelehnt an smart-buildings.ag, Akzentfarbe Solar Plus Gelb
   ========================================================== */

:root {
	--sun: #ffc800;          /* Solar Plus Gelb */
	--sun-strong: #f0b400;
	--sun-soft: #fff4cc;
	--ink: #12150e;
	--ink-soft: #1e2317;
	--muted: #5b614f;
	--mist: #f7f9f2;
	--line: #e8ebdf;
	--stone: #efefef;
	--white: #fff;
	--pad: max(20px, calc((100vw - 1280px) / 2));
	--space: clamp(72px, 8vw, 120px);
	--space-s: clamp(48px, 5vw, 72px);
	--r-s: 14px;
	--r: 20px;
	--r-m: 28px;
	--r-l: 40px;
	--shadow: 0 1px 2px #12150e0d, 0 8px 24px #12150e12;
	--shadow-h: 0 2px 4px #12150e0f, 0 18px 40px #12150e1c;
	--head: "Barlow", system-ui, sans-serif;
	--body: "Inter", system-ui, sans-serif;
	--h1: clamp(40px, 5.2vw, 72px);
	--h2: clamp(32px, 3.6vw, 52px);
	--h3: clamp(20px, 1.6vw, 23px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 100px; }
html, body { overflow-x: clip; }
body {
	margin: 0;
	font: 400 16px/1.65 var(--body);
	color: var(--ink);
	background: var(--white);
	-webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3, h4 { margin: 0; font-family: var(--head); font-weight: 600; color: var(--ink); text-wrap: balance; }
h1 { font-size: var(--h1); line-height: 1.04; letter-spacing: -.025em; }
h2 { font-size: var(--h2); line-height: 1.08; letter-spacing: -.02em; }
h3 { font-size: var(--h3); line-height: 1.25; letter-spacing: -.01em; }
strong { font-weight: 600; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
figure { margin: 0; }
::selection { background: var(--sun); color: var(--ink); }
.sp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sp-skip { position: absolute; left: -9999px; top: 8px; z-index: 200; background: var(--white); padding: 8px 14px; border-radius: 8px; }
.sp-skip:focus { left: 8px; }

/* WordPress Block-Grundlagen neutralisieren */
.sp-page > * { margin-top: 0; margin-bottom: 0; }
.wp-block-columns { display: flex; gap: 0; margin: 0; flex-wrap: nowrap; align-items: stretch; }
.wp-block-column { flex: 1 1 0; min-width: 0; }
.wp-block-group { margin: 0; }
.wp-block-group__inner-container { display: contents; }
.wp-block-image { margin: 0; }
.wp-block-image img { height: auto; max-width: 100%; vertical-align: bottom; }
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.wp-block-list { margin: 0; }

/* ---------- Typo-Bausteine ---------- */
.sp-eyebrow {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0 0 20px;
	font: 600 13px/1.2 var(--head);
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--muted);
}
.sp-eyebrow::before { content: ""; flex: none; width: 28px; height: 2px; border-radius: 2px; background: var(--sun); }
.sp-eyebrow--light { color: rgba(255, 255, 255, .72); }
.sp-lead { font-size: clamp(17px, 1.35vw, 19px); line-height: 1.65; color: var(--muted); }

/* ---------- Buttons ---------- */
.sp-btn,
.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	min-height: 52px;
	padding: 14px 26px;
	font: 600 16px/1.2 var(--head);
	letter-spacing: .005em;
	text-decoration: none;
	color: var(--ink);
	background: var(--white);
	border: 0;
	border-radius: 999px;
	box-shadow: var(--shadow);
	cursor: pointer;
	transition: background-color .25s, color .25s, box-shadow .25s, transform .25s;
}
.sp-btn:hover,
.wp-block-button__link:hover { transform: translateY(-1px); box-shadow: var(--shadow-h); }

/* Primär: Gelb mit Pfeil-Kreis */
.sp-btn--primary,
.is-style-primary .wp-block-button__link { background: var(--sun); padding-right: 6px; box-shadow: 0 6px 18px #ffc80040; }
.sp-btn--primary:hover,
.is-style-primary .wp-block-button__link:hover { background: var(--sun-strong); }
.is-style-primary .wp-block-button__link::after,
.sp-btn__arrow {
	content: "";
	flex: none;
	width: 40px;
	height: 40px;
	margin-left: 4px;
	border-radius: 50%;
	background: var(--ink) url("../icons/ui/arrow-white.svg") no-repeat center / 18px;
	transition: transform .25s;
}
.sp-btn--primary:hover .sp-btn__arrow,
.is-style-primary .wp-block-button__link:hover::after { transform: translateX(3px); }
.sp-btn--small { min-height: 44px; padding: 10px 20px; font-size: 15px; }
.sp-btn--small.sp-btn--primary { padding-right: 20px; }

/* Sekundär: weisse Pille */
.is-style-secondary .wp-block-button__link { background: var(--white); }

/* Dunkel */
.is-style-dark .wp-block-button__link { background: var(--ink); color: var(--sun); }
.is-style-dark .wp-block-button__link:hover { background: var(--ink-soft); }

.sp-btn--ghost { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ink); }

/* "Erfahren Sie mehr ->" */
.sp-more { margin: auto 0 0; padding-top: 22px; }
.sp-more a {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font: 600 16px/1 var(--head);
	text-decoration: none;
}
.sp-more a::after {
	content: "";
	width: 18px;
	height: 18px;
	background: url("../icons/ui/arrow.svg") no-repeat center / contain;
	transition: transform .25s;
}
.sp-more a:hover::after { transform: translateX(4px); }

/* Icons: gelber Kreis mit dunklem Linien-Icon */
.sp-ico::before {
	content: "";
	display: block;
	flex: none;
	width: 52px;
	height: 52px;
	margin: 0 0 26px;
	border-radius: 50%;
	background: var(--sun) no-repeat center / 26px;
	transition: transform .3s;
}
.sp-card:hover .sp-ico::before { transform: scale(1.06) rotate(-6deg); }
.sp-ico--solar::before { background-image: url("../icons/ui/solar.svg"); }
.sp-ico--batterie::before { background-image: url("../icons/ui/batterie.svg"); }
.sp-ico--ladestation::before { background-image: url("../icons/ui/ladestation.svg"); }
.sp-ico--philosophie::before { background-image: url("../icons/ui/philosophie.svg"); }
.sp-ico--kunde::before { background-image: url("../icons/ui/kunde.svg"); }
.sp-ico--innovation::before { background-image: url("../icons/ui/innovation.svg"); }
.sp-ico--vertrauen::before { background-image: url("../icons/ui/vertrauen.svg"); }
.sp-ico--expertise::before { background-image: url("../icons/ui/expertise.svg"); }
.sp-ico--werte::before { background-image: url("../icons/ui/werte.svg"); }
.sp-ico--margen::before { background-image: url("../icons/ui/margen.svg"); }
.sp-ico--support::before { background-image: url("../icons/ui/support.svg"); }
.sp-ico--telefon::before { background-image: url("../icons/ui/telefon.svg"); }
.sp-ico--mail::before { background-image: url("../icons/ui/mail.svg"); }
.sp-ico--standort::before { background-image: url("../icons/ui/standort.svg"); }
.sp-ico--sturm::before { background-image: url("../icons/ui/sturm.svg"); }
.sp-ico--inline { display: flex; align-items: center; gap: 18px; }
.sp-ico--inline::before { margin: 0; }

/* ---------- Header ---------- */
.sp-header {
	position: sticky;
	top: 0;
	z-index: 99;
	background: rgba(255, 255, 255, .92);
	-webkit-backdrop-filter: saturate(1.4) blur(12px);
	backdrop-filter: saturate(1.4) blur(12px);
	transition: box-shadow .3s;
}
.sp-header.is-scrolled { box-shadow: 0 1px 0 var(--line), 0 8px 24px #12150e0d; }
.sp-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: 104px;
	padding: 10px var(--pad);
}
.sp-header__logo img { width: 100px; height: auto; transition: width .3s; }
.sp-header.is-scrolled .sp-header__logo img { width: 84px; }
.sp-nav__cta.sp-btn--small { min-height: 50px; padding: 12px 24px; font-size: 16px; }
.sp-nav { display: flex; align-items: center; gap: 28px; }
.sp-nav__list { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.sp-nav__list > li { position: relative; }
.sp-nav__list a {
	display: block;
	padding: 10px 14px;
	font: 500 16.5px/1.2 var(--head);
	color: var(--ink-soft);
	text-decoration: none;
	border-radius: 999px;
	transition: background-color .2s;
}
.sp-nav__list a:hover { background: var(--mist); }
.sp-nav__list .current-menu-item > a,
.sp-nav__list .current-menu-ancestor > a,
.sp-nav__list .current-page-ancestor > a { background: var(--sun-soft); }
.sp-nav__list .menu-item-has-children > a::after {
	content: "";
	display: inline-block;
	width: 12px;
	height: 12px;
	margin-left: 6px;
	vertical-align: -1px;
	background: url("../icons/ui/chevron.svg") no-repeat center / contain;
}
.sp-nav__list .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 230px;
	margin: 0;
	padding: 8px;
	list-style: none;
	background: var(--white);
	border-radius: var(--r-s);
	box-shadow: var(--shadow-h);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity .2s, transform .2s, visibility .2s;
}
.sp-nav__list li:hover > .sub-menu,
.sp-nav__list li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.sp-nav__list .sub-menu a { padding: 10px 14px; border-radius: 10px; }
.sp-header__toggle { display: none; }

/* ---------- Layout: Sektionen ---------- */
.sp-section { padding: var(--space) var(--pad); }
.sp-section--tint { background: var(--mist); }
.sp-section--slim { padding-top: var(--space-s); padding-bottom: var(--space-s); }
.sp-section:not(.sp-section--tint) + .sp-section:not(.sp-section--tint):not(.sp-section--slim) { padding-top: 0; }
.sp-pagehead + .sp-section:not(.sp-section--tint) { padding-top: clamp(8px, 1.5vw, 24px); }
.sp-section > * + *,
.sp-section > .wp-block-group__inner-container > * + * { margin-top: clamp(40px, 4vw, 56px); }
.sp-section .sp-cards + .sp-cards,
.sp-section .sp-logos + .sp-logos { margin-top: 20px; }

.sp-head { max-width: 860px; }
.sp-head h2 + .sp-lead, .sp-head h2 + p { margin-top: 20px; }
.sp-head--split { max-width: none; gap: clamp(32px, 6vw, 96px); align-items: flex-end; }
.sp-head--split .sp-lead { margin: 0; }
.sp-head--split > .wp-block-column:first-child { flex: 1.15 1 0; }
.sp-head__action { display: flex; justify-content: flex-end; }

/* ---------- Hero (Startseite) ---------- */
.sp-hero {
	gap: clamp(32px, 5vw, 80px);
	align-items: center;
	padding: clamp(40px, 6vw, 88px) var(--pad) clamp(64px, 7vw, 104px);
}
.sp-hero__text { flex: 1.05 1 0; }
.sp-hero__text h1 { margin-bottom: 26px; }
.sp-hero__text .sp-lead { max-width: 560px; margin-bottom: 34px; }
.sp-hero__phone { margin-top: 22px; font-size: 15px; color: var(--muted); }
.sp-hero__phone a { color: var(--ink); font-weight: 500; text-decoration: none; }
.sp-hero__phone a:hover { text-decoration: underline; }
.sp-hero__media { position: relative; }

/* Illustration mit schwebenden Stichworten */
.sp-visual { position: relative; max-width: 600px; margin-left: auto; }
.sp-visual--plain { max-width: none; margin: 0; padding: clamp(16px, 2.4vw, 32px); background: var(--white); border-radius: var(--r-l); box-shadow: var(--shadow); }
.sp-visual.sp-visual--plain::before { display: none; }
.sp-pagehead__media .sp-visual { margin: 0 auto; max-width: 620px; }
.sp-split__media .sp-visual { margin: 0 auto; }
.sp-visual::before {
	content: "";
	position: absolute;
	inset: 6% 4% 2% 8%;
	border-radius: 50%;
	background: radial-gradient(circle, #fff4cc 0%, #fff4cc00 70%);
	z-index: -1;
}
.sp-visual__img { width: 100%; height: auto; }
.sp-badge {
	position: absolute;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	font: 600 14px/1.2 var(--head);
	color: var(--ink);
	white-space: nowrap;
	animation: spFloat 6s ease-in-out infinite;
}
.sp-badge::after { content: ""; order: 2; }
.sp-badge__ico {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: var(--sun) no-repeat center / 26px;
	box-shadow: 0 10px 24px #12150e24;
}
.sp-badge__ico.is-dark { background-color: var(--ink); }
.sp-badge { text-shadow: 0 0 6px #fff, 0 0 10px #fff; }
@keyframes spFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---------- Seitenkopf ---------- */
.sp-pagehead { padding: clamp(40px, 6vw, 88px) var(--pad) clamp(48px, 5vw, 72px); max-width: calc(980px + 2 * var(--pad)); }
.sp-pagehead h1 + .sp-lead { margin-top: 24px; max-width: 720px; }
.sp-pagehead--media { max-width: none; gap: clamp(32px, 5vw, 80px); align-items: center; }
.sp-pagehead--media .sp-pagehead__text { flex: 1 1 0; }
.sp-pagehead--media .sp-pagehead__media { flex: 1.1 1 0; }
.sp-pagehead__img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--r-l); }

/* ---------- Karten ---------- */
.sp-cards { gap: 20px; }
.sp-card {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: clamp(28px, 2.6vw, 36px);
	background: var(--white);
	border-radius: var(--r-m);
	box-shadow: var(--shadow);
	transition: box-shadow .3s, transform .3s;
	overflow: hidden;
}
.sp-card::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	height: 4px;
	background: var(--sun);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .4s;
}
.sp-card:hover { box-shadow: var(--shadow-h); transform: translateY(-3px); }
.sp-card:hover::after { transform: none; }
.sp-card h3 { margin-bottom: 14px; }
.sp-card p:not(.sp-more) { color: var(--muted); }
.sp-section:not(.sp-section--tint) .sp-card { box-shadow: var(--shadow), inset 0 0 0 1px var(--line); }
.sp-cards--compact .sp-card h3 { font-size: 19px; }
.sp-cards--compact .sp-card p { font-size: 15px; }

/* ---------- Bild + Text ---------- */
.sp-split { gap: clamp(36px, 6vw, 96px); align-items: center; }
.sp-split__text h2 { margin-bottom: 24px; }
.sp-split__text p:not(.sp-eyebrow) { color: var(--muted); }
.sp-split__text .wp-block-buttons { margin-top: 32px; }
.sp-split--reverse .sp-split__media { order: -1; }
.sp-rounded img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-l); }

/* ---------- Banner (dunkel, mit Bildfläche) ---------- */
.sp-banner {
	position: relative;
	margin: 0 var(--pad);
	padding: clamp(48px, 6vw, 88px) clamp(28px, 6vw, 88px);
	background: var(--ink);
	color: var(--white);
	border-radius: var(--r-l);
	overflow: hidden;
	isolation: isolate;
}
.sp-banner::before {
	content: "";
	position: absolute;
	right: -120px;
	top: -120px;
	width: 420px;
	height: 420px;
	border-radius: 50%;
	background: radial-gradient(circle, #ffc80055 0%, #ffc80000 70%);
	z-index: -1;
}
.sp-banner h2 { color: var(--white); max-width: 760px; }
.sp-banner .sp-lead { margin: 20px 0 32px; max-width: 620px; color: rgba(255, 255, 255, .72); }

/* ---------- Kundenstimmen ---------- */
.sp-quote {
	display: flex;
	flex-direction: column;
	padding: clamp(28px, 2.6vw, 36px);
	background: var(--white);
	border-radius: var(--r-m);
	box-shadow: var(--shadow);
}
.sp-quote::before {
	content: "\201C";
	display: block;
	height: 40px;
	margin-bottom: 14px;
	font: 700 80px/1 Georgia, serif;
	color: var(--sun);
}
.sp-quote__text { font-size: 15px; line-height: 1.7; color: var(--ink-soft); }
.sp-quote__who { margin-top: auto; padding-top: 22px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); line-height: 1.5; }
.sp-quote__text + .sp-quote__who { margin-top: auto; }
.sp-quote__who strong { color: var(--ink); font-family: var(--head); font-size: 16px; }

/* ---------- Hinweis Sturmschaden ---------- */
.sp-notice {
	gap: 32px;
	align-items: center;
	padding: clamp(28px, 3vw, 40px) clamp(28px, 4vw, 56px);
	background: var(--sun);
	border-radius: var(--r-l);
}
.sp-notice h2 { font-size: clamp(26px, 2.4vw, 34px); margin-bottom: 8px; }
.sp-notice h2::before { background-color: var(--ink); background-image: url("../icons/ui/sturm-sun.svg"); }
.sp-notice p { margin: 0; color: var(--ink-soft); padding-left: 70px; }
.sp-notice .sp-notice__action { flex: 0 0 auto; display: flex; justify-content: flex-end; }

/* ---------- Projekte ---------- */
.sp-project {
	display: flex;
	flex-direction: column;
	padding: 10px 10px 24px;
	background: var(--white);
	border-radius: var(--r-m);
	box-shadow: var(--shadow);
	transition: box-shadow .3s, transform .3s;
}
.sp-project:hover { box-shadow: var(--shadow-h); transform: translateY(-3px); }
.sp-project__img { overflow: hidden; border-radius: var(--r); margin-bottom: 20px; }
.sp-project__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s; }
.sp-project:hover .sp-project__img img { transform: scale(1.04); }
.sp-project > *:not(.sp-project__img) { padding: 0 14px; }
.sp-project__place {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 6px;
	font: 600 12px/1.2 var(--head);
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--muted);
}
.sp-project__place::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--sun); }
.sp-project h3 { margin-bottom: 6px; }
.sp-project__kwp { margin: 0; font-size: 15px; color: var(--muted); }
.sp-project--empty { background: none; box-shadow: none; padding: 0; }
.sp-section:not(.sp-section--tint) .sp-project { box-shadow: var(--shadow), inset 0 0 0 1px var(--line); }

/* ---------- Videos ---------- */
.sp-video-card { padding: 10px 10px 20px; background: var(--white); border-radius: var(--r-m); box-shadow: var(--shadow); }
.sp-video video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--ink); border-radius: var(--r); }
.sp-video__caption { margin: 16px 14px 0; font-size: 15px; color: var(--muted); }
.sp-video__caption strong { font-family: var(--head); font-size: 17px; color: var(--ink); }

/* ---------- Grafik mit nummerierter Legende ---------- */
.sp-explain { gap: clamp(32px, 5vw, 72px); align-items: center; }
.sp-explain__media { flex: 1.25 1 0; }
.sp-explain__img img { width: 100%; padding: clamp(12px, 2vw, 28px); background: var(--white); border-radius: var(--r-l); box-shadow: var(--shadow); }
.sp-numbers { counter-reset: num; list-style: none; padding: 0; display: grid; gap: 10px; }
.sp-numbers--continue { counter-reset: num 5; margin-top: 10px; }
.sp-numbers li {
	counter-increment: num;
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 10px 18px 10px 10px;
	background: var(--white);
	border-radius: 999px;
	box-shadow: var(--shadow);
	font: 500 16px/1.3 var(--head);
}
.sp-numbers li::before {
	content: counter(num);
	flex: none;
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--sun);
	font: 700 15px/1 var(--head);
}
.sp-explain__text .wp-block-buttons { margin-top: 28px; }

/* ---------- FAQ ---------- */
.sp-faq { gap: clamp(36px, 6vw, 96px); align-items: flex-start; }
.sp-faq__head { flex: .8 1 0; position: sticky; top: 120px; }
.sp-faq__head p:not(.sp-eyebrow) { margin-top: 22px; color: var(--muted); }
.sp-faq__list { flex: 1.25 1 0; display: grid; gap: 12px; }
.sp-faq__item {
	background: var(--white);
	border-radius: 34px;
	box-shadow: var(--shadow);
	transition: box-shadow .25s;
}
.sp-section:not(.sp-section--tint) .sp-faq__item { box-shadow: var(--shadow), inset 0 0 0 1px var(--line); }
.sp-faq__item[open] { border-radius: var(--r-m); }
.sp-faq__item summary {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 20px 64px 20px 26px;
	position: relative;
	font: 600 17px/1.35 var(--head);
	cursor: pointer;
	list-style: none;
}
.sp-faq__item summary::-webkit-details-marker { display: none; }
.sp-faq__item summary::after {
	content: "";
	position: absolute;
	right: 22px;
	top: 50%;
	width: 30px;
	height: 30px;
	margin-top: -15px;
	border-radius: 50%;
	background: var(--mist) url("../icons/ui/chevron.svg") no-repeat center / 14px;
	transition: transform .25s, background-color .25s;
}
.sp-faq__item[open] summary::after { transform: rotate(180deg); background-color: var(--sun); }
.sp-faq__num { flex: none; font: 600 13px/1 var(--head); color: var(--muted); }
.sp-faq__item > p { margin: 0; padding: 0 28px 24px 54px; color: var(--muted); }

/* ---------- Partnerlogos ---------- */
.sp-logos { gap: 20px; }
.sp-logo-tile {
	display: grid;
	place-items: center;
	height: 100%;
	min-height: 120px;
	padding: 24px;
	background: var(--white);
	border-radius: var(--r);
	box-shadow: var(--shadow), inset 0 0 0 1px var(--line);
}
.sp-logo-tile img { max-height: 64px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .8; transition: filter .3s, opacity .3s; }
.sp-logo-tile:hover img { filter: none; opacity: 1; }

/* ---------- Kontakt ---------- */
.sp-contact { gap: clamp(28px, 4vw, 56px); align-items: flex-start; }
.sp-contact__form { flex: 1.35 1 0; padding: clamp(28px, 3.5vw, 48px); background: var(--white); border-radius: var(--r-l); box-shadow: var(--shadow), inset 0 0 0 1px var(--line); }
.sp-contact__form > h2 { font-size: clamp(28px, 2.6vw, 38px); margin-bottom: 28px; }
.sp-contact__aside { flex: 1 1 0; }
.sp-contact__card { padding: clamp(28px, 3.5vw, 44px); background: var(--ink); color: var(--white); border-radius: var(--r-l); }
.sp-contact__card h3 { color: var(--white); font-size: clamp(24px, 2vw, 30px); margin-bottom: 14px; }
.sp-contact__card p:not(.sp-eyebrow) { color: rgba(255, 255, 255, .72); }
.sp-contactlist { list-style: none; margin: 28px 0 0; padding: 24px 0 0; border-top: 1px solid rgba(255, 255, 255, .14); display: grid; gap: 18px; }
.sp-contactlist li { display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; align-items: center; }
.sp-contactlist li::before { grid-row: span 2; width: 44px; height: 44px; margin: 0; background-size: 21px; }
.sp-contactlist__label { font: 600 12px/1.2 var(--head); letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }
.sp-contactlist a { color: var(--white); text-decoration: none; }
.sp-contactlist a:hover { color: var(--sun); }
.sp-map iframe { display: block; width: 100%; height: clamp(320px, 38vw, 460px); border: 0; border-radius: var(--r-l); filter: grayscale(.4); }
.sp-section--map { padding-top: 0; }

/* Formular */
.sp-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 18px; }
.sp-form__row { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.sp-form__row--full { grid-column: 1 / -1; }
.sp-form label { font: 600 14px/1.2 var(--head); color: var(--ink-soft); }
.sp-form input,
.sp-form textarea {
	width: 100%;
	padding: 14px 18px;
	font: 400 16px/1.4 var(--body);
	color: var(--ink);
	background: var(--mist);
	border: 1.5px solid transparent;
	border-radius: var(--r-s);
	transition: border-color .2s, background-color .2s;
}
.sp-form textarea { resize: vertical; min-height: 150px; }
.sp-form input:focus,
.sp-form textarea:focus { outline: none; border-color: var(--sun-strong); background: var(--white); }
.sp-form__submit { margin: 26px 0 0; }
.sp-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sp-form__notice { padding: 14px 18px; border-radius: var(--r-s); margin-bottom: 22px; font-weight: 500; }
.sp-form__notice--ok { background: #e9f6df; color: #24521a; }
.sp-form__notice--err { background: #fde7e4; color: #8a1f12; }

/* ---------- Fliesstext (Datenschutz) ---------- */
.sp-prose { max-width: calc(820px + 2 * var(--pad)); padding: 0 var(--pad) var(--space); }
.sp-prose h2, .sp-prose h3 { margin: 40px 0 12px; }
.sp-prose p, .sp-prose li { color: var(--ink-soft); }

/* ---------- CTA-Box ---------- */
.sp-cta { padding: 0 var(--pad) var(--space); }
.sp-main:has(> .sp-page > .sp-section--tint:last-child) + .sp-cta,
.sp-main:has(> .sp-page > .sp-banner:last-child) + .sp-cta { padding-top: var(--space); }
.sp-cta__box {
	position: relative;
	padding: clamp(44px, 6vw, 88px) clamp(28px, 6vw, 88px);
	background: var(--ink);
	color: var(--white);
	border-radius: var(--r-l);
	overflow: hidden;
	isolation: isolate;
}
.sp-cta__box::before {
	content: "";
	position: absolute;
	right: clamp(-200px, -10vw, -80px);
	bottom: clamp(-260px, -14vw, -120px);
	width: clamp(300px, 34vw, 520px);
	aspect-ratio: 1;
	border-radius: 50%;
	border: clamp(36px, 4vw, 64px) solid var(--sun);
	opacity: .95;
	z-index: -1;
}
.sp-cta__title { color: var(--white); max-width: 720px; }
.sp-cta__text { margin: 20px 0 32px; max-width: 560px; font-size: 18px; color: rgba(255, 255, 255, .72); }
.sp-cta__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.sp-cta__phone { color: rgba(255, 255, 255, .8); text-decoration: none; font-size: 15px; }
.sp-cta__phone:hover { color: var(--sun); }

/* ---------- Footer ---------- */
.sp-footer { background: var(--ink); color: rgba(255, 255, 255, .7); font-size: 16.5px; }
.sp-footer__top {
	display: grid;
	grid-template-columns: 1.5fr 1fr 1.2fr 1fr;
	gap: 48px;
	padding: clamp(72px, 7vw, 104px) var(--pad) 64px;
}
.sp-footer__brand img { width: 124px; height: auto; margin-bottom: 22px; }
.sp-footer__brand p { max-width: 340px; line-height: 1.6; }
.sp-footer__parent { display: inline-flex; flex-direction: column; gap: 10px; margin-top: 18px; padding: 16px 20px; border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--r-s); text-decoration: none; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; transition: border-color .2s; }
.sp-footer__parent:hover { border-color: var(--sun); }
.sp-footer__parent img { width: 170px; margin: 0; }
.sp-footer__heading { margin-bottom: 22px; font: 600 18px/1.2 var(--head); color: var(--white); }
.sp-footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.sp-footer__links--2col { grid-template-columns: 1fr 1fr; column-gap: 24px; }
.sp-footer__links .sub-menu { display: none; }
.sp-footer a { color: rgba(255, 255, 255, .7); text-decoration: none; transition: color .2s; }
.sp-footer a:hover { color: var(--sun); }
.sp-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 12px;
	padding: 28px var(--pad);
	border-top: 1px solid rgba(255, 255, 255, .1);
	font-size: 14px;
}
.sp-footer__bottom p { margin: 0; }

.sp-mobilebar { display: none; }

/* ---------- 404 ---------- */
.error404 .sp-pagehead { min-height: 50vh; }
.error404 .sp-pagehead p { margin-top: 20px; color: var(--muted); }

/* ---------- Animationen ---------- */
@keyframes spFadeUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes spFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes spZoomIn { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
.sp-anim { opacity: 0; }
.sp-anim.is-in { animation: var(--anim) .8s cubic-bezier(.2, .7, .2, 1) var(--delay, 0ms) both; }

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1180px) {
	.sp-nav { gap: 14px; }
	.sp-nav__list a { padding: 10px 10px; font-size: 15px; }
	.sp-header__logo img { width: 88px; }
	.sp-cards--4 { flex-wrap: wrap !important; }
	.sp-cards--4 > .wp-block-column { flex: 1 1 calc(50% - 10px) !important; }
	.sp-section .sp-cards--projects + .sp-cards--projects { margin-top: 20px; }
	.sp-footer__top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1023px) {
	.sp-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--white); }
	.sp-header__inner { min-height: 76px; }
	.sp-header__logo img, .sp-header.is-scrolled .sp-header__logo img { width: 64px; }
	.sp-header__toggle {
		display: grid;
		place-items: center;
		width: 48px;
		height: 48px;
		padding: 0;
		background: var(--sun);
		border: 0;
		border-radius: 50%;
		cursor: pointer;
	}
	.sp-header__bar, .sp-header__bar::before, .sp-header__bar::after {
		display: block;
		width: 20px;
		height: 2px;
		background: var(--ink);
		border-radius: 2px;
		transition: transform .25s, background-color .25s;
		content: "";
	}
	.sp-header__bar { position: relative; }
	.sp-header__bar::before { position: absolute; top: -6px; }
	.sp-header__bar::after { position: absolute; top: 6px; }
	[aria-expanded="true"] .sp-header__bar { background: transparent; }
	[aria-expanded="true"] .sp-header__bar::before { transform: translateY(6px) rotate(45deg); }
	[aria-expanded="true"] .sp-header__bar::after { transform: translateY(-6px) rotate(-45deg); }
	.sp-nav {
		position: fixed;
		inset: 76px 0 0;
		flex-direction: column;
		align-items: stretch;
		gap: 24px;
		padding: 24px 20px 40px;
		background: var(--white);
		overflow-y: auto;
		opacity: 0;
		visibility: hidden;
		transform: translateY(-8px);
		transition: opacity .25s, transform .25s, visibility .25s;
	}
	.sp-nav.is-open { opacity: 1; visibility: visible; transform: none; }
	.sp-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
	.sp-nav__list > li { border-bottom: 1px solid var(--line); }
	.sp-nav__list a { padding: 16px 4px; font-size: 20px; font-weight: 600; border-radius: 0; }
	.sp-nav__list a:hover, .sp-nav__list .current-menu-item > a, .sp-nav__list .current-menu-ancestor > a, .sp-nav__list .current-page-ancestor > a { background: none; }
	.sp-nav__list .current-menu-item > a { color: var(--ink); box-shadow: inset 4px 0 0 var(--sun); padding-left: 16px; }
	.sp-nav__list .menu-item-has-children > a::after { display: none; }
	.sp-nav__list .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; padding: 0 0 12px 16px; min-width: 0; }
	.sp-nav__list .sub-menu a { padding: 10px 4px; font-size: 17px; font-weight: 500; color: var(--muted); }
	.sp-nav__cta { align-self: flex-start; }
	html.sp-nav-open { overflow: hidden; }

	.sp-hero, .sp-pagehead--media, .sp-split, .sp-explain, .sp-faq, .sp-contact, .sp-head--split { flex-wrap: wrap !important; }
	.sp-hero > .wp-block-column, .sp-pagehead--media > .wp-block-column, .sp-split > .wp-block-column,
	.sp-explain > .wp-block-column, .sp-faq > .wp-block-column, .sp-contact > .wp-block-column,
	.sp-head--split > .wp-block-column { flex: 1 1 100% !important; }
	.sp-head--split { gap: 16px; }
	.sp-head__action { justify-content: flex-start; }
	.sp-split--reverse .sp-split__media { order: 0; }
	.sp-split__media, .sp-hero__media { max-width: 720px; }
	.sp-visual { margin: 0 auto; }
	.sp-faq__head { position: static; }
	.sp-cards--3 { flex-wrap: wrap !important; }
	.sp-cards--3 > .wp-block-column { flex: 0 1 calc(50% - 10px) !important; }
	.sp-cards--3 { justify-content: center; }
	.sp-cards--3 > .sp-project--empty { display: none; }
	.sp-logos { flex-wrap: wrap !important; }
	.sp-logos > .sp-logo { flex: 1 1 calc(33.333% - 14px) !important; }
	.sp-notice { flex-wrap: wrap !important; }
	.sp-notice > .wp-block-column { flex: 1 1 100% !important; }
	.sp-notice .sp-notice__action { justify-content: flex-start; padding-left: 70px; }
}

@media (max-width: 767px) {
	body { font-size: 16px; padding-bottom: 76px; }
	.sp-cards, .sp-cards--3, .sp-cards--2, .sp-cards--4 { flex-wrap: wrap !important; }
	.sp-cards > .wp-block-column { flex: 1 1 100% !important; }
	.sp-cards > .sp-project--empty { display: none; }
	.sp-section .sp-cards + .sp-cards { margin-top: 16px; }
	.sp-cards { gap: 16px; }
	.sp-logos { gap: 12px; }
	.sp-logos > .sp-logo { flex: 1 1 calc(50% - 6px) !important; }
	.sp-logo-tile { min-height: 96px; padding: 18px; }
	.sp-logo-tile img { max-height: 48px; }
	.sp-section .sp-logos + .sp-logos { margin-top: 12px; }
	.sp-visual { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
	.sp-visual__img { grid-column: 1 / -1; margin-bottom: 6px; }
	.sp-badge { position: static; flex-direction: row; gap: 10px; padding: 6px 12px 6px 6px; font-size: 13px; background: var(--white); border-radius: 999px; box-shadow: var(--shadow); text-shadow: none; animation: none; white-space: normal; }
	.sp-badge__ico { flex: none; width: 36px; height: 36px; background-size: 18px; box-shadow: none; }
	.sp-badge__ico { width: 44px; height: 44px; background-size: 21px; }
	.sp-pagehead__img img, .sp-rounded img { border-radius: var(--r-m); }
	.sp-banner, .sp-cta__box, .sp-notice, .sp-contact__form, .sp-contact__card, .sp-map iframe { border-radius: var(--r-m); }
	.sp-cta__box::before { display: none; }
	.sp-cta__actions { position: relative; }
	.sp-notice p, .sp-notice .sp-notice__action { padding-left: 0; }
	.sp-notice h2 { flex-direction: column; align-items: flex-start; gap: 14px; }
	.sp-form__grid { grid-template-columns: 1fr; }
	.sp-faq__item summary { padding: 18px 56px 18px 20px; font-size: 16px; }
	.sp-faq__item summary::after { right: 16px; }
	.sp-faq__item > p { padding: 0 20px 20px; }
	.sp-footer__top { grid-template-columns: 1fr; gap: 36px; }
	.sp-footer__bottom { padding-bottom: 28px; }
	.sp-mobilebar {
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 98;
		display: grid;
		grid-template-columns: 1fr 1.4fr;
		gap: 10px;
		padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
		background: rgba(255, 255, 255, .96);
		box-shadow: 0 -6px 24px #12150e14;
	}
	.sp-mobilebar .sp-btn { min-height: 48px; padding: 10px 16px; }
	.sp-mobilebar .sp-btn--primary { box-shadow: none; }
	.sp-mobilebar .sp-btn--primary { padding-right: 16px; }
	.sp-nav { inset: 76px 0 0; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; animation: none !important; }
	.sp-anim { opacity: 1; }
}

/* ---------- Ablauf in Schritten ---------- */
.sp-step { padding-top: clamp(26px, 2.4vw, 32px); }
.sp-step__num {
	display: inline-grid;
	place-items: center;
	align-self: flex-start;
	min-width: 60px;
	height: 46px;
	margin-bottom: 22px !important;
	padding: 0 14px;
	font: 700 26px/1 var(--head);
	color: var(--ink) !important;
	background: linear-gradient(90deg, var(--sun) 0 70%, var(--sun-soft) 70%);
	border-radius: 12px;
}
.sp-step h3 { margin-bottom: 10px; }
.sp-step p:not(.sp-step__num) { font-size: 15px; }
.sp-steps .sp-card::after { transform: none; }

/* ---------- Kennzahlen ---------- */
.sp-section--facts { padding-top: 0 !important; padding-bottom: clamp(8px, 1.5vw, 24px); }
.sp-facts { gap: 16px; }
.sp-fact { padding: 22px 26px; background: var(--white); border-radius: var(--r); box-shadow: var(--shadow), inset 0 0 0 1px var(--line); }
.sp-fact__value { margin: 0 0 6px; font: 700 clamp(24px, 2.2vw, 32px)/1.1 var(--head); letter-spacing: -.01em; }
.sp-fact__value::after { content: ""; display: block; width: 28px; height: 3px; margin-top: 10px; border-radius: 2px; background: var(--sun); }
.sp-fact__text { margin: 0; font-size: 14px; line-height: 1.45; color: var(--muted); }
.sp-section--facts + .sp-section { padding-top: clamp(32px, 4vw, 56px) !important; }

@media (max-width: 1023px) {
	.sp-facts { flex-wrap: wrap !important; }
	.sp-facts > .sp-fact { flex: 1 1 calc(50% - 8px) !important; }
}
@media (max-width: 767px) {
	.sp-fact { padding: 18px; }
	.sp-steps > .wp-block-column { flex: 1 1 100% !important; }
}

@media (min-width: 768px) and (max-width: 1023px) {
	.sp-cards--3:has(> .sp-project) { flex-wrap: nowrap !important; }
	.sp-cards--3 > .sp-project { flex: 1 1 0 !important; }
	.sp-project h3 { font-size: 18px; }
}
