/* V110: Mobile Ergänzungen für Rennbahnseiten.
   Die bestehende style.css bleibt vorerst aktiv; mobile Regeln werden später kontrolliert hier gebündelt. */

@media (max-width: 760px) {
  .rc-rennbahn-grid,
  .rc-rennbahn-detail-grid {
    grid-template-columns: 1fr;
  }

  .rc-rennbahn-hero,
  .rc-rennbahn-card,
  .rc-track-card {
    border-radius: 18px;
  }

  .rc-rennbahn-filter,
  .rc-rennbahn-actions {
    flex-direction: column;
    align-items: stretch;
  }
}


/* V230: Mobile Detailseite kompakt halten */
@media (max-width:760px){
  .rc-rennbahn-detail-main{
    gap:12px;
  }

  .rc-rennbahn-detail-layout-v230{
    grid-template-columns:1fr;
  }

  .rc-rennbahn-quicklinks-v230{
    gap:6px;
    margin-top:12px;
  }

  .rc-rennbahn-quicklinks-v230 a{
    min-height:31px;
    padding:0 10px;
    font-size:.78rem;
  }

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

  .rc-rennbahn-renntage-card-v230 .rc-rennbahn-renntag-list{
    grid-template-columns:1fr;
  }

  .rc-rennbahn-renntage-card-v230 .rc-rennbahn-renntag-list a{
    flex-direction:row;
    align-items:center;
  }
}


/* V233: Rennbahnen mobil kompakter */
@media (max-width:760px){
  body .rc-rennbahnen-hero{padding:18px!important;border-radius:18px!important;}
  body .rc-rennbahnen-hero h1{font-size:28px!important;line-height:1.08!important;}
  body .rc-rennbahnen-hero p{font-size:14.5px!important;line-height:1.42!important;}
  body .rc-rennbahn-card,body .rc-rennbahn-info-card{border-radius:16px!important;}
  body .rc-rennbahn-card h2,body .rc-rennbahn-card h3{font-size:20px!important;line-height:1.12!important;}
  body .rc-rennbahn-badge,body .rc-rennbahn-kicker{border-radius:10px!important;padding:4px 8px!important;font-size:10.5px!important;}
}

/* V235 – aus Desktop-CSS verschobene responsive Regeln */
@media (max-width:900px){
    .rc-rennbahnen-hero{
        align-items:flex-start;
        flex-direction:column;
        padding:22px;
    }

    .rc-rennbahn-detail-layout{
        grid-template-columns:1fr;
    }
}

@media (max-width:560px){
    .rc-rennbahnen-page,
    .rc-rennbahn-detail-page{
        gap:14px;
    }

    .rc-rennbahnen-hero{
        padding:18px;
        border-radius:22px;
    }

    .rc-rennbahnen-hero h1{
        font-size:2rem;
    }

    .rc-rennbahnen-grid{
        grid-template-columns:1fr;
        gap:12px;
    }

    .rc-rennbahn-card-image{
        height:150px;
    }

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

    .rc-rennbahn-detail-hero{
        min-height:240px;
        border-radius:22px;
    }

    .rc-rennbahn-detail-hero img{
        height:260px;
    }

    .rc-rennbahn-detail-hero-text{
        padding:70px 18px 18px;
    }

    .rc-rennbahn-text-card,
    .rc-rennbahn-address-card,
    .rc-rennbahn-renntage-card{
        padding:16px;
        border-radius:20px;
    }

    .rc-rennbahn-renntag-list{
        grid-template-columns:1fr;
    }

    .rc-rennbahn-renntag-list a{
        align-items:flex-start;
        flex-direction:column;
        gap:4px;
    }
}

@media (max-width:760px){
    .rc-rennbahnen-grid{
        grid-template-columns:1fr 1fr;
        gap:12px;
    }

    .rc-rennbahn-card-image{
        height:128px;
    }

    .rc-rennbahn-card-body{
        padding:13px;
        gap:8px;
    }

    .rc-rennbahn-card-body h2{
        font-size:1.05rem;
    }

    .rc-rennbahn-card-body p{
        -webkit-line-clamp:2;
        min-height:2.9em;
        font-size:.86rem;
    }

    .rc-rennbahn-card-body dl div{
        align-items:flex-start;
        flex-direction:column;
        gap:2px;
        padding:8px 9px;
    }

    .rc-rennbahn-card-button{
        padding:9px 11px;
        font-size:.88rem;
    }
}

@media (max-width:460px){
    .rc-rennbahnen-grid{
        grid-template-columns:1fr;
    }

    .rc-rennbahn-card-image{
        height:150px;
    }
}

