/* ==========================================================
   BODYBUILDING.DE – MUSCLE & EQUIPMENT LANDINGPAGES
   v1.11.0
   Detail hero mirrors the final single-page language.
   ========================================================== */

.bb-taxonomy-landing {
    background: var(--bb-bg);
    color: var(--bb-text);
}

/* ----------------------------------------------------------
   Detail Hero – same rhythm as Single Fitnessübung / Plan
   ---------------------------------------------------------- */
.bb-taxonomy-detail-hero {
    display:grid;
    grid-template-columns:minmax(0,.72fr) minmax(520px,1.03fr);
    gap:56px;
    align-items:center;
    padding-top:48px;
    padding-bottom:48px;
}

.bb-taxonomy-detail-hero__content { min-width:0; }

.bb-taxonomy-breadcrumbs,
.bb-taxonomy-breadcrumbs *,
.bb-taxonomy-breadcrumbs a,
.bb-taxonomy-breadcrumbs span {
    font-family:"Inter",Arial,sans-serif !important;
    font-size:14px !important;
    font-weight:500 !important;
    line-height:1.4 !important;
}

.bb-taxonomy-breadcrumbs {
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    gap:6px;
    margin:0 0 18px;
    color:var(--bb-text-muted);
}
.bb-taxonomy-breadcrumbs a {
    color:var(--bb-text-muted)!important;
    text-decoration:none!important;
}
.bb-taxonomy-breadcrumbs a:hover,
.bb-taxonomy-breadcrumbs a:focus-visible { color:var(--bb-text)!important; }
.bb-taxonomy-breadcrumbs__sep { color:#626C77!important; }
.bb-taxonomy-breadcrumbs > span:last-child { color:#C5CBD2!important; }

.bb-taxonomy-detail-hero__title {
    max-width:620px;
    margin:0!important;
    font-family:"Barlow Condensed","Arial Narrow",Arial,sans-serif!important;
    font-size:56px!important;
    font-weight:700!important;
    line-height:1.04!important;
    text-transform:uppercase;
    color:var(--bb-text);
}

.bb-taxonomy-detail-hero__intro {
    max-width:600px;
    margin-top:22px;
    color:var(--bb-text-body);
    font-size:17px;
    line-height:1.7;
}
.bb-taxonomy-detail-hero__intro p { margin:0 0 14px; }
.bb-taxonomy-detail-hero__intro p:last-child { margin-bottom:0; }

/* CTA deliberately reuses the global main-hub split-pill component. */
.bb-taxonomy-detail-hero__button { margin-top:26px; }

.bb-taxonomy-detail-hero__media,
.bb-taxonomy-detail-hero__fallback {
    width:100%;
    aspect-ratio:4/3;
    overflow:hidden;
    border:1px solid var(--bb-border);
    border-radius:14px;
    background:#0B0E12;
}
.bb-taxonomy-detail-hero__media {
    display:flex;
    align-items:center;
    justify-content:center;
    margin:0;
}
.bb-taxonomy-detail-hero__image {
    width:100%;
    height:100%;
    max-height:none;
    aspect-ratio:4/3;
    object-fit:contain;
}

/* UX-Paket 2: Muskelgrafik 16:9 vollständig, Equipment-Bild mit Bildunterschrift. */
.bb-taxonomy-detail-hero__media--wide,
.bb-taxonomy-detail-hero__media--wide .bb-taxonomy-detail-hero__image { aspect-ratio:16/9; }
.bb-taxonomy-detail-hero__media--captioned { position:relative; }
.bb-taxonomy-detail-hero__media--captioned .bb-taxonomy-detail-hero__image { object-fit:cover; }
.bb-taxonomy-detail-hero__caption {
    position:absolute;
    left:12px;
    bottom:12px;
    padding:6px 12px;
    border-radius:999px;
    background:rgba(8,10,14,.82);
    color:#A9B0BA;
    font-size:13px;
    line-height:1.3;
}
.bb-taxonomy-detail-hero__caption a { color:#fff; font-weight:600; text-decoration:none; }
.bb-taxonomy-detail-hero__caption a:hover,
.bb-taxonomy-detail-hero__caption a:focus-visible { text-decoration:underline; }

.bb-taxonomy-detail-hero__fallback {
    display:grid;
    grid-template-rows:1fr auto;
}
.bb-taxonomy-detail-hero__fallback-icon {
    display:flex;
    align-items:center;
    justify-content:center;
    min-height:240px;
    background:linear-gradient(145deg,#11161B,#0B0E12);
}
.bb-taxonomy-detail-hero__fallback-icon svg {
    width:92px;
    height:92px;
    fill:none;
    stroke:#D82828;
    stroke-width:2.1;
    stroke-linecap:round;
    stroke-linejoin:round;
    opacity:.88;
}
.bb-taxonomy-detail-hero__fallback-stat {
    display:flex;
    align-items:baseline;
    gap:10px;
    min-height:82px;
    padding:20px 24px;
    border-top:1px solid var(--bb-border);
    background:var(--bb-surface-1);
}
.bb-taxonomy-detail-hero__fallback-stat strong {
    color:#fff;
    font:700 34px/1 "Barlow Condensed",sans-serif;
}
.bb-taxonomy-detail-hero__fallback-stat span {
    color:var(--bb-text-muted);
    font-size:13px;
}

/* ----------------------------------------------------------
   Exercise listing
   ---------------------------------------------------------- */
.bb-taxonomy-exercises {
    padding-top:64px;
    scroll-margin-top:96px;
}

.bb-taxonomy-section-head {
    display:flex;
    align-items:end;
    justify-content:space-between;
    gap:24px;
    margin-bottom:26px;
}
.bb-taxonomy-section-head__count {
    flex:0 0 auto;
    padding-bottom:3px;
    color:var(--bb-text-muted);
    font-size:13px;
}

.bb-taxonomy-exercises__grid {
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:26px;
}

.bb-taxonomy-empty {
    padding:46px 28px;
    border:1px solid var(--bb-border);
    border-radius:12px;
    background:var(--bb-surface-1);
    text-align:center;
}
.bb-taxonomy-empty strong {
    display:block;
    font:700 25px/1.1 "Barlow Condensed",sans-serif;
}
.bb-taxonomy-empty p { margin:10px 0 0; color:var(--bb-text-body); }

.bb-taxonomy-exercises__all-link {
    display:flex;
    justify-content:center;
    margin-top:34px;
}
.bb-taxonomy-exercises__all-link a {
    display:inline-flex;
    align-items:center;
    gap:8px;
    min-height:42px;
    padding:0 16px;
    border:1px solid var(--bb-border);
    border-radius:999px;
    color:var(--bb-text-body)!important;
    font-size:13px;
    font-weight:600;
    text-decoration:none!important;
    transition:border-color .18s ease,color .18s ease,background .18s ease;
}
.bb-taxonomy-exercises__all-link a:hover,
.bb-taxonomy-exercises__all-link a:focus-visible {
    border-color:rgba(216,40,40,.55);
    background:rgba(216,40,40,.05);
    color:#fff!important;
}

/* Pagination */
.bb-taxonomy-pagination {
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:8px;
    margin-top:34px;
}
.bb-taxonomy-pagination .page-numbers {
    min-width:42px;
    min-height:42px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:0 12px;
    border:1px solid var(--bb-border);
    border-radius:9px;
    background:var(--bb-surface-1);
    color:var(--bb-text-body)!important;
    font-size:13px;
    font-weight:600;
    text-decoration:none!important;
}
.bb-taxonomy-pagination .page-numbers.current,
.bb-taxonomy-pagination a.page-numbers:hover,
.bb-taxonomy-pagination a.page-numbers:focus-visible {
    border-color:rgba(216,40,40,.7);
    color:#fff!important;
}
.bb-taxonomy-pagination .page-numbers.current { background:rgba(216,40,40,.12); }

/* ----------------------------------------------------------
   Muscle hierarchy – intentionally mirrors Training systems
   ---------------------------------------------------------- */
.bb-taxonomy-muscle-tree {
    padding-top:84px;
}
.bb-taxonomy-muscle-tree__header {
    max-width:940px;
    margin-bottom:28px;
}
.bb-taxonomy-muscle-tree__header .bb-section-eyebrow { margin-bottom:7px; }
.bb-taxonomy-muscle-tree__header .bb-section-title {
    margin:0 0 14px!important;
    font-size:36px!important;
    line-height:1.08!important;
}
.bb-taxonomy-muscle-tree__header p {
    max-width:820px;
    margin:0;
    color:var(--bb-text-body);
    font:400 17px/1.72 "Inter",Arial,sans-serif;
}
.bb-taxonomy-muscle-tree__grid {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:20px;
}
.bb-taxonomy-muscle-branch {
    min-width:0;
    padding:24px;
    background:#0E1318;
    border:1px solid var(--bb-border);
    border-radius:12px;
}
.bb-taxonomy-muscle-branch:only-child { max-width:660px; }
.bb-taxonomy-muscle-branch h3 {
    margin:0 0 10px!important;
    color:var(--bb-text)!important;
    font-family:"Barlow Condensed","Arial Narrow",Arial,sans-serif!important;
    font-size:28px!important;
    font-weight:700!important;
    line-height:1.1!important;
}
.bb-taxonomy-muscle-branch h3 a {
    display:inline-flex;
    align-items:center;
    gap:9px;
    color:var(--bb-text)!important;
    text-decoration:none!important;
}
.bb-taxonomy-muscle-branch h3 a span {
    color:#F04A4A;
    font-family:"Inter",Arial,sans-serif;
    font-size:18px;
    transition:transform .18s ease;
}
.bb-taxonomy-muscle-branch h3 a:hover span,
.bb-taxonomy-muscle-branch h3 a:focus-visible span { transform:translateX(2px); }
.bb-taxonomy-muscle-branch > p {
    margin:0 0 18px;
    color:var(--bb-text-body);
    font:400 14px/1.65 "Inter",Arial,sans-serif;
}
.bb-taxonomy-muscle-branch__links {
    display:flex;
    flex-wrap:wrap;
    gap:8px;
}
.bb-taxonomy-muscle-branch__links a {
    min-height:34px;
    display:inline-flex;
    align-items:center;
    padding:0 11px;
    color:var(--bb-text-body)!important;
    background:#0A0E12;
    border:1px solid var(--bb-border);
    border-radius:999px;
    text-decoration:none!important;
    font:600 11px/1 "Inter",Arial,sans-serif;
    transition:color .18s ease,border-color .18s ease,background .18s ease;
}
.bb-taxonomy-muscle-branch__links a:hover,
.bb-taxonomy-muscle-branch__links a:focus-visible {
    color:#fff!important;
    border-color:rgba(216,40,40,.55);
    background:#10151A;
}

/* ----------------------------------------------------------
   SEO / GEO editorial content
   ---------------------------------------------------------- */
.bb-taxonomy-editorial,
.bb-taxonomy-related {
    width:min(940px,calc(100% - 48px));
    margin-inline:auto;
    padding-top:84px;
}
.bb-taxonomy-editorial__content {
    margin-top:18px;
    color:var(--bb-text-body);
    font-size:17px;
    line-height:1.75;
}
.bb-taxonomy-editorial__content > *:first-child { margin-top:0!important; }
.bb-taxonomy-editorial__content > *:last-child { margin-bottom:0!important; }
.bb-taxonomy-editorial__content h2,
.bb-taxonomy-editorial__content h3,
.bb-taxonomy-editorial__content h4 {
    color:var(--bb-text)!important;
    line-height:1.1!important;
}
.bb-taxonomy-editorial__content h2 { margin:44px 0 14px!important; font-size:36px!important; }
.bb-taxonomy-editorial__content h3 { margin:34px 0 12px!important; font-size:28px!important; }
.bb-taxonomy-editorial__content h4 { margin:28px 0 10px!important; font-size:23px!important; }
.bb-taxonomy-editorial__content p { margin:0 0 18px; }
.bb-taxonomy-editorial__content ul,
.bb-taxonomy-editorial__content ol { margin:16px 0 22px; padding-left:1.3em; }

/* ----------------------------------------------------------
   Related taxonomy links
   ---------------------------------------------------------- */
.bb-taxonomy-related__intro {
    max-width:760px;
    margin:14px 0 0;
    color:var(--bb-text-body);
    font-size:15px;
    line-height:1.65;
}
.bb-taxonomy-related--last { padding-bottom:84px; }

.bb-taxonomy-links {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
    margin-top:20px;
}
.bb-taxonomy-link {
    min-width:0;
    min-height:58px;
    display:grid;
    grid-template-columns:minmax(0,1fr) 20px;
    align-items:center;
    gap:10px;
    padding:13px 14px 13px 16px;
    border:1px solid var(--bb-border);
    border-radius:10px;
    background:var(--bb-surface-1);
    color:var(--bb-text)!important;
    text-decoration:none!important;
    transition:border-color .18s ease,background .18s ease;
}
.bb-taxonomy-link > span {
    overflow:hidden;
    font-size:14px;
    font-weight:600;
    text-overflow:ellipsis;
    white-space:nowrap;
}
.bb-taxonomy-link svg {
    width:18px;
    height:18px;
    fill:none;
    stroke:#F04A4A;
    stroke-width:1.8;
    stroke-linecap:round;
    stroke-linejoin:round;
    transition:transform .18s ease;
}
.bb-taxonomy-link:hover,
.bb-taxonomy-link:focus-visible {
    border-color:rgba(216,40,40,.55);
    background:#12181E;
}
.bb-taxonomy-link:hover svg,
.bb-taxonomy-link:focus-visible svg { transform:translateX(2px); }

@media(max-width:1100px) {
    .bb-taxonomy-detail-hero {
        grid-template-columns:minmax(0,.9fr) minmax(380px,1.1fr);
        gap:34px;
    }
    .bb-taxonomy-detail-hero__title { font-size:48px!important; }
    .bb-taxonomy-exercises__grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:22px; }
}

@media(max-width:767px) {
    .bb-taxonomy-detail-hero {
        grid-template-columns:1fr;
        gap:24px;
        padding-top:30px;
        padding-bottom:36px;
    }
    .bb-taxonomy-breadcrumbs { margin-bottom:18px; }
    .bb-taxonomy-detail-hero__title { font-size:32px!important; line-height:1.06!important; }
    .bb-taxonomy-detail-hero__intro { margin-top:18px; font-size:16px; line-height:1.65; }
    .bb-taxonomy-detail-hero__button { margin-top:22px; }
    .bb-taxonomy-detail-hero__media,
    .bb-taxonomy-detail-hero__fallback { order:2; }
    .bb-taxonomy-detail-hero__fallback-icon { min-height:180px; }
    .bb-taxonomy-detail-hero__fallback-icon svg { width:72px; height:72px; }

    .bb-taxonomy-exercises { padding-top:52px; }
    .bb-taxonomy-section-head {
        align-items:flex-start;
        flex-direction:column;
        gap:8px;
        margin-bottom:20px;
    }
    .bb-taxonomy-section-head__count { padding:0; }
    .bb-taxonomy-exercises__grid { grid-template-columns:1fr; gap:18px; }
    .bb-taxonomy-exercises__all-link { margin-top:28px; }

    .bb-taxonomy-muscle-tree { padding-top:64px; }
    .bb-taxonomy-muscle-tree__header { margin-bottom:22px; }
    .bb-taxonomy-muscle-tree__header .bb-section-title { font-size:30px!important; }
    .bb-taxonomy-muscle-tree__header p { font-size:15px; line-height:1.68; }
    .bb-taxonomy-muscle-tree__grid { grid-template-columns:1fr; gap:14px; }
    .bb-taxonomy-muscle-branch:only-child { max-width:none; }
    .bb-taxonomy-muscle-branch { padding:21px; }
    .bb-taxonomy-muscle-branch h3 { font-size:25px!important; }

    .bb-taxonomy-editorial,
    .bb-taxonomy-related {
        width:calc(100% - 40px);
        padding-top:64px;
    }
    .bb-taxonomy-editorial__content { font-size:15px; line-height:1.72; }
    .bb-taxonomy-editorial__content h2 { font-size:30px!important; }
    .bb-taxonomy-editorial__content h3 { font-size:25px!important; }
    .bb-taxonomy-related--last { padding-bottom:64px; }
    .bb-taxonomy-links { grid-template-columns:1fr; }
    .bb-taxonomy-link { min-height:54px; }
}

@media(max-width:380px) {
    .bb-taxonomy-detail-hero__title { font-size:30px!important; }
    .bb-taxonomy-editorial,
    .bb-taxonomy-related { width:calc(100% - 32px); }
}
