/* =========================================================
   Allgäu Triathlon by 808 – Anmeldeseite
   Farben: Blau #2d4d9b (Hauptfarbe), Rot #e91e21, Schwarz, Weiß
   Ersetzt alles OBERHALB von "ab hier Ergebnissdarstellung".
   ========================================================= */

:root {
  --atr-blue: #2d4d9b;
  --atr-blue-dark: #1f3670;
  --atr-red: #e91e21;
  --atr-black: #000000;
  --atr-white: #ffffff;
}

/* Streckenlängen unter dem Wettbewerbsnamen (Schwimmen | Rad | Laufen).
   Bewusst ohne Hintergrund/Rahmen: bei den Losverfahren ist das Feld
   leer, dort wird dadurch nichts angezeigt. */
.strecke {
  display: block;
  margin: 2px 0 6px;
  color: #555555;
  font-size: 95%;
  font-weight: bold;
  letter-spacing: 0.02em;
  line-height: 1.3;
}
/* eigener Zeilenumbruch nach der Strecke ist durch display:block
   überflüssig; ein leeres Feld (Losverfahren) hat so Höhe 0 */
.panitermine .strecke + br {
  display: none;
}
.warning {
  background: var(--atr-red);
  color: var(--atr-white);
}

/* ---------- Buttons ---------- */

.ym-button,
.ym-form button,
.ym-form input[type="button"],
.ym-form input[type="reset"],
.ym-form input[type="submit"] {
  background-color: var(--atr-blue) !important;
  background-image: none !important;
  color: var(--atr-white) !important;
  border-color: var(--atr-blue) !important;
  border-radius: 9px !important;
  box-shadow: none !important;
  text-shadow: none !important;
  font-weight: bold;
}
.ym-form button:hover,
.ym-form input[type="button"]:hover,
.ym-form input[type="reset"]:hover,
.ym-form input[type="submit"]:hover,
.ym-button:hover {
  background-color: var(--atr-red) !important;
  color: var(--atr-white) !important;
  border-color: var(--atr-red) !important;
  box-shadow: none !important;
  border-bottom: none !important;
}

/* ---------- Schritt-Anzeige ---------- */

.schritt_aktiv {
  background: var(--atr-red);
  color: var(--atr-white);
}
.schritt_inaktiv {
  background: var(--atr-blue);
  color: var(--atr-white);
}

.button_start,
.button_start_firma {
  width: 330px;
  background: white;
  text-align: center;
  border-radius: 22px;
}
.firma,
.einzel {
  color: #ffffff !important;
}
header {
  text-align: center;
}

.headerauswahl a {
  border: none;
  padding-right: 10px;
  padding-bottom: 10px;
}
.error {
  border-radius: 16px;
}
img.logo1 {
  float: none !important;
  width: 100%;
  max-width: 380px;
  height: auto;
  padding-right: 0 !important;
}

/* Header-Text ausblenden (Datum steht bereits im Logo) */
header h1 {
  display: none !important;
}

@media only screen and (min-width: 600px) {
  .abstand_oben {
    margin-top: 2em;
  }

  .headerauswahl a:nth-child(even) {
    margin-right: 0px;
  }
  .headerauswahl a:nth-child(odd) {
    margin-left: 0px;
  }
}
@media only screen and (max-width: 600px) {
  .headerauswahl a {
    margin-bottom: 0px;
  }
}

.headerauswahl a:hover,
.headerauswahl a:active,
.headerauswahl a:focus {
  background-color: transparent;
}
.headerauswahl .headerbutton {
  position: relative;
  box-sizing: border-box;
}
.headerauswahl .titel {
  position: absolute;
  bottom: 90px;
  right: 0px;
  text-transform: uppercase;
  width: 100%;
  font-weight: bold;
  font-size: 26px;
  line-height: normal;
  box-sizing: border-box;
  padding: 5px;
  position: absolute !important;
  color: var(--atr-blue);
}
.headerauswahl .strecke {
  display: none !important;
}
.headerauswahl .info {
  color: #ffffff;
  float: right;
  position: absolute;
  z-index: 99;
  top: -50px;
  left: 0px;
  width: 100%;
  font-weight: lighter;
  background: rgba(255, 255, 255, 0.85);
  padding: 5px 0;
}

/* ---------- Box-Überschriften ---------- */

.panibox h6,
.ym-form legend {
  padding: 7px 12px 5px;
  color: var(--atr-white);
  background: var(--atr-blue);
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  letter-spacing: 0.04em;
}

/* Box-Überschrift: kein Hover-Effekt (überschreibt die Verlaufsregel
   aus dem Ergebnis-Teil, höhere Spezifität) */
.ym-gbox.panibox a:hover {
  background: transparent !important;
  color: inherit !important;
}
.ym-gbox.panibox a:hover h6,
.panibox a:hover h6 {
  background: var(--atr-blue) !important;
  color: var(--atr-white) !important;
}
.ym-gbox.panibox .teilnehmerliste a:hover,
.ym-gbox.panibox .mehr a:hover {
  color: var(--atr-red) !important;
}

/* Losen Text direkt im Anmeldekasten ausblenden (z. B. "##", das der
   Anmeldeservice zwischen leeren Wettbewerbsgruppen ausgibt).
   Alle echten Inhalte bekommen ihre Schriftgröße zurück. */
.auswahl > .panibox {
  font-size: 0 !important;
}
.auswahl > .panibox > * {
  font-size: 14px;
}


/* ---------- Platzreservierung als Karte ---------- */

.platzreservierung {
  position: relative;
  display: block;
  margin: 0 0 14px !important;
  padding: 12px 18px 12px 60px !important;
  min-height: 40px;
  box-sizing: border-box;
  background: var(--atr-white) !important;
  color: #1d1d1b !important;
  border: 0 !important;
  border-radius: 14px !important;
  box-shadow: 0 6px 18px rgba(20, 35, 80, 0.16);
  font-size: 15px !important;
  line-height: 40px;
}
/* Uhr-Symbol im hellroten Kreis */
.platzreservierung::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  width: 34px;
  height: 34px;
  margin-top: -17px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e91e21' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E") center / 20px no-repeat,
    rgba(233, 30, 33, 0.1);
}
/* Restzeit als rote Pille, Ziffern springen nicht */
.platzreservierung [id^="live_countdown"] {
  display: inline-block;
  min-width: 3.4em;
  margin: 0 4px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--atr-red);
  color: var(--atr-white);
  font-weight: 800;
  line-height: 1.75;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
@media only screen and (max-width: 600px) {
  .platzreservierung {
    padding-left: 56px !important;
    font-size: 14px !important;
    line-height: 1.5;
    padding-top: 14px !important;
    padding-bottom: 14px !important;
  }
}

/* =========================================================
   Losverfahren als Ticket
   Erkannt über die Preis-IDs der beiden Losverfahren:
   12152 = Losverfahren, 12153 = Losverfahren STAFFEL.
   Neue Wettbewerbs-IDs (z. B. im Folgejahr) hier eintragen.

   Aufbau: .panitermine behält den normalen Trennstrich,
   das eigentliche Ticket ist die innere .ym-grid.
   ========================================================= */

.panitermine:has(#preise_12152, #preise_12153) {
  --ticket-stub: 24%;
  --ticket-notch: 14px;
  padding: 18px 14px !important;
  /* weicher Schatten, folgt der Ticket-Form inkl. Einkerbungen */
  filter: drop-shadow(0 6px 14px rgba(20, 35, 80, 0.16));
}

