/*
================================================================================
TURFSPORT – Rennbahn Detail Magazine / Endless Paper V667
Nur klassische Laptops und Desktop mit Maus/Trackpad.
Mobil und Touch bleiben unverändert.

Referenz: Startseite V651 / Rennbahnen V666
================================================================================
*/

@media (min-width:1100px) and (hover:hover) and (pointer:fine){

  html body.rc-page-rennbahn-detail{
    background:#f4f5f7!important;
    color:#333333!important;
  }

  html body.rc-page-rennbahn-detail .rc-shell.rc-rennbahn-detail-page{
    width:calc(100% - 28px)!important;
    max-width:none!important;
    margin-left:auto!important;
    margin-right:auto!important;
    padding-left:14px!important;
    padding-right:14px!important;
    box-sizing:border-box!important;
  }

  html body.rc-page-rennbahn-detail .rc-page-grid.rc-page-grid-portal-left{
    display:grid!important;
    grid-template-columns:225px minmax(0,1fr)!important;
    gap:18px!important;
    width:100%!important;
    max-width:none!important;
    margin:20px auto 0!important;
    align-items:start!important;
  }

  html body.rc-page-rennbahn-detail .rc-rennbahn-detail-main{
    display:grid!important;
    gap:24px!important;
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
    margin:0!important;
    padding:18px 22px 34px!important;
    background:#fff!important;
    border:0!important;
    border-radius:0!important;
    box-shadow:none!important;
  }

  html body.rc-page-rennbahn-detail .rc-back-link{
    width:max-content!important;
    min-height:28px!important;
    margin:0!important;
    padding:0 9px!important;
    border:1px solid #e4e8e6!important;
    border-radius:8px!important;
    background:#fff!important;
    color:#315247!important;
    font-size:10.5px!important;
    font-weight:720!important;
    box-shadow:none!important;
  }

  /* Hero kleiner und leichter */
  html body.rc-page-rennbahn-detail .rc-rennbahn-detail-hero{
    position:relative!important;
    height:300px!important;
    min-height:300px!important;
    margin:0!important;
    border:0!important;
    border-radius:10px!important;
    overflow:hidden!important;
    box-shadow:none!important;
    background:#0b3324!important;
  }

  html body.rc-page-rennbahn-detail .rc-rennbahn-detail-hero img{
    width:100%!important;
    height:100%!important;
    object-fit:cover!important;
    object-position:center 48%!important;
  }

  html body.rc-page-rennbahn-detail .rc-rennbahn-detail-hero::after{
    content:""!important;
    position:absolute!important;
    inset:0!important;
    background:linear-gradient(90deg,rgba(5,26,18,.74) 0%,rgba(5,26,18,.22) 58%,rgba(5,26,18,.05) 100%)!important;
    pointer-events:none!important;
  }

  html body.rc-page-rennbahn-detail .rc-rennbahn-detail-hero-text{
    position:absolute!important;
    left:22px!important;
    right:22px!important;
    bottom:20px!important;
    z-index:2!important;
    max-width:760px!important;
    padding:0!important;
    background:transparent!important;
  }

  html body.rc-page-rennbahn-detail .rc-rennbahn-detail-hero-text span{
    display:inline-block!important;
    margin:0 0 6px!important;
    padding:0!important;
    background:transparent!important;
    color:#e1bd67!important;
    font-size:9px!important;
    line-height:1.1!important;
    font-weight:800!important;
    letter-spacing:.08em!important;
    text-transform:uppercase!important;
  }

  html body.rc-page-rennbahn-detail .rc-rennbahn-detail-hero-text h1{
    margin:0 0 6px!important;
    color:#fff!important;
    font-size:34px!important;
    line-height:1.06!important;
    font-weight:820!important;
    letter-spacing:-.025em!important;
    text-shadow:0 2px 12px rgba(0,0,0,.28)!important;
  }

  html body.rc-page-rennbahn-detail .rc-rennbahn-detail-hero-text p{
    margin:0!important;
    color:rgba(255,255,255,.84)!important;
    font-size:12px!important;
    font-weight:600!important;
  }

  /* Beschreibung + Adresse: weg von zwei schweren Karten */
  html body.rc-page-rennbahn-detail .rc-rennbahn-detail-layout.rc-rennbahn-detail-layout-v230{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) 250px!important;
    gap:22px!important;
    margin:0!important;
  }

  html body.rc-page-rennbahn-detail .rc-rennbahn-text-card,
  html body.rc-page-rennbahn-detail .rc-rennbahn-address-card{
    margin:0!important;
    padding:0!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    box-shadow:none!important;
  }

  html body.rc-page-rennbahn-detail .rc-rennbahn-text-card{
    padding-right:22px!important;
    border-right:1px solid #eeeeee!important;
  }

  html body.rc-page-rennbahn-detail .rc-rennbahn-text-card > span,
  html body.rc-page-rennbahn-detail .rc-rennbahn-address-card > span{
    display:inline-block!important;
    margin:0 0 5px!important;
    padding:0!important;
    background:transparent!important;
    color:#8a6a2c!important;
    font-size:9px!important;
    line-height:1.1!important;
    font-weight:800!important;
    letter-spacing:.07em!important;
    text-transform:uppercase!important;
  }

  html body.rc-page-rennbahn-detail .rc-rennbahn-text-card h2,
  html body.rc-page-rennbahn-detail .rc-rennbahn-address-card h2{
    margin:0 0 8px!important;
    color:#1a1a1a!important;
    font-size:19px!important;
    line-height:1.15!important;
    font-weight:810!important;
  }

  html body.rc-page-rennbahn-detail .rc-rennbahn-text-card p,
  html body.rc-page-rennbahn-detail .rc-rennbahn-address-card p{
    margin:0!important;
    color:#626b67!important;
    font-size:11.8px!important;
    line-height:1.5!important;
    font-weight:400!important;
  }

  html body.rc-page-rennbahn-detail .rc-rennbahn-quicklinks-v230{
    display:flex!important;
    flex-wrap:wrap!important;
    gap:7px!important;
    margin-top:14px!important;
  }

  html body.rc-page-rennbahn-detail .rc-rennbahn-quicklinks-v230 a{
    min-height:30px!important;
    padding:0 10px!important;
    border:1px solid #e4e8e6!important;
    border-radius:7px!important;
    background:#fff!important;
    color:#315247!important;
    font-size:10px!important;
    font-weight:720!important;
    box-shadow:none!important;
  }

  html body.rc-page-rennbahn-detail .rc-rennbahn-map-link{
    display:inline-flex!important;
    min-height:32px!important;
    margin-top:12px!important;
    padding:0 11px!important;
    border:0!important;
    border-radius:7px!important;
    background:#d6aa4a!important;
    color:#17382d!important;
    font-size:10px!important;
    font-weight:780!important;
    box-shadow:none!important;
  }

  /* Nächster Renntag als kompakte Infozeile */
  html body.rc-page-rennbahn-detail .rc-track-next-card{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    align-items:center!important;
    gap:16px!important;
    margin:0!important;
    padding:13px 0!important;
    border:0!important;
    border-top:1px solid #eeeeee!important;
    border-bottom:1px solid #eeeeee!important;
    border-radius:0!important;
    background:transparent!important;
    box-shadow:none!important;
  }

  html body.rc-page-rennbahn-detail .rc-track-next-copy span{
    color:#8a6a2c!important;
    font-size:9px!important;
    font-weight:800!important;
  }

  html body.rc-page-rennbahn-detail .rc-track-next-copy h2{
    margin:2px 0!important;
    color:#17382d!important;
    font-size:22px!important;
    line-height:1.08!important;
    font-weight:820!important;
  }

  html body.rc-page-rennbahn-detail .rc-track-next-copy p{
    margin:0!important;
    color:#626b67!important;
    font-size:10.8px!important;
    font-weight:500!important;
  }

  html body.rc-page-rennbahn-detail .rc-track-next-card > a{
    min-height:32px!important;
    padding:0 11px!important;
    border-radius:7px!important;
    background:#0f5138!important;
    color:#fff!important;
    font-size:10px!important;
    font-weight:760!important;
    box-shadow:none!important;
  }

  /* Kommende Termine + Archiv als freistehende Sektionen */
  html body.rc-page-rennbahn-detail .rc-rennbahn-renntage-card,
  html body.rc-page-rennbahn-detail .rc-track-renntage-panel{
    margin:0!important;
    padding:0 0 24px!important;
    border:0!important;
    border-bottom:1px solid #eeeeee!important;
    border-radius:0!important;
    background:transparent!important;
    box-shadow:none!important;
  }

  html body.rc-page-rennbahn-detail .rc-rennbahn-section-head{
    margin:0 0 12px!important;
    padding:0!important;
    border:0!important;
  }

  html body.rc-page-rennbahn-detail .rc-rennbahn-section-head span{
    color:#8a6a2c!important;
    font-size:9px!important;
    font-weight:800!important;
  }

  html body.rc-page-rennbahn-detail .rc-rennbahn-section-head h2{
    margin:3px 0 0!important;
    color:#1a1a1a!important;
    font-size:21px!important;
    line-height:1.12!important;
    font-weight:820!important;
  }

  html body.rc-page-rennbahn-detail .rc-rennbahn-section-head > strong{
    min-width:26px!important;
    height:26px!important;
    padding:0 7px!important;
    border-radius:999px!important;
    background:#0f5138!important;
    color:#fff!important;
    font-size:9.5px!important;
    font-weight:760!important;
    box-shadow:none!important;
  }

  html body.rc-page-rennbahn-detail .rc-track-renntag-grid{
    gap:10px!important;
  }

  html body.rc-page-rennbahn-detail .rc-track-renntag-card{
    min-height:66px!important;
    padding:10px 12px!important;
    border:1px solid #eceeee!important;
    border-radius:8px!important;
    background:#fff!important;
    box-shadow:none!important;
  }

  html body.rc-page-rennbahn-detail .rc-track-renntag-card:hover{
    border-color:#dce4df!important;
    background:#fafbfb!important;
  }

  html body.rc-page-rennbahn-detail .rc-track-renntag-card strong{
    color:#17382d!important;
    font-size:11.5px!important;
    font-weight:760!important;
  }

  html body.rc-page-rennbahn-detail .rc-track-renntag-card span,
  html body.rc-page-rennbahn-detail .rc-track-renntag-card em{
    font-size:9.5px!important;
    font-weight:600!important;
  }

  html body.rc-page-rennbahn-detail .rc-track-more-block{
    margin-top:12px!important;
    padding-top:0!important;
    border:0!important;
  }

  html body.rc-page-rennbahn-detail .rc-track-more-block summary{
    width:max-content!important;
    padding:5px 9px!important;
    border:1px solid #e4e8e6!important;
    border-radius:7px!important;
    background:#fff!important;
    color:#315247!important;
    font-size:10px!important;
    font-weight:720!important;
    box-shadow:none!important;
  }
}

