/*
Theme Name: SpVgg Binsdorf
Theme URI: https://www.spvgg-binsdorf.de/
Author: SpVgg Binsdorf 1927 e.V.
Description: Der Webauftritt der SpVgg Binsdorf im Stil des Saisonhefts „Volltreffer“. Das nächste Spiel steht als Titelzeile auf der Startseite.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: spvgg-binsdorf
*/

/* Fonts: Barlow and Barlow Condensed, SIL Open Font License, served from the theme. */
@font-face { font-family: "Barlow"; font-weight: 300; font-style: normal; font-display: swap; src: url("assets/fonts/barlow-300.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 400; font-style: normal; font-display: swap; src: url("assets/fonts/barlow-400.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-style: normal; font-display: swap; src: url("assets/fonts/barlow-500.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-style: normal; font-display: swap; src: url("assets/fonts/barlow-600.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 700; font-style: normal; font-display: swap; src: url("assets/fonts/barlow-700.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-style: normal; font-display: swap; src: url("assets/fonts/barlow-condensed-600.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-style: normal; font-display: swap; src: url("assets/fonts/barlow-condensed-700.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 800; font-style: normal; font-display: swap; src: url("assets/fonts/barlow-condensed-800.woff2") format("woff2"); }

:root {
	--rot: #e10d35;
	--weiss: #fff;
	--tinte: #111;

	--schrift: "Barlow", "DIN Alternate", "Helvetica Neue", Arial, sans-serif;
	--schmal: "Barlow Condensed", "DIN Condensed", "Arial Narrow", sans-serif;

	--rand: clamp(1rem, 4vw, 3.5rem);
	--breite: 82rem;
	--schraeg: -5deg;
	--zug: cubic-bezier(0.16, 1, 0.3, 1);

	color-scheme: light;
}

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

html {
	-webkit-text-size-adjust: 100%;
	scrollbar-color: var(--rot) var(--weiss);
	scroll-padding-top: 1rem;
}

body {
	margin: 0;
	background: var(--weiss);
	color: var(--tinte);
	font: 400 1.125rem/1.55 var(--schrift);
	font-variant-numeric: tabular-nums;
	caret-color: var(--rot);
	overflow-wrap: break-word;
}

::selection { background: var(--rot); color: var(--weiss); }
.rot ::selection,
.kopf__band ::selection { background: var(--weiss); color: var(--rot); }

img { max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 0.08em; }

:focus-visible { outline: 3px solid var(--tinte); outline-offset: 3px; }
.rot :focus-visible,
.kopf__band :focus-visible,
.titel :focus-visible { outline-color: var(--weiss); }

.icon { width: 1.15em; height: 1.15em; flex: none; }

.rahmen { width: min(100% - 2 * var(--rand), var(--breite)); margin-inline: auto; }
.rot { background: var(--rot); color: var(--weiss); }

.nur-vorlesen {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.sprung {
	position: absolute;
	left: var(--rand);
	top: -10rem;
	z-index: 100;
	padding: 0.75rem 1rem;
	background: var(--tinte);
	color: var(--weiss);
	font-weight: 600;
}
.sprung:focus { top: 0.5rem; }

/* Masthead */

.kopf__band {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: stretch;
	background: var(--rot);
	color: var(--weiss);
}

.wappen {
	display: block;
	--kante: clamp(4.75rem, 12vw, 10.5rem);
	width: var(--kante);
	aspect-ratio: 1;
	padding: calc(var(--kante) * 0.09);
	background: var(--weiss);
}
.wappen__bild { display: block; width: 100%; height: auto; }
.wappen--klein { --kante: 6rem; }

.kopf__titel {
	align-self: center;
	padding: clamp(0.75rem, 2vw, 1.5rem) clamp(0.9rem, 2.5vw, 2.25rem);
}

.wortmarke {
	font: 300 clamp(1.7rem, 6.6vw, 5.75rem)/0.9 var(--schrift);
	letter-spacing: -0.025em;
}
.wortmarke a { text-decoration: none; }
.wortmarke b { font-weight: 700; }

.kopf__gruss {
	margin-top: 0.5em;
	font-size: clamp(0.9rem, 1.5vw, 1.3rem);
	line-height: 1.25;
}

.kopf__ausgabe {
	grid-column: 1 / -1;
	grid-row: 2;
	padding: 0.4rem var(--rand);
	border-top: 1px solid var(--weiss);
	font-size: 1rem;
	font-weight: 300;
	white-space: nowrap;
}
.kopf__ausgabe b { font-weight: 600; }

.menue-knopf {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	align-self: center;
	min-height: 2.75rem;
	margin-right: var(--rand);
	padding: 0.4rem 0.75rem;
	border: 2px solid var(--weiss);
	background: none;
	color: inherit;
	font: 600 1rem/1 var(--schrift);
	cursor: pointer;
}
.menue-knopf span { display: inline-flex; }
.menue-knopf .menue-knopf__zu,
.menue-knopf[aria-expanded="true"] .menue-knopf__auf { display: none; }
.menue-knopf[aria-expanded="true"] .menue-knopf__zu { display: inline-flex; }
.menue-knopf[aria-expanded="true"] { background: var(--weiss); color: var(--rot); }

/* Navigation: a stacked list on small screens, a bar with drop-downs on wide ones. */

.menue {
	border-bottom: 2px solid var(--tinte);
	background: var(--weiss);
}
/* Folded away only when the script that opens it is running. */
html:not(.js) .menue-knopf { display: none; }
@media not all and (min-width: 62rem) {
	.js .menue:not(.ist-offen) { display: none; }
}

.menue a {
	display: block;
	text-decoration: none;
	font-weight: 600;
}
.menue__liste > li { border-top: 1px solid var(--tinte); }
.menue__liste > li:first-child { border-top: 0; }
.menue__liste > li > a { padding: 0.8rem var(--rand); font-size: 1.2rem; }
.menue .sub-menu {
	display: flex;
	flex-wrap: wrap;
	gap: 0 1.25rem;
	padding: 0 var(--rand) 0.6rem;
}
.menue .sub-menu a { padding: 0.45rem 0; font-weight: 500; font-size: 1.05rem; }
.menue .sub-menu .sub-menu { flex-basis: 100%; padding: 0 0 0 1rem; }
.menue .sub-menu li:has(> .sub-menu) { flex-basis: 100%; }
.menue a:hover,
.menue .current-menu-item > a,
.menue .current_page_item > a { color: var(--rot); }

@media (min-width: 62rem) {
	.kopf__band { grid-template-columns: auto minmax(0, 1fr) auto; }
	.kopf__ausgabe {
		grid-column: auto;
		grid-row: auto;
		align-self: end;
		padding: 0 var(--rand) clamp(0.75rem, 2vw, 1.5rem) 0;
		border-top: 0;
		font-size: 1.3rem;
	}
	.menue-knopf { display: none; }

	.menue__liste {
		display: flex;
		flex-wrap: wrap;
		width: min(100% - 2 * var(--rand), var(--breite));
		margin-inline: auto;
	}
	.menue__liste > li { position: relative; border-top: 0; }
	.menue__liste > li > a {
		padding: 1rem 1.1rem;
		font-size: 1.1rem;
		box-shadow: inset 0 0 0 var(--rot);
		transition: box-shadow 0.25s var(--zug), color 0.2s;
	}
	.menue__liste > li:first-child > a { padding-left: 0; }
	.menue__liste > li:hover > a,
	.menue__liste > li:focus-within > a,
	.menue__liste > .current-menu-item > a,
	.menue__liste > .current-menu-ancestor > a { box-shadow: inset 0 -5px 0 var(--rot); }

	.menue__liste > li > .sub-menu {
		position: absolute;
		top: 100%;
		left: 0;
		z-index: 30;
		display: none;
		flex-direction: column;
		flex-wrap: nowrap;
		min-width: 17rem;
		padding: 0.5rem 0;
		border: 2px solid var(--tinte);
		border-top: 0;
		background: var(--weiss);
	}
	.menue__liste > li:first-child > .sub-menu { left: -1.1rem; }
	.menue__liste > li:hover > .sub-menu,
	.menue__liste > li:focus-within > .sub-menu { display: flex; }
	.menue .sub-menu a { padding: 0.45rem 1.1rem; }
	.menue .sub-menu .sub-menu {
		display: flex;
		flex-direction: row;
		flex-wrap: wrap;
		gap: 0 0.9rem;
		padding: 0 1.1rem 0.4rem 2rem;
	}
	.menue .sub-menu .sub-menu a { padding: 0.25rem 0; font-size: 0.975rem; }
}

/* Cover: the aerial photo with the cover line on slanted label strips. */

.titel {
	position: relative;
	height: clamp(24rem, 74vh, 47rem);
	overflow: hidden;
	background: var(--tinte);
}
.titel__bild {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 55%;
}
.titel__zeilen {
	position: absolute;
	left: var(--rand);
	right: var(--rand);
	bottom: clamp(1.5rem, 5vw, 4rem);
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.4rem;
	transform: rotate(var(--schraeg));
	transform-origin: left bottom;
}
.titel__paarung { font-size: inherit; font-weight: inherit; }
.titel__paarung,
.titel__paarung a {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.4rem;
	text-decoration: none;
}
.titel__paarung a {
	transform-origin: left center;
	transition: transform 0.45s var(--zug);
}

.streifen {
	display: inline-block;
	max-width: 100%;
	padding: 0.09em 0.32em 0.12em;
	background: var(--rot);
	color: var(--weiss);
	font: 800 clamp(2.1rem, 7.4vw, 5.75rem)/1 var(--schmal);
	letter-spacing: 0.012em;
	text-transform: uppercase;
	transition: background-color 0.2s, color 0.2s;
}
.streifen--klein {
	font-size: clamp(1.05rem, 2.5vw, 1.7rem);
	font-weight: 700;
	letter-spacing: 0.035em;
}
.streifen--weiss { background: var(--weiss); color: var(--rot); }

.titel__zeilen > .streifen:first-child { margin-left: 0.6em; }
.titel__paarung .streifen:first-child { margin-left: 0.55em; }
.titel__zeilen > .streifen:last-child:not(:first-child) { margin-left: 2.2em; }

.titel__paarung a:hover,
.titel__paarung a:focus-visible { transform: rotate(calc(-1 * var(--schraeg))); }
.titel__paarung a:hover .streifen,
.titel__paarung a:focus-visible .streifen { background: var(--weiss); color: var(--rot); }

/* The strips are laid on one after another. Visible by default; the animation only plays them in. */
@keyframes kleben {
	from { clip-path: inset(0 100% 0 0); }
	to { clip-path: inset(0 0 0 0); }
}
@media (prefers-reduced-motion: no-preference) {
	.titel .streifen { animation: kleben 0.7s var(--zug) backwards; }
	.titel__zeilen > .streifen:first-child { animation-delay: 0.15s; }
	.titel__paarung .streifen:nth-child(1) { animation-delay: 0.3s; }
	.titel__paarung .streifen:nth-child(2) { animation-delay: 0.45s; }
	.titel__zeilen > .streifen:last-child:not(:first-child) { animation-delay: 0.65s; }
}

.titelfuss { border-bottom: 2px solid var(--tinte); }
.titelfuss__raster {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem 2.5rem;
	padding-block: 1.1rem;
}
.titelfuss__wege { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.titelfuss__hinweis { font-size: 1.2rem; line-height: 1.3; }

.stand { display: flex; flex-wrap: wrap; gap: 0.5rem 2.5rem; }
.stand dt { color: var(--rot); font-size: 1rem; font-weight: 600; line-height: 1.2; }
.stand dd { font-size: 1.3rem; font-weight: 700; line-height: 1.2; }

/* Buttons and links */

.knopf {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	min-height: 2.75rem;
	padding: 0.65rem 1.1rem;
	border: 2px solid var(--rot);
	background: var(--rot);
	color: var(--weiss);
	font: 600 1.05rem/1.2 var(--schrift);
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.knopf:hover { border-color: var(--tinte); background: var(--tinte); color: var(--weiss); }
.knopf:active { transform: translateY(1px); }
.knopf--linie { border-color: var(--tinte); background: var(--weiss); color: var(--tinte); }
.knopf .icon,
.textlink .icon,
.abteilung__name .icon { transition: transform 0.3s var(--zug); }
.knopf:hover .icon,
.textlink:hover .icon { transform: translateX(4px); }

.textlink {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-weight: 600;
	text-decoration: none;
}
.textlink:hover { color: var(--rot); }

/* Sections */

.abschnitt { padding-block: clamp(3.5rem, 8vw, 7rem); }
.abschnitt--linie { border-top: 2px solid var(--tinte); }
.abschnitt__weiter { margin-top: clamp(1.5rem, 3vw, 2.5rem); }

.rubrik {
	margin-bottom: clamp(1.5rem, 3.2vw, 2.75rem);
	font: 700 clamp(2.3rem, 5.4vw, 4.4rem)/0.95 var(--schrift);
	letter-spacing: -0.028em;
	text-transform: lowercase;
	text-wrap: balance;
}

.vorspann {
	max-width: 58ch;
	font-size: clamp(1.15rem, 1.7vw, 1.4rem);
	line-height: 1.5;
	text-wrap: pretty;
}

.datum {
	display: block;
	margin-bottom: 0.35rem;
	color: var(--rot);
	font-size: 1rem;
	font-weight: 600;
}

/* Aktuelles: lead story and contents list */

.aktuelles { display: grid; gap: clamp(2.5rem, 5vw, 5rem); }

.aufmacher__bild { display: block; margin-bottom: 1.25rem; }
.aufmacher__bild img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
}
.aufmacher__titel {
	margin-bottom: 0.75rem;
	font: 700 clamp(1.9rem, 3.7vw, 3.2rem)/1.04 var(--schrift);
	letter-spacing: -0.02em;
	text-wrap: balance;
}
.aufmacher--ohne-bild {
	padding-top: 1.25rem;
	border-top: 2px solid var(--tinte);
}
.aufmacher--ohne-bild .aufmacher__titel { font-size: clamp(2.3rem, 5.4vw, 4.4rem); letter-spacing: -0.028em; }
.aufmacher--ohne-bild .aufmacher__text { font-size: clamp(1.15rem, 1.7vw, 1.4rem); line-height: 1.5; }
.aufmacher__weiter { margin-top: 1.25rem; }
.aufmacher__text { max-width: 60ch; font-size: 1.2rem; }

.aufmacher__titel a,
.meldung__titel a,
.termin__name a { text-decoration: none; }
.aufmacher__titel a:hover,
.meldung__titel a:hover,
.termin__name a:hover {
	text-decoration: underline;
	text-decoration-color: var(--rot);
	text-decoration-thickness: 0.12em;
}

.meldung { padding-block: 1.25rem; border-top: 1px solid var(--tinte); }
.meldung:first-child { border-top-width: 2px; }
.meldung:last-child { border-bottom: 1px solid var(--tinte); }
.meldung__titel {
	margin-bottom: 0.35rem;
	font: 600 1.45rem/1.15 var(--schrift);
	letter-spacing: -0.01em;
}
.meldungen--archiv { max-width: 50rem; }
.archiv { display: grid; gap: 0 clamp(2rem, 5vw, 5rem); }

@media (min-width: 56rem) {
	.aktuelles { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
	.archiv { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
	.archiv > * { grid-column: 2; }
}

/* Termine */

.termine { display: grid; gap: 0 clamp(2rem, 5vw, 5rem); }
.termine__leer { font-size: clamp(1.3rem, 2.4vw, 1.9rem); font-weight: 300; line-height: 1.3; }
.termin {
	display: grid;
	grid-template-columns: 6.5rem minmax(0, 1fr);
	align-items: center;
	gap: 1.25rem;
	padding-block: 1rem;
	border-top: 1px solid var(--tinte);
}
.termin:first-child { border-top-width: 2px; }
.termin__tag { color: var(--rot); font: 600 1.25rem/1 var(--schmal); text-transform: uppercase; }
.termin__tag b { font-size: 3rem; font-weight: 800; }
.termin__name { font: 600 1.45rem/1.15 var(--schrift); }

@media (min-width: 56rem) {
	.termine { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
}

/* Mannschaften und Abteilungen: the whole club on a red field */

.abteilung { border-top: 1px solid var(--weiss); }
.abteilung:last-child { border-bottom: 1px solid var(--weiss); }
.abteilung__name {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.3em 0;
	font: 700 clamp(2.1rem, 5.6vw, 4.6rem)/1 var(--schmal);
	letter-spacing: 0.005em;
	text-decoration: none;
	text-transform: uppercase;
	transition: background-color 0.2s, color 0.2s;
}
.abteilung__name span { transition: transform 0.35s var(--zug); }
.abteilung__name .icon { width: 0.7em; height: 0.7em; }
.abteilung__name:hover,
.abteilung__name:focus-visible {
	background: var(--weiss);
	color: var(--rot);
}
.abteilung__name:hover span,
.abteilung__name:focus-visible span { transform: translateX(0.3em); }
.abteilung__name:hover .icon,
.abteilung__name:focus-visible .icon { transform: translateX(-0.4em); }
.abteilung__text {
	max-width: 58ch;
	padding-bottom: 1.1rem;
	font-size: 1.15rem;
	line-height: 1.45;
}
.abteilung__text li + li { margin-top: 0.15rem; }
.abteilung__text + .abteilung__unter { margin-top: -0.5rem; }
.abteilung__unter {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 1.5rem;
	padding-bottom: 1.1rem;
	font-size: 1.15rem;
	font-weight: 500;
}
.abteilung__unter a { display: inline-block; padding-block: 0.35rem; }
.abteilung__unter a:hover { text-decoration-thickness: 0.16em; }

/* Spielplan & Tabelle */

.spiele { display: grid; gap: 0 clamp(2rem, 5vw, 5rem); }
.spiele__inhalt { display: grid; gap: 2.5rem clamp(2rem, 4vw, 4rem); align-items: start; }
.wege > li { border-top: 1px solid currentColor; }
.wege > li:first-child { border-top-width: 2px; }
.wege > li:last-child { border-bottom: 1px solid currentColor; }
.wege .textlink {
	display: flex;
	justify-content: space-between;
	padding-block: 0.85rem;
	font-size: 1.2rem;
}

html:not(.js) .fbde { display: none; }
.fbde { max-width: 334px; border: 2px solid var(--tinte); padding: 1.5rem; }
.fbde__hinweis { margin-bottom: 1.25rem; }
.fbde.ist-geladen { padding: 0; }
.fbde iframe { display: block; width: 100%; border: 0; }

@media (min-width: 56rem) {
	.spiele { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
	.spiele__inhalt { grid-template-columns: minmax(0, 1fr) 334px; }
}

/* Sportgelände */

.gelaende { display: grid; border-top: 2px solid var(--tinte); }
.gelaende__bild img {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 16rem;
	max-height: 44rem;
	object-fit: cover;
}
.gelaende__text { padding: clamp(2.5rem, 6vw, 5.5rem) var(--rand); }
.gelaende__text .vorspann { margin-bottom: 2rem; }

@media (min-width: 56rem) {
	/* The club's photos are 800px wide; the image column never asks for more. */
	.gelaende { grid-template-columns: minmax(0, min(50%, 800px)) minmax(0, 1fr); }
	.gelaende__text { padding-right: max(var(--rand), (100vw - var(--breite)) / 2); }
}

/* Mitgliedschaft: the cover's label strip once more */

.mitglied { border-top: 2px solid var(--tinte); }
.mitglied__raster { display: grid; gap: 2.5rem clamp(2rem, 5vw, 5rem); align-items: center; }
.mitglied__titel { font-size: inherit; transform: rotate(var(--schraeg)); transform-origin: left center; }
.mitglied__titel .streifen { font-size: clamp(2.2rem, 6.4vw, 5rem); }

@media (min-width: 56rem) {
	.mitglied__raster { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
}

/* Sponsoren */

.sponsoren__kopf { display: grid; gap: 0 clamp(2rem, 5vw, 5rem); margin-bottom: 2.5rem; }
.logos {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr));
	gap: 1.75rem clamp(1.5rem, 4vw, 3rem);
	padding-block: 2rem;
	border-top: 2px solid var(--tinte);
	border-bottom: 1px solid var(--tinte);
}
.logos li { display: grid; place-items: center; aspect-ratio: 2 / 1; }
/* Without a known shape a logo fills its box. */
.logos img { display: block; width: 100%; height: 100%; object-fit: contain; }

@media (min-width: 56rem) {
	.sponsoren__kopf { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); align-items: end; }
	.sponsoren__kopf .rubrik { margin-bottom: 0; }
	.logos { grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); }
}

/* Sponsorenseite: a ruled row per sponsor on small screens, ruled columns on wide ones. */

.sponsorwand__ansage { margin-bottom: 1rem; font: 600 1.2rem/1.3 var(--schrift); }
.sponsorwand {
	display: grid;
	column-gap: clamp(1.5rem, 3vw, 3rem);
	border-top: 2px solid var(--tinte);
}
/* Every entry is closed by its own rule; the wall's closing rule runs through, also under an unfinished last row. */
.sponsorwand { border-bottom: 1px solid var(--tinte); }
.sponsor { margin-bottom: -1px; border-bottom: 1px solid var(--tinte); }
.sponsor__feld {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
	align-items: center;
	gap: 1.25rem;
	height: 100%;
	padding-block: 1.1rem;
	text-decoration: none;
}
/* Every logo gets the same space, whatever the shape of its file, and starts on the text's left edge. */
.sponsor__logo {
	display: block;
	position: relative;
	aspect-ratio: 2 / 1;
}
/* Taken out of the flow, so a tall file cannot stretch its space. */
.sponsor__logo img {
	position: absolute;
	inset: 0 auto 0 0;
	margin-block: auto;
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: left center;
}
/* Same printed area for every logo: a wide wordmark runs wider, a square mark stays lower. */
@supports (width: calc(sqrt(4) * 1px)) {
	.sponsor__logo[style] img,
	.logos li[style] img {
		--anteil: 42%;
		width: min(100%, sqrt(var(--form)) * var(--anteil));
		height: auto;
		max-height: 100%;
		aspect-ratio: var(--form);
	}
	.logos li[style] img { --anteil: 42%; }
}
.sponsor__text { display: flex; flex-direction: column; align-items: flex-start; }
/* A sponsor without a logo: the text takes the row on phones and keeps its line in the columns. */
.sponsor__logo--leer { display: none; }
.sponsor__logo--leer + .sponsor__text { grid-column: 1 / -1; }
.sponsor__name {
	font: 600 1.2rem/1.2 var(--schrift);
	letter-spacing: -0.01em;
	/* Only long compounds are hyphenated, never a place name such as "Rosenfeld". */
	hyphens: auto;
	hyphenate-limit-chars: 14 5 5;
	transition: color 0.2s;
}
.sponsor__ort { margin-top: 0.2rem; font-size: 1rem; line-height: 1.35; }
.sponsor__netz {
	max-width: 100%;
	margin-top: 0.5rem;
	color: var(--rot);
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.3;
	overflow-wrap: anywhere;
}
/* The arrow stays with the last letters of the address, also when the address breaks. */
.sponsor__netz .icon { width: 1em; height: 1em; margin-left: 0.35rem; vertical-align: -0.12em; transition: transform 0.3s var(--zug); }
a.sponsor__feld:hover .sponsor__name,
a.sponsor__feld:focus-visible .sponsor__name,
a.sponsor__feld:hover .sponsor__netz { color: var(--rot); }
a.sponsor__feld:hover .sponsor__netz,
a.sponsor__feld:focus-visible .sponsor__netz { text-decoration: underline; text-decoration-thickness: 0.12em; text-underline-offset: 0.18em; }
a.sponsor__feld:hover .icon,
a.sponsor__feld:focus-visible .icon { transform: translate(3px, -3px); }
.sponsorenseite__rest { margin-top: 2.5rem; }

.werben { display: grid; gap: 0 clamp(2rem, 5vw, 5rem); }
.werben__inhalt { display: grid; gap: 1.5rem; justify-items: start; }
.werben__text { font-size: clamp(1.15rem, 1.7vw, 1.4rem); line-height: 1.5; text-wrap: pretty; }
.werben .werben__text > * { max-width: 58ch; }
.werben__text a { white-space: nowrap; }
.werben .wege { width: 100%; max-width: 34rem; }
/* On red a text link cannot turn red; it is underlined instead. */
.rot .textlink:hover { color: inherit; text-decoration: underline; text-decoration-thickness: 0.12em; }

@media (min-width: 40rem) {
	.sponsorwand { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.sponsor__feld {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		gap: 0.75rem;
		padding-block: 1.25rem 1.5rem;
	}
	.sponsor__logo[style] img { --anteil: 40%; max-height: 90%; }
	.sponsor__logo--leer { display: block; }
	.sponsor__text { flex: 1; }
	.sponsor__netz { margin-top: auto; padding-top: 0.5rem; }
}

@media (min-width: 56rem) {
	.werben { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
}

@media (min-width: 54rem) {
	.sponsorwand { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 80rem) {
	.sponsorwand { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Footer */

/* The white rule only shows where the page itself ends on red. */
.fuss { padding-top: clamp(3rem, 6vw, 5rem); border-top: 1px solid var(--weiss); }
.fuss__raster { display: grid; gap: 2.5rem clamp(2rem, 5vw, 5rem); padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.fuss__name { margin-top: 1.25rem; font-size: 1.45rem; font-weight: 700; line-height: 1.2; }
.fuss__titel { margin-bottom: 0.5rem; font-size: 1.1rem; font-weight: 700; }
.fuss__spalte li a,
.fuss__marke p a {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding-block: 0.4rem;
}
.fuss a:hover { text-decoration-thickness: 0.16em; }
.fuss__zeile { padding-block: 1.25rem; border-top: 1px solid var(--weiss); font-size: 1rem; }

@media (min-width: 56rem) {
	.fuss__raster { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); }
}

/* Posts and pages */

/* Page opener: every inner page starts on a red field with its title at full size, like a section opener in the magazine. */
.seitenkopf {
	padding-block: clamp(2.25rem, 6vw, 5rem) clamp(1.75rem, 4.5vw, 3.5rem);
	border-top: 1px solid var(--weiss);
}
.seitenkopf .rubrik {
	margin-bottom: 0;
	font-size: clamp(2.5rem, 7.4vw, 6rem);
	/* Only a word too long for a phone line is divided, such as "Datenschutzerklärung". */
	hyphens: auto;
	hyphenate-limit-chars: 18 8 8;
}
.seitenkopf .datum { margin-bottom: 0.6rem; color: inherit; font-size: 1.15rem; }
.seitenkopf .sponsoren__kopf { row-gap: 1.25rem; margin-bottom: 0; }
@media (min-width: 56rem) {
	/* The title keeps its full width; the lead takes what is left. */
	.seitenkopf .sponsoren__kopf { grid-template-columns: max-content minmax(0, 1fr); }
}

/* On red, a button and a link in the text swap inks. */
.rot .knopf { border-color: var(--weiss); background: var(--weiss); color: var(--rot); }
.rot .knopf:hover { border-color: var(--tinte); background: var(--tinte); color: var(--weiss); }
.rot .inhalt a,
.rot .inhalt a:hover { color: inherit; }
.rot .inhalt a:hover { text-decoration-thickness: 0.16em; }

/* The text on the right, the section's other pages in the margin; on small screens they follow the text. */
.beitrag__raster { display: grid; gap: clamp(3rem, 8vw, 4.5rem) clamp(2rem, 5vw, 5rem); }
.beitrag__haupt { min-width: 0; }
.rand__titel { margin-bottom: 0.75rem; font-size: 1.2rem; font-weight: 700; line-height: 1.3; }
.rand__titel a { text-decoration: none; }
.rand__titel a:hover,
.rand [aria-current] { color: var(--rot); }
.rand__unter {
	display: flex;
	flex-wrap: wrap;
	gap: 0 1.25rem;
	padding-bottom: 0.6rem;
	font-size: 1.05rem;
	font-weight: 500;
}
.rand__unter a { display: inline-block; padding-block: 0.45rem; }
.rand__unter a:hover { color: var(--rot); }
.rand .meldung__titel { margin-bottom: 0; font-size: 1.2rem; }
.kommentare {
	margin-top: clamp(2.5rem, 6vw, 4rem);
	padding-top: 1.5rem;
	border-top: 2px solid var(--tinte);
}

@media (min-width: 56rem) {
	.beitrag__raster { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); align-items: start; }
	.beitrag__haupt { grid-area: 1 / 2; }
	.rand { grid-area: 1 / 1; }
}
@media (min-width: 56rem) and (min-height: 44rem) {
	.rand { position: sticky; top: 1.5rem; max-height: calc(100vh - 3rem); overflow-y: auto; }
}

/* Running text keeps its measure; tables and embeds may use the whole column. */
.inhalt > * { max-width: 68ch; }
.inhalt > table,
.inhalt > figure.wp-block-table,
.inhalt > .alignwide,
.inhalt > .fupa_widget { max-width: none; }
.inhalt > * + * { margin-top: 1.1em; }
.inhalt h2,
.inhalt h3,
.inhalt h4 { margin-top: 1.8em; line-height: 1.15; letter-spacing: -0.01em; }
.inhalt h2 { font-size: 1.9rem; }
.inhalt h3 { font-size: 1.45rem; }
.inhalt h4 { font-size: 1.2rem; }
.inhalt a { color: var(--rot); font-weight: 500; }
.inhalt a:hover { color: var(--tinte); }
.inhalt ul,
.inhalt ol { padding-left: 1.4em; }
.inhalt ul { list-style: square; }
.inhalt ol { list-style: decimal; }
.inhalt li::marker { color: var(--rot); }
.inhalt img { display: block; }
.inhalt img + img,
.inhalt img + br + img { margin-top: 0.75rem; }
.inhalt figcaption { margin-top: 0.5rem; font-size: 1rem; }
.inhalt blockquote { margin: 1.5em 0; padding-left: 1.25rem; font-size: 1.3rem; font-weight: 300; }
.inhalt hr { height: 0; margin: 2em 0; border: 0; border-top: 1px solid var(--tinte); }
.inhalt table { width: 100%; border-collapse: collapse; }
.inhalt th,
.inhalt td { padding: 0.6rem 0.75rem 0.6rem 0; border-bottom: 1px solid var(--tinte); text-align: left; vertical-align: top; }
.inhalt th { border-bottom-width: 2px; }
/* Long addresses break rather than push a table past its column. */
.inhalt td,
.inhalt th { overflow-wrap: anywhere; }
.inhalt figure.wp-block-table,
.inhalt pre { overflow-x: auto; }
.inhalt tr:first-child > * { border-top: 2px solid var(--tinte); }
.inhalt .alignleft { float: left; margin: 0.3em 1.5em 1em 0; }
.inhalt .alignright { float: right; margin: 0.3em 0 1em 1.5em; }
.inhalt .aligncenter { margin-inline: auto; }
.inhalt .wp-block-button.aligncenter { text-align: center; }
.inhalt figure.aligncenter img { margin-inline: auto; }
.inhalt iframe { max-width: 100%; }

/* A table has no room on a phone: every row becomes a short entry between rules. */
@media not all and (min-width: 48rem) {
	.inhalt table,
	.inhalt thead,
	.inhalt tbody,
	.inhalt tr,
	.inhalt th,
	.inhalt td { display: block; }
	.inhalt tr { padding-block: 0.9rem; border-bottom: 1px solid var(--tinte); }
	.inhalt tr:first-child { border-top: 2px solid var(--tinte); }
	.inhalt th,
	.inhalt td,
	.inhalt tr:first-child > * { padding: 0; border: 0; }
	.inhalt td:first-child { margin-bottom: 0.2rem; font-size: 1.2rem; font-weight: 600; line-height: 1.25; }
	.inhalt td:empty { display: none; }
	.inhalt td a { display: inline-block; padding-block: 0.3rem; }
}

/* Downloads: the file's name, then its button, never broken apart. */
.inhalt .wp-block-file { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1rem; }
.inhalt .wp-block-file > a:not(.wp-block-file__button) { min-width: 0; overflow-wrap: anywhere; }
.inhalt .wp-block-file__button { display: inline-flex; align-items: center; margin: 0; white-space: nowrap; }
.inhalt .wp-block-file__embed { flex-basis: 100%; width: 100%; }

.inhalt form p + p,
.inhalt form p + div,
.inhalt form div + p { margin-top: 1.1rem; }
/* The contact form sets each label and its field as separate paragraphs; they belong together. */
.inhalt .wpcf7 p:has(> .wpcf7-form-control-wrap > :is(input, textarea, select)) { margin-top: 0; }
.inhalt .comment-reply-title { font-size: 1.45rem; line-height: 1.15; letter-spacing: -0.01em; }
.inhalt input[type="checkbox"],
.inhalt input[type="radio"] {
	width: 1.25rem;
	height: 1.25rem;
	margin: 0 0.5rem 0 0;
	vertical-align: -0.2em;
	accent-color: var(--rot);
}
.inhalt input[type="checkbox"] + label,
.inhalt label:has(> input[type="checkbox"]) { display: inline; font-weight: 400; }
.inhalt .wpcf7-list-item { margin: 0; }
.inhalt textarea { display: block; }
.suche { margin-top: 1.5rem; }
.search-form { display: flex; gap: 0.5rem; max-width: 34rem; }
.search-form label { flex: 1; min-width: 0; }
.search-form .search-field { margin-top: 0; }
.inhalt label { display: block; font-weight: 600; }
.inhalt input:not([type="submit"], [type="checkbox"], [type="radio"]),
.inhalt textarea,
.inhalt select {
	width: 100%;
	margin-top: 0.3rem;
	padding: 0.65rem 0.8rem;
	border: 2px solid var(--tinte);
	border-radius: 0;
	background: var(--weiss);
	color: var(--tinte);
	font: inherit;
}
.inhalt input:focus-visible,
.inhalt textarea:focus-visible,
.inhalt select:focus-visible { outline-color: var(--rot); outline-offset: 0; }
.inhalt input[type="submit"],
.inhalt button,
.inhalt .wp-block-button__link,
.inhalt .wp-block-file__button {
	min-height: 2.75rem;
	padding: 0.65rem 1.1rem;
	border: 2px solid var(--rot);
	border-radius: 0;
	background: var(--rot);
	color: var(--weiss);
	font: 600 1.05rem/1.2 var(--schrift);
	text-decoration: none;
	cursor: pointer;
}
.inhalt input[type="submit"]:hover,
.inhalt button:hover,
.inhalt .wp-block-button__link:hover,
.inhalt .wp-block-file__button:hover { border-color: var(--tinte); background: var(--tinte); color: var(--weiss); }

.pagination { margin-top: 2.5rem; }
.nav-links { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 2.75rem;
	min-height: 2.75rem;
	padding: 0 0.75rem;
	border: 2px solid var(--tinte);
	font-weight: 600;
	text-decoration: none;
}
.page-numbers.current,
a.page-numbers:hover { border-color: var(--rot); background: var(--rot); color: var(--weiss); }
.page-numbers.dots { border-color: transparent; }

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after { transition-duration: 0.01ms !important; animation: none !important; }
}