/* das Ticket */
.panitermine:has(#preise_12152, #preise_12153) > .ym-grid {
  display: flex !important;
  align-items: stretch;
  overflow: visible !important;
  border-radius: 18px !important;
  background: linear-gradient(135deg, #ffffff 0%, #edf1fa 100%) !important;
  /* Einkerbungen oben und unten an der Abrisslinie */
  -webkit-mask:
    radial-gradient(circle var(--ticket-notch) at calc(100% - var(--ticket-stub)) 0, #0000 98%, #000) top / 100% 51% no-repeat,
    radial-gradient(circle var(--ticket-notch) at calc(100% - var(--ticket-stub)) 100%, #0000 98%, #000) bottom / 100% 51% no-repeat;
  mask:
    radial-gradient(circle var(--ticket-notch) at calc(100% - var(--ticket-stub)) 0, #0000 98%, #000) top / 100% 51% no-repeat,
    radial-gradient(circle var(--ticket-notch) at calc(100% - var(--ticket-stub)) 100%, #0000 98%, #000) bottom / 100% 51% no-repeat;
}

/* linker Teil */
.panitermine:has(#preise_12152, #preise_12153) .ym-g80 {
  float: none !important;
  width: calc(100% - var(--ticket-stub)) !important;
  margin: 0 !important;
  padding: 22px 30px 20px 24px;
  box-sizing: border-box;
}

/* Titel mit rundem Ticket-Symbol */
.panitermine:has(#preise_12152, #preise_12153) .titel {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  letter-spacing: 0.02em;
}
.panitermine:has(#preise_12152, #preise_12153) .titel::before {
  content: "";
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v3a2 2 0 0 0 0 4v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-3a2 2 0 0 0 0-4z'/%3E%3Cpath d='M14 5v2M14 11v2M14 17v2'/%3E%3C/svg%3E") center / 20px no-repeat,
    var(--atr-blue);
}

/* Preis als Pille */
.panitermine:has(#preise_12152, #preise_12153) .gebuehr {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 10px;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(45, 77, 155, 0.1);
  color: var(--atr-blue) !important;
  font-weight: 800;
}
.panitermine:has(#preise_12152, #preise_12153) .gebuehr .einheit_name {
  color: var(--atr-blue) !important;
  font-weight: 400;
  opacity: 0.8;
}

/* rechter Teil = Abriss-Coupon */
.panitermine:has(#preise_12152, #preise_12153) .ym-g20 {
  float: none !important;
  width: var(--ticket-stub) !important;
  margin: 0 !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 20px 14px;
  box-sizing: border-box;
  color: var(--atr-white);
  text-align: center;
  border-left: 2px dashed rgba(255, 255, 255, 0.55);
  border-radius: 0 18px 18px 0 !important;
  /* Verlauf + großes, blasses Ticket-Symbol als Wasserzeichen */
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-opacity='0.12' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v3a2 2 0 0 0 0 4v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-3a2 2 0 0 0 0-4z'/%3E%3Cpath d='M14 5v2M14 11v2M14 17v2'/%3E%3C/svg%3E") right -28px bottom -34px / 150px no-repeat,
    linear-gradient(160deg, #3b5fb8 0%, var(--atr-blue) 55%, #1f3670 100%) !important;
}
.panitermine:has(#preise_12152, #preise_12153) .ym-g20 > br,
.panitermine:has(#preise_12152, #preise_12153) .buttons_rechts > br {
  display: none;
}
.panitermine:has(#preise_12152, #preise_12153) .ym-g20::before {
  content: "GRATIS-LOS";
  padding: 4px 12px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  line-height: 1.2;
}
.panitermine:has(#preise_12152, #preise_12153) .buttons_rechts {
  position: static !important;
  float: none !important;
  margin: 0 !important;
}

/* Button: weiß, rund, Text "Dein Los sichern" */
.panitermine:has(#preise_12152, #preise_12153) .ym-button {
  display: inline-block;
  margin: 0 !important;
  padding: 11px 22px !important;
  font-size: 0 !important;
  white-space: nowrap;
  background-color: var(--atr-white) !important;
  border-color: var(--atr-white) !important;
  color: var(--atr-blue) !important;
  border-radius: 999px !important;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22) !important;
}
.panitermine:has(#preise_12152, #preise_12153) .ym-button::after {
  content: "Dein Los sichern \2192";
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
}
.panitermine:has(#preise_12152, #preise_12153) .ym-button:hover {
  background-color: var(--atr-red) !important;
  border-color: var(--atr-red) !important;
  color: var(--atr-white) !important;
}

/* Handy: Coupon unter dem Text, Einkerbungen links und rechts */
@media only screen and (max-width: 600px) {
  .panitermine:has(#preise_12152, #preise_12153) {
    --ticket-stub-h: 124px;
    padding: 14px 8px !important;
  }
  .panitermine:has(#preise_12152, #preise_12153) > .ym-grid {
    flex-direction: column;
    -webkit-mask:
      radial-gradient(circle var(--ticket-notch) at 0 calc(100% - var(--ticket-stub-h)), #0000 98%, #000) left / 51% 100% no-repeat,
      radial-gradient(circle var(--ticket-notch) at 100% calc(100% - var(--ticket-stub-h)), #0000 98%, #000) right / 51% 100% no-repeat;
    mask:
      radial-gradient(circle var(--ticket-notch) at 0 calc(100% - var(--ticket-stub-h)), #0000 98%, #000) left / 51% 100% no-repeat,
      radial-gradient(circle var(--ticket-notch) at 100% calc(100% - var(--ticket-stub-h)), #0000 98%, #000) right / 51% 100% no-repeat;
  }
  .panitermine:has(#preise_12152, #preise_12153) .ym-g80,
  .panitermine:has(#preise_12152, #preise_12153) .ym-g20 {
    width: 100% !important;
  }
  .panitermine:has(#preise_12152, #preise_12153) .ym-g80 {
    padding: 18px 18px 18px;
  }
  .panitermine:has(#preise_12152, #preise_12153) .beschreibung {
    margin-bottom: 4px;
  }
  .panitermine:has(#preise_12152, #preise_12153) .ym-g20 {
    height: var(--ticket-stub-h);
    gap: 12px;
    border-left: 0;
    border-top: 2px dashed rgba(255, 255, 255, 0.55);
    border-radius: 0 0 18px 18px !important;
  }
}

/* =========================================================
   Vor dem Meldestart: "Bald verfügbar" statt leerem Platz
   Greift automatisch bei jedem Wettbewerb ohne "jetzt anmelden"-
   Button – außer bei "Teilnehmerlimit erreicht" (roter Text).

   Optional Startzeit pro Wettbewerb hinterlegen (ID aus dem
   Link bzw. preise_XXXXX). Ohne Eintrag steht nur "Bald verfügbar".
   Format: "\A ab TT.MM.JJJJ, HH:MM Uhr"
   (\A = Zeilenumbruch, am Anfang stehen lassen)

   IDs: 12152 Losverfahren, 12153 Losverfahren STAFFEL,
        12150 Sprint, 12148 Olymp, 12147 Classic, 12149 Staffel Classic
   ========================================================= */

/* Startzeiten hier eintragen – Zeile aus dem Kommentar herausnehmen:
.panitermine:has(#preise_12152) { --meldestart: "\A ab 01.10.2026, 10:00 Uhr"; }
.panitermine:has(#preise_12153) { --meldestart: "\A ab 01.10.2026, 10:00 Uhr"; }
*/

.auswahl .panitermine .ym-gr:not(:has(.ym-button)):not(:has([style*="c02000"]))::after {
  /* mit hinterlegter Startzeit (--meldestart) zweizeilig */
  content: "\25CF  Bald verf\00FC gbar" var(--meldestart, "");
  display: inline-block;
  margin-top: 6px;
  padding: 8px 16px;
  border-radius: 14px;
  background: var(--atr-white);
  border: 2px solid var(--atr-blue);
  color: var(--atr-blue);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
  text-align: center;
  white-space: pre-line;
  animation: atr-bald 2s ease-in-out infinite;
}
/* evtl. vorhandener Text des Anmeldeservice klein darunter */
.auswahl .panitermine .ym-gr:not(:has(.ym-button)):not(:has([style*="c02000"])) .buttons_rechts {
  font-size: 12px;
  color: #555555;
}

/* im Los-Ticket: weiß auf dem blauen Coupon */
.auswahl .panitermine:has(#preise_12152, #preise_12153) .ym-g20:not(:has(.ym-button))::after {
  margin-top: 0;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.7);
  color: var(--atr-white);
  animation-name: atr-bald-hell;
}
.auswahl .panitermine:has(#preise_12152, #preise_12153) .ym-g20:not(:has(.ym-button)) .buttons_rechts {
  color: rgba(255, 255, 255, 0.85);
}

/* sanftes Pulsieren */
@keyframes atr-bald {
  0%, 100% { box-shadow: 0 0 0 0 rgba(45, 77, 155, 0.35); }
  50% { box-shadow: 0 0 0 8px rgba(45, 77, 155, 0); }
}
@keyframes atr-bald-hell {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.45); }
  50% { box-shadow: 0 0 0 8px rgba(255, 255, 255, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .auswahl .panitermine .ym-gr::after {
    animation: none !important;
  }
}

/* ---------- Schritt-Leiste: Namen statt "Schritt 1-4" ---------- */

.schritt_aktiv,
.schritt_inaktiv {
  font-size: 0 !important;
  padding-top: 8px !important;
  padding-bottom: 8px !important;
  box-sizing: border-box !important;
}
.schritt_aktiv::after,
.schritt_inaktiv::after {
  font-size: 14px;
  font-weight: bold;
  line-height: 1.2;
}
.ym-grid > [class*="schritt_"]:nth-child(1)::after {
  content: "Pers\00F6 nliche Daten";
}
.ym-grid > [class*="schritt_"]:nth-child(2)::after {
  content: "Zusatzleistungen";
}
.ym-grid > [class*="schritt_"]:nth-child(3)::after {
  content: "Zahlungsart";
}
.ym-grid > [class*="schritt_"]:nth-child(4)::after {
  content: "Zusammenfassung";
}
/* Handy: kurze Namen, damit sie in ein Viertel der Breite passen */
@media only screen and (max-width: 600px) {
  .schritt_aktiv::after,
  .schritt_inaktiv::after {
    font-size: 12px;
  }
  .ym-grid > [class*="schritt_"]:nth-child(1)::after {
    content: "Daten";
  }
  .ym-grid > [class*="schritt_"]:nth-child(2)::after {
    content: "Extras";
  }
  .ym-grid > [class*="schritt_"]:nth-child(3)::after {
    content: "Zahlung";
  }
  .ym-grid > [class*="schritt_"]:nth-child(4)::after {
    content: "\00DC bersicht";
  }
}

/* ---------- Symbol "zur Veranstalter Webseite" in Blau ---------- */

#fileTree li.file_web {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232d4d9b' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M2 12h20'/%3E%3Cpath d='M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: left center !important;
  background-size: 18px 18px !important;
  padding-left: 27px !important;
}
#fileTree li.file_web a {
  color: var(--atr-blue);
}
#fileTree li.file_web a:hover {
  color: var(--atr-red);
}

/* ---------- Symbole hinter den Zahlungsarten ----------
   Die Einträge haben keine eigenen Klassen, Zuordnung daher über
   die Reihenfolge: PayPal, Gutschein, Lastschrift SEPA,
   Lastschrift SEPA Veranstalter, Teilzahlung.
   Ändert sich die Reihenfolge im Anmeldeservice, hier anpassen. */

.panibox .abstand > ul:not([class]) > li::after {
  content: "";
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-left: 8px;
  vertical-align: -3px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}
/* PayPal: Geldbörse */
.panibox .abstand > ul:not([class]) > li:nth-child(1)::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232d4d9b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='6' width='20' height='14' rx='2'/%3E%3Cpath d='M6 6V4h12v2'/%3E%3Ccircle cx='17' cy='13' r='1.5'/%3E%3C/svg%3E");
}
/* Gutschein: Geschenk */
.panibox .abstand > ul:not([class]) > li:nth-child(2)::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232d4d9b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='8' width='18' height='4'/%3E%3Cpath d='M12 8v13'/%3E%3Cpath d='M19 12v9H5v-9'/%3E%3Cpath d='M7.5 8a2.5 2.5 0 0 1 0-5C11 3 12 8 12 8s1-5 4.5-5a2.5 2.5 0 0 1 0 5'/%3E%3C/svg%3E");
}
/* Lastschrift SEPA + SEPA Veranstalter: Bank */
.panibox .abstand > ul:not([class]) > li:nth-child(3)::after,
.panibox .abstand > ul:not([class]) > li:nth-child(4)::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232d4d9b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 21h18'/%3E%3Cpath d='M3 10h18'/%3E%3Cpath d='M12 3l9 7H3z'/%3E%3Cpath d='M5 10v11M9 10v11M15 10v11M19 10v11'/%3E%3C/svg%3E");
}
/* Teilzahlung: Kalender */
.panibox .abstand > ul:not([class]) > li:nth-child(5)::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232d4d9b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18'/%3E%3Cpath d='M8 14h2M14 14h2M8 18h2'/%3E%3C/svg%3E");
}

/* ---------- Wettbewerbe ---------- */

.panitermine .titel {
  color: var(--atr-blue);
  font-weight: bold;
  text-transform: uppercase;
}
.teilnehmerliste a,
.panitermine .mehr a {
  color: var(--atr-blue);
}
.teilnehmerliste a:hover,
.panitermine .mehr a:hover {
  color: var(--atr-red);
}

h1 {
  font-family:
    open sans,
    sans-serif;
  font-size: 240%;
  font-weight: 800;
  line-height: 1.1em;
  margin: 5px 0 10px 20px;
  color: #000;
  text-shadow: 0 1px 1px #000;
  background: #ffffff70;
}
@media screen and (max-width: 500px) {
  .abstand_oben {
    flex-direction: column;
  }
  .headerauswahl .strecke,
  .headerauswahl .titel,
  .headerauswahl .info {
    position: inherit;
  }
  .headerauswahl .strecke {
    top: -200px !important;
    right: 0px !important;
    left: 0% !important;
  }
  .headerauswahl a {
    margin-bottom: 10px;
  }
  h1 {
    margin: -52px 0 10px 20px;
  }
}
.panibox,
.panibox2 {
  background: #ffffff;
  padding: 0;
  position: relative;
  box-shadow: 0 0 10px 0 rgba(10, 10, 10, 0.2);
  border-radius: 16px;
}
@media screen and (max-width: 500px) {
  header img {
    width: 50% !important;
  }
  .beschreibung {
    line-height: 25px;
    display: inline-block;
    margin-bottom: 37px;
    font-size: 13.5px;
    margin-top: 0;
  }

  .abstand_oben {
    margin-top: 1em;
  }
}
.ym-gr {
  border-top-right-radius: 9px;
}
.ym-grid {
  border-radius: 9px;
  overflow: hidden;
}
.border_10 {
  border-top: 1px solid #000000 !important;
  border-bottom: none !important;
}

.ym-columnar .text-danach-check {
  font-size: 100%;
}
.text-danach-spez {
  font-size: 100%;
}
.ym-columnar .text-danach {
  font-size: 90%;
}

@media screen and (max-width: 500px) {
  h1 {
    font-size: 150%;
    color: #fff;
    text-shadow: none;
    padding: 9px;
    margin-top: -20px;
    background: var(--atr-blue) !important;
    border-radius: 20px;
    margin-right: auto;
    margin-left: auto;
  }
}

/* ---------- Navigation ---------- */

nav {
  background: var(--atr-black);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* ---------- Sponsoren Anfang ---------- */

#footer_logo {
  min-width: 100%;
  height: 300px;
  background-color: var(--atr-black);
  background-image: url(https://static.anmeldungs-service.de/bilder/kunden/118/3320/sponsoren.png?2);
  background-repeat: no-repeat;
  background-position: bottom center;
  background-size: contain;
}
header {
  margin-top: 5%;
}

@media only screen and (max-width: 500px) {
  header .ym-wbox,
  footer .ym-wbox {
    position: relative;
  }
}

/* Tablet / Handy: Sponsorenbild über die volle Breite,
   Höhe folgt dem Bildformat (600 x 210) – kein Schwarz links/rechts */
@media only screen and (max-width: 800px) {
  #footer_logo {
    height: auto !important;
    aspect-ratio: 600 / 210;
    background-size: 100% auto !important;
    background-position: center center !important;
  }
}
/* ---------- Sponsoren Ende ---------- */

/* ab hier Ergebnissdarstellung */

div.TileHeadText {
  background: linear-gradient(
    120deg,
    #1479b5 0%,
    #3fa99b 35%,
    #a9d82c 65%,
    #f5ff00 100%
  ) !important;
  color: #000 !important;
  font-weight: bold;
  border-top-left-radius: 9px;
  border-top-right-radius: 9px;
  overflow: hidden;
}
.RRPublish div.ListControl > div.ListControlSearch > button.btnSearch:disabled {
  background: linear-gradient(
    120deg,
    #1479b5 0%,
    #3fa99b 35%,
    #a9d82c 65%,
    #f5ff00 100%
  ) !important;
  border: 1px solid #000 !important;
  cursor: default;
}
.RRPublish div.ListControl > div.ListControlSearch > button.btnClearSearch {
  background: linear-gradient(
    120deg,
    #1479b5 0%,
    #3fa99b 35%,
    #a9d82c 65%,
    #f5ff00 100%
  ) !important;
  border: 1px solid #000 !important;
}
table.divDetailsParent div.divDetailsInner > div > div:first-child {
  background: linear-gradient(
    120deg,
    #1479b5 0%,
    #3fa99b 35%,
    #a9d82c 65%,
    #f5ff00 100%
  ) !important;
  color: #000 !important;
  font-weight: bold !important;
}
.panibox a:hover {
  background: linear-gradient(
    120deg,
    #1479b5 0%,
    #3fa99b 35%,
    #a9d82c 65%,
    #f5ff00 100%
  ) !important;
  color: #000 !important;
}
@media only screen and (max-width: 640px) {
  .RRPublish a.aShowAll {
    background: linear-gradient(
      120deg,
      #1479b5 0%,
      #3fa99b 35%,
      #a9d82c 65%,
      #f5ff00 100%
    ) !important;
    color: #000 !important;
    font-weight: bold !important;
  }
}
.RRPublish div.Tiles > div > div {
  background: transparent !important;
}

.RRPublish div.SelectorParent > div.SelectorMenu > div > div:nth-child(1) {
  background: linear-gradient(
    120deg,
    #1479b5 0%,
    #3fa99b 35%,
    #a9d82c 65%,
    #f5ff00 100%
  ) !important;
  color: #000 !important;
  font-weight: bold !important;
}
.RRPublish div.Tiles > div {
  border-top-left-radius: 9px !important;
  border-top-right-radius: 9px !important;
}
.RRPublish div.ListControl > div.ListControlSearch > button.btnSearch {
  background: linear-gradient(
    120deg,
    #1479b5 0%,
    #3fa99b 35%,
    #a9d82c 65%,
    #f5ff00 100%
  ) !important;
  color: #000 !important;
  border: 1px solid #d4fe42 !important;
}
/* Suchleiste vergrößern in Handyansicht */
@media only screen and (max-width: 750px) {
  .RRPublish div.ListControl > div.ListControlSearch {
    width: 70% !important;
    padding-right: 0;
    padding-top: 3px;
    white-space: nowrap;
  }
}

/* Suchleiste vergrößern in Handyansicht */

@media only screen and (max-width: 750px) {
  .RRPublish div.ListControl > div.ListControlSearch > input {
    background-position: left !important;
    background-size: 20px;
    height: 28px;
    border-radius: 5px;
    border-right-width: 1px;
    width: 160% !important;
  }
}

/* Karten darstellung ändern */

.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures {
  position: relative;
}

.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 8px;
  width: 140px;
  height: 40px;
  background: url("https://static.anmeldungs-service.de/bilder/kunden/141/3161/myds_logo_standard.png")
    no-repeat;
  background-size: contain;
  z-index: 9999;
  pointer-events: none;
}



/*
  Allgäu Triathlon – Participant Detail Redesign
  ----------------------------------------------
  Für die bestehende RaceResult-Struktur in test.html.
  Das HTML muss nicht verändert werden.

  Ordnerstruktur:
    style-detail.css
    icons/
      swim.svg
      bike.svg
      run.svg
      start.svg
      split.svg
      finish.svg
*/

:root {
  --at-bg: #080a0b;
  --at-panel: #111416;
  --at-panel-2: #171a1c;
  --at-text: #f7f7f5;
  --at-muted: #aeb4b7;
  --at-line: rgba(255, 255, 255, 0.12);

  --at-swim: #21c4d4;
  --at-bike: #9bd329;
  --at-run: #ffc928;
  --at-predicted: #ffd33d;

  --at-gradient: linear-gradient(
    115deg,
    #15b9c9 0%,
    #25b9b7 30%,
    #8bcf56 62%,
    #e8dc18 100%
  );

  --at-icon-swim: url("https://static.anmeldungs-service.de/bilder/kunden/118/3103/icons/swim.svg?5");
  --at-icon-bike: url("https://static.anmeldungs-service.de/bilder/kunden/118/3103/icons/bike.svg?5");
  --at-icon-run: url("https://static.anmeldungs-service.de/bilder/kunden/118/3103/icons/run.svg?5");
  --at-icon-start: url("https://static.anmeldungs-service.de/bilder/kunden/118/3103/icons/start.svg?5");
  --at-icon-split: url("https://static.anmeldungs-service.de/bilder/kunden/118/3103/icons/split.svg?6");
  --at-icon-finish: url("https://static.anmeldungs-service.de/bilder/kunden/118/3103/icons/finish.svg?5");
  --at-icon-trophy: url("https://static.anmeldungs-service.de/bilder/kunden/118/3103/icons/trophy.svg?5");
}

/* ---------- Detail-Overlay ---------- */

.divRRPublishDetailsFader {
  background: rgba(0, 0, 0, 0.78) !important;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.divDetailsParent,
.divDetailsOuter {
  background: transparent !important;
}

.divDetails {
  --brandColorDark: #fff !important;

  width: min(760px, 100vw) !important;
  max-width: 760px !important;
  max-height: none !important;
  margin: 0 auto !important;
  padding: 0 !important;
  overflow-x: hidden !important;
  background: var(--at-bg) !important;
  color: var(--at-text) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  border-radius: 28px !important;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.58) !important;
  font-family:
    "Arial Narrow", "Helvetica Neue Condensed", "Roboto Condensed", Arial,
    Helvetica, sans-serif !important;
}

/* ---------- Topbar ---------- */

.divDetails .RRTopBar {
  min-height: 68px !important;
  padding: 8px 12px !important;
  background: #050607 !important;
  border: 0 !important;
  color: #fff !important;
}

.divDetails .RRTopBar .Icon {
  width: 48px !important;
  height: 48px !important;
  border: 0 !important;
  background: transparent !important;
}

.divDetails .RRTopBar .Icon svg {
  width: 100% !important;
  height: 100% !important;
}

.divDetails .RRTopBar .Icon svg path {
  fill: #fff !important;
  stroke: #fff !important;
}

.divDetails .RRParticipantViewLiveUpdateMarker,
.divDetails .RRTopBar .Favorite {
  display: none !important;
}

/* ---------- RaceResult-Grundreset ---------- */

#RRParticipantView,
#RRParticipantView .RRElements,
#RRParticipantView .RRBox,
#RRParticipantView .RRBox > div,
#RRParticipantView .RRResults,
#RRParticipantView table,
#RRParticipantView tbody,
#RRParticipantView tr,
#RRParticipantView td {
  box-sizing: border-box;
}

#RRParticipantView {
  background:
    radial-gradient(
      circle at 13% 14%,
      rgba(18, 191, 209, 0.25),
      transparent 29%
    ),
    radial-gradient(
      circle at 91% 16%,
      rgba(226, 222, 24, 0.25),
      transparent 31%
    ),
    var(--at-bg) !important;
  color: var(--at-text) !important;
}

