/* ==========================================================================
   SECTIONS — the front-page sections, also usable as blocks on any page
   (blocks/*, inc/blocks.php): Tourenkalender · news band · carousels ·
   Hütten. Loaded on every page (block style «sac-sections»).
   ========================================================================== */

/* ==========================================================================
   SECTION BACKGROUNDS — the block setting «Hintergrund» (Beitragsband,
   Vorträge & Anlässe, Hütten; sac_block_background(), inc/blocks.php):
     .has-bg    photo (--sac-bg) under a soft veil — cards stay crisp
     .is-plain  the page background (white / dark)
     .is-topo   contour lines over the whole section, on the section tone
   Light and dark through the tokens.
   ========================================================================== */

.sac-bg {
	position: relative;
	isolation: isolate;
}

.sac-bg.has-bg::before,
.sac-bg.has-bg::after {
	content: "";
	position: absolute;
	inset: 0;
}

.sac-bg.has-bg::before {
	z-index: -2;
	background: var(--sac-bg) center / cover no-repeat;
}

.sac-bg.has-bg::after {
	z-index: -1;
	background:
		linear-gradient(to bottom, var(--c-bg), transparent 30%, transparent 70%, var(--c-bg)),
		color-mix(in srgb, var(--c-bg) 74%, transparent);
}

.sac-bg.is-plain {
	background: var(--c-bg);
}

.sac-bg.is-topo {
	background: var(--c-section);
}

.sac-bg__topo {
	position: absolute;
	z-index: -1;
	inset: 0;
	width: 100%;
	height: 100%;
	color: var(--c-topo);
	--topo-minor: 0.5;
	opacity: 0.6;
	pointer-events: none;
}

/* ==========================================================================
   TOURENKALENDER — a logbook of the next tours, compact: one line per tour
   from 900px (date · title + meta · seats · arrow), two lines on phones
   ========================================================================== */

.sac-tk-section .sac-section__topo {
	color: var(--c-topo);
}

.sac-tk {
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--c-heading);
}

.sac-tk__row {
	position: relative;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	grid-template-areas:
		"date main"
		"date seats";
	gap: var(--space-2) var(--space-4);
	align-items: center;
	padding-block: var(--space-4);
	border-bottom: 1px solid var(--c-border);
	isolation: isolate;
}

/* Hover: a tinted band sweeps in from the left. */
.sac-tk__row::before {
	content: "";
	position: absolute;
	z-index: -1;
	inset: 0 calc(var(--gutter) * -0.5);
	background: var(--c-section);
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform var(--dur-2) var(--ease-out);
}

.sac-tk__row:hover:where(:not(.sac-touch *))::before,
.sac-tk__row:active::before {
	transform: none;
}

.sac-tk__date {
	grid-area: date;
	display: grid;
	grid-template-columns: auto auto;
	grid-template-areas:
		"day mon"
		"day dow";
	column-gap: var(--space-2);
	align-items: center;
	align-self: start;
	min-width: 4.25rem;
	font-variant-numeric: tabular-nums;
}

.sac-tk__day {
	grid-area: day;
	font-size: clamp(1.75rem, 1.5rem + 0.8vw, 2.25rem);
	font-weight: 700;
	line-height: 0.85;
	letter-spacing: -0.04em;
	color: var(--c-heading);
}

.sac-tk__mon,
.sac-tk__dow {
	font-family: var(--font-mono);
	font-size: var(--fs-xs);
	letter-spacing: 0.02em;
	text-transform: uppercase;
	line-height: 1.2;
}

.sac-tk__mon {
	grid-area: mon;
	align-self: end;
	color: var(--c-heading);
}

.sac-tk__dow {
	grid-area: dow;
	align-self: start;
	color: var(--c-text-muted);
}

.sac-tk__main {
	grid-area: main;
	min-width: 0;
}

.sac-tk__title {
	margin: 0 0 var(--space-1);
	font-size: var(--fs-h4);
	line-height: 1.2;
	transition: transform var(--dur-2) var(--ease-out);
}

.sac-tk__row:hover:where(:not(.sac-touch *)) .sac-tk__title,
.sac-tk__row:active .sac-tk__title {
	transform: translateX(0.35rem);
}

.sac-tk__link {
	color: inherit;
	text-decoration: none;
}

