/*
Theme Name: Red Tigers
Theme URI: https://redtigers.at
Author: Red Tigers American Football
Author URI: https://redtigers.at
Description: Block-Theme für American-Football-Vereine. Bringt Spielplan, Kader und Sponsoren als eigene Inhaltstypen mit, erzeugt automatisch SportsTeam- und SportsEvent-Auszeichnung für Google und ist auf WCAG 2.1 AA sowie gute Core Web Vitals ausgelegt. Farben und Schriften folgen der Red-Tigers-CI.
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 7.4
Version: 2.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: red-tigers
Tags: block-theme, full-site-editing, sports, block-patterns, accessibility-ready, custom-colors
*/

/* =========================================================================
   Red Tigers — Stylesheet

   Farben, Schriftgrößen und Abstände kommen aus theme.json und stehen als
   CSS-Variablen zur Verfügung. Hier steht nur, was sich dort nicht
   ausdrücken lässt: Texturen, Winkel, Raster, Zustände, Bewegung.

   Aufbau
     1  Grundlagen und Zugänglichkeit
     2  Schrift-Hilfsklassen
     3  Buttons
     4  Kopfbereich und Ergebnisleiste
     5  Hero
     6  Gameday-Board
     7  Karten und Beitragsraster
     8  Spielplan
     9  Kader
    10  Erfolge
    11  Bänder und Zwischenrufe
    12  Sponsoren
    13  Fußbereich
    14  Einzelbeitrag
    15  Bewegung, Druck, Sonderfälle
   ========================================================================= */


/* == 1  Grundlagen und Zugänglichkeit ==================================== */

html { scroll-behavior: smooth; }

body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	overflow-x: clip;
}

/* Alle Ziffern laufen tabellarisch — Ergebnisse und Trikotnummern
   springen sonst beim Wechseln in der Breite. */
.rt-num,
.rt-board__time,
.rt-score,
.rt-fixture__score,
.rt-stat__value,
.rt-player__number,
.wp-block-post-date {
	font-variant-numeric: tabular-nums;
	font-feature-settings: "tnum" 1, "lnum" 1;
}

/* Sichtbarer Fokus. Gelb, weil es auf Rot, Schwarz und Weiß gleich gut sitzt. */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 3px solid var(--wp--preset--color--warning);
	outline-offset: 3px;
	border-radius: 2px;
}

/* Sprunglink */
.skip-link:focus,
.wp-block-site-title a.skip-link:focus {
	background: var(--wp--preset--color--warning);
	color: var(--wp--preset--color--ink);
}

/* Bilder verhalten sich vorhersehbar, damit CLS niedrig bleibt. */
img, svg, video { max-width: 100%; height: auto; }
img[width][height] { height: auto; }