#RRParticipantView .RRElements {
  gap: 0 !important;
  padding: 0 !important;
}

#RRParticipantView .RRBox {
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

#RRParticipantView table {
  width: 100% !important;
  margin: 0 !important;
  border-collapse: collapse !important;
  background: transparent !important;
}

#RRParticipantView tr,
#RRParticipantView tr:nth-child(2n),
#RRParticipantView td,
#RRParticipantView tbody tr:hover td {
  background: transparent !important;
  color: inherit !important;
  border: 0 !important;
}

/* =========================================================
   1. Teilnehmerkopf
   Box mit .RRHTML = Name / Team / Startnummer + Gesamtzeit
   ========================================================= */

#RRParticipantView .RRBox:has(.RRHTML) {
  position: relative;
  overflow: hidden;
  padding: 28px 34px 30px !important;
  background:
    radial-gradient(
      circle at 18% 62%,
      rgba(20, 188, 204, 0.48),
      transparent 43%
    ),
    radial-gradient(
      circle at 89% 47%,
      rgba(225, 223, 20, 0.44),
      transparent 36%
    ),
    #0b0e0f !important;
}

#RRParticipantView .RRBox:has(.RRHTML)::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.14);
}

#RRParticipantView .RRBox:has(.RRHTML) .RRFlexBox {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 0.78fr) !important;
  gap: 28px !important;
  align-items: center !important;
}

