/* ==========================================================================
   SpreeSolar – Die Solarbauer
   Reduziert, großflächig, monochrom. Blau aus dem Logo nur als Akzent.
   ========================================================================== */

:root {
	--ink: #171a20;
	--text: #393c41;
	--muted: #5c5e62;
	--line: #e2e3e3;
	--soft: #f4f4f4;
	--white: #fff;
	--night: #0b0d10;
	--accent: #1a6dff;
	--ok: #127a4a;
	--err: #b42318;
	--radius: 4px;
	--header-h: 64px;
	--wrap: 1280px;
	--ease: cubic-bezier(.5, 0, 0, .75);
	--font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: var(--white);
	color: var(--text);
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }

h1, h2, h3 {
	color: var(--ink);
	font-weight: 500;
	line-height: 1.1;
	letter-spacing: -.02em;
	margin: 0 0 .5em;
}
h1 { font-size: clamp(2.5rem, 5.5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); }
h3 { font-size: 1.125rem; letter-spacing: -.01em; line-height: 1.3; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); }
.wrap--narrow { max-width: 820px; }
.center { text-align: center; }
.dim { color: #8e8e8e; }
.muted { color: var(--muted); }

.hp,
.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px; overflow: hidden;
	clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 1000; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--radius); }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- Buttons ---------- */

.btn {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 264px; min-height: 40px;
	padding: 10px 24px;
	border: 0; border-radius: var(--radius);
	font: inherit; font-size: 14px; font-weight: 500; letter-spacing: .01em;
	text-decoration: none; cursor: pointer;
	transition: background-color .33s var(--ease), color .33s var(--ease), box-shadow .33s var(--ease);
}
.btn--dark { background: rgba(23, 26, 32, .88); color: #fff; }
.btn--dark:hover { background: var(--ink); }
.btn--glass,
.btn--light {
	background: rgba(244, 244, 244, .72); color: var(--ink);
	-webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.btn--glass:hover,
.btn--light:hover { background: rgba(244, 244, 244, .95); }
.btn--light { background: var(--soft); }
.btn--wide { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin-top: 24px; }

.link-arrow {
	display: inline-flex; align-items: center; gap: 8px;
	color: var(--ink); font-weight: 500; font-size: 15px;
	text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px;
}
.link-arrow .icon { width: 18px; height: 18px; transition: transform .33s var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }

/* ---------- Header ---------- */

.site-header {
	position: fixed; inset: 0 0 auto; z-index: 100;
	height: var(--header-h);
	color: var(--ink);
	transition: background-color .4s var(--ease), color .4s var(--ease), box-shadow .4s var(--ease);
}
.site-header__inner {
	height: 100%;
	display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
	padding: 0 clamp(16px, 3vw, 40px);
}
.brand { position: relative; display: block; width: 168px; height: 56px; }
.brand__logo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: left center; transition: opacity .4s var(--ease); }
.brand__logo--light { opacity: 0; }

.main-nav .menu { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.main-nav .menu a,
.header-cta,
.nav-toggle {
	display: block;
	padding: 6px 14px; border-radius: var(--radius);
	color: inherit; font-size: 14px; font-weight: 500; text-decoration: none;
	transition: background-color .33s var(--ease);
}
.main-nav .menu a:hover,
.header-cta:hover,
.nav-toggle:hover { background: rgba(23, 26, 32, .06); }
.site-header__end { display: flex; justify-content: flex-end; gap: 4px; }
.nav-toggle { display: none; border: 0; background: rgba(23, 26, 32, .06); font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; color: inherit; }

/* WordPress-Werkzeugleiste (nur für eingeloggte Admins sichtbar) */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }

/* Solider Header auf Seiten ohne Vollbild-Kopf und nach dem Scrollen */
.no-hero .site-header,
.site-header.is-scrolled { background: rgba(255, 255, 255, .86); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); box-shadow: 0 1px 0 rgba(0, 0, 0, .06); }

