/**
 * FV Erpel Aktuelles – Vollseite (ab 1.8.0)
 *
 * Seitenrahmen nach dem Vorbild von fv-erpel-startseite und
 * fv-erpel-bestellshop: Kopf und Fuß aus dem Startseiten-Plugin,
 * dazwischen Kopfbereich (Hero) und Inhalt auf voller Breite.
 *
 * Alles ist auf body.fvea-vollseite gescopet. Im Theme-Rückfall
 * (ohne Startseiten-Plugin) greift keine einzige Regel dieser Datei.
 */

/* ------------------------------------------------------------------ Tokens */

body.fvea-vollseite {
	--fvea-akzent: #c8102e;
	--fvea-akzent-hell: color-mix(in srgb, #c8102e 70%, #fff);
	--fvea-schwarz: #111214;
	--fvea-tinte: #1c1d1f;
	--fvea-grau: #6d6f73;
	--fvea-linie: rgba(0, 0, 0, .12);
	--fvea-hell: #f5f4f2;
	--fvea-display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
	--fvea-text: "Newsreader", Georgia, "Times New Roman", serif;
	--fvea-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
	--fvea-breite: min(100% - 40px, 1180px);
	--fvea-kopf-hoehe: 110px; /* Platz unter der mitlaufenden Kopfzeile */

	margin: 0;
	background: #fff;
	color: var(--fvea-tinte);
	font-family: var(--fvea-text);
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	overflow-x: clip;
}

html.fve-vollseite {
	scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
	html.fve-vollseite {
		scroll-behavior: auto;
	}
}

/* ------------------------------------------------------------------ Rahmen */

/* Kopfzeile läuft beim Scrollen mit. Ein sticky-Element klebt nur innerhalb
   seines Elternelements – daher ist der ganze Kopf-Wrapper sticky. Die
   Binde (10 px) rutscht nach oben weg, die Kopfzeile bleibt stehen. */
body.fvea-vollseite .fvea-vollseite__kopf {
	position: sticky;
	top: -10px;
	z-index: 1000;
}

body.fvea-vollseite.admin-bar .fvea-vollseite__kopf {
	top: 22px; /* 32 px Adminleiste – 10 px Binde */
}

@media (max-width: 782px) {
	body.fvea-vollseite.admin-bar .fvea-vollseite__kopf {
		top: 36px;
	}
}

@media (max-width: 600px) {
	/* Hier scrollt die Adminleiste mit weg. */
	body.fvea-vollseite.admin-bar .fvea-vollseite__kopf {
		top: -10px;
	}
}

body.fvea-vollseite .fvea-vollseite__inhalt {
	display: block;
	background: #fff;
	padding-bottom: clamp(40px, 6vw, 80px);
}

/* Redaktioneller Text der Seite (vor/nach dem Shortcode) in Satzbreite. */
body.fvea-vollseite .fvea-vollseite__text > *:not(.fvea-hero):not(.fvea) {
	width: var(--fvea-breite);
	margin-inline: auto;
}

body.fvea-vollseite .fvea-vollseite__text > p:empty,
body.fvea-vollseite .fvea-vollseite__text > br {
	display: none;
}

/* Sprungziele nicht unter der Kopfzeile verstecken. */
body.fvea-vollseite #fve-oben,
body.fvea-vollseite #fve-formular {
	scroll-margin-top: var(--fvea-kopf-hoehe);
}

/* ------------------------------------------------------------------ Kopfbereich (Hero) */

body.fvea-vollseite .fvea-hero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	background: var(--fvea-schwarz);
	color: #fff;
}

body.fvea-vollseite .fvea-hero__bg {
	position: absolute;
	inset: 0;
	z-index: -3;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: center 35%;
}