#RRParticipantView .RRBox:has(.RRHTML) .RRHTML {
  display: block !important;
  color: #fff !important;
}

#RRParticipantView .RRBox:has(.RRHTML) .RRHTML p {
  margin: 0 !important;
}

#RRParticipantView .RRBox:has(.RRHTML) .RRHTML p:first-child {
  margin-bottom: 8px !important;
}

#RRParticipantView .RRBox:has(.RRHTML) .RRHTML p:first-child span {
  font-size: clamp(30px, 5.8vw, 46px) !important;
  line-height: 1.02 !important;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

#RRParticipantView .RRBox:has(.RRHTML) .RRHTML p:nth-child(2) span {
  font-size: 17px !important;
  line-height: 1.3 !important;
  color: rgba(255, 255, 255, 0.72) !important;
}

#RRParticipantView .RRBox:has(.RRHTML) .RRHTML p:nth-child(3) {
  display: inline-block;
  margin-top: 15px !important;
  padding-top: 13px;
  border-top: 1px solid rgba(255, 255, 255, 0.35);
}

#RRParticipantView .RRBox:has(.RRHTML) .RRHTML p:nth-child(3) span {
  font-size: 15px !important;
  color: #fff !important;
}

/* rechte Gesamtzeit-Karte */

#RRParticipantView .RRBox:has(.RRHTML) .RRFlexBox > div:nth-child(2) {
  overflow: hidden;
  align-self: center;
  border-radius: 22px;
  background: #050607;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.32);
}

#RRParticipantView
  .RRBox:has(.RRHTML)
  .RRFlexBox
  > div:nth-child(2)
  > .RRResults:first-child {
  padding: 20px 12px 12px !important;
  background: var(--at-gradient) !important;
  color: #050607 !important;
}

#RRParticipantView
  .RRBox:has(.RRHTML)
  .RRFlexBox
  > div:nth-child(2)
  > .RRResults:first-child
  tr:first-child
  td {
  font-size: clamp(38px, 7vw, 58px) !important;
  line-height: 1 !important;
  font-weight: 900 !important;
  letter-spacing: -0.045em;
}

#RRParticipantView
  .RRBox:has(.RRHTML)
  .RRFlexBox
  > div:nth-child(2)
  > .RRResults:first-child
  tr:nth-child(2)
  td {
  padding-top: 7px !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

#RRParticipantView .RRBox:has(.RRHTML) .RRFlexBox > div:nth-child(2) > div {
  background: #050607 !important;
}

#RRParticipantView
  .RRBox:has(.RRHTML)
  .RRFlexBox
  > div:nth-child(2)
  > div
  .RRResults {
  padding: 12px 10px 14px !important;
  color: #fff !important;
}

#RRParticipantView
  .RRBox:has(.RRHTML)
  .RRFlexBox
  > div:nth-child(2)
  > div
  .RRResults
  tr:first-child
  td {
  color: var(--at-run) !important;
  font-size: 16px !important;
  font-weight: 850 !important;
}

#RRParticipantView
  .RRBox:has(.RRHTML)
  .RRFlexBox
  > div:nth-child(2)
  > div
  .RRResults
  tr:nth-child(2)
  td {
  padding-top: 4px !important;
  color: rgba(255, 255, 255, 0.86) !important;
  font-size: 14px !important;
}

/* =========================================================
   2. Swim / Bike / Run
   Nutzt .RRLegs; T1 und T2 werden bewusst ausgeblendet.
   Die alte Icon/Zeit-Tabelle derselben Box wird ausgeblendet.
   ========================================================= */

#RRParticipantView .RRBox:has(.RRLegs) {
  background: rgba(14, 17, 18, 0.97) !important;
  border-bottom: 1px solid var(--at-line) !important;
}

/* ursprüngliche 3-zeilige Bild/Zeit/Platz-Tabelle verstecken */
#RRParticipantView .RRBox:has(.RRLegs) > div > div > .RRResults {
  display: none !important;
}

#RRParticipantView .RRBox:has(.RRLegs) .RRBoxHead {
  display: none !important;
}

#RRParticipantView .RRLegs {
  color: #fff !important;
}

#RRParticipantView .RRLegs > div {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

/* Kopfzeile + T1 + T2 */
#RRParticipantView .RRLegs > div > div:nth-child(1),
#RRParticipantView .RRLegs > div > div:nth-child(3),
#RRParticipantView .RRLegs > div > div:nth-child(5) {
  display: none !important;
}

/* Swim / Bike / Run */
#RRParticipantView .RRLegs > div > div:nth-child(2),
#RRParticipantView .RRLegs > div > div:nth-child(4),
#RRParticipantView .RRLegs > div > div:nth-child(6) {
  position: relative;
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 4px !important;
  min-width: 0;
  padding: 28px 14px 25px 14px !important;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.13);
}

#RRParticipantView .RRLegs > div > div:nth-child(6) {
  border-right: 0;
}

#RRParticipantView .RRLegs > div > div:nth-child(2)::before,
#RRParticipantView .RRLegs > div > div:nth-child(4)::before,
#RRParticipantView .RRLegs > div > div:nth-child(6)::before {
  content: "";
  width: 48px;
  height: 48px;
  margin: 0 auto 4px;
  background: currentColor center / contain no-repeat;
  -webkit-mask: center / contain no-repeat;
  mask: center / contain no-repeat;
}

#RRParticipantView .RRLegs > div > div:nth-child(2) {
  color: var(--at-swim) !important;
  box-shadow: inset 0 -5px 0 var(--at-swim);
}
#RRParticipantView .RRLegs > div > div:nth-child(2)::before {
  -webkit-mask-image: var(--at-icon-swim);
  mask-image: var(--at-icon-swim);
  background: currentColor;
}

#RRParticipantView .RRLegs > div > div:nth-child(4) {
  color: var(--at-bike) !important;
  box-shadow: inset 0 -5px 0 var(--at-bike);
}
#RRParticipantView .RRLegs > div > div:nth-child(4)::before {
  -webkit-mask-image: var(--at-icon-bike);
  mask-image: var(--at-icon-bike);
  background: currentColor;
}

#RRParticipantView .RRLegs > div > div:nth-child(6) {
  color: var(--at-run) !important;
  box-shadow: inset 0 -5px 0 var(--at-run);
}
#RRParticipantView .RRLegs > div > div:nth-child(6)::before {
  -webkit-mask-image: var(--at-icon-run);
  mask-image: var(--at-icon-run);
  background: currentColor;
}

/* Disziplinname */
#RRParticipantView .RRLegs > div > div:nth-child(2) > div:first-child,
#RRParticipantView .RRLegs > div > div:nth-child(4) > div:first-child,
#RRParticipantView .RRLegs > div > div:nth-child(6) > div:first-child {
  order: -1;
  font-size: 19px !important;
  line-height: 1.1;
  font-weight: 850 !important;
  text-transform: uppercase;
  letter-spacing: 0.035em;
}

