:root { --rvGold: #f5c451; --rvGoldRGB: 245, 196, 81; }
.rv { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.rv * { box-sizing: border-box; }

.rv-held { position: relative; overflow: hidden; border-radius: 16px; padding: 16px 16px 14px;
  background: radial-gradient(120% 110% at 0% 0%, rgba(var(--rvGoldRGB), .16) 0%, rgba(14, 16, 22, .2) 46%, transparent 100%), var(--bg-input);
  border: 1px solid rgba(var(--rvGoldRGB), .38);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(var(--rvGoldRGB), .16); }
.rv-held::after { content: ''; position: absolute; right: -60px; top: -80px; width: 240px; height: 240px; pointer-events: none;
  background: radial-gradient(circle, rgba(var(--rvGoldRGB), .22) 0%, transparent 65%); animation: rvAtem 5s ease-in-out infinite; }
@keyframes rvAtem { 0%, 100% { opacity: .55; transform: scale(1); } 50% { opacity: 1; transform: scale(1.08); } }
.rv-held > * { position: relative; z-index: 1; }
.rv-band { display: inline-flex; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 800; letter-spacing: 1.3px;
  text-transform: uppercase; color: rgba(var(--rvGoldRGB), .95); border: 1px solid rgba(var(--rvGoldRGB), .3);
  border-radius: 999px; padding: 3px 11px; background: rgba(var(--rvGoldRGB), .08); max-width: 100%;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rv-held-titel { font-size: 19px; font-weight: 900; margin: 9px 0 2px; color: var(--text); letter-spacing: -.2px; }
.rv-held-sub { font-size: 12px; color: var(--text-muted); margin-bottom: 12px; }
.rv-kacheln { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.rv-kachel { min-width: 0; background: rgba(255, 255, 255, .035); border: 1px solid rgba(var(--rvGoldRGB), .2); border-radius: 11px; padding: 9px 9px 8px; }
.rv-kachel span { display: block; font-size: 9.5px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .6px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rv-kachel b { display: block; font-size: 17px; font-weight: 900; color: #f6e7bd; font-variant-numeric: tabular-nums; margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rv-kachel small { display: block; font-size: 10.5px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.rv-leiste { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.rv-pillknopf { border: 1px solid var(--border); background: var(--bg-input); color: var(--text-muted); border-radius: 999px;
  padding: 6px 12px; font-size: 12px; font-weight: 700; cursor: pointer; transition: transform .12s ease, border-color .12s ease, color .12s ease;
  white-space: nowrap; }
.rv-pillknopf:hover { transform: translateY(-1px); color: var(--text); }
.rv-pillknopf.an { color: #231a04; border-color: transparent;
  background: linear-gradient(135deg, #fff0c0, var(--rvGold) 55%, rgba(var(--rvGoldRGB), .75));
  box-shadow: 0 6px 16px rgba(var(--rvGoldRGB), .28), inset 0 1px 0 rgba(255, 255, 255, .5); }

.rv-reiter { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; background: var(--bg-input);
  border: 1px solid var(--border); border-radius: 13px; padding: 5px; }
.rv-reiter button { border: none; background: transparent; color: var(--text-muted); border-radius: 9px; padding: 9px 6px;
  font-size: 12.5px; font-weight: 800; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0;
  transition: background .15s ease, color .15s ease; }
.rv-reiter button:hover { color: var(--text); }
.rv-reiter button.an { color: var(--text); background: rgba(var(--rvRGB, 245, 196, 81), .16); box-shadow: inset 0 0 0 1px rgba(var(--rvRGB, 245, 196, 81), .45); }

.rv-wahl { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.rv-feld { flex: 1 1 220px; min-width: 0; max-width: 100%; padding: 9px 11px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--bg-input); color: var(--text); font-size: 13px; font-weight: 600; transition: border-color .15s ease; }
.rv-feld:focus { outline: none; border-color: rgba(var(--rvGoldRGB), .7); }

.rv-karte { position: relative; overflow: hidden; border-radius: 14px; background: var(--bg-input); border: 1px solid var(--border);
  padding: 13px 14px 12px 18px; min-width: 0; }
.rv-karte::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--rvF, var(--rvGold)); }
.rv-karte-kopf { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-bottom: 9px; }
.rv-karte-kopf h4 { margin: 0; font-size: 14px; font-weight: 800; color: var(--text); min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.rv-pille { display: inline-flex; align-items: center; gap: 4px; font-size: 10px; font-weight: 800; letter-spacing: .7px; text-transform: uppercase;
  color: var(--rvF, var(--rvGold)); background: rgba(255, 255, 255, .06);
  background: color-mix(in srgb, var(--rvF, var(--rvGold)) 14%, transparent);
  border-radius: 999px; padding: 3px 9px; white-space: nowrap; }
.rv-pille.grau { color: var(--text-muted); background: rgba(255, 255, 255, .06); }
.rv-pille.gruen { color: #2fd47a; background: rgba(47, 212, 122, .14); }
.rv-pille.gold { color: var(--rvGold); background: rgba(var(--rvGoldRGB), .14); }

.rv-vorschau { display: flex; gap: 10px; align-items: center; border-radius: 12px; padding: 10px 12px; margin-bottom: 10px;
  background: linear-gradient(100deg, rgba(var(--rvGoldRGB), .13), rgba(var(--rvGoldRGB), .03)); border: 1px solid rgba(var(--rvGoldRGB), .3); }
.rv-vorschau-ikon { font-size: 22px; flex-shrink: 0; }
.rv-vorschau-text { min-width: 0; font-size: 12px; color: var(--text-muted); line-height: 1.45; }
.rv-vorschau-text b { color: #f6e7bd; }
.rv-vorschau-titel { display: block; font-size: 13.5px; font-weight: 900; color: var(--rvGold); overflow-wrap: anywhere; }

.rv-hinweis { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; border-radius: 12px;
  padding: 10px 12px; margin-bottom: 10px; background: rgba(91, 140, 255, .09); border: 1px solid rgba(91, 140, 255, .32);
  font-size: 12px; color: var(--text); }
.rv-hinweis b { color: #9db7ff; }

.rv-liste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.rv-zeile { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 10px; background: rgba(255, 255, 255, .025);
  border: 1px solid transparent; min-width: 0; }
.rv-zeile.rv-ich { background: rgba(var(--rvGoldRGB), .1); border-color: rgba(var(--rvGoldRGB), .55); }
.rv-zeile.rv-oben1 { background: linear-gradient(90deg, rgba(var(--rvGoldRGB), .16), rgba(var(--rvGoldRGB), .03)); }
.rv-platz { width: 30px; flex-shrink: 0; text-align: center; font-size: 12.5px; font-weight: 800; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.rv-name { flex: 1; min-width: 0; font-size: 12.5px; font-weight: 700; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rv-name small { display: block; font-size: 10px; font-weight: 600; color: var(--rvGold); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rv-name em { font-style: normal; font-size: 9.5px; font-weight: 800; color: var(--rvGold); margin-left: 5px; }
.rv-zahl { flex-shrink: 0; font-size: 13px; font-weight: 900; color: var(--text); font-variant-numeric: tabular-nums; }
.rv-trenner { text-align: center; color: var(--text-muted); font-size: 11px; letter-spacing: 3px; padding: 2px 0; }
.rv-leer { text-align: center; padding: 18px 8px; font-size: 12.5px; color: var(--text-muted); }
.rv-fuss { margin-top: 8px; font-size: 10.5px; color: var(--text-muted); text-align: right; }

.rv-sieger { display: flex; align-items: center; gap: 10px; border-radius: 12px; padding: 10px 12px; margin-bottom: 10px;
  background: rgba(47, 212, 122, .08); border: 1px solid rgba(47, 212, 122, .35); font-size: 12.5px; }
.rv-sieger b { color: #7ee08a; }

.rv-balken { height: 7px; border-radius: 4px; background: rgba(255, 255, 255, .07); overflow: hidden; margin: 6px 0 4px; }
.rv-balken > i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #2fd47a, var(--rvGold)); }
.rv-etappen { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; }
.rv-kreise { display: flex; flex-direction: column; gap: 5px; max-height: 340px; overflow-y: auto; }
.rv-kreis { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 10px; background: rgba(255, 255, 255, .025);
  border: 1px solid var(--border); cursor: pointer; min-width: 0; transition: border-color .15s ease, transform .12s ease; }
.rv-kreis:hover { border-color: rgba(var(--rvGoldRGB), .5); transform: translateY(-1px); }
.rv-kreis-text { flex: 1; min-width: 0; }
.rv-kreis-name { font-size: 12.5px; font-weight: 800; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rv-kreis-info { font-size: 10.5px; color: var(--text-muted); margin-top: 2px; display: flex; flex-wrap: wrap; gap: 4px 8px; }
.rv-kreis-chips { display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end; flex-shrink: 0; max-width: 46%; }

.rv-titel { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px;
  background: linear-gradient(100deg, rgba(var(--rvGoldRGB), .1), transparent); border: 1px solid rgba(var(--rvGoldRGB), .25); margin-bottom: 5px; }
.rv-titel b { font-size: 12.5px; color: #f6e7bd; overflow-wrap: anywhere; }
.rv-titel small { display: block; font-size: 10.5px; color: var(--text-muted); }

.rv-schalter { display: flex; align-items: center; gap: 12px; cursor: pointer; padding: 8px 0; min-width: 0; }
.rv-schalter input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.rv-schalter-bahn { position: relative; flex-shrink: 0; width: 46px; height: 26px; border-radius: 999px; background: rgba(255, 255, 255, .12);
  border: 1px solid var(--border); transition: background .2s ease, box-shadow .2s ease; }
.rv-schalter-bahn::after { content: ''; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .35); transition: transform .28s cubic-bezier(.3, 1.4, .5, 1); }
.rv-schalter input:checked + .rv-schalter-bahn { background: linear-gradient(135deg, #2fd47a, #1fa95e); border-color: transparent;
  box-shadow: 0 0 12px rgba(47, 212, 122, .45); }
.rv-schalter input:checked + .rv-schalter-bahn::after { transform: translateX(20px); }
.rv-schalter input:focus-visible + .rv-schalter-bahn { outline: 2px solid var(--rvGold); outline-offset: 2px; }
.rv-schalter-text { min-width: 0; }
.rv-schalter-text b { display: block; font-size: 13px; color: var(--text); }
.rv-schalter-text small { display: block; font-size: 11.5px; color: var(--text-muted); line-height: 1.4; }
.rv-schalter.rv-wartet { opacity: .6; pointer-events: none; }

.rv-knopf { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: none; border-radius: 11px;
  padding: 10px 14px; cursor: pointer; font-weight: 900; font-size: 13px; color: #231a04;
  background: linear-gradient(135deg, #fff0c0, var(--rvGold) 55%, rgba(var(--rvGoldRGB), .75));
  box-shadow: 0 8px 20px rgba(var(--rvGoldRGB), .3), inset 0 1px 0 rgba(255, 255, 255, .5);
  transition: transform .12s ease, box-shadow .12s ease; max-width: 100%; }
.rv-knopf:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(var(--rvGoldRGB), .4); }
.rv-knopf.rv-breit { width: 100%; margin-bottom: 10px; }

.rv-einst { margin-top: 14px; }

@media (max-width: 520px) {
  .rv-held { padding: 14px 12px 12px; }
  .rv-held-titel { font-size: 17px; }
  .rv-kachel b { font-size: 15px; }
  .rv-karte { padding: 12px 10px 11px 14px; }
  .rv-etappen { grid-template-columns: minmax(0, 1fr); }
  .rv-kreis { flex-direction: column; align-items: stretch; gap: 7px; }
  .rv-kreis-chips { max-width: 100%; justify-content: flex-start; }
  .rv-zeile { padding: 7px 8px; gap: 8px; }
  .rv-platz { width: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  .rv-held::after { animation: none; }
  .rv-schalter-bahn::after, .rv-pillknopf, .rv-kreis, .rv-knopf { transition: none; }
}
