/* ==========================================================
   Header & Navigation (Redesign 11/2026)
   Vorgabe: docs/design/header-redesign/HEADER-SPEC.md, Referenz: referenz/*.dc.html
   Die Tokens gelten nur im Header, im Mobile-Menü und in der mobilen Suche,
   damit gleichnamige globale Tokens (global.css) den Rest der Seite nicht ändern.
   ========================================================== */

.bb-hd-spacer,
.bb-mm,
.bb-ms {
    --bb-bg: #0A0C10;
    --bb-panel: #0E1117;
    --bb-card: #141821;
    --bb-input: #12151C;
    --bb-hover: #1A1F29;
    --bb-pill: #1E232D;
    --bb-line: #1C212A;
    --bb-line-2: #222833;
    --bb-line-3: #262C37;
    --bb-text: #F3F4F6;
    --bb-text-2: #D5D9E0;
    --bb-text-3: #AEB5C1;
    --bb-muted: #8A93A2;
    --bb-red: #E5262D;
    --bb-red-text: #FF4A50;
    --bb-radius-s: 8px;
    --bb-radius: 10px;
    --bb-radius-m: 12px;
    --bb-radius-l: 14px;
    --bb-shadow: 0 24px 48px rgba(0, 0, 0, .55);
    --bb-focus: 0 0 0 3px rgba(229, 38, 45, .25);
    --bb-hd-font: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* hidden gewinnt immer (Panels, Dialoge, Ebene 2, Ergebnislisten). */
.bb-hd [hidden],
.bb-mm[hidden],
.bb-mm [hidden],
.bb-ms[hidden],
.bb-ms [hidden] {
    display: none !important;
}

.bb-hd,
.bb-mm,
.bb-ms {
    font-family: var(--bb-hd-font);
    color: var(--bb-text);
    -webkit-font-smoothing: antialiased;
}

.bb-hd *,
.bb-mm *,
.bb-ms * {
    box-sizing: border-box;
}

.bb-hd a,
.bb-mm a,
.bb-ms a {
    text-decoration: none;
}

.bb-hd ul,
.bb-mm ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.bb-hd button,
.bb-mm button,
.bb-ms button {
    font-family: inherit;
}

.bb-hd :focus-visible,
.bb-mm :focus-visible,
.bb-ms :focus-visible {
    outline: 2px solid var(--bb-red);
    outline-offset: 2px;
    box-shadow: var(--bb-focus);
}

.bb-hd-icon {
    display: block;
    flex-shrink: 0;
}

/* Section-Label und Zähler-Pill */
.bb-hd-label {
    margin: 0 0 14px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--bb-muted);
}

.bb-hd-pill {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--bb-pill);
    color: var(--bb-text-3);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
}

.bb-hd-iconbtn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0;
    border: 0;
    border-radius: var(--bb-radius);
    background: transparent;
    color: var(--bb-text);
    cursor: pointer;
}

.bb-hd-iconbtn:hover {
    background: var(--bb-hover);
}

/* ----------------------------------------------------------
   Header-Rahmen: Platzhalter reserviert die Höhe (kein CLS)
   ---------------------------------------------------------- */
.bb-hd-spacer {
    position: relative;
    z-index: 1000;
    height: 72px;
}

.bb-hd {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 72px;
    background: var(--bb-bg);
    border-bottom: 1px solid var(--bb-line);
}

.bb-hd__bar {
    max-width: 1240px;
    height: 100%;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    gap: 48px;
}

.bb-hd__mbar {
    display: none;
}

.bb-hd__logo,
.bb-hd__mlogo,
.bb-mm__logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    line-height: 0;
}

.bb-hd__logo-img {
    display: block;
    width: auto;
    height: 36px;
}

.bb-hd-logo-text {
    font-size: 20px;
    font-weight: 800;
    line-height: 1;
    color: var(--bb-text);
}

/* Hauptnavigation */
.bb-hd__nav {
    height: 100%;
}

.bb-hd__menu {
    height: 100%;
    display: flex;
    align-items: stretch;
    gap: 8px;
}

.bb-hd__item {
    display: flex;
}