/* Zeit */
#RRParticipantView .RRLegs > div > div:nth-child(2) > div:nth-child(2),
#RRParticipantView .RRLegs > div > div:nth-child(4) > div:nth-child(2),
#RRParticipantView .RRLegs > div > div:nth-child(6) > div:nth-child(2) {
  margin-top: 7px;
  color: #fff !important;
  font-size: clamp(30px, 5vw, 44px) !important;
  line-height: 1 !important;
  font-weight: 900 !important;
  letter-spacing: -0.035em;
}

/* Geschwindigkeit */
#RRParticipantView .RRLegs .tdLegSpeed {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.86) !important;
  font-size: 15px !important;
}

/* Platzierungen */
#RRParticipantView .RRLegs .tdLegRG,
#RRParticipantView .RRLegs .tdLegRA {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.75) !important;
  font-size: 13px !important;
  text-transform: uppercase;
}

#RRParticipantView .RRLegs .rrSplitsLabel {
  color: inherit !important;
}

/* Hinweis zur Hochrechnung */
#RRParticipantView .RRElements > div:not(.RRBox) .RRText {
  padding: 14px 24px !important;
  color: rgba(255, 255, 255, 0.62) !important;
  background: #0b0e0f !important;
  font-size: 11px !important;
  line-height: 1.45 !important;
  text-align: center;
}

/* =========================================================
   3. Zwischenzeiten als Timeline
   Beliebig viele Zeilen; .predicted wird automatisch erkannt.
   ========================================================= */

#RRParticipantView .RRBox:has(.RRSplits) {
  padding: 25px 28px 34px !important;
  background:
    linear-gradient(rgba(255, 255, 255, 0.018), rgba(255, 255, 255, 0.018)),
    #0c0f10 !important;
}

#RRParticipantView .RRBox:has(.RRSplits) > .RRBoxHead {
  display: block !important;
  position: relative;
  margin: 0 0 18px 0 !important;
  padding: 0 0 0 44px !important;
  height: auto !important;
  background: transparent !important;
  color: #fff !important;
  border: 0 !important;
  font-size: 22px !important;
  line-height: 32px !important;
  font-weight: 900 !important;
  text-transform: uppercase;
  letter-spacing: 0.035em;
}

#RRParticipantView .RRBox:has(.RRSplits) > .RRBoxHead::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  width: 30px;
  height: 30px;
  border: 3px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  box-sizing: border-box;
  background-image: var(--at-icon-split) !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-size: 21px 21px !important;
}

#RRParticipantView .RRBox:has(.RRSplits) > .RRBoxHead::after {
  content: none !important;
  display: none !important;
}

#RRParticipantView .RRSplits {
  color: #fff !important;
}

/* innere Liste */
#RRParticipantView .RRSplits > div {
  position: relative;
}

/* vertikale Linie */
#RRParticipantView .RRSplits > div::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 19px;
  bottom: 24px;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(
    to bottom,
    var(--at-swim) 0%,
    var(--at-swim) 22%,
    var(--at-bike) 50%,
    var(--at-bike) 70%,
    var(--at-run) 100%
  );
  opacity: 0.85;
}

/* Tabellenkopf aus RaceResult */
#RRParticipantView .RRSplits > div > div:first-child {
  display: none !important;
}

/* jede Zwischenzeit */
#RRParticipantView .RRSplits > div > div:not(:first-child) {
  position: relative;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  grid-template-areas:
    "name tod"
    "speed sector"
    "rg ra" !important;
  column-gap: 18px !important;
  row-gap: 5px !important;
  min-height: 92px;
  margin: 0 0 0 22px !important;
  padding: 17px 0 17px 54px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.105) !important;
  background: transparent !important;
  color: #fff !important;
}

/* Timeline-Kreis */
#RRParticipantView .RRSplits > div > div:not(:first-child)::before {
  content: "";
  position: absolute;
  z-index: 2;
  left: -11px;
  top: 25px;
  width: 24px;
  height: 24px;
  box-sizing: border-box;
  border: 3px solid var(--at-swim);
  border-radius: 50%;
  background: #0c0f10;
}

/* Start */
#RRParticipantView .RRSplits > div > div:nth-child(2)::before {
  left: -17px;
  top: 20px;
  width: 36px;
  height: 36px;
  border: 3px solid var(--at-swim);
  background-color: #0c0f10;
  background-image: var(--at-icon-start);
  background-position: center;
  background-size: 22px 22px;
  background-repeat: no-repeat;
}

/* Ziel / letzte vorhandene Zeile */
#RRParticipantView .RRSplits > div > div:last-child::before {
  left: -17px;
  width: 36px;
  height: 36px;
  border-color: var(--at-run);
  background-color: #0c0f10;
  background-image: var(--at-icon-finish);
  background-position: center;
  background-size: 23px 23px;
  background-repeat: no-repeat;
}

/* Name */
#RRParticipantView .RRSplits > div > div:not(:first-child) > div:first-child {
  grid-area: name;
  align-self: end;
  min-width: 0;
  color: #fff !important;
  font-size: 17px !important;
  line-height: 1.18 !important;
  font-weight: 850 !important;
  text-transform: uppercase;
  letter-spacing: 0.015em;
  overflow-wrap: anywhere;
}

/* Tageszeit */
#RRParticipantView .RRSplits .tdSplitTOD {
  grid-area: tod;
  align-self: end;
  color: rgba(255, 255, 255, 0.92) !important;
  font-size: 18px !important;
  line-height: 1.1 !important;
  font-variant-numeric: tabular-nums;
  text-align: right !important;
}

/* Brutto wird im Screenshot-Look nicht benötigt */
#RRParticipantView .RRSplits .tdSplitGun {
  display: none !important;
}

/* Abschnitt */
#RRParticipantView .RRSplits .tdSplitSector {
  grid-area: sector;
  color: var(--at-swim) !important;
  font-size: 16px !important;
  line-height: 1.1 !important;
  font-weight: 800 !important;
  font-variant-numeric: tabular-nums;
  text-align: right !important;
}

#RRParticipantView .RRSplits .tdSplitSector:not(:empty)::before {
  content: "";
}

/* Geschwindigkeit */
#RRParticipantView .RRSplits .tdSplitSpeed {
  grid-area: speed;
  color: rgba(255, 255, 255, 0.68) !important;
  font-size: 13px !important;
  line-height: 1.25 !important;
}

/* Platzierungen */
#RRParticipantView .RRSplits .tdSplitRG {
  grid-area: rg;
}

#RRParticipantView .RRSplits .tdSplitRA {
  grid-area: ra;
  text-align: right !important;
}

#RRParticipantView .RRSplits .tdSplitRG,
#RRParticipantView .RRSplits .tdSplitRA {
  color: rgba(255, 255, 255, 0.6) !important;
  font-size: 12px !important;
  line-height: 1.25 !important;
  text-transform: uppercase;
}

#RRParticipantView .RRSplits .tdSplitRG .rrSplitsLabel,
#RRParticipantView .RRSplits .tdSplitRA .rrSplitsLabel {
  color: inherit !important;
}

/* ---------- Prognosen ---------- */

#RRParticipantView .RRSplits > div > .predicted {
  opacity: 0.76;
}

#RRParticipantView .RRSplits > div > .predicted::before {
  border-color: var(--at-predicted) !important;
  border-style: dashed !important;
  box-shadow: 0 0 0 4px rgba(255, 211, 61, 0.08);
}

#RRParticipantView .RRSplits > div > .predicted > div:first-child {
  color: #fff7c9 !important;
}

#RRParticipantView .RRSplits > div > .predicted > div:first-child::after {
  content: "  PROGNOSE";
  display: inline-block;
  margin-left: 7px;
  padding: 3px 7px 2px;
  vertical-align: 2px;
  border-radius: 999px;
  background: var(--at-predicted);
  color: #171717;
  font-size: 9px;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: 0.04em;
}

#RRParticipantView .RRSplits > div > .predicted .tdSplitSector {
  color: var(--at-predicted) !important;
}

/* ---------- Links unten ---------- */

#RRParticipantView .RRBox:last-child:has(.RRBoxHead) {
  padding: 18px 28px 30px !important;
  background: #090b0c !important;
  border-top: 1px solid var(--at-line) !important;
}

#RRParticipantView .RRBox:last-child .RRBoxHead {
  background: transparent !important;
  color: rgba(255, 255, 255, 0.55) !important;
  border: 0 !important;
}

#RRParticipantView .RRBox:last-child a {
  color: var(--at-swim) !important;
}