.sac-tk__link::after {
	content: "";
	position: absolute;
	z-index: 1;
	inset: 0;
}

.sac-tk__link:hover:where(:not(.sac-touch *)),
.sac-tk__link:active {
	color: inherit;
}

.sac-tk__row:has(.sac-tk__link:focus-visible) {
	outline: 2px solid var(--c-focus);
	outline-offset: 2px;
}

.sac-tk__link:focus-visible {
	outline: 0;
}

.sac-tk__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-1) var(--space-4);
	margin: 0;
	padding: 0;
	list-style: none;
}

/* SAC grade, coloured by difficulty. */
.sac-tk__grade {
	--diff: var(--c-diff-medium);
	display: inline-flex;
	align-items: center;
	gap: var(--space-2);
	font-family: var(--font-mono);
	font-size: var(--fs-xs);
	font-weight: 600;
	letter-spacing: 0.02em;
	color: var(--diff);
}

.sac-tk__grade::before {
	content: "";
	width: 0.7em;
	height: 0.6em;
	background: currentColor;
	clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.sac-tk__grade--easy { --diff: var(--c-diff-easy); }
.sac-tk__grade--hard { --diff: var(--c-diff-hard); }

.sac-tk__days {
	display: inline-flex;
	align-items: center;
	gap: var(--space-1);
	font-size: var(--fs-xs);
	color: var(--c-text-muted);
}

.sac-tk__days svg {
	width: 0.9rem;
}

/* Seats: one mark per place, taken ones filled. */
.sac-tk__seats {
	grid-area: seats;
	display: flex;
	align-items: center;
	gap: var(--space-3);
}

.sac-seats {
	display: flex;
	flex-wrap: wrap;
	gap: 3px;
	max-width: 8rem;
}

.sac-seats__seat {
	width: 0.5rem;
	height: 0.5rem;
	border: 1px solid var(--c-border-strong);
	border-radius: 50%;
}

.sac-seats__seat.is-taken {
	background: var(--c-heading);
	border-color: var(--c-heading);
}

.sac-tk__count {
	font-family: var(--font-mono);
	font-size: var(--fs-xs);
	color: var(--c-heading);
	font-variant-numeric: tabular-nums;
}

.sac-tk__go {
	display: none;
}

@media (min-width: 900px) {
	.sac-tk__row {
		grid-template-columns: 6rem minmax(0, 1fr) 11rem auto;
		grid-template-areas: "date main seats go";
		column-gap: var(--space-5);
		padding-block: var(--space-4);
	}

	.sac-tk__date {
		align-self: center;
	}

	.sac-tk__go {
		grid-area: go;
		display: grid;
		place-items: center;
		width: 2.5rem;
		height: 2.5rem;
		color: var(--c-heading);
		border: 1px solid var(--c-border-strong);
		border-radius: 50%;
		transition: border-color var(--dur-1) ease, box-shadow var(--dur-1) ease, color var(--dur-1) ease;
	}

	.sac-tk__go svg {
		width: 1rem;
	}

	.sac-tk__row:hover:where(:not(.sac-touch *)) .sac-tk__go,
	.sac-tk__row:active .sac-tk__go {
		color: var(--c-accent-text);
		border-color: var(--c-accent);
		box-shadow: var(--ring-hover);
	}
}

/* ==========================================================================
   NEWS BAND — background (SECTION BACKGROUNDS above; without a photo the
   section tone), two columns of single-card carousels
   ========================================================================== */

.sac-newsband {
	position: relative;
	padding-block: var(--section-y);
	background: var(--c-section);
	isolation: isolate;
}

.sac-newsband__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--section-y);
}

.sac-newsband__col {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

/* Both heads stack (title, then link) so the two carousels start level. */
.sac-newsband .sac-shead {
	flex-direction: column;
	align-items: flex-start;
	margin-bottom: var(--space-7);
}

/* Calmer, wider crop for one-at-a-time cards. */
.sac-newsband .sac-card__media {
	aspect-ratio: 16 / 9;
}

.sac-newsband .sac-shead__title {
	font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3.6rem);
}

