/* ==========================================================================
   RaceResult-Widgets (RRRegStart / RRPublish) im Website-Design
   --------------------------------------------------------------------------
   Die Widgets bringen eigenes CSS mit, das zur Laufzeit NACH diesem Stylesheet
   geladen wird. Deshalb: alles unter .tbc-tabs .tbc-rr (höhere Spezifität)
   und bei Farben/Rändern/Schriften gezielt !important.
   Klassen von RaceResult können sich ändern – darum überwiegend über
   HTML-Elemente (table, input, select, button …) gestylt.
   ========================================================================== */

.tbc-tabs .tbc-rr {
	--rr-accent: var(--tbc-accent, #d7f205);
	--rr-ink: var(--tbc-accent-ink, #0b1620);
	--rr-dark: var(--tbc-dark, #0c1924);
	--rr-dark-2: var(--tbc-dark-2, #13283a);
	--rr-line: var(--tbc-line, #dfe3da);
	--rr-text: var(--tbc-text, #13202b);
	--rr-muted: var(--tbc-muted, #5d6b75);
	--rr-zebra: #f6f8f2;
	--rr-radius: 10px;
	color: var(--rr-text);
	font-family: inherit;
	font-size: 1rem;
	line-height: 1.5;
}
.tbc-tabs .tbc-rr * { font-family: inherit !important; box-sizing: border-box; }

/* Weißer Rahmen auch für Teilnehmer/Ergebnisse */
.tbc-tabs .tbc-rr--participants,
.tbc-tabs .tbc-rr--results {
	background: #fff;
	border: 1px solid var(--rr-line);
	border-radius: var(--tbc-radius, 14px);
	padding: clamp(.6rem, 2vw, 1.5rem);
}

/* ---------- Links ---------- */
.tbc-tabs .tbc-rr a { color: var(--rr-dark-2) !important; text-decoration-color: var(--rr-accent); text-decoration-thickness: 2px; text-underline-offset: 2px; }
.tbc-tabs .tbc-rr a:hover { color: var(--rr-text) !important; }

/* ---------- Überschriften ---------- */
.tbc-tabs .tbc-rr h1,
.tbc-tabs .tbc-rr h2,
.tbc-tabs .tbc-rr h3,
.tbc-tabs .tbc-rr h4,
.tbc-tabs .tbc-rr legend,
.tbc-tabs .tbc-rr .RRReg_divListHead {
	font-family: var(--tbc-font-display, "Barlow Condensed", "Arial Narrow", sans-serif) !important;
	font-weight: 800 !important;
	font-style: italic;
	text-transform: uppercase;
	letter-spacing: .01em;
	color: var(--rr-dark) !important;
	line-height: 1.1;
}
.tbc-tabs .tbc-rr h1, .tbc-tabs .tbc-rr h2 { font-size: 1.6rem !important; margin: 0 0 .8rem; }
.tbc-tabs .tbc-rr h3, .tbc-tabs .tbc-rr h4, .tbc-tabs .tbc-rr legend, .tbc-tabs .tbc-rr .RRReg_divListHead { font-size: 1.25rem !important; margin: 1.2rem 0 .6rem; }

/* ==========================================================================
   Formulare (Anmeldung + Filter/Suche in Listen)
   ========================================================================== */
.tbc-tabs .tbc-rr label { font-weight: 600; color: var(--rr-text); }

.tbc-tabs .tbc-rr input[type="text"],
.tbc-tabs .tbc-rr input[type="email"],
.tbc-tabs .tbc-rr input[type="tel"],
.tbc-tabs .tbc-rr input[type="number"],
.tbc-tabs .tbc-rr input[type="date"],
.tbc-tabs .tbc-rr input[type="search"],
.tbc-tabs .tbc-rr input[type="password"],
.tbc-tabs .tbc-rr input:not([type]),
.tbc-tabs .tbc-rr select,
.tbc-tabs .tbc-rr textarea {
	min-height: 44px;
	padding: .55rem .8rem !important;
	border: 1.5px solid #c9d0c4 !important;
	border-radius: var(--rr-radius) !important;
	background-color: #fff !important;
	color: var(--rr-text) !important;
	font-size: 1rem !important;
	line-height: 1.3;
	box-shadow: none !important;
	transition: border-color .15s ease, box-shadow .15s ease;
	max-width: 100%;
}
.tbc-tabs .tbc-rr textarea { min-height: 110px; }
.tbc-tabs .tbc-rr select {
	appearance: none;
	-webkit-appearance: none;
	padding-right: 2.4rem !important;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2313283a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important;
	background-position: right .8rem center !important;
	cursor: pointer;
}
.tbc-tabs .tbc-rr input:hover,
.tbc-tabs .tbc-rr select:hover,
.tbc-tabs .tbc-rr textarea:hover { border-color: var(--rr-dark-2) !important; }
.tbc-tabs .tbc-rr input:focus,
.tbc-tabs .tbc-rr select:focus,
.tbc-tabs .tbc-rr textarea:focus {
	outline: none !important;
	border-color: var(--rr-dark) !important;
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--rr-accent) 55%, transparent) !important;
}
.tbc-tabs .tbc-rr input::placeholder,
.tbc-tabs .tbc-rr textarea::placeholder { color: #8b979f; }

/* Checkboxen & Radios in Akzentfarbe */
.tbc-tabs .tbc-rr input[type="checkbox"],
.tbc-tabs .tbc-rr input[type="radio"] {
	width: 1.2rem; height: 1.2rem; min-height: 0;
	accent-color: var(--rr-dark-2);
	vertical-align: -.2rem;
	margin-right: .4rem;
	cursor: pointer;
}

/* Pflichtfeld- und Fehlerhinweise */
.tbc-tabs .tbc-rr [class*="rror"],
.tbc-tabs .tbc-rr [class*="Invalid"],
.tbc-tabs .tbc-rr .invalid {
	color: #b42318 !important;
}
.tbc-tabs .tbc-rr input[class*="rror"],
.tbc-tabs .tbc-rr select[class*="rror"],
.tbc-tabs .tbc-rr input:invalid:not(:placeholder-shown) { border-color: #d92d20 !important; background-color: #fff6f5 !important; }

/* Bildboxen der Anmeldung (PICBOX) */
.tbc-tabs .tbc-rr .RegPicBox {
	border: 1px solid var(--rr-line) !important;
	border-radius: var(--rr-radius) !important;
	padding: 1rem !important;
	background: var(--rr-zebra) !important;
}

/* Feldgruppen */
.tbc-tabs .tbc-rr fieldset {
	border: 1px solid var(--rr-line) !important;
	border-radius: var(--rr-radius);
	padding: 1rem 1.2rem 1.2rem;
	margin: 0 0 1.2rem;
}

/* ==========================================================================
   Buttons (Weiter, Anmelden, Absenden, Suche …)
   ========================================================================== */
.tbc-tabs .tbc-rr button,
.tbc-tabs .tbc-rr input[type="button"],
.tbc-tabs .tbc-rr input[type="submit"],
.tbc-tabs .tbc-rr .button,
.tbc-tabs .tbc-rr a[class*="Button"],
.tbc-tabs .tbc-rr a[class*="btn"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .4em;
	min-height: 44px;
	padding: .65em 1.4em !important;
	border: 2px solid var(--rr-accent) !important;
	border-radius: 999px !important;
	background: var(--rr-accent) !important;
	color: var(--rr-ink) !important;
	font-family: var(--tbc-font-display, "Barlow Condensed", "Arial Narrow", sans-serif) !important;
	font-weight: 800 !important;
	font-style: italic;
	text-transform: uppercase;
	letter-spacing: .02em;
	font-size: 1.05rem !important;
	line-height: 1 !important;
	text-decoration: none !important;
	box-shadow: none !important;
	cursor: pointer;
	transition: transform .15s ease, background-color .15s ease;
}
.tbc-tabs .tbc-rr button:hover,
.tbc-tabs .tbc-rr input[type="button"]:hover,
.tbc-tabs .tbc-rr input[type="submit"]:hover,
.tbc-tabs .tbc-rr .button:hover,
.tbc-tabs .tbc-rr a[class*="Button"]:hover {
	background: #e7ff3a !important;
	border-color: #e7ff3a !important;
	transform: translateY(-1px);
}
.tbc-tabs .tbc-rr button:focus-visible,
.tbc-tabs .tbc-rr input[type="submit"]:focus-visible,
.tbc-tabs .tbc-rr input[type="button"]:focus-visible { outline: 3px solid var(--rr-dark) !important; outline-offset: 2px; }
.tbc-tabs .tbc-rr button:disabled,
.tbc-tabs .tbc-rr input[type="submit"]:disabled,
.tbc-tabs .tbc-rr input[type="button"]:disabled { opacity: .45; cursor: not-allowed; transform: none; }

/* Zurück-/Abbrechen-Buttons dezenter */
.tbc-tabs .tbc-rr button[class*="ack"],
.tbc-tabs .tbc-rr button[class*="ancel"],
.tbc-tabs .tbc-rr input[type="button"][value*="Zurück"],
.tbc-tabs .tbc-rr input[type="button"][value*="Abbrechen"] {
	background: transparent !important;
	border-color: var(--rr-dark-2) !important;
	color: var(--rr-dark-2) !important;
}

/* ==========================================================================
   Listen (Teilnehmer & Ergebnisse)
   ========================================================================== */
.tbc-tabs :is(.tbc-rr--participants, .tbc-rr--results) table {
	width: 100% !important;
	border-collapse: collapse !important;
	border: 0 !important;
	background: #fff !important;
	font-size: .97rem;
	font-variant-numeric: tabular-nums;
}
.tbc-tabs :is(.tbc-rr--participants, .tbc-rr--results) th,
.tbc-tabs :is(.tbc-rr--participants, .tbc-rr--results) thead td,
.tbc-tabs :is(.tbc-rr--participants, .tbc-rr--results) tr.head td,
.tbc-tabs :is(.tbc-rr--participants, .tbc-rr--results) tr[class*="Head"] td {
	background: var(--rr-dark) !important;
	color: #fff !important;
	font-family: var(--tbc-font-display, "Barlow Condensed", "Arial Narrow", sans-serif) !important;
	font-weight: 800 !important;
	font-style: italic;
	text-transform: uppercase;
	letter-spacing: .03em;
	font-size: .95rem !important;
	padding: .7rem .75rem !important;
	border: 0 !important;
	text-align: left;
	white-space: nowrap;
}
.tbc-tabs :is(.tbc-rr--participants, .tbc-rr--results) th a,
.tbc-tabs :is(.tbc-rr--participants, .tbc-rr--results) thead td a,
.tbc-tabs :is(.tbc-rr--participants, .tbc-rr--results) tr.head td a { color: #fff !important; text-decoration: none; }
.tbc-tabs :is(.tbc-rr--participants, .tbc-rr--results) thead tr:first-child th:first-child { border-top-left-radius: var(--rr-radius); }
.tbc-tabs :is(.tbc-rr--participants, .tbc-rr--results) thead tr:first-child th:last-child { border-top-right-radius: var(--rr-radius); }

.tbc-tabs :is(.tbc-rr--participants, .tbc-rr--results) td {
	padding: .6rem .75rem !important;
	border: 0 !important;
	border-bottom: 1px solid var(--rr-line) !important;
	background: transparent;
	color: var(--rr-text) !important;
	vertical-align: middle;
}
.tbc-tabs :is(.tbc-rr--participants, .tbc-rr--results) tbody tr:nth-child(even) td { background: var(--rr-zebra) !important; }
.tbc-tabs :is(.tbc-rr--participants, .tbc-rr--results) tbody tr:hover td { background: color-mix(in srgb, var(--rr-accent) 18%, #fff) !important; }

/* Gruppenzeilen (z. B. Altersklasse, Bewerb) */
.tbc-tabs :is(.tbc-rr--participants, .tbc-rr--results) tr[class*="roup"] td,
.tbc-tabs :is(.tbc-rr--participants, .tbc-rr--results) td[class*="roup"],
.tbc-tabs :is(.tbc-rr--participants, .tbc-rr--results) td[colspan] {
	background: var(--rr-accent) !important;
	color: var(--rr-ink) !important;
	font-family: var(--tbc-font-display, "Barlow Condensed", "Arial Narrow", sans-serif) !important;
	font-weight: 800 !important;
	font-style: italic;
	text-transform: uppercase;
	font-size: 1.05rem !important;
	padding: .55rem .75rem !important;
	border-bottom: 0 !important;
}

/* Platzierung (erste Spalte) hervorheben */
.tbc-tabs :is(.tbc-rr--participants, .tbc-rr--results) tbody td:first-child { font-weight: 700; }

/* Tabellen am Handy horizontal scrollbar statt gequetscht */
.tbc-tabs .tbc-rr--participants,
.tbc-tabs .tbc-rr--results { overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (max-width: 700px) {
	.tbc-tabs :is(.tbc-rr--participants, .tbc-rr--results) table { font-size: .88rem; }
	.tbc-tabs :is(.tbc-rr--participants, .tbc-rr--results) th, .tbc-tabs :is(.tbc-rr--participants, .tbc-rr--results) td { padding: .5rem .5rem !important; }
}

/* ---------- Auswahl-Reiter / Filter oberhalb der Listen ---------- */
.tbc-tabs :is(.tbc-rr--participants, .tbc-rr--results) ul[class*="tab"],
.tbc-tabs :is(.tbc-rr--participants, .tbc-rr--results) div[class*="Tabs"],
.tbc-tabs :is(.tbc-rr--participants, .tbc-rr--results) div[class*="Selector"] {
	display: flex;
	flex-wrap: wrap;
	gap: .4rem;
	margin: 0 0 1rem;
	padding: 0;
	list-style: none;
	border: 0 !important;
	background: transparent !important;
}
.tbc-tabs :is(.tbc-rr--participants, .tbc-rr--results) ul[class*="tab"] li a,
.tbc-tabs :is(.tbc-rr--participants, .tbc-rr--results) div[class*="Tabs"] a {
	display: inline-block;
	padding: .45em 1em !important;
	border: 1.5px solid var(--rr-line) !important;
	border-radius: 999px !important;
	background: #fff !important;
	color: var(--rr-dark-2) !important;
	font-weight: 700;
	text-decoration: none !important;
}
.tbc-tabs :is(.tbc-rr--participants, .tbc-rr--results) ul[class*="tab"] li.active a,
.tbc-tabs :is(.tbc-rr--participants, .tbc-rr--results) ul[class*="tab"] li[class*="elected"] a,
.tbc-tabs :is(.tbc-rr--participants, .tbc-rr--results) div[class*="Tabs"] a[class*="ctive"],
.tbc-tabs :is(.tbc-rr--participants, .tbc-rr--results) div[class*="Tabs"] a[class*="elected"] {
	background: var(--rr-dark) !important;
	border-color: var(--rr-dark) !important;
	color: #fff !important;
}

/* Seiten-Navigation (Blättern) */
.tbc-tabs :is(.tbc-rr--participants, .tbc-rr--results) [class*="aging"] a,
.tbc-tabs :is(.tbc-rr--participants, .tbc-rr--results) [class*="ages"] a {
	display: inline-grid;
	place-items: center;
	min-width: 2.2rem;
	height: 2.2rem;
	padding: 0 .5rem;
	margin: .15rem;
	border-radius: 999px;
	background: var(--rr-zebra);
	text-decoration: none !important;
	font-weight: 700;
}

/* Bilder/Logos in den Widgets nicht überlaufen lassen */
.tbc-tabs .tbc-rr img { max-width: 100%; height: auto; }

/* Ladehinweis */
.tbc-tabs .tbc-rr .tbc-rr__loading { display: flex; align-items: center; gap: .6rem; }
.tbc-tabs .tbc-rr .tbc-rr__loading::before {
	content: ""; width: 1.1rem; height: 1.1rem; border-radius: 50%;
	border: 3px solid var(--rr-line); border-top-color: var(--rr-dark-2);
	animation: tbc-spin .8s linear infinite;
}
@keyframes tbc-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .tbc-tabs .tbc-rr .tbc-rr__loading::before { animation: none; } }


/* ==========================================================================
   RRRegStart – Anmeldeformular (Struktur laut RaceResult v14: .RRReg …)
   Spezifität bewusst hoch (.tbc-tabs .tbc-rr .RRReg …), damit die Regeln
   gegen registration.css von RaceResult gewinnen.
   ========================================================================== */
.tbc-tabs .tbc-rr.tbc-rr--registration { background: transparent; border: 0; padding: 0; }
.tbc-tabs .tbc-rr .RRReg { width: 100% !important; max-width: none !important; margin: 0 !important; color: var(--rr-text); }
.tbc-tabs .tbc-rr .RRReg .RRReg_Main { width: 100% !important; max-width: none !important; margin: 0 !important; padding: 0 !important; }

/* ---------- Schritt-Navigation ---------- */
.tbc-tabs .tbc-rr .RRReg .RRReg_Nav { margin: 0 0 1.5rem !important; padding: 0 !important; background: transparent !important; }
.tbc-tabs .tbc-rr .RRReg .RRReg_Nav > div {
	display: flex !important; gap: .35rem; overflow-x: auto; scrollbar-width: none;
	padding: .4rem !important; margin: 0 !important;
	background: var(--rr-dark) !important; border-radius: var(--tbc-radius, 14px);
	counter-reset: rrstep;
}
.tbc-tabs .tbc-rr .RRReg .RRReg_Nav > div::-webkit-scrollbar { display: none; }
.tbc-tabs .tbc-rr .RRReg .RRReg_Nav > div > div {
	flex: 1 0 auto; display: flex; align-items: center; justify-content: center; gap: .5rem;
	padding: .65rem 1rem !important; margin: 0 !important; border: 0 !important; border-radius: 10px !important;
	background: transparent !important; color: #c8d2d8 !important; opacity: 1 !important;
	font-family: var(--tbc-font-display, "Barlow Condensed", "Arial Narrow", sans-serif) !important;
	font-weight: 800 !important; font-style: italic; text-transform: uppercase; letter-spacing: .02em; font-size: 1rem !important;
	white-space: nowrap; counter-increment: rrstep; clip-path: none !important;
}
.tbc-tabs .tbc-rr .RRReg .RRReg_Nav > div > div::before {
	content: counter(rrstep); display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%;
	background: rgba(255,255,255,.1); color: #fff; font-style: normal; font-size: .85rem;
}
.tbc-tabs .tbc-rr .RRReg .RRReg_Nav > div > div.selected { background: var(--rr-accent) !important; color: var(--rr-ink) !important; }
.tbc-tabs .tbc-rr .RRReg .RRReg_Nav > div > div.selected::before { background: var(--rr-ink); color: var(--rr-accent); }
.tbc-tabs .tbc-rr .RRReg .RRReg_Nav > div > div.disabled { color: #7f909b !important; }
.tbc-tabs .tbc-rr .RRReg .RRReg_Nav > div > div:not(.selected):not(.disabled) { cursor: pointer; }
.tbc-tabs .tbc-rr .RRReg .RRReg_Nav > div > div:not(.selected):not(.disabled):hover { background: rgba(255,255,255,.08) !important; color: #fff !important; }
.tbc-tabs .tbc-rr .RRReg .RRReg_Nav > div > div::after { display: none !important; }
@media (max-width: 700px) {
	/* Am Handy nur Nummern, aktiver Schritt mit Text */
	.tbc-tabs .tbc-rr .RRReg .RRReg_Nav > div > div:not(.selected) { font-size: 0 !important; flex: 0 0 auto; padding: .55rem !important; }
	.tbc-tabs .tbc-rr .RRReg .RRReg_Nav > div > div.selected { flex: 1 0 auto; }
}

/* ---------- Seiten-Layout: Boxen als Karten im Raster ---------- */
.tbc-tabs .tbc-rr .RRReg .RRReg_Page:not([style*="none"]) {
	display: grid !important;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 1.25rem;
	align-items: start;
}
.tbc-tabs .tbc-rr .RRReg .RRReg_Page > :not(.RRReg_Box) { grid-column: 1 / -1; }

.tbc-tabs .tbc-rr .RRReg .RRReg_Box {
	width: auto !important; max-width: none !important; margin: 0 !important;
	padding: 1.3rem 1.3rem 1.1rem !important;
	background: #fff !important; border: 1px solid var(--rr-line) !important; border-radius: var(--tbc-radius, 14px) !important;
	box-shadow: 0 10px 30px -24px rgba(12,25,36,.45) !important;
	font-weight: 400 !important;
}
/* Box-Überschrift (z. B. „Teilnahmebedingungen“, „Startgeld“) */
.tbc-tabs .tbc-rr .RRReg .RRReg_Box > p:first-child {
	margin: 0 0 .9rem !important; padding: 0 0 .6rem !important; border-bottom: 3px solid var(--rr-accent);
	font-family: var(--tbc-font-display, "Barlow Condensed", "Arial Narrow", sans-serif) !important;
	font-weight: 800 !important; font-style: italic; text-transform: uppercase; font-size: 1.25rem !important; color: var(--rr-dark) !important;
}
.tbc-tabs .tbc-rr .RRReg .RRReg_Box .children { display: grid; gap: .8rem; margin: 0 !important; padding: 0 !important; }
.tbc-tabs .tbc-rr .RRReg .RRReg_Field { margin: 0 !important; padding: 0 !important; width: auto; }

/* PLZ | Ort nebeneinander */
.tbc-tabs .tbc-rr .RRReg .RRReg_Table { display: flex !important; gap: .8rem; margin: 0 !important; }
.tbc-tabs .tbc-rr .RRReg .RRReg_Table > .RRReg_Field { flex: 1 1 0; min-width: 0; }
.tbc-tabs .tbc-rr .RRReg .RRReg_Table > .RRReg_Field[style*="width"] { flex: 0 0 34%; width: auto !important; }

/* ---------- Eingabefelder mit Label im Feld ---------- */
.tbc-tabs .tbc-rr .RRReg .RRReg_EntryField {
	position: relative !important; display: block; margin: 0 !important; padding: 0 !important;
	border: 0 !important; box-shadow: none !important; background: none !important;
}
.tbc-tabs .tbc-rr .RRReg .RRReg_EntryField::before,
.tbc-tabs .tbc-rr .RRReg .RRReg_EntryField::after { display: none !important; }

.tbc-tabs .tbc-rr .RRReg .RRReg_EntryField > input,
.tbc-tabs .tbc-rr .RRReg .RRReg_EntryField > select,
.tbc-tabs .tbc-rr .RRReg .RRReg_EntryField > textarea {
	display: block; width: 100% !important; height: auto !important; min-height: 56px !important; margin: 0 !important;
	padding: 1.45rem .9rem .45rem !important;
	border: 1.5px solid #c9d0c4 !important; border-left-width: 1.5px !important; border-left-color: #c9d0c4 !important;
	border-radius: 10px !important; background-color: #fff !important; color: var(--rr-text) !important;
	font-size: 1.02rem !important; font-weight: 500 !important; line-height: 1.3 !important;
	box-shadow: none !important; outline: none !important;
}
.tbc-tabs .tbc-rr .RRReg .RRReg_EntryField > select { padding-right: 2.4rem !important; }
.tbc-tabs .tbc-rr .RRReg .RRReg_EntryField > input:hover,
.tbc-tabs .tbc-rr .RRReg .RRReg_EntryField > select:hover { border-color: var(--rr-dark-2) !important; }
.tbc-tabs .tbc-rr .RRReg .RRReg_EntryField > input:focus,
.tbc-tabs .tbc-rr .RRReg .RRReg_EntryField > select:focus,
.tbc-tabs .tbc-rr .RRReg .RRReg_EntryField > textarea:focus {
	border-color: var(--rr-dark) !important;
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--rr-accent) 55%, transparent) !important;
}
.tbc-tabs .tbc-rr .RRReg .RRReg_EntryField > label {
	position: absolute !important; top: .5rem !important; left: .95rem !important; right: 2.2rem !important;
	margin: 0 !important; padding: 0 !important; background: none !important; border: 0 !important;
	transform: none !important; pointer-events: none;
	font-size: .72rem !important; font-weight: 700 !important; text-transform: uppercase; letter-spacing: .07em; line-height: 1.2 !important;
	color: var(--rr-muted) !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tbc-tabs .tbc-rr .RRReg .RRReg_EntryField > input:focus + label,
.tbc-tabs .tbc-rr .RRReg .RRReg_EntryField > select:focus + label { color: var(--rr-dark) !important; }

/* Pflichtfelder: Stern statt roter Randlinie */
.tbc-tabs .tbc-rr .RRReg .RRReg_Mandatory > label::after { content: " *"; color: #c0392b; }

/* Fehlerhafte Felder (RaceResult setzt dafür Klassen mit "Error"/"Invalid") */
.tbc-tabs .tbc-rr .RRReg [class*="rror"] > input,
.tbc-tabs .tbc-rr .RRReg [class*="rror"] > select,
.tbc-tabs .tbc-rr .RRReg [class*="nvalid"] > input,
.tbc-tabs .tbc-rr .RRReg [class*="nvalid"] > select,
.tbc-tabs .tbc-rr .RRReg .RRReg_EntryField > input[class*="rror"],
.tbc-tabs .tbc-rr .RRReg .RRReg_EntryField > select[class*="rror"] {
	border-color: #d92d20 !important; background-color: #fff6f5 !important;
}
.tbc-tabs .tbc-rr .RRReg [class*="rror"] > label,
.tbc-tabs .tbc-rr .RRReg [class*="nvalid"] > label { color: #b42318 !important; }

/* ---------- Texte (Teilnahmebedingungen) ---------- */
.tbc-tabs .tbc-rr .RRReg .RRReg_Text,
.tbc-tabs .tbc-rr .RRReg .RRReg_Text p { font-weight: 400 !important; font-size: .95rem; line-height: 1.6; color: var(--rr-text); margin: 0; }
.tbc-tabs .tbc-rr .RRReg .RRReg_Text { max-height: 340px; overflow: auto; padding-right: .4rem; }

/* ---------- Zusammenfassung „Ihre Eingaben“ ---------- */
.tbc-tabs .tbc-rr .RRReg .RRReg_Box .children:has(> .RRReg_Value) { gap: 0; }
.tbc-tabs .tbc-rr .RRReg .RRReg_Value {
	display: grid !important; grid-template-columns: minmax(110px, 40%) 1fr; gap: .8rem;
	padding: .5rem 0 !important; margin: 0 !important; border-bottom: 1px solid var(--rr-line);
	font-weight: 400 !important;
}
.tbc-tabs .tbc-rr .RRReg .RRReg_Value:last-child { border-bottom: 0; }
.tbc-tabs .tbc-rr .RRReg .RRReg_Value > div { padding: 0 !important; margin: 0 !important; width: auto !important; }
.tbc-tabs .tbc-rr .RRReg .RRReg_Value > div:first-child { color: var(--rr-muted); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; align-self: center; }
.tbc-tabs .tbc-rr .RRReg .RRReg_Value > div:last-child { font-weight: 600; overflow-wrap: anywhere; }

/* ---------- Startgeld-Tabelle ---------- */
.tbc-tabs .tbc-rr .RRReg .RRReg_EntryFees table { width: 100% !important; border-collapse: collapse !important; font-size: .95rem; font-weight: 400; font-variant-numeric: tabular-nums; }
.tbc-tabs .tbc-rr .RRReg .RRReg_EntryFees thead td {
	padding: .45rem .5rem !important; border-bottom: 2px solid var(--rr-dark) !important; background: transparent !important;
	color: var(--rr-muted) !important; font-size: .72rem !important; font-weight: 700 !important; text-transform: uppercase; letter-spacing: .06em;
}
.tbc-tabs .tbc-rr .RRReg .RRReg_EntryFees td { padding: .55rem .5rem !important; border-bottom: 1px solid var(--rr-line) !important; }
.tbc-tabs .tbc-rr .RRReg .RRReg_EntryFees td:nth-last-child(-n+2),
.tbc-tabs .tbc-rr .RRReg .RRReg_EntryFees thead td:nth-last-child(-n+2) { text-align: right; }
.tbc-tabs .tbc-rr .RRReg .RRReg_EntryFees_Sum td {
	border-bottom: 0 !important; padding-top: .8rem !important;
	font-family: var(--tbc-font-display, "Barlow Condensed", "Arial Narrow", sans-serif) !important;
	font-weight: 800 !important; font-style: italic; font-size: 1.2rem !important; text-transform: uppercase; color: var(--rr-dark) !important;
}

/* ---------- Buttons ---------- */
.tbc-tabs .tbc-rr .RRReg .RRReg_Buttons { margin: .4rem 0 0 !important; padding: 0 !important; }
.tbc-tabs .tbc-rr .RRReg .RRReg_Buttons > div { display: flex !important; flex-wrap: wrap; gap: .7rem; justify-content: space-between; }
.tbc-tabs .tbc-rr .RRReg .RRReg_Buttons > div[style*="end"] { justify-content: flex-end !important; }
.tbc-tabs .tbc-rr .RRReg .RRReg_Buttons button { min-width: 180px; min-height: 50px; font-size: 1.15rem !important; }
.tbc-tabs .tbc-rr .RRReg .RRReg_Buttons button.RRReg_ButtonBack {
	min-width: 0; background: transparent !important; border-color: var(--rr-dark-2) !important; color: var(--rr-dark-2) !important;
}
.tbc-tabs .tbc-rr .RRReg .RRReg_Buttons button.RRReg_ButtonBack::before { content: "←"; font-style: normal; }
.tbc-tabs .tbc-rr .RRReg .RRReg_Buttons button.RRReg_ButtonBack:hover { background: var(--rr-dark-2) !important; color: #fff !important; }
.tbc-tabs .tbc-rr .RRReg .RRReg_Buttons button:not(.RRReg_ButtonBack)::after { content: "→"; font-style: normal; }
@media (max-width: 520px) {
	.tbc-tabs .tbc-rr .RRReg .RRReg_Buttons > div { flex-direction: column-reverse; }
	.tbc-tabs .tbc-rr .RRReg .RRReg_Buttons button { width: 100%; }
}

/* ---------- Bestätigung ---------- */
.tbc-tabs .tbc-rr .RRReg .RRReg_Confirmation {
	padding: clamp(1.2rem, 4vw, 2.2rem) !important; background: #fff; border: 1px solid var(--rr-line);
	border-top: 6px solid var(--rr-accent); border-radius: var(--tbc-radius, 14px);
}
.tbc-tabs .tbc-rr .RRReg .RRReg_Confirmation_Text { font-size: 1.1rem; margin-bottom: 1.2rem; }
.tbc-tabs .tbc-rr .RRReg .RRReg_Confirmation_StartOver a { font-weight: 700; }

/* „Powered by RaceResult“ dezent */
.tbc-tabs .tbc-rr .RRReg > div[style*="static"] { padding-left: 0 !important; opacity: .7; }

/* Startgeld-Box über die volle Breite, Beträge nicht umbrechen, am Handy seitlich scrollbar */
.tbc-tabs .tbc-rr .RRReg .RRReg_Box:has(.RRReg_EntryFees) { grid-column: 1 / -1; min-width: 0; }
.tbc-tabs .tbc-rr .RRReg .RRReg_EntryFees { overflow-x: auto; }
.tbc-tabs .tbc-rr .RRReg .RRReg_EntryFees td:nth-last-child(-n+2) { white-space: nowrap; }

/* ==========================================================================
   RRRegStart – Startansicht (Infos, Bewerbe, Startgeld, „Anmeldung öffnet …“)
   ========================================================================== */
.tbc-tabs .tbc-rr .RRRegStart { background: transparent !important; padding: 0 !important; margin: 0 !important; max-width: none !important; }
.tbc-tabs .tbc-rr .RRRegStart h1 {
	margin: 0 0 1rem !important; padding: 0 0 .6rem !important; border: 0 !important; border-bottom: 3px solid var(--rr-accent) !important;
	font-size: 1.5rem !important; text-align: left !important; background: none !important;
}

/* Info-Text des Veranstalters */
.tbc-tabs .tbc-rr .RRRegStart_divInfoV2 {
	margin: 0 0 1.25rem !important; padding: 1.3rem 1.4rem !important;
	background: #fff !important; border: 1px solid var(--rr-line) !important; border-radius: var(--tbc-radius, 14px) !important;
}
.tbc-tabs .tbc-rr .RRRegStart_divInfoV2 p { margin: 0 !important; text-align: left !important; line-height: 1.6; }
.tbc-tabs .tbc-rr .RRRegStart_divInfoV2 strong { font-weight: 600; }

/* Je Anmeldeart (Einzel-, Team-Anmeldung …) eine Karte */
.tbc-tabs .tbc-rr .RRRegStart_Registrations { display: grid; gap: 1.25rem; margin: 0 !important; padding: 0 !important; background: none !important; }
.tbc-tabs .tbc-rr .RRRegStart_Registrations > div {
	margin: 0 !important; padding: 1.3rem 1.4rem 1.4rem !important;
	background: #fff !important; border: 1px solid var(--rr-line) !important; border-radius: var(--tbc-radius, 14px) !important;
	box-shadow: 0 10px 30px -24px rgba(12,25,36,.45) !important;
}

/* Bewerbe-Tabelle (div-basiert) */
.tbc-tabs .tbc-rr .RRRegStart_Table { display: grid !important; width: 100% !important; margin: 0 0 1.2rem !important; border: 0 !important; }
.tbc-tabs .tbc-rr .RRRegStart_Table > div {
	display: grid !important;
	grid-template-columns: 4.2rem minmax(0, 2.2fr) minmax(0, 1.6fr) 8.5rem;
	gap: .2rem 1rem; align-items: center;
	padding: .75rem .4rem !important; border: 0 !important; border-bottom: 1px solid var(--rr-line) !important; background: none !important;
}
.tbc-tabs .tbc-rr .RRRegStart_Table > div > div { display: block !important; padding: 0 !important; border: 0 !important; width: auto !important; background: none !important; }
.tbc-tabs .tbc-rr .RRRegStart_Table > div > div:nth-child(3),
.tbc-tabs .tbc-rr .RRRegStart_Table > div > div:nth-child(6):empty { display: none !important; }
/* Kopfzeile */
.tbc-tabs .tbc-rr .RRRegStart_Table > div:first-child { border-bottom: 2px solid var(--rr-dark) !important; padding-bottom: .5rem !important; }
.tbc-tabs .tbc-rr .RRRegStart_Table > div:first-child > div { color: var(--rr-muted) !important; font-size: .72rem !important; font-weight: 700 !important; text-transform: uppercase; letter-spacing: .07em; }
.tbc-tabs .tbc-rr .RRRegStart_Table > div:first-child > div:nth-child(5) { text-align: right; }
/* Zeilen */
.tbc-tabs .tbc-rr .RRRegStart_Table > div:not(:first-child) > div:nth-child(1) {
	font-family: var(--tbc-font-display, "Barlow Condensed", "Arial Narrow", sans-serif) !important; font-weight: 800 !important; font-size: 1.15rem; color: var(--rr-dark) !important;
}
.tbc-tabs .tbc-rr .RRRegStart_Table > div:not(:first-child) > div:nth-child(2) { font-weight: 700 !important; color: var(--rr-text) !important; }
.tbc-tabs .tbc-rr .RRRegStart_Table > div:not(:first-child) > div:nth-child(4) { color: var(--rr-muted) !important; font-size: .95rem; }
.tbc-tabs .tbc-rr .RRRegStart_Table > div > div:nth-child(5) { text-align: right; white-space: nowrap; }
.tbc-tabs .tbc-rr .RRRegStart_Table table { width: auto !important; margin-left: auto; border: 0 !important; background: none !important; }
.tbc-tabs .tbc-rr .RRRegStart_Table td { padding: 0 0 0 .5rem !important; border: 0 !important; background: none !important; font-weight: 700; color: var(--rr-text) !important; }
.tbc-tabs .tbc-rr .RRRegStart_Table tr.RRRegStart_FeeInactive td { color: var(--rr-muted) !important; font-weight: 500; }
.tbc-tabs .tbc-rr .RRRegStart_Table tr:not(.RRRegStart_FeeInactive) td:last-child { color: var(--rr-dark) !important; }
/* Geschlossene/noch nicht offene Bewerbe nicht ausgrauen – sind ja Information */
.tbc-tabs .tbc-rr .RRRegStart_Table > .RRRegStart_Closed { opacity: 1 !important; color: inherit !important; }

@media (max-width: 700px) {
	/* Handy: je Bewerb ein Block – Zeit links, rechts Name / Teilnehmer / Startgeld untereinander */
	.tbc-tabs .tbc-rr .RRRegStart_Registrations > div { padding: 1rem 1rem 1.1rem !important; }
	.tbc-tabs .tbc-rr .RRRegStart_Table > div {
		grid-template-columns: 3.3rem minmax(0, 1fr) !important;
		gap: .1rem .75rem;
		padding: .8rem 0 !important;
		align-items: start;
	}
	.tbc-tabs .tbc-rr .RRRegStart_Table > div:first-child { display: none !important; }
	.tbc-tabs .tbc-rr .RRRegStart_Table > div > div:nth-child(1) { grid-column: 1; grid-row: 1 / span 3; font-size: 1.15rem !important; line-height: 1.3; }
	.tbc-tabs .tbc-rr .RRRegStart_Table > div > div:nth-child(2) { grid-column: 2; grid-row: 1; }
	.tbc-tabs .tbc-rr .RRRegStart_Table > div > div:nth-child(4) { grid-column: 2; grid-row: 2; font-size: .9rem !important; }
	.tbc-tabs .tbc-rr .RRRegStart_Table > div > div:nth-child(5) { grid-column: 2; grid-row: 3; text-align: left; white-space: normal; margin-top: .2rem; }
	.tbc-tabs .tbc-rr .RRRegStart_Table > div > div:nth-child(6) { grid-column: 2; }
	.tbc-tabs .tbc-rr .RRRegStart_Table table { margin-left: 0; }
	.tbc-tabs .tbc-rr .RRRegStart_Table td { padding: 0 !important; }
	.tbc-tabs .tbc-rr .RRRegStart_Table table { border-collapse: collapse !important; border-spacing: 0 !important; }
	.tbc-tabs .tbc-rr .RRRegStart_Table td + td { padding-left: .2em !important; }
	.tbc-tabs .tbc-rr .RRRegStart_Table tr td:last-child { font-weight: 800; }
	.tbc-tabs .tbc-rr .RRRegStart_divInfoV2 { padding: 1rem !important; }
	.tbc-tabs .tbc-rr .RRRegStart h1 { font-size: 1.3rem !important; }
}

/* Anmelde-Button der Startansicht */
.tbc-tabs .tbc-rr .RRRegStart_Registrations > div > button { margin-left: auto; display: flex; min-height: 50px; font-size: 1.15rem !important; }
.tbc-tabs .tbc-rr .RRRegStart_Registrations > div > button:not(:disabled)::after { content: "→"; font-style: normal; }
/* „Anmeldung öffnet …“ (deaktiviert) */
.tbc-tabs .tbc-rr .RRRegStart button:disabled {
	opacity: 1 !important; transform: none !important; cursor: default !important;
	background: var(--rr-dark) !important; border-color: var(--rr-dark) !important; color: #fff !important;
}
.tbc-tabs .tbc-rr .RRRegStart button:disabled::before { content: "🕒"; font-style: normal; margin-right: .2rem; }
@media (max-width: 520px) { .tbc-tabs .tbc-rr .RRRegStart_Registrations > div > button { width: 100%; } }

/* Logos (Zeitnehmer, Powered by) */
.tbc-tabs .tbc-rr .RRRegStart > div[style*="static"] { padding-left: 0 !important; opacity: .8; }
