/* ============================================================
   Malerwerkstaetten Fuell - Page Sections
   ============================================================ */

:root {
	--fuell-gray-50:   #f9f9f9;
	--fuell-gray-300:  #cccccc;
	--fuell-gray-500:  #888888;
}

/* ------------------------------------------------------------
   Default-Page-Title und Theme-Compat-Header auf Leistungsseite ausblenden
   (Fallbacks aus wp-includes/theme-compat/header.php oder Theme-Title-Bloecke)
   ------------------------------------------------------------ */
body.page-id-19 #header,
body.page-id-19 #headerimg,
body.page-id-19 .entry-title,
body.page-id-19 .page-title,
body.page-id-19 .page-header,
body.page-id-19 .wp-block-post-title,
body.page-id-19 main > h1:first-child:not(.hero__title),
body.page-id-19 main > header:first-child:not([role="banner"]) {
	display: none !important;
}

/* Body resets fuer die klassische Page (Reset von Theme-Defaults) */
body.page-id-19 {
	margin: 0;
	padding: 0;
	font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
	line-height: 1.6;
	color: var(--fuell-text);
	background: var(--fuell-white);
}

body.page-id-19 main {
	display: block;
	margin: 0;
	padding: 0;
}

body.page-id-19 main * {
	box-sizing: border-box;
}

body.page-id-19 main img {
	max-width: 100%;
	display: block;
}

body.page-id-19 main h1,
body.page-id-19 main h2,
body.page-id-19 main h3,
body.page-id-19 main h4 {
	margin: 0;
	font-family: inherit;
}

body.page-id-19 main p {
	margin: 0;
}

body.page-id-19 main a {
	color: inherit;
	text-decoration: none;
}

body.page-id-19 main ul,
body.page-id-19 main ol {
	list-style: none;
	margin: 0;
	padding: 0;
}

/* ------------------------------------------------------------
   Main padding/margin neutralisieren - Startseite (Block-Theme)
   Leistungsseite nutzt klassisches PHP-Template, kein Override noetig.
   ------------------------------------------------------------ */
body.page-id-24 main.wp-block-group,
body.page-id-24 .fuell-page-wrap {
	padding: 0 !important;
	margin: 0 !important;
}

body.page-id-24 .fuell-page-wrap > * {
	margin-block: 0 !important;
}

/* ------------------------------------------------------------
   Globaler Container
   ------------------------------------------------------------ */
.fuell-container {
	width: min(1140px, 100% - 2 * clamp(1rem, 4vw, 3rem));
	margin-inline: auto;
}

/* ------------------------------------------------------------
   Generische Buttons (.fuell-btn / .fuell-btn--green / --outline-green)
   ------------------------------------------------------------ */
.fuell-btn {
	display: inline-block;
	padding: 0.6rem 1.4rem;
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.4;
	border-radius: var(--fuell-radius);
	border: 2px solid transparent;
	text-decoration: none;
	cursor: pointer;
	transition: background var(--fuell-trans), color var(--fuell-trans), border-color var(--fuell-trans), transform var(--fuell-trans);
}

.fuell-btn--green {
	background: var(--fuell-green);
	color: #fff;
	border-color: var(--fuell-green);
}

.fuell-btn--green:hover,
.fuell-btn--green:focus {
	background: var(--fuell-green-hover);
	border-color: var(--fuell-green-hover);
	color: #fff;
	transform: translateY(-1px);
}

.fuell-btn--outline-green {
	background: transparent;
	color: var(--fuell-green);
	border-color: var(--fuell-green);
}

.fuell-btn--outline-green:hover,
.fuell-btn--outline-green:focus {
	background: var(--fuell-green-light);
	color: var(--fuell-green);
	transform: translateY(-1px);
}

.fuell-btn:focus-visible {
	outline: 2px solid var(--fuell-green);
	outline-offset: 3px;
}

/* ------------------------------------------------------------
   FLOATING ACTION BUTTON
   ------------------------------------------------------------ */
.fuell-float-btn {
	position: fixed;
	bottom: 1.5rem;
	right: 1.5rem;
	z-index: 200;
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	padding: 0.85rem 1.25rem;
	background: var(--fuell-green);
	color: #fff;
	border-radius: 50px;
	font-size: 0.875rem;
	font-weight: 600;
	text-decoration: none;
	box-shadow: 0 4px 16px rgba(58,125,44,0.5);
	opacity: 0;
	transform: translateY(10px);
	pointer-events: none;
	transition: opacity 0.3s ease, transform 0.3s ease, background var(--fuell-trans);
}