.bb-hd__item--drop {
    position: relative;
}

.bb-hd__link {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 100%;
    padding: 0 14px;
    color: var(--bb-text-2);
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
}

.bb-hd__link:hover {
    color: #FFFFFF;
}

.bb-hd__link .bb-hd-icon {
    transition: transform .2s ease;
}

.bb-hd__link[aria-expanded="true"] .bb-hd-icon {
    transform: rotate(180deg);
}

/* Aktiver Bereich (Body-Klasse) bzw. geöffnetes Menü – immer nur ein Punkt. */
body.bb-section-uebungen .bb-hd__link[data-section="uebungen"],
body.bb-section-plaene .bb-hd__link[data-section="plaene"],
body.bb-section-ratgeber .bb-hd__link[data-section="ratgeber"],
.bb-hd .bb-hd__link[aria-expanded="true"] {
    color: #FFFFFF;
    box-shadow: inset 0 -2px 0 var(--bb-red);
}

body .bb-hd.has-open .bb-hd__link:not([aria-expanded="true"]) {
    color: var(--bb-text-2);
    box-shadow: none;
}

body .bb-hd .bb-hd__link:focus-visible {
    outline-offset: -2px;
}

/* ----------------------------------------------------------
   Mega-Menü „Fitnessübungen“
   ---------------------------------------------------------- */
.bb-hd-mega {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    z-index: 2;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--bb-panel);
    border-bottom: 1px solid var(--bb-line);
    box-shadow: var(--bb-shadow);
}

.bb-hd-mega__inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 32px 32px 36px;
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 40px;
}

.bb-hd-mega__col {
    min-width: 0;
}

.bb-hd-mega__col--groups {
    grid-column: span 6;
}

.bb-hd-mega__col--equipment,
.bb-hd-mega__col--popular {
    grid-column: span 3;
}

.bb-hd-mega__cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.bb-hd-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px;
    background: var(--bb-card);
    border: 1px solid var(--bb-line-2);
    border-radius: var(--bb-radius-m);
}

.bb-hd-card__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 2px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--bb-line-2);
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
}

.bb-hd-card__sub {
    padding: 4px 0;
    color: var(--bb-text-3);
    font-size: 14px;
    line-height: 1.35;
}

.bb-hd-card__sub:hover,
.bb-hd-card__head:hover {
    color: #FFFFFF;
}

.bb-hd-card__more {
    padding: 4px 0;
    color: var(--bb-red-text);
    font-size: 14px;
    font-weight: 600;
}

.bb-hd-card--all {
    color: var(--bb-text-3);
    transition: border-color .15s ease;
}

.bb-hd-card--all:hover {
    border-color: var(--bb-line-3);
}

.bb-hd-card--all .bb-hd-card__head,
.bb-hd-card--all:hover .bb-hd-card__head {
    color: var(--bb-red-text);
}

.bb-hd-card__text {
    padding: 4px 0;
    color: var(--bb-text-3);
    font-size: 14px;
    line-height: 1.4;
}

.bb-hd-card__cta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    color: var(--bb-red-text);
    font-size: 14px;
    font-weight: 600;
}

.bb-hd-mega__equipment {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px 16px;
}

.bb-hd-mega__equipment a {
    display: block;
    padding: 9px 0;
    border-bottom: 1px solid var(--bb-line);
    color: var(--bb-text-3);
    font-size: 14px;
    font-weight: 500;
}

.bb-hd-mega__equipment a:hover {
    color: #FFFFFF;
}

