/*
 * Animierte App-Nachbauten für „So einfach geht's“ (index.html, Abschnitt #how).
 * Maße, Farben und Texte 1:1 aus RingRichter_App/src (theme/, components/, locales/de.json).
 * Virtueller Bildschirm 412 × 892 dp, per --s auf die Rahmenbreite skaliert (demo.js).
 * Schriftstärken wie auf Android gerendert: Texte mit fontFamily 'System' kennen nur normal (≤ 600)
 * und fett (≥ 700); Texte ohne fontFamily (Numpad, Schusskästen) nutzen die echte Stärke.
 * Festlegung: docs/DECISIONS.md, Abschnitt „So einfach geht's – animierte App-Nachbauten“.
 */

@font-face {
  font-family: "RR Roboto";
  src: url("roboto-latin-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Rahmen auf der Seite ---------- */
.device.device-demo { width: 300px; height: auto; }
@media (max-width: 900px) { .device.device-demo { width: 272px; height: auto; } }

.demo {
  position: relative; width: 100%; aspect-ratio: 412 / 892;
  overflow: hidden; border-radius: 30px; background: #fff;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.demo-still { display: block; width: 100%; height: 100%; object-fit: cover; }
.demo-toggle {
  position: absolute; z-index: 50; left: 50%; bottom: 10px; transform: translateX(-50%);
  padding: 6px 12px; border: 0; border-radius: 999px;
  background: rgba(17, 19, 28, .85); color: #fff; font: 600 12px/1.2 system-ui, sans-serif;
  opacity: 0; pointer-events: none;
}
.demo-toggle:focus-visible { opacity: 1; pointer-events: auto; outline: 2px solid #fff; outline-offset: 2px; }

/* Stichpunkte, die mit der Animation mitlaufen */
.tut ul[data-demo-steps] { gap: 4px; }
.tut ul[data-demo-steps] li {
  padding: 8px 12px; margin-left: -12px; border-radius: 10px; cursor: pointer;
  transition: background-color .25s ease, color .25s ease;
}
.tut ul[data-demo-steps] li:hover { background: var(--surface); }
.tut ul[data-demo-steps] li:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; }
.tut ul[data-demo-steps] li.is-active { background: var(--primary-light); color: var(--primary-dark); font-weight: 600; }
.tut ul[data-demo-steps] li.is-active svg { color: var(--primary); }

/* ---------- Virtueller Bildschirm ---------- */
.rr {
  position: absolute; left: 0; top: 0; width: 412px; height: 892px;
  transform-origin: 0 0; transform: scale(var(--s, .675));
  font-family: "RR Roboto", Roboto, system-ui, sans-serif; font-size: 16px; line-height: normal;
  color: #1A1A2E; background: #fff; overflow: hidden;
  -webkit-font-smoothing: antialiased; user-select: none; text-align: left;
}
.rr *, .rr *::before, .rr *::after { box-sizing: border-box; margin: 0; padding: 0; }
.rr-ic { display: block; flex-shrink: 0; fill: currentColor; }
.rr-col { display: flex; flex-direction: column; height: 100%; }

/* Systembereich oben (ohne Statusleiste) und Kopfzeile */
.rr-top { height: 36px; flex-shrink: 0; }
.rr-header { height: 56px; flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; }
.rr-hl { flex: 1; display: flex; align-items: center; min-width: 0; }
.rr-back { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; margin: 0 8px 0 -19px; color: #1A1A2E; }
.rr-ht { display: flex; flex-direction: column; justify-content: center; height: 40px; min-width: 0; }
.rr-title { font-size: 22px; font-weight: 700; line-height: 26px; height: 26px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rr-sub { font-size: 13px; line-height: 14px; height: 14px; margin-top: -2px; color: #6B7280; white-space: nowrap; }
.rr-hr { display: flex; justify-content: flex-end; align-items: center; min-width: 80px; min-height: 40px; }
.rr-stand {
  min-width: 62px; padding: 4px 8px; border: 1px solid #E5E7EB; border-radius: 12px; background: #F8F9FA;
  display: flex; flex-direction: column; align-items: center;
}
.rr-stand-l { font-size: 10px; font-weight: 700; letter-spacing: .5px; color: #6B7280; line-height: 13px; }
.rr-stand-v { font-size: 24px; font-weight: 700; color: #4B5D99; margin-top: -2px; line-height: 28px; }

/* Teilnehmerliste (ScoringList.tsx, ParticipantProgress.tsx) */
.rr-logo { width: 56px; height: 56px; border-radius: 8px; margin: 0 4px 0 -15px; display: block; }
.rr-content.is-list { padding: 0; }
.rr-list-h { padding: 12px 12px 8px; font-size: 13px; font-weight: 400; letter-spacing: 1.2px; line-height: 18px; color: #6B7280; }
.rr-list { padding: 0 12px; }
.rr-prow {
  position: relative; display: flex; align-items: center; gap: 12px; padding: 16px; margin-bottom: 8px;
  background: #F8F9FA; border: 1px solid #E5E7EB; border-radius: 12px; transition: opacity .12s ease;
}
.rr-prow.is-saved { background: #E8F5F1; border-color: #A9C9C2; }
.rr-prow.is-saved .rr-stand { background: #fff; border-color: #A9C9C2; }
.rr-prow.is-pressed { transform: none; }
.rr-prow.is-complete { opacity: .6; border-color: #A9C9C2; }
.rr-prow.is-complete .rr-stand { background: #E8F5F1; border-color: #A9C9C2; }
.rr-pinfo { flex: 1; min-width: 0; }
.rr-pname { font-size: 17px; font-weight: 400; line-height: 24px; margin-right: 60px; }
.rr-prog { padding: 4px 0; margin-top: 4px; }
.rr-prog-r { display: flex; align-items: center; gap: 4px; margin-bottom: 2px; }
.rr-prog-l { width: 80px; flex-shrink: 0; font-size: 11px; font-weight: 600; color: #6B7280; line-height: 14px; }
.rr-dots { display: flex; gap: 6px; }
.rr-dot { display: block; width: 12px; height: 12px; border-radius: 6px; background: #E5E7EB; }
.rr-dot.is-done { background: #A9C9C2; }
.rr-pcount { position: absolute; top: 14px; right: 16px; font-size: 13px; font-weight: 700; color: #4B5D99; }
.rr-pgo { color: #6B7280; }
.rr-pok { color: #A9C9C2; }

/* Inhalt */
.rr-content { flex: 1; padding: 4px 12px 16px; display: flex; flex-direction: column; min-height: 0; }
.rr-corr-ind { display: flex; align-items: center; gap: 8px; padding: 8px 4px; margin-bottom: 4px; }
.rr-corr-badge { width: 36px; height: 36px; border-radius: 50%; background: #E8EBF3; color: #4B5D99; display: flex; align-items: center; justify-content: center; }
.rr-corr-text { font-size: 17px; font-weight: 700; line-height: 24px; color: #4B5D99; }

.rr-card { background: #F8F9FA; border: 1px solid #E5E7EB; border-radius: 16px; padding: 16px; margin-bottom: 12px; }
.rr-card-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.rr-stage { padding: 4px 12px; border: 1.5px solid #4B5D99; border-radius: 12px; background: #F8F9FA; font-size: 12px; font-weight: 700; color: #4B5D99; letter-spacing: .3px; line-height: 16px; }
.rr-serie { font-size: 17px; font-weight: 700; letter-spacing: 1.2px; line-height: 18px; color: #6B7280; }
.rr-shots { display: flex; justify-content: center; gap: 8px; margin-bottom: 12px; }
.rr-shot {
  width: 50px; height: 50px; border: 1.5px dashed #E5E7EB; border-radius: 8px; background: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 700; color: #6B7280;
}
.rr-shot.is-filled { border-style: solid; border-color: #4B5D99; background: #E8EBF3; color: #4B5D99; }
.rr-shot.is-active { border-color: #4B5D99; }
.rr-sum { display: flex; align-items: center; justify-content: space-between; }
.rr-sum-l { font-size: 13px; font-weight: 400; letter-spacing: 1.2px; line-height: 18px; color: #6B7280; text-transform: uppercase; }
.rr-sum-v { font-size: 28px; font-weight: 700; line-height: 34px; }
.rr-langloch { display: flex; align-items: center; gap: 4px; padding: 8px 16px; border: 1px solid #E5E7EB; border-radius: 999px; background: #fff; color: #6B7280; font-size: 13px; font-weight: 400; line-height: 18px; }

.rr-numpad { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.rr-row { display: flex; justify-content: center; gap: 8px; }
.rr-key {
  flex: 1; max-width: 120px; min-height: 56px; border: 1px solid #E5E7EB; border-radius: 12px; background: #F8F9FA;
  display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 600; color: #1A1A2E;
  transition: opacity .12s ease, transform .12s ease;
}
.rr-key.k-m { background: #E8EBF3; border-color: #4B5D99; color: #4B5D99; font-weight: 700; }
.rr-key.k-10 { border-color: #6B7280; color: #6B7280; font-weight: 700; }
.rr-key.k-del { background: #FDECEA; border-color: #D32F2F; color: #D32F2F; font-weight: 700; font-size: 16px; }
.rr-key.is-disabled { opacity: .4; color: #6B7280; }
.rr-key.k-del.is-disabled { color: #D32F2F; }

.rr-actions { display: flex; flex-direction: column; gap: 8px; }
.rr-btn {
  height: 56px; border-radius: 12px; display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: opacity .12s ease, transform .12s ease, background-color .12s ease;
}
.rr-save { width: 100%; background: #A9C9C2; color: #fff; font-size: 16px; font-weight: 700; line-height: 24px; }
.rr-save.is-corr { background: #4B5D99; }
.rr-btnrow { display: flex; gap: 8px; }
.rr-corr { flex: 1; background: #E8EBF3; border: 1.5px solid #4B5D99; color: #4B5D99; font-size: 13px; font-weight: 700; }
.rr-inc { flex: 1; gap: 4px; background: #FDECEA; border: 1.5px solid #D32F2F; color: #D32F2F; font-size: 13px; font-weight: 700; }
.is-disabled { opacity: .4; }
.is-pressed { opacity: .7; transform: scale(.96); }

/* Tab-Leiste */
.rr-tabbar {
  height: 86px; flex-shrink: 0; display: flex; justify-content: space-around; align-items: flex-start;
  padding: 4px 0 0; background: #fff; box-shadow: 0 -2px 8px rgba(26, 26, 46, .08); position: relative; z-index: 1;
}
.rr-tab { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding-top: 8px; color: #6B7280; font-size: 11px; font-weight: 400; line-height: 13px; position: relative; }
.rr-tab.is-active { color: #4B5D99; }
.rr-tab.is-active::after { content: ""; position: absolute; top: 51px; width: 32px; height: 3px; border-radius: 1.5px; background: #4B5D99; }

/* Toast */
.rr-toast-wrap { position: absolute; left: 0; right: 0; bottom: 120px; display: flex; justify-content: center; z-index: 30; pointer-events: none; }
.rr-toast {
  max-width: 92%; padding: 12px 16px; border-radius: 12px; background: #8BB5AC; color: #fff;
  font-size: 16px; font-weight: 400; line-height: 20px; text-align: center; box-shadow: 0 4px 10px rgba(0, 0, 0, .2);
}
.rr-toast.is-enter { animation: rr-toast-in .25s ease-out both; }
@keyframes rr-toast-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* Modale */
.rr-overlay { position: absolute; inset: 0; z-index: 20; background: rgba(0, 0, 0, .5); display: flex; align-items: center; padding: 16px; }
.rr-overlay.is-enter { animation: rr-fade .2s ease-out both; }
@keyframes rr-fade { from { opacity: 0; } to { opacity: 1; } }
.rr-modal { width: 100%; background: #fff; border-radius: 24px; overflow: hidden; box-shadow: 0 5px 15px rgba(0, 0, 0, .2); }
.rr-mh { display: flex; align-items: center; justify-content: space-between; min-height: 56px; padding: 12px 20px; border-bottom: 1px solid #E5E7EB; }
.rr-mt { flex: 1; display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 700; line-height: 24px; color: #1A1A2E; }
.rr-close { width: 32px; height: 32px; border-radius: 16px; background: #F8F9FA; color: #6B7280; display: flex; align-items: center; justify-content: center; margin-left: 12px; }
.rr-seg { display: flex; gap: 4px; padding: 4px; border-radius: 10px; background: #F1F3F5; }
.rr-seg span { min-width: 80px; padding: 6px 16px; border-radius: 8px; text-align: center; font-size: 11px; font-weight: 400; line-height: 16px; color: #6B7280; }
.rr-seg span.is-active { background: #fff; color: #4B5D99; font-weight: 700; box-shadow: 0 1px 2px rgba(0, 0, 0, .1); }
.rr-mdd { display: flex; flex-direction: column; gap: 8px; padding: 16px; background: #F8F9FA; border-bottom: 1px solid #E5E7EB; }
.rr-dd {
  display: flex; align-items: center; justify-content: space-between; height: 52px; padding: 0 16px;
  border: 1px solid #E0E0E0; border-radius: 12px; background: #F8F9FA; color: #6B7280;
}
.rr-dd.is-open { border-color: #4B5D99; background: #fff; }
.rr-dd.is-empty { opacity: .5; }
.rr-dd-l { flex: 1; margin-right: 8px; font-size: 16px; font-weight: 400; line-height: 24px; color: #1A1A2E; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rr-dd.is-small { flex: 1; max-width: 140px; height: 44px; padding: 0 12px; }
.rr-srow { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rr-hits { display: flex; gap: 4px; }
.rr-hit { width: 36px; height: 36px; border: 1px solid #E5E7EB; border-radius: 6px; background: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.rr-hit.is-empty { opacity: .3; }
.rr-mbody { padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.rr-acard { display: flex; flex-direction: column; gap: 16px; padding: 20px; border: 1px solid rgba(211, 47, 47, .25); border-radius: 16px; background: rgba(211, 47, 47, .03); }
.rr-acard-h { display: flex; gap: 16px; align-items: flex-start; }
.rr-aicon { flex-shrink: 0; width: 52px; height: 52px; border-radius: 12px; background: rgba(211, 47, 47, .125); color: #D32F2F; display: flex; align-items: center; justify-content: center; }
.rr-acard-h > div:last-child { flex: 1; }
.rr-atitle { font-size: 17px; font-weight: 400; line-height: 24px; margin-bottom: 4px; }
.rr-adesc { font-size: 13px; line-height: 18px; color: #6B7280; }
.rr-abtn { height: 44px; border-radius: 12px; background: #4B5D99; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; line-height: 16px; transition: background-color .15s ease, opacity .12s ease; }
.rr-abtn.is-armed { background: #D32F2F; }
.rr-dsq { height: 48px; margin-top: -4px; border: 1px solid #D32F2F; border-radius: 12px; color: #D32F2F; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; font-weight: 400; }
.rr-prev { padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.rr-prev-l { font-size: 13px; font-weight: 400; letter-spacing: 1.2px; line-height: 18px; color: #6B7280; text-transform: uppercase; }
.rr-prev .rr-shots { margin-bottom: 0; }
.rr-mact { padding: 16px; }
.rr-start { width: 100%; background: #4B5D99; color: #fff; font-size: 16px; font-weight: 700; line-height: 24px; }

/* Aufgeklappte Auswahlliste (eigenes RN-Modal mit leichter Abdunklung) */
.rr-ddlayer { position: absolute; inset: 0; z-index: 25; background: rgba(0, 0, 0, .3); }
.rr-ddlist { position: absolute; background: #fff; border: 1px solid #E0E0E0; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 10px rgba(0, 0, 0, .15); }
.rr-ddi { padding: 16px 20px; border-bottom: 1px solid #E5E7EB; font-size: 16px; font-weight: 400; line-height: 24px; color: #1A1A2E; }
.rr-ddi:last-child { border-bottom: 0; }
.rr-ddi.is-active { background: #E8EBF3; color: #4B5D99; font-weight: 700; }

/* Tipp-Kreis */
.rr-tap {
  position: absolute; z-index: 40; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%;
  background: rgba(75, 93, 153, .28); border: 2px solid rgba(75, 93, 153, .55); pointer-events: none;
  animation: rr-tap .62s ease-out forwards;
}
@keyframes rr-tap {
  0% { opacity: 0; transform: scale(1.35); }
  25% { opacity: 1; transform: scale(1); }
  45% { opacity: 1; transform: scale(.82); }
  100% { opacity: 0; transform: scale(.82); }
}

/* ---------- Schritt 1: Wettkampf-Tab, Art-Auswahl, Formular, Teilnehmer ---------- */
.rr-sec { font-size: 13px; font-weight: 400; letter-spacing: 1.2px; line-height: 18px; color: #6B7280; text-transform: uppercase; margin: 12px 0; }
.rr-sec.is-flabel { margin: 0 0 4px; }
.rr-sec.is-sheet { margin: 0 0 8px; padding: 0 20px; }
.rr-sec.is-rank { margin: 12px 0; }
.rr-sec.is-tb { margin-top: 16px; }
.rr-setup { padding: 16px 12px 0; }
.rr-newbtn { width: 100%; background: #4B5D99; color: #fff; font-size: 16px; font-weight: 700; margin-bottom: 16px; }
.rr-newbtn .rr-ic { margin-right: 0; }
.rr-ccard { background: #F8F9FA; border: 1px solid #E5E7EB; border-radius: 12px; padding: 16px; margin-bottom: 8px; }
.rr-ccard-h { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 4px; }
.rr-ccard-t { flex: 1; font-size: 17px; line-height: 24px; margin-right: 8px; }
.rr-status { display: flex; align-items: center; gap: 6px; padding: 4px 8px; border: 1px solid #E5E7EB; border-radius: 999px; background: #fff; font-size: 11px; line-height: 16px; }
.rr-status i { display: block; width: 8px; height: 8px; border-radius: 4px; }
.rr-ccard-d { font-size: 13px; line-height: 18px; color: #6B7280; }
.rr-cact { display: flex; justify-content: space-between; margin-top: 16px; padding-top: 12px; border-top: 1px solid #E5E7EB; }
.rr-cbtn { display: flex; align-items: center; gap: 4px; padding: 6px 8px; font-size: 11px; line-height: 16px; color: #4B5D99; border-radius: 12px; transition: opacity .12s ease; }
.rr-cbtn.is-outline { background: #E8EBF3; border: 1px solid #4B5D99; padding: 6px 12px; }
.rr-cbtn.is-results { background: #E8F5F1; border: 1px solid #A9C9C2; padding: 6px 12px; color: #8BB5AC; }
.rr-cbtn.is-del { color: #D32F2F; }
.rr-cact-a { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; padding-top: 16px; border-top: 1px solid #E5E7EB; }
.rr-manage, .rr-abort { height: 44px; border-radius: 8px; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 16px; font-weight: 700; }
.rr-manage { background: #E8EBF3; border: 1px solid #4B5D99; color: #4B5D99; }
.rr-abort { border: 2px solid #D32F2F; color: #D32F2F; }
.rr-tbackdrop { background: rgba(0, 0, 0, .45); padding: 20px; }
.rr-tcard { width: 100%; background: #fff; border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.rr-tcard-h { display: flex; justify-content: space-between; align-items: center; font-size: 20px; font-weight: 700; line-height: 28px; color: #1A1A2E; }
.rr-tcard-h .rr-ic { color: #6B7280; }
.rr-tcard-s { font-size: 16px; line-height: 24px; color: #6B7280; margin-bottom: 8px; }
.rr-topt { display: flex; align-items: center; gap: 12px; padding: 16px; background: #F8F9FA; border: 1px solid #E5E7EB; border-radius: 12px; color: #6B7280; transition: opacity .12s ease; }
.rr-topt-i { width: 44px; height: 44px; border-radius: 22px; background: #E8EBF3; color: #4B5D99; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.rr-topt-t { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.rr-topt-t b { font-size: 16px; font-weight: 700; line-height: 24px; color: #1A1A2E; }
.rr-topt-t small { font-size: 13px; line-height: 18px; color: #6B7280; }

.rr-content.is-form { padding: 0; }
.rr-form { flex: 1; padding: 12px 12px 0; overflow: hidden; }
.rr-frow { display: flex; gap: 12px; }
.rr-fcol { flex: 1; min-width: 0; margin-bottom: 16px; }
.rr-input {
  height: 56px; display: flex; align-items: center; padding: 0 12px; background: #F8F9FA; border: 1px solid #E5E7EB; border-radius: 12px;
  font-size: 16px; line-height: 24px; color: #1A1A2E; white-space: nowrap; overflow: hidden;
}
.rr-caret { display: inline-block; width: 2px; height: 22px; margin-left: 1px; background: #26A69A; animation: rr-blink 1s steps(1) infinite; }
@keyframes rr-blink { 50% { opacity: 0; } }
.rr-select { gap: 8px; margin-bottom: 16px; color: #6B7280; }
.rr-select.is-open { border-color: #4B5D99; }
.rr-sbadge { padding: 2px 8px; border-radius: 8px; background: #E8EBF3; color: #4B5D99; font-size: 13px; font-weight: 700; }
.rr-stext { flex: 1; color: #1A1A2E; }
.rr-hr-line { height: 1px; background: #E5E7EB; margin: 12px 0; }
.rr-phead { display: flex; align-items: center; justify-content: space-between; }
.rr-phead .rr-sec { margin: 0; }
.rr-addp { width: 40px; height: 40px; border-radius: 20px; background: #4B5D99; color: #fff; display: flex; align-items: center; justify-content: center; transition: opacity .12s ease; }
.rr-empty { padding: 20px; text-align: center; font-size: 16px; line-height: 24px; color: #6B7280; font-style: italic; }
.rr-rotteh { margin: 10px 0 8px; padding: 8px 0 4px; border-top: 1px solid #E5E7EB; font-size: 12px; font-weight: 400; letter-spacing: .5px; line-height: 16px; color: #4B5D99; text-transform: uppercase; }
.rr-plitem { display: flex; align-items: center; padding: 8px; margin-bottom: 8px; background: #F8F9FA; border: 1px solid #E5E7EB; border-radius: 12px; }
.rr-plitem .rr-stand { margin-right: 12px; }
.rr-plinfo { flex: 1; min-width: 0; margin-right: 12px; font-size: 16px; line-height: 24px; }
.rr-plinfo div { margin-bottom: 2px; }
.rr-plinfo small { display: block; font-size: 13px; line-height: 18px; color: #6B7280; }
.rr-plact { padding: 6px; color: #6B7280; }
.rr-plact.is-del { color: #D32F2F; margin-left: 8px; }
.rr-ffoot { flex-shrink: 0; padding: 8px 12px; background: #F8F9FA; border-top: 1px solid #E5E7EB; }
.rr-create { width: 100%; background: #4B5D99; color: #fff; font-size: 16px; font-weight: 700; }
.rr-create.is-off { background: #6B7280; }
.rr-sheetlayer { position: absolute; inset: 0; z-index: 20; background: rgba(0, 0, 0, .4); display: flex; flex-direction: column; justify-content: flex-end; }
.rr-sheetlayer.is-enter { animation: rr-fade .2s ease-out both; }
.rr-sheetlayer.is-enter .rr-sheet { animation: rr-up .28s ease-out both; }
@keyframes rr-up { from { transform: translateY(100%); } to { transform: none; } }
.rr-sheet { background: #fff; border-radius: 24px 24px 0 0; padding: 8px 0 16px; box-shadow: 0 -4px 16px rgba(0, 0, 0, .12); }
.rr-handle { display: block; width: 40px; height: 4px; border-radius: 2px; background: #E0E0E0; margin: 0 auto 12px; }
.rr-slist { padding: 0 12px; }
.rr-sitem { display: flex; align-items: center; gap: 12px; height: 60px; padding: 0 12px; border-radius: 12px; color: #4B5D99; transition: background-color .12s ease; }
.rr-sitem.is-active { background: #E8EBF3; }
.rr-sitem.is-pressed { transform: none; opacity: 1; background: #F8F9FA; }
.rr-sib { min-width: 48px; text-align: center; padding: 4px 8px; border: 1px solid #E5E7EB; border-radius: 8px; background: #F8F9FA; font-size: 13px; font-weight: 700; line-height: 20px; color: #6B7280; }
.rr-sitem.is-active .rr-sib { background: #4B5D99; border-color: #4B5D99; color: #fff; }
.rr-sit { flex: 1; font-size: 16px; line-height: 24px; color: #1A1A2E; }
.rr-sitem.is-active .rr-sit { color: #4B5D99; font-weight: 700; }
.rr-stepper { justify-content: space-between; padding: 0; color: #4B5D99; }
.rr-stepper span { width: 44px; height: 100%; display: flex; align-items: center; justify-content: center; }
.rr-stepper b { font-weight: 400; color: #1A1A2E; }

/* Teilnehmerauswahl (AthletePoolPicker.tsx, PoolUi.tsx) */
.rr-pool { position: absolute; inset: 0; z-index: 22; background: #fff; display: flex; flex-direction: column; padding-top: 36px; }
.rr-pool.is-enter { animation: rr-up .3s ease-out both; }
.rr-pool-h { display: flex; align-items: center; gap: 16px; padding: 16px; }
.rr-pool-h b { flex: 1; font-size: 20px; line-height: 28px; font-weight: 700; }
.rr-pool-back { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; color: #4B5D99; }
.rr-pool-body { flex: 1; min-height: 0; overflow-y: auto; padding: 16px 16px 24px; }
.rr-pool-assign { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 16px; }
.rr-pool-rotte { width: 144px; flex-shrink: 0; }
.rr-pool-stands { flex: 1; min-width: 0; }
.rr-pool-label { margin-bottom: 8px; font-size: 13px; line-height: 18px; color: #6B7280; }
.rr-pool-label.is-uppercase { text-transform: uppercase; }
.rr-pool-stands .rr-input { justify-content: center; }
.rr-pool-search { gap: 8px; color: #6B7280; margin-bottom: 16px; }
.rr-pool-section { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 0; margin-top: 8px; font-size: 13px; line-height: 18px; color: #6B7280; }
.rr-pool-person { display: flex; align-items: center; gap: 12px; min-height: 84px; padding: 12px; margin-bottom: 8px; border: 1px solid #E5E7EB; border-radius: 12px; background: #fff; }
.rr-pool-person.is-selected { background: #E8EBF3; }
.rr-pool-check { display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; flex-shrink: 0; border: 2px solid #4B5D99; border-radius: 4px; color: #fff; }
.rr-pool-check.is-selected { background: #4B5D99; }
.rr-pool-person-info { flex: 1; min-width: 0; }
.rr-pool-person-info div { font-size: 16px; line-height: 24px; margin-bottom: 4px; }
.rr-pool-person-info small { display: block; font-size: 13px; line-height: 18px; color: #6B7280; }
.rr-pool-foot { flex-shrink: 0; padding: 16px; border-top: 1px solid #E5E7EB; }
.rr-pool-take { width: 100%; background: #4B5D99; color: #fff; font-size: 16px; font-weight: 400; }
.rr-pool-take.is-off { opacity: .45; }

/* ---------- Schritt 3: Ranking, Stechen, Export ---------- */
.rr-rank { padding: 0 12px; }
.rr-chips { display: flex; gap: 8px; padding-bottom: 12px; }
.rr-chips span { height: 44px; min-width: 80px; padding: 0 16px; border-radius: 24px; display: flex; align-items: center; justify-content: center; background: #F8F9FA; border: 1px solid #E5E7EB; font-size: 16px; color: #6B7280; }
.rr-chips span.is-active { background: #4B5D99; border-color: #4B5D99; color: #fff; }
.rr-rcard { background: #F8F9FA; border-radius: 16px; overflow: hidden; margin-bottom: 16px; box-shadow: 0 2px 8px rgba(26, 26, 46, .06); }
.rr-rcard.is-tb { border: 1px solid #A9C9C2; }
.rr-rrow { display: flex; align-items: center; gap: 8px; padding: 8px 16px; border-bottom: 1px solid #E5E7EB; }
.rr-rrow:first-child { padding-top: 12px; }
.rr-rrow:last-child { padding-bottom: 12px; border-bottom: 0; }
.rr-rbadge { width: 30px; height: 30px; border-radius: 15px; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; flex-shrink: 0; }
.rr-rinfo { flex: 1; min-width: 0; }
.rr-rline { display: flex; align-items: baseline; justify-content: space-between; gap: 4px; }
.rr-rline b { font-size: 14px; font-weight: 500; line-height: 19px; }
.rr-rline b.is-medal { font-weight: 700; }
.rr-rclub { font-size: 11px; line-height: 15px; color: #6B7280; }
.rr-rbd { display: flex; align-items: baseline; gap: 4px; }
.rr-rbd small { font-size: 10px; font-weight: 500; color: #6B7280; }
.rr-rbd em { font-style: normal; font-size: 11px; font-weight: 700; color: #4B5D99; min-width: 24px; text-align: right; }
.rr-rtotal { min-width: 60px; text-align: right; font-size: 20px; font-weight: 600; color: #6B7280; font-variant-numeric: tabular-nums; }
.rr-rtotal.is-medal { color: #4B5D99; font-weight: 700; }
.rr-tie { background: #E8F5F1; border-radius: 16px; padding: 20px; margin-bottom: 16px; }
.rr-tie-h { display: flex; gap: 12px; margin-bottom: 16px; }
.rr-tie-i { width: 44px; height: 44px; border-radius: 22px; background: #E8EBF3; color: #4B5D99; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.rr-tie-t { font-size: 17px; line-height: 24px; margin-bottom: 4px; }
.rr-tie-d { font-size: 13px; line-height: 20px; color: #6B7280; }
.rr-tie-b { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 0; background: #fff; border: 1px solid #E5E7EB; border-radius: 12px; color: #4B5D99; font-size: 16px; line-height: 24px; transition: opacity .12s ease; }
.rr-finish { width: 100%; margin-top: 12px; background: #4B5D99; color: #fff; font-size: 16px; font-weight: 700; }
.rr-finish.is-confirm { background: #E6A817; }
.rr-cmodal-bg { padding: 20px; justify-content: center; }
.rr-cmodal { width: 100%; background: #fff; border-radius: 24px; padding: 20px; box-shadow: 0 4px 12px rgba(0, 0, 0, .15); }
.rr-cm-t { font-size: 20px; font-weight: 700; color: #1A1A1A; margin-bottom: 12px; line-height: 26px; }
.rr-cm-m { font-size: 16px; line-height: 24px; color: #6B7280; margin-bottom: 20px; }
.rr-cm-b { display: flex; flex-direction: column; gap: 12px; }
.rr-cm-b span { min-height: 48px; padding: 12px 20px; border-radius: 12px; display: flex; align-items: center; justify-content: center; text-align: center; font-size: 16px; color: #6B7280; transition: opacity .12s ease; }
.rr-cm-b span.is-primary { background: #4B5D99; color: #fff; }
.rr-maxcard { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 24px; background: #E8F5F1; border: 1px solid #A9C9C2; border-radius: 16px; color: #A9C9C2; }
.rr-maxcard b { font-size: 17px; font-weight: 700; line-height: 24px; color: #1A1A2E; text-align: center; }
.rr-maxcard small { font-size: 13px; line-height: 18px; color: #6B7280; text-align: center; }
.rr-maxcard .rr-btnrow { width: 100%; margin-top: 4px; }
.rr-emptystate { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px; color: #E5E7EB; text-align: center; }
.rr-emptystate b { font-size: 20px; font-weight: 700; line-height: 28px; color: #1A1A2E; margin: 16px 0 8px; }
.rr-emptystate p { font-size: 16px; line-height: 24px; color: #6B7280; max-width: 300px; margin-bottom: 20px; }
.rr-emptystate .rr-btn { height: auto; min-width: 200px; padding: 12px 20px; background: #4B5D99; color: #fff; font-size: 16px; font-weight: 700; }
.rr-pdfbtn { width: 36px; height: 36px; border-radius: 18px; background: #4B5D99; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); margin-right: 0; transition: opacity .12s ease; }
.rr-spin { display: block; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: rr-rot .8s linear infinite; }
@keyframes rr-rot { to { transform: rotate(360deg); } }
.rr-hbolt { width: 40px; height: 40px; border-radius: 20px; background: #FFF8E1; color: #F5A623; display: flex; align-items: center; justify-content: center; margin-right: 8px; }
.rr-pdf { position: absolute; inset: 0; z-index: 35; background: rgba(17, 19, 28, .88); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 0 6px; }
.rr-pdf.is-enter { animation: rr-fade .25s ease-out both; }
.rr-pdf.is-enter img { animation: rr-pop .35s ease-out both; }
@keyframes rr-pop { from { opacity: 0; transform: scale(.88); } to { opacity: 1; transform: none; } }
.rr-pdf-name { display: flex; align-items: center; gap: 6px; color: #fff; font-size: 13px; line-height: 18px; opacity: .9; }
.rr-pdf img { display: block; width: 100%; height: auto; border-radius: 2px; box-shadow: 0 10px 30px rgba(0, 0, 0, .45); background: #fff; }
.rr-toast.is-info { background: #4B5D99; width: 92%; display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: left; }
.rr-toast-act { flex-shrink: 0; padding: 4px 12px; border-radius: 8px; background: rgba(255, 255, 255, .25); font-size: 13px; font-weight: 700; line-height: 18px; text-transform: uppercase; pointer-events: auto; }

@media (prefers-reduced-motion: reduce) {
  .rr *, .tut ul[data-demo-steps] li { animation: none !important; transition: none !important; }
}

/* Einstieg in die Teilnehmerauswahl, wie in der App. */
.rr-pactions { display: flex; align-items: center; gap: 8px; }
.rr-pool-icon { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; color: #4B5D99; }
