/*
 * EVF-News — Frontend.
 * Maße und Farben stammen aus mockup/News-Plugin.dc.html und DESIGN-TOKENS.md.
 * Auf Schwarz kein Text unter rgba(255,255,255,.68); einzige Ausnahme ist der
 * Placeholder im Suchfeld, weil er keine Information trägt.
 */

.evf-news {
	--evf-news-pad: 44px;
	--evf-news-cols: 3;
	/* Hero und WhatsApp-Streifen laufen über die volle Breite, alles dazwischen
	   steht in dieser Spalte. */
	--evf-news-width: 80%;
	background: var(--evf-black);
	color: #fff;
	font-family: 'Archivo', system-ui, sans-serif;
	-webkit-font-smoothing: antialiased;
}

/*
 * Divi legt auf die Zeile, in der die Übersicht steht, eine eigene Einblendung
 * (Klasse `et_had_animation`): Die Zeile startet unsichtbar und fährt beim Scrollen
 * ein. Das kommt nicht aus diesem Plugin. Sauber abstellen lässt es sich im
 * Divi-Builder unter Zeile → Design → Animation → „Keine Animation“; die Regeln hier
 * sind das Sicherheitsnetz, falls die Einstellung irgendwann zurückfällt.
 */
.et_pb_section:has(> .et_pb_row .evf-news),
.et_pb_row:has(.evf-news),
.et_pb_module:has(.evf-news) {
	animation: none !important;
	opacity: 1 !important;
	transform: none !important;
}

/* Die mittlere Spalte: Filter, Aufmacher, Raster, Blättern, Leerzustand. */
.evf-news__filters,
.evf-news__summary,
.evf-news__leadwrap,
.evf-news__gridwrap,
.evf-news__more,
.evf-news__pages,
.evf-news__empty {
	width: var(--evf-news-width);
	margin-inline: auto;
}

.evf-news *,
.evf-news *::before,
.evf-news *::after {
	box-sizing: border-box;
}

.evf-news a {
	color: #fff;
	text-decoration: none;
}

.evf-news a:hover,
.evf-news a:focus {
	color: #fff;
}

.evf-news :focus-visible {
	outline: 3px solid var(--evf-yellow);
	outline-offset: 2px;
}

.evf-news__sr {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

/* ---------------------------------------------------------------- Hero */

.evf-news__hero {
	position: relative;
	overflow: hidden;
	background: var(--ink-950);
	border-bottom: 3px solid var(--evf-yellow);
	/* Der schwarze Balken läuft voll durch, der Text steht in derselben Spalte
	   wie die Karten darunter. */
	padding: 52px 0 46px;
}

.evf-news__hero-mark {
	position: absolute;
	right: -70px;
	top: -70px;
	width: 340px;
	height: auto;
	opacity: .045;
	pointer-events: none;
}

.evf-news__hero-inner {
	position: relative;
	width: var(--evf-news-width);
	margin-inline: auto;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 40px;
}

.evf-news__eyebrow {
	margin: 0 0 16px;
	font: 700 11px/1 'Archivo', sans-serif;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--evf-yellow);
}

.evf-news__title {
	margin: 0;
	font: 400 62px/1.02 'Anton', sans-serif;
	text-transform: uppercase;
	color: #fff;
	text-wrap: pretty;
}

.evf-news__mark {
	box-shadow: inset 0 -.14em 0 var(--evf-yellow);
}

.evf-news__count {
	margin: 0;
	text-align: right;
	font: 600 12px/1.5 'Archivo', sans-serif;
	letter-spacing: .05em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, .76);
	font-variant-numeric: tabular-nums;
}

/* Nur die beiden direkten Kinder stehen untereinander. Ohne den Kindselektor
   erwischt die Regel auch die Zahlen in „Seite 1 von 130“ und zerlegt die Zeile. */
.evf-news__count > span {
	display: block;
}

.evf-news__count-page {
	margin-top: 5px;
	white-space: nowrap;
	color: rgba(255, 255, 255, .7);
}

/* ------------------------------------------------------------- Filter */

.evf-news__filters {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 28px;
	background: var(--evf-black);
	border-bottom: 1px solid rgba(255, 255, 255, .12);
	padding: 22px 0 24px;
}

.evf-news__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
}

.evf-news__chip {
	cursor: pointer;
	font: 700 11px/1 'Archivo', sans-serif;
	letter-spacing: .1em;
	text-transform: uppercase;
	padding: 11px 16px;
	min-height: 44px;
	background: transparent;
	color: rgba(255, 255, 255, .76);
	border: 1px solid rgba(255, 255, 255, .22);
	border-radius: 0;
	transition: background .14s, color .14s, border-color .14s;
}