.bb-hd-mega__popular {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bb-hd-mega__popular a {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bb-hd-mega__thumb {
    width: 64px;
    height: 48px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: var(--bb-radius-s);
    background: #1A1E27;
    border: 1px solid var(--bb-line-3);
}

.bb-hd-mega__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bb-hd-mega__ptext {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.bb-hd-mega__ptitle {
    color: var(--bb-text);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
}

.bb-hd-mega__popular a:hover .bb-hd-mega__ptitle {
    color: #FFFFFF;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.bb-hd-mega__pmeta {
    color: var(--bb-muted);
    font-size: 12px;
}

/* ----------------------------------------------------------
   Dropdowns „Trainingspläne“ und „Ratgeber“
   ---------------------------------------------------------- */
.bb-hd-drop {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 5;
    width: 520px;
    max-width: calc(100vw - 32px);
    padding: 20px;
    background: var(--bb-panel);
    border: 1px solid var(--bb-line-3);
    border-radius: var(--bb-radius-l);
    box-shadow: var(--bb-shadow);
}

/* Brücke über den 8-px-Abstand, damit Hover nicht abreißt. */
.bb-hd-drop::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -10px;
    height: 10px;
}

.bb-hd-drop .bb-hd-label {
    margin: 0 0 10px 8px;
}

.bb-hd-drop__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
}

.bb-hd-drop__link {
    display: block;
    padding: 12px;
    border-radius: var(--bb-radius);
    color: var(--bb-text-2);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
}

.bb-hd-drop__link:hover {
    background: var(--bb-hover);
    color: #FFFFFF;
}

.bb-hd-drop__foot {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: 14px;
    padding: 14px 8px 0;
    border-top: 1px solid var(--bb-line);
}

.bb-hd-drop__foot:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.bb-hd-drop__foot a {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--bb-red-text);
    font-size: 14px;
    font-weight: 600;
}

/* ----------------------------------------------------------
   Desktop-Suche mit Live-Ergebnissen
   ---------------------------------------------------------- */
.bb-hd-search {
    position: relative;
    flex: 0 1 320px;
    min-width: 200px;
    margin: 0 0 0 auto;
    transition: flex-basis .2s ease;
}

.bb-hd-search:focus-within {
    flex-basis: 440px;
}

.bb-hd-search > .bb-hd-icon {
    position: absolute;
    left: 14px;
    top: 13px;
    color: var(--bb-muted);
    pointer-events: none;
}

.bb-hd-search:focus-within > .bb-hd-icon {
    color: var(--bb-text);
}

.bb-hd-search__input {
    width: 100%;
    height: 44px;
    margin: 0;
    padding: 0 44px 0 42px;
    border: 1px solid var(--bb-line-3);
    border-radius: var(--bb-radius);
    background: var(--bb-input);
    color: var(--bb-text);
    font: 500 14px/1 var(--bb-hd-font);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.bb-hd-search__input::placeholder {
    color: var(--bb-muted);
    opacity: 1;
}

.bb-hd-search__input::-webkit-search-cancel-button,
.bb-ms__input::-webkit-search-cancel-button {
    -webkit-appearance: none;
    appearance: none;
}

.bb-hd .bb-hd-search__input:focus,
.bb-hd .bb-hd-search__input:focus-visible {
    border-color: var(--bb-red);
    box-shadow: var(--bb-focus);
    outline: none;
    padding-right: 16px;
}

.bb-hd-search__key {
    position: absolute;
    right: 10px;
    top: 11px;
    padding: 2px 7px;
    border: 1px solid #2C3340;
    border-radius: 6px;
    background: transparent;
    color: var(--bb-muted);
    font: 600 12px/1.35 var(--bb-hd-font);
    pointer-events: none;
}

.bb-hd-search:focus-within .bb-hd-search__key {
    display: none;
}

.bb-hd-search__panel {
    position: absolute;
    top: 54px;
    right: 0;
    z-index: 5;
    width: 440px;
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 96px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 8px;
    background: var(--bb-panel);
    border: 1px solid var(--bb-line-3);
    border-radius: var(--bb-radius-l);
    box-shadow: var(--bb-shadow);
}

.bb-hd-search__label,
.bb-hd-results__label {
    margin: 0;
    padding: 10px 12px 4px;
    color: var(--bb-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.bb-hd-search__label {
    padding-bottom: 8px;
}

.bb-hd-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 12px 12px;
}

.bb-hd-chip {
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--bb-hover);
    border: 1px solid var(--bb-line-3);
    color: var(--bb-text-2);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
}

.bb-hd-chip:hover {
    color: #FFFFFF;
    border-color: #343C49;
}

.bb-hd-results__opt {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 24px;
    padding: 10px 12px;
    border-radius: var(--bb-radius-s);
    cursor: pointer;
}

.bb-hd-results__opt:hover,
.bb-hd-results__opt.is-active {
    background: var(--bb-hover);
}

.bb-hd-results__name {
    min-width: 0;
    color: var(--bb-text);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
}

.bb-hd-results__name mark {
    background: none;
    color: #FFFFFF;
    text-decoration: underline;
    text-decoration-color: var(--bb-red);
    text-underline-offset: 3px;
}

.bb-hd-results__meta {
    flex-shrink: 0;
    max-width: 45%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--bb-muted);
    font-size: 12px;
}