@media (min-width: 1024px) {
	.sac-newsband__grid {
		--col-gap: clamp(var(--space-7), 5vw, var(--space-9));
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		gap: 0;
	}

	/* The dividing line, centred between two equally wide columns. */
	.sac-newsband__col:first-child {
		padding-right: var(--col-gap);
	}

	.sac-newsband__col + .sac-newsband__col {
		padding-left: var(--col-gap);
		border-left: 1px solid var(--c-heading);
	}

	.sac-newsband .sac-carousel {
		flex: 1;
	}
}

/* ==========================================================================
   CAROUSEL — native scroll-snap + controls (assets/js/carousel.js)
   ========================================================================== */

.sac-carousel {
	--slide-w: 82%;
	--slide-gap: var(--space-5);
	position: relative;
	display: flex;
	flex-direction: column;
}

.sac-carousel__track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: var(--slide-w);
	gap: var(--slide-gap);
	margin: 0;
	padding: 0;
	list-style: none;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	flex: 1;
}

.sac-carousel__track::-webkit-scrollbar {
	display: none;
}

.sac-carousel__track:focus-visible {
	outline-offset: 6px;
}

.sac-carousel__track.is-dragging {
	cursor: grabbing;
	scroll-snap-type: none;
	user-select: none;
}

.sac-carousel__slide {
	min-width: 0;
	scroll-snap-align: start;
}

/* Controls: arrows at the far ends, progress + counter between. */
.sac-carousel__controls {
	display: flex;
	align-items: center;
	gap: var(--space-4);
	margin-top: var(--space-6);
}

.sac-carousel__controls[hidden] {
	display: none;
}

.sac-carousel__progress {
	position: relative;
	flex: 1;
	height: 2px;
	overflow: hidden;
	background: var(--c-border);
}

.sac-carousel__progress span {
	position: absolute;
	inset: 0;
	background: var(--c-accent);
	transform-origin: left center;
	transform: scaleX(var(--p, 0));
	transition: transform var(--dur-2) var(--ease-out);
}

.sac-carousel__count {
	margin: 0;
	font-family: var(--font-mono);
	font-size: var(--fs-xs);
	letter-spacing: 0.02em;
	color: var(--c-text-muted);
	font-variant-numeric: tabular-nums;
}

.sac-carousel__count [data-sac-current] {
	color: var(--c-heading);
}

/* One card at a time (news band). */
.sac-carousel--single {
	--slide-w: 100%;
}

/* Bleed: the row starts at the container edge and runs off the right side of
   the screen (no negative margins — the track is full width and padded). */
.sac-carousel--bleed {
	--bleed: max(var(--gutter), (100% - var(--container)) / 2);
	--slide-w: clamp(15.5rem, 72vw, 23rem);
	--slide-gap: clamp(var(--space-4), 2vw, var(--space-5));
}

.sac-carousel--bleed .sac-carousel__track {
	padding-inline: var(--bleed);
	scroll-padding-inline: var(--bleed);
}

.sac-carousel--bleed .sac-carousel__controls {
	width: min(var(--container), 100% - var(--gutter) * 2);
	margin-inline: auto;
}

@media (min-width: 1024px) {
	.sac-carousel--bleed {
		--slide-w: clamp(16rem, 24vw, 23rem);
	}
}

/* ==========================================================================
   HÜTTEN
   ========================================================================== */

.sac-huetten {
	background: var(--c-section);
}

.sac-huetten > .sac-empty {
	width: min(var(--container), 100% - var(--gutter) * 2);
	margin-inline: auto;
}

/* Phones: all huts at once instead of a swipe row — the first two (in the
   huts' «Reihenfolge») large side by side, the others smaller, three per
   row. The carousel script hides its controls and autoplay by itself when
   nothing scrolls. From 640px the bleed carousel as before. */
