/* EEH Bauprojekte, Website. Farben über Variablen anpassbar. */
.eehbp {
	--eehbp-dg: #0d473f;
	--eehbp-or: #e94f1c;
	--eehbp-cr: #f7f3ee;
	--eehbp-be: #eae3d8;
	--eehbp-gr: #718b6e;
	--eehbp-tx: #353535;
	--eehbp-titel: var(--h1-font-family, inherit);
	color: var(--eehbp-tx);
	box-sizing: border-box;
}
.eehbp *, .eehbp *::before, .eehbp *::after { box-sizing: border-box; }
.eehbp [hidden] { display: none !important; }
.eehbp img { max-width: 100%; height: auto; display: block; }
.eehbp h1, .eehbp h2, .eehbp h3 { font-family: var(--eehbp-titel); color: var(--eehbp-dg); line-height: 1.2; }
.eehbp-unterzeile { font-family: var(--eehbp-titel); color: var(--eehbp-gr); margin: 4px 0 14px; font-size: 1.15em; }
.eehbp-unterzeile-gross { font-size: 1.35em; }

/* Knöpfe */
.eehbp-btn {
	display: inline-block; background: var(--eehbp-dg); color: #fff !important; border: 0; padding: 12px 22px;
	cursor: pointer; font: inherit; text-decoration: none !important; border-radius: 2px; line-height: 1.3;
}
.eehbp-btn:hover, .eehbp-btn:focus-visible { background: var(--eehbp-or); }
.eehbp-voll { display: block; width: 100%; text-align: center; margin-top: 16px; }