.bb-hd-results__all {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 6px;
    padding: 12px;
    border-top: 1px solid var(--bb-line);
    border-radius: 0 0 var(--bb-radius-s) var(--bb-radius-s);
    color: var(--bb-red-text);
    font-size: 14px;
    font-weight: 600;
}

.bb-hd-results__all.is-active,
.bb-hd-results__all:hover {
    background: var(--bb-hover);
}

.bb-hd-results__none {
    margin: 0;
    padding: 16px 12px;
    color: var(--bb-text-3);
    font-size: 14px;
    line-height: 1.5;
}

.bb-hd-results__none + .bb-hd-results__list .bb-hd-results__all {
    margin-top: 0;
}

/* ----------------------------------------------------------
   Sticky-Header (ab ca. 120 px Scroll) mit Lesefortschritt
   ---------------------------------------------------------- */
.bb-hd.is-stuck {
    position: fixed;
    top: var(--wp-admin--admin-bar--height, 0px);
    height: 60px;
    background: rgba(10, 12, 16, .88);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    animation: bb-hd-slide .2s ease-out;
}

@keyframes bb-hd-slide {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

.bb-hd.is-stuck .bb-hd__bar {
    gap: 40px;
}

.bb-hd.is-stuck .bb-hd__logo-img {
    height: 28px;
}

.bb-hd.is-stuck .bb-hd__link {
    font-size: 14px;
}

.bb-hd.is-stuck .bb-hd-search {
    flex-basis: 280px;
}

.bb-hd.is-stuck .bb-hd-search:focus-within {
    flex-basis: 400px;
}

.bb-hd.is-stuck .bb-hd-search__input {
    height: 40px;
    padding: 0 12px 0 36px;
}

.bb-hd.is-stuck .bb-hd-search > .bb-hd-icon {
    left: 12px;
    top: 12px;
    width: 16px;
    height: 16px;
}

.bb-hd.is-stuck .bb-hd-search__key {
    display: none;
}

.bb-hd.is-stuck .bb-hd-search__panel {
    top: 50px;
}

.bb-hd.is-stuck .bb-hd-mega {
    max-height: calc(100vh - 64px);
}

.bb-hd__progress {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: var(--bb-red);
    transform: scaleX(0);
    transform-origin: left center;
    pointer-events: none;
}

/* Cookie-Button (Clickskeks, Fingerabdruck unten links) bei offenem Menü/Suche ausblenden. */
body.bb-overlay-open #ccm-root .ccm-settings-summoner,
body.bb-overlay-open .ccm-settings-summoner {
    display: none !important;
}

html.bb-scroll-lock,
html.bb-scroll-lock body {
    overflow: hidden !important;
}

/* Desktop zwischen 1024 und 1279 px: etwas enger, damit alles in eine Zeile passt. */
@media (min-width: 1024px) and (max-width: 1279px) {
    .bb-hd__bar,
    .bb-hd.is-stuck .bb-hd__bar {
        gap: 28px;
    }

    .bb-hd__link {
        padding: 0 10px;
    }

    .bb-hd__menu {
        gap: 4px;
    }

    .bb-hd-mega__inner {
        gap: 24px;
        padding: 28px 24px 32px;
    }

    .bb-hd-mega__cards {
        gap: 8px;
    }

    .bb-hd-card {
        padding: 12px;
    }

    .bb-hd-card__head {
        font-size: 15px;
    }

    .bb-hd-mega__equipment {
        grid-template-columns: 1fr;
    }
}

/* ----------------------------------------------------------
   Mobile-Header (< 1024 px)
   ---------------------------------------------------------- */
@media (max-width: 1023px) {
    .bb-hd-spacer {
        height: 60px;
    }

    .bb-hd,
    .bb-hd.is-stuck {
        position: fixed;
        top: var(--wp-admin--admin-bar--height, 0px);
        height: 60px;
        background: rgba(10, 12, 16, .92);
        -webkit-backdrop-filter: blur(12px);
        backdrop-filter: blur(12px);
        animation: none;
        transition: transform .25s ease;
    }

    .bb-hd.is-hidden {
        transform: translateY(-100%);
    }

    .bb-hd__bar {
        display: none;
    }

    .bb-hd__mbar {
        height: 100%;
        display: flex;
        align-items: center;
        gap: 4px;
        padding: 0 8px 0 16px;
    }

    .bb-hd__mlogo {
        margin-right: auto;
    }

    .bb-hd__mlogo-img {
        display: block;
        width: auto;
        height: 30px;
    }
}

@media (max-width: 600px) {
    .bb-hd,
    .bb-hd.is-stuck {
        top: 0;
    }
}

/* ----------------------------------------------------------
   Mobile-Menü (Vollbild-Dialog)
   ---------------------------------------------------------- */
.bb-mm,
.bb-ms {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--bb-bg);
}