.fuell-float-btn.show {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}

.fuell-float-btn:hover {
	background: var(--fuell-green-hover);
	color: #fff;
}

.fuell-float-btn svg {
	display: block;
}

@media (max-width: 480px) {
	.fuell-float-btn {
		bottom: 1rem;
		right: 1rem;
		padding: 0.75rem 1rem;
		font-size: 0.82rem;
	}
}

/* ============================================================
   LEISTUNGSSEITE - exakt nach Referenzvorlage
   ============================================================ */

/* HERO */
.hero {
	position: relative;
	height: clamp(220px, 32vw, 360px);
	overflow: hidden;
}

.hero__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 40%;
}

.hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to bottom, rgba(0,0,0,0.28) 0%, rgba(0,0,0,0.60) 100%);
}

.hero__content {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	color: #fff;
	padding: 2rem 1rem;
	gap: 0.5rem;
}

.hero__eyebrow {
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: rgba(255,255,255,0.75);
	margin: 0;
}

.hero__title {
	font-size: clamp(1.6rem, 4vw, 2.8rem);
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.01em;
	margin: 0;
}

/* INTRO */
.intro {
	background: var(--fuell-white);
	padding-block: clamp(2.5rem, 5vw, 4rem);
	text-align: center;
	border-bottom: 1px solid var(--fuell-gray-100);
}

.intro h2 {
	font-size: clamp(1.3rem, 2.5vw, 1.9rem);
	font-weight: 700;
	color: var(--fuell-green);
	margin-bottom: 0.35rem;
	margin-top: 0;
}

.intro__sub {
	font-size: 0.95rem;
	color: var(--fuell-gray-500);
	margin: 0;
}

/* LEISTUNGEN GRID */
.leistungen {
	background: var(--fuell-white);
	padding-block: clamp(2rem, 4vw, 3.5rem);
}

.leistungen__section-title {
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--fuell-green);
	margin-bottom: 1.25rem;
	margin-top: 0;
	padding-bottom: 0.75rem;
	border-bottom: 2px solid var(--fuell-green-light);
}

.leistungen__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
	gap: 1px;
	background: var(--fuell-gray-100);
	border: 1px solid var(--fuell-gray-100);
	border-radius: var(--fuell-radius);
	overflow: hidden;
	margin-bottom: 1.5rem;
}

.leistung-card {
	background: var(--fuell-white);
	padding: 1.75rem 1.5rem;
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
	opacity: 0;
	transform: translateY(16px);
	transition: background var(--fuell-trans), opacity 0.5s ease, transform 0.5s ease;
}

.leistung-card.in {
	opacity: 1;
	transform: translateY(0);
}

.leistung-card:hover {
	background: var(--fuell-gray-50);
}

.leistung-card__icon {
	width: 40px;
	height: 40px;
	background: var(--fuell-green-light);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	transition: background var(--fuell-trans);
}

.leistung-card:hover .leistung-card__icon {
	background: var(--fuell-green);
}

.leistung-card:hover .leistung-card__icon svg {
	color: #fff;
}

.leistung-card__icon svg {
	width: 18px;
	height: 18px;
	color: var(--fuell-green);
	transition: color var(--fuell-trans);
}

.leistung-card h3 {
	font-size: 0.975rem;
	font-weight: 700;
	color: var(--fuell-green);
	line-height: 1.3;
	margin: 0;
}

.leistung-card p {
	font-size: 0.86rem;
	color: var(--fuell-gray-700);
	line-height: 1.65;
	margin: 0;
}

/* ALLES AUS EINER HAND */
.alles {
	background: var(--fuell-gray-50);
	border-top: 1px solid var(--fuell-gray-100);
	border-bottom: 1px solid var(--fuell-gray-100);
	padding-block: clamp(2.5rem, 5vw, 4rem);
}

.alles__inner {
	display: grid;
	grid-template-columns: 1.1fr 1fr;
	gap: clamp(2rem, 4vw, 4rem);
	align-items: center;
}

.alles__text-col h2 {
	font-size: clamp(1.3rem, 2.5vw, 1.85rem);
	font-weight: 700;
	line-height: 1.3;
	margin-bottom: 1rem;
	margin-top: 0;
}

.alles__text-col p {
	font-size: 0.92rem;
	color: var(--fuell-gray-700);
	line-height: 1.75;
	margin: 0;
}

