/*
 * en2x Headline – structural styles.
 *
 * The wrapper brings the shared side gutter so the heading aligns to the same
 * content width as the other en2x modules. The heading itself inherits Salient's
 * heading typography (size, weight, font) for the chosen level; only its colour
 * is set inline per instance. Its own margins are reset so the wrapper controls
 * the vertical rhythm.
 */

.en2x-headline {
	margin: 0 0 24px;
	/* --en2x-headline-gutter is measured at runtime (headline.js) from the real
	 * content container, so the heading keeps the correct width in both "In
	 * Container" and "Full Width Content" rows. Falls back to the static side
	 * gutter before JS runs / if there is no container. */
	padding: 0 var(--en2x-headline-gutter, var(--en2x-side-gutter, 20px));
	font-family: inherit;
}

.en2x-headline__title {
	margin: 0;
}

/* Horizontal alignment (links = default). The heading inherits text-align. */
.en2x-headline--align-mitte {
	text-align: center;
}

.en2x-headline--align-rechts {
	text-align: right;
}