/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 620px) {
  .divDetails {
    width: 100vw !important;
    max-width: 100vw !important;
    min-height: 100dvh;
    border: 0 !important;
    border-radius: 0 !important;
  }

  .divDetails .RRTopBar {
    min-height: 58px !important;
    padding: 5px 7px !important;
  }

  #RRParticipantView .RRBox:has(.RRHTML) {
    padding: 22px 18px 24px !important;
  }

  #RRParticipantView .RRBox:has(.RRHTML) .RRFlexBox {
    grid-template-columns: minmax(0, 1fr) minmax(142px, 0.82fr) !important;
    gap: 13px !important;
  }

  #RRParticipantView .RRBox:has(.RRHTML) .RRHTML p:first-child span {
    font-size: clamp(25px, 7.4vw, 34px) !important;
  }

  #RRParticipantView .RRBox:has(.RRHTML) .RRHTML p:nth-child(2) span {
    font-size: 13px !important;
  }

  #RRParticipantView .RRBox:has(.RRHTML) .RRHTML p:nth-child(3) {
    margin-top: 10px !important;
    padding-top: 9px;
  }

  #RRParticipantView .RRBox:has(.RRHTML) .RRHTML p:nth-child(3) span {
    font-size: 11px !important;
  }

  #RRParticipantView
    .RRBox:has(.RRHTML)
    .RRFlexBox
    > div:nth-child(2)
    > .RRResults:first-child {
    padding: 15px 6px 10px !important;
  }

  #RRParticipantView
    .RRBox:has(.RRHTML)
    .RRFlexBox
    > div:nth-child(2)
    > .RRResults:first-child
    tr:first-child
    td {
    font-size: clamp(31px, 9vw, 44px) !important;
  }

  #RRParticipantView
    .RRBox:has(.RRHTML)
    .RRFlexBox
    > div:nth-child(2)
    > .RRResults:first-child
    tr:nth-child(2)
    td {
    font-size: 11px !important;
  }

  #RRParticipantView .RRLegs > div > div:nth-child(2),
  #RRParticipantView .RRLegs > div > div:nth-child(4),
  #RRParticipantView .RRLegs > div > div:nth-child(6) {
    padding: 21px 7px 20px !important;
  }

  #RRParticipantView .RRLegs > div > div:nth-child(2)::before,
  #RRParticipantView .RRLegs > div > div:nth-child(4)::before,
  #RRParticipantView .RRLegs > div > div:nth-child(6)::before {
    width: 37px;
    height: 37px;
  }

  #RRParticipantView .RRLegs > div > div:nth-child(2) > div:first-child,
  #RRParticipantView .RRLegs > div > div:nth-child(4) > div:first-child,
  #RRParticipantView .RRLegs > div > div:nth-child(6) > div:first-child {
    font-size: 14px !important;
  }

  #RRParticipantView .RRLegs > div > div:nth-child(2) > div:nth-child(2),
  #RRParticipantView .RRLegs > div > div:nth-child(4) > div:nth-child(2),
  #RRParticipantView .RRLegs > div > div:nth-child(6) > div:nth-child(2) {
    font-size: clamp(24px, 7vw, 33px) !important;
  }

  #RRParticipantView .RRLegs .tdLegSpeed {
    font-size: 11px !important;
  }

  #RRParticipantView .RRLegs .tdLegRG,
  #RRParticipantView .RRLegs .tdLegRA {
    font-size: 10px !important;
  }

  #RRParticipantView .RRBox:has(.RRSplits) {
    padding: 22px 15px 30px !important;
  }

  #RRParticipantView .RRBox:has(.RRSplits) > .RRBoxHead {
    margin-left: 5px !important;
    font-size: 19px !important;
  }

  #RRParticipantView .RRSplits > div::before {
    left: 19px;
  }

  #RRParticipantView .RRSplits > div > div:not(:first-child) {
    grid-template-columns: minmax(0, 1fr) auto !important;
    column-gap: 10px !important;
    min-height: 86px;
    margin-left: 19px !important;
    padding: 15px 0 15px 45px !important;
  }

  #RRParticipantView .RRSplits > div > div:not(:first-child)::before {
    left: -10px;
  }

  #RRParticipantView .RRSplits > div > div:nth-child(2)::before,
  #RRParticipantView .RRSplits > div > div:last-child::before {
    left: -16px;
  }

  #RRParticipantView .RRSplits > div > div:not(:first-child) > div:first-child {
    font-size: 14px !important;
  }

  #RRParticipantView .RRSplits .tdSplitTOD {
    font-size: 16px !important;
  }

  #RRParticipantView .RRSplits .tdSplitSector {
    font-size: 14px !important;
  }

  #RRParticipantView .RRSplits .tdSplitSpeed,
  #RRParticipantView .RRSplits .tdSplitRG,
  #RRParticipantView .RRSplits .tdSplitRA {
    font-size: 10px !important;
  }

  #RRParticipantView .RRSplits > div > .predicted > div:first-child::after {
    display: block;
    width: fit-content;
    margin: 5px 0 0;
  }
}

/* Sehr schmale Geräte */
@media (max-width: 390px) {
  #RRParticipantView .RRBox:has(.RRHTML) .RRFlexBox {
    grid-template-columns: 1fr !important;
  }

  #RRParticipantView .RRBox:has(.RRHTML) .RRFlexBox > div:nth-child(2) {
    max-width: 270px;
  }

  #RRParticipantView .RRSplits > div > div:not(:first-child) {
    padding-left: 40px !important;
  }
}
/* =========================================================
   V2 – Feinschliff nach erstem Browser-Test
   ========================================================= */

/* 1) Detailfenster wieder sauber scrollbar machen.
   Die Ausgangsseite setzt body auf overflow:hidden; deshalb scrollt
   bewusst das Detailfenster selbst. */
.divDetailsParent {
  overflow: visible !important;
}

.divDetailsOuter {
  overflow: visible !important;
}

.divDetails {
  max-height: calc(100dvh - 24px) !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable;
}

/* dezente Scrollbar */
.divDetails::-webkit-scrollbar {
  width: 8px;
}
.divDetails::-webkit-scrollbar-track {
  background: #0a0c0d;
}
.divDetails::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.26);
  border-radius: 999px;
}

/* 2) RaceResult setzt innerhalb der Abschnittsbox teils einen hellen
   Hintergrund. Alle Wrapper der Swim/Bike/Run-Zone hart auf dunkel. */
#RRParticipantView .RRBox:has(.RRLegs),
#RRParticipantView .RRBox:has(.RRLegs) > div,
#RRParticipantView .RRBox:has(.RRLegs) > div > div,
#RRParticipantView .RRBox:has(.RRLegs) > div > div > div,
#RRParticipantView .RRBox:has(.RRLegs) .RRLegs,
#RRParticipantView .RRBox:has(.RRLegs) .RRLegs > div,
#RRParticipantView .RRBox:has(.RRLegs) .RRLegs > div > div {
  background-color: #111416 !important;
  background-image: none !important;
}

/* Disziplinflächen etwas kompakter */
#RRParticipantView .RRLegs > div > div:nth-child(2),
#RRParticipantView .RRLegs > div > div:nth-child(4),
#RRParticipantView .RRLegs > div > div:nth-child(6) {
  min-height: 0 !important;
  padding-top: 20px !important;
  padding-bottom: 18px !important;
}

/* 3) Timeline deutlich dichter – näher am Referenz-Screenshot */
#RRParticipantView .RRBox:has(.RRSplits) {
  padding-top: 18px !important;
  padding-bottom: 22px !important;
}

#RRParticipantView .RRBox:has(.RRSplits) > .RRBoxHead {
  margin-bottom: 8px !important;
}

#RRParticipantView .RRSplits > div::before {
  left: 18px !important;
  top: 13px !important;
  bottom: 17px !important;
  width: 2px !important;
}

#RRParticipantView .RRSplits > div > div:not(:first-child) {
  min-height: 0 !important;
  margin-left: 18px !important;
  padding: 9px 0 9px 42px !important;
  row-gap: 2px !important;
}

/* kleine Standardpunkte */
#RRParticipantView .RRSplits > div > div:not(:first-child)::before {
  left: -7px !important;
  top: 13px !important;
  width: 15px !important;
  height: 15px !important;
  border-width: 2px !important;
}

/* Start und Ziel minimal größer */
#RRParticipantView .RRSplits > div > div:nth-child(2)::before,
#RRParticipantView .RRSplits > div > div:last-child::before {
  left: -11px !important;
  top: 10px !important;
  width: 23px !important;
  height: 23px !important;
  border-width: 2px !important;
  background-size: 15px 15px !important;
}

/* Texte dichter */
#RRParticipantView .RRSplits > div > div:not(:first-child) > div:first-child {
  font-size: 14px !important;
  line-height: 1.12 !important;
}

#RRParticipantView .RRSplits .tdSplitTOD {
  font-size: 14px !important;
}

#RRParticipantView .RRSplits .tdSplitSector {
  font-size: 12px !important;
}

#RRParticipantView .RRSplits .tdSplitSpeed,
#RRParticipantView .RRSplits .tdSplitRG,
#RRParticipantView .RRSplits .tdSplitRA {
  line-height: 1.15 !important;
}

/* Prognose-Badge kleiner */
#RRParticipantView .RRSplits > div > .predicted > div:first-child::after {
  margin-left: 5px;
  padding: 2px 5px 1px;
  font-size: 7px;
  vertical-align: 1px;
}

/* Auf kleinen Displays nimmt der Dialog exakt die Viewport-Höhe ein
   und scrollt innerhalb der Detailansicht. */
@media (max-width: 620px) {
  .divDetails {
    height: 100dvh !important;
    max-height: 100dvh !important;
    overflow-y: auto !important;
  }

  #RRParticipantView .RRLegs > div > div:nth-child(2),
  #RRParticipantView .RRLegs > div > div:nth-child(4),
  #RRParticipantView .RRLegs > div > div:nth-child(6) {
    padding-top: 16px !important;
    padding-bottom: 15px !important;
  }

  #RRParticipantView .RRBox:has(.RRSplits) {
    padding: 16px 12px 20px !important;
  }

  #RRParticipantView .RRSplits > div::before {
    left: 16px !important;
  }

  #RRParticipantView .RRSplits > div > div:not(:first-child) {
    margin-left: 16px !important;
    padding: 8px 0 8px 36px !important;
  }

  #RRParticipantView .RRSplits > div > div:not(:first-child)::before {
    left: -7px !important;
  }

  #RRParticipantView .RRSplits > div > div:nth-child(2)::before,
  #RRParticipantView .RRSplits > div > div:last-child::before {
    left: -11px !important;
  }
}
/* =========================================================
   V6 – helle Linien in der Gesamtzeit-Karte entfernen
   ========================================================= */

/* RaceResult bringt hier teilweise Tabellen-/Zeilen-Trennlinien mit.
   In der Gesamtzeit-Karte sollen diese vollständig verschwinden. */
#RRParticipantView .RRBox:has(.RRHTML) .RRFlexBox > div:nth-child(2) table,
#RRParticipantView .RRBox:has(.RRHTML) .RRFlexBox > div:nth-child(2) tbody,
#RRParticipantView .RRBox:has(.RRHTML) .RRFlexBox > div:nth-child(2) tr,
#RRParticipantView .RRBox:has(.RRHTML) .RRFlexBox > div:nth-child(2) td {
  border: 0 !important;
  border-top: 0 !important;
  border-right: 0 !important;
  border-bottom: 0 !important;
  border-left: 0 !important;
  box-shadow: none !important;
  outline: 0 !important;
}

/* Falls die Linien aus pseudo-/inneren Elementen stammen */
#RRParticipantView .RRBox:has(.RRHTML) .RRFlexBox > div:nth-child(2) .RRResults,
#RRParticipantView
  .RRBox:has(.RRHTML)
  .RRFlexBox
  > div:nth-child(2)
  .RRResults
  *,