.alles__innung-box {
	background: var(--fuell-white);
	border: 1px solid var(--fuell-gray-200);
	border-radius: var(--fuell-radius);
	padding: 1.5rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 1rem;
	box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}

.alles__innung-box img {
	max-width: 180px;
	height: auto;
}

.innung-label {
	font-size: 1.15rem;
	font-weight: 700;
	color: var(--fuell-text);
	line-height: 1.3;
	margin: 0;
}

.innung-divider {
	width: 100%;
	height: 4px;
	background: linear-gradient(to right, #1e5da8, #f5c300, #d62b27);
	border-radius: 2px;
}

.innung-sub {
	font-size: 0.83rem;
	color: var(--fuell-gray-500);
	line-height: 1.55;
	margin: 0;
}

@media (max-width: 720px) {
	.alles__inner {
		grid-template-columns: 1fr;
	}
}

/* DOPPELTE SICHERHEIT */
.sicherheit {
	background: var(--fuell-white);
	padding-block: clamp(2.5rem, 5vw, 4rem);
	border-bottom: 1px solid var(--fuell-gray-100);
}

.sicherheit__inner {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(2rem, 4vw, 4rem);
	align-items: start;
}

.sicherheit__text h2 {
	font-size: clamp(1.3rem, 2.5vw, 1.85rem);
	font-weight: 700;
	line-height: 1.3;
	margin-bottom: 1rem;
	margin-top: 0;
}

.sicherheit__text p {
	font-size: 0.92rem;
	color: var(--fuell-gray-700);
	line-height: 1.75;
	margin-bottom: 0.9rem;
	margin-top: 0;
}

.sicherheit__image {
	border-radius: var(--fuell-radius);
	overflow: hidden;
	box-shadow: var(--fuell-shadow-md);
	aspect-ratio: 4/3;
}

.sicherheit__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 20%;
}

@media (max-width: 720px) {
	.sicherheit__inner {
		grid-template-columns: 1fr;
	}

	.sicherheit__image {
		aspect-ratio: 16/9;
	}
}

/* MIT FARBE AKZENTE SETZEN */
.farbe {
	background: var(--fuell-gray-50);
	padding-block: clamp(2.5rem, 5vw, 4rem);
	border-bottom: 1px solid var(--fuell-gray-100);
}

.farbe__inner {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(2rem, 4vw, 4rem);
	align-items: center;
}

.farbe__image {
	border-radius: var(--fuell-radius);
	overflow: hidden;
	box-shadow: var(--fuell-shadow-md);
	aspect-ratio: 4/3;
	order: -1;
}

.farbe__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.farbe__text h2 {
	font-size: clamp(1.3rem, 2.5vw, 1.85rem);
	font-weight: 700;
	line-height: 1.3;
	margin-bottom: 1rem;
	margin-top: 0;
}

.farbe__text p {
	font-size: 0.92rem;
	color: var(--fuell-gray-700);
	line-height: 1.75;
	margin-bottom: 0.9rem;
	margin-top: 0;
}

@media (max-width: 720px) {
	.farbe__inner {
		grid-template-columns: 1fr;
	}

	.farbe__image {
		order: 0;
		aspect-ratio: 16/9;
	}
}

/* CTA BANNER */
.cta-banner {
	background: var(--fuell-dark);
	color: #fff;
	padding-block: clamp(2.5rem, 6vw, 4.5rem);
	text-align: center;
}

.cta-banner h2 {
	font-size: clamp(1.2rem, 3vw, 1.9rem);
	font-weight: 700;
	line-height: 1.35;
	max-width: 560px;
	margin: 0 auto 1.5rem;
	color: #fff;
}

/* SECTION-LABEL */
.section-label {
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--fuell-green);
	margin-bottom: 0.6rem;
	margin-top: 0;
}

/* FADE-UP ANIMATION */
.fade-up {
	opacity: 0;
	transform: translateY(20px);
	transition: opacity 0.55s ease, transform 0.55s ease;
}

.fade-up.in {
	opacity: 1;
	transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		transition-duration: 0.01ms !important;
	}

	.fade-up,
	.leistung-card,
	.fuell-fade-up,
	.fuell-float-btn {
		opacity: 1 !important;
		transform: none !important;
	}
}

/* ============================================================
   STARTSEITE - Block-Theme-Content (Post 24)
   Behalt die existierenden .fuell-page Klassen vom Vorlauf.
   ============================================================ */