.evf-news__chip:hover {
	border-color: rgba(255, 255, 255, .5);
	color: #fff;
}

.evf-news__chip[aria-pressed="true"] {
	background: var(--evf-yellow);
	color: var(--evf-black);
	border-color: var(--evf-yellow);
}

.evf-news__controls {
	display: flex;
	align-items: center;
	gap: 10px;
	flex: none;
	margin: 0;
}

.evf-news__searchwrap {
	position: relative;
	width: 230px;
}

.evf-news__searchicon {
	position: absolute;
	left: 14px;
	top: 50%;
	transform: translateY(-50%);
	color: rgba(255, 255, 255, .6);
	pointer-events: none;
}

.evf-news__search {
	width: 100%;
	background: rgba(255, 255, 255, .06);
	border: 1px solid rgba(255, 255, 255, .22);
	border-radius: 0;
	color: #fff;
	font: 400 13.5px/1 'Archivo', sans-serif;
	padding: 13px 14px 13px 40px;
	min-height: 44px;
}

.evf-news__search::placeholder {
	color: rgba(255, 255, 255, .55);
}

.evf-news__search:focus {
	outline: 3px solid var(--evf-yellow);
	outline-offset: 1px;
	border-color: var(--evf-yellow);
}

.evf-news__season {
	background: rgba(255, 255, 255, .06);
	border: 1px solid rgba(255, 255, 255, .22);
	border-radius: 0;
	color: #fff;
	font: 600 12px/1 'Archivo', sans-serif;
	letter-spacing: .06em;
	text-transform: uppercase;
	padding: 13px 12px;
	min-height: 44px;
}

.evf-news__season option {
	color: #111;
}

.evf-news__apply {
	cursor: pointer;
	font: 700 11px/1 'Archivo', sans-serif;
	letter-spacing: .1em;
	text-transform: uppercase;
	padding: 13px 16px;
	min-height: 44px;
	background: var(--evf-yellow);
	color: var(--evf-black);
	border: 1px solid var(--evf-yellow);
	border-radius: 0;
}

/* JavaScript übernimmt das Absenden, dann verschwindet der Knopf. */
.evf-news:not(.evf-news--nojs) .evf-news__apply {
	display: none;
}

/* ------------------------------------------------------ Filter-Zusammenfassung */

.evf-news__summary {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 26px 0 0;
	font: 600 11.5px/1 'Archivo', sans-serif;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, .76);
	font-variant-numeric: tabular-nums;
}

.evf-news__summary-sep {
	color: rgba(255, 255, 255, .3);
}

.evf-news__reset,
.evf-news a.evf-news__reset {
	color: var(--evf-yellow);
	box-shadow: inset 0 -2px 0 var(--evf-yellow);
}

.evf-news__reset:hover {
	color: #fff;
	box-shadow: inset 0 -2px 0 #fff;
}

/* --------------------------------------------------------------- Karte */

.evf-news-card {
	display: block;
	color: #fff;
	text-decoration: none;
	background: var(--ink-800);
	border: 2px solid rgba(255, 255, 255, .14);
	transition: transform .18s cubic-bezier(.2, .8, .2, 1), box-shadow .18s, border-color .18s;
}

.evf-news-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 14px 30px rgba(11, 11, 12, .5);
	border-color: rgba(255, 255, 255, .3);
}

.evf-news__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.evf-news__placeholder {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	background: var(--evf-black);
}

.evf-news__placeholder img {
	width: 64px;
	height: auto;
	opacity: .12;
}

/* ------------------------------------------------------------ Aufmacher */

.evf-news__leadwrap {
	background: var(--evf-black);
	padding: 44px 0 0;
}

.evf-news__lead {
	display: grid;
	grid-template-columns: 1.15fr 1fr;
	align-items: stretch;
}

.evf-news__lead-media {
	min-height: 340px;
}

.evf-news__lead-body {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 38px 40px 40px;
	border-left: 2px solid rgba(255, 255, 255, .14);
}

.evf-news__lead-meta {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 16px;
}

.evf-news__lead-cat {
	background: var(--evf-yellow);
	color: var(--evf-black);
	font: 700 10.5px/1 'Archivo', sans-serif;
	letter-spacing: .12em;
	text-transform: uppercase;
	padding: 7px 10px;
}

.evf-news__lead-date {
	font: 700 11px/1 'Archivo', sans-serif;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, .72);
	font-variant-numeric: tabular-nums;
}

.evf-news__lead-title {
	margin: 0 0 14px;
	font: 400 42px/1.05 'Anton', sans-serif;
	text-transform: uppercase;
	color: #fff;
	text-wrap: pretty;
}

