/*
 * Gemeinsame Bausteine des Kunden-Feinschliffs (03.11.2026).
 * Bereichsregeln stehen in fs-dachwand.css, fs-stall.css, fs-service.css, fs-sanierung.css.
 */

:root {
	color-scheme: light;
}

/* ---------- Kontaktblock wie auf der Startseite ---------- */
.sc-kb {
	font-family: var(--sc-font-body);
	color: var(--sc-text);
}

.sc-kb p {
	margin: 0;
}

.sc-kb .sc-kb-eyebrow {
	margin-bottom: 8px;
	font-family: "Manrope", var(--sc-font-body);
	font-size: 14px;
	line-height: 1.4;
	font-weight: 700;
	font-variation-settings: "wght" 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--sc-red);
}

.elementor-kit-9 .sc-kb h2.sc-kb-h2 {
	margin: 0 0 8px;
	font-family: "Manrope", var(--sc-font-body);
	font-size: 34px;
	line-height: 1.15;
	font-weight: 700;
	font-variation-settings: "wght" 700;
	letter-spacing: -0.02em;
	color: var(--sc-start-dunkel, #1f272a);
}

.sc-kb .sc-kb-lead {
	margin-bottom: 18px;
	font-size: 18px;
	line-height: 1.5;
	color: #5f666b;
}

.sc-kb .sc-kontaktinfo {
	margin-top: 8px;
}

.sc-kb-hinweis {
	margin-top: 22px;
	padding: 14px 16px;
	border: 1px solid #e6dfc8;
	border-radius: 4px;
	background: #faf7ee;
	font-size: 15.5px;
	line-height: 1.5;
}

.sc-kb .sc-kb-hinweis-titel {
	font-weight: 700;
	font-variation-settings: "wght" 700;
	color: var(--sc-start-dunkel, #1f272a);
}

/* Anfragebereich: gleiche Fläche und Spalten wie auf der Startseite. */
.sc-sec-anfrage.sc-sec-kb,
.e-con.sc-sec-anfrage.sc-sec-kb {
	background-color: #f3f5f4;
}

.e-con.sc-anfrage-grid.sc-kb-grid,
.e-con.sc-anfrage-grid.sc-kb-grid > .e-con-inner {
	grid-template-columns: minmax(0, 42fr) minmax(0, 58fr);
	column-gap: 56px;
}

.sc-kb-spalte,
.e-con.sc-kb-spalte {
	height: auto;
	background: transparent;
}

.sc-kb-spalte .elementor-widget-shortcode {
	width: 100%;
}

.sc-kb-grid .sc-apply-card,
.sc-kb-grid .e-con.sc-apply-card {
	border-color: #e3e6e8;
	border-radius: 4px;
}

@media (max-width: 1024px) {
	.e-con.sc-anfrage-grid.sc-kb-grid,
	.e-con.sc-anfrage-grid.sc-kb-grid > .e-con-inner {
		grid-template-columns: minmax(0, 1fr);
		row-gap: 32px;
	}
}

@media (max-width: 767px) {
	.elementor-kit-9 .sc-kb h2.sc-kb-h2 {
		font-size: 28px;
	}

	.sc-kb .sc-kb-lead {
		font-size: 17px;
	}
}

/* ---------- Bildkarten mit Plus (ganze Karte = Link) ----------
 * .sc-fk            dunkler Fuß, weißer Kreis mit rotem Plus (Dach & Wand, Stall)
 * .sc-fk--overlay   Foto randlos, Titel und Plus über dunklem Verlauf (Sanierung, Service)
 * .sc-fk-img--weiss Produktgrafik vollständig auf Weiß
 */
.sc-fk-raster.e-con,
.sc-fk-raster.e-con > .e-con-inner {
	gap: 20px;
}

a.sc-fk,
.e-con.sc-fk {
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	height: 100%;
	border-radius: 14px;
	background: #262626;
	color: #fff;
	text-decoration: none;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

a.sc-fk:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 30px rgba(38, 38, 38, 0.18);
}

a.sc-fk:focus-visible {
	outline: 3px solid var(--sc-red);
	outline-offset: 3px;
}

.sc-fk .sc-fk-img {
	flex: 0 0 auto;
	overflow: hidden;
}

.sc-fk .sc-fk-img .elementor-widget-image,
.sc-fk .sc-fk-img .elementor-widget-container {
	width: 100%;
}

.sc-fk .sc-fk-img .elementor-widget-image img {
	display: block;
	width: 100%;
	height: var(--sc-fk-h, 230px);
	object-fit: cover;
	object-position: var(--sc-fk-pos, 50% 50%);
}

.sc-fk .sc-fk-img--weiss {
	background: #fff;
}

.sc-fk .sc-fk-img--weiss .elementor-widget-image img {
	padding: 14px 18px;
	box-sizing: border-box;
	object-fit: contain;
	background: #fff;
}

.sc-fk .sc-fk-fuss {
	position: relative;
	flex: 1 1 auto;
	justify-content: center;
	min-height: 76px;
	padding: 16px 74px 16px 20px;
}

.sc-fk .sc-fk-fuss::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 18px;
	width: 40px;
	height: 40px;
	margin-top: -20px;
	border-radius: 50%;
	background:
		linear-gradient(var(--sc-red), var(--sc-red)) no-repeat center / 16px 2.5px,
		linear-gradient(var(--sc-red), var(--sc-red)) no-repeat center / 2.5px 16px,
		#fff;
	transition: transform 0.2s ease;
}

a.sc-fk:hover .sc-fk-fuss::after,
a.sc-fk:focus-visible .sc-fk-fuss::after {
	transform: scale(1.08);
}

.elementor-kit-9 .sc-fk .sc-fk-titel,
.sc-fk .sc-fk-titel .elementor-heading-title {
	margin: 0;
	font-family: var(--sc-font-body);
	font-size: 18px;
	line-height: 1.25;
	font-weight: 700;
	font-variation-settings: "wght" 700;
	color: #fff;
}

.sc-fk .sc-fk-text p {
	margin: 4px 0 0;
	font-size: 15px;
	line-height: 1.4;
	color: #d7d7d6;
}

/* Foto randlos, Titel und Plus über dem Verlauf */
a.sc-fk--overlay {
	display: block;
	min-height: var(--sc-fk-h, 300px);
	border-radius: 6px;
	background: #1f272a;
}

.sc-fk--overlay .sc-fk-img {
	position: absolute;
	inset: 0;
}

.sc-fk--overlay .sc-fk-img .elementor-widget-image img {
	height: 100%;
	min-height: var(--sc-fk-h, 300px);
}

.sc-fk--overlay .sc-fk-fuss {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	min-height: 0;
	padding: 56px 74px 20px 22px;
	background: linear-gradient(to top, rgba(18, 22, 24, 0.86) 0%, rgba(18, 22, 24, 0.62) 55%, rgba(18, 22, 24, 0) 100%);
}

.sc-fk--overlay .sc-fk-fuss::after {
	top: auto;
	bottom: 20px;
	margin-top: 0;
	background:
		linear-gradient(#fff, #fff) no-repeat center / 14px 2px,
		linear-gradient(#fff, #fff) no-repeat center / 2px 14px,
		transparent;
	box-shadow: inset 0 0 0 1.5px #fff;
}

.elementor-kit-9 .sc-fk--overlay .sc-fk-titel,
.sc-fk--overlay .sc-fk-titel .elementor-heading-title {
	font-size: 22px;
}

/* Einzelne Karte als breite Bild-Text-Einheit (Stall: Gülletechnik, Pferdeboxen) */
a.sc-fk--breit {
	flex-direction: row;
	align-items: stretch;
}

.sc-fk--breit .sc-fk-img {
	flex: 0 0 34%;
}

.sc-fk--breit .sc-fk-img .elementor-widget-image img {
	height: 100%;
	min-height: 170px;
}

.sc-fk--breit .sc-fk-fuss {
	display: flex;
	flex-direction: column;
}

@media (max-width: 767px) {
	a.sc-fk--breit {
		flex-direction: column;
	}

	.sc-fk--breit .sc-fk-img {
		flex: 0 0 auto;
	}

	.sc-fk--breit .sc-fk-img .elementor-widget-image img {
		height: var(--sc-fk-h, 200px);
	}
}

@media (prefers-reduced-motion: reduce) {
	a.sc-fk,
	.sc-fk .sc-fk-fuss::after {
		transition: none;
	}
}

/* ---------- Informationsmodule (Symbol oder Grafik, Titel, ein bis drei Sätze) ---------- */
.sc-fm {
	display: flex;
	flex-direction: column;
	gap: 10px;
	height: 100%;
	padding: 22px;
	border-radius: 8px;
	background: #f3f2ee;
	font-family: var(--sc-font-body);
	color: var(--sc-text);
}

.sc-fm--weiss {
	border: 1px solid #e3e6e8;
	background: #fff;
}

.sc-fm-symbol {
	display: block;
	color: var(--sc-red);
}

.sc-fm-symbol svg {
	display: block;
	width: 32px;
	height: 32px;
}

.sc-fm-grafik {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 120px;
	margin: -4px 0 4px;
}

.sc-fm-grafik svg,
.sc-fm-grafik img {
	display: block;
	max-width: 100%;
	height: 110px;
}

.elementor-kit-9 .sc-fm .sc-fm-titel {
	margin: 0;
	font-family: var(--sc-font-body);
	font-size: 18px;
	line-height: 1.3;
	font-weight: 700;
	font-variation-settings: "wght" 700;
	color: var(--sc-anthrazit);
}

.sc-fm p {
	margin: 0;
	font-size: 16px;
	line-height: 1.55;
}

.sc-fm-raster {
	display: grid;
	grid-template-columns: repeat(var(--sc-fm-spalten, 3), minmax(0, 1fr));
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.sc-fm-raster > li {
	margin: 0;
	padding: 0;
}

@media (max-width: 900px) {
	.sc-fm-raster {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.sc-fm-raster {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ---------- Grafischer Ablauf mit Nummern und Symbolen ---------- */
.sc-fp {
	display: grid;
	grid-template-columns: repeat(var(--sc-fp-spalten, 3), minmax(0, 1fr));
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.sc-fp > li {
	position: relative;
	margin: 0;
	padding: 20px;
	border-radius: 8px;
	background: #f3f2ee;
	font-family: var(--sc-font-body);
	font-size: 16px;
	line-height: 1.5;
}

.sc-fp-nr {
	position: absolute;
	top: 16px;
	right: 18px;
	font-size: 14px;
	font-weight: 700;
	font-variation-settings: "wght" 700;
	color: var(--sc-red);
}

.sc-fp-symbol {
	display: block;
	margin-bottom: 10px;
	color: var(--sc-red);
}

.sc-fp-symbol svg {
	display: block;
	width: 30px;
	height: 30px;
}

.sc-fp .sc-fp-titel {
	margin: 0 0 6px;
	font-size: 18px;
	line-height: 1.3;
	font-weight: 700;
	font-variation-settings: "wght" 700;
	color: var(--sc-anthrazit);
}

.sc-fp p {
	margin: 0;
}

@media (max-width: 900px) {
	.sc-fp {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ---------- Details mit Plus/Minus (natives <details>, per Tastatur bedienbar) ---------- */
details.sc-fd {
	margin: 12px 0 0;
	border: 1px solid #e3e6e8;
	border-radius: 6px;
	background: #fff;
	font-family: var(--sc-font-body);
}

details.sc-fd > summary {
	position: relative;
	display: block;
	padding: 14px 56px 14px 18px;
	font-size: 16.5px;
	line-height: 1.35;
	font-weight: 700;
	font-variation-settings: "wght" 700;
	color: var(--sc-anthrazit);
	list-style: none;
	cursor: pointer;
}

details.sc-fd > summary::-webkit-details-marker {
	display: none;
}

details.sc-fd > summary::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 16px;
	width: 26px;
	height: 26px;
	margin-top: -13px;
	border-radius: 50%;
	background:
		linear-gradient(#fff, #fff) no-repeat center / 12px 2px,
		linear-gradient(#fff, #fff) no-repeat center / 2px 12px,
		var(--sc-red);
}

details.sc-fd[open] > summary::after {
	background:
		linear-gradient(#fff, #fff) no-repeat center / 12px 2px,
		var(--sc-red);
}

details.sc-fd > summary:focus-visible {
	outline: 2px solid var(--sc-red);
	outline-offset: 2px;
	border-radius: 6px;
}

.sc-fd-inhalt {
	padding: 0 18px 16px;
	font-size: 16px;
	line-height: 1.6;
	color: var(--sc-text);
}

.sc-fd-inhalt > :first-child {
	margin-top: 0;
}

.sc-fd-inhalt > :last-child {
	margin-bottom: 0;
}

/* ---------- Technische Zeichnungen immer auf deckend weißer Fläche ---------- */
img[src$=".svg"].sc-weiss,
.sc-tech img,
.elementor-lightbox .elementor-lightbox-image[src$=".svg"],
.elementor-lightbox img[src$=".svg"],
.dialog-lightbox-widget img[src$=".svg"] {
	background: #fff;
}

/* Hinweis unter einem Bild: Herstellerbild, Einbaubeispiel, Materialillustration */
.sc-bildhinweis,
.sc-bildhinweis p {
	margin: 6px 0 0;
	font-family: var(--sc-font-body);
	font-size: 13.5px;
	line-height: 1.4;
	color: #6b7176;
}

/* ---------- Großes Einstiegsbild mit Text links über dunklem Verlauf ---------- */
.e-con.sc-fb {
	position: relative;
	overflow: hidden;
	min-height: 520px;
	justify-content: center;
	background: #1f272a;
	color: #fff;
}

.sc-fb .sc-fb-bild,
.sc-fb .sc-fb-bild .elementor-widget-container {
	position: absolute;
	inset: 0;
	z-index: 0;
	width: 100%;
	height: 100%;
}

.sc-fb .sc-fb-bild img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: var(--sc-fb-pos, 50% 50%);
}

.e-con.sc-fb::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(90deg, rgba(18, 22, 24, 0.86) 0%, rgba(18, 22, 24, 0.68) 38%, rgba(18, 22, 24, 0.14) 70%, rgba(18, 22, 24, 0) 100%);
	pointer-events: none;
}

.e-con.sc-fb .sc-fb-inhalt {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: 760px;
}

.sc-fb .sc-fb-krume,
.sc-fb .sc-fb-krume a,
.sc-fb .sc-fb-krume .sc-crumb-now {
	color: #e6e8e9;
}

.sc-fb .sc-fb-krume p {
	margin: 0 0 18px;
	font-size: 14px;
	line-height: 1.4;
}

.sc-fb .sc-fb-eyebrow .elementor-heading-title {
	font-family: var(--sc-font-body);
	font-size: 15px;
	line-height: 1.3;
	font-weight: 700;
	font-variation-settings: "wght" 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #fff;
}

.sc-fb .sc-fb-h1 .elementor-heading-title {
	margin: 10px 0 0;
	font-family: var(--sc-font-heading);
	font-size: clamp(32px, 3.6vw, 52px);
	line-height: 1.1;
	font-weight: 700;
	font-variation-settings: "wght" 700;
	letter-spacing: -0.015em;
	color: #fff;
}

.sc-fb .sc-fb-text p {
	margin: 16px 0 0;
	max-width: 620px;
	font-size: 18.5px;
	line-height: 1.5;
	color: #f1f2f2;
}

.sc-fb .sc-fb-knoepfe {
	margin-top: 26px;
}

.sc-bildhinweis--banner p {
	margin: 8px 0 0;
}

@media (max-width: 767px) {
	.e-con.sc-fb {
		min-height: 500px;
		justify-content: flex-end;
	}

	.e-con.sc-fb::after {
		background: linear-gradient(180deg, rgba(18, 22, 24, 0.5) 0%, rgba(18, 22, 24, 0.82) 62%, rgba(18, 22, 24, 0.9) 100%);
	}

	.sc-fb .sc-fb-text p {
		font-size: 17px;
	}
}

/* ---------- Formular wie auf der Startseite: Gruppe „E-Mail oder Telefon“ ---------- */
.sc-start-form .sc-form-gruppe {
	margin: 0;
	font-family: var(--sc-font-body);
	font-size: 16px;
	line-height: 1.3;
	font-weight: 700;
	font-variation-settings: "wght" 700;
	color: var(--sc-anthrazit);
}

.sc-start-form .sc-form-gruppe span {
	color: var(--sc-red);
}

.sc-form-pflicht p {
	margin: 10px 0 0;
	font-size: 14px;
	line-height: 1.45;
	color: #6b7176;
}

/* „Weitere Angaben (optional)“ im Formular */
.elementor-kit-9 button.sc-weitere-knopf,
.sc-weitere-knopf {
	position: relative;
	display: block;
	width: 100%;
	padding: 12px 48px 12px 14px;
	border: 1px solid #e3e6e8;
	border-radius: 6px;
	background: #fff;
	font-family: var(--sc-font-body);
	font-size: 16px;
	font-weight: 700;
	font-variation-settings: "wght" 700;
	text-align: left;
	color: var(--sc-anthrazit);
	cursor: pointer;
}

.elementor-kit-9 button.sc-weitere-knopf:hover,
.elementor-kit-9 button.sc-weitere-knopf:focus {
	background: #fff;
	color: var(--sc-red);
}

.sc-weitere-knopf:focus-visible {
	outline: 2px solid var(--sc-red);
	outline-offset: 2px;
}

.sc-weitere-knopf::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 12px;
	width: 24px;
	height: 24px;
	margin-top: -12px;
	border-radius: 50%;
	background:
		linear-gradient(#fff, #fff) no-repeat center / 11px 2px,
		linear-gradient(#fff, #fff) no-repeat center / 2px 11px,
		var(--sc-red);
}

.sc-weitere-knopf[aria-expanded="true"]::after {
	background:
		linear-gradient(#fff, #fff) no-repeat center / 11px 2px,
		var(--sc-red);
}

.sc-start-form .elementor-field-type-html:has(.sc-form-gruppe) {
	margin-top: 6px;
}

/* Handy und Tablet: Kontaktblock und Formular ohne Lücke untereinander. */
@media (max-width: 1024px) {
	.e-con.sc-anfrage-grid.sc-kb-grid,
	.e-con.sc-anfrage-grid.sc-kb-grid > .e-con-inner {
		grid-template-rows: auto auto;
	}
}

/* Vergleichsregler: Beschriftungen überlappen sich am Handy nicht. */
@media (max-width: 767px) {
	.sc-compare .icv__label {
		padding: 3px 7px;
		font-size: 11px;
		letter-spacing: 0;
	}
}

/* Sprungziele nicht unter der fixierten Sprungleiste verstecken. */
details.sc-fd,
details.sc-fd [id] {
	scroll-margin-top: 130px;
}
