/* Turfsport – zentraler Style für Rennprogramm/Renntag.
   Galopp Deutschland, Galopp Frankreich und Trab Frankreich teilen diese
   Darstellung. Fachspalten und Fachinhalte bleiben getrennt. */

@media (min-width:901px) {
  /* Kopf */
  .portal-rp-head {
    position:relative;
    min-height:158px;
    overflow:hidden;
    isolation:isolate;
    background:#fff;
  }
  .portal-rp-head.is-race { min-height:196px; }

  .portal-rp-head::after {
    content:"";
    position:absolute;
    z-index:0;
    inset:0 0 0 auto;
    width:58%;
    background-repeat:no-repeat;
    background-position:right center;
    background-size:cover;
    opacity:.55;
    -webkit-mask-image:linear-gradient(90deg,transparent 0%,rgba(0,0,0,.18) 10%,rgba(0,0,0,.70) 30%,#000 50%);
    mask-image:linear-gradient(90deg,transparent 0%,rgba(0,0,0,.18) 10%,rgba(0,0,0,.70) 30%,#000 50%);
    pointer-events:none;
  }
  .portal-rp-head.is-galopp::after { background-image:url('../img/galopp/rennkopf-galopp-vollfarbe.webp'); }
  .portal-rp-head.is-trab::after { background-image:url('../img/trab/rennkopf-trab-vollfarbe.webp'); }

  .portal-rp-head__content {
    position:relative;
    z-index:1;
    width:min(72%,720px);
  }
  .portal-rp-head__line { display:flex; align-items:flex-start; gap:14px; margin-bottom:15px; }
  .portal-rp-head__badge {
    width:58px;height:58px;flex:0 0 58px;
    display:flex;flex-direction:column;align-items:center;justify-content:center;
    border:1px solid rgba(184,135,47,.48);border-radius:10px;
    background:linear-gradient(145deg,#f3d98d,#dfbd63);
    color:var(--ts-green-900);box-shadow:0 5px 14px rgba(105,77,24,.10);
  }
  .portal-rp-head__badge small { font-size:8px;line-height:1;font-weight:750;letter-spacing:.075em;text-transform:uppercase; }
  .portal-rp-head__badge strong { margin-top:3px;font-size:24px;line-height:1;font-weight:800; }
  .portal-rp-head__text { min-width:0;padding-top:1px; }
  .portal-rp-head__eyebrow {
    margin:0 0 7px;color:var(--ts-green-900);font-size:20px;line-height:1.12;
    font-weight:760;letter-spacing:.025em;text-transform:uppercase;
  }
  .portal-rp-head.is-day h1 { margin:0 0 7px;font-size:29px;line-height:1.08;font-weight:590; }
  .portal-rp-head .portal-race-page-title { margin:0 0 7px;max-width:620px;font-size:18px;line-height:1.24;font-weight:590; }
  .portal-rp-head__meta { margin:0;color:var(--ts-text-muted);font-size:13px;line-height:1.3; }

  /* Einheitliche Werkzeugtabs */
  .portal-racetools {
    margin:0 0 var(--space-4,18px);
    border:1px solid var(--border,#d6e0da);border-radius:var(--radius-lg,12px);
    background:#f4f8f5;box-shadow:0 10px 26px rgba(21,70,53,.045);overflow:hidden;
  }
  .portal-racetools__nav {
    display:flex;align-items:stretch;
    border-bottom:1px solid #202324;
    background:linear-gradient(180deg,#3c3f40 0%,#292c2d 100%);
  }
  .portal-racetools__tab {
    appearance:none;display:inline-flex;flex:1 1 0;align-items:center;justify-content:center;gap:7px;
    min-height:46px;padding:9px 10px;border:0;border-right:1px solid rgba(255,255,255,.10);
    background:transparent;color:rgba(255,255,255,.88);font:inherit;font-size:13px;font-weight:650;cursor:pointer;
    transition:background-color .15s ease,color .15s ease,box-shadow .15s ease;
  }
  .portal-racetools__tab:last-child { border-right:0; }
  .portal-racetools__tab:hover,.portal-racetools__tab:focus-visible {
    background:rgba(255,255,255,.08);color:#fff;
  }
  .portal-racetools__tab[aria-selected="true"] {
    background:linear-gradient(180deg,#e39a2d 0%,#c77b16 100%);color:#fff;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.24),0 0 0 1px rgba(255,255,255,.05);
  }
  .portal-racetools__icon {
    width:17px;height:17px;fill:none;stroke:#e0a33a;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;
  }
  .portal-racetools__tab[aria-selected="true"] .portal-racetools__icon { stroke:#fff; }
  .portal-racetools__panel { padding:15px 18px 16px;background:linear-gradient(180deg,#f8fbf9,#fff 72%);color:var(--text,#18372d); }
  .portal-racetools__panel[hidden] { display:none; }

  /* Linke Rennprogramm-Navigation */
  .portal-rp-disciplines a { display:flex;align-items:center;gap:8px; }
  .portal-rp-flag { width:20px;text-align:center;font-size:15px; }
  .portal-rp-sidebar__placeholder { padding:11px 12px;color:var(--ts-text-muted);font-size:11px;line-height:1.45; }
  .portal-rp-sidebar__reserve { opacity:.92; }

  /* Rechte nächste Starts */
  .portal-nextstarts {
    overflow:hidden;border:1px solid var(--border,#d6e0da);border-radius:10px;background:#fff;
  }
  .portal-nextstarts__title {
    padding:10px 12px;background:var(--ts-green-800,#175b43);color:#fff;
    font-size:11px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;
  }
  .portal-nextstarts__list { display:flex;flex-direction:column; }
  .portal-nextstarts__list a {
    display:grid;grid-template-columns:45px minmax(0,1fr);gap:7px;align-items:center;
    padding:9px 10px;border-top:1px solid #e3ebe6;color:var(--ts-green-900);text-decoration:none;
  }
  .portal-nextstarts__list a:first-child { border-top:0; }
  .portal-nextstarts__list a:hover { background:#f2f7f4; }
  .portal-nextstarts__list strong { font-size:12px; }
  .portal-nextstarts__list span { min-width:0;font-size:10px;line-height:1.25; }

  .portal-listrow__flag { margin-right:4px; }
}

/* Desktop-only Entwicklungsphase */
@media (max-width:899px) {
  .portal-racetools { display:none; }
}


/* V162 – echte gemeinsame Rennprogramm-Navigation */
@media (min-width:901px) {

  /* ---------- linke Spalte ---------- */
  .portal-rp-sidebar {
    display:flex;
    flex-direction:column;
    gap:14px;
  }

  .portal-rp-leftcard,
  .portal-rp-rightcard {
    overflow:hidden;
    border:1px solid #d7e1db;
    border-radius:12px;
    background:#fff;
    box-shadow:0 7px 20px rgba(20,66,50,.04);
  }

  .portal-rp-leftcard__title {
    margin:0;
    padding:11px 13px;
    background:#155c43;
    color:#fff;
    font-size:11px;
    line-height:1.1;
    font-weight:750;
    letter-spacing:.04em;
    text-transform:uppercase;
  }

  .portal-rp-premium-calendar {
    display:flex;
    min-height:46px;
    align-items:center;
    gap:9px;
    padding:0 13px;
    background:linear-gradient(135deg,#f7e3a8,#e1c16e);
    color:#164c38;
    font-size:12px;
    font-weight:850;
    text-decoration:none;
  }

  .portal-rp-premium-calendar:hover {
    filter:brightness(.985);
  }

  .portal-rp-premium-calendar__icon {
    display:inline-flex;
    width:22px;
    height:22px;
    flex:0 0 22px;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    background:#fff8df;
    color:#946b18;
    font-size:9px;
  }

  .portal-rp-programgroup {
    border-top:1px solid #e4ebe7;
  }

  .portal-rp-programgroup:first-of-type {
    border-top:0;
  }

  .portal-rp-programgroup__head {
    display:flex;
    align-items:center;
    gap:7px;
    padding:10px 12px 8px;
    background:#f5f8f6;
    color:#194d3a;
    font-size:11px;
  }

  .portal-rp-programgroup__flag {
    font-size:14px;
    line-height:1;
  }

  .portal-rp-programgroup__head strong {
    font-weight:850;
  }

  .portal-rp-programsubhead {
    padding:8px 12px 4px;
    color:#8b681f;
    font-size:8.5px;
    font-weight:900;
    letter-spacing:.055em;
    text-transform:uppercase;
  }

  .portal-rp-programlist {
    display:flex;
    flex-direction:column;
    padding:0 6px 7px;
  }

  .portal-rp-programlist a {
    display:grid;
    grid-template-columns:28px minmax(0,1fr);
    gap:7px;
    align-items:center;
    min-height:39px;
    padding:6px 7px;
    border-radius:8px;
    color:#194d3a;
    text-decoration:none;
  }

  .portal-rp-programlist a:hover {
    background:#edf5f0;
  }

  .portal-rp-programicon {
    display:inline-flex;
    width:24px;
    height:24px;
    align-items:center;
    justify-content:center;
    border-radius:7px;
    background:#eef5f1;
    color:#155c43;
    font-size:16px;
    line-height:1;
  }

  .portal-rp-programicon--trab {
    background:#f7f1df;
    color:#967019;
  }

  .portal-rp-programlist__text {
    display:flex;
    min-width:0;
    flex-direction:column;
    gap:1px;
  }

  .portal-rp-programlist small {
    color:#7b867f;
    font-size:8px;
    line-height:1.1;
    font-weight:700;
    text-transform:uppercase;
  }

  .portal-rp-programlist strong {
    min-width:0;
    overflow:hidden;
    font-size:11px;
    line-height:1.2;
    font-weight:800;
    white-space:nowrap;
    text-overflow:ellipsis;
  }

  .portal-rp-programempty,
  .portal-rp-sidebar__placeholder {
    padding:11px 12px 13px;
    color:#6a756f;
    font-size:10px;
    line-height:1.45;
  }

  /* ---------- rechte Spalte ---------- */
  .portal-sidebar--right {
    display:flex;
    flex-direction:column;
    gap:14px;
  }

  .portal-rp-rightcard__head {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:8px;
    padding:10px 11px;
    background:linear-gradient(180deg,#f4f8f6,#edf4f0);
    border-bottom:1px solid #dbe5df;
  }

  .portal-rp-rightcard__head small {
    display:block;
    margin:0 0 2px;
    color:#8b7a58;
    font-size:8px;
    line-height:1;
    font-weight:800;
    letter-spacing:.055em;
    text-transform:uppercase;
  }

  .portal-rp-rightcard__head h2 {
    margin:0;
    color:#174e3a;
    font-size:15px;
    line-height:1.15;
    font-weight:720;
  }

  .portal-rp-racenav__arrows {
    display:flex;
    gap:5px;
  }

  .portal-rp-racenav__arrows a,
  .portal-rp-racenav__arrows span {
    display:inline-flex;
    width:26px;
    height:26px;
    align-items:center;
    justify-content:center;
    border:1px solid #d5e1da;
    border-radius:7px;
    background:#fff;
    color:#155c43;
    font-size:12px;
    font-weight:900;
    text-decoration:none;
  }

  .portal-rp-racenav__arrows span {
    opacity:.32;
  }

  .portal-rp-racenav__list {
    display:flex;
    flex-direction:column;
  }

  .portal-rp-racenav__item {
    display:grid;
    grid-template-columns:36px minmax(0,1fr);
    gap:8px;
    align-items:start;
    padding:9px 10px;
    border-top:1px solid #e4ebe7;
    color:#194d3a;
    text-decoration:none;
  }

  .portal-rp-racenav__item:first-child {
    border-top:0;
  }

  .portal-rp-racenav__item:hover {
    background:#f4f8f6;
  }

  .portal-rp-racenav__item.is-current {
    background:#e8f2ec;
  }

  .portal-rp-racenav__item.is-finished {
    opacity:.62;
  }

  .portal-rp-racenav__badge {
    display:inline-flex;
    width:34px;
    min-height:30px;
    align-items:center;
    justify-content:center;
    border-radius:8px;
    background:#edf4f0;
    color:#155c43;
    font-size:11px;
    font-weight:900;
  }

  .portal-rp-racenav__item.is-current .portal-rp-racenav__badge {
    background:#155c43;
    color:#fff;
  }

  .portal-rp-racenav__content {
    min-width:0;
  }

  .portal-rp-racenav__top {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:6px;
  }

  .portal-rp-racenav__top strong {
    font-size:11px;
    font-weight:900;
  }

  .portal-rp-racenav__top em {
    color:#8a6b2d;
    font-size:8px;
    font-style:normal;
    font-weight:800;
  }

  .portal-rp-racenav__content small {
    display:block;
    margin-top:2px;
    color:#707a74;
    font-size:8.5px;
    line-height:1.25;
  }

  /* Nächste Starts im selben rechten Design */
  .portal-nextstarts__list a {
    display:grid;
    grid-template-columns:42px minmax(0,1fr);
    gap:7px;
    align-items:center;
    min-height:37px;
    padding:7px 10px;
    border-top:1px solid #e4ebe7;
    color:#194d3a;
    text-decoration:none;
  }

  .portal-nextstarts__list a:first-child {
    border-top:0;
  }

  .portal-nextstarts__list a:hover {
    background:#f4f8f6;
  }

  .portal-nextstarts__list strong {
    font-size:11px;
    font-weight:900;
  }

  .portal-nextstarts__list span {
    min-width:0;
    font-size:9px;
    line-height:1.25;
  }
}


/* V163 – Navigation links/rechts lesbarer */
@media (min-width:901px) {
  .portal-rp-leftcard__title {
    font-size:12px !important;
  }

  .portal-rp-programgroup__head {
    font-size:12px !important;
  }

  .portal-rp-programsubhead {
    font-size:9.5px !important;
  }

  .portal-rp-programlist small {
    font-size:9px !important;
  }

  .portal-rp-programlist strong {
    font-size:12.5px !important;
    line-height:1.25 !important;
  }

  .portal-rp-premium-calendar {
    font-size:13px !important;
  }

  .portal-rp-rightcard__head small {
    font-size:9px !important;
  }

  .portal-rp-rightcard__head h2 {
    font-size:16px !important;
  }

  .portal-rp-racenav__badge {
    font-size:12px !important;
  }

  .portal-rp-racenav__top strong {
    font-size:12.5px !important;
  }

  .portal-rp-racenav__top em {
    font-size:9px !important;
  }

  .portal-rp-racenav__content small {
    font-size:10px !important;
    line-height:1.3 !important;
  }

  .portal-nextstarts__list strong {
    font-size:12px !important;
  }

  .portal-nextstarts__list span {
    font-size:10px !important;
    line-height:1.3 !important;
  }
}


/* V164 – gemeinsamer Rennkalender, überall links an derselben Stelle */
@media (min-width:901px) {
  .portal-rp-calendar {
    overflow:hidden;
    border:1px solid #d9e1dc;
    border-radius:14px;
    background:#fff;
    box-shadow:0 7px 20px rgba(20,66,50,.04);
    padding:13px 13px 12px;
  }

  .portal-rp-calendar__title {
    margin-bottom:10px;
    color:#a8731b;
    font-size:13px;
    line-height:1;
    font-weight:900;
    letter-spacing:.04em;
    text-transform:uppercase;
  }

  .portal-rp-calendar__monthbar {
    display:grid;
    grid-template-columns:32px minmax(0,1fr) 32px;
    gap:8px;
    align-items:center;
    padding:4px 0 10px;
    border-bottom:1px solid #eadfca;
  }

  .portal-rp-calendar__monthbar strong {
    text-align:center;
    color:#155c43;
    font-size:15px;
    letter-spacing:.04em;
    font-weight:900;
  }

  .portal-rp-calendar__arrow {
    display:inline-flex;
    width:30px;
    height:30px;
    align-items:center;
    justify-content:center;
    border:1px solid #ead8b9;
    border-radius:50%;
    background:#fffdf8;
    color:#155c43;
    font-size:13px;
    font-weight:900;
    text-decoration:none;
  }

  .portal-rp-calendar__arrow:hover {
    background:#f7f2e7;
  }

  .portal-rp-calendar__weekdays,
  .portal-rp-calendar__grid {
    display:grid;
    grid-template-columns:repeat(7, minmax(0,1fr));
    gap:5px;
  }

  .portal-rp-calendar__weekdays {
    padding:10px 0 5px;
  }

  .portal-rp-calendar__weekdays span {
    text-align:center;
    color:#6f7772;
    font-size:8px;
    line-height:1;
    font-weight:900;
  }

  .portal-rp-calendar__grid {
    align-items:center;
  }

  .portal-rp-calendar__blank {
    aspect-ratio:1;
  }

  .portal-rp-calendar__day {
    display:flex;
    aspect-ratio:1;
    align-items:center;
    justify-content:center;
    border:1px solid #ece6dc;
    border-radius:9px;
    background:#fff;
    color:#242924;
    font-size:12px;
    line-height:1;
    font-weight:850;
    text-decoration:none;
  }

  a.portal-rp-calendar__day:hover {
    border-color:#c8d9cf;
    background:#f4f8f6;
  }

  .portal-rp-calendar__day.has-races {
    position:relative;
  }

  .portal-rp-calendar__day.is-upcoming {
    border-color:#9fcab5;
    background:#eef8f2;
    color:#0d5a3d;
  }

  .portal-rp-calendar__day.is-result {
    background:#f0ede7;
    border-color:#ded7cc;
    color:#494943;
  }

  .portal-rp-calendar__day.is-active {
    border-color:#d5a84a;
    background:#fff1c9;
    color:#705018;
    box-shadow:inset 0 0 0 1px rgba(213,168,74,.15);
  }

  .portal-rp-calendar__legend {
    display:flex;
    flex-wrap:wrap;
    gap:7px 9px;
    margin-top:11px;
    padding-top:9px;
    border-top:1px solid #eadfca;
  }

  .portal-rp-calendar__legend span {
    display:inline-flex;
    align-items:center;
    gap:4px;
    color:#74766f;
    font-size:8.5px;
    font-weight:750;
  }

  .portal-rp-calendar__legend i {
    display:inline-block;
    width:8px;
    height:8px;
    border-radius:50%;
  }

  .portal-rp-calendar__legend i.is-upcoming { background:#1c7955; }
  .portal-rp-calendar__legend i.is-result { background:#b6b0a5; }
  .portal-rp-calendar__legend i.is-active { background:#d3a247; }

  .portal-rp-calendar__all {
    display:block;
    margin-top:10px;
    color:#a56d12;
    font-size:9.5px;
    line-height:1.3;
    font-weight:850;
    text-decoration:none;
  }

  .portal-rp-calendar__all:hover {
    text-decoration:underline;
  }

  /* Tagesübersicht nach Klick auf ein Kalenderdatum */
  .portal-rp-dayoverview__list {
    display:flex;
    flex-direction:column;
    gap:9px;
    margin-top:16px;
  }

  .portal-rp-dayoverview__item {
    display:grid;
    grid-template-columns:28px 36px minmax(0,1fr) 54px;
    column-gap:10px;
    align-items:stretch;
    min-height:72px;
    padding:0 0 0 10px;
    overflow:hidden;
    border:1px solid #dce5df;
    border-radius:11px;
    background:#fff;
    color:#194d3a;
    text-decoration:none;
    transition:border-color .15s ease, box-shadow .15s ease, background .15s ease;
  }

  .portal-rp-dayoverview__item:hover {
    border-color:#b9d0c4;
    background:#f8fbf9;
    box-shadow:0 3px 10px rgba(19,79,57,.07);
  }

  .portal-rp-dayoverview__flag,
  .portal-rp-dayoverview__icon,
  .portal-rp-dayoverview__text {
    align-self:center;
  }

  .portal-rp-dayoverview__flag {
    font-size:18px;
  }

  .portal-rp-dayoverview__icon {
    display:inline-flex;
    width:32px;
    height:32px;
    align-items:center;
    justify-content:center;
    border-radius:8px;
    background:#edf5f0;
    color:#155c43;
    font-size:19px;
  }

  .portal-rp-dayoverview__icon.is-trab {
    background:#f8f1df;
    color:#957019;
  }

  .portal-rp-dayoverview__text {
    display:flex;
    min-width:0;
    flex-direction:column;
    gap:2px;
  }

  .portal-rp-dayoverview__text small {
    color:#7a837e;
    font-size:9px;
    font-weight:700;
  }

  .portal-rp-dayoverview__text strong {
    font-size:14px;
    font-weight:850;
  }

  .portal-rp-dayoverview__go {
    display:flex;
    width:54px;
    min-height:72px;
    align-items:center;
    justify-content:center;
    align-self:stretch;
    background:#176447;
    border-left:1px solid #0f5139;
    transition:background .15s ease;
  }

  .portal-rp-dayoverview__item:hover .portal-rp-dayoverview__go {
    background:#0f563c;
  }

  .portal-rp-dayoverview__chevron {
    display:block;
    width:0;
    height:0;
    border-top:8px solid transparent;
    border-bottom:8px solid transparent;
    border-left:11px solid #fff;
    transform:translateX(1px);
  }
}


/* V167 – deutsche Termine im Kalender + Ergebnisse/Auszahlungen an vergangenen Tagen */
@media (min-width:901px) {
  .portal-rp-dayoverview__meeting {
    overflow:hidden;
    border:1px solid #dce5df;
    border-radius:11px;
    background:#fff;
  }

  .portal-rp-dayoverview__meeting .portal-rp-dayoverview__item {
    border:0;
    border-radius:0;
  }

  .portal-rp-dayresults {
    border-top:1px solid #e1e8e4;
    background:#fafbf9;
  }

  .portal-rp-dayresults__race + .portal-rp-dayresults__race {
    border-top:1px solid #e3e9e5;
  }

  .portal-rp-dayresults__racehead {
    display:grid;
    grid-template-columns:38px minmax(0,1fr) 24px;
    gap:8px;
    align-items:center;
    min-height:45px;
    padding:7px 10px;
    color:#184e3a;
    text-decoration:none;
  }

  .portal-rp-dayresults__racehead:hover {
    background:#f2f7f4;
  }

  .portal-rp-dayresults__badge {
    display:inline-flex;
    width:34px;
    height:30px;
    align-items:center;
    justify-content:center;
    border-radius:8px;
    background:#edf4f0;
    color:#155c43;
    font-size:11px;
    font-weight:900;
  }

  .portal-rp-dayresults__title {
    display:flex;
    min-width:0;
    flex-direction:column;
    gap:2px;
  }

  .portal-rp-dayresults__title strong {
    font-size:11.5px;
    font-weight:900;
  }

  .portal-rp-dayresults__title small {
    overflow:hidden;
    color:#6f7973;
    font-size:9px;
    white-space:nowrap;
    text-overflow:ellipsis;
  }

  .portal-rp-dayresults__open {
    text-align:right;
    font-size:15px;
    font-weight:900;
  }

  .portal-rp-dayresults__body {
    display:flex;
    gap:12px;
    align-items:flex-start;
    padding:0 10px 10px 56px;
  }

  .portal-rp-dayresults__order {
    display:flex;
    min-width:125px;
    flex-direction:column;
    gap:2px;
  }

  .portal-rp-dayresults__order span,
  .portal-rp-dayresults__payouts small {
    color:#8b6b2d;
    font-size:8px;
    line-height:1;
    font-weight:850;
    text-transform:uppercase;
  }

  .portal-rp-dayresults__order strong {
    color:#174e3a;
    font-size:12px;
    font-weight:900;
  }

  .portal-rp-dayresults__payouts {
    display:flex;
    flex:1 1 auto;
    flex-wrap:wrap;
    gap:6px;
  }

  .portal-rp-dayresults__payouts > span {
    display:flex;
    min-width:72px;
    flex-direction:column;
    gap:3px;
    padding:6px 8px;
    border:1px solid #e5d8ba;
    border-radius:8px;
    background:#fffaf0;
  }

  .portal-rp-dayresults__payouts strong {
    color:#174e3a;
    font-size:10.5px;
    font-weight:900;
  }

  .portal-rp-dayresults__empty {
    padding:0 10px 10px 56px;
    color:#7b847f;
    font-size:9px;
  }
}


/* V168 – einheitliche Tagesansicht: Rennbahnen als Tabs, genau eine Ansicht pro Renntag */
@media (min-width:901px) {
  .portal-rp-daytabs {
    display:flex;
    flex-wrap:wrap;
    gap:7px;
    margin-top:15px;
    padding-bottom:12px;
    border-bottom:1px solid #dce5df;
  }

  .portal-rp-daytabs__tab {
    display:grid;
    grid-template-columns:22px 27px minmax(0,1fr);
    gap:6px;
    align-items:center;
    min-width:155px;
    max-width:230px;
    min-height:48px;
    padding:7px 9px;
    border:1px solid #dbe5df;
    border-radius:9px;
    background:#f7faf8;
    color:#194d3a;
    text-decoration:none;
  }

  .portal-rp-daytabs__tab:hover {
    background:#eef5f1;
  }

  .portal-rp-daytabs__tab.is-active {
    border-color:#9cc8b1;
    background:#e8f3ed;
    box-shadow:inset 0 0 0 1px rgba(21,92,67,.06);
  }

  .portal-rp-daytabs__flag {
    font-size:14px;
  }

  .portal-rp-daytabs__icon {
    display:inline-flex;
    width:26px;
    height:26px;
    align-items:center;
    justify-content:center;
    border-radius:7px;
    background:#edf5f0;
    color:#155c43;
    font-size:15px;
  }

  .portal-rp-daytabs__icon.is-trab {
    background:#f8f1df;
    color:#957019;
  }

  .portal-rp-daytabs__text {
    display:flex;
    min-width:0;
    flex-direction:column;
    gap:2px;
  }

  .portal-rp-daytabs__text small {
    color:#7b847f;
    font-size:8px;
    line-height:1.05;
    font-weight:750;
  }

  .portal-rp-daytabs__text strong {
    overflow:hidden;
    font-size:11px;
    line-height:1.15;
    font-weight:900;
    white-space:nowrap;
    text-overflow:ellipsis;
  }

  .portal-rp-daypanel {
    margin-top:12px;
    overflow:hidden;
    border:1px solid #d8e2dc;
    border-radius:11px;
    background:#fff;
  }

  .portal-rp-daypanel__head {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding:11px 12px;
    border-bottom:1px solid #dfe7e2;
    background:linear-gradient(180deg,#f6f9f7,#eff5f1);
  }

  .portal-rp-daypanel__identity {
    display:flex;
    align-items:center;
    gap:8px;
    min-width:0;
  }

  .portal-rp-daypanel__flag {
    font-size:17px;
  }

  .portal-rp-daypanel__icon {
    display:inline-flex;
    width:30px;
    height:30px;
    align-items:center;
    justify-content:center;
    border-radius:8px;
    background:#edf5f0;
    color:#155c43;
    font-size:18px;
  }

  .portal-rp-daypanel__icon.is-trab {
    background:#f8f1df;
    color:#957019;
  }

  .portal-rp-daypanel__identity small {
    display:block;
    color:#7a837e;
    font-size:8.5px;
    font-weight:750;
  }

  .portal-rp-daypanel__identity h2 {
    margin:2px 0 0;
    color:#174e3a;
    font-size:16px;
    line-height:1.1;
    font-weight:850;
  }

  .portal-rp-daypanel__programlink {
    flex:0 0 auto;
    color:#155c43;
    font-size:10px;
    font-weight:850;
    text-decoration:none;
  }

  .portal-rp-daypanel__programlink:hover {
    text-decoration:underline;
  }

  .portal-rp-dayraces {
    display:flex;
    flex-direction:column;
  }

  .portal-rp-dayrace + .portal-rp-dayrace {
    border-top:1px solid #e2e8e4;
  }

  .portal-rp-dayrace__head {
    display:grid;
    grid-template-columns:38px minmax(0,1fr) 24px;
    gap:8px;
    align-items:center;
    min-height:49px;
    padding:7px 10px;
    color:#194d3a;
    text-decoration:none;
  }

  .portal-rp-dayrace__head:hover {
    background:#f3f7f4;
  }

  .portal-rp-dayrace__badge {
    display:inline-flex;
    width:34px;
    height:31px;
    align-items:center;
    justify-content:center;
    border-radius:8px;
    background:#edf4f0;
    color:#155c43;
    font-size:11px;
    font-weight:900;
  }

  .portal-rp-dayrace__title {
    display:flex;
    min-width:0;
    flex-direction:column;
    gap:2px;
  }

  .portal-rp-dayrace__title strong {
    font-size:11.5px;
    font-weight:900;
  }

  .portal-rp-dayrace__title small {
    overflow:hidden;
    color:#6e7872;
    font-size:9px;
    line-height:1.2;
    white-space:nowrap;
    text-overflow:ellipsis;
  }

  .portal-rp-dayrace__open {
    text-align:right;
    font-size:15px;
    font-weight:900;
  }

  .portal-rp-dayrace__result {
    display:flex;
    gap:11px;
    align-items:flex-start;
    padding:0 10px 10px 56px;
  }

  .portal-rp-dayrace__order {
    display:flex;
    min-width:126px;
    flex-direction:column;
    gap:2px;
  }

  .portal-rp-dayrace__order small,
  .portal-rp-dayrace__payouts small {
    color:#8b6b2d;
    font-size:8px;
    line-height:1;
    font-weight:850;
    text-transform:uppercase;
  }

  .portal-rp-dayrace__order strong {
    color:#174e3a;
    font-size:11.5px;
    font-weight:900;
  }

  .portal-rp-dayrace__payouts {
    display:flex;
    flex:1 1 auto;
    flex-wrap:wrap;
    gap:5px;
  }

  .portal-rp-dayrace__payouts > span {
    display:flex;
    min-width:73px;
    flex-direction:column;
    gap:3px;
    padding:5px 7px;
    border:1px solid #e4d6b6;
    border-radius:7px;
    background:#fffaf0;
  }

  .portal-rp-dayrace__payouts strong {
    color:#174e3a;
    font-size:10px;
    font-weight:900;
  }

  .portal-rp-dayrace__status,
  .portal-rp-daypanel__empty {
    padding:0 10px 10px 56px;
    color:#7a837e;
    font-size:9px;
  }
}


/* V173 – Tagesübersicht: komplette Rennzeile klickbar */
.portal-rp-dayrace__link{
  display:block;
  color:inherit;
  text-decoration:none;
}
.portal-rp-dayrace__link:hover{
  background:#f4f8f5;
}
.portal-rp-dayrace__link:focus-visible{
  outline:2px solid #b99a54;
  outline-offset:-2px;
}
.portal-rp-dayrace__open{
  min-width:86px;
  color:#155c43;
  font-size:9.5px;
  font-weight:850;
  white-space:nowrap;
}
.portal-rp-dayrace__link:hover .portal-rp-dayrace__open{
  text-decoration:underline;
}
@media(max-width:700px){
  .portal-rp-dayrace__open{
    min-width:0;
    font-size:0;
  }
  .portal-rp-dayrace__open::after{
    content:'→';
    font-size:15px;
  }
}


/* V174 – ganze Rennzeile ist der Link; rechts nur noch dezenter Pfeil */
.portal-rp-dayrace__open{
  min-width:18px;
  font-size:15px;
  text-align:right;
  text-decoration:none!important;
}
.portal-rp-dayrace__link:hover .portal-rp-dayrace__open{
  transform:translateX(2px);
}


/* V177 – echte Galopp-/Trab-Icons in der linken Rennprogramm-Navigation */
.portal-rp-programicon{
  overflow:hidden;
}
.portal-rp-programicon img{
  display:block;
  width:19px;
  height:19px;
  object-fit:contain;
}
.portal-rp-programicon--galopp{
  background:#eef5f1;
}
.portal-rp-programicon--trab{
  background:#f7f1df;
}


/* v130: feine Trennlinien im linken "Heutiges Rennprogramm" */
@media (min-width:901px) {
  .portal-rp-programlist {
    padding-top: 0;
  }

  .portal-rp-programlist a {
    border-bottom: 1px solid rgba(37, 91, 67, .11);
    border-radius: 0;
  }

  .portal-rp-programlist a:last-child {
    border-bottom: 0;
  }

  .portal-rp-programlist a:hover {
    border-radius: 8px;
  }
}

/* V153 – "Nächste Starts" auf den gemeinsamen Sidebar-Lesestandard ziehen */
@media (min-width:901px) {
  .portal-nextstarts__list a {
    grid-template-columns:48px minmax(0,1fr);
    gap:8px;
    min-height:42px;
    padding:8px 10px;
  }

  .portal-nextstarts__list strong {
    font-size:12.5px !important;
    line-height:1.2 !important;
    font-weight:900;
  }

  .portal-nextstarts__list span {
    font-size:12px !important;
    line-height:1.3 !important;
    font-weight:700;
  }
}

/* V155 – zentrale Rennkennung: Renntagsübersicht + Einzelrennen */
@media (min-width:901px) {
  .portal-racebadge {
    width:66px;
    min-height:72px;
    box-sizing:border-box;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    padding:7px 6px 6px;
    border:1px solid rgba(25,92,67,.24);
    border-radius:12px;
    background:#edf7f1;
    color:var(--ts-green-900);
    transition:background-color .18s ease,border-color .18s ease,color .18s ease;
  }
  .portal-racebadge strong {font-size:22px;line-height:1;font-weight:850;}
  .portal-racebadge span {margin-top:3px;font-size:8px;line-height:1;font-weight:900;letter-spacing:.055em;text-transform:uppercase;}
  .portal-racebadge time {
    display:block;width:100%;margin-top:7px;padding-top:5px;
    border-top:1px solid rgba(25,92,67,.18);
    color:inherit;font-size:9.5px;line-height:1;font-weight:900;text-align:center;white-space:nowrap;
  }
  .portal-racebadge.is-open {background:#eaf5ed;border-color:#b9d8c8;color:#155a41;}
  .portal-racebadge.is-result {background:#fbeeed;border-color:#e7c4c0;color:#8d4641;}
  .portal-racebadge.is-result time {border-top-color:rgba(141,70,65,.18);}

  .portal-rp-head__line > .portal-racebadge {flex:0 0 66px;}
}

/* V160 – Rennleiste dezent im Kopf, dunkel nur im Sticky-Zustand */
@media (min-width:901px) {
  .portal-rp-head.is-race {
    position:relative;
    padding-bottom:74px;
  }

  .portal-race-strip-sentinel {
    position:absolute;
    left:0;
    right:0;
    bottom:0;
    height:1px;
    pointer-events:none;
  }

  .portal-race-strip {
    position:absolute;
    left:24px;
    right:24px;
    bottom:12px;
    z-index:12;
    padding:6px;
    border:1px solid rgba(201,214,207,.95);
    border-radius:10px;
    background:rgba(255,255,255,.82);
    box-shadow:0 4px 13px rgba(22,54,43,.08);
    backdrop-filter:blur(8px);
    transition:background .16s ease,border-color .16s ease,box-shadow .16s ease;
  }

  .portal-race-strip.is-stuck {
    position:fixed;
    top:8px;
    bottom:auto;
    left:var(--race-strip-left);
    width:var(--race-strip-width);
    right:auto;
    box-sizing:border-box;
    z-index:60;
    background:rgba(43,46,47,.97);
    border-color:rgba(255,255,255,.12);
    box-shadow:0 8px 22px rgba(14,25,21,.22);
  }

  .portal-race-strip__inner {
    display:flex;
    align-items:center;
    gap:6px;
    overflow-x:auto;
    scrollbar-width:thin;
  }

  .portal-race-strip__item {
    min-width:66px;
    height:40px;
    flex:0 0 66px;
    box-sizing:border-box;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:5px;
    padding:0 7px;
    border:1px solid #b9d8c7;
    border-radius:8px;
    background:#edf7f1;
    color:#15583f;
    text-decoration:none;
    font-variant-numeric:tabular-nums;
    transition:transform .12s ease,box-shadow .12s ease;
  }

  .portal-race-strip__item:hover {
    transform:translateY(-1px);
    box-shadow:0 3px 8px rgba(15,55,42,.10);
  }

  .portal-race-strip__item.is-finished {
    border-color:#e3beb9;
    background:#fff1ef;
    color:#934842;
  }

  .portal-race-strip__item.is-current {
    border-width:2px;
    border-color:currentColor;
    box-shadow:0 0 0 2px rgba(255,255,255,.78);
  }

  .portal-race-strip__item strong {
    font-size:16px;
    line-height:1;
    font-weight:900;
    color:#202624;
  }

  .portal-race-strip__item span {
    font-size:9px;
    line-height:1;
    font-weight:800;
    color:inherit;
    opacity:.88;
    white-space:nowrap;
  }

  .portal-race-strip.is-stuck .portal-race-strip__item.is-current {
    box-shadow:0 0 0 2px rgba(43,46,47,.95),0 0 0 3px rgba(255,255,255,.25);
  }
}

/* V163 – rechte Rennnavigation: Status sofort lesbar */
@media (min-width:901px) {
  .portal-rp-racenav__item {
    opacity:1 !important;
    transition:background-color .14s ease,border-color .14s ease;
  }

  .portal-rp-racenav__item:not(.is-finished) {
    background:#fbfdfc;
  }

  .portal-rp-racenav__item:not(.is-finished):hover {
    background:#f0f7f3;
  }

  .portal-rp-racenav__item.is-finished {
    background:#fff7f6;
  }

  .portal-rp-racenav__item.is-finished:hover {
    background:#fcefed;
  }

  .portal-rp-racenav__badge {
    background:#eaf5ef;
    border:1px solid #bfdbc9;
    color:#155c43;
  }

  .portal-rp-racenav__item.is-finished .portal-rp-racenav__badge {
    background:#fbe9e7;
    border-color:#e5bab5;
    color:#96473f;
  }

  .portal-rp-racenav__item.is-current {
    box-shadow:inset 3px 0 0 #155c43;
  }

  .portal-rp-racenav__item.is-current.is-finished {
    box-shadow:inset 3px 0 0 #96473f;
  }

  .portal-rp-racenav__item.is-current:not(.is-finished) .portal-rp-racenav__badge {
    background:#155c43;
    border-color:#155c43;
    color:#fff;
  }

  .portal-rp-racenav__item.is-current.is-finished .portal-rp-racenav__badge {
    background:#96473f;
    border-color:#96473f;
    color:#fff;
  }

  .portal-rp-racenav__top strong {
    color:#174f3b;
  }

  .portal-rp-racenav__item.is-finished .portal-rp-racenav__top strong {
    color:#7f4944;
  }

  .portal-rp-racenav__content .portal-rp-racenav__result {
    display:block;
    margin-top:4px;
    color:#94483f;
    font-size:10px !important;
    line-height:1.25 !important;
    font-weight:850;
    font-variant-numeric:tabular-nums;
    white-space:nowrap;
  }

  .portal-rp-racenav__content .portal-rp-racenav__title {
    display:-webkit-box;
    margin-top:3px;
    overflow:hidden;
    color:#707a74;
    font-size:9.5px !important;
    line-height:1.25 !important;
    font-weight:500;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:2;
  }
}

/* V164 – Feinschliff rechte Rennnavigation */
@media (min-width:901px) {
  .portal-rp-racenav__top strong {
    font-size:11px !important;
  }

  .portal-rp-racenav__content .portal-rp-racenav__result {
    color:#94483f;
  }

  .portal-rp-racenav__content .portal-rp-racenav__result::first-line {
    color:#94483f;
  }

  .portal-rp-racenav__content .portal-rp-racenav__result {
    font-weight:750;
  }

  .portal-rp-racenav__content .portal-rp-racenav__result {
    --result-number-color:#202624;
  }
}


@media (min-width:901px) {
  .portal-rp-racenav__content .portal-rp-racenav__result span {
    color:#94483f;
    font-weight:800;
  }
  .portal-rp-racenav__content .portal-rp-racenav__result strong {
    color:#202624;
    font-weight:900;
  }
}

/* V167b – Kalendertag: ausgewogenere Renntag-Tabs, ohne andere Rennprogramm-Stile zu überschreiben */
@media (min-width:901px) {
  .portal-rp-daytabs {
    gap:10px;
    margin-top:18px;
    padding-bottom:16px;
  }

  .portal-rp-daytabs__tab {
    grid-template-columns:22px 30px minmax(0,1fr);
    gap:8px;
    min-width:168px;
    max-width:250px;
    min-height:54px;
    padding:9px 12px;
    border-radius:11px;
    background:#f8fbf9;
  }

  .portal-rp-daytabs__tab:hover {
    border-color:#bfd4ca;
    box-shadow:0 5px 14px rgba(21,92,67,.05);
    transform:translateY(-1px);
  }

  .portal-rp-daytabs__tab.is-active {
    background:linear-gradient(180deg,#f3faf6,#e8f3ed);
    box-shadow:inset 0 0 0 1px rgba(21,92,67,.05),0 4px 12px rgba(21,92,67,.05);
  }

  .portal-rp-daytabs__flag {
    font-size:16px;
  }

  .portal-rp-daytabs__icon {
    width:28px;
    height:28px;
    overflow:hidden;
  }

  .portal-rp-daytabs__icon img {
    display:block;
    width:19px;
    height:19px;
    object-fit:contain;
  }

  .portal-rp-daytabs__text {
    gap:3px;
  }

  .portal-rp-daytabs__text small {
    font-size:8.9px;
    line-height:1.1;
    font-weight:800;
  }

  .portal-rp-daytabs__text strong {
    font-size:12.8px;
    line-height:1.15;
  }

  .portal-rp-daypanel {
    margin-top:14px;
    border-radius:12px;
  }

  .portal-rp-daypanel__head {
    gap:14px;
    padding:13px 15px;
  }

  .portal-rp-daypanel__identity {
    gap:10px;
  }

  .portal-rp-daypanel__icon {
    width:30px;
    height:30px;
    overflow:hidden;
  }

  .portal-rp-daypanel__icon img {
    display:block;
    width:20px;
    height:20px;
    object-fit:contain;
  }

  .portal-rp-daypanel__identity h2 {
    font-size:18px;
    font-weight:900;
  }
}

@media (max-width:760px) {
  .portal-rp-daytabs__tab {
    min-width:100%;
    max-width:100%;
  }

  .portal-rp-daypanel__head {
    align-items:flex-start;
    flex-direction:column;
  }
}


/* V187 – Startzeiten und chronologische Tagesnavigation */
@media (min-width:901px) {
  .portal-rp-programlist a {
    grid-template-columns:28px minmax(0,1fr) auto;
  }

  .portal-rp-programlist__time {
    display:flex;
    min-width:48px;
    flex-direction:column;
    align-items:flex-end;
    gap:1px;
    text-align:right;
    white-space:nowrap;
  }

  .portal-rp-programlist__time small {
    color:#8a958f;
    font-size:7px;
    line-height:1.05;
    font-weight:750;
    text-transform:none;
  }

  .portal-rp-programlist__time strong {
    color:#155c43;
    font-size:10px;
    line-height:1.1;
    font-weight:900;
  }

  .portal-rp-daytabs__tab {
    min-width:178px;
  }

  .portal-rp-daytabs__time {
    display:block;
    margin-top:1px;
    color:#728079;
    font-size:8px;
    line-height:1.1;
    font-weight:750;
    white-space:nowrap;
  }
}

/* V191 – Rennleiste nicht mehr beim Scrollen fixieren. */
@media (min-width: 901px) {
  .portal-race-strip.is-stuck {
    position: absolute;
    top: auto;
    right: 24px;
    bottom: 12px;
    left: 24px;
    width: auto;
    z-index: 12;
    box-sizing: border-box;
    background: rgba(255,255,255,.82);
    border-color: rgba(201,214,207,.95);
    box-shadow: 0 4px 13px rgba(22,54,43,.08);
  }

  .portal-race-strip.is-stuck .portal-race-strip__item.is-current {
    box-shadow: 0 0 0 2px rgba(255,255,255,.78);
  }
}


/* Deutschland-Fokus: kommende deutsche Rennbahnen direkt unter dem Kalender. */
@media (min-width:901px) {
  .portal-rp-deweek__list {
    display:flex;
    flex-direction:column;
    padding:5px 6px 7px;
  }

  .portal-rp-deweek__list a {
    display:grid;
    grid-template-columns:52px minmax(0,1fr);
    gap:2px 8px;
    align-items:center;
    min-height:43px;
    padding:6px 7px;
    border-radius:8px;
    color:#194d3a;
    text-decoration:none;
  }

  .portal-rp-deweek__list a + a {
    border-top:1px solid #e7ece9;
  }

  .portal-rp-deweek__list a:hover {
    background:#edf5f0;
  }

  .portal-rp-deweek__date {
    grid-row:1 / 3;
    color:#9b701c;
    font-size:10px;
    font-weight:900;
    white-space:nowrap;
  }

  .portal-rp-deweek__track {
    min-width:0;
    overflow:hidden;
    color:#174e3a;
    font-size:12.5px;
    font-weight:850;
    text-overflow:ellipsis;
    white-space:nowrap;
  }

  .portal-rp-deweek__time {
    color:#78847e;
    font-size:9px;
    font-weight:700;
  }
}


/* Deutschland-Fokus v2: kurze Überschrift im Wochenblock. */
@media (min-width:901px) {
  .portal-rp-deweek .portal-rp-leftcard__title {
    font-size:12px;
    line-height:1.15;
    letter-spacing:.01em;
  }
}


/* Deutschland-Fokus v3: Datum im Wochenblock besser lesbar. */
@media (min-width:901px) {
  .portal-rp-deweek__date {
    font-size:11.5px;
  }
}

/* Deutschland-Fokus v7: Bildkopf auf der Kalender-Tagesseite. */
@media (min-width:901px) {
  .portal-rp-dayoverview__hero {
    position:relative;
    min-height:190px;
    margin:-2px 0 18px;
    overflow:hidden;
    border-radius:14px;
    background-image:url('/pferderennen-media/renntermine-galopp-trab.jpg');
    background-position:center 56%;
    background-size:cover;
    box-shadow:0 7px 20px rgba(24,58,45,.11);
  }

  .portal-rp-dayoverview__heroShade {
    position:absolute;
    inset:0;
    background:linear-gradient(90deg,rgba(8,43,31,.82) 0%,rgba(8,43,31,.58) 36%,rgba(8,43,31,.18) 64%,rgba(8,43,31,.08) 100%);
    pointer-events:none;
  }

  .portal-rp-dayoverview__heroText {
    position:relative;
    z-index:1;
    display:flex;
    min-height:190px;
    box-sizing:border-box;
    flex-direction:column;
    justify-content:center;
    padding:24px 30px;
    color:#fff;
  }

  .portal-rp-dayoverview__hero .portal-kicker {
    margin:0 0 7px;
    color:#f1c86b;
    font-size:11px;
    font-weight:900;
    letter-spacing:.08em;
    text-transform:uppercase;
    text-shadow:0 1px 2px rgba(0,0,0,.25);
  }

  .portal-rp-dayoverview__hero h1 {
    max-width:600px;
    margin:0;
    color:#fff;
    font-size:32px;
    line-height:1.08;
    font-weight:750;
    text-shadow:0 2px 8px rgba(0,0,0,.34);
  }

  .portal-rp-dayoverview__heroSub {
    margin:9px 0 0;
    color:rgba(255,255,255,.9);
    font-size:13px;
    font-weight:650;
    text-shadow:0 1px 4px rgba(0,0,0,.28);
  }

  .portal-rp-dayoverview__list {
    margin-top:0;
  }
}

/* SEO-H1 kann länger sein; der eigentliche Rennname bleibt als eigene Zeile sichtbar. */
.portal-rp-head__race-name{margin:0 0 5px;font-size:14px;line-height:1.3;font-weight:700;color:var(--ts-text)}
.portal-rp-head.is-race .portal-race-page-title{max-width:760px}


/* Desktop-Startseite: Kalender oben, heutige Rennen darunter im normalen grünen Kartenstil. */
@media (min-width:901px) {
  .portal-rp-sidebar--home .portal-rp-calendar {
    border-color:#d9e1dc;
  }
  .portal-rp-sidebar--home .portal-rp-deweek .portal-rp-leftcard__title {
    background:#155c43;
  }
}

/* V202 – kommende Pferderennen in der linken Navigation als visuelle Kalenderblätter. */
@media (min-width:901px) {
  .portal-rp-deweek__list {
    gap:5px;
    padding:8px;
  }

  .portal-rp-deweek__list a {
    grid-template-columns:46px minmax(0,1fr) 20px;
    gap:8px;
    min-height:58px;
    padding:5px 5px 5px 4px;
    border:1px solid transparent;
    border-radius:10px;
  }

  .portal-rp-deweek__list a + a {
    border-top-color:transparent;
  }

  .portal-rp-deweek__list a:hover {
    border-color:#d9e4dd;
    background:#f4f8f5;
    box-shadow:0 3px 10px rgba(21,92,67,.06);
  }

  .portal-rp-deweek__calendar {
    display:grid;
    grid-template-rows:14px 24px 13px;
    width:44px;
    min-width:44px;
    height:51px;
    overflow:hidden;
    border:1px solid #d8c8a5;
    border-radius:8px;
    background:#fff;
    box-shadow:0 2px 5px rgba(63,47,20,.08);
    text-align:center;
    line-height:1;
  }

  .portal-rp-deweek__calendar-month {
    display:flex;
    align-items:center;
    justify-content:center;
    background:linear-gradient(180deg,#d9981d,#c88710);
    color:#fff;
    font-size:8px;
    font-weight:950;
    letter-spacing:.055em;
  }

  .portal-rp-deweek__calendar strong {
    display:flex;
    align-items:end;
    justify-content:center;
    color:#163f31;
    font-size:20px;
    font-weight:950;
    letter-spacing:-.04em;
  }

  .portal-rp-deweek__calendar small {
    display:flex;
    align-items:center;
    justify-content:center;
    color:#a56d0e;
    font-size:8px;
    font-weight:950;
    letter-spacing:.06em;
  }

  .portal-rp-deweek__content {
    min-width:0;
    display:flex;
    flex-direction:column;
    justify-content:center;
    gap:3px;
  }

  .portal-rp-deweek__track {
    display:block;
    font-size:12.5px;
    line-height:1.15;
  }

  .portal-rp-deweek__time {
    display:block;
    font-size:9px;
    line-height:1.15;
  }

  .portal-rp-deweek__arrow {
    display:flex;
    width:19px;
    height:19px;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    background:#17684d;
    color:#fff;
    font-size:15px;
    font-weight:900;
    line-height:1;
    transition:transform .16s ease, background .16s ease;
  }

  .portal-rp-deweek__list a:hover .portal-rp-deweek__arrow {
    transform:translateX(2px);
    background:#c98710;
  }
}


/* Desktop-Feinschliff: Premium-Pfeilbuttons in linker Startseiten-Spalte */
@media (min-width: 901px) {
  .portal-rp-calendar__arrow {
    width:28px;
    height:28px;
    border:1px solid #d8bc86;
    border-radius:8px;
    background:linear-gradient(180deg,#fffaf1 0%,#f4ead3 100%);
    box-shadow:inset 0 1px 0 rgba(255,255,255,.82), 0 4px 10px rgba(44,53,40,.07);
    color:#176247;
    font-size:13px;
    font-weight:900;
  }

  .portal-rp-calendar__arrow:hover {
    background:linear-gradient(180deg,#fff7ea 0%,#efdfbf 100%);
    border-color:#cda35f;
    color:#b07412;
  }

  .portal-rp-deweek__arrow {
    width:22px;
    height:22px;
    border:1px solid #d8bc86;
    border-radius:7px;
    background:linear-gradient(180deg,#fffaf1 0%,#f4ead3 100%);
    box-shadow:inset 0 1px 0 rgba(255,255,255,.82), 0 4px 10px rgba(44,53,40,.07);
    color:#176247;
    font-size:13px;
    font-weight:900;
    line-height:1;
    transition:transform .16s ease, background .16s ease, border-color .16s ease, color .16s ease;
  }

  .portal-rp-deweek__list a:hover .portal-rp-deweek__arrow {
    transform:translateX(1px);
    background:linear-gradient(180deg,#fff7ea 0%,#efdfbf 100%);
    border-color:#cda35f;
    color:#b07412;
  }
}


/* V203 – Desktop: dezente Chevron-Navigation ohne Button-Look */
@media (min-width: 901px) {
  .portal-rp-deweek__arrow {
    position:relative;
    display:inline-flex;
    width:20px;
    height:20px;
    align-items:center;
    justify-content:center;
    border:0;
    border-radius:0;
    background:transparent !important;
    box-shadow:none !important;
    color:#b57a18;
    font-size:0;
    line-height:1;
    transform:none;
    transition:color .16s ease, transform .16s ease;
  }
  .portal-rp-deweek__arrow::before {
    content:"";
    width:7px;
    height:7px;
    border-top:2px solid currentColor;
    border-right:2px solid currentColor;
    transform:rotate(45deg);
  }
  .portal-rp-deweek__list a:hover .portal-rp-deweek__arrow {
    color:#176247;
    background:transparent;
    border-color:transparent;
    box-shadow:none;
    transform:translateX(2px);
  }
  .portal-rp-calendar__arrow {
    width:28px;
    height:28px;
    border:0;
    border-radius:0;
    background:transparent;
    box-shadow:none;
    color:#b57a18;
    font-size:16px;
    font-weight:800;
    transition:color .16s ease, transform .16s ease;
  }
  .portal-rp-calendar__arrow:hover {
    background:transparent;
    border-color:transparent;
    box-shadow:none;
    color:#176247;
  }
  .portal-rp-calendar__arrow:first-child:hover { transform:translateX(-2px); }
  .portal-rp-calendar__arrow:last-child:hover { transform:translateX(2px); }
}
