/* V110: Rennbahnseiten-CSS ausgelagert. style.css bleibt vorerst erhalten; diese Datei lädt nach style.css. */

/* V79 Rennbahn-Verzeichnis */
.rc-rennbahnen-page,
.rc-rennbahn-detail-page{
    display:grid;
    gap:22px;
}

.rc-rennbahnen-hero{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:18px;
    padding:30px;
    border-radius:28px;
    background:linear-gradient(135deg,#fffaf0,#f2eadb);
    border:1px solid rgba(15,42,31,.08);
    box-shadow:0 16px 34px rgba(15,42,31,.06);
}

.rc-rennbahnen-hero span,
.rc-rennbahn-card-body span,
.rc-rennbahn-text-card > span,
.rc-rennbahn-address-card > span,
.rc-rennbahn-section-head span,
.rc-rennbahn-detail-hero-text span{
    display:inline-flex;
    color:#8a5f18;
    font-weight:900;
    text-transform:uppercase;
    letter-spacing:.08em;
    font-size:.76rem;
}

.rc-rennbahnen-hero h1{
    margin:8px 0;
    font-size:clamp(2rem,4vw,3.3rem);
    line-height:.98;
    color:#0f3a28;
}

.rc-rennbahnen-hero p{
    margin:0;
    color:rgba(21,35,29,.72);
    max-width:720px;
}

.rc-rennbahnen-hero a,
.rc-rennbahn-card-button,
.rc-rennbahn-map-link{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border-radius:999px;
    background:#0b4b32;
    color:#fff !important;
    font-weight:900;
    text-decoration:none;
    padding:11px 16px;
    white-space:nowrap;
}

.rc-rennbahnen-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
    gap:18px;
}

.rc-rennbahn-card{
    overflow:hidden;
    border-radius:24px;
    background:#fffdf8;
    border:1px solid rgba(15,42,31,.08);
    box-shadow:0 16px 34px rgba(15,42,31,.06);
}

.rc-rennbahn-card-image{
    display:block;
    height:180px;
    overflow:hidden;
    background:#0f2a1f;
}

.rc-rennbahn-card-image img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

.rc-rennbahn-card-body{
    display:grid;
    gap:10px;
    padding:18px;
}

.rc-rennbahn-card-body h2{
    margin:0;
    color:#0f3a28;
    font-size:1.35rem;
}

.rc-rennbahn-card-body p{
    margin:0;
    color:rgba(21,35,29,.72);
    line-height:1.45;
}

.rc-rennbahn-card-body dl{
    display:grid;
    gap:8px;
    margin:4px 0;
}

.rc-rennbahn-card-body dl div{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding:9px 11px;
    border-radius:14px;
    background:#f5efe3;
}

.rc-rennbahn-card-body dt{
    font-weight:900;
    color:#0f2a1f;
}

.rc-rennbahn-card-body dd{
    margin:0;
    color:rgba(21,35,29,.75);
    font-weight:800;
}

.rc-back-link{
    display:inline-flex;
    width:max-content;
    align-items:center;
    border-radius:999px;
    padding:9px 14px;
    text-decoration:none;
    background:#fffdf8;
    border:1px solid rgba(15,42,31,.10);
    color:#0f3a28;
    font-weight:900;
}

.rc-rennbahn-detail-hero{
    position:relative;
    overflow:hidden;
    min-height:320px;
    border-radius:30px;
    background:#0f2a1f;
    box-shadow:0 20px 45px rgba(15,42,31,.12);
}

.rc-rennbahn-detail-hero img{
    width:100%;
    height:360px;
    object-fit:cover;
    display:block;
    opacity:.86;
}

.rc-rennbahn-detail-hero-text{
    position:absolute;
    left:0;
    right:0;
    bottom:0;
    padding:90px 30px 28px;
    color:#fff;
    background:linear-gradient(to top,rgba(0,0,0,.72),rgba(0,0,0,0));
}

.rc-rennbahn-detail-hero-text span{
    color:#f2c56b;
}