.evf-news__lead-excerpt {
	margin: 0 0 22px;
	font: 400 15px/1.65 'Archivo', sans-serif;
	color: rgba(255, 255, 255, .86);
	text-wrap: pretty;
}

.evf-news__lead-more {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	font: 700 12.5px/1 'Archivo', sans-serif;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--evf-yellow);
}

/* --------------------------------------------------------------- Raster */

.evf-news__gridwrap {
	background: var(--evf-black);
	padding: 24px 0 0;
}

.evf-news__grid {
	display: grid;
	grid-template-columns: repeat(var(--evf-news-cols), minmax(0, 1fr));
	gap: 24px;
}

.evf-news__card-media {
	height: 220px;
}

.evf-news__card-body {
	padding: 20px 22px 24px;
	border-top: 2px solid rgba(255, 255, 255, .14);
}

.evf-news__card-meta {
	display: flex;
	align-items: center;
	gap: 9px;
	margin-bottom: 12px;
	font: 600 10.5px/1 'Archivo', sans-serif;
	letter-spacing: .1em;
	text-transform: uppercase;
}

.evf-news__card-cat {
	color: var(--evf-yellow);
}

.evf-news__card-sep {
	color: rgba(255, 255, 255, .3);
}

.evf-news__card-date {
	color: rgba(255, 255, 255, .72);
	font-variant-numeric: tabular-nums;
}

.evf-news__card-title {
	margin: 0 0 10px;
	font: 400 24px/1.06 'Anton', sans-serif;
	text-transform: uppercase;
	color: #fff;
	text-wrap: pretty;
}

.evf-news__card-excerpt {
	margin: 0;
	font: 400 13.5px/1.6 'Archivo', sans-serif;
	color: rgba(255, 255, 255, .75);
	text-wrap: pretty;
}

/* ------------------------------------------------------------- Blättern */

.evf-news__pagination {
	background: var(--evf-black);
}

.evf-news__more {
	display: flex;
	justify-content: center;
	padding: 46px 0 0;
}

.evf-news__morebtn {
	display: inline-block;
	background: var(--evf-yellow);
	color: var(--evf-black);
	padding: 20px 54px 17px;
	border-bottom: 4px solid var(--evf-yellow-deep);
	transition: background .14s, transform .14s cubic-bezier(.2, .8, .2, 1);
}

.evf-news a.evf-news__morebtn,
.evf-news a.evf-news__morebtn:hover {
	color: var(--evf-black);
}

.evf-news__morebtn > span {
	display: inline-flex;
	align-items: center;
	gap: 13px;
	font: 400 23px/1 'Anton', sans-serif;
	letter-spacing: .035em;
	text-transform: uppercase;
}

.evf-news__morebtn:hover {
	background: #fff;
	border-bottom-color: var(--evf-yellow);
	transform: translateY(-2px);
}

.evf-news__morebtn.is-busy {
	opacity: .7;
	pointer-events: none;
}

.evf-news__pages {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 8px;
	padding: 40px 0 56px;
}

.evf-news__pages .page-numbers {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	font: 700 13px/1 'Archivo', sans-serif;
	color: rgba(255, 255, 255, .8);
	border: 1px solid rgba(255, 255, 255, .22);
	text-decoration: none;
	font-variant-numeric: tabular-nums;
}

.evf-news__pages a.page-numbers:hover {
	border-color: #fff;
	color: #fff;
}

.evf-news__pages .page-numbers.current {
	background: var(--evf-yellow);
	border-color: var(--evf-yellow);
	color: var(--evf-black);
}

.evf-news__pages .page-numbers.dots {
	border: 0;
	color: rgba(255, 255, 255, .7);
}

.evf-news__pages .page-numbers.prev,
.evf-news__pages .page-numbers.next {
	width: auto;
	padding: 0 16px;
	letter-spacing: .06em;
	text-transform: uppercase;
}

/* ------------------------------------------------------------ Leerzustand */

.evf-news__empty {
	background: var(--evf-black);
	text-align: center;
	padding: 80px 0;
}

.evf-news__empty-title {
	margin: 0 0 14px;
	font: 400 32px/1.06 'Anton', sans-serif;
	text-transform: uppercase;
	color: #fff;
}

.evf-news__empty-text {
	margin: 0 auto 18px;
	max-width: 46ch;
	font: 400 14px/1.6 'Archivo', sans-serif;
	color: rgba(255, 255, 255, .84);
}

.evf-news__empty-link,
.evf-news a.evf-news__empty-link {
	display: inline-block;
	font: 700 12.5px/1 'Archivo', sans-serif;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--evf-yellow);
	box-shadow: inset 0 -2px 0 var(--evf-yellow);
}