.fuell-page {
	font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
	color: var(--fuell-text);
	line-height: 1.6;
	font-weight: 400;
	overflow-x: hidden;
}

.fuell-page *,
.fuell-page *::before,
.fuell-page *::after {
	box-sizing: border-box;
}

.fuell-page img {
	max-width: 100%;
	display: block;
}

.fuell-page p {
	margin: 0 0 1rem;
}

.fuell-page h1,
.fuell-page h2,
.fuell-page h3 {
	font-family: inherit;
	margin: 0;
}

/* Buttons (.fuell-btn-el) - alt fuer Startseite */
.fuell-page .fuell-btn-el {
	display: inline-block;
	padding: 0.6rem 1.4rem;
	font-size: 0.875rem;
	font-weight: 600;
	border-radius: var(--fuell-radius);
	border: 2px solid transparent;
	text-decoration: none;
	cursor: pointer;
	transition: background var(--fuell-trans), color var(--fuell-trans), border-color var(--fuell-trans), transform var(--fuell-trans);
	line-height: 1.4;
}

.fuell-page .fuell-btn-el--green {
	background: var(--fuell-green);
	color: #fff;
	border-color: var(--fuell-green);
}

.fuell-page .fuell-btn-el--green:hover {
	background: var(--fuell-green-hover);
	border-color: var(--fuell-green-hover);
	color: #fff;
	transform: translateY(-1px);
}

.fuell-page .fuell-btn-el--outline-green {
	background: transparent;
	color: var(--fuell-green);
	border-color: var(--fuell-green);
}

.fuell-page .fuell-btn-el--outline-green:hover {
	background: var(--fuell-green-light);
	transform: translateY(-1px);
}

.fuell-page .fuell-btn-el:focus-visible {
	outline: 2px solid var(--fuell-green);
	outline-offset: 3px;
}

/* HERO Startseite (eigenes Naming-Schema) */
.fuell-hero {
	position: relative;
	height: clamp(260px, 38vw, 400px);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	text-align: center;
	margin: 0;
}

.fuell-hero__bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 30%;
	z-index: 0;
}

.fuell-hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to bottom, rgba(0,0,0,0.32), rgba(0,0,0,0.58));
	z-index: 1;
}

.fuell-hero__content {
	position: relative;
	z-index: 2;
	padding: 0 clamp(1rem, 4vw, 3rem);
	max-width: 900px;
}

.fuell-hero h1 {
	font-size: clamp(1.75rem, 4.5vw, 3rem);
	font-weight: 700;
	letter-spacing: -0.01em;
	line-height: 1.15;
	color: #fff;
	margin: 0 0 0.75rem;
}

.fuell-hero p {
	font-size: clamp(0.95rem, 1.4vw, 1.1rem);
	color: #fff;
	opacity: 0.88;
	margin: 0;
}

/* INFO-SEKTION (Startseite) */
.fuell-info {
	display: grid;
	grid-template-columns: 1fr 1fr;
	background: var(--fuell-white);
	margin: 0;
}

.fuell-info__images {
	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-template-rows: 1fr 1fr;
	gap: 3px;
	background: var(--fuell-gray-200);
}

.fuell-info__images img {
	width: 100%;
	height: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	transition: transform 0.6s ease;
}

.fuell-info__images img:hover {
	transform: scale(1.06);
}

.fuell-info__card {
	background: #fff;
	padding: clamp(1.75rem, 4vw, 3rem);
	border-left: 4px solid var(--fuell-green);
	box-shadow: -10px 0 28px rgba(0,0,0,0.07);
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.fuell-info__badge {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	background: var(--fuell-green-light);
	color: var(--fuell-green);
	padding: 0.35rem 0.75rem;
	border-radius: 50px;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	width: fit-content;
	margin-bottom: 1.25rem;
}

.fuell-info__badge img {
	width: 18px;
	height: 18px;
	object-fit: contain;
}

.fuell-info__card h2 {
	font-size: clamp(1.2rem, 2.5vw, 1.9rem);
	font-weight: 700;
	line-height: 1.3;
	margin: 0 0 1rem;
	color: var(--fuell-text);
}

.fuell-info__card h2 .fuell-accent {
	color: var(--fuell-green);
}

.fuell-info__card p {
	color: var(--fuell-gray-700);
	font-size: 0.98rem;
	line-height: 1.7;
	margin: 0 0 1.5rem;
	max-width: 46ch;
}

.fuell-info__btns {
	display: flex;
	gap: 0.75rem;
	flex-wrap: wrap;
}

@media (max-width: 820px) {
	.fuell-info {
		grid-template-columns: 1fr;
	}

	.fuell-info__images {
		grid-template-columns: repeat(4, 1fr);
		grid-template-rows: 1fr;
	}

	.fuell-info__card {
		border-left: none;
		border-top: 4px solid var(--fuell-green);
		box-shadow: 0 -10px 28px rgba(0,0,0,0.07);
	}
}

@media (max-width: 520px) {
	.fuell-info__images {
		grid-template-columns: 1fr 1fr;
		grid-template-rows: 1fr 1fr;
	}
}

/* REFERENZEN-STRIP (Startseite) */
.fuell-refs {
	background: var(--fuell-gray-50);
	padding: clamp(2.5rem, 5vw, 4rem) clamp(1rem, 4vw, 3rem);
	text-align: center;
}

.fuell-refs__inner {
	width: min(1140px, 100%);
	margin-inline: auto;
}

.fuell-refs__overline {
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--fuell-green);
	margin: 0 0 0.5rem;
}