.rc-rennbahn-detail-hero-text h1{
    margin:8px 0 6px;
    font-size:clamp(2.3rem,5vw,4.2rem);
    line-height:.95;
    color:#fff;
}

.rc-rennbahn-detail-hero-text p{
    margin:0;
    font-weight:800;
    color:rgba(255,255,255,.88);
}

.rc-rennbahn-detail-layout{
    display:grid;
    grid-template-columns:minmax(0,1.3fr) minmax(280px,.7fr);
    gap:18px;
}

.rc-rennbahn-text-card,
.rc-rennbahn-address-card,
.rc-rennbahn-renntage-card{
    padding:22px;
    border-radius:24px;
    background:#fffdf8;
    border:1px solid rgba(15,42,31,.08);
    box-shadow:0 14px 30px rgba(15,42,31,.05);
}

.rc-rennbahn-text-card h2,
.rc-rennbahn-address-card h2,
.rc-rennbahn-section-head h2{
    margin:7px 0 10px;
    color:#0f3a28;
}

.rc-rennbahn-text-card p,
.rc-rennbahn-address-card p{
    margin:0;
    color:rgba(21,35,29,.76);
    line-height:1.6;
}

.rc-rennbahn-map-link{
    margin-top:14px;
    background:#e8c05d;
    color:#0f2a1f !important;
}

.rc-rennbahn-map{
    width:100%;
    min-height:230px;
    border:0;
    border-radius:18px;
    margin-top:14px;
    background:#f4eadb;
}

.rc-rennbahn-section-head{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:16px;
    margin-bottom:14px;
}

.rc-rennbahn-section-head strong{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:36px;
    height:36px;
    border-radius:999px;
    background:#0b4b32;
    color:#fff;
}

.rc-rennbahn-renntag-list{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(210px,1fr));
    gap:10px;
}

.rc-rennbahn-renntag-list a{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding:13px 14px;
    border-radius:16px;
    text-decoration:none;
    background:#f6f0e4;
    border:1px solid rgba(15,42,31,.08);
    color:#0f2a1f;
}

.rc-rennbahn-renntag-list a:hover{
    transform:translateY(-1px);
    border-color:rgba(15,42,31,.18);
}

.rc-rennbahn-renntag-list strong{
    color:#0f3a28;
}

.rc-rennbahn-renntag-list span{
    color:rgba(21,35,29,.66);
    font-weight:800;
    font-size:.9rem;
}

.rc-rennbahn-renntag-list-past a{
    background:#fffaf2;
}

.rc-muted{
    color:rgba(21,35,29,.62);
}






/* V81: Rennbahn-Verzeichnis ruhiger und gleichmäßiger */
.rc-rennbahnen-grid{
    grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
    align-items:stretch;
}

.rc-rennbahn-card{
    display:flex;
    flex-direction:column;
    min-height:100%;
}

