/*
 * Trikot-Sammelbestellung.
 *
 * Gehört zu inc/trikotshop.php und wird nur dort geladen, wo einer der beiden
 * Blöcke steht. Bewusst eine eigene Datei: An main.css wird nichts geändert,
 * damit eine Anpassung hier keine andere Seite verstellen kann. Wird der
 * Trikotshop zurückgebaut, kann diese Datei ersatzlos entfallen.
 *
 * Die Farben kommen aus der Palette des Themes; eigene Werte stehen nur dort,
 * wo die Palette nichts Passendes bietet.
 */

/* Breite einschliesslich Innenabstand und Rand rechnen — sonst stehen die
   Eingabefelder über den Rand ihres Kastens hinaus. */
.hsg-trikot,
.hsg-trikot *,
.hsg-trikot *::before,
.hsg-trikot *::after {
	box-sizing: border-box;
}

.hsg-trikot {
	--hsg-trikot-linie: var(--wp--preset--color--line, #1c3346);
	--hsg-trikot-flaeche: var(--wp--preset--color--surface, #0d2233);
	/* Grund für Kästen: kippt mit dem Erscheinungsbild, wie base im Theme. */
	--hsg-trikot-grund: var(--wp--preset--color--base, #071624);
	--hsg-trikot-gruen: #1d9d62;
	--hsg-trikot-warn: #b3763a;

	display: flex;
	flex-direction: column;
	gap: 1.75rem;
}

/* ---------- Meldungen ---------- */

.hsg-trikot__note {
	padding: 1rem 1.25rem;
	border: 1px solid var(--hsg-trikot-linie);
	border-left-width: 4px;
	border-radius: .5rem;
	background: var(--hsg-trikot-flaeche);
}

.hsg-trikot__note strong { display: block; margin-bottom: .25rem; }
.hsg-trikot__note p { margin: 0 0 .4rem; color: var(--wp--preset--color--muted); }
.hsg-trikot__note p:last-child { margin-bottom: 0; }
.hsg-trikot__note--ok { border-left-color: var(--hsg-trikot-gruen); }
.hsg-trikot__note--warn { border-left-color: var(--hsg-trikot-warn); }

/* ---------- Banner mit den Zählern ----------
 *
 * Das Banner ist ein Inhaltsblock und nimmt deshalb „surface“ — dieselbe
 * Rolle wie die Kacheln des Vereinsshops. Sie kippt mit dem Erscheinungsbild.
 * „deep“ wäre falsch: Diese Rolle bleibt in beiden Fassungen dunkel und ist
 * im Theme dem Kopfbild und dem Fussbereich vorbehalten; mitten im hellen
 * Inhalt stünde sonst ein schwarzer Kasten.
 */

.hsg-trikot__banner {
	padding: 1.75rem;
	border: 1px solid var(--hsg-trikot-linie);
	border-radius: .75rem;
	background: var(--hsg-trikot-flaeche);
	color: var(--wp--preset--color--ink);
}

.hsg-trikot__banner-titel {
	margin: 0 0 .5rem;
	font-size: clamp(1.3rem, 3vw, 1.75rem);
	line-height: 1.15;
	color: var(--wp--preset--color--ink);
}

.hsg-trikot__banner-text {
	margin: 0 0 1.5rem;
	max-width: 54em;
	color: var(--wp--preset--color--muted);
	font-size: .95rem;
}

.hsg-trikot__zaehler-paar {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
	gap: 1rem;
}

.hsg-trikot__zaehler {
	padding: 1rem 1.15rem;
	border: 1px solid var(--hsg-trikot-linie);
	border-radius: .6rem;
	background: var(--hsg-trikot-grund);
}

.hsg-trikot__zaehler.is-voll {
	border-color: rgba(29, 157, 98, .55);
	background: rgba(29, 157, 98, .16);
}

.hsg-trikot__zaehler-titel {
	display: flex;
	align-items: center;
	gap: .5rem;
	margin: 0 0 .35rem;
	font-size: .72rem;
	font-weight: 900;
	letter-spacing: .09em;
	text-transform: uppercase;
}

.hsg-trikot__punkt {
	width: .7rem;
	height: .7rem;
	border: 1px solid var(--wp--preset--color--muted);
	border-radius: 50%;
	flex: none;
}

.hsg-trikot__zaehler-zahl {
	display: flex;
	align-items: baseline;
	gap: .4rem;
	margin: 0 0 .5rem;
}

.hsg-trikot__zaehler-zahl strong { font-size: 2.1rem; font-weight: 900; line-height: 1; }
.hsg-trikot__zaehler-zahl span { font-size: .85rem; color: var(--wp--preset--color--muted); }

.hsg-trikot__balken {
	display: block;
	height: .4rem;
	margin: 0 0 .5rem;
	border-radius: 999px;
	background: var(--hsg-trikot-linie);
	overflow: hidden;
}

.hsg-trikot__balken span {
	display: block;
	height: 100%;
	border-radius: 999px;
	background: var(--wp--preset--color--primary-dark);
	transition: width .4s ease;
}

.hsg-trikot__zaehler.is-voll .hsg-trikot__balken span { background: var(--hsg-trikot-gruen); }

.hsg-trikot__zaehler-fuss {
	margin: 0;
	font-size: .78rem;
	color: var(--wp--preset--color--muted);
}

/* Der Zähler ohne Formular steht in demselben Rahmen wie im Banner. */
.hsg-trikot--nurzaehler .hsg-trikot__zaehler-paar {
	padding: 1.25rem;
	border: 1px solid var(--hsg-trikot-linie);
	border-radius: .75rem;
	background: var(--hsg-trikot-flaeche);
}

.hsg-trikot__mehr { margin: 0; }

/* ---------- Eigene Vorbestellung ---------- */

.hsg-trikot__meine {
	padding: 1.25rem;
	border: 1px solid var(--hsg-trikot-linie);
	border-radius: .6rem;
	background: var(--hsg-trikot-grund);
}

.hsg-trikot__meine h3 { margin: 0 0 .75rem; font-size: 1.1rem; }

.hsg-trikot__tabelle {
	width: 100%;
	margin-bottom: 1rem;
	border-collapse: collapse;
	font-size: .9rem;
}

.hsg-trikot__tabelle th,
.hsg-trikot__tabelle td {
	padding: .45rem .6rem;
	border-bottom: 1px solid var(--hsg-trikot-linie);
	text-align: left;
}

.hsg-trikot__tabelle th { font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; }

/* ---------- Formular ---------- */

.hsg-trikot__form {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.hsg-trikot__trap {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.hsg-trikot__preis {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: .35rem .9rem;
	margin: 0;
}

.hsg-trikot__preis strong {
	font-size: 1.6rem;
	font-weight: 900;
	color: var(--wp--preset--color--primary-dark, #007899);
}

.hsg-trikot__preis span { font-size: .85rem; color: var(--wp--preset--color--muted); }

.hsg-trikot__positionen {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.hsg-trikot__position {
	position: relative;
	margin: 0;
	padding: 1.25rem;
	border: 1px solid var(--hsg-trikot-linie);
	border-radius: .6rem;
	background: var(--hsg-trikot-grund);
}

.hsg-trikot__position legend {
	padding: 0 .4rem;
	font-size: .78rem;
	font-weight: 900;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
}

.hsg-trikot__entfernen {
	position: absolute;
	top: .9rem;
	right: .9rem;
	padding: .2rem .6rem;
	border: 1px solid var(--hsg-trikot-linie);
	border-radius: 999px;
	background: var(--hsg-trikot-grund);
	color: var(--wp--preset--color--muted);
	font-size: .72rem;
	cursor: pointer;
}

.hsg-trikot__entfernen:hover { color: var(--hsg-trikot-warn); border-color: currentColor; }

.hsg-trikot__wahl { margin-bottom: 1rem; }

.hsg-trikot__label {
	display: block;
	margin-bottom: .4rem;
	font-size: .8rem;
	font-weight: 700;
}

.hsg-trikot__optionen {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
}

.hsg-trikot__option { position: relative; cursor: pointer; }

/* Die Schaltfläche ist das Label; das Feld selbst bleibt für Tastatur und
   Vorlesesoftware erreichbar, ist aber nicht sichtbar. */
.hsg-trikot__option input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
}

.hsg-trikot__option span {
	display: inline-block;
	padding: .5rem 1rem;
	border: 1.5px solid var(--hsg-trikot-linie);
	border-radius: 999px;
	font-size: .85rem;
	font-weight: 700;
	line-height: 1;
	transition: border-color .15s ease, background .15s ease;
}

.hsg-trikot__option input:focus-visible + span {
	outline: 2px solid var(--wp--preset--color--navy, #0b3f78);
	outline-offset: 2px;
}

.hsg-trikot__optionen--groessen .hsg-trikot__option span { min-width: 3.2rem; text-align: center; }
.hsg-trikot__optionen--groessen .is-kind span { border-style: dashed; }

.hsg-trikot__klein {
	margin: .4rem 0 0;
	font-size: .78rem;
	color: var(--wp--preset--color--muted);
}

.hsg-trikot__fields {
	margin: 0;
	padding: 1.25rem;
	border: 1px solid var(--hsg-trikot-linie);
	border-radius: .6rem;
	background: var(--hsg-trikot-flaeche);
}

.hsg-trikot__fields legend {
	padding: 0 .4rem;
	font-size: .78rem;
	font-weight: 900;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
}

.hsg-trikot__fieldgrid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
	gap: .9rem;
}

.hsg-trikot__wide { grid-column: 1 / -1; }

.hsg-trikot__fieldgrid label {
	display: flex;
	flex-direction: column;
	gap: .3rem;
	font-size: .82rem;
	font-weight: 700;
}

.hsg-trikot input[type="text"],
.hsg-trikot input[type="email"],
.hsg-trikot input[type="tel"],
.hsg-trikot input[type="number"],
.hsg-trikot textarea {
	width: 100%;
	padding: .6rem .7rem;
	border: 1px solid var(--hsg-trikot-linie);
	border-radius: .35rem;
	background: var(--hsg-trikot-grund);
	font: inherit;
	font-weight: 400;
}

.hsg-trikot input:focus-visible,
.hsg-trikot textarea:focus-visible {
	outline: 2px solid var(--wp--preset--color--primary, #00a5d3);
	outline-offset: 1px;
}

.hsg-trikot__consent {
	display: flex;
	align-items: flex-start;
	gap: .6rem;
	margin-top: 1rem;
	font-size: .85rem;
	line-height: 1.45;
}

.hsg-trikot__consent input { margin-top: .2rem; flex: none; }

.hsg-trikot__summe {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: baseline;
	gap: .5rem;
	padding-top: 1rem;
	border-top: 1px solid var(--hsg-trikot-linie);
}

.hsg-trikot__summe span { font-size: .85rem; color: var(--wp--preset--color--muted); }
.hsg-trikot__summe strong { font-size: 1.4rem; font-weight: 900; }

.hsg-trikot__submit,
.hsg-trikot__weiteres { margin: 0; }

.hsg-trikot__hinweis {
	margin: 0;
	font-size: .85rem;
	color: var(--wp--preset--color--muted);
}

/* ---------- Übersicht vor dem Absenden ---------- */

.hsg-trikot__check {
	width: min(100%, 34rem);
	padding: 0;
	border: 1px solid var(--hsg-trikot-linie);
	border-radius: .75rem;
	background: var(--hsg-trikot-flaeche);
	/* Sonst greift die Vorgabe des Browsers und trifft die dunkle Fassung nicht. */
	color: var(--wp--preset--color--ink);
}

.hsg-trikot__check::backdrop {
	background: rgba(4, 13, 22, .75);
}

.hsg-trikot__check-title {
	margin: 0;
	padding: 1.25rem 1.5rem .5rem;
	font-size: 1.15rem;
}

.hsg-trikot__check-lead {
	margin: 0;
	padding: 0 1.5rem 1rem;
	font-size: .88rem;
	color: var(--wp--preset--color--muted);
}

.hsg-trikot__check-body {
	padding: 0 1.5rem;
	max-height: min(55vh, 28rem);
	overflow-y: auto;
}

.hsg-trikot__check-untertitel {
	margin: .75rem 0 .5rem;
	font-size: .72rem;
	font-weight: 900;
	letter-spacing: .09em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
}

.hsg-trikot__check-zeile {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: .25rem .75rem;
	padding: .7rem 0;
	border-top: 1px solid var(--hsg-trikot-linie);
}

.hsg-trikot__check-text {
	display: flex;
	flex-direction: column;
	gap: .15rem;
}

.hsg-trikot__check-text strong { font-size: .95rem; }
.hsg-trikot__check-text span { font-size: .82rem; color: var(--wp--preset--color--muted); }

.hsg-trikot__check-betrag {
	font-weight: 900;
	white-space: nowrap;
}

.hsg-trikot__check-knoepfe {
	grid-column: 1 / -1;
	display: flex;
	gap: .5rem;
}

.hsg-trikot__check-klein {
	padding: .2rem .7rem;
	border: 1px solid var(--hsg-trikot-linie);
	border-radius: 999px;
	background: var(--hsg-trikot-grund);
	color: var(--wp--preset--color--ink);
	font: inherit;
	font-size: .75rem;
	cursor: pointer;
}

.hsg-trikot__check-klein:hover,
.hsg-trikot__check-klein:focus-visible {
	border-color: var(--wp--preset--color--primary-dark);
	color: var(--wp--preset--color--primary-dark);
}

.hsg-trikot__check-klein--weg:hover,
.hsg-trikot__check-klein--weg:focus-visible {
	border-color: var(--hsg-trikot-warn);
	color: var(--hsg-trikot-warn);
}

.hsg-trikot__check-gesamt {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: .75rem;
	margin: 0;
	padding: .8rem 0;
	border-top: 2px solid var(--hsg-trikot-linie);
}

.hsg-trikot__check-gesamt span { font-size: .85rem; color: var(--wp--preset--color--muted); }
.hsg-trikot__check-gesamt strong { font-size: 1.25rem; }

.hsg-trikot__check-angaben {
	margin: 0 0 .75rem;
	font-size: .85rem;
	color: var(--wp--preset--color--muted);
}

.hsg-trikot__check-warten {
	margin: 0;
	padding: 1.5rem 0 2rem;
	text-align: center;
	font-size: .9rem;
	color: var(--wp--preset--color--muted);
}

.hsg-trikot__check-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: .75rem;
	padding: 1rem 1.5rem 1.25rem;
	border-top: 1px solid var(--hsg-trikot-linie);
}

.hsg-trikot__check-actions .hsg-btn { font-size: .78rem; }

/* Ein gesperrter Knopf muss auch aussehen wie einer — sonst klickt jemand
   dagegen und hält die ausbleibende Wirkung für einen Fehler. */
.hsg-trikot__check button[disabled] {
	opacity: .45;
	cursor: not-allowed;
	transform: none;
	box-shadow: none;
}

/* ---------- Rückfall ohne modales Fenster ---------- */

/*
 * Kennt der Browser <dialog> nicht, entfällt die Übersicht. Der Schutz vor dem
 * zweiten Klick bleibt: Diese Decke legt sich über die Seite und der Knopf
 * wird gesperrt.
 */
.hsg-trikot__warten {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 2rem;
	background: rgba(4, 13, 22, .85);
	color: #fff;
	font-weight: 700;
	text-align: center;
}

@media (max-width: 600px) {
	.hsg-trikot__banner { padding: 1.25rem; }
	.hsg-trikot__submit .hsg-btn { width: 100%; justify-content: center; }

	.hsg-trikot__check-actions { flex-direction: column-reverse; }
	.hsg-trikot__check-actions .hsg-btn { width: 100%; justify-content: center; }
}

/* ---------- Auswahl, Beschriftungen, Akzente ----------
 *
 * Alle Farben stammen aus den Rollen des Themes und kippen deshalb mit dem
 * Erscheinungsbild mit. Feste Werte stehen nur dort, wo auch das Theme sie
 * festhält: auf dem Banner, das in beiden Fassungen dunkel bleibt.
 */

.hsg-trikot__option span {
	background: var(--hsg-trikot-grund);
	color: var(--wp--preset--color--ink);
}

/*
 * Die gewählte Schaltfläche übernimmt die Knopffarben des Themes. Dort ist
 * hinterlegt, dass das helle Blau dunkle Schrift trägt und umgekehrt — mit
 * reinem Weiss auf #00a5d3 käme der Kontrast nicht über 2,9:1.
 */
.hsg-trikot__option input:checked + span {
	border-color: var(--hsg-btn-bg, #38c4e8);
	background: var(--hsg-btn-bg, #38c4e8);
	color: var(--hsg-btn-fg, #062744);
}

/* Die Beschriftung unterbricht den Rand ihres Kastens und braucht dessen Grund. */
.hsg-trikot__position legend {
	background: var(--hsg-trikot-grund);
	border-radius: .2rem;
}

.hsg-trikot__fields legend {
	background: var(--hsg-trikot-flaeche);
	border-radius: .2rem;
}

/* Hervorgehobene Beträge: die Rolle, die für Akzentschrift gedacht ist. */
.hsg-trikot__preis strong {
	color: var(--wp--preset--color--primary-dark);
}

/* ---------- Eigene Vorbestellung ändern ---------- */

.hsg-trikot__meine-form {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	margin-bottom: 1rem;
}

.hsg-trikot__meine-pos {
	padding: .9rem 1rem;
	border: 1px solid var(--hsg-trikot-linie);
	border-radius: .5rem;
	background: var(--hsg-trikot-flaeche);
}

.hsg-trikot__meine-kopf {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: .5rem .75rem;
	margin: 0 0 .6rem;
}

.hsg-trikot__meine-kopf code {
	font-size: .85rem;
	font-weight: 700;
}

.hsg-trikot__meine-kopf strong { margin-left: auto; }

.hsg-trikot__meine-status {
	padding: .1rem .55rem;
	border: 1px solid var(--hsg-trikot-linie);
	border-radius: 999px;
	background: var(--hsg-trikot-grund);
	font-size: .72rem;
	color: var(--wp--preset--color--muted);
}

.hsg-trikot__meine-felder {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
	gap: .75rem;
}

.hsg-trikot__meine-felder label {
	display: flex;
	flex-direction: column;
	gap: .25rem;
	font-size: .78rem;
	font-weight: 700;
}

.hsg-trikot__meine-felder select {
	width: 100%;
	padding: .5rem .6rem;
	border: 1px solid var(--hsg-trikot-linie);
	border-radius: .35rem;
	background: var(--hsg-trikot-grund);
	color: var(--wp--preset--color--ink);
	font: inherit;
	font-weight: 400;
	font-size: .9rem;
}

.hsg-trikot__meine-felder select:focus-visible {
	outline: 2px solid var(--wp--preset--color--primary-dark);
	outline-offset: 1px;
}

.hsg-trikot__meine-aktionen { margin: 0; }

/* ---------- Live-Vorschau der Trikotrückseite ---------- */

/*
 * Steht neben den Eingabefeldern, auf dem Handy darüber. Ohne hinterlegtes
 * Bild entfällt sie, und die Position bleibt einspaltig.
 */
.hsg-trikot__position--mitbild {
	display: grid;
	grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
	gap: 1.25rem;
	align-items: start;
}

.hsg-trikot__position--mitbild legend { grid-column: 1 / -1; }

.hsg-trikot__vorschau {
	margin: 0;
	padding: 0;
	border: 1px solid var(--hsg-trikot-linie);
	border-radius: .5rem;
	/*
	 * Der Grund bleibt in beiden Erscheinungsbildern hell: Das Trikotbild ist
	 * Fremdmaterial für hellen Grund, genau wie die Partnerlogos im Theme.
	 */
	background: var(--hsg-partner-bg, #fff);
	overflow: hidden;
}

/*
 * Bezugsrahmen für die Aufdrucke ist allein das Bild — ohne die Fusszeile,
 * die sonst in jede Prozentangabe hineinrechnete.
 */
.hsg-trikot__vorschau-bild {
	position: relative;
	display: block;
}

.hsg-trikot__vorschau img {
	display: block;
	width: 100%;
	height: auto;
}

/*
 * Nummer und Name liegen über dem Bild. Ihre Grösse richtet sich nach der
 * Höhe des Bildes, nicht nach der Schriftgrösse ringsum — dafür wird der
 * Rahmen zum Bezugsrahmen für Container-Einheiten.
 */
.hsg-trikot__vorschau-bild {
	container-type: inline-size;
}

.hsg-trikot__vorschau-nummer,
.hsg-trikot__vorschau-name {
	position: absolute;
	left: 0;
	right: 0;
	transform: translateY(-50%);
	color: var(--hsg-tr-druckfarbe, #00a5d3);
	font-weight: 900;
	line-height: 1;
	text-align: center;
	letter-spacing: -.02em;
	white-space: nowrap;
	pointer-events: none;
}

/*
 * Die gepflegte Höhe ist die Versalhöhe in Prozent der Bildhöhe. Daraus wird
 * die Schriftgrösse: Bezug ist die Breite des Rahmens (1cqw ist ein Prozent
 * davon), geteilt durch das Seitenverhältnis ergibt das die Bildhöhe. Lato
 * setzt die Versalhöhe auf rund 72 Prozent der Schriftgrösse, also wird noch
 * einmal zurückgerechnet.
 */
.hsg-trikot__vorschau {
	/*
	 * Anteil der Versalhöhe an der Schriftgrösse. Der Wert ist an der
	 * gerenderten Vorschau nachgemessen, nicht aus der Schrifttabelle
	 * übernommen — gerundete Zeilenhöhen verschieben das Ergebnis sonst.
	 */
	--hsg-tr-versalanteil: .696;
}

.hsg-trikot__vorschau-nummer {
	top: var(--hsg-tr-nummer-mitte, 45%);
	font-size: calc(
		var(--hsg-tr-nummer-hoehe, 26) * 1cqw
		/ var(--hsg-tr-verhaeltnis, .79)
		/ var(--hsg-tr-versalanteil)
	);
}

.hsg-trikot__vorschau-name {
	top: var(--hsg-tr-name-mitte, 67%);
	font-size: calc(
		var(--hsg-tr-name-hoehe, 4.3) * 1cqw
		/ var(--hsg-tr-verhaeltnis, .79)
		/ var(--hsg-tr-versalanteil)
	);
	letter-spacing: .02em;
}

/*
 * Lange Namen dürfen nicht über den Trikotrand hinauslaufen. Gedruckt werden
 * sie beim Lieferanten gestaucht; hier geschieht dasselbe, sobald es eng wird.
 * Der Rahmen entspricht der Fläche, die auf dem Rücken zur Verfügung steht.
 */
/*
 * Der Lieferant druckt in einer schmal laufenden Schrift. Lato ist breiter;
 * ohne Stauchung wirkt der Aufdruck deshalb grösser, obwohl seine Höhe
 * stimmt. Die Grundstauchung nähert die Anmutung an — reicht der Platz für
 * einen langen Namen trotzdem nicht, staucht das Skript zusätzlich.
 */
.hsg-trikot__vorschau {
	--hsg-tr-laufweite: .86;
}

.hsg-trikot__vorschau-nummer > span,
.hsg-trikot__vorschau-name > span {
	display: inline-block;
	transform-origin: center;
	transform: scaleX( var(--hsg-tr-laufweite) );
}

.hsg-trikot__vorschau-nummer,
.hsg-trikot__vorschau-name {
	--hsg-tr-feld: 62%;
}

.hsg-trikot__vorschau-fuss {
	padding: .4rem .6rem;
	border-top: 1px solid var(--hsg-trikot-linie);
	background: var(--hsg-trikot-flaeche);
	color: var(--wp--preset--color--muted);
	font-size: .68rem;
	line-height: 1.3;
	text-align: center;
}

@media (max-width: 720px) {
	.hsg-trikot__position--mitbild {
		grid-template-columns: minmax(0, 1fr);
	}

	.hsg-trikot__vorschau {
		max-width: 15rem;
		margin-inline: auto;
	}
}

/* ---------- Kaderauswahl beim Namen ---------- */

/*
 * Steht über dem Textfeld und füllt es. Abgeschickt wird allein das Textfeld,
 * damit ein frei eingetragener Name gleichwertig bleibt.
 */
.hsg-trikot__kader {
	width: 100%;
	margin-bottom: .4rem;
	padding: .6rem .7rem;
	border: 1px solid var(--hsg-trikot-linie);
	border-radius: .35rem;
	background: var(--hsg-trikot-grund);
	color: var(--wp--preset--color--ink);
	font: inherit;
	font-weight: 400;
}

.hsg-trikot__kader:focus-visible {
	outline: 2px solid var(--wp--preset--color--primary-dark);
	outline-offset: 1px;
}