@media (max-width: 639px) {
	.sac-huetten .sac-carousel__track {
		grid-auto-flow: row;
		grid-template-columns: repeat(6, minmax(0, 1fr));
		grid-auto-columns: auto;
		gap: var(--space-3);
		overflow: visible;
		scroll-snap-type: none;
	}

	.sac-huetten .sac-carousel__slide {
		grid-column: span 2;
	}

	.sac-huetten .sac-carousel__slide:nth-child(-n + 2) {
		grid-column: span 3;
	}

	.sac-huetten .sac-carousel__slide:nth-child(n + 3) .sac-hut__body {
		padding: var(--space-3);
	}

	.sac-huetten .sac-carousel__slide:nth-child(n + 3) .sac-hut__title {
		margin: 0;
		font-size: 0.8rem;
		line-height: 1.12;
	}

	.sac-huetten .sac-carousel__slide:nth-child(n + 3) .sac-hut__canton {
		display: none;
	}

	.sac-huetten .sac-carousel__slide:nth-child(n + 3) .sac-hut__alt {
		left: var(--space-3);
		bottom: var(--space-3);
		font-size: var(--fs-sm);
	}

	.sac-huetten .sac-carousel__slide:nth-child(-n + 2) .sac-hut__body {
		padding: var(--space-4);
	}

	.sac-huetten .sac-carousel__slide:nth-child(-n + 2) .sac-hut__title {
		font-size: 1.05rem;
	}

	.sac-huetten .sac-carousel__slide:nth-child(-n + 2) .sac-hut__alt {
		left: var(--space-4);
		bottom: var(--space-4);
		font-size: var(--fs-h4);
	}
}

/* ==========================================================================
   ANLÄSSE — the list of Anlässe ([sac_anlaesse] on the overview page, block
   «Vorträge & Anlässe» on any page; inc/anlaesse.php). Rows like an index:
   photo with the date on a red tab, date · time, title, speakers, Art +
   Bereich + Ort, arrow. (The Anlass page itself: pages.css.)
   ========================================================================== */

.entry-content > .sac-events-wrap {
	margin-block: clamp(var(--space-7), 2rem + 3vw, var(--space-9));
}

.entry-content > .sac-events-wrap + * {
	--flow: 0;
}

.sac-events {
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--c-heading);
}

.sac-events .sac-event {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--space-4);
	margin: 0;
	padding-block: var(--space-6);
	border-bottom: 1px solid var(--c-border);
}

@media (min-width: 768px) {
	.sac-events .sac-event {
		grid-template-columns: 16rem minmax(0, 1fr) auto;
		gap: var(--space-6);
		align-items: center;
	}
}

.sac-event__media {
	position: relative;
	aspect-ratio: 3 / 2;
	overflow: hidden;
	background: var(--c-surface-2);
	color: var(--c-topo);
}

.sac-event__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Hover: a soft dark veil over the image (like hut tiles and galleries) —
   no zoom. The date badge stays above it. */
.sac-event__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--c-navy-900);
	opacity: 0;
	transition: opacity var(--dur-2) ease;
	pointer-events: none;
}

.sac-event:hover:where(:not(.sac-touch *)) .sac-event__media::after,
.sac-event:active .sac-event__media::after {
	opacity: 0.2;
}

.sac-events--past .sac-event__media img {
	filter: grayscale(0.35);
}

.sac-event__topo {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	--topo-minor: 0.6;
}

/* The date on a red tab, top left of the photo. */
.sac-event__date {
	position: absolute;
	z-index: 1;
	top: 0;
	left: 0;
	display: grid;
	justify-items: center;
	gap: 0.15rem;
	padding: 0.5rem 0.75rem 0.55rem;
	color: var(--c-on-accent);
	background: var(--c-accent);
	line-height: 1;
}

.sac-event__day {
	font-size: 1.75rem;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.sac-event__mon {
	font-family: var(--font-mono);
	font-size: var(--fs-xs);
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

/* Art of the Anlass (badge, components.css), its own row above the date. */
.sac-event__kind {
	margin: 0 0 var(--space-2);
}

.sac-event__when {
	margin: 0;
	font-family: var(--font-mono);
	font-size: var(--fs-xs);
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--c-text-muted);
}

.sac-event__title {
	margin: var(--space-2) 0 0;
	font-size: var(--fs-h4);
	line-height: var(--lh-snug);
}

.sac-event__link {
	color: inherit;
	text-decoration: none;
}

/* Stretched link: the whole row opens the Anlass. */
.sac-event__link::after {
	content: "";
	position: absolute;
	z-index: 2;
	inset: 0;
}

.sac-event:has(.sac-event__link:focus-visible) {
	outline: 2px solid var(--c-focus);
	outline-offset: 4px;
}

.sac-event__link:focus-visible {
	outline: 0;
}

.sac-event__who {
	margin: var(--space-2) 0 0;
	font-size: var(--fs-sm);
	color: var(--c-text-muted);
}

.sac-event .sac-event__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-2) var(--space-4);
	margin: var(--space-3) 0 0;
	padding: 0;
	list-style: none;
	font-size: var(--fs-sm);
	color: var(--c-text-muted);
}

