/* Rennprogramm – Desktop/Laptop.
   Eigene Rennkomponenten bleiben bewusst außerhalb der allgemeinen Komponenten-Datei. */
@media (min-width: 901px) {
  .portal-racecard {
    margin: 12px 0 20px;
    border: 1px solid var(--ts-border);
    border-radius: var(--ts-radius-md);
    background: var(--ts-surface);
    overflow: hidden;
  }

  .portal-racecard__head {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 15px 17px;
    border-bottom: 1px solid #dfca9e;
    background: linear-gradient(105deg, #fffdf8 0%, #fbf3e3 100%);
  }

  .portal-racecard__raceid {
    width: 68px;
    min-height: 70px;
    flex: 0 0 68px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    box-sizing: border-box;
    padding: 7px 5px;
    border: 1px solid #b9d8c8;
    border-radius: 10px;
    background: #edf7f2;
  }

  .portal-racecard__number {
    color: var(--ts-green-900);
    font-size: 25px;
    line-height: 1;
    font-weight: 850;
  }

  .portal-racecard__raceid small {
    color: var(--ts-green-800);
    font-size: 7px;
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: .05em;
    text-transform: uppercase;
  }

  .portal-racecard__time {
    margin-top: 5px;
    color: var(--ts-green-900);
    font-size: 11px;
    line-height: 1;
    font-weight: 850;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
  }

  .portal-racecard__title { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
  .portal-racecard__title > strong { color: var(--ts-green-900); font-size: 18px; font-weight: 750; line-height: 1.25; }
  .portal-racecard__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: #485950; font-size: 11px; line-height: 1.25; }
  .portal-racecard__meta span { display: inline-flex; min-height: 25px; align-items: center; box-sizing: border-box; padding: 4px 8px; border: 1px solid #ded8cc; border-radius: 999px; background: rgba(255,255,255,.78); font-weight: 700; white-space: nowrap; }
  .portal-racecard__meta span.portal-racecard__meta--distance { border-color: #b9d8c8; background: #edf7f2; color: var(--ts-green-900); font-weight: 850; }
  .portal-racecard__meta span.portal-racecard__meta--type,
  .portal-racecard__meta span.portal-racecard__meta--classification { border-color: #d7b766; background: #f6e4b8; color: #66480e; font-weight: 900; }
  .portal-racecard__meta span.portal-racecard__meta--prize { color: var(--ts-green-900); font-weight: 850; }

  .portal-runners-wrap { width: 100%; overflow-x: auto; }
  .portal-runners { width: 100%; min-width: 900px; border-collapse: collapse; table-layout: fixed; background: #fff; }
  .portal-runners th,
  .portal-runners td { padding: 9px 7px; border-bottom: 1px solid var(--ts-border); vertical-align: middle; text-align: left; }
  .portal-runners th { background: #f1f6f3; color: var(--ts-green-900); font-size: 11px; font-weight: 650; letter-spacing: .015em; white-space: nowrap; }
  .portal-runners td { color: var(--ts-text); font-size: 12px; line-height: 1.25; }
  .portal-runners tbody tr:last-child td { border-bottom: 0; }
  .portal-runners tbody tr:hover td { background: #fafcfb; }
  .portal-runners .is-number { text-align: right; font-variant-numeric: tabular-nums; }

  /* Startnummer, Box und Jockey-Trikot bilden bewusst eine einzige,
     links feste Starter-Einheit – wie im bekannten Turfsport-Rennprogramm. */
  .portal-runners__col-starter { width: 82px; }
  .portal-runners__col-horse { width: 205px; }
  .portal-runners__col-age { width: 62px; }
  .portal-runners__col-jockey { width: 140px; }
  .portal-runners__col-rating { width: 82px; }
  .portal-runners__col-trainer { width: 220px; }
  .portal-runners__col-quote { width: 66px; }

  .portal-runners__starterhead { text-align: center !important; }
  .portal-runners__starter { padding: 7px 5px !important; text-align: center !important; }
  .portal-startermark { min-height: 70px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; }
  .portal-startermark__silk { width: 48px; height: 43px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
  .portal-startermark__silk img {
    display: block !important;
    width: 44px !important;
    height: 40px !important;
    max-width: 44px !important;
    max-height: 40px !important;
    object-fit: contain !important;
    margin: 0 auto !important;
  }
  .portal-startermark__silk span { display: block; width: 34px; height: 32px; border: 1px dashed #d5dfda; border-radius: 6px; background: #fbfcfb; }
  .portal-startermark__number { color: var(--ts-green-900); font-size: 20px; line-height: 1.05; font-weight: 700; font-variant-numeric: tabular-nums; }
  .portal-startermark__box { margin-top: 1px; color: var(--ts-text-muted); font-size: 10px; line-height: 1.1; font-weight: 500; white-space: nowrap; }

  .portal-runners__horse strong { color: var(--ts-green-900); font-size: 13px; font-weight: 700; }
  .portal-runners__horse small { display: inline-block; margin-left: 6px; color: #9b2f2f; font-size: 10px; font-weight: 700; }
  .portal-runners__flag-de {
    display: inline-block;
    width: 17px;
    height: 11px;
    margin-left: 6px;
    border: 1px solid rgba(35, 45, 40, .18);
    border-radius: 1px;
    background: linear-gradient(to bottom, #111 0 33.333%, #d00 33.333% 66.666%, #ffce00 66.666% 100%);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .55) inset;
    vertical-align: -1px;
  }
  .portal-runners__jockey > span:first-child,
  .portal-runners__trainer > span:first-child { display: block; }
  .portal-runners__trainer > span:first-child b { color: var(--ts-text-muted); font-weight: 600; }
  .portal-runners__ratinghead,
  .portal-runners__rating { text-align: left !important; padding-left: 10px !important; }
  .portal-runners__rating { font-weight: 650; }
  .portal-runners__subline { display: block; margin-top: 4px; color: var(--ts-text-muted); font-size: 10.5px; line-height: 1.2; font-weight: 500; font-variant-numeric: tabular-nums; }
  .portal-runners__subline b { color: var(--ts-text-muted); font-weight: 600; }
  .portal-runners__quote { color: var(--ts-green-800); font-weight: 700; }
  .portal-quote { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; min-width: 0; }
  .portal-quote__current {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    min-height: 27px;
    padding: 5px 12px 5px 10px;
    border: 1px solid rgba(39, 105, 72, .18);
    border-radius: 7px;
    background: #edf6f0;
    white-space: nowrap;
    overflow: hidden;
  }
  .portal-quote__current strong {
    color: var(--ts-green-900);
    font-size: 13px;
    line-height: 1;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
  }
  .portal-quote__trend {
    position: absolute;
    width: 0;
    height: 0;
    padding: 0;
    border: 0;
    font-size: 0;
    line-height: 0;
    pointer-events: none;
  }
  .portal-quote__trend--up {
    top: 0;
    right: 0;
    border-left: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-top: 8px solid #c89427;
  }
  .portal-quote__trend--down {
    right: 0;
    bottom: 0;
    border-left: 8px solid transparent;
    border-top: 8px solid transparent;
    border-bottom: 8px solid #c89427;
  }
  .portal-quote__history { display: flex; align-items: center; justify-content: flex-end; gap: 4px; max-width: 100%; white-space: nowrap; color: var(--ts-text-muted); font-size: 8.5px; line-height: 1; font-weight: 550; font-variant-numeric: tabular-nums; }
  .portal-quote__history span + span::before { content: '·'; margin-right: 4px; color: rgba(181,145,58,.72); }
  .portal-runners__jockey > span:first-child b { color: var(--ts-text-muted); font-weight: 600; }
  .portal-profillink { color: inherit; text-decoration: none; text-underline-offset: 2px; }
  .portal-profillink:hover { color: var(--ts-green-700); text-decoration: underline; text-decoration-color: rgba(181,145,58,.68); }
  .portal-profillink:focus-visible { outline: 2px solid rgba(181,145,58,.55); outline-offset: 2px; border-radius: 2px; }
  .portal-profillink--horse { color: var(--ts-green-900); }

  .portal-runners__sortable { padding: 0 !important; }
  .portal-sortbutton {
    width: 100%;
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 9px 7px;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-weight: inherit;
    letter-spacing: inherit;
    text-align: left;
    cursor: pointer;
  }
  .portal-sortbutton:hover { color: var(--ts-green-700); background: rgba(255,255,255,.44); }
  .portal-sortbutton:focus-visible { outline: 2px solid rgba(181,145,58,.55); outline-offset: -2px; }
  .portal-sortbutton--right { justify-content: flex-end; text-align: right; }
  .portal-sortbutton__icon { color: var(--ts-gold); font-size: 11px; line-height: 1; font-weight: 700; }
  .portal-sortbutton[data-sort-state="asc"] .portal-sortbutton__icon::before { content: '↑'; }
  .portal-sortbutton[data-sort-state="desc"] .portal-sortbutton__icon::before { content: '↓'; }
  .portal-sortbutton[data-sort-state="asc"] .portal-sortbutton__icon,
  .portal-sortbutton[data-sort-state="desc"] .portal-sortbutton__icon { font-size: 0; }
  .portal-sortbutton[data-sort-state="asc"] .portal-sortbutton__icon::before,
  .portal-sortbutton[data-sort-state="desc"] .portal-sortbutton__icon::before { font-size: 11px; }

  .portal-runners tr.is-nonrunner td { color: #8b9490; background: #fafafa; }
  .portal-runners tr.is-nonrunner .portal-runners__horse strong { color: #7d8782; text-decoration: line-through; }

  .portal-runners__equipment { display: inline-flex; align-items: center; justify-content: center; margin-left: 5px; min-width: 23px; height: 17px; padding: 0 4px; border: 1px solid #b8d4c6; border-radius: 3px; color: #0c543a; background: #edf7f2; font-size: 8.5px; line-height: 1; font-weight: 850; letter-spacing: .025em; vertical-align: 1px; }
  .portal-runners__ns { display: inline-flex; align-items: center; margin-left: 7px; padding: 1px 5px; border: 1px solid #d8aaa2; border-radius: 4px; color: #9b3f34; background: #fff7f5; font-size: 10px; line-height: 1.2; font-weight: 700; letter-spacing: .03em; vertical-align: 1px; }
  .portal-runners tr.is-nonrunner .portal-startermark__silk { opacity: .48; }
  .portal-runners tr.is-nonrunner .portal-startermark__number { color: #8b9490; }
}



/* Frankreich-History direkt im Rennprogramm */
.portal-historytoggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 5px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ts-green-700);
  font: inherit;
  font-size: 9.5px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: .01em;
  cursor: pointer;
}
.portal-historytoggle:hover { color: var(--ts-green-900); }
.portal-historytoggle:focus-visible {
  outline: 2px solid rgba(181,145,58,.45);
  outline-offset: 2px;
  border-radius: 4px;
}
.portal-historytoggle__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  border: 1px solid rgba(181,145,58,.48);
  border-radius: 50%;
  background: #fffaf0;
  color: #8b6a16;
  font-size: 12px;
  line-height: 1;
  font-weight: 800;
  transition: transform .15s ease, background .15s ease;
}
.portal-historytoggle[aria-expanded="true"] .portal-historytoggle__icon {
  transform: rotate(180deg);
  background: #f7efe0;
}
.portal-historyrow > td {
  padding: 0 !important;
  border-top: 0 !important;
  background: #fbfcfb;
}
.portal-history {
  border-top: 1px solid rgba(27, 78, 53, .08);
  border-bottom: 1px solid rgba(27, 78, 53, .08);
}
.portal-history__list {
  padding: 5px 12px 8px 74px;
}
.portal-history__item {
  display: grid;
  grid-template-columns: 70px minmax(250px, 1fr) 48px 120px 68px 76px;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 6px 0;
  border-top: 1px solid rgba(27, 78, 53, .08);
  color: var(--ts-text);
  font-size: 10.5px;
}
.portal-history__date,
.portal-history__weight,
.portal-history__gag {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.portal-history__race strong {
  display: block;
  color: var(--ts-green-900);
  font-size: 10.5px;
}
.portal-history__race small {
  display: block;
  margin-top: 2px;
  color: var(--ts-text-muted);
  font-size: 9.5px;
}
.portal-history__place {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.portal-history__place strong { color: var(--ts-green-900); }
.portal-history__place a {
  color: var(--ts-gold);
  text-decoration: none;
  font-size: 10px;
}
.portal-history__place a:hover { color: var(--ts-green-700); }



/* V124 – History nach der bestehenden Vorlage, kompakt und linksbündig */
.portal-history__list{
  padding:10px 12px 12px 18px;
}
.portal-historyclassic{
  overflow:hidden;
  width:100%;
  border:1px solid #e4d1a5;
  border-radius:11px;
  background:#fffdf8;
}
.portal-historyclassic__head,
.portal-historyclassic__row{
  display:grid;
  grid-template-columns:60px 62px minmax(118px,1.15fr) 70px 64px minmax(105px,1fr) 76px 44px 52px 44px 44px;
  align-items:stretch;
}
.portal-historyclassic__head{
  min-height:25px;
  background:#f4ecdc;
  border-bottom:1px solid #e4d1a5;
  color:#79571e;
  font-size:8.5px;
  font-weight:900;
  letter-spacing:.025em;
  text-transform:uppercase;
}
.portal-historyclassic__head span{
  display:flex;
  align-items:center;
  padding:5px 6px;
}
.portal-historyclassic__item + .portal-historyclassic__item{
  border-top:1px solid #e8ddca;
}
.portal-historyclassic__row{
  min-height:47px;
  background:#fffdf9;
}
.portal-historyclassic__row:hover{
  background:#fffbf3;
}
.portal-historyclassic__cell{
  display:flex;
  min-width:0;
  align-items:center;
  padding:6px;
}
.portal-historyclassic__cell strong{
  min-width:0;
  color:#2f342f;
  font-size:9.4px;
  line-height:1.18;
  font-weight:600;
  overflow-wrap:anywhere;
}
.portal-historyclassic__track strong{
  color:#0d5238;
  font-weight:850;
}
.portal-historyclassic__place,
.portal-historyclassic__video,
.portal-historyclassic__details{
  justify-content:center;
}
.portal-historyclassic__place strong{
  display:inline-flex;
  min-width:41px;
  min-height:25px;
  align-items:center;
  justify-content:center;
  padding:0 7px;
  border:1px solid #b9d9c7;
  border-radius:999px;
  background:#eaf6ef;
  color:#0d5a3d;
  font-weight:900;
  white-space:nowrap;
}
.portal-historyclassic__round{
  display:inline-flex;
  width:25px;
  height:25px;
  padding:0;
  align-items:center;
  justify-content:center;
  border:1px solid #bad8c9;
  border-radius:50%;
  background:#edf7f2;
  color:#0d5a3d;
  font:inherit;
  font-size:9px;
  font-weight:800;
  cursor:pointer;
}
.portal-historyclassic__detailbutton{
  border-color:#e7d19f;
  background:#fff7e7;
  color:#8a641d;
  font-size:12px;
  transition:transform .15s ease;
}
.portal-historyclassic__detailbutton[aria-expanded="true"]{
  transform:rotate(180deg);
}
.portal-historyclassic__detail{
  padding:0 10px 10px;
  border-top:1px solid #ead8b2;
  background:#fffaf0;
}
.portal-history-detailbox{
  padding-top:10px;
}
.portal-history-detailbox__head{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:flex-start;
  padding:0 4px 8px;
}
.portal-history-detailbox__head > div:first-child{
  display:flex;
  flex-direction:column;
  gap:3px;
}
.portal-history-detailbox__head strong{
  color:#154b35;
  font-size:10.5px;
}
.portal-history-detailbox__head small{
  color:#4f4a42;
  font-size:9.5px;
  font-weight:700;
}
.portal-history-detailbox__chips{
  display:flex;
  gap:6px;
  flex-wrap:wrap;
}
.portal-history-detailbox__chips span{
  display:inline-flex;
  min-height:23px;
  align-items:center;
  padding:0 8px;
  border:1px solid #e4d4b4;
  border-radius:999px;
  background:#fffdf8;
  color:#61491e;
  font-size:8.7px;
  font-weight:800;
}
.portal-history-detailbox__tablewrap{
  overflow-x:auto;
  border:1px solid #e8dcc7;
  border-radius:8px;
}
.portal-history-detailbox__table{
  width:100%;
  min-width:690px;
  border-collapse:collapse;
  background:#fffdf8;
  font-size:9.5px;
}
.portal-history-detailbox__table th,
.portal-history-detailbox__table td{
  padding:5px 6px;
  border-bottom:1px solid #e5ddd0;
}
.portal-history-detailbox__table th{
  background:#f2eadb;
  color:#70531e;
  font-size:8px;
  font-weight:900;
  text-transform:uppercase;
}
.portal-history-detailbox__table tr.is-current td{
  background:#e5f2eb;
  font-weight:800;
}
.portal-history-detailbox__footer{
  display:flex;
  justify-content:flex-end;
  padding-top:8px;
}
.portal-history-detailbox__footer button{
  min-height:27px;
  padding:0 11px;
  border:0;
  border-radius:999px;
  background:#0e5c3e;
  color:white;
  font-size:8.7px;
  font-weight:800;
  cursor:pointer;
}

/* Kleines Video-Fenster statt Navigation in einen neuen Tab */
.portal-historyvideo[hidden]{display:none!important;}
.portal-historyvideo{
  position:fixed;
  inset:0;
  z-index:99999;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:20px;
}
.portal-historyvideo__backdrop{
  position:absolute;
  inset:0;
  border:0;
  background:rgba(12,31,24,.72);
  cursor:pointer;
}
.portal-historyvideo__panel{
  position:relative;
  z-index:1;
  width:min(760px,92vw);
  overflow:hidden;
  border:1px solid #dcc38b;
  border-radius:14px;
  background:#fffdf8;
  box-shadow:0 24px 70px rgba(0,0,0,.34);
}
.portal-historyvideo__head{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:center;
  padding:10px 12px;
  border-bottom:1px solid #e5d8bd;
  background:#fffaf0;
}
.portal-historyvideo__head div{
  display:flex;
  flex-direction:column;
  gap:2px;
}
.portal-historyvideo__head small{
  color:#87621d;
  font-size:8px;
  font-weight:900;
  text-transform:uppercase;
}
.portal-historyvideo__head strong{
  color:#0d5137;
  font-size:11px;
}
.portal-historyvideo__head > button{
  width:28px;
  height:28px;
  border:1px solid #e2d1ae;
  border-radius:50%;
  background:#fff;
  color:#76551c;
  font-size:16px;
  cursor:pointer;
}
.portal-historyvideo__frame{
  position:relative;
  aspect-ratio:16/9;
  background:#111;
}
.portal-historyvideo__frame iframe{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  border:0;
}
.portal-historyvideo__frame video{display:none;width:100%;height:100%;border:0;background:#000;object-fit:contain;}
.portal-historyvideo__foot{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:center;
  padding:8px 10px;
  color:#625d55;
  font-size:8.7px;
}
.portal-historyvideo__foot a{
  color:#0d5a3d;
  font-weight:800;
  text-decoration:none;
  white-space:nowrap;
}
body.portal-historyvideo-open{
  overflow:hidden;
}

@media (min-width:901px) and (max-width:1120px){
  .portal-history__list{padding-left:10px;overflow-x:auto;}
  .portal-historyclassic{min-width:790px;}
}


/* V125 – Lesbarkeit, rechter Innenabstand und JS-freie History-Aktionen */
.portal-history__list{
  padding-left:10px !important;
  padding-right:10px !important;
}

.portal-historyclassic{
  width:calc(100% - 2px) !important;
  margin:0 1px !important;
}

.portal-historyclassic__head,
.portal-historyclassic__row{
  grid-template-columns:62px 64px minmax(120px,1.08fr) 72px 66px minmax(116px,1fr) 82px 48px 56px 48px 52px !important;
}

.portal-historyclassic__head{
  font-size:9.2px !important;
}

.portal-historyclassic__head span{
  padding:6px 7px !important;
}

.portal-historyclassic__row{
  min-height:51px !important;
}

.portal-historyclassic__cell{
  padding:7px !important;
}

.portal-historyclassic__cell strong{
  color:#29332d !important;
  font-size:10.4px !important;
  line-height:1.22 !important;
  font-weight:700 !important;
}

.portal-historyclassic__track strong{
  color:#0b5137 !important;
  font-weight:900 !important;
}

.portal-historyclassic__place strong{
  font-size:10.3px !important;
  font-weight:900 !important;
}

.portal-historyclassic__round{
  text-decoration:none !important;
  font-weight:900 !important;
}

/* Details ohne Abhängigkeit von gecachtem JavaScript */
.portal-historyclassic__detailtarget{
  display:none;
  padding:0 10px 10px;
  border-top:1px solid #ead8b2;
  background:#fffaf0;
  scroll-margin-top:80px;
}

.portal-historyclassic__detailtarget:target{
  display:block;
}

.portal-historyclassic__detail-close{
  display:flex;
  justify-content:flex-end;
  margin-top:8px;
}

.portal-historyclassic__detail-close a{
  display:inline-flex;
  min-height:28px;
  align-items:center;
  padding:0 12px;
  border-radius:999px;
  background:#0e5c3e;
  color:#fff;
  font-size:9px;
  font-weight:800;
  text-decoration:none;
}

/* Video-Fenster ebenfalls ohne JS: Linkziel öffnet das Overlay. */
.portal-historyvideo{
  position:fixed;
  inset:0;
  z-index:99999;
  display:none;
  align-items:center;
  justify-content:center;
  padding:20px;
}

.portal-historyvideo:target{
  display:flex;
}

.portal-historyvideo__backdrop{
  position:absolute;
  inset:0;
  background:rgba(12,31,24,.72);
  text-decoration:none;
}

.portal-historyvideo__head > a{
  display:inline-flex;
  width:28px;
  height:28px;
  align-items:center;
  justify-content:center;
  border:1px solid #e2d1ae;
  border-radius:50%;
  background:#fff;
  color:#76551c;
  font-size:16px;
  text-decoration:none;
}

.portal-historyvideo__panel{
  max-height:90vh;
}

/* Die alte JS-gesteuerte Detailbox aus V124 neutralisieren. */
.portal-historyclassic__detail{
  display:none !important;
}

@media (min-width:901px) and (max-width:1120px){
  .portal-history__list{
    padding-left:6px !important;
    padding-right:6px !important;
  }
  .portal-historyclassic{
    min-width:820px !important;
  }
}


/* V126 – History-Schrift auf die Lesbarkeit der aufgeklappten Ergebnisbox anheben */
.portal-historyclassic__head{
  font-size:9.8px !important;
  font-weight:900 !important;
}

.portal-historyclassic__row{
  min-height:54px !important;
}

.portal-historyclassic__cell{
  padding:8px 7px !important;
}

.portal-historyclassic__cell strong{
  font-size:11.2px !important;
  line-height:1.24 !important;
  font-weight:700 !important;
}

.portal-historyclassic__track strong{
  font-size:11.3px !important;
  font-weight:900 !important;
}

.portal-historyclassic__place strong{
  font-size:10.8px !important;
  font-weight:900 !important;
}

/* Rechts etwas mehr Luft, ohne die ganze History wieder einzurücken. */
.portal-history__list{
  padding-left:8px !important;
  padding-right:14px !important;
}
.portal-historyclassic{
  width:100% !important;
  margin:0 !important;
}
.portal-historyclassic__head,
.portal-historyclassic__row{
  grid-template-columns:64px 66px minmax(122px,1.08fr) 74px 68px minmax(118px,1fr) 84px 50px 58px 48px 56px !important;
}
.portal-historyclassic__details{
  padding-right:10px !important;
}

/* Nur noch der eine Schließen-Button aus der Ergebnisbox. */
.portal-historyclassic__detail-close{
  display:none !important;
}

/* Sichtbare Kontrolle, welcher WP-Zeitstempel tatsächlich verwendet wird. */
.portal-historyvideo__time{
  margin-top:2px;
  color:#7a5b22;
  font-size:9px;
  font-weight:800;
}


/* V127 – JS-gesteuertes Öffnen/Schließen, damit Videos beim Schließen wirklich stoppen */
.portal-historyclassic__detailtarget.is-open{
  display:block !important;
}

.portal-historyvideo.is-open{
  display:flex !important;
}

/* :target bleibt nur als Fallback; JS entfernt den Hash sofort wieder. */


/* V128 – Videofenster: echte Buttons, Player wird beim Schließen zerstört */
.portal-historyvideo__backdrop{
  border:0 !important;
  padding:0 !important;
  cursor:pointer;
}
.portal-historyvideo__head > button{
  display:inline-flex;
  width:28px;
  height:28px;
  align-items:center;
  justify-content:center;
  border:1px solid #e2d1ae;
  border-radius:50%;
  background:#fff;
  color:#76551c;
  font-size:16px;
  cursor:pointer;
}
.portal-historyclassic__round{
  border:1px solid #bad8c9;
}


/* V154 – Form-Aktion klar als zusätzlicher Inhalt erkennbar */
@media (min-width: 901px) {
  .portal-historytoggle {
    gap: 6px;
    margin-top: 6px;
    padding: 3px 7px 3px 4px;
    border: 1px solid rgba(181,145,58,.34);
    border-radius: 999px;
    background: #fffaf0;
    color: #0d5a3d;
    font-size: 9.7px;
    font-weight: 850;
  }
  .portal-historytoggle:hover {
    border-color: rgba(181,145,58,.58);
    background: #f8f0df;
  }
  .portal-historytoggle__icon {
    width: 17px;
    height: 17px;
    background: #fff6df;
  }
}