body.fvea-vollseite .fvea-hero__schleier {
	position: absolute;
	inset: 0;
	z-index: -2;
	background: radial-gradient(130% 150% at 0% 0%, #1f2023 0%, var(--fvea-schwarz) 62%);
}

body.fvea-vollseite .fvea-hero--mit-bild .fvea-hero__schleier {
	background: linear-gradient(90deg, rgba(17, 18, 20, .95) 0%, rgba(17, 18, 20, .86) 42%, rgba(17, 18, 20, .5) 100%);
}

/* Roter Diagonalkeil wie im Shop. */
body.fvea-vollseite .fvea-hero__keil {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	z-index: -1;
	width: min(46%, 700px);
	background: var(--fvea-akzent);
	opacity: .78;
	clip-path: polygon(36% 0, 100% 0, 100% 100%, 0 100%);
}

body.fvea-vollseite .fvea-hero__inner {
	position: relative;
	width: var(--fvea-breite);
	margin-inline: auto;
	padding: clamp(56px, 8vw, 104px) 0 clamp(52px, 7vw, 92px);
}

body.fvea-vollseite .fvea-hero__jahr {
	position: absolute;
	top: clamp(10px, 2vw, 28px);
	left: -.03em;
	z-index: -1;
	font-family: var(--fvea-display);
	font-weight: 800;
	font-size: clamp(7rem, 18vw, 15rem);
	line-height: .8;
	color: transparent;
	-webkit-text-stroke: 2px rgba(255, 255, 255, .12);
	pointer-events: none;
	user-select: none;
}

body.fvea-vollseite .fvea-hero__zurueck {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 28px;
	font-family: var(--fvea-mono);
	font-size: .72rem;
	font-weight: 600;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, .72);
	text-decoration: none;
	transition: color .18s ease;
}

body.fvea-vollseite .fvea-hero__zurueck:hover,
body.fvea-vollseite .fvea-hero__zurueck:focus-visible {
	color: #fff;
}

body.fvea-vollseite .fvea-hero__eyebrow {
	margin: 0 0 18px;
	font-family: var(--fvea-mono);
	font-size: .78rem;
	font-weight: 600;
	letter-spacing: .28em;
	text-transform: uppercase;
	color: var(--fvea-akzent-hell);
}

body.fvea-vollseite .fvea-hero__titel {
	margin: 0;
	max-width: 15ch;
	font-family: var(--fvea-display);
	font-weight: 800;
	font-size: clamp(3.2rem, 9vw, 7rem);
	line-height: .9;
	letter-spacing: -.005em;
	text-transform: uppercase;
	color: #fff;
	overflow-wrap: anywhere;
	hyphens: auto;
}

body.fvea-vollseite .fvea-hero--beitrag .fvea-hero__titel {
	max-width: 24ch;
	font-size: clamp(2.2rem, 5.2vw, 4.2rem);
	line-height: .95;
}

body.fvea-vollseite .fvea-hero__zeile {
	display: block;
}

body.fvea-vollseite .fvea-hero__zeile--akzent {
	color: var(--fvea-akzent);
}

body.fvea-vollseite .fvea-hero__text {
	margin: 24px 0 0;
	max-width: 40em;
	font-family: var(--fvea-text);
	font-size: clamp(1.05rem, 1.6vw, 1.25rem);
	line-height: 1.6;
	color: rgba(255, 255, 255, .86);
}

body.fvea-vollseite .fvea-hero__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 22px;
	margin-top: 28px;
	font-family: var(--fvea-mono);
	font-size: .72rem;
	font-weight: 600;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, .76);
}

body.fvea-vollseite .fvea-hero__autor {
	display: inline-flex;
	align-items: center;
	gap: 10px;
}

body.fvea-vollseite .fvea-hero__autor-zeichen {
	padding: 4px 7px;
	background: var(--fvea-akzent);
	color: #fff;
	letter-spacing: .12em;
}

@media (max-width: 700px) {
	body.fvea-vollseite .fvea-hero__keil {
		width: 62%;
		opacity: .5;
	}
}

/* ------------------------------------------------------------------ Inhalt: Grundlagen */