.bb-mm__level {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    background: var(--bb-bg);
}

.bb-mm__level--2 {
    transform: translateX(100%);
    transition: transform .25s ease;
}

.bb-mm__level--2.is-in {
    transform: translateX(0);
}

.bb-mm__bar {
    height: 60px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    padding: 0 8px 0 16px;
    border-bottom: 1px solid var(--bb-line);
}

.bb-mm__logo {
    margin-right: auto;
}

.bb-mm__logo-img {
    display: block;
    width: auto;
    height: 30px;
}

.bb-mm__bar--sub {
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    padding: 0 8px;
}

.bb-mm__title {
    margin: 0;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
}

.bb-mm__body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 16px 16px 20px;
    display: flex;
    flex-direction: column;
}

.bb-mm__search {
    width: 100%;
    height: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 16px;
    border: 1px solid var(--bb-line-3);
    border-radius: var(--bb-radius-m);
    background: var(--bb-input);
    color: var(--bb-muted);
    font-size: 15px;
    text-align: left;
    cursor: pointer;
}

.bb-mm__nav {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
}

.bb-mm__row {
    width: 100%;
    height: 56px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #FFFFFF;
    font-size: 17px;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
}

.bb-mm__row .bb-hd-icon {
    margin-left: auto;
    color: var(--bb-muted);
}

.bb-mm__row--line {
    border-top: 1px solid var(--bb-line);
}

.bb-mm__row--last {
    border-bottom: 1px solid var(--bb-line);
}

.bb-mm__groups {
    padding-bottom: 16px;
}

.bb-mm__groups .bb-hd-label {
    margin: 0;
}

.bb-mm__tiles {
    margin-top: 10px !important;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.bb-mm__tile {
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 0 14px;
    border-radius: var(--bb-radius-m);
    background: var(--bb-card);
    border: 1px solid var(--bb-line-2);
}

.bb-mm__tile-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--bb-text);
    font-size: 15px;
    font-weight: 600;
}

.bb-mm__count {
    color: var(--bb-muted);
    font-size: 13px;
    font-weight: 500;
}

.bb-mm__tile--all,
.bb-mm__tile--all .bb-mm__tile-name {
    color: var(--bb-red-text);
}

.bb-mm__small {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
}

.bb-mm__small a {
    height: 44px;
    display: flex;
    align-items: center;
    color: var(--bb-text-3);
    font-size: 14px;
    font-weight: 500;
}

.bb-mm__foot {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--bb-line);
    display: flex;
    flex-direction: column;
}

.bb-mm__mail {
    height: 44px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--bb-text-2);
    font-size: 14px;
    font-weight: 500;
}

.bb-mm__mail .bb-hd-icon {
    color: var(--bb-muted);
}