/* Auswahlfarbe */
::selection { background: var(--wp--preset--color--primary); color: #fff; }

/* Nur für Screenreader */
.rt-sr {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
	white-space: nowrap; border: 0;
}


/* == 2  Schrift-Hilfsklassen ============================================= */

/* Label in Oswald — die Utility-Rolle der Headline-Schrift. */
.rt-eyebrow {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 14px;
	font-family: var(--wp--preset--font-family--headline);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 500;
	line-height: 1;
	text-transform: uppercase;
	letter-spacing: var(--wp--custom--tracking--wide);
	color: var(--wp--preset--color--dark-red);
}
.rt-eyebrow::before {
	content: "";
	flex: 0 0 auto;
	width: 22px; height: 3px;
	background: var(--wp--preset--color--primary);
}
.rt-eyebrow.has-primary-color,
.rt-on-dark .rt-eyebrow { color: var(--wp--preset--color--primary); }

/* Kleines Etikett, etwa „Ab 18 Jahren" auf Karten. */
.rt-tag {
	display: inline-block;
	margin: 0 0 6px;
	font-family: var(--wp--preset--font-family--headline);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: var(--wp--custom--tracking--label);
	color: var(--wp--preset--color--subtle-gray);
}
.rt-on-dark .rt-tag { color: var(--wp--preset--color--mid-gray); }
.rt-tag--live {
	background: var(--wp--preset--color--primary);
	color: #fff;
	padding: 3px 9px;
	border-radius: 2px;
}
.rt-tag--win  { background: var(--wp--preset--color--success); color: #0c2a13; padding: 3px 9px; border-radius: 2px; }
.rt-tag--loss { background: #4a4a4a; color: #ededed;            padding: 3px 9px; border-radius: 2px; }

/* Große Ziffer. Nur für Zahlen, nie für Fließtext — die CI-Typoskala
   für Text bleibt bei 36 px H1. */
.rt-num {
	font-family: var(--wp--preset--font-family--headline);
	font-weight: 700;
	font-size: var(--wp--preset--font-size--numeral);
	line-height: .85;
	letter-spacing: -0.02em;
}

/* Leitmotiv Yardlinien: senkrechte Hilfslinien wie das Feld von oben. */
.rt-yardlines { position: relative; overflow: hidden; }
.rt-yardlines > * { position: relative; z-index: 1; }
.rt-yardlines::before {
	content: "";
	position: absolute; inset: 0;
	background: repeating-linear-gradient(90deg,
		rgba(255,255,255,.06) 0 2px, transparent 2px 84px);
	pointer-events: none;
	z-index: 0;
}

/* Leitmotiv Trikotstreifen: gekippte rote Fläche. */
.rt-stripe::after {
	content: "";
	position: absolute;
	right: -10%; top: -35%;
	width: 44%; height: 180%;
	background: var(--wp--preset--gradient--stripe, linear-gradient(180deg,#f80000,#c40000));
	transform: rotate(12deg);
	opacity: .15;
	pointer-events: none;
	z-index: 0;
}
.rt-stripe--left::after { right: auto; left: -10%; top: auto; bottom: -70%; }


/* == 3  Buttons ========================================================== */

.wp-block-button__link {
	transition: transform .16s ease, background-color .16s ease, border-color .16s ease;
}
.wp-block-button__link:hover { transform: translateY(-2px); }
/* Hover geht bewusst ins Dunklere: Weiss auf #f80000 erreicht nur 4,2:1. */
.wp-block-button__link:hover,
.wp-block-button__link:focus { background-color: #a00000; }
.is-style-rt-ghost .wp-block-button__link:hover,
.is-style-rt-ghost .wp-block-button__link:focus { background-color: rgba(255,255,255,.1); }

/* Outline-Variante für dunkle Flächen. */
.is-style-rt-ghost > .wp-block-button__link,
.is-style-rt-ghost .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--white);
	border: 2px solid rgba(255,255,255,.45);
}
.is-style-rt-ghost > .wp-block-button__link:hover,
.is-style-rt-ghost .wp-block-button__link:hover {
	background: rgba(255,255,255,.1);
	border-color: var(--wp--preset--color--white);
	color: var(--wp--preset--color--white);
}

/* Textlink mit Pfeil, für Karten. */
.rt-more {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--wp--preset--font-family--headline);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .1em;
	text-decoration: none;
	color: var(--wp--preset--color--dark-red);
}
.rt-more::after { content: "→"; transition: transform .16s ease; }
.rt-more:hover { text-decoration: underline; text-underline-offset: 4px; }
.rt-more:hover::after { transform: translateX(4px); }


/* == 4  Kopfbereich und Ergebnisleiste =================================== */

.rt-header {
	position: sticky;
	top: 0;
	z-index: 60;
	border-bottom: var(--wp--custom--rule) solid var(--wp--preset--color--primary);
	backdrop-filter: saturate(140%) blur(6px);
}
.admin-bar .rt-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .rt-header { top: 46px; } }

.rt-header .wp-block-site-title a { text-decoration: none; }
.rt-header .wp-block-site-title a:hover { color: var(--wp--preset--color--primary); }

.rt-header .wp-block-navigation-item__content {
	padding-bottom: 5px;
	border-bottom: 2px solid transparent;
	text-decoration: none;
}
.rt-header .wp-block-navigation-item__content:hover,
.rt-header .current-menu-item > .wp-block-navigation-item__content {
	border-bottom-color: var(--wp--preset--color--primary);
}
.rt-header .wp-block-navigation__submenu-container {
	border: 0;
	border-top: 3px solid var(--wp--preset--color--primary);
	box-shadow: var(--wp--preset--shadow--lift);
	background: var(--wp--preset--color--black);
	padding: 8px 0;
	min-width: 240px;
}
.rt-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	padding: 10px 20px;
	border-bottom: 0;
	border-left: 3px solid transparent;
	width: 100%;
}
.rt-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover {
	border-left-color: var(--wp--preset--color--primary);
	background: rgba(255,255,255,.06);
}

/* Ergebnisleiste — schmaler Streifen mit den letzten Resultaten,
   waagrecht scrollbar statt Laufschrift (ruhiger, INP-freundlich,
   und mit Tastatur bedienbar). */
.rt-results {
	background: var(--wp--preset--color--ink);
	border-bottom: 1px solid #2a2a2a;
	overflow-x: auto;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}
.rt-results::-webkit-scrollbar { display: none; }
.rt-results__inner {
	display: flex;
	align-items: center;
	gap: 0;
	min-height: 42px;
	width: max-content;
	min-width: 100%;
	padding-inline: 24px;
	margin-inline: auto;
	max-width: 1240px;
}
.rt-results__label {
	flex: 0 0 auto;
	font-family: var(--wp--preset--font-family--headline);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: var(--wp--custom--tracking--label);
	color: var(--wp--preset--color--primary);
	padding-right: 20px;
}
.rt-result {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 0 20px;
	border-left: 1px solid #2a2a2a;
	font-family: var(--wp--preset--font-family--headline);
	font-size: var(--wp--preset--font-size--x-small);
	text-transform: uppercase;
	letter-spacing: .06em;
	color: #b9b9b9;
	text-decoration: none;
	white-space: nowrap;
	line-height: 42px;
}
.rt-result:hover { color: #fff; background: rgba(255,255,255,.05); }
.rt-result__score { color: #fff; font-weight: 700; font-size: 15px; letter-spacing: 0; }
.rt-result__dot { width: 7px; height: 7px; border-radius: 50%; flex: 0 0 auto; }
.rt-result__dot--win  { background: var(--wp--preset--color--success); }
.rt-result__dot--loss { background: #6a6a6a; }
.rt-result__dot--next { background: var(--wp--preset--color--primary); }


/* == 5  Hero ============================================================= */

.rt-hero {
	position: relative;
	isolation: isolate;
	background-color: var(--wp--preset--color--ink);
	color: #fff;
	overflow: hidden;
}
.rt-hero > .wp-block-cover__background,
.rt-hero > .wp-block-cover__image-background { z-index: 0; }
.rt-hero .wp-block-cover__inner-container { position: relative; z-index: 2; }

/* Yardlinien über dem Bild, unter dem Text. */
.rt-hero::before {
	content: "";
	position: absolute; inset: 0; z-index: 1;
	background: repeating-linear-gradient(90deg,
		rgba(255,255,255,.055) 0 2px, transparent 2px 84px);
	pointer-events: none;
}

.rt-hero h1,
.rt-hero .wp-block-post-title {
	color: #fff;
	max-width: 17ch;
	margin-block: 0 16px;
	text-wrap: balance;
}
.rt-hero__lede {
	color: #d8d8d8;
	max-width: 54ch;
	font-size: 17px;
}

/* Ohne Bild: dunkler Verlauf plus Trikotstreifen. */
.rt-hero--flat { position: relative; }
.rt-hero--flat::after {
	content: "";
	position: absolute;
	right: -10%; top: -35%;
	width: 44%; height: 180%;
	background: linear-gradient(180deg, #f80000, #c40000);
	transform: rotate(12deg);
	opacity: .15;
	pointer-events: none;
	z-index: 0;
}


/* == 6  Gameday-Board ==================================================== */

/* Das Signature-Element: die Anzeigetafel, die über die Kante
   der Herosektion nach unten hinausragt. */
.rt-board {
	position: relative;
	z-index: 3;
	background: linear-gradient(180deg, #333333 0%, #262626 100%);
	border-top: 4px solid var(--wp--preset--color--primary);
	box-shadow: var(--wp--preset--shadow--board);
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 24px;
	padding: 30px 34px;
	max-width: 1240px;
	margin-inline: auto;
}
.rt-board--overlap { margin-bottom: -72px; }

.rt-board__team {
	display: flex;
	align-items: center;
	gap: 18px;
	min-width: 0;
}
.rt-board__team--away { flex-direction: row-reverse; text-align: right; }

.rt-board__crest {
	flex: 0 0 auto;
	width: 62px; height: 62px;
	display: grid; place-items: center;
	border-radius: 3px;
	background: var(--wp--preset--color--primary);
	color: #fff;
	font-family: var(--wp--preset--font-family--headline);
	font-weight: 700;
	font-size: 23px;
	letter-spacing: .02em;
	overflow: hidden;
}
.rt-board__crest img { width: 100%; height: 100%; object-fit: contain; }
.rt-board__crest--opp { background: #4a4a4a; color: #e2e2e2; }

.rt-board__name {
	margin: 0;
	font-family: var(--wp--preset--font-family--headline);
	font-weight: 700;
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.08;
	text-transform: uppercase;
	color: #fff;
}
/* #999 auf dem Board-Verlauf (#333) ergibt nur 4,43:1 — knapp unter AA.
   Deshalb hier ein Ton heller. */
.rt-board__meta {
	margin: 2px 0 0;
	font-size: var(--wp--preset--font-size--small);
	color: #b0b0b0;
}

.rt-board__kick { text-align: center; padding-inline: 10px; }
.rt-board__day {
	margin: 0;
	font-family: var(--wp--preset--font-family--headline);
	font-weight: 500;
	font-size: var(--wp--preset--font-size--x-small);
	text-transform: uppercase;
	letter-spacing: var(--wp--custom--tracking--label);
	color: var(--wp--preset--color--primary);
}
.rt-board__time {
	margin: 4px 0 2px;
	font-family: var(--wp--preset--font-family--headline);
	font-weight: 700;
	font-size: 44px;
	line-height: 1;
	color: #fff;
}
.rt-board__where { margin: 0; font-size: 13px; color: #b0b0b0; }

.rt-board__actions {
	grid-column: 1 / -1;
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	padding-top: 24px;
	margin-top: 4px;
	border-top: 1px solid rgba(255,255,255,.1);
}

@media (max-width: 860px) {
	.rt-board { grid-template-columns: 1fr; text-align: center; padding: 26px 22px; gap: 18px; }
	.rt-board__team,
	.rt-board__team--away { flex-direction: column; text-align: center; gap: 10px; }
	.rt-board__kick { order: -1; }
	.rt-board__actions { justify-content: center; }
	.rt-board--overlap { margin-bottom: -56px; }
}


/* == 7  Karten und Beitragsraster ======================================== */

.rt-card,
.rt-cards .wp-block-post {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 10px;
	height: 100%;
	padding: 30px;
	background: var(--wp--preset--color--white);
	border-top: 4px solid var(--wp--preset--color--primary);
	box-shadow: var(--wp--preset--shadow--card);
	transition: transform .18s ease, box-shadow .18s ease;
}
.rt-card:hover,
.rt-cards .wp-block-post:hover {
	transform: translateY(-4px);
	box-shadow: var(--wp--preset--shadow--lift);
}
.rt-card > :last-child { margin-top: auto; }

/* Bild bündig an die Kartenkante ziehen. */
.rt-card__media,
.rt-cards .wp-block-post-featured-image {
	margin: -30px -30px 16px;
	overflow: hidden;
	background: var(--wp--preset--color--black);
}
.rt-card__media img,
.rt-cards .wp-block-post-featured-image img {
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	transition: transform .4s ease;
}
.rt-card:hover .rt-card__media img,
.rt-cards .wp-block-post:hover .wp-block-post-featured-image img { transform: scale(1.04); }

.rt-cards .wp-block-post-title {
	margin: 0 0 6px;
	font-size: var(--wp--preset--font-size--large);
	text-wrap: balance;
}
.rt-cards .wp-block-post-title a { text-decoration: none; color: inherit; }
.rt-cards .wp-block-post-title a:hover { color: var(--wp--preset--color--dark-red); }
.rt-cards .wp-block-post-excerpt__excerpt { color: #5a5a5a; margin: 0; }
.rt-cards .wp-block-post-excerpt__more-link {
	font-family: var(--wp--preset--font-family--headline);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .1em;
	text-decoration: none;
}
.rt-cards .wp-block-post-excerpt__more-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Karte auf dunklem Grund. */
.rt-card--dark {
	background: #242424;
	color: #d8d8d8;
	box-shadow: none;
}
.rt-card--dark .wp-block-heading,
.rt-card--dark h3 { color: #fff; }


/* == 8  Spielplan ======================================================== */

.rt-fixtures { display: flex; flex-direction: column; }

.rt-fixture {
	display: grid;
	grid-template-columns: 128px 1fr auto auto;
	align-items: center;
	gap: 20px;
	padding: 18px 20px;
	border-bottom: 1px solid #e4e4e4;
	background: var(--wp--preset--color--white);
	text-decoration: none;
	color: inherit;
	transition: background-color .15s ease, box-shadow .15s ease;
	border-left: 3px solid transparent;
}
.rt-fixture:first-child { border-top: 1px solid #e4e4e4; }
.rt-fixture:hover { background: var(--wp--preset--color--light-gray); border-left-color: var(--wp--preset--color--primary); }
.rt-fixture--next { background: var(--wp--preset--color--light-gray); border-left-color: var(--wp--preset--color--primary); }

.rt-fixture__date {
	font-family: var(--wp--preset--font-family--headline);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: var(--wp--custom--tracking--label);
	color: var(--wp--preset--color--dark-red);
	line-height: 1.5;
}
.rt-fixture__match {
	font-family: var(--wp--preset--font-family--headline);
	font-size: 18px;
	font-weight: 600;
	text-transform: uppercase;
	line-height: 1.2;
	min-width: 0;
}
.rt-fixture__venue {
	display: block;
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 400;
	text-transform: none;
	letter-spacing: 0;
	color: var(--wp--preset--color--subtle-gray);
	margin-top: 3px;
}
.rt-fixture__score {
	font-family: var(--wp--preset--font-family--headline);
	font-size: 24px;
	font-weight: 700;
	color: var(--wp--preset--color--black);
	white-space: nowrap;
}
.rt-fixture__cta {
	font-family: var(--wp--preset--font-family--headline);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .1em;
	color: var(--wp--preset--color--dark-red);
	white-space: nowrap;
}
@media (max-width: 700px) {
	.rt-fixture { grid-template-columns: 1fr auto; gap: 8px 14px; padding: 16px; }
	.rt-fixture__date { grid-column: 1 / -1; }
	.rt-fixture__cta  { grid-column: 1 / -1; }
}


/* == 9  Kader ============================================================ */

.rt-roster {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
	gap: 20px;
}
.rt-player {
	position: relative;
	overflow: hidden;
	background: var(--wp--preset--color--black);
	color: #fff;
	text-decoration: none;
	display: block;
	isolation: isolate;
}
.rt-player__photo {
	display: block;
	width: 100%;
	aspect-ratio: 3 / 4;
	object-fit: cover;
	filter: grayscale(1) contrast(1.06);
	transition: filter .3s ease, transform .5s ease;
}
.rt-player:hover .rt-player__photo { filter: none; transform: scale(1.03); }

/* Trikotnummer als Geisterziffer hinter dem Bild — das eine
   Detail, an das man sich beim Kader erinnert. */
.rt-player__number {
	position: absolute;
	right: -8px; bottom: 44px;
	z-index: 2;
	font-family: var(--wp--preset--font-family--headline);
	font-weight: 700;
	font-size: 96px;
	line-height: .8;
	color: rgba(255,255,255,.14);
	pointer-events: none;
	transition: color .3s ease;
}
.rt-player:hover .rt-player__number { color: rgba(248,0,0,.55); }

.rt-player__info {
	position: absolute;
	inset: auto 0 0 0;
	z-index: 3;
	padding: 16px;
	background: linear-gradient(180deg, rgba(16,16,16,0) 0%, rgba(16,16,16,.96) 58%);
}
.rt-player__name {
	margin: 0;
	font-family: var(--wp--preset--font-family--headline);
	font-weight: 600;
	font-size: 18px;
	text-transform: uppercase;
	line-height: 1.15;
}
.rt-player__pos {
	margin: 2px 0 0;
	font-family: var(--wp--preset--font-family--headline);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: var(--wp--custom--tracking--label);
	color: var(--wp--preset--color--primary);
}


/* == 10  Erfolge ========================================================= */

.rt-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 2px;
	background: rgba(255,255,255,.12);
	border-top: 4px solid var(--wp--preset--color--primary);
}
.rt-stat {
	background: var(--wp--preset--color--ink);
	padding: 32px 26px;
	text-align: center;
}
.rt-stat__value {
	display: block;
	font-family: var(--wp--preset--font-family--headline);
	font-weight: 700;
	font-size: clamp(40px, 6vw, 62px);
	line-height: .9;
	color: #fff;
}
.rt-stat__label {
	display: block;
	margin-top: 10px;
	font-family: var(--wp--preset--font-family--headline);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: var(--wp--custom--tracking--label);
	color: var(--wp--preset--color--primary);
}
.rt-stat__years {
	display: block;
	margin-top: 6px;
	font-size: 13px;
	color: var(--wp--preset--color--mid-gray);
}


/* == 11  Bänder und Zwischenrufe ========================================= */

.rt-band { position: relative; overflow: hidden; isolation: isolate; }
.rt-band > * { position: relative; z-index: 1; }
.rt-band::after {
	content: "";
	position: absolute;
	left: -8%; bottom: -70%;
	width: 40%; height: 190%;
	background: var(--wp--preset--color--primary);
	transform: rotate(12deg);
	opacity: .17;
	pointer-events: none;
	z-index: 0;
}

/* Trainingszeiten */
.rt-times { border-left: 3px solid var(--wp--preset--color--primary); padding-left: 22px; }
.rt-times p { margin: 0; }
.rt-times__label {
	margin-top: 14px !important;
	font-family: var(--wp--preset--font-family--headline);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: var(--wp--custom--tracking--label);
	color: var(--wp--preset--color--primary);
}
.rt-times > .rt-times__label:first-child { margin-top: 0 !important; }

/* Zitat aus dem Verein, groß gesetzt */
.rt-shout {
	font-family: var(--wp--preset--font-family--headline);
	font-weight: 600;
	font-size: clamp(24px, 3.4vw, 34px);
	line-height: 1.2;
	text-transform: uppercase;
	text-wrap: balance;
	margin: 0;
}
.rt-shout__by {
	display: block;
	margin-top: 14px;
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 400;
	text-transform: none;
	color: var(--wp--preset--color--subtle-gray);
}
.rt-on-dark .rt-shout__by { color: #b0b0b0; }


/* == 12  Sponsoren ======================================================= */

.rt-sponsor-lead {
	display: grid;
	place-items: center;
	background: var(--wp--preset--color--white);
	border: 1px solid #e4e4e4;
	border-top: 4px solid var(--wp--preset--color--primary);
	padding: 40px;
	min-height: 180px;
}
.rt-sponsor-lead img { max-height: 96px; width: auto; }

.rt-sponsors {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 14px;
}
@media (max-width: 900px) { .rt-sponsors { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .rt-sponsors { grid-template-columns: repeat(2, 1fr); } }

.rt-sponsors a,
.rt-sponsors .wp-block-image,
.rt-sponsors figure {
	display: grid;
	place-items: center;
	margin: 0;
	padding: 14px;
	aspect-ratio: 3 / 2;
	background: var(--wp--preset--color--white);
	border: 1px solid #e4e4e4;
}
.rt-sponsors img {
	max-height: 100%;
	width: auto;
	object-fit: contain;
	filter: grayscale(1);
	opacity: .72;
	transition: filter .2s ease, opacity .2s ease;
}
.rt-sponsors a:hover img,
.rt-sponsors figure:hover img { filter: none; opacity: 1; }


/* == 13  Fußbereich ====================================================== */

.rt-footer { border-top: var(--wp--custom--rule) solid var(--wp--preset--color--primary); }
.rt-footer .wp-block-heading {
	font-family: var(--wp--preset--font-family--headline);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 500;
	letter-spacing: var(--wp--custom--tracking--label);
	color: #fff;
	margin-bottom: 14px;
}
.rt-footer a { color: #c9c9c9; text-decoration: none; }
.rt-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.rt-footer .wp-block-list { list-style: none; padding: 0; margin: 0; line-height: 2.1; }
.rt-footer .wp-block-social-links .wp-social-link { transition: transform .15s ease; }
.rt-footer .wp-block-social-links .wp-social-link:hover { transform: translateY(-2px); }

.rt-legal {
	border-top: 1px solid #2c2c2c;
	font-size: 13px;
	color: var(--wp--preset--color--mid-gray);
}
.rt-legal p { margin: 0; }

/* Verbands- und Partnerlogos im Fuß */
.rt-affil { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }
.rt-affil img { max-height: 44px; width: auto; opacity: .7; filter: grayscale(1) brightness(2.2); }
.rt-affil a:hover img { opacity: 1; }


/* == 14  Einzelbeitrag =================================================== */

.rt-article .wp-block-post-content > * { margin-block: 1.35em; }
.rt-article .wp-block-post-content > h2 { margin-block: 1.8em .6em; }
.rt-article .wp-block-post-content > h3 { margin-block: 1.6em .5em; }
.rt-article .wp-block-post-content p { max-width: 68ch; }

.rt-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 16px;
	font-family: var(--wp--preset--font-family--headline);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: var(--wp--custom--tracking--label);
	color: var(--wp--preset--color--subtle-gray);
}
/* Auf dunklem Grund muss der Subtext heller werden. theme.json setzt die
   Farbe direkt auf .wp-block-post-date, deshalb hier ausdruecklich
   nachziehen statt auf Vererbung zu hoffen. */
.rt-on-dark .rt-meta,
.rt-on-dark .rt-meta a,
.rt-on-dark .rt-meta .wp-block-post-date,
.rt-on-dark .rt-meta .wp-block-post-terms,
.rt-on-dark .rt-meta .wp-block-post-terms a,
.rt-hero .rt-meta,
.rt-hero .rt-meta a,
.rt-hero .rt-meta .wp-block-post-date { color: #c4c4c4; }
.rt-meta a { color: inherit; }

/* Brotkrumen */
.rt-crumbs {
	font-family: var(--wp--preset--font-family--headline);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: var(--wp--custom--tracking--label);
	color: var(--wp--preset--color--subtle-gray);
	margin-bottom: 18px;
}
.rt-crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.rt-crumbs li::after { content: "›"; margin-left: 8px; opacity: .6; }
.rt-crumbs li:last-child::after { content: ""; margin: 0; }
.rt-crumbs a { color: inherit; text-decoration: none; }
.rt-crumbs a:hover { color: var(--wp--preset--color--dark-red); text-decoration: underline; }
.rt-on-dark .rt-crumbs,
.rt-on-dark .rt-crumbs a { color: #b0b0b0; }
.rt-on-dark .rt-crumbs a:hover { color: #fff; }

/* Seitennummerierung */
.wp-block-query-pagination {
	font-family: var(--wp--preset--font-family--headline);
	text-transform: uppercase;
	letter-spacing: .1em;
	font-size: var(--wp--preset--font-size--small);
}
.wp-block-query-pagination a { text-decoration: none; }
.wp-block-query-pagination .page-numbers {
	padding: 8px 12px;
	border-bottom: 2px solid transparent;
}
.wp-block-query-pagination .page-numbers.current { border-bottom-color: var(--wp--preset--color--primary); font-weight: 700; }


/* == 15  Bewegung, Druck, Sonderfälle ==================================== */

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after {
		animation-duration: .001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .001ms !important;
	}
	.rt-card:hover,
	.rt-cards .wp-block-post:hover,
	.wp-block-button__link:hover,
	.rt-player:hover .rt-player__photo { transform: none; }
}

/* Höherer Kontrast, wenn das System danach fragt */
@media (prefers-contrast: more) {
	.rt-board__meta,
	.rt-board__where,
	.rt-fixture__venue,
	.rt-stat__years { color: #d0d0d0; }
	.rt-sponsors img { filter: none; opacity: 1; }
}

@media print {
	.rt-header, .rt-results, .rt-band, .rt-footer, .wp-block-buttons { display: none !important; }
	.rt-hero { background: none !important; color: #000 !important; }
	.rt-hero h1 { color: #000 !important; }
	a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 11px; }
}