body.fvea-vollseite .fvea {
	--fve-radius: 2px;
	--fve-schatten: none;
	--fve-tinte: var(--fvea-tinte);
	--fve-grau: var(--fvea-grau);
	--fve-linie: var(--fvea-linie);
	--fve-sand: var(--fvea-hell);

	width: var(--fvea-breite);
	max-width: none;
	margin-inline: auto;
	padding: clamp(36px, 5vw, 64px) 0 0;
	font-family: var(--fvea-text);
	font-size: 17px;
	line-height: 1.65;
}

/* Gemeinsame Schriftrollen */
body.fvea-vollseite .fvea :is(
	.fve__titel,
	.fve-karte__titel,
	.fve-archiv__titel,
	.fve-einzel__titel,
	.fve-artikel__titel,
	.fve-weitere__titel,
	.fve-liste__titel
) {
	font-family: var(--fvea-display);
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .005em;
	line-height: .98;
}

body.fvea-vollseite .fvea :is(
	.fve__marke,
	.fve-karte__meta,
	.fve-karte__link,
	.fve__mehr,
	.fve-archiv__zaehler,
	.fve-archiv__datum,
	.fve-archiv__jahr-anzahl,
	.fve-einzel__zurueck,
	.fve-einzel__datum,
	.fve-artikel__marke,
	.fve-artikel__knopf,
	.fve-artikel__nav-label,
	.fve-artikel__rubriken a,
	.fve-weitere__datum,
	.fve-weitere__alle a,
	.fve-liste__marke,
	.fve-knopf
) {
	font-family: var(--fvea-mono);
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
}

body.fvea-vollseite .fvea :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea, button) {
	border-radius: 2px;
}

body.fvea-vollseite .fvea :is(a, button, summary, input, select, textarea):focus-visible {
	outline: 2px solid var(--fvea-akzent);
	outline-offset: 3px;
}

/* ------------------------------------------------------------------ Übersicht: Karten */

body.fvea-vollseite .fve-karte {
	border-color: var(--fvea-linie);
	transition: border-color .2s ease;
}

body.fvea-vollseite :is(.fve-karte--angepinnt, .fve-karte--vorschau) {
	border-left: 3px solid var(--fvea-akzent);
}

body.fvea-vollseite .fve-karte:hover {
	border-color: var(--fvea-akzent);
	box-shadow: none;
	transform: none;
}

body.fvea-vollseite .fve-karte__datum {
	border-radius: 2px;
	background: var(--fvea-akzent);
}

body.fvea-vollseite .fve-karte--aufmacher .fve-karte__datum {
	box-shadow: none;
}

body.fvea-vollseite .fve-karte__tag {
	font-family: var(--fvea-display);
	font-size: 30px;
	font-weight: 800;
}

body.fvea-vollseite .fve-karte__monat,
body.fvea-vollseite .fve-karte__jahr {
	font-family: var(--fvea-mono);
	letter-spacing: .14em;
}

body.fvea-vollseite .fve-karte__bild {
	border-radius: 0;
}

body.fvea-vollseite .fve-karte__titel {
	font-size: 1.7rem;
	margin-bottom: 8px;
}

body.fvea-vollseite .fve-karte--aufmacher .fve-karte__titel {
	font-size: clamp(2rem, 3.4vw, 2.9rem);
}

body.fvea-vollseite .fve-karte__untertitel {
	font-family: var(--fvea-text);
	font-style: italic;
	color: var(--fvea-grau);
}

body.fvea-vollseite .fve-karte__meta,
body.fvea-vollseite .fve-karte__link {
	font-size: .7rem;
}

body.fvea-vollseite .fve-karte__auszug {
	color: var(--fvea-tinte);
	font-size: 1.02rem;
	line-height: 1.6;
}

body.fvea-vollseite .fve__mehr {
	padding: 14px 28px;
	font-size: .76rem;
	border-radius: 2px;
}

/* ------------------------------------------------------------------ Übersicht: Archivspalte */

body.fvea-vollseite .fve__archiv {
	top: var(--fvea-kopf-hoehe);
}