.sac-event .sac-event__meta li {
	margin: 0;
}

.sac-event__place {
	display: inline-flex;
	align-items: center;
	gap: var(--space-1);
}

.sac-event__place svg {
	width: 1rem;
}

.sac-event__extra {
	font-family: var(--font-mono);
	font-size: var(--fs-xs);
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--c-accent-text);
}

/* The round arrow (.sac-go, shared with the compact list): only from tablet
   width in event rows. */
.sac-events .sac-event__go {
	display: none;
}

@media (min-width: 768px) {
	.sac-events .sac-event__go {
		display: grid;
	}
}

.sac-events__year {
	margin: var(--space-8) 0 var(--space-4);
	font-size: var(--fs-h3);
}

.sac-events-wrap > .sac-events__year:first-child {
	margin-top: 0;
}

.sac-events__empty {
	margin: 0;
	padding: var(--space-6);
	color: var(--c-text-muted);
	border: 1px dashed var(--c-border-strong);
}

/* ==========================================================================
   COMPACT POST LIST — date + title per row (template-parts/content/postlist.php,
   block «Beitragsspalte», layout «Liste»). The whole row is the link.
   ========================================================================== */

/* Layout «featured» of a Beitragsspalte: the newest as a card, the next ones
   as the compact list right below it. */
.sac-feed {
	display: flex;
	flex-direction: column;
	gap: var(--space-5);
}

.sac-postlist {
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--c-heading);
}

.sac-postlist__item {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: var(--space-1) var(--space-4);
	align-items: center;
	margin: 0;
	padding-block: var(--space-4);
	border-bottom: 1px solid var(--c-border);
}

.sac-postlist__item > :not(.sac-go) {
	grid-column: 1;
}

.sac-postlist__date {
	font-family: var(--font-mono);
	font-size: var(--fs-xs);
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--c-text-muted);
}

.sac-postlist__link {
	font-weight: 600;
	line-height: var(--lh-snug);
	color: var(--c-heading);
	text-decoration: none;
}

/* Stretched link: the whole row opens the post. */
.sac-postlist__link::after {
	content: "";
	position: absolute;
	z-index: 2;
	inset: 0;
}

.sac-postlist__item:has(.sac-postlist__link:focus-visible) {
	outline: 2px solid var(--c-focus);
	outline-offset: 4px;
}

.sac-postlist__link:focus-visible {
	outline: 0;
}

.sac-postlist .sac-go {
	grid-column: 2;
	grid-row: 1 / span 3;
	width: 2.25rem;
	height: 2.25rem;
}

/* ==========================================================================
   SHARED ROW PARTS — the round arrow and the «Wichtig» marker of index rows
   (Anlässe, compact post list, post cards in the list view). Cards in the
   grid: components.css.
   ========================================================================== */

/* Round arrow at the end of a row; red when the row is hovered. */
.sac-go {
	display: grid;
	place-items: center;
	width: 3rem;
	height: 3rem;
	color: var(--c-heading);
	border: 1px solid var(--c-border-strong);
	border-radius: 50%;
	transition: border-color var(--dur-1) ease, box-shadow var(--dur-1) ease, color var(--dur-1) ease;
}

.sac-go svg {
	width: 1.05rem;
}

:is(.sac-event, .sac-postlist__item):hover:where(:not(.sac-touch *)) .sac-go,
:is(.sac-event, .sac-postlist__item):active .sac-go {
	color: var(--c-accent-text);
	border-color: var(--c-accent);
	box-shadow: var(--ring-hover);
}

/* «Wichtig» (box in the editor sidebar, sac_is_important()): a trail marker,
   not a bigger entry — the row keeps its place and size; red edge line (like
   the facts box), a soft wash fading to the right, the flag above the date,
   the arrow filled. The text stays aligned with the other rows. */