.evf-news__empty-link:hover {
	color: #fff;
	box-shadow: inset 0 -2px 0 #fff;
}

/* --------------------------------------------------------------- WhatsApp */

.evf-news__wa {
	display: grid;
	grid-template-columns: 1.15fr .85fr;
	background: var(--evf-yellow);
	color: var(--evf-black);
}

.evf-news__wa-text {
	padding: 46px 56px 48px;
}

.evf-news__wa-eyebrow {
	margin: 0 0 14px;
	font: 700 10.5px/1 'Archivo', sans-serif;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: rgba(0, 0, 0, .6);
}

.evf-news__wa-title {
	margin: 0 0 14px;
	font: 400 40px/1.05 'Anton', sans-serif;
	text-transform: uppercase;
	color: var(--evf-black);
}

.evf-news__wa-copy {
	margin: 0;
	max-width: 52ch;
	font: 400 14.5px/1.65 'Archivo', sans-serif;
	color: rgba(0, 0, 0, .8);
	text-wrap: pretty;
}

.evf-news__wa-action {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	padding: 46px 56px;
}

.evf-news__wa-btn,
.evf-news a.evf-news__wa-btn {
	display: inline-flex;
	align-items: center;
	gap: 11px;
	background: var(--evf-black);
	color: #fff;
	font: 700 13.5px/1 'Archivo', sans-serif;
	letter-spacing: .08em;
	text-transform: uppercase;
	padding: 18px 26px;
	border: 2px solid var(--evf-black);
	box-shadow: 4px 4px 0 rgba(0, 0, 0, .25);
}

.evf-news__wa-btn:hover {
	transform: translate(2px, 2px);
	box-shadow: 2px 2px 0 rgba(0, 0, 0, .25);
}

/* ------------------------------------------------------------------ Klein */

@media (max-width: 900px) {
	.evf-news {
		--evf-news-pad: 20px;
		/* Auf dem Telefon wäre eine 80-Prozent-Spalte zu schmal. */
		--evf-news-width: 100%;
	}

	.evf-news__filters,
	.evf-news__summary,
	.evf-news__leadwrap,
	.evf-news__gridwrap,
	.evf-news__more,
	.evf-news__pages,
	.evf-news__empty {
		padding-right: var(--evf-news-pad);
		padding-left: var(--evf-news-pad);
	}

	.evf-news__card-media {
		height: 200px;
	}

	.evf-news__hero {
		padding: 36px 0 32px;
	}

	.evf-news__hero-inner {
		padding-right: var(--evf-news-pad);
		padding-left: var(--evf-news-pad);
		flex-direction: column;
		align-items: flex-start;
		gap: 20px;
	}

	.evf-news__title {
		font-size: 40px;
		line-height: 1.05;
	}

	.evf-news__count {
		text-align: left;
	}

	.evf-news__filters {
		flex-direction: column;
		align-items: stretch;
		gap: 14px;
	}

	.evf-news__chips {
		flex-wrap: nowrap;
		overflow-x: auto;
		scroll-snap-type: x proximity;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		margin: 0 calc(var(--evf-news-pad) * -1);
		padding: 0 var(--evf-news-pad);
	}

	.evf-news__chips::-webkit-scrollbar {
		display: none;
	}

	.evf-news__chip {
		flex: none;
		scroll-snap-align: start;
	}

	.evf-news__controls {
		flex-wrap: wrap;
	}

	.evf-news__searchwrap {
		width: 100%;
	}

	.evf-news__season,
	.evf-news__apply {
		flex: 1 1 auto;
	}

	.evf-news__lead {
		grid-template-columns: 1fr;
	}

	.evf-news__lead-media {
		min-height: 220px;
		height: 220px;
	}

	.evf-news__lead-body {
		border-left: 0;
		border-top: 2px solid rgba(255, 255, 255, .14);
		padding: 24px 22px 28px;
	}

	.evf-news__lead-title {
		font-size: 30px;
	}

	.evf-news__grid {
		grid-template-columns: 1fr;
	}

	.evf-news__morebtn {
		width: 100%;
		text-align: center;
		padding: 18px 24px 15px;
	}

	.evf-news__morebtn > span {
		font-size: 19px;
		justify-content: center;
	}

	.evf-news__wa {
		grid-template-columns: 1fr;
	}

	.evf-news__wa-text {
		padding: 32px 22px 8px;
	}

	.evf-news__wa-title {
		font-size: 28px;
	}

	.evf-news__wa-action {
		justify-content: flex-start;
		padding: 24px 22px 32px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.evf-news * {
		transition: none !important;
	}

	.evf-news-card:hover,
	.evf-news__morebtn:hover,
	.evf-news__wa-btn:hover {
		transform: none;
	}
}
