/* =========================================================
   E3/DC Custom Heroshot
   Layout im E.ON-Home-Comfort-Stil, Salient-Grün-Hintergrund
   ========================================================= */

/* ---- Standard-Salient-Heroshot ausblenden, wenn das Element aktiv ist */
body.e3dc-custom-heroshot-active .featured-media-under-header,
body.e3dc-custom-heroshot-active .nectar-post-header,
body.e3dc-custom-heroshot-active #page-header-wrap,
body.e3dc-custom-heroshot-active #page-header-bg {
	display: none !important;
}

/* Abstand oben entfernen, damit der neue Hero direkt unter der Navi sitzt */
body.e3dc-custom-heroshot-active .container-wrap {
	padding-top: 0 !important;
}
body.e3dc-custom-heroshot-active .main-content > .row > .wpb_row:first-of-type {
	margin-bottom: 0;
}

/* ---- Vollbreiter Hintergrund (bricht aus dem Content-Container aus) */
.e3dc-heroshot {
	position: relative;
	width: 100vw;
	left: 50%;
	margin-left: -50vw;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	overflow: visible;
	color: #fff;
}

/* Fallback ohne JS; der exakte Abstand (Bild-Überhang + 30px) wird
   per JS dynamisch gesetzt. !important nötig, Salient setzt
   margin-bottom des letzten wpb_wrapper-Kinds auf 0. */
.e3dc-heroshot.e3dc-heroshot--overlap {
	margin-bottom: 100px !important;
}

/* ---- Innenbereich: gleiche max. Breite wie der aktuelle Heroshot */
.e3dc-heroshot__inner {
	/* 1275px Content-Breite + seitliches Padding */
	max-width: calc(1275px + 80px);
	margin: 0 auto;
	padding: 90px 40px 70px;
	display: flex;
	align-items: center;
	gap: 50px;
}

/* ---- Textspalte */
.e3dc-heroshot__content {
	flex: 1 1 33.333%;
	min-width: 0;
}

.e3dc-heroshot__cats {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 22px;
}

.e3dc-heroshot__cat {
	display: inline-block;
	background: #d8ecbc;
	color: #1c2c1e !important;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	padding: 5px 12px;
	border-radius: 5px;
	transition: background 0.2s ease;
}

.e3dc-heroshot__cat:hover {
	background: #fff;
}

.e3dc-heroshot__title {
	color: #fff !important;
	margin: 0 0 18px !important;
	line-height: 1.15;
}

.e3dc-heroshot__subline {
	color: #fff;
	font-size: 1.35em;
	font-weight: 700;
	line-height: 1.35;
	margin: 0 0 16px;
}

.e3dc-heroshot__text {
	color: rgba(255, 255, 255, 0.92);
	font-size: 1.05em;
	line-height: 1.6;
	margin-bottom: 26px;
	max-width: 560px;
}

.e3dc-heroshot__text p:last-child {
	margin-bottom: 0;
}

/* ---- CTA-Button (weiß auf grün, wie E.ON) */
.e3dc-heroshot__button {
	display: inline-block;
	background: #fff;
	color: #16281a !important;
	font-weight: 700;
	padding: 13px 30px;
	border-radius: 100px;
	margin-bottom: 30px;
	transition: background 0.2s ease, transform 0.2s ease;
}

.e3dc-heroshot__button:hover {
	background: #d8ecbc;
	transform: translateY(-1px);
}

/* ---- Meta-Zeile: Datum, Lesezeit, Share */
.e3dc-heroshot__meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 14px;
	font-size: 13px;
	color: rgba(255, 255, 255, 0.85);
}

.e3dc-heroshot__date + .e3dc-heroshot__reading-time::before {
	content: "·";
	margin-right: 14px;
	opacity: 0.6;
}

.e3dc-heroshot__share {
	display: inline-flex;
	gap: 8px;
	margin-left: 6px;
}

.e3dc-heroshot__share-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border: 1px solid rgba(255, 255, 255, 0.4);
	border-radius: 50%;
	color: #fff !important;
	transition: background 0.2s ease, border-color 0.2s ease;
}

.e3dc-heroshot__share-link:hover {
	background: rgba(255, 255, 255, 0.15);
	border-color: #fff;
}

/* ---- Bildspalte */
.e3dc-heroshot__media {
	flex: 1 1 66.666%;
	min-width: 0;
	align-self: center;
}

.e3dc-heroshot__media img,
.e3dc-heroshot__img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 6px;
	box-shadow: 0 18px 50px rgba(0, 0, 0, 0.3);
}

/* Bild ragt unten aus dem grünen Bereich heraus (E.ON-Stil) */
.e3dc-heroshot--overlap .e3dc-heroshot__media {
	align-self: flex-end;
	margin-bottom: -160px;
}

.e3dc-heroshot--overlap .e3dc-heroshot__inner {
	padding-bottom: 90px;
}

/* Ohne Bild: Text mittig, volle Breite */
.e3dc-heroshot--no-image .e3dc-heroshot__content {
	flex-basis: 100%;
}

/* ---- Responsive */
@media (max-width: 999px) {
	.e3dc-heroshot__inner {
		flex-direction: column;
		align-items: flex-start;
		gap: 36px;
		padding: 60px 28px 50px;
	}

	/* Mobil/Tablet: kein Überlapp-Effekt, Bild bleibt im grünen Bereich */
	.e3dc-heroshot--overlap .e3dc-heroshot__media {
		align-self: center;
		margin-bottom: 0;
	}

	.e3dc-heroshot.e3dc-heroshot--overlap {
		margin-bottom: 0 !important;
	}

	.e3dc-heroshot__media {
		width: 100%;
		max-width: 560px;
	}
}

@media (max-width: 690px) {
	.e3dc-heroshot__inner {
		padding: 44px 20px 40px;
	}

}