body.fvea-vollseite .fve-archiv {
	border-radius: 2px;
	border-top: 3px solid var(--fvea-akzent);
}

body.fvea-vollseite .fve-archiv__titel {
	font-size: 1.5rem;
	letter-spacing: .01em;
}

body.fvea-vollseite .fve-archiv__zaehler {
	font-size: .66rem;
}

body.fvea-vollseite .fve-archiv__feld {
	font-family: var(--fvea-text);
	font-size: 1rem;
	border-radius: 2px;
	background: #fff;
}

body.fvea-vollseite .fve-archiv__jahr-zahl {
	font-family: var(--fvea-display);
	font-size: 1.25rem;
	font-weight: 800;
}

body.fvea-vollseite .fve-archiv__jahr-anzahl {
	font-size: .66rem;
	border-radius: 2px;
}

body.fvea-vollseite .fve-archiv__eintrag a {
	border-radius: 2px;
	font-size: .98rem;
}

body.fvea-vollseite .fve-archiv__datum {
	font-size: .64rem;
	padding-top: 4px;
}

/* ------------------------------------------------------------------ Beitragsseite */

/* Kopf, Titel und Metazeile stehen im Hero – der Artikel beginnt mit Bild bzw. Text. */
body.fvea-vollseite .fvea.fve-seite {
	--fve-radius: 2px;
	--fve-schatten: none;
	--fve-tinte: var(--fvea-tinte);
	--fve-grau: var(--fvea-grau);
	--fve-linie: var(--fvea-linie);
	--fve-sand: var(--fvea-hell);

	width: min(100% - 40px, 1080px);
	max-width: none;
	padding: clamp(36px, 5vw, 64px) 0 0;
	font-family: var(--fvea-text);
	font-size: 1.0625rem;
	line-height: 1.75;
}

body.fvea-vollseite .fve-seite .fve-artikel__bild {
	margin-top: 0;
}

body.fvea-vollseite .fve-seite .fve-artikel__bild img {
	border-radius: 0;
}

body.fvea-vollseite .fve-seite .fve-artikel__text :is(h2, h3, h4) {
	font-family: var(--fvea-display);
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .005em;
	line-height: 1;
}

body.fvea-vollseite .fve-seite .fve-artikel__text h2 {
	font-size: clamp(1.8rem, 3.2vw, 2.4rem);
}

body.fvea-vollseite .fve-seite .fve-artikel__text h3 {
	font-size: clamp(1.4rem, 2.6vw, 1.8rem);
}

body.fvea-vollseite .fve-seite .fve-artikel__text a {
	color: var(--fvea-akzent);
	text-decoration: underline;
	text-underline-offset: .18em;
}

body.fvea-vollseite .fve-seite .fve-artikel__text blockquote {
	margin-inline: 0;
	padding-left: 20px;
	border-left: 3px solid var(--fvea-akzent);
	font-style: italic;
}

body.fvea-vollseite .fve-seite :is(.fve-artikel__nav, .fve-weitere__karte, .fve-artikel__knopf) {
	border-radius: 2px;
	box-shadow: none;
}

body.fvea-vollseite .fve-seite .fve-weitere__titel {
	font-size: clamp(2rem, 4vw, 3rem);
}

body.fvea-vollseite .fve-seite .fve-weitere__karte-titel {
	font-family: var(--fvea-display);
	font-weight: 700;
	font-size: 1.35rem;
	line-height: 1.05;
	text-transform: uppercase;
}

/* ------------------------------------------------------------------ Redaktion */

body.fvea-vollseite .fve-liste {
	top: var(--fvea-kopf-hoehe);
}

/* Nur in der zweispaltigen Ansicht begrenzen – darunter läuft die Liste frei. */
@container fvea (min-width: 921px) {
	body.fvea-vollseite .fve-liste {
		max-height: calc(100vh - var(--fvea-kopf-hoehe) - 16px);
	}
}

body.fvea-vollseite .fve-liste__titel {
	font-size: 1.5rem;
}
