/*
Theme Name: Energiehaus Unterfranken
Theme URI: https://energiehaus-unterfranken.de
Author: Energiehaus Unterfranken
Description: Block-Theme für Energiehaus Unterfranken – „Wir haben was gegen Energiekosten.“ Photovoltaik, Speicher, Wärmepumpe und mehr aus Schweinfurt. Schriften lokal eingebunden (DSGVO-freundlich), Anfrageformular ohne Plugin, alle Texte und Bilder im Website-Editor änderbar.
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
Version: 2.1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: energiehaus
*/

:root {
	--eh-gruen: #15392D;
	--eh-gruen-tief: #0F2A21;
	--eh-gruen-hell: #1F4A3B;
	--eh-gold: #CDB174;
	--eh-gold-dunkel: #7D6838;
	--eh-creme: #F8F5EE;
	--eh-linie: #E7E0D0;
	--eh-text-leise: #4A5A52;
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
:where([id]) { scroll-margin-top: 90px; }
img { max-width: 100%; height: auto; }
.wp-site-blocks > * { margin-block-start: 0 !important; }
.eh-main, .eh-main > * { margin-block-start: 0 !important; margin-block-end: 0 !important; }

/* ------------------------------------------------------------ Grundgerüst */
.eh-inner {
	box-sizing: border-box;
	width: 100%;
	max-width: 1248px;
	margin-left: auto !important;
	margin-right: auto !important;
	padding-left: 24px;
	padding-right: 24px;
}
.eh-section { padding-top: 88px; padding-bottom: 88px; }
.eh-section h2 { font-size: clamp(28px, 3.2vw, 38px); margin: 0 0 16px; letter-spacing: -0.01em; }
.eh-section h3 { font-size: 18px; margin: 0 0 8px; }
.eh-section p { margin: 0 0 12px; }

.eh-eyebrow {
	font-size: 12px !important;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--eh-gold-dunkel);
	margin: 0 0 12px !important;
}
.eh-dark .eh-eyebrow { color: var(--eh-gold); }
.eh-leise { color: var(--eh-text-leise); }
.eh-creme { background: var(--eh-creme); }
.eh-dark { background: var(--eh-gruen); color: #fff; }
.eh-dark h1, .eh-dark h2, .eh-dark h3 { color: #fff; }
.eh-dark p { color: rgba(255, 255, 255, 0.86); }

/* Pfeil hinter Buttons und Links */
.eh-arrow .wp-block-button__link::after,
a.eh-arrow::after,
.eh-arrow a::after {
	content: "";
	display: inline-block;
	width: 16px;
	height: 16px;
	margin-left: 10px;
	vertical-align: -3px;
	background: currentColor;
	-webkit-mask: url("assets/images/pfeil.svg") center / contain no-repeat;
	mask: url("assets/images/pfeil.svg") center / contain no-repeat;
}

/* ------------------------------------------------------------ Buttons */
.wp-block-buttons { gap: 14px; }
.wp-block-button__link { transition: background-color .15s ease, color .15s ease, border-color .15s ease; }
.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent;
	color: #fff;
	border: 1.5px solid rgba(255, 255, 255, 0.85);
	padding: 14px 24px;
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: #fff; color: var(--eh-gruen); }

/* ------------------------------------------------------------ Kopfzeile */
header.wp-block-template-part { position: sticky; top: 0; z-index: 100; }
.admin-bar header.wp-block-template-part { top: 32px; }
@media (max-width: 782px) { .admin-bar header.wp-block-template-part { top: 46px; } }
@media (max-width: 600px) { .admin-bar header.wp-block-template-part { top: 0; } }

.eh-header { background: var(--eh-gruen-tief); }
.eh-header-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 28px;
	padding-top: 12px;
	padding-bottom: 12px;
}
.eh-header-row > * { margin: 0 !important; }
.eh-logo { flex: 0 0 auto; width: auto !important; }
.eh-logo img { display: block; height: 40px !important; width: auto !important; max-width: none !important; }
.eh-header .wp-block-navigation { flex: 1 1 auto; justify-content: center; font-size: 14px; font-weight: 600; gap: 30px; }
.eh-header .wp-block-navigation__container { flex-wrap: nowrap; gap: 30px; }
.eh-header .wp-block-navigation a.wp-block-navigation-item__content { color: #fff; text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.eh-header .wp-block-navigation a.wp-block-navigation-item__content:hover { color: var(--eh-gold); }
.eh-header .wp-block-navigation .eh-aktiv a.wp-block-navigation-item__content { border-bottom-color: var(--eh-gold); }
.eh-header .wp-block-navigation__responsive-container-open { color: #fff; }
.eh-header .wp-block-button__link { padding: 11px 18px; font-size: 14px; white-space: nowrap; }
@media (max-width: 1180px) and (min-width: 600px) {
	.eh-header .wp-block-navigation, .eh-header .wp-block-navigation__container { gap: 18px; }
}
@media (max-width: 1000px) { .eh-header .wp-block-buttons { display: none; } }
@media (max-width: 600px) { .eh-logo img { height: 34px !important; } }

/* Handy-Menü */
.eh-header .wp-block-navigation__responsive-container.is-menu-open {
	background: var(--eh-gruen-tief) !important;
	color: #fff !important;
	padding: 24px !important;
}
.eh-header .is-menu-open .wp-block-navigation__responsive-container-close { top: 24px; right: 24px; color: #fff; }
.eh-header .is-menu-open .wp-block-navigation__responsive-container-content { padding-top: 72px !important; align-items: flex-start !important; }
.eh-header .is-menu-open .wp-block-navigation__container { align-items: flex-start !important; justify-content: flex-start !important; gap: 4px !important; width: 100%; }
.eh-header .is-menu-open .wp-block-navigation-item { width: 100%; align-items: flex-start !important; border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
.eh-header .is-menu-open .wp-block-navigation-item__content {
	color: #fff !important;
	font-size: 22px;
	font-weight: 700;
	padding: 14px 0 !important;
	display: block;
	width: 100%;
	text-align: left !important;
	border-bottom: 0 !important;
}

/* ------------------------------------------------------------ Hero */
.eh-hero.wp-block-cover { padding: 0; min-height: 620px; align-items: center; }
.eh-hero .wp-block-cover__background {
	background: linear-gradient(90deg, rgba(15, 42, 33, 0.97) 0%, rgba(15, 42, 33, 0.9) 30%, rgba(15, 42, 33, 0.45) 50%, rgba(15, 42, 33, 0) 66%) !important;
	opacity: 1 !important;
}
.eh-hero .wp-block-cover__inner-container { width: 100% !important; max-width: none !important; }
.eh-hero-text { max-width: 680px; padding-top: 72px; padding-bottom: 72px; }
.eh-hero h1 {
	color: #fff;
	font-size: clamp(34px, 4.1vw, 54px);
	line-height: 1.1;
	letter-spacing: -0.015em;
	font-weight: 700;
	margin: 0 0 22px;
}
.eh-hero h1 mark { font-weight: 800; letter-spacing: 0.01em; }
.eh-hero .eh-lead { font-size: 18px; color: rgba(255, 255, 255, 0.9); margin: 0 0 30px; max-width: 520px; }
.eh-trust { display: flex; flex-wrap: wrap; gap: 20px 40px; margin-top: 44px !important; }
.eh-trust > * { margin: 0 !important; }
.eh-trust-item { display: flex !important; align-items: center; gap: 14px; }
.eh-trust-item figure { margin: 0 !important; flex: 0 0 36px; }
.eh-trust-item figure img { width: 36px; height: 36px; display: block; }
.eh-trust-item p { margin: 0 !important; color: #fff !important; font-size: 14px; font-weight: 500; line-height: 1.35; }
@media (max-width: 781px) {
	.eh-hero.wp-block-cover { min-height: 0; }
	.eh-hero .wp-block-cover__background {
		background: linear-gradient(180deg, rgba(15, 42, 33, 0.93) 0%, rgba(15, 42, 33, 0.82) 60%, rgba(15, 42, 33, 0.55) 100%) !important;
	}
	.eh-hero-text { padding-top: 56px; padding-bottom: 56px; }
}

/* ------------------------------------------------------------ Leistungen */
.eh-leistungen-kopf { align-items: flex-end !important; margin-bottom: 40px !important; }
.eh-leistungen-kopf p:not(.eh-eyebrow) { color: var(--eh-text-leise); margin: 0 0 6px; }
.eh-karten {
	display: grid !important;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 14px;
}
.eh-karten > * { margin: 0 !important; }
.eh-karte {
	background: #fff;
	border: 1px solid var(--eh-linie);
	border-radius: 6px;
	padding: 28px 16px 24px;
	text-align: center;
	display: flex !important;
	flex-direction: column;
	align-items: center;
}
.eh-karte > * { margin: 0 !important; }
.eh-karte figure { margin-bottom: 18px !important; }
.eh-karte figure img { width: 48px; height: 48px; display: block; }
.eh-karte h3 { font-size: 16px; margin-bottom: 8px !important; }
.eh-karte p { font-size: 13px; color: var(--eh-text-leise); line-height: 1.5; }
.eh-karte .eh-mehr { margin-top: auto !important; padding-top: 16px; font-size: 13px; font-weight: 700; }
.eh-karte .eh-mehr a { color: var(--eh-gold-dunkel); text-decoration: none; white-space: nowrap; }
.eh-karte .eh-mehr a:hover { color: var(--eh-gruen); }
@media (max-width: 1100px) { .eh-karten { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .eh-karten { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ------------------------------------------------------------ Privat / Gewerbe */
.eh-zielgruppen { background: #fff; padding: 8px 0; }
.eh-zielgruppen .wp-block-columns { gap: 8px; margin: 0; }
.eh-tile.wp-block-cover { min-height: 400px; padding: 52px 56px; align-items: flex-end; }
.eh-tile .wp-block-cover__background {
	background: linear-gradient(90deg, rgba(15, 42, 33, 0.96) 0%, rgba(15, 42, 33, 0.85) 38%, rgba(15, 42, 33, 0.2) 72%, rgba(15, 42, 33, 0) 90%) !important;
	opacity: 1 !important;
}
.eh-tile .wp-block-cover__inner-container { max-width: 440px !important; margin: 0 !important; color: #fff; }
.eh-tile h2 { color: #fff; font-size: clamp(24px, 2.2vw, 30px); margin: 0 0 14px; font-weight: 700; }
.eh-tile p:not(.eh-eyebrow) { color: rgba(255, 255, 255, 0.9); font-size: 15px; margin: 0 0 24px; max-width: 340px; }
.eh-tile .eh-eyebrow { color: var(--eh-gold); }
@media (max-width: 781px) { .eh-tile.wp-block-cover { padding: 40px 24px; min-height: 340px; } }

/* ------------------------------------------------------------ Ansprechpartner */
.eh-person { background: #fff; }
.eh-person > .wp-block-columns { gap: 0; margin: 0; align-items: stretch !important; }
.eh-person-bild { margin: 0 !important; height: 100%; }
.eh-person-bild img { width: 100%; height: 100% !important; min-height: 420px; object-fit: cover; object-position: 62% 40%; display: block; }
.eh-person-text { padding: 64px 48px; }
.eh-person-text h2 { font-size: clamp(26px, 2.6vw, 32px); margin: 0 0 18px; }
.eh-person-text p { color: var(--eh-text-leise); font-size: 15px; }
.eh-zitat {
	display: flex !important;
	gap: 16px;
	margin-top: 24px !important;
}
.eh-zitat::before {
	content: "\201E";
	font-size: 72px;
	line-height: 0.6;
	color: var(--eh-gold);
	font-weight: 800;
	flex: 0 0 auto;
}
.eh-zitat > div { flex: 1; }
.eh-zitat p { color: var(--eh-gruen) !important; font-style: italic; font-size: 15px !important; }
.eh-zitat .eh-name { font-style: normal; font-weight: 700; margin: 10px 0 0 !important; font-size: 14px !important; }
.eh-zitat .eh-rolle { font-style: normal; font-size: 13px !important; color: var(--eh-text-leise) !important; margin: 0 !important; }
.eh-punkte { padding: 64px 40px 64px 32px; display: flex !important; flex-direction: column; justify-content: center; gap: 24px; border-left: 1px solid var(--eh-linie); }
.eh-punkte > * { margin: 0 !important; }
.eh-punkt { display: flex !important; align-items: center; gap: 16px; }
.eh-punkt > * { margin: 0 !important; }
.eh-punkt figure {
	flex: 0 0 52px;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: var(--eh-creme);
	display: flex;
	align-items: center;
	justify-content: center;
}
.eh-punkt figure img { width: 26px; height: 26px; display: block; }
.eh-punkt p { font-size: 14px; line-height: 1.4; color: var(--eh-gruen); }
@media (max-width: 781px) {
	.eh-person-bild img { min-height: 320px; max-height: 420px; }
	.eh-person-text { padding: 48px 24px 24px; }
	.eh-punkte { padding: 8px 24px 56px; border-left: 0; }
}

/* ------------------------------------------------------------ Ablauf */
.eh-ablauf { padding-top: 64px; padding-bottom: 64px; }
.eh-ablauf > .eh-inner > .wp-block-columns { align-items: center !important; gap: 32px; margin: 0; }
.eh-ablauf h2 { font-size: clamp(24px, 2.4vw, 30px); }
.eh-schritte {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 44px;
}
.eh-schritte > * { margin: 0 !important; }
.eh-schritt { position: relative; }
.eh-schritt > * { margin: 0 !important; }
.eh-schritt:not(:last-child)::after {
	content: "";
	position: absolute;
	top: 12px;
	right: -40px;
	width: 34px;
	height: 12px;
	background: url("assets/images/schritt-pfeil.svg") center / contain no-repeat;
}
.eh-schritt-kopf { display: flex !important; align-items: center; gap: 12px; margin-bottom: 14px !important; }
.eh-schritt-kopf > * { margin: 0 !important; }
.eh-nr {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--eh-gold);
	color: #fff !important;
	font-weight: 700;
	font-size: 15px !important;
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 34px;
}
.eh-schritt-kopf figure img { width: 30px; height: 30px; display: block; }
.eh-schritt h3 { font-size: 16px; margin-bottom: 6px !important; }
.eh-schritt p:not(.eh-nr) { font-size: 13px; color: var(--eh-text-leise); line-height: 1.5; }
@media (max-width: 1100px) {
	.eh-schritte { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
	.eh-schritt::after { display: none; }
}
@media (max-width: 520px) { .eh-schritte { grid-template-columns: minmax(0, 1fr); } }

/* ------------------------------------------------------------ Anfrage */
.eh-anfrage { position: relative; overflow: hidden; }
.eh-anfrage > .eh-inner > .wp-block-columns { gap: 48px; margin: 0; align-items: center !important; }
.eh-anfrage h2 { font-size: clamp(26px, 2.4vw, 31px); margin-bottom: 16px; letter-spacing: -0.01em; }
.eh-anfrage .eh-lead { font-size: 16px; margin-bottom: 28px; max-width: 460px; }
.eh-vorteile { display: flex !important; flex-wrap: wrap; gap: 14px 30px; margin-top: 36px !important; }
.eh-vorteile > * { margin: 0 !important; }
.eh-vorteil { display: flex !important; align-items: center; gap: 10px; }
.eh-vorteil > * { margin: 0 !important; }
.eh-vorteil figure img { width: 24px; height: 24px; display: block; }
.eh-vorteil p { font-size: 13px; color: rgba(255, 255, 255, 0.86) !important; }
.eh-slogan {
	font-family: var(--wp--preset--font-family--handschrift);
	color: #fff !important;
	font-size: 38px !important;
	line-height: 1.1;
	transform: rotate(-8deg);
	padding-bottom: 14px;
	background: linear-gradient(var(--eh-gold), var(--eh-gold)) left bottom / 80% 2px no-repeat;
	margin: 0 !important;
}
@media (max-width: 781px) { .eh-slogan { font-size: 30px !important; transform: rotate(-4deg); margin-top: 8px !important; } }

/* Formular */
.eh-form {
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 6px;
	padding: 26px;
	display: grid;
	gap: 12px;
}
.eh-form label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.eh-form input[type="text"],
.eh-form input[type="email"],
.eh-form input[type="tel"],
.eh-form select,
.eh-form textarea {
	width: 100%;
	box-sizing: border-box;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-radius: 4px;
	color: #fff;
	font: inherit;
	font-size: 14px;
	padding: 13px 14px;
}
.eh-form select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23CDB174' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; padding-right: 40px; }
.eh-form select option { color: #15392D; }
.eh-form ::placeholder { color: rgba(255, 255, 255, 0.72); }
.eh-form input:focus, .eh-form select:focus, .eh-form textarea:focus { outline: 2px solid var(--eh-gold); outline-offset: 1px; border-color: transparent; }
.eh-form button {
	background: var(--eh-gold);
	color: var(--eh-gruen-tief);
	border: 0;
	border-radius: 4px;
	font: inherit;
	font-weight: 700;
	font-size: 15px;
	padding: 15px;
	cursor: pointer;
	margin-top: 4px;
}
.eh-form button:hover { background: #DCC592; }
.eh-form button::after {
	content: "";
	display: inline-block;
	width: 16px;
	height: 16px;
	margin-left: 10px;
	vertical-align: -3px;
	background: currentColor;
	-webkit-mask: url("assets/images/pfeil.svg") center / contain no-repeat;
	mask: url("assets/images/pfeil.svg") center / contain no-repeat;
}
.eh-form .eh-hinweis { font-size: 12px; color: rgba(255, 255, 255, 0.72); margin: 0; }
.eh-form .eh-hinweis a { color: #fff; }
.eh-form .eh-honig { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.eh-meldung { border-radius: 4px; padding: 14px 16px; font-size: 14px; font-weight: 600; margin: 0 0 4px; }
.eh-meldung.ok { background: rgba(205, 177, 116, 0.18); color: #fff; border: 1px solid var(--eh-gold); }
.eh-meldung.fehler { background: rgba(255, 120, 100, 0.14); color: #fff; border: 1px solid #E89A8A; }

/* ------------------------------------------------------------ Fußzeile */
.eh-footer { background: var(--eh-gruen-tief); color: rgba(255, 255, 255, 0.78); padding-top: 64px; padding-bottom: 32px; font-size: 14px; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.eh-footer h3 { color: var(--eh-gold); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; margin: 0 0 14px; }
.eh-footer p { margin: 0 0 8px; color: rgba(255, 255, 255, 0.78); }
.eh-footer a { color: #fff; text-decoration: none; }
.eh-footer a:hover { color: var(--eh-gold); }
.eh-footer figure { margin: 0 0 16px; }
.eh-footer figure img { height: 38px !important; width: auto !important; max-width: 100%; display: block; }
.eh-footer .wp-block-columns { gap: 36px; }
.eh-footer-unten { border-top: 1px solid rgba(255, 255, 255, 0.14); margin-top: 40px !important; padding-top: 22px; font-size: 13px; display: flex !important; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.eh-footer-unten > * { margin: 0 !important; }

/* ------------------------------------------------------------ Unterseiten */
.eh-page { padding-top: 72px; padding-bottom: 96px; }
.eh-narrow { max-width: 808px; }
.eh-page h1 { font-size: clamp(32px, 4vw, 44px); margin: 0 0 28px; }
.eh-page h2 { font-size: 24px; margin: 36px 0 12px; }

/* ------------------------------------------------------------ Spalten mobil */
@media (max-width: 781px) {
	.eh-section { padding-top: 64px; padding-bottom: 64px; }
	.eh-leistungen-kopf { margin-bottom: 28px !important; }
}

/* ------------------------------------------------------------ Feinschliff */
.eh-header .wp-block-navigation a.wp-block-navigation-item__content { white-space: nowrap; }
@media (max-width: 1180px) and (min-width: 601px) { .eh-header .wp-block-buttons { display: none; } }
.eh-karte h3 { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
@media (max-width: 640px) {
	.eh-karte { padding: 22px 10px 18px; }
	.eh-karte h3 { font-size: 14px; }
	.eh-karte .eh-mehr { font-size: 12px; }
}
@media (max-width: 781px) {
	.eh-tile .wp-block-cover__background {
		background: linear-gradient(180deg, rgba(15, 42, 33, 0.92) 0%, rgba(15, 42, 33, 0.85) 55%, rgba(15, 42, 33, 0.6) 100%) !important;
	}
}

/* ------------------------------------------------------------ Referenzen */
.eh-referenzen h1 { font-size: clamp(32px, 4vw, 44px); margin: 0 0 12px; }
.eh-referenzen .eh-leise { margin-bottom: 40px !important; }
.eh-projekte { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.eh-projekte > * { margin: 0 !important; }
.eh-projekt { background: #fff; border: 1px solid var(--eh-linie); border-radius: 6px; overflow: hidden; padding-bottom: 22px; }
.eh-projekt > * { margin: 0 !important; }
.eh-projekt figure { margin-bottom: 18px !important; }
.eh-projekt figure img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
.eh-projekt h3 { padding: 0 22px; font-size: 17px; margin-bottom: 6px !important; }
.eh-projekt p { padding: 0 22px; font-size: 14px; color: var(--eh-text-leise); }
@media (max-width: 900px) { .eh-projekte { grid-template-columns: minmax(0, 1fr); } }

/* Leistungen-Kopf wie im Entwurf: Überschrift in zwei Zeilen */
@media (min-width: 782px) {
	.eh-leistungen-kopf > .wp-block-column:first-child { flex-basis: 56% !important; flex-grow: 0 !important; }
}
.eh-leistungen-kopf h2 { font-size: clamp(26px, 2.5vw, 32px); }