.bb-mm__social {
    height: 44px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.bb-mm__social span {
    margin-right: auto;
    color: var(--bb-muted);
    font-size: 13px;
}

.bb-mm__social-link {
    color: var(--bb-text-3);
}

/* Ebene 2 „Fitnessübungen“ */
.bb-mm__body--sub {
    display: block;
    padding: 16px 16px 24px;
}

.bb-mm__allrow {
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    border-radius: var(--bb-radius-m);
    background: var(--bb-card);
    border: 1px solid var(--bb-line-2);
    color: var(--bb-red-text);
    font-size: 15px;
    font-weight: 600;
}

.bb-mm__allrow-end {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bb-mm__sublabel.bb-hd-label {
    margin: 24px 0 10px 4px;
}

.bb-mm__list,
.bb-mm__equipment {
    overflow: hidden;
    border-radius: var(--bb-radius-m);
    background: var(--bb-card);
    border: 1px solid var(--bb-line-2);
}

.bb-mm__list li + li {
    border-top: 1px solid var(--bb-line-2);
}

.bb-mm__list a {
    height: 52px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 16px;
    color: var(--bb-text);
    font-size: 15px;
    font-weight: 600;
}

.bb-mm__list .bb-mm__count {
    margin-left: auto;
}

.bb-mm__list .bb-hd-icon {
    color: var(--bb-muted);
}

.bb-mm__equipment {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bb-mm__equipment li:nth-child(n + 3) {
    border-top: 1px solid var(--bb-line-2);
}

.bb-mm__equipment li:nth-child(even) {
    border-left: 1px solid var(--bb-line-2);
}

.bb-mm__equipment a {
    height: 48px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    overflow: hidden;
    color: var(--bb-text-2);
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* ----------------------------------------------------------
   Mobile Vollbild-Suche
   ---------------------------------------------------------- */
.bb-ms__bar {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 8px 12px 8px 4px;
    border-bottom: 1px solid var(--bb-line);
}

.bb-ms__input {
    flex: 1;
    min-width: 0;
    height: 44px;
    margin: 0;
    padding: 0 14px;
    border: 1px solid var(--bb-line-3);
    border-radius: var(--bb-radius);
    background: var(--bb-input);
    color: var(--bb-text);
    font: 500 16px/1 var(--bb-hd-font); /* 16 px verhindert den iOS-Zoom. */
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.bb-ms .bb-ms__input:focus,
.bb-ms .bb-ms__input:focus-visible {
    border-color: var(--bb-red);
    box-shadow: var(--bb-focus);
    outline: none;
}

.bb-ms__input::placeholder {
    color: var(--bb-muted);
    opacity: 1;
}

.bb-ms__body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 8px 16px 24px;
}

.bb-ms .bb-hd-label {
    margin: 0;
    padding: 14px 0 10px;
}

.bb-ms .bb-hd-label + .bb-hd-chips + .bb-hd-label {
    padding-top: 24px;
}

.bb-ms .bb-hd-chips {
    padding: 0;
}

.bb-ms .bb-hd-chip {
    height: 44px;
    display: flex;
    align-items: center;
    padding: 0 14px;
    background: var(--bb-card);
    font-size: 14px;
}

.bb-ms .bb-hd-results__label {
    padding: 14px 0 4px;
    font-size: 12px;
}

.bb-ms .bb-hd-results__opt {
    min-height: 52px;
    padding: 0 8px;
    margin: 0 -8px;
    border-bottom: 1px solid var(--bb-line);
    border-radius: 0;
}

.bb-ms .bb-hd-results__name {
    font-size: 16px;
}

.bb-ms .bb-hd-results__meta {
    font-size: 13px;
}

.bb-ms .bb-hd-results__all {
    height: 52px;
    margin-top: 16px;
    padding: 0 16px;
    border: 1px solid var(--bb-line-3);
    border-radius: var(--bb-radius-m);
    background: var(--bb-card);
    font-size: 15px;
}

.bb-ms .bb-hd-results__none {
    padding: 20px 0;
    font-size: 15px;
}

@media (min-width: 1024px) {
    .bb-mm,
    .bb-ms {
        display: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bb-hd,
    .bb-hd *,
    .bb-mm *,
    .bb-ms * {
        transition: none !important;
        animation: none !important;
    }
}