.fuell-refs h2 {
	font-size: clamp(1.2rem, 2.5vw, 1.9rem);
	font-weight: 700;
	line-height: 1.3;
	margin: 0 0 2rem;
	color: var(--fuell-text);
}

.fuell-refs__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
	margin-bottom: 2rem;
}

.fuell-refs__grid figure {
	margin: 0;
	overflow: hidden;
	border-radius: var(--fuell-radius);
	aspect-ratio: 4/3;
}

.fuell-refs__grid img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s ease;
}

.fuell-refs__grid figure:hover img {
	transform: scale(1.06);
}

@media (max-width: 540px) {
	.fuell-refs__grid {
		grid-template-columns: 1fr 1fr;
	}

	.fuell-refs__grid figure:nth-child(3) {
		display: none;
	}
}

/* LEISTUNGEN-UEBERSICHT (Startseite) */
.fuell-services {
	padding: clamp(3rem, 6vw, 5rem) clamp(1rem, 4vw, 3rem);
	background: #fff;
}

.fuell-services__inner {
	width: min(1140px, 100%);
	margin-inline: auto;
	display: grid;
	grid-template-columns: 1fr 1.8fr;
	gap: clamp(2rem, 5vw, 5rem);
	align-items: start;
}

.fuell-services__left .fuell-overline {
	display: block;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--fuell-green);
	margin-bottom: 0.5rem;
}

.fuell-services__left h2 {
	font-size: clamp(1.2rem, 2.5vw, 1.9rem);
	font-weight: 700;
	line-height: 1.3;
	margin: 0 0 1.5rem;
	color: var(--fuell-text);
}

.fuell-services__list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.fuell-services__list li {
	position: relative;
	padding: 1rem 0 1rem 1.25rem;
	border-top: 1px solid var(--fuell-gray-100);
	font-size: 1rem;
	font-weight: 500;
	color: var(--fuell-text);
	transition: color var(--fuell-trans), padding-left var(--fuell-trans);
	cursor: default;
}

.fuell-services__list li:last-child {
	border-bottom: 1px solid var(--fuell-gray-100);
}

.fuell-services__list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 3px;
	height: 1.1em;
	background: var(--fuell-green);
	border-radius: 1px;
	opacity: 0.85;
}

.fuell-services__list li:hover {
	color: var(--fuell-green);
	padding-left: calc(1.25rem + 4px);
}

@media (max-width: 720px) {
	.fuell-services__inner {
		grid-template-columns: 1fr;
	}
}

/* CTA-BANNER alte Variante (fuell-cta) fuer Startseite */
.fuell-cta {
	background: var(--fuell-dark);
	color: #fff;
	padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1rem, 4vw, 3rem);
	text-align: center;
}

.fuell-cta__inner {
	width: min(900px, 100%);
	margin-inline: auto;
}

.fuell-cta h2 {
	font-size: clamp(1.3rem, 2.6vw, 2rem);
	font-weight: 700;
	line-height: 1.3;
	color: #fff;
	margin: 0 auto 1.5rem;
	max-width: 580px;
}

/* fuell-fade-up (Startseite, anderes Naming) */
.fuell-fade-up {
	opacity: 0;
	transform: translateY(20px);
	transition: opacity 0.55s ease, transform 0.55s ease;
}

.fuell-fade-up.in {
	opacity: 1;
	transform: translateY(0);
}