#RRParticipantView .RRBox:has(.RRHTML) .RRFlexBox > div:nth-child(2) > div,
#RRParticipantView .RRBox:has(.RRHTML) .RRFlexBox > div:nth-child(2) > div * {
  border-color: transparent !important;
}

/* Explizit die beiden sichtbaren horizontalen Linien killen */
#RRParticipantView
  .RRBox:has(.RRHTML)
  .RRFlexBox
  > div:nth-child(2)
  > .RRResults:first-child
  tr:nth-child(2)
  td,
#RRParticipantView
  .RRBox:has(.RRHTML)
  .RRFlexBox
  > div:nth-child(2)
  > div
  .RRResults
  tr:last-child
  td {
  border-bottom: 0 !important;
  box-shadow: none !important;
}
/* =========================================================
   V7 – Swim / Bike / Run vollständig mittig ausrichten
   ========================================================= */

#RRParticipantView .RRLegs > div > div:nth-child(2),
#RRParticipantView .RRLegs > div > div:nth-child(4),
#RRParticipantView .RRLegs > div > div:nth-child(6) {
  align-items: center !important;
  justify-items: center !important;
  text-align: center !important;
}

#RRParticipantView .RRLegs > div > div:nth-child(2) > div,
#RRParticipantView .RRLegs > div > div:nth-child(4) > div,
#RRParticipantView .RRLegs > div > div:nth-child(6) > div {
  width: 100% !important;
  text-align: center !important;
  justify-self: center !important;
}

#RRParticipantView .RRLegs .tdLegSpeed,
#RRParticipantView .RRLegs .tdLegRG,
#RRParticipantView .RRLegs .tdLegRA {
  text-align: center !important;
}

#RRParticipantView .RRLegs .tdLegSpeed .rrSplitsLabel,
/* V8 – Hochrechnungs-Hinweis ohne eigenen schwarzen Hintergrund */
#RRParticipantView .RRElements > div:not(.RRBox) .RRText {
  background: transparent !important;
}
/* =========================================================
   V9 – externe Swim/Bike/Run-SVGs ohne CSS mask-image
   Verhindert CORS-Probleme der Masken.
   Die drei SVG-Dateien enthalten ihre Farbe jetzt selbst.
   ========================================================= */

#RRParticipantView .RRLegs > div > div:nth-child(2)::before,
#RRParticipantView .RRLegs > div > div:nth-child(4)::before,
#RRParticipantView .RRLegs > div > div:nth-child(6)::before {
  -webkit-mask: none !important;
  mask: none !important;
  -webkit-mask-image: none !important;
  mask-image: none !important;
  background-color: transparent !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-size: contain !important;
}

#RRParticipantView .RRLegs > div > div:nth-child(2)::before {
  background-image: var(--at-icon-swim) !important;
}

#RRParticipantView .RRLegs > div > div:nth-child(4)::before {
  background-image: var(--at-icon-bike) !important;
}

#RRParticipantView .RRLegs > div > div:nth-child(6)::before {
  background-image: var(--at-icon-run) !important;
}
/* =========================================================
   V10 – Pokal-Icon bei der oberen Platzierung
   ========================================================= */

/* Die obere Platzierungsbox ist die zweite RRResults-Gruppe
   innerhalb der rechten Gesamtzeit-Karte. */
#RRParticipantView
  .RRBox:has(.RRHTML)
  .RRFlexBox
  > div:nth-child(2)
  > div
  .RRResults {
  position: relative;
}

/* Platz für das Pokal-Icon schaffen */
#RRParticipantView
  .RRBox:has(.RRHTML)
  .RRFlexBox
  > div:nth-child(2)
  > div
  .RRResults
  tbody {
  position: relative;
}

/* Pokal links neben MW-/AK-Platz */
#RRParticipantView
  .RRBox:has(.RRHTML)
  .RRFlexBox
  > div:nth-child(2)
  > div
  .RRResults
  tbody::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  width: 28px;
  height: 28px;
  transform: translateY(-50%);
  background-image: var(--at-icon-trophy);
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

/* Texte leicht nach rechts schieben */
#RRParticipantView
  .RRBox:has(.RRHTML)
  .RRFlexBox
  > div:nth-child(2)
  > div
  .RRResults
  td {
  padding-left: 42px !important;
  padding-right: 10px !important;
}

/* Mobile etwas kompakter */
@media (max-width: 620px) {
  #RRParticipantView
    .RRBox:has(.RRHTML)
    .RRFlexBox
    > div:nth-child(2)
    > div
    .RRResults
    tbody::before {
    left: 9px;
    width: 22px;
    height: 22px;
  }

  #RRParticipantView
    .RRBox:has(.RRHTML)
    .RRFlexBox
    > div:nth-child(2)
    > div
    .RRResults
    td {
    padding-left: 31px !important;
  }
}
/* =========================================================
   V11 – Prognose-Zeilen: rechte Zeitspalte nicht verschieben
   ========================================================= */

/* Das PROGNOSE-Badge darf nur innerhalb der Namensspalte Platz
   verbrauchen. Die rechte Spalte bleibt unabhängig davon oben
   exakt an derselben Position wie bei normalen Zwischenzeiten. */
#RRParticipantView .RRSplits > div > div:not(:first-child) {
  align-items: start !important;
}

#RRParticipantView .RRSplits > div > div:not(:first-child) > div:first-child {
  align-self: start !important;
}

/* Tageszeit immer in der ersten Grid-Zeile oben ausrichten */
#RRParticipantView .RRSplits .tdSplitTOD {
  align-self: start !important;
  margin-top: 0 !important;
}

/* Abschnittszeit immer direkt darunter */
#RRParticipantView .RRSplits .tdSplitSector {
  align-self: start !important;
  margin-top: 0 !important;
}

/* Prognose-Badge inline beim Namen halten; es darf keine neue
   Zeilenhöhe auf der rechten Seite erzwingen. */
#RRParticipantView .RRSplits > div > .predicted > div:first-child::after {
  display: inline-block !important;
  width: auto !important;
  margin: 0 0 0 7px !important;
  vertical-align: 2px !important;
}

/* Auch mobil inline lassen. Die alte V2-Regel setzte das Badge
   dort auf display:block. */
@media (max-width: 620px) {
  #RRParticipantView .RRSplits > div > .predicted > div:first-child::after {
    display: inline-block !important;
    width: auto !important;
    margin: 0 0 0 5px !important;
    vertical-align: 1px !important;
  }
}
/* =========================================================
   V13 – Firefox-Desktop-Fix für Prognose-Zeilen
   Mobile Ansicht bleibt vollständig unverändert.
   ========================================================= */

/* Nur Firefox UND nur ab 621px Breite:
   feste rechte Spalte, damit Tageszeit/Abschnittszeit bei
   .predicted nicht horizontal verrutschen. */
@supports (-moz-appearance: none) {
  @media (min-width: 621px) {
    #RRParticipantView .RRSplits > div > div:not(:first-child) {
      grid-template-columns: minmax(0, 1fr) 155px !important;
    }

    #RRParticipantView .RRSplits .tdSplitTOD,
    #RRParticipantView .RRSplits .tdSplitSector,
    #RRParticipantView .RRSplits .tdSplitRA {
      width: 155px !important;
      justify-self: end !important;
      text-align: right !important;
    }
  }
}
/* =========================================================
   V14 – stabile rechte Spalte auf allen Desktop-Browsern
   Mobile Ansicht <= 620px bleibt unverändert.
   ========================================================= */

@media (min-width: 621px) {
  #RRParticipantView .RRSplits > div > div:not(:first-child) {
    grid-template-columns: minmax(0, 1fr) 155px !important;
  }

  #RRParticipantView .RRSplits .tdSplitTOD,
  #RRParticipantView .RRSplits .tdSplitSector,
  #RRParticipantView .RRSplits .tdSplitRA {
    width: 155px !important;
    justify-self: end !important;
    text-align: right !important;
  }
}
/* =========================================================
   V16 – unter 400px Swim / Bike / Run untereinander
   ========================================================= */

@media (max-width: 420px) {
  #RRParticipantView .RRLegs > div {
    grid-template-columns: 1fr !important;
  }

  #RRParticipantView .RRLegs > div > div:nth-child(2),
  #RRParticipantView .RRLegs > div > div:nth-child(4),
  #RRParticipantView .RRLegs > div > div:nth-child(6) {
    width: 100% !important;
    border-right: 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: none !important;
    padding: 18px 14px 16px !important;
  }

  #RRParticipantView .RRLegs > div > div:nth-child(2) {
    box-shadow: inset 0 -4px 0 var(--at-swim) !important;
  }

  #RRParticipantView .RRLegs > div > div:nth-child(4) {
    box-shadow: inset 0 -4px 0 var(--at-bike) !important;
  }

  #RRParticipantView .RRLegs > div > div:nth-child(6) {
    box-shadow: inset 0 -4px 0 var(--at-run) !important;
    border-bottom: 0 !important;
  }
}
/* =========================================================
   V17 – Start- und Ziel-Fahne im Timeline-Kreis
   ========================================================= */

/* Start-Kreis: größere cyanfarbene Fahne */
#RRParticipantView .RRSplits > div > div:nth-child(2)::before {
  background-image: var(--at-icon-start) !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-size: 17px 17px !important;
  border-color: var(--at-swim) !important;
}

/* Ziel-Kreis: gelbe Zielflagge */
#RRParticipantView .RRSplits > div > div:last-child::before {
  background-image: var(--at-icon-finish) !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-size: 17px 17px !important;
  border-color: var(--at-run) !important;
}

/* Auf breiten Ansichten etwas größer, wie in der Vorlage */
@media (min-width: 621px) {
  #RRParticipantView .RRSplits > div > div:nth-child(2)::before,
  #RRParticipantView .RRSplits > div > div:last-child::before {
    background-size: 19px 19px !important;
  }
}
/* =========================================================
   V21 – finales Icon-Set mit Cache-Busting (?2)
   ========================================================= */
