/* ==========================================================================
   PCTL Spielbericht (spielbericht.php).

   Banner-Look: Kopfkarte __held (Stadionbild unter Navy-Verlauf, Wappen auf
   heller Unterlage, Endstand in Oswald) und die Reiterleiste sind wie Menü
   und Banner immer dunkel und werden gegen stylev3.css abgeschirmt. Die
   Inhalte nutzen .pctl-karte aus karte.css und folgen dem Theme über die
   --k-*-Tokens.

   Heim steht links, Gast rechts: Statistikbalken, Torliste und Spielverlauf
   übernehmen diese Seiten. Unter 992px stehen die Karten untereinander, unter
   576px werden Kopfkarte und Verlauf kompakter.
   Verhalten (Reiter per #Anker) in templates/js/spielbericht.js.

   Alles hängt unter .pctl-spielbericht.
   ========================================================================== */

/* --- Tokens --- */

.pctl-spielbericht {
	--sb-deep: #05090f;
	--sb-accent: #4da3ff;
	--sb-soft: #8fc2ff;
	--sb-text: #e8f0fb;
	--sb-muted: #8ea6c4;
	--sb-line: rgba(93, 160, 233, 0.22);
	--sb-font: "Oswald", "Arial Narrow", Arial, sans-serif;

	/* Seitenfarben im Inhalt: Heim blau, Gast grau-blau */
	--sb-heim: #2f7fe0;
	--sb-gast: #9aabc0;
	--sb-gelb: #f2c230;
	--sb-rot: #d8383f;
	--sb-gold: #d9a520;
	--sb-gut: #1f8a4c;
	--sb-mittel: #d98a12;
	--sb-schlecht: #c8383f;

	padding: 0 5px;
}

html[data-user-theme='dark'] .pctl-spielbericht {
	--sb-heim: #4da3ff;
	--sb-gast: #6d8099;
	--sb-gut: #6fdc9c;
	--sb-mittel: #f2b04b;
	--sb-schlecht: #ff7a7f;
}

.pctl-spielbericht :focus-visible {
	outline: 2px solid var(--sb-accent);
	outline-offset: 2px;
}

/* --- Kopfkarte (immer dunkel) --- */

.pctl-spielbericht__held {
	position: relative;
	margin: 0 0 14px;
	padding: 20px 24px 18px;
	overflow: hidden;
	color: var(--sb-text);
	text-align: center;
	background:
		radial-gradient(ellipse 60% 120% at 50% 0%, rgba(77, 163, 255, 0.2) 0%, transparent 60%),
		linear-gradient(180deg, rgba(16, 32, 58, 0.97) 0%, rgba(6, 13, 26, 0.98) 100%);
	border: 1px solid var(--sb-line);
	border-radius: 14px;
	box-shadow: 0 18px 40px rgba(5, 9, 15, 0.28);
	isolation: isolate;
}

.pctl-spielbericht__held::before {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	z-index: 2;
	height: 2px;
	background: linear-gradient(90deg, transparent, var(--sb-accent), transparent);
}

/* Stadionbild liegt unter einem Navy-Schleier, damit Schrift lesbar bleibt */
.pctl-spielbericht__held--bild {
	background: var(--sb-deep);
}

.pctl-spielbericht__held--bild::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		radial-gradient(ellipse 60% 120% at 50% 0%, rgba(77, 163, 255, 0.18) 0%, transparent 60%),
		linear-gradient(180deg, rgba(10, 20, 36, 0.78) 0%, rgba(5, 9, 15, 0.93) 100%);
}

html[data-user-theme] .pctl-spielbericht img.pctl-spielbericht__stadionbild {
	position: absolute;
	inset: 0;
	z-index: -2;
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: saturate(0.7);
}

