/*
 * en2x Hero Text – module styles.
 *
 * A single fixed-height hero block: background image (cover, positioned) or a
 * colour fallback, headline + WYSIWYG subtext left-aligned and vertically
 * centered. An optional light breadcrumb bar sits below. Background/text colours
 * come from the configuration as inline styles; font is inherited (Rubik).
 */

.en2x-hero-text {
	display: flex;
	align-items: center;
	font-family: inherit;
}

/* Height steps. */
.en2x-hero-text--gering {
	min-height: 350px;
}

.en2x-hero-text--mittel {
	min-height: 550px;
}

.en2x-hero-text--hoch {
	min-height: 800px;
}

/* Inner: left-aligned content via the shared side gutter (same edge as the
 * content grid). The gutter is capped at 20%, so on very wide screens the
 * content does not drift to the centre like a pure max-width:1600 centering. */
.en2x-hero-text__inner {
	width: 100%;
	padding: 48px var(--en2x-gutter-right) 48px var(--en2x-gutter-left);
}

.en2x-hero-text__headline {
	margin: 0 0 20px;
	font-size: 38px;
	font-weight: 700;
	line-height: 1.15;
	text-transform: uppercase;
	color: inherit;
}

.en2x-hero-text__text {
	max-width: 760px;
	/* Follows Salient's body font size by default. */
	font-size: inherit;
	line-height: 1.6;
	color: inherit;
}

/* "Kleinere/Größere Schrift": relative to the Salient body size. The factors are
 * defined once in global.css (--en2x-schrift-klein / --en2x-schrift-gross). */
.en2x-hero-text__text--klein {
	font-size: var(--en2x-schrift-klein, 0.8em);
}

.en2x-hero-text__text--gross {
	font-size: var(--en2x-schrift-gross, 1.2em);
}

.en2x-hero-text__text :first-child {
	margin-top: 0;
}

.en2x-hero-text__text :last-child {
	margin-bottom: 0;
}

.en2x-hero-text__text a {
	color: inherit;
	text-decoration: underline;
}

/* ---------------------------------------------------------------------------
 * Breadcrumb bar (light strip below the hero).
 * ------------------------------------------------------------------------- */

.en2x-hero-text__breadcrumb {
	background: transparent;
}

/* Tight top gap so the breadcrumb reads as part of the hero element. */
.en2x-hero-text__breadcrumb-inner {
	padding: 10px var(--en2x-gutter-right) 16px var(--en2x-gutter-left);
	font-size: 13px;
	font-weight: 600;
	color: #50575e;
}

.en2x-hero-text__crumb {
	color: #50575e;
	text-decoration: none;
}

.en2x-hero-text__crumb:hover,
.en2x-hero-text__crumb:focus {
	color: var(--en2x-color-headline, #250F51);
}

.en2x-hero-text__crumb-sep {
	margin: 0 6px;
	color: #a7a7b0;
}

/* Current page highlighted in the en2x cyan-blue (#34c7d6). */
.en2x-hero-text__crumb--current {
	color: #34c7d6;
}

/* ---------------------------------------------------------------------------
 * Responsive: cap heights and tighten spacing on smaller screens.
 * ------------------------------------------------------------------------- */

@media (max-width: 900px) {
	.en2x-hero-text--gering {
		min-height: 280px;
	}

	.en2x-hero-text--mittel {
		min-height: 380px;
	}

	.en2x-hero-text--hoch {
		min-height: 480px;
	}

	.en2x-hero-text__inner {
		padding: 32px 24px;
	}

	.en2x-hero-text__headline {
		font-size: 28px;
	}

	.en2x-hero-text__breadcrumb-inner {
		padding: 8px 24px 14px;
	}
}