/* =========================================================
   V25 – Prognose-Punkte mit durchgezogenem Rahmen
   ========================================================= */

#RRParticipantView .RRSplits > div > .predicted::before {
  border-style: solid !important;
}
/* =========================================================
   V26 – Start- und Ziel-Kreis größer
   ========================================================= */

/* START und ZIEL deutlich größer als normale Zwischenpunkte */
#RRParticipantView .RRSplits > div > div:nth-child(2)::before,
#RRParticipantView .RRSplits > div > div:last-child::before {
  width: 34px !important;
  height: 34px !important;
  left: -17px !important;
  top: 5px !important;
  border-width: 3px !important;
  background-size: 24px 24px !important;
}

/* Mobil etwas kompakter, aber weiterhin klar hervorgehoben */
@media (max-width: 620px) {
  #RRParticipantView .RRSplits > div > div:nth-child(2)::before,
  #RRParticipantView .RRSplits > div > div:last-child::before {
    width: 30px !important;
    height: 30px !important;
    left: -15px !important;
    top: 5px !important;
    border-width: 3px !important;
    background-size: 21px 21px !important;
  }
}
/* =========================================================
   V27 – Zwischenzeiten-Icon als analoge Uhr
   ========================================================= */
/* START und ZIEL explizit wieder mit den Fahnen überschreiben */
#RRParticipantView .RRSplits > div > div:nth-child(2)::before {
  background-image: var(--at-icon-start) !important;
}

#RRParticipantView .RRSplits > div > div:last-child::before {
  background-image: var(--at-icon-finish) !important;
}

/* In den größeren Start-/Ziel-Kreisen bleiben die Flaggen größer */
@media (min-width: 621px) {
  #RRParticipantView .RRSplits > div > div:nth-child(2)::before,
  #RRParticipantView .RRSplits > div > div:last-child::before {
    background-size: 24px 24px !important;
  }
}

@media (max-width: 620px) {
  #RRParticipantView .RRSplits > div > div:nth-child(2)::before,
  #RRParticipantView .RRSplits > div > div:last-child::before {
    background-size: 21px 21px !important;
  }
}
/* =========================================================
   V29 – Zwischenzeiten-Uhr nur in der Überschrift
   ========================================================= */

/* Normale Zwischenpunkte bleiben reine Kreise ohne Icon. */
#RRParticipantView .RRSplits > div > div:not(:first-child)::before {
  background-image: none !important;
}

/* START und ZIEL behalten ihre Fahnen. */
#RRParticipantView .RRSplits > div > div:nth-child(2)::before {
  background-image: var(--at-icon-start) !important;
}

#RRParticipantView .RRSplits > div > div:last-child::before {
  background-image: var(--at-icon-finish) !important;
}
/* =========================================================
   V30 – Desktop-Zwischenzeiten: RaceResult-Breiten neutralisieren
   und Inhalte sauber auf zwei Spalten verteilen
   ========================================================= */

@media (min-width: 800px) {
  /* RaceResult setzt für einzelne Zellen prozentuale Breiten
     (u.a. nth-child(6) width:10%). Diese vollständig aufheben. */
  #RRParticipantView .RRSplits > div > div:not(:first-child) > div {
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
  }

  /* Zwei klare Spalten:
     links Name / Geschwindigkeit / M/W-Platz
     rechts Tageszeit / Abschnitt / AK-Platz */
  #RRParticipantView .RRSplits > div > div:not(:first-child) {
    grid-template-columns: minmax(0, 1fr) 170px !important;
    grid-template-areas:
      "name  tod"
      "speed sector"
      "rg    ra" !important;
    column-gap: 24px !important;
    row-gap: 5px !important;
  }

  #RRParticipantView .RRSplits > div > div:not(:first-child) > div:first-child {
    grid-area: name !important;
    width: 100% !important;
  }

  #RRParticipantView .RRSplits .tdSplitTOD {
    grid-area: tod !important;
    width: 170px !important;
    justify-self: end !important;
    text-align: right !important;
  }

  #RRParticipantView .RRSplits .tdSplitSector {
    grid-area: sector !important;
    width: 170px !important;
    justify-self: end !important;
    text-align: right !important;
  }

  #RRParticipantView .RRSplits .tdSplitSpeed {
    grid-area: speed !important;
    width: auto !important;
    white-space: nowrap !important;
    text-align: left !important;
  }

  #RRParticipantView .RRSplits .tdSplitRG {
    grid-area: rg !important;
    width: auto !important;
    white-space: nowrap !important;
    text-align: left !important;
    justify-self: start !important;
  }

  #RRParticipantView .RRSplits .tdSplitRA {
    grid-area: ra !important;
    width: 170px !important;
    white-space: nowrap !important;
    text-align: right !important;
    justify-self: end !important;
  }

  /* Labels und Werte nicht mehr künstlich umbrechen */
  #RRParticipantView .RRSplits .tdSplitSpeed .rrSplitsLabel,
  #RRParticipantView .RRSplits .tdSplitRG .rrSplitsLabel,
  #RRParticipantView .RRSplits .tdSplitRA .rrSplitsLabel {
    white-space: nowrap !important;
  }
}

/* =========================================================
   V33 – bereinigte rrSplitsLabel-Steuerung
   Keine historischen Gegenregeln mehr.

   <= 799px:
     Geschwindigkeit-Label aus
     M/W-Platz- und AK-Platz-Label an

   >= 800px:
     alle vorhandenen rrSplitsLabel an
   ========================================================= */

/* Mobile / kleine Ansicht */
@media only screen and (max-width: 799px) {
  /* Geschwindigkeit: nur Wert, ohne "Geschwindigkeit:" */
  #RRParticipantView
    .RRElements
    div.RRLegs
    > div
    > div
    > div.tdLegSpeed
    > span.rrSplitsLabel,
  #RRParticipantView
    .RRElements
    div.RRSplits
    > div
    > div
    > div.tdSplitSpeed
    > span.rrSplitsLabel,
  #RRParticipantView .RRLegs .tdLegSpeed span.rrSplitsLabel,
  #RRParticipantView .RRSplits .tdSplitSpeed span.rrSplitsLabel {
    display: none !important;
    visibility: hidden !important;
  }

  /* M/W-Platz + AK-Platz oben und unten sichtbar */
  #RRParticipantView
    .RRElements
    div.RRLegs
    > div
    > div
    > div.tdLegRG
    > span.rrSplitsLabel,
  #RRParticipantView
    .RRElements
    div.RRLegs
    > div
    > div
    > div.tdLegRA
    > span.rrSplitsLabel,
  #RRParticipantView
    .RRElements
    div.RRSplits
    > div
    > div
    > div.tdSplitRG
    > span.rrSplitsLabel,
  #RRParticipantView
    .RRElements
    div.RRSplits
    > div
    > div
    > div.tdSplitRA
    > span.rrSplitsLabel,
  #RRParticipantView .RRLegs .tdLegRG span.rrSplitsLabel,
  #RRParticipantView .RRLegs .tdLegRA span.rrSplitsLabel,
  #RRParticipantView .RRSplits .tdSplitRG span.rrSplitsLabel,
  #RRParticipantView .RRSplits .tdSplitRA span.rrSplitsLabel {
    display: inline !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
}

/* Desktop / große Ansicht */
@media only screen and (min-width: 800px) {
  #RRParticipantView
    .RRElements
    div.RRLegs
    > div
    > div
    > div
    > span.rrSplitsLabel,
  #RRParticipantView
    .RRElements
    div.RRSplits
    > div
    > div
    > div
    > span.rrSplitsLabel,
  #RRParticipantView .RRLegs span.rrSplitsLabel,
  #RRParticipantView .RRSplits span.rrSplitsLabel {
    display: inline !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
}
/* =========================================================
   V34 – Verbindungslinie der Zwischenzeiten
   ========================================================= */

#RRParticipantView .RRSplits > div::before {
  background-color: #646363 !important;
}
/* =========================================================
   V35 – horizontale Trennlinien bei Zwischenzeiten
   Links transparent, danach weich zu #646363
   ========================================================= */

#RRParticipantView .RRSplits > div > div:not(:last-child)::after {
  background: linear-gradient(
    to right,
    transparent 0%,
    transparent 10%,
    #646363 20%,
    #646363 100%
  ) !important;
}
/* =========================================================
   V36 – mobile RaceResult-border-top-Regel neutralisieren
   Die horizontale Trennlinie wird ausschließlich von unserem
   Verlauf gezeichnet, nicht zusätzlich durch border-top.
   ========================================================= */

@media only screen and (max-width: 799px) {
  #RRParticipantView .RRElements div.RRLegs > div > div,
  #RRParticipantView .RRElements div.RRSplits > div > div,
  #RRParticipantView .RRLegs > div > div,
  #RRParticipantView .RRSplits > div > div {
    border-top: 0 !important;
    border-top-color: transparent !important;
  }
}


/* =========================================================
 Pfeil zur Detailseite ersetzen
   ========================================================= */

.RRPublish table.hasBrokeCols > tbody > tr.brokeCols.withDetails > td:last-child:after {
    content: "zur Karte & Details" !important;
    position: absolute;
    right: 0;
    top: 50% !important;
    height: 20%!important;
    width: 138px !important;

    display: flex;
    align-items: center;
    justify-content: center;

    background: linear-gradient(
        120deg,
        #1479b5 0%,
        #3fa99b 35%,
        #a9d82c 65%,
        #f5ff00 100%
    ) !important;

    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-align: center;

    background-repeat: no-repeat;
    background-size: 100% 100%;

    transform: none;
border-radius: 9px;
}

.RRPublish table.hasBrokeCols > tbody > tr.Hover > td:last-child::after {
    height: 17px !important;
    width: 21px !important;
    position: absolute !important;
    right: 3px !important;
    top: 75% !important;
    margin-top: -15px !important;
    content: "➜" !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #c6fe00 !important;
    background-color: #2d4d99 !important;
    background-image: none !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    font-weight: bold !important;
    line-height: 30px !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3) !important;
    transform: rotate(0) !important;
    transform-origin: 50% 50% !important;
}