@media (min-width:1760px) and (hover:hover) and (pointer:fine){
  html body.rc-page-rennbahn-detail .rc-shell.rc-rennbahn-detail-page{
    width:100%!important;
    max-width:none!important;
    padding-left:0!important;
    padding-right:0!important;
  }

  html body.rc-page-rennbahn-detail .rc-page-grid.rc-page-grid-portal-left{
    width:calc(100vw - 96px)!important;
    max-width:1780px!important;
    grid-template-columns:255px minmax(0,1fr)!important;
    gap:30px!important;
    margin:26px auto 0!important;
  }

  html body.rc-page-rennbahn-detail .rc-rennbahn-detail-hero{
    height:330px!important;
    min-height:330px!important;
  }
}

@media (min-width:1100px) and (max-width:1399px) and (hover:hover) and (pointer:fine){
  html body.rc-page-rennbahn-detail .rc-rennbahn-detail-main{
    padding:16px 18px 30px!important;
  }

  html body.rc-page-rennbahn-detail .rc-rennbahn-detail-hero{
    height:270px!important;
    min-height:270px!important;
  }

  html body.rc-page-rennbahn-detail .rc-rennbahn-detail-hero-text h1{
    font-size:29px!important;
  }

  html body.rc-page-rennbahn-detail .rc-rennbahn-detail-layout.rc-rennbahn-detail-layout-v230{
    grid-template-columns:minmax(0,1fr) 220px!important;
  }
}


/* V668: weniger Pfeile in den Renntermin-Karten */
@media (min-width:1100px) and (hover:hover) and (pointer:fine){
  html body.rc-page-rennbahn-detail .rc-track-renntag-grid .rc-track-renntag-card:nth-child(even){
    background:#fbfbf9!important;
  }

  html body.rc-page-rennbahn-detail .rc-track-renntag-grid .rc-track-renntag-card:nth-child(odd){
    background:#ffffff!important;
  }

  html body.rc-page-rennbahn-detail .rc-track-renntag-card{
    padding:10px 26px 10px 12px!important;
  }

  html body.rc-page-rennbahn-detail .rc-track-renntag-card::after{
    content:'▸'!important;
    right:10px!important;
    width:auto!important;
    height:auto!important;
    border-radius:0!important;
    background:transparent!important;
    color:#8a6a2c!important;
    font-size:12px!important;
    line-height:1!important;
    font-weight:900!important;
    box-shadow:none!important;
  }

  html body.rc-page-rennbahn-detail .rc-track-renntag-card:hover::after{
    color:#0f5138!important;
  }
}