/* Filter */
.eehbp-filter { display: flex; flex-direction: column; gap: 8px; margin: 0 0 18px; }
.eehbp-filterzeile { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.eehbp-filter-label { min-width: 100px; font-size: .9em; color: #777; }
.eehbp-chip {
	border: 1px solid var(--eehbp-dg); color: var(--eehbp-dg); background: #fff; padding: 6px 14px; border-radius: 3px;
	cursor: pointer; font: inherit; font-size: .95em; line-height: 1.3;
}
.eehbp-chip small { opacity: .75; margin-left: 4px; }
.eehbp-chip.is-on { background: var(--eehbp-dg); color: #fff; }
.eehbp-chip:focus-visible { outline: 2px solid var(--eehbp-or); outline-offset: 2px; }

/* Raster und Karten */
.eehbp-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.eehbp-karte { border: 1px solid var(--eehbp-be); background: #fff; display: flex; transition: box-shadow .2s; min-width: 0; }
.eehbp-karte:hover { box-shadow: 0 6px 18px rgba(13, 71, 63, .12); }
.eehbp-karte[hidden] { display: none !important; }
.eehbp-karte-link { display: flex; flex-direction: column; width: 100%; color: inherit !important; text-decoration: none !important; }
.eehbp-karte-link:focus-visible { outline: 2px solid var(--eehbp-or); outline-offset: 2px; }
.eehbp-bildbox { position: relative; aspect-ratio: 4 / 3; background: var(--eehbp-be); overflow: hidden; }
.eehbp-bildbox img { width: 100%; height: 100%; object-fit: cover; }
.eehbp-leer { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--eehbp-gr); font-family: var(--eehbp-titel); }
.eehbp-badge { position: absolute; top: 12px; left: 12px; padding: 4px 10px; font-size: .88em; z-index: 2; line-height: 1.3; }
.eehbp-s-planung { background: var(--eehbp-gr); color: #fff; }
.eehbp-s-bau { background: var(--eehbp-or); color: #fff; }
.eehbp-s-fertig { background: var(--eehbp-dg); color: var(--eehbp-cr); }
.eehbp-vis { position: absolute; right: 8px; bottom: 8px; background: rgba(0, 0, 0, .55); color: #fff; font-size: 11.5px; padding: 2px 7px; z-index: 2; line-height: 1.4; }
.eehbp-karte-text { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.eehbp-kicker { color: var(--eehbp-gr); font-size: .95em; margin: 0; }
.eehbp-karte-titel { font-size: 1.35em; margin: 0; }
.eehbp-fakten { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; margin-top: 4px; }
.eehbp-fakt { background: var(--eehbp-cr); padding: 8px 10px; min-width: 0; }
.eehbp-fakt b { display: block; color: var(--eehbp-dg); font-size: 1em; font-weight: 400; line-height: 1.25; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: anywhere; }
.eehbp-fakt small { display: block; font-size: .78em; color: #6b6b6b; line-height: 1.25; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
.eehbp-mehr-link { margin-top: auto; padding-top: 6px; color: var(--eehbp-dg); }
.eehbp-mehr-link b { color: var(--eehbp-or); font-weight: 400; }
.eehbp-leer-hinweis { background: var(--eehbp-cr); padding: 24px; text-align: center; color: var(--eehbp-gr); font-family: var(--eehbp-titel); font-size: 1.15em; }
.eehbp-mehr { display: flex; justify-content: center; margin-top: 24px; }

/* Gruppen */
.eehbp-gruppe + .eehbp-gruppe { margin-top: 36px; }
.eehbp-gruppe-titel { margin: 0 0 14px; }
.eehbp-zaehler { font-size: .6em; color: var(--eehbp-gr); font-weight: 400; margin-left: 4px; }

/* Karussell */
.eehbp-karussell { position: relative; }
.eehbp-k-spur { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 2px 2px 8px; }
.eehbp-k-spur::-webkit-scrollbar { display: none; }
.eehbp-k-spur .eehbp-karte { flex: 0 0 320px; scroll-snap-align: start; }
.eehbp-k-pfeil {
	position: absolute; top: 30%; width: 42px; height: 42px; border: 0; background: var(--eehbp-dg); color: #fff;
	font-size: 22px; cursor: pointer; z-index: 4; display: flex; align-items: center; justify-content: center; line-height: 1;
}
.eehbp-k-pfeil:hover, .eehbp-k-pfeil:focus-visible { background: var(--eehbp-or); }
.eehbp-k-l { left: -14px; }
.eehbp-k-r { right: -14px; }
.eehbp-k-pfeil[disabled] { opacity: .35; cursor: default; }

/* Übersicht */
.eehbp-hero-flaeche { background: var(--eehbp-cr); padding: 40px 32px 32px; margin-bottom: 26px; }
.eehbp-hero-flaeche .eehbp-titel { margin: 0; }
.eehbp-intro { max-width: 760px; margin: 12px 0 0; }

/* Projektseite */
.eehbp-banner { background: #fff4e5; border-left: 4px solid var(--eehbp-or); padding: 12px 16px; margin-bottom: 18px; }
.eehbp-krumen { font-size: .9em; color: #777; }
.eehbp-krumen a { color: var(--eehbp-gr); text-decoration: none; }
.eehbp-krumen span { color: var(--eehbp-or); }
.eehbp-titel { margin: 8px 0 0; }
.eehbp-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.eehbp-tag { font-size: .9em; padding: 3px 10px; background: var(--eehbp-be); color: var(--eehbp-dg); }
.eehbp-tag.eehbp-s-planung { background: var(--eehbp-gr); color: #fff; }
.eehbp-tag.eehbp-s-bau { background: var(--eehbp-or); color: #fff; }
.eehbp-tag.eehbp-s-fertig { background: var(--eehbp-dg); color: var(--eehbp-cr); }

.eehbp-zeitleiste { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.eehbp-zeitleiste li { padding: 12px 14px; background: var(--eehbp-be); margin: 0; min-width: 0; }
.eehbp-zeitleiste b { display: block; font-family: var(--eehbp-titel); font-size: 1.1em; color: var(--eehbp-dg); hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
.eehbp-zeitleiste small { font-size: .88em; }
.eehbp-zeitleiste .erledigt { background: var(--eehbp-dg); color: var(--eehbp-be); }
.eehbp-zeitleiste .erledigt b { color: var(--eehbp-cr); }
.eehbp-zeitleiste .aktuell { background: var(--eehbp-or); color: #fff; }
.eehbp-zeitleiste .aktuell b { color: #fff; }

.eehbp-pgrid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 36px; margin-top: 24px; }
.eehbp-hero { position: relative; margin: 0; background: var(--eehbp-be); }
.eehbp-hero-bild { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.eehbp-hero-link { display: block; cursor: zoom-in; }
.eehbp-einschub {
	position: absolute; left: 14px; bottom: 44px; background: #fff; display: flex; gap: 10px; padding: 7px; max-width: 290px;
	align-items: center; z-index: 3; box-shadow: 0 2px 10px rgba(0, 0, 0, .15); color: inherit !important; text-decoration: none !important;
}
.eehbp-einschub img { width: 84px; height: 62px; object-fit: cover; }
.eehbp-einschub span { font-size: .85em; line-height: 1.3; }
.eehbp-einschub b { display: block; color: var(--eehbp-or); font-weight: 400; }
.eehbp-bildtext { font-size: .85em; color: #777; padding: 6px 0 0; background: #fff; }
.eehbp-thumbs { display: flex; gap: 6px; margin-top: 6px; overflow-x: auto; padding-bottom: 4px; }
.eehbp-thumb { border: 0; padding: 0; width: 86px; height: 62px; flex: none; cursor: pointer; opacity: .6; background: var(--eehbp-be); }
.eehbp-thumb img { width: 100%; height: 100%; object-fit: cover; }
.eehbp-thumb.is-on { opacity: 1; outline: 2px solid var(--eehbp-or); outline-offset: -2px; }
.eehbp-text { margin-top: 18px; }
.eehbp-abschnitt { margin-top: 34px; }
.eehbp-abschnitt h2 { margin: 0; }
.eehbp-hinweis { background: var(--eehbp-cr); padding: 16px 18px; color: #555; }
.eehbp-eintrag { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 16px; background: var(--eehbp-cr); padding: 14px 16px; margin-bottom: 4px; }
.eehbp-datum { font-family: var(--eehbp-titel); color: var(--eehbp-dg); font-size: 1.05em; }
.eehbp-eintrag a { display: block; margin-top: 10px; max-width: 420px; cursor: zoom-in; }
.eehbp-rueckblick { margin-top: 14px; }
.eehbp-rueckblick summary { cursor: pointer; color: var(--eehbp-dg); font-family: var(--eehbp-titel); font-size: 1.1em; margin-bottom: 10px; }
.eehbp-fotoraster { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px; }
.eehbp-fotoraster a { display: block; cursor: zoom-in; }
.eehbp-fotoraster img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.eehbp-grundrisse { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.eehbp-grundrisse figure { margin: 0; background: #fff; border: 1px solid var(--eehbp-be); padding: 10px; }
.eehbp-grundrisse a { display: block; cursor: zoom-in; }
.eehbp-grundrisse figcaption { font-size: .88em; color: #666; margin-top: 6px; }
.eehbp-pdf a { cursor: pointer; text-decoration: none; }
.eehbp-pdf span { display: block; margin-top: 6px; color: var(--eehbp-dg); }
.eehbp-video iframe, .eehbp-video video { width: 100%; aspect-ratio: 16 / 9; height: auto; }

.eehbp-eck-kopf { background: var(--eehbp-be); padding: 12px 16px; margin: 0; font-size: 1.3em; }
.eehbp-zeile { display: flex; justify-content: space-between; gap: 14px; background: var(--eehbp-cr); padding: 9px 16px; margin-top: 3px; }
.eehbp-zeile span { color: #666; }
.eehbp-zeile b { font-weight: 400; color: var(--eehbp-dg); text-align: right; }
.eehbp-ka { background: var(--eehbp-dg); color: var(--eehbp-be); padding: 18px 18px 20px; margin-top: 16px; }
.eehbp-ka h3 { color: var(--eehbp-cr) !important; margin: 0; font-size: 1.3em; }
.eehbp-ka ul { list-style: none; margin: 10px 0 12px; padding: 0; }
.eehbp-ka li { padding: 3px 0; margin: 0; }
.eehbp-ka li::before { content: "» "; color: var(--eehbp-or); }
.eehbp-ka a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* Anfrage */
.eehbp-anfrage { background: var(--eehbp-cr); margin-top: 40px; padding-bottom: 28px; scroll-margin-top: 90px; }
.eehbp-anfrage-kopf { background: var(--eehbp-be); padding: 22px 28px; }
.eehbp-anfrage-kopf h2 { margin: 0; }
.eehbp-anfrage-kopf .eehbp-unterzeile { margin-bottom: 0; }
.eehbp-meldung { margin: 20px 28px 0; padding: 12px 16px; background: #fff; border-left: 4px solid var(--eehbp-dg); }
.eehbp-meldung-fehler { border-left-color: #b3261e; }
.eehbp-form { padding: 22px 28px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; max-width: 900px; }
.eehbp-ganz { grid-column: 1 / -1; }
.eehbp-bezug { background: #fff; padding: 10px 14px; border-left: 4px solid var(--eehbp-or); }
.eehbp-bezug small { display: block; color: #888; font-size: .85em; }
.eehbp-form > label { display: flex; flex-direction: column; gap: 5px; margin: 0; }
.eehbp-form input[type=text], .eehbp-form input[type=email], .eehbp-form input[type=tel], .eehbp-form textarea {
	border: 1px solid #cfc8bc; padding: 10px 12px; background: #fff; border-radius: 2px; font: inherit; width: 100%; margin: 0;
}
.eehbp-interesse { border: 0; padding: 0; margin: 0; }
.eehbp-interesse legend { padding: 0; margin-bottom: 6px; }
.eehbp-radiochips { display: flex; gap: 8px; flex-wrap: wrap; }
.eehbp-radiochips label { position: relative; cursor: pointer; margin: 0; }
.eehbp-radiochips input { position: absolute; opacity: 0; pointer-events: none; }
.eehbp-radiochips span { display: inline-block; border: 1px solid var(--eehbp-dg); background: #fff; color: var(--eehbp-dg); padding: 8px 16px; border-radius: 3px; }
.eehbp-radiochips input:checked + span { background: var(--eehbp-dg); color: #fff; }
.eehbp-radiochips input:focus-visible + span { outline: 2px solid var(--eehbp-or); outline-offset: 2px; }
.eehbp-check { flex-direction: row !important; align-items: flex-start; gap: 8px !important; font-size: .9em; color: #555; }
.eehbp-check input { margin-top: 4px; }
.eehbp-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.eehbp-fussnote { font-size: .82em; color: #777; margin-top: 18px; }

/* Lightbox */
.eehbp-lb { position: fixed; inset: 0; background: rgba(0, 0, 0, .85); z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 20px; cursor: zoom-out; }
.eehbp-lb img { max-width: 94vw; max-height: 88vh; background: #fff; }

@media (max-width: 920px) {
	.eehbp-pgrid { grid-template-columns: 1fr; gap: 26px; }
}
@media (max-width: 600px) {
	.eehbp-hero-flaeche { padding: 26px 18px; }
	.eehbp-zeitleiste li { padding: 9px 10px; }
	.eehbp-zeitleiste b { font-size: .95em; }
	.eehbp-zeitleiste small { font-size: .8em; }
	.eehbp-einschub { position: static; max-width: none; box-shadow: none; background: var(--eehbp-cr); margin-top: 6px; }
	.eehbp-eintrag { grid-template-columns: 1fr; gap: 4px; }
	.eehbp-form { grid-template-columns: 1fr; padding: 18px 18px 0; }
	.eehbp-anfrage-kopf { padding: 18px; }
	.eehbp-meldung { margin: 16px 18px 0; }
	.eehbp-k-spur .eehbp-karte { flex-basis: 82%; }
	.eehbp-k-pfeil { display: none; }
	.eehbp-filter-label { min-width: 0; width: 100%; }
}

/* Gegen Theme-Vorgaben absichern (manche Themes setzen Bildmaße und Knopf-Farben direkt) */
.eehbp .eehbp-bildbox img,
.eehbp .eehbp-thumb img,
.eehbp .eehbp-einschub img { width: 100% !important; height: 100% !important; max-width: none !important; object-fit: cover; }
.eehbp .eehbp-einschub img { width: 84px !important; height: 62px !important; }
.eehbp .eehbp-hero-bild,
.eehbp .eehbp-fotoraster img { width: 100% !important; height: auto !important; max-width: none !important; object-fit: cover; }
.eehbp .eehbp-grundrisse img,
.eehbp .eehbp-eintrag img { width: 100% !important; height: auto !important; max-width: 100% !important; }
.eehbp .eehbp-chip { background: #fff !important; color: var(--eehbp-dg) !important; border: 1px solid var(--eehbp-dg) !important; box-shadow: none !important; text-transform: none !important; letter-spacing: 0 !important; }
.eehbp .eehbp-chip.is-on { background: var(--eehbp-dg) !important; color: #fff !important; }
.eehbp .eehbp-btn { background: var(--eehbp-dg) !important; color: #fff !important; border: 0 !important; box-shadow: none !important; text-transform: none !important; }
.eehbp .eehbp-btn:hover, .eehbp .eehbp-btn:focus-visible { background: var(--eehbp-or) !important; }
.eehbp .eehbp-k-pfeil { background: var(--eehbp-dg) !important; color: #fff !important; border: 0 !important; padding: 0 !important; border-radius: 0 !important; }
.eehbp .eehbp-k-pfeil:hover:not([disabled]) { background: var(--eehbp-or) !important; }
.eehbp .eehbp-thumb { border: 0 !important; padding: 0 !important; background: var(--eehbp-be) !important; border-radius: 0 !important; }

/* Private Vorschau */
.eehbp-intern { position: absolute; right: 8px; top: 12px; background: rgba(255, 255, 255, .92); color: #9a3a10; font-size: 11.5px; padding: 2px 8px; z-index: 2; border-left: 3px solid var(--eehbp-or); }

/* Impreza: Überschriften-Farbe und Abstand oben nicht vom Theme übernehmen */
.eehbp .eehbp-hero-link { position: relative; }
.eehbp h1, .eehbp h2, .eehbp h3 { color: var(--eehbp-dg) !important; }
.eehbp .eehbp-ka h3 { color: var(--eehbp-cr) !important; }
.eehbp .eehbp-karte-titel, .eehbp .eehbp-eck-kopf, .eehbp .eehbp-ka h3, .eehbp .eehbp-gruppe-titel,
.eehbp .eehbp-titel, .eehbp .eehbp-abschnitt h2, .eehbp .eehbp-anfrage-kopf h2 { padding-top: 0 !important; }
.eehbp .eehbp-karte-titel { margin: 0 !important; }
.eehbp .eehbp-kicker { margin: 0 !important; padding: 0 !important; }