/* Transparenter Header über dem Bild */
.has-hero .site-header:not(.is-scrolled) { color: #fff; }
.has-hero .site-header:not(.is-scrolled) .brand__logo--light { opacity: 1; }
.has-hero .site-header:not(.is-scrolled) .brand__logo--color { opacity: 0; }
.has-hero .site-header:not(.is-scrolled) .main-nav .menu a:hover,
.has-hero .site-header:not(.is-scrolled) .header-cta:hover { background: rgba(255, 255, 255, .14); }
.has-hero .site-header:not(.is-scrolled) .nav-toggle { background: rgba(255, 255, 255, .16); }

@media (max-width: 1080px) {
	.site-header__inner { grid-template-columns: 1fr auto; }
	.brand { width: 140px; height: 48px; }
	.nav-toggle { display: block; }
	.header-cta { display: none; }
	.main-nav {
		position: fixed; inset: 0 0 0 auto; z-index: 101;
		width: min(340px, 100vw);
		padding: 88px 24px 24px;
		background: #fff; color: var(--ink);
		transform: translateX(100%);
		transition: transform .5s var(--ease);
		box-shadow: -20px 0 60px rgba(0, 0, 0, .12);
	}
	.main-nav.is-open { transform: none; }
	.main-nav .menu { flex-direction: column; gap: 4px; }
	.main-nav .menu a { padding: 12px 16px; font-size: 16px; color: var(--ink); }
	.main-nav .menu a:hover { background: var(--soft); }
	.nav-open .nav-toggle { position: relative; z-index: 102; color: var(--ink); background: var(--soft); }
	/* backdrop-filter würde die Menükarte auf Header-Höhe begrenzen – bei offenem Menü abschalten */
	.nav-open .site-header,
	.nav-open .site-header.is-scrolled { -webkit-backdrop-filter: none; backdrop-filter: none; background: #fff; color: var(--ink); }
	.nav-open .brand__logo--light { opacity: 0 !important; }
	.nav-open .brand__logo--color { opacity: 1 !important; }
	.nav-scrim { position: fixed; inset: 0; z-index: 99; background: rgba(0, 0, 0, .35); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); opacity: 0; pointer-events: none; transition: opacity .5s var(--ease); }
	.nav-open .nav-scrim { opacity: 1; pointer-events: auto; }
}

/* ---------- Vollbild-Panels ---------- */

.panel {
	position: relative;
	height: 100vh; height: 100svh; min-height: 600px;
	display: flex; flex-direction: column; justify-content: space-between; align-items: center;
	padding: calc(var(--header-h) + 9vh) 24px 9vh;
	overflow: hidden; isolation: isolate;
	color: #fff; text-align: center;
	background: var(--night);
}
.panel > picture { position: absolute; inset: 0; z-index: -2; }
.zoom picture,
.sheet__media picture { display: contents; }
.panel__bg {
	position: absolute; inset: 0; z-index: -2;
	width: 100%; height: 100%; object-fit: cover;
	transform: scale(1.04);
	transition: transform 2.4s var(--ease);
}
.panel.is-visible .panel__bg,
.panel--hero .panel__bg { transform: scale(1); }
.panel::after {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background:
		linear-gradient(180deg, rgba(0, 0, 0, .62) 0%, rgba(0, 0, 0, .38) 30%, rgba(0, 0, 0, .08) 56%, rgba(0, 0, 0, .4) 100%);
}
.panel__top { max-width: 820px; text-shadow: 0 2px 28px rgba(0, 0, 0, .35); }
.panel__eyebrow { font-size: 13px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; opacity: .85; margin-bottom: 14px; }
.panel__title { color: #fff; font-size: clamp(2.5rem, 6vw, 4.75rem); line-height: 1.02; margin-bottom: 16px; }
.panel__title .panel__eyebrow { display: block; color: #fff; line-height: 1.4; letter-spacing: .12em; }
.panel h2.panel__title { font-size: clamp(2.25rem, 5vw, 4rem); }
.panel__text { font-size: clamp(1rem, 1.4vw, 1.2rem); margin: 0 auto; max-width: 620px; }
.panel__actions { display: flex; flex-wrap: wrap; gap: 16px 24px; justify-content: center; }

.panel--left { align-items: flex-start; text-align: left; padding-left: clamp(24px, 7vw, 120px); }
.panel--left .panel__actions { justify-content: flex-start; }
.panel--left::after { background: linear-gradient(90deg, rgba(0, 0, 0, .6) 0%, rgba(0, 0, 0, .15) 50%, rgba(0, 0, 0, 0) 75%), linear-gradient(0deg, rgba(0, 0, 0, .3), transparent 40%); }
.panel--short { height: 72vh; height: 72svh; min-height: 480px; justify-content: flex-end; }
.panel--short::after { background: linear-gradient(180deg, rgba(0, 0, 0, .5) 0%, rgba(0, 0, 0, .1) 40%, rgba(0, 0, 0, .55) 100%); }

@media (max-width: 640px) {
	.panel { padding-top: calc(var(--header-h) + 7vh); padding-bottom: 7vh; }
	.panel__actions { width: 100%; flex-direction: column; gap: 12px; }
	.panel__actions .btn { width: 100%; min-width: 0; }
	.panel--left { padding-left: 24px; }
}

/* ---------- Kennzahlen ---------- */

.stats { border-bottom: 1px solid var(--line); }
.stats__inner {
	max-width: var(--wrap); margin: 0 auto;
	display: grid; grid-template-columns: repeat(4, 1fr);
	padding: 40px clamp(20px, 4vw, 48px);
}
.stat { text-align: center; padding: 8px; }
.stat strong { display: block; color: var(--ink); font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 500; letter-spacing: -.02em; line-height: 1.1; }
.stat span { color: var(--muted); font-size: 14px; }
@media (max-width: 720px) { .stats__inner { grid-template-columns: repeat(2, 1fr); row-gap: 24px; } }

/* ---------- Sektionen ---------- */

.section { padding: clamp(80px, 12vw, 160px) 0; }
.section--page { padding-top: calc(var(--header-h) + clamp(48px, 8vw, 96px)); }
.section--soft { background: var(--soft); }
.section--dark { background: var(--night); color: #a8abb1; }
.section--dark h2,
.section--dark h3 { color: #fff; }
.section--dark .dim { color: #6b6e74; }
.section__head { max-width: 760px; margin-bottom: clamp(48px, 7vw, 88px); }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker { color: var(--accent); font-size: 13px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; }
.section--dark .kicker { color: #7fa9ff; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--muted); max-width: 760px; }

/* Leistungen */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.service { padding: 36px 32px 8px 0; }
.service + .service { padding-left: 32px; border-left: 1px solid var(--line); }
.service .icon { width: 32px; height: 32px; color: var(--ink); margin-bottom: 28px; }
.service p { color: var(--muted); font-size: 15px; }
@media (max-width: 960px) {
	.services { grid-template-columns: repeat(2, 1fr); }
	.service:nth-child(3) { padding-left: 0; border-left: 0; }
	.service:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
	.services { grid-template-columns: 1fr; }
	.service,
	.service + .service { padding: 28px 0 4px; border-left: 0; }
	.service + .service { border-top: 1px solid var(--line); }
}

/* Produkt-Showcase */
.showcase { display: grid; grid-template-columns: 1fr 1fr; min-height: 92vh; }
.showcase__media { background: var(--soft); display: flex; align-items: center; justify-content: center; padding: clamp(32px, 6vw, 96px); }
.showcase__media img { max-height: 72vh; width: auto; mix-blend-mode: multiply; }
.showcase__text { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: clamp(48px, 8vw, 128px); }
.showcase__text p { color: var(--muted); max-width: 480px; }
@media (max-width: 900px) {
	.showcase { grid-template-columns: 1fr; min-height: 0; }
	.showcase__media img { max-height: 56vh; }
	.showcase__text { padding: 56px clamp(20px, 4vw, 48px) 80px; }
}

.specs { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 16px clamp(24px, 4vw, 48px); margin: 16px 0 36px; padding: 0; }
@media (max-width: 480px) { .specs { grid-template-columns: 1fr 1fr; } }
.specs dt { color: var(--muted); font-size: 13px; }
.specs dd { margin: 2px 0 0; color: var(--ink); font-size: 1.15rem; font-weight: 500; letter-spacing: -.01em; }

/* Ablauf */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(24px, 3vw, 40px); counter-reset: none; }
.step { border-top: 1px solid rgba(255, 255, 255, .16); padding-top: 28px; }
.step__no { display: block; color: #fff; font-size: 13px; font-weight: 500; letter-spacing: .12em; margin-bottom: 40px; opacity: .6; }
.step h3 { font-size: 1.35rem; }
.step p { font-size: 15px; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); row-gap: 48px; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } .step__no { margin-bottom: 20px; } }

/* Technik-Teaser */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 120px); align-items: center; }
.split__text p { color: var(--muted); max-width: 520px; }
.blend { mix-blend-mode: multiply; }
.partners { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 40px; margin: 32px 0 40px; }
.partners img { height: 52px; width: auto; filter: grayscale(1); opacity: .8; transition: filter .4s, opacity .4s; mix-blend-mode: multiply; }
.partners img:hover { filter: none; opacity: 1; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* Kennzahlen Technik */
.figures { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-bottom: 56px; }
.figure strong { display: block; color: var(--ink); font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 500; letter-spacing: -.03em; line-height: 1; margin-bottom: 10px; }
.figure strong small { font-size: .4em; font-weight: 500; letter-spacing: 0; margin-left: 4px; }
.figure span { color: var(--muted); font-size: 14px; }
@media (max-width: 860px) { .figures { grid-template-columns: repeat(2, 1fr); row-gap: 40px; } }

/* Technik: Modulkarten */
.modules { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 32px); }
.module { display: flex; flex-direction: column; padding: clamp(28px, 4vw, 48px); border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.module__badge { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; margin: 0 0 20px; padding: 5px 12px; border-radius: 999px; background: #e9f7ef; color: var(--ok); font-size: 12px; font-weight: 500; }
.module__badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.module__name { font-size: clamp(1.75rem, 3vw, 2.5rem); letter-spacing: -.02em; margin-bottom: 12px; }
.module__name span { color: #8e8e8e; }
.module__lead { color: var(--muted); font-size: 15px; margin-bottom: 32px; }
.module__figures { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 16px; padding: 28px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.module__figures strong { display: block; color: var(--ink); font-size: clamp(1.6rem, 2.6vw, 2.25rem); font-weight: 500; letter-spacing: -.02em; line-height: 1.1; }
.module__figures small { font-size: .45em; margin-left: 3px; letter-spacing: 0; }
.module__figures span { color: var(--muted); font-size: 13px; }
.module__actions { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.module__actions .btn { min-width: 0; }
.module__actions .btn-text { margin: 0; display: inline-flex; align-items: center; gap: 6px; color: var(--ink); }
.module__actions .btn-text .icon { width: 16px; height: 16px; }
@media (max-width: 860px) { .modules { grid-template-columns: 1fr; } }

/* Datenblatt-Fenster */
.sheet { border: 0; padding: 0; border-radius: 16px; width: min(1040px, calc(100vw - 32px)); max-height: calc(100vh - 32px); background: #fff; color: var(--text); box-shadow: 0 40px 120px rgba(0, 0, 0, .35); }
.sheet::backdrop { background: rgba(11, 13, 16, .7); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.sheet[open] { animation: spree-rise .5s var(--ease) both; }
.sheet__body { position: relative; display: grid; grid-template-columns: 300px 1fr; }
.sheet__media { background: var(--soft); display: flex; align-items: center; justify-content: center; padding: 40px 32px; }
.sheet__media img { max-height: 440px; width: auto; mix-blend-mode: multiply; }
.sheet__content { padding: 48px clamp(24px, 4vw, 56px) 40px; }
.sheet__content h2 { font-size: clamp(1.75rem, 3vw, 2.4rem); margin-bottom: 14px; }
.sheet__specs { margin: 8px 0 20px; }
.sheet__specs div { display: grid; grid-template-columns: 180px 1fr; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.sheet__specs dt { color: var(--muted); }
.sheet__specs dd { margin: 0; color: var(--ink); font-weight: 500; }
.sheet__note { color: #8e8e8e; font-size: 12px; margin-bottom: 24px; }
.sheet__close { position: absolute; top: 16px; right: 16px; z-index: 1; padding: 8px 14px; border: 0; border-radius: var(--radius); background: var(--soft); color: var(--ink); font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; }
.sheet__close:hover { background: var(--line); }
@media (max-width: 760px) {
	.sheet__body { grid-template-columns: 1fr; }
	.sheet__media { padding: 24px; }
	.sheet__media img { max-height: 200px; }
	.sheet__content { padding: 28px 22px 28px; }
	.sheet__specs div { grid-template-columns: 1fr 1fr; }
}

/* Klickbare Bilder */
.zoom { position: relative; display: block; border-radius: var(--radius); overflow: hidden; cursor: zoom-in; color: var(--ink); text-decoration: none; }
.zoom img { width: 100%; mix-blend-mode: multiply; transition: transform .8s var(--ease); }
.zoom:hover img { transform: scale(1.03); }
.zoom--soft { background: var(--soft); padding: clamp(16px, 3vw, 32px); }
.zoom--white { background: #fff; padding: clamp(16px, 3vw, 32px); border-radius: 12px; }
.zoom__hint {
	position: absolute; left: 12px; bottom: 12px;
	display: inline-flex; align-items: center; gap: 6px;
	padding: 6px 12px 6px 8px; border-radius: 999px;
	background: rgba(255, 255, 255, .85); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
	font-size: 13px; font-weight: 500;
	box-shadow: 0 1px 2px rgba(0, 0, 0, .08);
	transition: background-color .3s;
}
.zoom__hint .icon { width: 16px; height: 16px; }
.zoom:hover .zoom__hint { background: #fff; }

.duo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 48px); margin-bottom: 40px; }
.duo__item h3 { margin-top: 24px; font-size: 1.25rem; }
.duo__item p { color: var(--muted); }
.duo__item .zoom { aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; }
.duo__item .zoom img { max-height: 100%; width: auto; object-fit: contain; }
@media (max-width: 760px) { .duo { grid-template-columns: 1fr; } }

/* Lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; margin: 0; }
.lightbox::backdrop { background: rgba(11, 13, 16, .88); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.lightbox__inner { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 64px 24px 32px; }
.lightbox img { max-width: min(1400px, 100%); max-height: calc(100vh - 140px); width: auto; height: auto; background: #fff; border-radius: var(--radius); box-shadow: 0 30px 80px rgba(0, 0, 0, .4); }
.lightbox__caption { color: #c9cbcf; font-size: 14px; margin: 0; }
.lightbox__close { position: absolute; top: 16px; right: 16px; padding: 8px 16px; border: 0; border-radius: var(--radius); background: rgba(255, 255, 255, .14); color: #fff; font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; }
.lightbox__close:hover { background: rgba(255, 255, 255, .24); }
.lightbox[open] .lightbox__inner { animation: spree-rise .5s var(--ease) both; }

/* FAQ */
.faq { border-top: 1px solid #d6d7d8; }
.faq__item { border-bottom: 1px solid #d6d7d8; }
.faq__item summary {
	list-style: none; cursor: pointer;
	display: flex; justify-content: space-between; align-items: center; gap: 24px;
	padding: 26px 0;
	color: var(--ink); font-size: clamp(1.05rem, 1.6vw, 1.25rem); font-weight: 500; letter-spacing: -.01em;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary .icon { flex: none; width: 22px; height: 22px; transition: transform .4s var(--ease); }
.faq__item[open] summary .icon { transform: rotate(45deg); }
.faq__item p { color: var(--muted); max-width: 680px; padding: 0 0 28px; margin: 0; }

/* ---------- Kontakt ---------- */

.contact { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(48px, 8vw, 128px); align-items: start; }
.contact > *,
.field-row > *,
.field select { min-width: 0; }
.contact__form h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
.contact__info { position: sticky; top: calc(var(--header-h) + 32px); }
.info-block { padding: 28px 0; border-top: 1px solid var(--line); }
.info-block:first-child { border-top: 0; padding-top: 0; }
.info-block .kicker { color: var(--muted); margin-bottom: 8px; }
.info-block p { margin-bottom: .5em; }
.info-big { color: var(--ink); font-size: clamp(1.25rem, 2vw, 1.6rem); font-weight: 500; letter-spacing: -.01em; text-decoration: none; word-break: break-word; }
.info-big:hover { color: var(--accent); }
.hours { display: grid; grid-template-columns: auto 1fr; gap: 2px 20px; margin: 0 0 .5em; }
.hours dt { color: var(--ink); font-weight: 500; }
.hours dd { margin: 0; }
@media (max-width: 960px) {
	.contact { grid-template-columns: 1fr; }
	.contact__info { position: static; }
}

.form { margin-top: 32px; }
.field { position: relative; margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; gap: 0; } }
.field input,
.field textarea {
	width: 100%;
	padding: 24px 16px 8px;
	border: 1px solid transparent; border-radius: var(--radius);
	background: var(--soft); color: var(--ink);
	font: inherit; font-size: 16px;
	transition: border-color .33s var(--ease), background-color .33s var(--ease);
	resize: vertical;
}
.field textarea { min-height: 140px; }
.field label {
	position: absolute; left: 16px; top: 16px;
	color: var(--muted); font-size: 16px; pointer-events: none;
	transform-origin: left top;
	transition: transform .25s var(--ease), color .25s;
}
.field input:focus,
.field textarea:focus { outline: 0; background: #fff; border-color: var(--ink); }
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label { transform: translateY(-9px) scale(.75); }

.chips { border: 0; padding: 0; margin: 8px 0 20px; display: flex; flex-wrap: wrap; gap: 10px; }
.chips legend { color: var(--muted); font-size: 14px; margin-bottom: 10px; padding: 0; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
	display: inline-block; padding: 9px 18px;
	border: 1px solid #d0d1d2; border-radius: 999px;
	color: var(--ink); font-size: 14px; font-weight: 500; cursor: pointer;
	transition: all .25s var(--ease);
}
.chip span:hover { 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(--accent); outline-offset: 2px; }

/* Formular in drei Schritten */
.wizard { margin-top: 32px; }
.wizard__progress { list-style: none; margin: 0 0 36px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; counter-reset: none; }
.wizard__progress li { position: relative; padding-top: 14px; color: var(--muted); font-size: 13px; font-weight: 500; }
.wizard__progress li::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; border-radius: 3px; background: var(--line); transition: background-color .5s var(--ease); }
.wizard__progress li span { display: none; }
.wizard__progress li.is-active,
.wizard__progress li.is-done { color: var(--ink); }
.wizard__progress li.is-active::before,
.wizard__progress li.is-done::before { background: var(--ink); }
.no-js .wizard__progress,
html:not(.js) .wizard__progress { display: none; }

.step-panel { border: 0; padding: 0; margin: 0 0 8px; min-width: 0; }
.js .step-panel { display: none; }
.js .step-panel.is-active { display: block; animation: spree-rise .6s var(--ease) both; }
html:not(.js) .step-panel { margin-bottom: 48px; }
.step-panel__title { color: var(--ink); font-size: clamp(1.35rem, 2.2vw, 1.75rem); font-weight: 500; letter-spacing: -.02em; padding: 0; margin-bottom: 20px; }
.step-panel__hint { color: var(--muted); margin: -12px 0 24px; font-size: 15px; }
.label { color: var(--ink); font-size: 14px; font-weight: 500; margin: 28px 0 12px; }
.step-panel .chips { margin: 0 0 8px; }

.wizard__nav { display: flex; justify-content: flex-end; align-items: center; gap: 24px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.wizard__nav .btn { min-width: 200px; }
.btn-text { margin-right: auto; padding: 8px 0; border: 0; background: none; color: var(--muted); font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; }
.btn-text:hover { color: var(--ink); }
html:not(.js) .wizard__nav [data-next],
html:not(.js) .wizard__nav [data-prev] { display: none; }
@media (max-width: 560px) { .wizard__nav .btn { min-width: 0; flex: 1; } }

/* Dachform als Karten */
.roof-types { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.roof-type input { position: absolute; opacity: 0; pointer-events: none; }
.roof-type__card {
	display: flex; flex-direction: column; align-items: center; gap: 8px;
	padding: 16px 6px 12px;
	border: 1px solid #d0d1d2; border-radius: 8px;
	color: var(--muted); font-size: 13px; font-weight: 500; text-align: center;
	cursor: pointer; transition: all .3s var(--ease);
}
.roof-type__card svg { width: 44px; height: 40px; color: var(--ink); }
.roof-type__card:hover { border-color: var(--ink); color: var(--ink); }
.roof-type input:checked + .roof-type__card { border-color: var(--ink); background: var(--ink); color: #fff; }
.roof-type input:checked + .roof-type__card svg { color: #fff; }
.roof-type input:focus-visible + .roof-type__card { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 560px) { .roof-types { grid-template-columns: repeat(3, 1fr); } }

/* Maße mit Messhilfe */
.measure { display: grid; grid-template-columns: 1fr 220px; gap: 24px; align-items: center; margin-top: 28px; }
.measure__fields .field { margin-bottom: 12px; }
.measure__sketch { margin: 0; background: var(--soft); border-radius: 8px; padding: 12px; }
.measure__sketch svg { display: block; width: 100%; height: auto; }
@media (max-width: 640px) {
	.measure { grid-template-columns: 1fr; }
	.measure__sketch { order: -1; max-width: 300px; }
}
.field--unit input { padding-right: 40px; }
.field--unit .unit { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 14px; pointer-events: none; }

.roof__area {
	display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
	margin: 8px 0 0; padding: 18px 20px; border-radius: 8px;
	background: var(--ink); color: #c9cbcf; font-size: 14px;
}
.roof__area strong { color: #fff; font-size: 1.4rem; font-weight: 500; letter-spacing: -.01em; }

/* Erfolgsmeldung */
.success { padding: 48px 0; }
.success__icon { width: 56px; height: 56px; border-radius: 50%; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; margin-bottom: 28px; }
.success p { color: var(--muted); max-width: 520px; margin-bottom: 28px; }

.upload {
	position: relative; display: block;
	border: 1px dashed #c4c5c6; border-radius: var(--radius);
	padding: 26px 20px; margin: 28px 0 0;
	text-align: center; cursor: pointer;
	transition: border-color .25s, background-color .25s;
}
.upload:hover { border-color: var(--ink); background: var(--soft); }
.upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.upload__icon { display: inline-flex; color: var(--ink); margin-bottom: 6px; }
.upload__title { display: block; color: var(--ink); font-weight: 500; }
.upload__hint { display: block; color: var(--muted); font-size: 13px; }
.upload.has-files .upload__title { color: var(--ok); }

.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--muted); margin-bottom: 24px; cursor: pointer; }
.consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--ink); flex: none; }
.consent a { color: var(--ink); }

.notice { padding: 16px 18px; border-radius: var(--radius); margin-bottom: 24px; font-size: 15px; }
.notice--ok { background: #e7f5ee; color: var(--ok); }
.notice--error { background: #fdeceb; color: var(--err); }

/* ---------- Fließtext / Rechtliches ---------- */

.prose h1 { font-size: clamp(2.25rem, 4vw, 3.25rem); margin-bottom: .8em; }
.prose h2 { font-size: 1.3rem; letter-spacing: -.01em; margin-top: 2.2em; }
.prose p,
.prose li { color: var(--text); }
.prose a { color: var(--ink); }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.site-footer__inner {
	max-width: var(--wrap); margin: 0 auto;
	display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px;
	padding: 64px clamp(20px, 4vw, 48px) 40px;
}
.site-footer__brand img { width: 170px; margin-bottom: 16px; }
.site-footer .footer-title { color: var(--ink); font-size: 14px; font-weight: 500; letter-spacing: 0; margin-bottom: 12px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }
.site-footer__bottom {
	max-width: var(--wrap); margin: 0 auto;
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px;
	padding: 20px clamp(20px, 4vw, 48px) 32px;
	border-top: 1px solid var(--line); font-size: 13px;
}
.site-footer__bottom .menu { display: flex; flex-wrap: wrap; gap: 6px 24px; list-style: none; margin: 0; padding: 0; }
@media (max-width: 900px) { .site-footer__inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer__inner { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Einblenden beim Scrollen ---------- */

.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Erster Bildschirm: sofort beim Laden einblenden, nicht erst beim Scrollen */
.js .site-main > .panel:first-child .reveal { opacity: 1; transform: none; animation: spree-rise 1.1s var(--ease) both; }
.js .site-main > .panel:first-child .panel__actions { animation-delay: .25s; }
@keyframes spree-rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*,
	*::before,
	*::after { transition: none !important; animation: none !important; }
	.js .reveal { opacity: 1; transform: none; }
	.panel__bg { transform: none; }
}

.site-footer .hours { gap: 2px 16px; margin-bottom: 6px; }
.site-footer .hours dt { color: var(--muted); font-weight: 400; }

/* SEO-Textbereich & Einsatzgebiet */
.seo-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 56px); padding-top: 36px; border-top: 1px solid #d6d7d8; }
.seo-cols h3 { font-size: 1.15rem; margin-bottom: 12px; }
.seo-cols p { color: var(--muted); font-size: 15px; }
@media (max-width: 900px) { .seo-cols { grid-template-columns: 1fr; } }
.areas { margin-top: clamp(48px, 6vw, 80px); }
.areas h3 { font-size: 1.15rem; margin-bottom: 8px; }
.areas > p { color: var(--muted); font-size: 15px; }
.areas__list { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.areas__list li { padding: 7px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink); font-size: 13px; font-weight: 500; }