.pctl-spielbericht .pctl-spielbericht__oberzeile {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 4px 18px;
	margin: 0 0 16px;
	color: var(--sb-soft);
	font-family: var(--sb-font);
	font-size: 12.5px;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.pctl-spielbericht__oberzeile .fas {
	color: var(--sb-accent);
}

.pctl-spielbericht__duell {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
	gap: 18px;
	align-items: center;
}

.pctl-spielbericht__seite {
	display: flex;
	align-items: center;
	gap: 16px;
	min-width: 0;
}

.pctl-spielbericht__seite--heim {
	flex-direction: row-reverse;
	text-align: right;
}

.pctl-spielbericht__seite--gast {
	text-align: left;
}

.pctl-spielbericht__wappen {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 84px;
	height: 84px;
	background: rgba(236, 244, 255, 0.92);
	border-radius: 14px;
	box-shadow: 0 0 0 1px var(--sb-line), 0 0 24px rgba(77, 163, 255, 0.22);
}

.pctl-spielbericht__seite.is-sieger .pctl-spielbericht__wappen {
	box-shadow: 0 0 0 2px var(--sb-accent), 0 0 30px rgba(77, 163, 255, 0.45);
}

html[data-user-theme] .pctl-spielbericht .pctl-spielbericht__wappen img {
	width: 68px;
	height: 68px;
	object-fit: contain;
	filter: none;
}

.pctl-spielbericht__namen {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

html[data-user-theme] .pctl-spielbericht a.pctl-spielbericht__team {
	overflow-wrap: anywhere;
	color: var(--sb-text);
	font-family: var(--sb-font);
	font-size: 24px;
	font-weight: 600;
	line-height: 1.1;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	text-decoration: none;
}

html[data-user-theme] .pctl-spielbericht a.pctl-spielbericht__trainer {
	color: var(--sb-muted);
	font-size: 14px;
	text-decoration: none;
}

html[data-user-theme] .pctl-spielbericht a.pctl-spielbericht__team:hover,
html[data-user-theme] .pctl-spielbericht a.pctl-spielbericht__trainer:hover {
	color: var(--sb-soft);
}

.pctl-spielbericht__trainer .fas {
	margin-right: 4px;
	color: var(--sb-accent);
	font-size: 12px;
}

.pctl-spielbericht__endstand {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 6px 20px;
	color: var(--sb-text);
	font-family: var(--sb-font);
	font-size: 54px;
	font-weight: 600;
	line-height: 1;
	font-variant-numeric: tabular-nums;
	background: rgba(5, 9, 15, 0.55);
	border: 1px solid var(--sb-line);
	border-radius: 14px;
	text-shadow: 0 0 22px rgba(77, 163, 255, 0.45);
}

.pctl-spielbericht__trenner {
	color: var(--sb-accent);
	font-size: 0.75em;
}

/* --- Torschützen in der Kopfkarte (wie TV-Einblendung) --- */

.pctl-spielbericht__torschuetzen {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
	gap: 18px;
	align-items: start;
	margin-top: 14px;
}

.pctl-spielbericht__torsymbol {
	padding-top: 3px;
	color: var(--sb-accent);
	font-size: 13px;
}

.pctl-spielbericht__schuetzen {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin: 0;
	padding: 0;
	color: var(--sb-muted);
	font-size: 13px;
	line-height: 1.4;
	list-style: none;
}

.pctl-spielbericht__schuetzen--heim {
	text-align: right;
}

.pctl-spielbericht__schuetzen--gast {
	text-align: left;
}

html[data-user-theme] .pctl-spielbericht .pctl-spielbericht__schuetzen a {
	color: var(--sb-text);
	text-decoration: none;
}

html[data-user-theme] .pctl-spielbericht .pctl-spielbericht__schuetzen a:hover {
	color: var(--sb-soft);
}

.pctl-spielbericht__schuetzen span {
	margin-left: 6px;
	font-variant-numeric: tabular-nums;
}

.pctl-spielbericht__eckdaten {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px 24px;
	margin: 18px 0 0;
	padding: 14px 0 0;
	color: var(--sb-muted);
	font-size: 14px;
	list-style: none;
	border-top: 1px solid var(--sb-line);
}

.pctl-spielbericht__eckdaten .fas,
.pctl-spielbericht__eckdaten .far {
	margin-right: 6px;
	color: var(--sb-accent);
}

/* --- Reiter (immer dunkel, wie Kader) --- */

.pctl-spielbericht .pctl-spielbericht__reiter {
	display: flex;
	flex-wrap: nowrap;
	gap: 4px;
	margin: 0 0 18px;
	padding: 5px;
	overflow-x: auto;
	background: linear-gradient(180deg, rgba(16, 32, 58, 0.97) 0%, rgba(6, 13, 26, 0.98) 100%);
	border: 1px solid var(--sb-line);
	border-radius: 12px;
	scrollbar-width: none;
	scroll-snap-type: x proximity;
}

.pctl-spielbericht .pctl-spielbericht__reiter::-webkit-scrollbar {
	display: none;
}

html[data-user-theme] .pctl-spielbericht .pctl-spielbericht__reiterknopf {
	display: inline-flex;
	flex: 1 0 auto;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 14px;
	color: var(--sb-muted);
	font-family: var(--sb-font);
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
	background: transparent;
	border: 1px solid transparent;
	border-radius: 9px;
	scroll-snap-align: start;
	transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

html[data-user-theme] .pctl-spielbericht .pctl-spielbericht__reiterknopf:hover,
html[data-user-theme] .pctl-spielbericht .pctl-spielbericht__reiterknopf:focus-visible {
	color: var(--sb-text);
	background: rgba(77, 163, 255, 0.08);
}

html[data-user-theme] .pctl-spielbericht .pctl-spielbericht__reiterknopf.active {
	color: var(--sb-text);
	background: rgba(77, 163, 255, 0.16);
	border-color: rgba(77, 163, 255, 0.45);
	box-shadow: inset 0 -2px 0 var(--sb-accent), 0 0 18px rgba(77, 163, 255, 0.18);
}

.pctl-spielbericht__reiterknopf .fas {
	font-size: 12px;
}

.pctl-spielbericht__reiterknopf.active .fas {
	color: var(--sb-accent);
}

.pctl-spielbericht__reiterzahl {
	min-width: 20px;
	padding: 1px 6px;
	color: var(--sb-text);
	font-size: 11px;
	line-height: 16px;
	text-align: center;
	background: rgba(77, 163, 255, 0.22);
	border-radius: 10px;
}

/* --- Am Zug (immer dunkel, Warnkante) --- */

.pctl-spielbericht__amzug {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 14px;
	align-items: center;
	margin: 0 0 14px;
	padding: 12px 16px;
	color: var(--sb-text);
	background: linear-gradient(180deg, rgba(16, 32, 58, 0.97) 0%, rgba(6, 13, 26, 0.98) 100%);
	border: 1px solid rgba(242, 165, 43, 0.45);
	border-left: 4px solid #f2a52b;
	border-radius: 12px;
}

.pctl-spielbericht__amzug > .fas {
	color: #f2a52b;
	font-size: 18px;
}

.pctl-spielbericht .pctl-spielbericht__amzug p {
	flex: 1 1 260px;
	margin: 0;
	font-size: 14px;
}

.pctl-spielbericht__amzug b {
	color: #ffd08a;
}

.pctl-spielbericht__amzugknoepfe {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

html[data-user-theme] .pctl-spielbericht a.pctl-spielbericht__amzugknopf {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	min-height: 40px;
	padding: 0 14px;
	color: #ffffff;
	font-family: var(--sb-font);
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	text-decoration: none;
	background: linear-gradient(180deg, #4da3ff 0%, #2f7fe0 55%, #1d5fb4 100%);
	border-radius: 10px;
	box-shadow: 0 4px 14px rgba(47, 127, 224, 0.35);
	transition: transform 0.15s ease;
}

html[data-user-theme] .pctl-spielbericht a.pctl-spielbericht__amzugknopf:hover {
	transform: translateY(-1px);
}

.pctl-spielbericht__offen {
	padding: 1px 7px;
	color: #1a1205;
	font-size: 10.5px;
	line-height: 16px;
	letter-spacing: 0.08em;
	background: #f2a52b;
	border-radius: 10px;
}

/* --- Raster --- */

.pctl-spielbericht__raster {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 20px;
	align-items: start;
}

.pctl-spielbericht__raster--drei {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pctl-spielbericht__einleitung {
	display: flex;
	gap: 10px;
	margin: 0 0 16px;
	padding: 12px 14px;
	font-size: 14px;
	background: rgba(77, 163, 255, 0.08);
	border: 1px solid rgba(77, 163, 255, 0.3);
	border-radius: 10px;
}

.pctl-spielbericht__einleitung .fas {
	margin-top: 3px;
	color: var(--sb-heim);
}

/* --- Statistiken --- */

.pctl-spielbericht__statistiken {
	display: flex;
	flex-direction: column;
	gap: 18px;
	padding: 18px 18px 20px;
}

.pctl-spielbericht__statzeile {
	display: grid;
	grid-template-columns: 70px minmax(0, 1fr) 70px;
	align-items: baseline;
	margin-bottom: 7px;
}

.pctl-spielbericht__statwert {
	color: var(--k-gedaempft);
	font-family: var(--sb-font);
	font-size: 20px;
	font-weight: 500;
	font-variant-numeric: tabular-nums;
}

.pctl-spielbericht__statwert:last-child {
	text-align: right;
}

.pctl-spielbericht__statwert.is-vorn {
	color: var(--k-schrift);
	font-weight: 600;
}

.pctl-spielbericht__stattitel {
	color: var(--k-gedaempft);
	font-family: var(--sb-font);
	font-size: 12px;
	letter-spacing: 0.1em;
	text-align: center;
	text-transform: uppercase;
}

.pctl-spielbericht__balken {
	display: flex;
	gap: 3px;
	height: 8px;
}

.pctl-spielbericht__balken span {
	border-radius: 4px;
}

.pctl-spielbericht__balken-heim {
	flex: 0 0 calc(var(--anteil) - 1.5px);
	background: var(--sb-heim);
}

.pctl-spielbericht__balken-gast {
	flex: 1 1 auto;
	background: var(--sb-gast);
}

/* --- Torliste (Übersicht) --- */

.pctl-spielbericht__torliste,
.pctl-spielbericht__verlauf,
.pctl-spielbericht__liste,
.pctl-spielbericht__kommentare {
	margin: 0;
	padding: 0;
	list-style: none;
}

.pctl-spielbericht__torzeile {
	display: grid;
	grid-template-columns: 44px minmax(0, 1fr) auto;
	gap: 10px;
	align-items: center;
	min-height: 46px;
	padding: 6px 16px;
	border-bottom: 1px solid var(--k-rand);
	border-left: 3px solid var(--sb-heim);
}

.pctl-spielbericht__torzeile:last-child {
	border-bottom: 0;
}

.pctl-spielbericht__torzeile--gast {
	border-left-color: var(--sb-gast);
}

.pctl-spielbericht__minute {
	color: var(--k-gedaempft);
	font-family: var(--sb-font);
	font-size: 15px;
	font-weight: 500;
	font-variant-numeric: tabular-nums;
}

.pctl-spielbericht__torschuetze {
	min-width: 0;
	overflow-wrap: anywhere;
	font-weight: 600;
}

.pctl-spielbericht__torschuetze small {
	color: var(--k-gedaempft);
	font-weight: 400;
}

.pctl-spielbericht__stand {
	padding: 2px 9px;
	color: var(--k-schrift);
	font-family: var(--sb-font);
	font-size: 15px;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	background: var(--k-flaeche-2);
	border: 1px solid var(--k-rand);
	border-radius: 8px;
}

/* --- Spielverlauf (Ereignisse) ---
   Zweiseitig an einer Mittellinie: Heim links (gespiegelt), Minute in der
   Mitte, Gast rechts. Unter 768px einspaltig mit farbiger Kante. */

.pctl-spielbericht__verlauf {
	position: relative;
	padding: 8px 0;
}

.pctl-spielbericht__verlauf::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: 50%;
	width: 2px;
	background: var(--k-rand);
	transform: translateX(-1px);
}

.pctl-spielbericht__ereignis {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr);
	align-items: center;
	padding: 5px 14px;
}

.pctl-spielbericht__ereignis .pctl-spielbericht__minute {
	grid-column: 2;
	grid-row: 1;
	z-index: 1;
	justify-self: center;
	min-width: 40px;
	padding: 3px 0;
	color: var(--k-schrift);
	font-size: 14px;
	text-align: center;
	background: var(--k-flaeche-2);
	border: 1px solid var(--k-rand);
	border-radius: 999px;
}

.pctl-spielbericht__ereigniskarte {
	display: flex;
	gap: 10px;
	align-items: center;
	min-width: 0;
	padding: 8px 12px;
	background: var(--k-flaeche);
	border: 1px solid var(--k-rand);
	border-radius: 12px;
}

.pctl-spielbericht__ereignis--heim .pctl-spielbericht__ereigniskarte {
	grid-column: 1;
	flex-direction: row-reverse;
	margin-right: 4px;
	text-align: right;
	border-right: 3px solid var(--sb-heim);
}

.pctl-spielbericht__ereignis--gast .pctl-spielbericht__ereigniskarte {
	grid-column: 3;
	margin-left: 4px;
	border-left: 3px solid var(--sb-gast);
}

.pctl-spielbericht__ereigniskarte .pctl-spielbericht__text {
	flex: 1 1 auto;
}

/* Tore heben sich ab */
.pctl-spielbericht__ereignis--tor .pctl-spielbericht__ereigniskarte,
.pctl-spielbericht__ereignis--eigentor .pctl-spielbericht__ereigniskarte {
	background: var(--k-flaeche-2);
}

/* Wappen ist durch die Seite schon klar, nur einspaltig nötig */
.pctl-spielbericht__ereigniskarte .pctl-spielbericht__mini {
	display: none;
}

.pctl-spielbericht__symbol {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	color: var(--k-schrift);
	font-size: 15px;
	background: var(--k-flaeche-2);
	border-radius: 50%;
}

.pctl-spielbericht__ereignis--eigentor .pctl-spielbericht__symbol {
	color: var(--sb-schlecht);
}

/* Karten als hochkante Rechtecke statt Bild */
.pctl-spielbericht__ereignis--gelb .pctl-spielbericht__symbol .fas,
.pctl-spielbericht__ereignis--rot .pctl-spielbericht__symbol .fas,
.pctl-spielbericht__ereignis--gelbrot .pctl-spielbericht__symbol .fas {
	display: none;
}

.pctl-spielbericht__ereignis--gelb .pctl-spielbericht__symbol::before,
.pctl-spielbericht__ereignis--rot .pctl-spielbericht__symbol::before,
.pctl-spielbericht__ereignis--gelbrot .pctl-spielbericht__symbol::before {
	content: "";
	width: 12px;
	height: 16px;
	background: var(--sb-gelb);
	border-radius: 2px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.pctl-spielbericht__ereignis--rot .pctl-spielbericht__symbol::before {
	background: var(--sb-rot);
}

.pctl-spielbericht__ereignis--gelbrot .pctl-spielbericht__symbol::before {
	background: linear-gradient(135deg, var(--sb-gelb) 50%, var(--sb-rot) 50%);
}

.pctl-spielbericht__bild {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	overflow: hidden;
	background: var(--k-flaeche-2);
	border-radius: 50%;
}

html[data-user-theme] .pctl-spielbericht .pctl-spielbericht__bild img {
	width: 44px;
	height: 44px;
	object-fit: cover;
	object-position: top;
}

.pctl-spielbericht__text {
	display: flex;
	flex-direction: column;
	gap: 1px;
	min-width: 0;
	overflow-wrap: anywhere;
}

.pctl-spielbericht__text small {
	color: var(--k-gedaempft);
	font-size: 12.5px;
}

html[data-user-theme] .pctl-spielbericht img.pctl-spielbericht__mini {
	width: 30px;
	height: 30px;
	padding: 2px;
	object-fit: contain;
	background: rgba(236, 244, 255, 0.92);
	border-radius: 5px;
	filter: none;
}

/* --- Listen (Spieler des Spiels, Verletzungen, Merchandising) --- */

.pctl-spielbericht__eintrag {
	display: flex;
	gap: 12px;
	align-items: center;
	padding: 10px 14px;
	border-bottom: 1px solid var(--k-rand);
}

.pctl-spielbericht__eintrag:last-child {
	border-bottom: 0;
}

.pctl-spielbericht__eintrag .pctl-spielbericht__text {
	flex: 1 1 auto;
}

.pctl-spielbericht__eintrag--gold .pctl-spielbericht__bild {
	box-shadow: 0 0 0 2px var(--sb-gold);
}

.pctl-spielbericht__eintrag--gefahr .pctl-spielbericht__bild {
	box-shadow: 0 0 0 2px var(--sb-schlecht);
}

.pctl-spielbericht__anzahl {
	flex: 0 0 auto;
	font-family: var(--sb-font);
	font-size: 17px;
	font-weight: 600;
	white-space: nowrap;
}

.pctl-spielbericht__anzahl small {
	color: var(--k-gedaempft);
	font-size: 12px;
	font-weight: 400;
}

.pctl-spielbericht .pctl-karte__leer {
	padding: 28px 20px;
}

/* --- Berichte, Kommentare, Formulare --- */

.pctl-spielbericht__fliesstext {
	padding: 16px 18px;
	overflow-wrap: anywhere;
	font-size: 14.5px;
	line-height: 1.6;
}

.pctl-spielbericht__fliesstext > :last-child {
	margin-bottom: 0;
}

.pctl-spielbericht__fliesstext img {
	max-width: 100%;
	height: auto;
}

.pctl-spielbericht__formular {
	padding: 16px 18px;
	border-bottom: 1px solid var(--k-rand);
}

.pctl-spielbericht__formular:last-child {
	border-bottom: 0;
}

.pctl-spielbericht .pctl-spielbericht__erklaerung {
	margin: 0 0 10px;
	color: var(--k-gedaempft);
	font-size: 13px;
}

.pctl-spielbericht__aktionen {
	display: flex;
	justify-content: flex-end;
	margin-top: 12px;
}

.pctl-spielbericht__aktionen .pctl-karte__knopf {
	min-height: 44px;
}

.pctl-spielbericht__kommentar {
	border-bottom: 1px solid var(--k-rand);
}

.pctl-spielbericht__kommentar:last-child {
	border-bottom: 0;
}

.pctl-spielbericht__kommentarkopf {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 4px 12px;
	padding: 12px 18px 0;
}

.pctl-spielbericht__kommentarkopf time {
	color: var(--k-gedaempft);
	font-size: 12.5px;
}

.pctl-spielbericht__kommentar .pctl-spielbericht__fliesstext {
	padding-top: 6px;
}

/* --- Bewertungen --- */

.pctl-spielbericht__kriterium {
	margin: 0 0 18px;
	padding: 0;
	border: 0;
}

.pctl-spielbericht .pctl-spielbericht__kriterium legend {
	margin: 0 0 2px;
	color: var(--k-schrift);
	font-family: var(--sb-font);
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.pctl-spielbericht__wahl {
	display: grid;
	grid-template-columns: repeat(10, minmax(0, 1fr));
	gap: 4px;
}

.pctl-spielbericht__wahl label {
	position: relative;
	margin: 0;
}

.pctl-spielbericht__wahl input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.pctl-spielbericht__wahl span {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 40px;
	color: var(--k-schrift);
	font-family: var(--sb-font);
	font-size: 15px;
	font-weight: 500;
	cursor: pointer;
	background: var(--k-flaeche-2);
	border: 1px solid var(--k-rand);
	border-radius: 8px;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.pctl-spielbericht__wahl span:hover {
	border-color: var(--sb-heim);
}

.pctl-spielbericht__wahl input:checked + span {
	color: #ffffff;
	background: linear-gradient(180deg, #4da3ff 0%, #2f7fe0 55%, #1d5fb4 100%);
	border-color: #2f7fe0;
	box-shadow: 0 4px 12px rgba(47, 127, 224, 0.35);
}

.pctl-spielbericht__wahl input:focus-visible + span {
	outline: 2px solid var(--sb-accent);
	outline-offset: 2px;
}

.pctl-spielbericht__bewertung {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 20px;
	align-items: center;
	padding: 18px;
}

.pctl-spielbericht__schnitt {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 92px;
	height: 92px;
	color: var(--sb-text);
	background: linear-gradient(180deg, rgba(16, 32, 58, 0.97) 0%, rgba(6, 13, 26, 0.98) 100%);
	border: 1px solid var(--sb-line);
	border-radius: 50%;
	box-shadow: 0 0 22px rgba(77, 163, 255, 0.2);
}

.pctl-spielbericht__schnitt b {
	font-family: var(--sb-font);
	font-size: 30px;
	font-weight: 600;
	line-height: 1;
}

.pctl-spielbericht__schnitt small {
	margin-top: 3px;
	color: var(--sb-muted);
	font-size: 10.5px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.pctl-spielbericht__werte {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0;
}

.pctl-spielbericht__wert dt {
	margin-bottom: 4px;
	color: var(--k-gedaempft);
	font-family: var(--sb-font);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.pctl-spielbericht__wert dd {
	display: flex;
	gap: 10px;
	align-items: center;
	margin: 0;
}

.pctl-spielbericht__wertbalken {
	position: relative;
	flex: 1 1 auto;
	height: 8px;
	overflow: hidden;
	background: var(--k-flaeche-2);
	border-radius: 4px;
}

.pctl-spielbericht__wertbalken::after {
	content: "";
	position: absolute;
	inset: 0 auto 0 0;
	width: var(--wert);
	background: var(--sb-farbe);
	border-radius: 4px;
}

.pctl-spielbericht__wertzahl {
	min-width: 22px;
	color: var(--sb-farbe);
	font-family: var(--sb-font);
	font-size: 17px;
	font-weight: 600;
	text-align: right;
}

.pctl-spielbericht__wert--gut { --sb-farbe: var(--sb-gut); }
.pctl-spielbericht__wert--mittel { --sb-farbe: var(--sb-mittel); }
.pctl-spielbericht__wert--schlecht { --sb-farbe: var(--sb-schlecht); }

.pctl-spielbericht .pctl-spielbericht__zitat {
	margin: 0 18px 18px;
	padding: 12px 16px;
	background: var(--k-flaeche-2);
	border-left: 3px solid var(--sb-heim);
	border-radius: 0 10px 10px 0;
}

/* --- Bewegung --- */

@media (prefers-reduced-motion: reduce) {
	.pctl-spielbericht *,
	.pctl-spielbericht .tab-pane.fade {
		transition: none !important;
	}
}

/* --- Tablet und Handy --- */

@media (max-width: 1199.98px) {
	.pctl-spielbericht__raster--drei {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 991.98px) {
	.pctl-spielbericht__raster,
	.pctl-spielbericht__raster--drei {
		grid-template-columns: minmax(0, 1fr);
	}

	.pctl-spielbericht__seite {
		flex-direction: column;
		gap: 10px;
		text-align: center;
	}

	.pctl-spielbericht__seite--heim {
		flex-direction: column;
		text-align: center;
	}

	.pctl-spielbericht__namen {
		align-items: center;
	}
}

@media (max-width: 767.98px) {
	.pctl-spielbericht__verlauf::before {
		left: 34px;
	}

	.pctl-spielbericht__ereignis {
		grid-template-columns: 44px minmax(0, 1fr);
		gap: 8px;
		padding: 5px 10px;
	}

	.pctl-spielbericht__ereignis .pctl-spielbericht__minute {
		grid-column: 1;
	}

	.pctl-spielbericht__ereignis--heim .pctl-spielbericht__ereigniskarte,
	.pctl-spielbericht__ereignis--gast .pctl-spielbericht__ereigniskarte {
		grid-column: 2;
		flex-direction: row;
		margin: 0;
		text-align: left;
		border-right: 1px solid var(--k-rand);
		border-left: 3px solid var(--sb-heim);
	}

	.pctl-spielbericht__ereignis--gast .pctl-spielbericht__ereigniskarte {
		border-left-color: var(--sb-gast);
	}

	.pctl-spielbericht__ereigniskarte .pctl-spielbericht__mini {
		display: block;
	}
}

@media (max-width: 575.98px) {
	.pctl-spielbericht {
		padding: 0;
	}

	.pctl-spielbericht__held {
		padding: 16px 12px 14px;
	}

	.pctl-spielbericht__duell {
		gap: 8px;
	}

	.pctl-spielbericht__wappen {
		width: 60px;
		height: 60px;
	}

	html[data-user-theme] .pctl-spielbericht .pctl-spielbericht__wappen img {
		width: 48px;
		height: 48px;
	}

	html[data-user-theme] .pctl-spielbericht a.pctl-spielbericht__team {
		font-size: 16px;
	}

	html[data-user-theme] .pctl-spielbericht a.pctl-spielbericht__trainer {
		font-size: 12.5px;
	}

	.pctl-spielbericht__endstand {
		padding: 4px 10px;
		font-size: 38px;
	}

	.pctl-spielbericht__eckdaten {
		flex-direction: column;
		gap: 4px;
		font-size: 13px;
	}

	/* Reiter nur mit Symbol und Zahl, der Titel bleibt für Screenreader */
	html[data-user-theme] .pctl-spielbericht .pctl-spielbericht__reiterknopf {
		flex: 1 1 0;
		gap: 6px;
		padding: 0 8px;
		font-size: 0;
	}

	.pctl-spielbericht__reiterknopf .fas {
		font-size: 16px;
	}

	.pctl-spielbericht__reiterzahl {
		font-size: 11px;
	}

	/* Text wird mit font-size 0 versteckt, übrig bleibt ein Punkt */
	.pctl-spielbericht__offen {
		width: 9px;
		height: 9px;
		padding: 0;
		font-size: 0;
		border-radius: 50%;
	}

	.pctl-spielbericht__torschuetzen {
		gap: 8px;
	}

	.pctl-spielbericht__schuetzen {
		font-size: 12px;
	}

	.pctl-spielbericht__schuetzen span {
		display: block;
		margin-left: 0;
	}

	.pctl-spielbericht__ereigniskarte .pctl-spielbericht__bild,
	html[data-user-theme] .pctl-spielbericht .pctl-spielbericht__ereigniskarte .pctl-spielbericht__bild img {
		width: 36px;
		height: 36px;
	}

	.pctl-spielbericht__ereigniskarte .pctl-spielbericht__symbol {
		display: none;
	}

	.pctl-spielbericht__ereigniskarte {
		gap: 8px;
		padding: 7px 10px;
	}

	.pctl-spielbericht__wahl {
		grid-template-columns: repeat(5, minmax(0, 1fr));
	}

	.pctl-spielbericht__wahl span {
		height: 44px;
	}

	.pctl-spielbericht__bewertung {
		grid-template-columns: minmax(0, 1fr);
		justify-items: center;
	}

	.pctl-spielbericht__werte {
		width: 100%;
	}
}