:is(.sac-events .sac-event, .sac-postlist__item, [data-sac-view="list"] .sac-grid--switchable .sac-card).is-important {
	--bleed: min(var(--space-5), var(--gutter)); /* never wider than the page margin */
	margin-inline: calc(var(--bleed) * -1);
	padding-inline: var(--bleed);
	background: linear-gradient(to right, var(--c-accent-soft), transparent 70%);
	box-shadow: inset 3px 0 0 var(--c-accent);
}

.is-important .sac-go {
	color: var(--c-on-accent);
	background: var(--c-accent);
	border-color: var(--c-accent);
}

/* Hover: the red deepens (like .sac-btn) and a soft red ring lights up. */
.is-important:hover:where(:not(.sac-touch *)) .sac-go,
.is-important:active .sac-go {
	color: var(--c-on-accent);
	background: var(--c-accent-ink);
	border-color: var(--c-accent-ink);
	box-shadow: 0 0 0 4px var(--c-accent-soft);
}

/* List rows in the section blocks (News list in the photo band, Vorträge &
   Anlässe): on a surface at 80 % — white, dark in dark mode — so photos and
   contour lines behind them stay calm. «Wichtig» rows keep their marker
   over it (and no bleed: the surface is the row's edge). */
.sac-newsband .sac-postlist__item,
.sac-events-section .sac-events .sac-event {
	padding-inline: var(--space-4);
	background: color-mix(in srgb, var(--c-surface) 80%, transparent);
}

.sac-newsband .sac-postlist .sac-postlist__item.is-important,
.sac-events-section .sac-events .sac-event.is-important { /* (0,4,0): beats the shared marker rule's :is() */
	margin-inline: 0;
	padding-inline: var(--space-4);
	background:
		linear-gradient(to right, var(--c-accent-soft), transparent 70%),
		color-mix(in srgb, var(--c-surface) 80%, transparent);
}

/* ==========================================================================
   SECTION BLOCKS IN CONTENT — a section block spans the full width of the
   content grid (.alignfull) and brings its own vertical space; free content
   before or after it keeps a section's distance (sections may be tinted).
   Front page in block mode: free content right under the hero gets the
   intro's top space. No double space when content ends with a section.
   ========================================================================== */

.entry-content > .sac-block.alignfull + * {
	--flow: var(--section-y);
}

.entry-content > .sac-block.alignfull {
	--flow: 0;
}

.entry-content > :not(.sac-block.alignfull):has(+ .sac-block.alignfull) {
	margin-bottom: var(--section-y);
}

.sac-front > :first-child:not(.sac-block.alignfull) {
	margin-top: var(--section-y);
}

.entry-content:has(> .sac-block.alignfull:last-child) {
	padding-bottom: 0;
}

/* «Beitragsband» with a single column: full width. */
@media (min-width: 1024px) {
	.sac-newsband--single .sac-newsband__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.sac-newsband--single .sac-newsband__col:first-child {
		padding-right: 0;
	}
}

/* ==========================================================================
   TEASER — block «Teaser» (blocks/teaser): full-width band, content on the
   content width. Without an image a tinted band with contour lines; with
   one a photo (focal point) under a dark veil, text light (.is-dark).
   ========================================================================== */

.sac-teaser {
	overflow: hidden;
	background: var(--c-section);
}

.sac-teaser .sac-section__topo {
	color: var(--c-topo);
}

.sac-teaser.has-bg {
	background: var(--c-navy-900) var(--sac-teaser-bg) var(--sac-teaser-pos, 50% 50%) / cover no-repeat;
}

/* Veil: darker where the text sits (left), lighter towards the right. */
.sac-teaser.has-bg::before {
	content: "";
	position: absolute;
	z-index: -1;
	inset: 0;
	background: linear-gradient(to right, rgb(7 13 24 / 0.82), rgb(7 13 24 / 0.55) 55%, rgb(7 13 24 / 0.3));
}

.sac-teaser__inner {
	max-width: 44rem;
}

.sac-teaser__inner > .sac-eyebrow {
	margin-bottom: var(--space-4);
}

/* Pictogram above the eyebrow (optional). */
.sac-teaser__pikto {
	width: 3.5rem;
	margin-bottom: var(--space-5);
}

@media (min-width: 768px) {
	.sac-teaser__pikto {
		width: 4rem;
	}
}

.sac-teaser__text a {
	color: inherit;
	text-decoration-color: var(--c-accent);
}

.sac-teaser__btn {
	margin-top: var(--space-7);
}