@media (min-width: 761px) and (max-width: 1120px){
  .rc-horse-history-box .rc-form-summary.rc-form-summary--clean{
    grid-template-columns:1fr!important;
  }

  .rc-horse-history-box .rc-form-facts{
    grid-template-columns:repeat(4, minmax(0, 1fr))!important;
  }
}

@media (min-width: 761px) and (max-width: 980px){
  .rc-horse-history-box .rc-form-facts{
    grid-template-columns:repeat(2, minmax(0, 1fr))!important;
  }
}

@media(max-width:760px){
    .rc-seo-answer-card{
        border-radius:16px;
    }

    .rc-seo-link-row{
        gap:6px;
    }

    .rc-seo-link-row a{
        min-height:29px;
        padding:0 9px;
        font-size:12px;
    }
}

@media (max-width:1150px){
    .rc-rennbahnen-hero-v228,
    .rc-rennbahnen-intro-card{
        grid-template-columns:1fr;
        flex-direction:column;
        align-items:flex-start;
    }

    .rc-rennbahnen-hero-stats{
        width:100%;
        min-width:0;
    }

    .rc-rennbahnen-intro-card .rc-seo-link-row{
        justify-content:flex-start;
        min-width:0;
    }

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

@media (max-width:760px){
    .rc-rennbahnen-hero-v228{
        padding:20px;
    }

    .rc-rennbahnen-hero-stats,
    .rc-rennbahnen-highlight-grid,
    .rc-rennbahnen-grid{
        grid-template-columns:1fr!important;
    }

    .rc-rennbahnen-section-title{
        display:grid;
        gap:4px;
    }

    .rc-rennbahn-highlight{
        min-height:180px;
    }

    .rc-rennbahn-card-image{
        height:180px;
    }

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

@media (max-width:460px){
    .rc-rennbahnen-hero-stats,
    .rc-rennbahn-card-body dl{
        grid-template-columns:1fr;
    }
}

@media (max-width:980px){
    .rc-rennbahn-detail-layout-v230{
        grid-template-columns:1fr;
    }
}

/* V235 – Mobile/Desktop-Trennung: kompakter mobiler Standard
   Desktop bleibt in der jeweiligen bereich.css; diese Regeln greifen nur mobil. */
@media (max-width: 760px) {
  body[class^="rc-"] {
    --ts-mobile-card-radius: 16px;
    --ts-mobile-soft-radius: 12px;
    --ts-mobile-pill-radius: 10px;
    --ts-mobile-pad: 14px;
    --ts-mobile-gap: 10px;
  }

  body[class^="rc-"] .rc-main,
  body[class^="rc-"] main {
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  body[class^="rc-"] h1,
  body[class^="rc-"] .rc-main h1,
  body[class^="rc-"] main h1 {
    font-size: clamp(24px, 7vw, 29px) !important;
    line-height: 1.08 !important;
    letter-spacing: -0.025em !important;
    margin-top: 6px !important;
    margin-bottom: 8px !important;
  }

  body[class^="rc-"] h2,
  body[class^="rc-"] .rc-main h2,
  body[class^="rc-"] main h2 {
    font-size: clamp(20px, 5.8vw, 24px) !important;
    line-height: 1.12 !important;
    letter-spacing: -0.018em !important;
    margin-top: 6px !important;
    margin-bottom: 8px !important;
  }

  body[class^="rc-"] h3,
  body[class^="rc-"] .rc-main h3,
  body[class^="rc-"] main h3 {
    font-size: clamp(17px, 4.8vw, 20px) !important;
    line-height: 1.16 !important;
    margin-top: 4px !important;
    margin-bottom: 6px !important;
  }

  body[class^="rc-"] p,
  body[class^="rc-"] li,
  body[class^="rc-"] .rc-main p,
  body[class^="rc-"] main p {
    font-size: 14px !important;
    line-height: 1.45 !important;
  }

  body[class^="rc-"] .rc-kicker,
  body[class^="rc-"] [class*="badge"],
  body[class^="rc-"] [class*="Badge"],
  body[class^="rc-"] [class*="tag"],
  body[class^="rc-"] [class*="Tag"],
  body[class^="rc-"] [class*="pill"],
  body[class^="rc-"] [class*="Pill"],
  body[class^="rc-"] [class*="category"],
  body[class^="rc-"] [class*="Category"] {
    border-radius: var(--ts-mobile-pill-radius) !important;
    padding: 4px 8px !important;
    font-size: 10.5px !important;
    line-height: 1.15 !important;
  }

  body[class^="rc-"] a[class*="btn"],
  body[class^="rc-"] button[class*="btn"],
  body[class^="rc-"] .rc-button,
  body[class^="rc-"] .rc-btn,
  body[class^="rc-"] .rc-main a.button,
  body[class^="rc-"] main a.button,
  body[class^="rc-"] input[type="submit"],
  body[class^="rc-"] button[type="submit"] {
    border-radius: 12px !important;
    padding: 9px 12px !important;
    font-size: 13px !important;
    line-height: 1.2 !important;
    min-height: 0 !important;
  }

  body[class^="rc-"] .rc-card,
  body[class^="rc-"] .rc-box,
  body[class^="rc-"] .rc-panel,
  body[class^="rc-"] .rc-sidebar-box,
  body[class^="rc-"] [class*="-card"],
  body[class^="rc-"] [class*="-box"],
  body[class^="rc-"] [class*="-panel"] {
    border-radius: var(--ts-mobile-card-radius) !important;
  }

  body[class^="rc-"] [class*="hero"] {
    border-radius: 18px !important;
    padding: 16px !important;
  }
}

@media (max-width: 760px) {
  body.rc-rennbahnen-page .rc-rennbahnen-hero h1,
  body.rc-rennbahn-page .rc-rennbahn-hero h1 { font-size:27px!important; }
  body.rc-rennbahnen-page .rc-rennbahn-card,
  body.rc-rennbahn-page .rc-rennbahn-section { padding:13px!important; border-radius:16px!important; }
  body.rc-rennbahnen-page .rc-rennbahnen-grid { grid-template-columns:1fr!important; gap:12px!important; }
}

/* V240: Rennbahn-Übersicht mobil schlanker – Statistikboxen nur Desktop */
@media (max-width:760px){
  body.rc-page-rennbahnen .rc-rennbahnen-hero{
    padding:16px!important;
    margin:10px 0 14px!important;
    border-radius:16px!important;
  }
  body.rc-page-rennbahnen .rc-rennbahnen-hero-stats{
    display:none!important;
  }
  body.rc-page-rennbahnen .rc-rennbahnen-hero-copy span{
    display:inline-flex!important;
    width:auto!important;
    max-width:100%!important;
    padding:4px 8px!important;
    border-radius:9px!important;
    font-size:10.5px!important;
    line-height:1.15!important;
  }
  body.rc-page-rennbahnen .rc-rennbahnen-hero-copy h1{
    font-size:25px!important;
    line-height:1.08!important;
    margin:8px 0!important;
  }
  body.rc-page-rennbahnen .rc-rennbahnen-hero-copy p{
    font-size:14px!important;
    line-height:1.42!important;
    margin:0!important;
  }
  body.rc-page-rennbahnen .rc-rennbahnen-section-title{
    margin:10px 0 8px!important;
  }
  body.rc-page-rennbahnen .rc-rennbahnen-section-title h2{
    font-size:23px!important;
    line-height:1.12!important;
  }
}


/* V261: Rennbahn-Detail mobil - Termine/Archiv deutlich kompakter */
@media (max-width:760px){
  body .rc-rennbahn-renntage-card-v230{
    padding:14px!important;
    border-radius:18px!important;
  }

  body .rc-rennbahn-renntage-card-v230 .rc-rennbahn-section-head{
    margin-bottom:10px!important;
    padding-bottom:9px!important;
  }

  body .rc-rennbahn-renntage-card-v230 .rc-rennbahn-section-head span{
    font-size:.76rem!important;
    letter-spacing:.07em!important;
  }

  body .rc-rennbahn-renntage-card-v230 .rc-rennbahn-section-head h2{
    margin:4px 0 0!important;
    font-size:1.42rem!important;
    line-height:1.08!important;
  }

  body .rc-rennbahn-renntage-card-v230 .rc-rennbahn-renntag-list{
    gap:9px!important;
  }

  body .rc-rennbahn-renntage-card-v230 .rc-rennbahn-renntag-list a{
    min-height:54px!important;
    padding:9px 12px!important;
    border-radius:14px!important;
    flex-direction:row!important;
    align-items:center!important;
    gap:10px!important;
  }

  body .rc-rennbahn-renntage-card-v230 .rc-rennbahn-renntag-list strong{
    min-width:82px!important;
    font-size:.92rem!important;
    line-height:1!important;
    letter-spacing:-.01em!important;
  }

  body .rc-rennbahn-renntage-card-v230 .rc-rennbahn-renntag-list span{
    flex:1 1 auto!important;
    margin-left:0!important;
    font-size:.96rem!important;
    line-height:1.05!important;
    font-weight:850!important;
  }

  body .rc-rennbahn-renntage-card-v230 .rc-rennbahn-renntag-list a::after{
    width:34px!important;
    height:34px!important;
    font-size:.9rem!important;
  }
}
