/* Rennen-Daten: Datenkarte, Kachel-Kurzinfo, Filterleiste (passt zum Raceskinning-Theme). */

.rs-daten {
	display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px;
	margin: 0 0 22px; padding: 14px; border-radius: 6px 6px 18px 0;
	background: rgba(0, 0, 0, .2); border-left: 4px solid var(--rs-orange, #f67829);
}
.rs-daten-item { display: flex; align-items: center; gap: 10px; min-width: 0; }
.rs-daten-item .rs-icon { width: 26px; height: 26px; }
.rs-daten-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.rs-daten-label { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--rs-muted, #b0b6bc); }
.rs-daten-value { color: #fff; font-weight: 600; overflow-wrap: break-word; }
.rs-daten-value a { color: var(--rs-link, #6cc4f2); }
.rs-daten-value strong { font-family: var(--rs-head, inherit); font-size: 17px; }
.rs-daten-line { display: block; white-space: nowrap; }
.rs-daten-item--lap { grid-column: 1 / -1; }
.rs-daten-item--lap .rs-daten-value strong { font-size: 26px; }

.rs-card-facts { display: flex; flex-wrap: wrap; gap: 6px 12px; margin: 0 0 8px; font-size: 13px; color: #e6e6e6; }
.rs-card-fact { display: inline-flex; align-items: center; gap: 5px; }
.rs-card-fact .rs-icon { width: 15px; height: 15px; }

.rs-filter {
	display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
	margin: 0 0 20px; padding: 12px 14px; border-radius: 6px 6px 18px 0;
	background: var(--rs-card, #444);
	box-shadow: 0 0 3px rgba(0, 0, 0, .12), 0 1px 2px rgba(0, 0, 0, .24);
}
.rs-filter-field { display: inline-flex; align-items: center; gap: 6px; }
.rs-filter-field .rs-icon { width: 20px; height: 20px; }
.rs-filter select { min-width: 150px; max-width: 220px; }
.rs-filter-reset { margin-left: auto; font-size: 14px; }
/* Bestzeiten-Tabelle [rs_bestzeiten] */
.rs-bz-filter { margin-bottom: 18px; }
.rs-bz-track { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; }
.rs-bz-track .rs-icon { width: 28px; height: 28px; flex: none; }
.rs-bz-group { margin: 0 0 30px; }
.rs-bz-title { margin: 0 0 10px; }
.rs-bz-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--rs-line, rgba(255, 255, 255, .12)); border-radius: var(--rs-radius, 10px); }
.rs-bz-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; min-width: 560px; }
.rs-bz-table th, .rs-bz-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--rs-line, rgba(255, 255, 255, .1)); white-space: nowrap; }
.rs-bz-table thead th { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--rs-muted, #b0b6bc); background: rgba(0, 0, 0, .18); }
.rs-bz-table tbody tr:last-child td { border-bottom: 0; }
.rs-bz-table tbody tr:hover { background: rgba(108, 196, 242, .06); }
.rs-bz-pos { width: 1%; color: var(--rs-muted, #b0b6bc); }
.rs-bz-car a { color: #fff; font-weight: 600; }
.rs-bz-lap { font-family: var(--rs-head, inherit); font-weight: 700; font-size: 17px; color: #fff; }
.rs-bz-gap { color: var(--rs-muted, #b0b6bc); }
.rs-bz-best .rs-bz-gap { color: var(--rs-link, #6cc4f2); font-weight: 700; }
.rs-bz-best .rs-bz-lap { color: var(--rs-link, #6cc4f2); }
.rs-bz-btn { display: inline-block; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--rs-line, rgba(108, 196, 242, .3)); color: #fff; font-size: 14px; }
.rs-bz-btn:hover { background: var(--rs-orange, #f67829); border-color: var(--rs-orange, #f67829); color: #fff; }
.rs-bz-note { font-size: 14px; color: var(--rs-muted, #b0b6bc); }
/* Handy: Patch und Preis ausblenden, lange Autonamen umbrechen – Rundenzeit bleibt ohne Wischen sichtbar */
@media (max-width: 600px) {
	.rs-bz-table { min-width: 0; }
	.rs-bz-table th:nth-child(n+5), .rs-bz-table td:nth-child(n+5) { display: none; }
	.rs-bz-table th, .rs-bz-table td { padding: 9px 7px; }
	.rs-bz-table td.rs-bz-car { white-space: normal; line-height: 1.3; }
	.rs-bz-table .rs-bz-lap { font-size: 15px; }
	.rs-bz-table .rs-bz-gap { font-size: 13px; }
}

/* Testbedingungen: Zeile (Bestzeiten, Setup), Knopf (Filterleiste), Fenster mit Screenshot */
.rs-tb { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 22px; padding: 12px 14px; border-radius: var(--rs-radius, 10px);
	border: 1px solid var(--rs-line, rgba(255, 255, 255, .12)); background: rgba(0, 109, 165, .1); font-size: 15px; line-height: 1.5; }
.rs-tb .rs-icon { flex: none; width: 22px; height: 22px; margin-top: 1px; }
.rs-tb strong { color: #fff; }
.rs-tb-link { white-space: nowrap; font-weight: 600; }
.rs-tb-btn { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; padding: 7px 14px; border-radius: 999px;
	border: 1px solid var(--rs-line, rgba(108, 196, 242, .3)); color: #fff !important; font-size: 14px; font-weight: 600; white-space: nowrap; }
.rs-tb-btn:hover { border-color: var(--rs-link, #6cc4f2); background: rgba(0, 109, 165, .25); }
.rs-tb-btn .rs-icon { width: 18px; height: 18px; }
.rs-filter-reset + .rs-tb-btn { margin-left: 12px; }
.rs-bz-own { color: var(--rs-orange, #f67829); text-decoration: none; cursor: help; font-size: 13px; vertical-align: super; }
.rs-tb-dialog { max-width: min(1100px, 94vw); padding: 14px; border: 1px solid var(--rs-line, rgba(108, 196, 242, .3)); border-radius: 12px;
	background: var(--rs-card, #0e1824); color: var(--rs-text, #d3dde7); }
.rs-tb-dialog::backdrop { background: rgba(3, 8, 13, .8); }
.rs-tb-dialog img { display: block; max-width: 100%; max-height: 78vh; height: auto; margin: 0 auto; border-radius: 6px; }
.rs-tb-dialog-title { margin: 0 40px 10px 2px; font-size: 14px; color: var(--rs-muted, #8fa1b2); }
.rs-tb-close { position: absolute; top: 8px; right: 10px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .08); color: #fff; font-size: 16px; cursor: pointer; }
.rs-tb-close:hover { background: rgba(255, 255, 255, .18); }

/* Änderungsverlauf unter einem Setup */
.rs-changelog { margin: 28px 0 0; padding: 16px 18px; border-radius: var(--rs-radius, 10px); border: 1px solid var(--rs-line, rgba(255, 255, 255, .12)); background: rgba(0, 0, 0, .15); }
.rs-changelog h2 { margin: 0 0 8px; font-size: 20px; }
.rs-changelog ul { margin: 0; padding-left: 18px; }
.rs-changelog li { margin: 4px 0; }
.rs-changelog b { color: var(--rs-link, #6cc4f2); font-variant-numeric: tabular-nums; }

@media (max-width: 760px) {
	.rs-filter-field { flex: 1 1 100%; }
	.rs-filter select { flex: 1; max-width: none; }
	.rs-filter-reset { margin-left: 0; }
}