.rc-rennbahn-card-image{
    height:176px;
    background:
        radial-gradient(circle at 78% 22%, rgba(232,192,93,.26), transparent 34%),
        linear-gradient(135deg,#0a3324,#08261b);
}

.rc-rennbahn-card-image img{
    width:100%;
    height:100%;
    object-fit:cover;
    object-position:center;
    opacity:.72;
}

.rc-rennbahn-card-body{
    flex:1;
    display:flex;
    flex-direction:column;
    gap:10px;
    padding:18px;
}

.rc-rennbahn-card-body h2{
    min-height:1.35em;
}

.rc-rennbahn-card-body p{
    display:-webkit-box;
    -webkit-line-clamp:3;
    -webkit-box-orient:vertical;
    overflow:hidden;
    min-height:4.35em;
}

.rc-rennbahn-card-body dl{
    margin-top:auto;
}

.rc-rennbahn-card-body dl div{
    min-height:38px;
}

.rc-rennbahn-card-button{
    width:100%;
    margin-top:2px;
}

@media (min-width:1100px){
    .rc-rennbahnen-grid{
        grid-template-columns:repeat(3,minmax(0,1fr));
    }
}

@media (min-width:1500px){
    .rc-rennbahnen-grid{
        grid-template-columns:repeat(4,minmax(0,1fr));
    }
}






/* V98: echter Fix für Desktop-Overflow in "Form & letzte Starts" */
@media (min-width: 761px){
  .rc-horse-history-box{
    overflow:hidden!important;
  }

  .rc-horse-history-box .rc-form-summary.rc-form-summary--clean{
    width:100%!important;
    max-width:100%!important;
    box-sizing:border-box!important;
    display:grid!important;
    grid-template-columns:minmax(280px, 330px) minmax(0, 1fr)!important;
    gap:12px!important;
    overflow:hidden!important;
  }

  .rc-horse-history-box .rc-form-main{
    display:grid!important;
    grid-template-columns:96px minmax(0, 1fr)!important;
    gap:10px!important;
    min-width:0!important;
  }

  .rc-horse-history-box .rc-form-score,
  .rc-horse-history-box .rc-form-curve-wrap,
  .rc-horse-history-box .rc-form-fact{
    min-width:0!important;
    max-width:100%!important;
    box-sizing:border-box!important;
  }

  .rc-horse-history-box .rc-form-chart{
    width:100%!important;
    max-width:100%!important;
  }

  .rc-horse-history-box .rc-form-facts{
    display:grid!important;
    grid-template-columns:repeat(2, minmax(0, 1fr))!important;
    gap:10px!important;
    min-width:0!important;
    max-width:100%!important;
    overflow:hidden!important;
  }

  .rc-horse-history-box .rc-form-fact-ground{
    grid-column:auto!important;
  }

  .rc-horse-history-box .rc-ground-lines,
  .rc-horse-history-box .rc-form-fact strong,
  .rc-horse-history-box .rc-form-fact b,
  .rc-horse-history-box .rc-form-fact span{
    min-width:0!important;
    max-width:100%!important;
    overflow-wrap:anywhere!important;
    word-break:normal!important;
  }
}

/* Bei engerem Desktop lieber alles untereinander statt rechts raus */




/* V55 Rennbahnseiten SEO */
.rc-seo-answer-card{
    border:1px solid rgba(15,81,56,.12);
    background:linear-gradient(135deg,#fffdf7 0%,#f7f0e1 100%);
}

.rc-seo-answer-card h2{
    margin-top:4px;
    color:#0f5138;
}

.rc-seo-answer-card p{
    color:#4f584f;
    line-height:1.5;
}

.rc-seo-link-row{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    margin-top:12px;
}

.rc-seo-link-row a,
.rc-rennbahn-faq-card details{
    border:1px solid rgba(15,81,56,.12);
    border-radius:14px;
    background:#fff;
}

.rc-seo-link-row a{
    display:inline-flex;
    align-items:center;
    min-height:32px;
    padding:0 12px;
    color:#0f5138;
    text-decoration:none;
    font-size:13px;
    font-weight:900;
}

.rc-seo-link-row a:hover{
    background:#0f5138;
    color:#fffaf0;
}

.rc-rennbahn-faq-card{
    margin-top:12px;
}

.rc-rennbahn-faq-card details{
    padding:10px 12px;
    margin-top:8px;
}

.rc-rennbahn-faq-card summary{
    cursor:pointer;
    color:#0f5138;
    font-weight:950;
}

.rc-rennbahn-faq-card details p{
    margin:8px 0 0;
    font-size:13.5px;
}


/* V228: Rennbahn-Verzeichnis als eigenständiger, bildstarker Portalbereich */
.rc-rennbahnen-main{
    display:grid;
    gap:18px;
}

.rc-rennbahnen-hero-v228{
    position:relative;
    overflow:hidden;
    align-items:stretch;
    padding:30px;
    background:
        radial-gradient(circle at 82% 18%, rgba(232,192,93,.28), transparent 30%),
        linear-gradient(135deg,#fff8e8 0%,#f5ead5 56%,#eef5ec 100%);
}

.rc-rennbahnen-hero-v228::after{
    content:"";
    position:absolute;
    right:-40px;
    bottom:-70px;
    width:260px;
    height:260px;
    border-radius:999px;
    background:rgba(11,75,50,.08);
    pointer-events:none;
}

.rc-rennbahnen-hero-copy{
    position:relative;
    z-index:1;
    max-width:680px;
}

.rc-rennbahnen-hero-v228 h1{
    max-width:640px;
    letter-spacing:-.035em;
}

.rc-rennbahnen-hero-v228 p{
    font-size:1.02rem;
    line-height:1.55;
}

.rc-rennbahnen-hero-stats{
    position:relative;
    z-index:1;
    display:grid;
    grid-template-columns:repeat(3,minmax(92px,1fr));
    gap:10px;
    min-width:340px;
    align-self:center;
}

.rc-rennbahnen-hero-stats div{
    display:grid;
    gap:4px;
    align-content:center;
    min-height:96px;
    padding:14px;
    border-radius:20px;
    background:rgba(255,255,255,.72);
    border:1px solid rgba(15,42,31,.10);
    box-shadow:0 12px 26px rgba(15,42,31,.05);
}

.rc-rennbahnen-hero-stats strong{
    color:#0b4b32;
    font-size:2rem;
    line-height:1;
    letter-spacing:-.04em;
}

.rc-rennbahnen-hero-stats small{
    color:rgba(21,35,29,.72);
    font-weight:900;
    text-transform:uppercase;
    letter-spacing:.06em;
    font-size:.72rem;
}

.rc-rennbahnen-spotlight{
    display:grid;
    gap:12px;
}

.rc-rennbahnen-section-title{
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:14px;
}

.rc-rennbahnen-section-title span,
.rc-rennbahnen-intro-card span{
    display:inline-flex;
    width:max-content;
    padding:5px 10px;
    border-radius:999px;
    background:#efe0b8;
    color:#7a5315;
    font-size:.72rem;
    font-weight:1000;
    text-transform:uppercase;
    letter-spacing:.08em;
}

.rc-rennbahnen-section-title h2,
.rc-rennbahnen-intro-card h2{
    margin:5px 0 0;
    color:#0f3a28;
    font-size:1.55rem;
    letter-spacing:-.025em;
}

.rc-rennbahnen-highlight-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:14px;
}

.rc-rennbahn-highlight{
    position:relative;
    min-height:210px;
    overflow:hidden;
    border-radius:24px;
    color:#fff!important;
    text-decoration:none;
    box-shadow:0 18px 36px rgba(15,42,31,.12);
    background:#0f2a1f;
    display:flex;
    flex-direction:column;
    justify-content:flex-end;
    padding:18px;
}

.rc-rennbahn-highlight img{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    object-fit:cover;
    opacity:.76;
    transform:scale(1.02);
    transition:transform .22s ease, opacity .22s ease;
}

.rc-rennbahn-highlight::after{
    content:"";
    position:absolute;
    inset:0;
    background:linear-gradient(to top,rgba(5,32,22,.88),rgba(5,32,22,.18) 62%,rgba(5,32,22,.06));
}

.rc-rennbahn-highlight:hover img{
    transform:scale(1.055);
    opacity:.84;
}

.rc-rennbahn-highlight span,
.rc-rennbahn-highlight strong,
.rc-rennbahn-highlight em{
    position:relative;
    z-index:1;
}

.rc-rennbahn-highlight span{
    width:max-content;
    padding:4px 8px;
    border-radius:999px;
    background:#f0c56a;
    color:#0f2a1f;
    font-size:.68rem;
    font-weight:1000;
    text-transform:uppercase;
    letter-spacing:.07em;
}

.rc-rennbahn-highlight strong{
    margin-top:9px;
    font-size:1.35rem;
    line-height:1.05;
    max-width:90%;
}

.rc-rennbahn-highlight em{
    margin-top:5px;
    color:rgba(255,255,255,.86);
    font-style:normal;
    font-weight:900;
}

.rc-rennbahnen-intro-card{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    align-items:center;
    gap:18px;
    padding:20px;
    border-radius:24px;
    background:#fffdf8;
    box-shadow:0 14px 30px rgba(15,42,31,.05);
}

.rc-rennbahnen-intro-card p{
    margin:8px 0 0;
    color:rgba(21,35,29,.72);
    line-height:1.55;
}

.rc-rennbahnen-intro-card .rc-seo-link-row{
    display:flex;
    flex-wrap:wrap;
    justify-content:flex-end;
    gap:8px;
    min-width:280px;
}

.rc-rennbahnen-intro-card .rc-seo-link-row a{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:34px;
    padding:8px 11px;
    border-radius:999px;
    background:#f3ead8;
    color:#0b4b32!important;
    text-decoration:none;
    font-weight:900;
    font-size:.84rem;
}

.rc-rennbahnen-all-title{
    margin-top:4px;
}

.rc-rennbahnen-grid{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:18px!important;
}

.rc-rennbahn-card{
    border-radius:26px;
    transition:transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.rc-rennbahn-card:hover{
    transform:translateY(-2px);
    border-color:rgba(11,75,50,.20);
    box-shadow:0 20px 40px rgba(15,42,31,.10);
}

.rc-rennbahn-card-image{
    height:205px;
    position:relative;
}

.rc-rennbahn-card-image::after{
    content:"";
    position:absolute;
    inset:0;
    background:linear-gradient(to top,rgba(9,41,28,.18),transparent 50%);
}

.rc-rennbahn-card-image img{
    opacity:1;
    transition:transform .22s ease;
}

.rc-rennbahn-card:hover .rc-rennbahn-card-image img{
    transform:scale(1.04);
}

.rc-rennbahn-card-body{
    padding:18px 18px 20px;
}

.rc-rennbahn-card-body span{
    width:max-content;
    padding:4px 8px;
    border-radius:999px;
    background:#f3ead8;
    font-size:.66rem;
}

.rc-rennbahn-card-body h2{
    font-size:1.45rem;
    letter-spacing:-.02em;
    min-height:auto;
}

.rc-rennbahn-card-body p{
    min-height:4.4em;
    color:rgba(21,35,29,.70);
}

.rc-rennbahn-card-body dl{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:8px;
}

.rc-rennbahn-card-body dl div{
    display:grid;
    align-content:start;
    gap:3px;
    justify-content:initial;
    min-height:62px;
    background:#f7f1e6;
}

.rc-rennbahn-card-body dt{
    font-size:.72rem;
    text-transform:uppercase;
    letter-spacing:.04em;
    color:#7a5315;
}

.rc-rennbahn-card-body dd{
    color:#0f3a28;
}

.rc-rennbahn-card-body dd a{
    color:#0f3a28!important;
    text-decoration:none;
}

@media (min-width:1500px){
    .rc-rennbahnen-grid{
        grid-template-columns:repeat(3,minmax(0,1fr))!important;
    }
}








/* V230: Rennbahn-Detailseite ruhiger und breiter aufgebaut */
.rc-rennbahn-detail-main{
    display:grid;
    gap:16px;
}

.rc-rennbahn-detail-layout-v230{
    grid-template-columns:minmax(0,1fr) 310px;
    align-items:stretch;
}

.rc-rennbahn-intro-card-v230{
    min-height:0;
    background:linear-gradient(135deg,#fffdf8 0%,#f7f0e3 100%);
}

.rc-rennbahn-intro-card-v230 p{
    max-width:780px;
    font-size:1rem;
}

.rc-rennbahn-quicklinks-v230{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    margin-top:18px;
}

.rc-rennbahn-quicklinks-v230 a{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:34px;
    padding:0 13px;
    border-radius:999px;
    background:#f4ead7;
    border:1px solid rgba(120,84,26,.16);
    color:#0b4b32;
    text-decoration:none;
    font-weight:950;
    font-size:.9rem;
}

.rc-rennbahn-quicklinks-v230 a:hover{
    background:#0b4b32;
    color:#fffaf0;
}

.rc-rennbahn-address-card-v230{
    background:#fffaf0;
}

.rc-rennbahn-address-card-v230 h2{
    font-size:1.2rem;
}

.rc-rennbahn-address-card-v230 p{
    font-weight:800;
}

.rc-rennbahn-renntage-card-v230{
    padding:24px;
}

.rc-rennbahn-renntage-card-v230 .rc-rennbahn-section-head{
    padding-bottom:12px;
    border-bottom:1px solid rgba(15,42,31,.08);
}

.rc-rennbahn-renntage-card-v230 .rc-rennbahn-section-head strong{
    display:none;
}

.rc-rennbahn-renntage-card-v230 .rc-rennbahn-renntag-list{
    grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
    gap:12px;
}

.rc-rennbahn-renntage-card-v230 .rc-rennbahn-renntag-list a{
    min-height:58px;
    padding:14px 16px;
    background:#fffaf0;
    box-shadow:0 8px 18px rgba(15,42,31,.035);
}

.rc-rennbahn-renntage-card-v230 .rc-rennbahn-renntag-list a::after{
    content:'→';
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:28px;
    height:28px;
    flex:0 0 auto;
    border-radius:999px;
    background:#0b4b32;
    color:#fff;
    font-weight:950;
}

.rc-rennbahn-renntage-card-v230 .rc-rennbahn-renntag-list span{
    margin-left:auto;
}


/* V261: Rennbahn-Renntaglisten kompakter und klarer */
.rc-rennbahn-renntage-card-v230{
    padding:20px;
}

.rc-rennbahn-renntage-card-v230 .rc-rennbahn-section-head{
    margin-bottom:12px;
    padding-bottom:10px;
}

.rc-rennbahn-renntage-card-v230 .rc-rennbahn-renntag-list{
    grid-template-columns:repeat(auto-fit,minmax(205px,1fr));
    gap:9px;
}

.rc-rennbahn-renntage-card-v230 .rc-rennbahn-renntag-list a{
    min-height:46px;
    padding:9px 11px;
    gap:8px;
    border-radius:12px;
}

.rc-rennbahn-renntage-card-v230 .rc-rennbahn-renntag-list strong{
    flex:0 0 auto;
    font-size:.88rem;
    line-height:1.05;
    letter-spacing:-.01em;
}

.rc-rennbahn-renntage-card-v230 .rc-rennbahn-renntag-list span{
    margin-left:0;
    font-size:.82rem;
    line-height:1.12;
    font-weight:850;
}

.rc-rennbahn-renntage-card-v230 .rc-rennbahn-renntag-list a::after{
    width:22px;
    height:22px;
    font-size:.78rem;
}


/* V262: Desktop-Rennbahnlisten ohne unschöne Umbrüche */
@media (min-width: 769px){
    .rc-rennbahn-renntage-card-v230 .rc-rennbahn-renntag-list{
        grid-template-columns:repeat(auto-fit,minmax(195px,1fr));
        gap:8px;
    }

    .rc-rennbahn-renntage-card-v230 .rc-rennbahn-renntag-list a{
        min-height:42px;
        padding:8px 9px;
        gap:6px;
    }

    .rc-rennbahn-renntage-card-v230 .rc-rennbahn-renntag-list strong,
    .rc-rennbahn-renntage-card-v230 .rc-rennbahn-renntag-list span{
        white-space:nowrap;
    }

    .rc-rennbahn-renntage-card-v230 .rc-rennbahn-renntag-list strong{
        font-size:.82rem;
    }

    .rc-rennbahn-renntage-card-v230 .rc-rennbahn-renntag-list span{
        font-size:.76rem;
        line-height:1;
    }

    .rc-rennbahn-renntage-card-v230 .rc-rennbahn-renntag-list a::after{
        width:20px;
        height:20px;
        font-size:.72rem;
    }
}
