/* ==========================================================
   BBH Blazor detail fixes
   - language selector
   - complete module images
   - legal/imprint presentation
   - clean footer
   ========================================================== */

/* ---------- Sticky header + integrated language menu ---------- */
.site-header.bbh-modern-header {
    position: sticky !important;
    top: 0;
    z-index: 2000;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid rgba(38, 52, 61, 0.08);
    box-shadow: 0 7px 24px rgba(30, 50, 62, 0.07);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

/* Keep anchors visible below the sticky header. */
html {
    scroll-padding-top: 132px;
}

.bbh-modern-navigation {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.bbh-modern-navigation > .menu-hauptmenue-container {
    order: 1;
}

.bbh-language-menu {
    position: relative !important;
}

.bbh-language-details {
    position: relative;
    margin: 0;
    padding: 0;
}

.bbh-language-details > summary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 42px;
    margin: 0;
    padding: 10px 11px;
    border-radius: 13px;
    color: var(--bbh-nav-text);
    cursor: pointer;
    list-style: none;
    line-height: 1;
    user-select: none;
    transition: color 160ms ease, background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.bbh-language-details > summary::-webkit-details-marker {
    display: none;
}

.bbh-language-details > summary::marker {
    content: "";
}

.bbh-language-details > summary:hover,
.bbh-language-details > summary:focus-visible,
.bbh-language-details[open] > summary {
    color: var(--bbh-nav-blue-dark);
    background: rgba(0, 162, 224, 0.09);
    text-decoration: none;
}

.bbh-language-details > summary:hover {
    transform: translateY(-1px);
}

.bbh-language-details > summary:focus-visible {
    outline: 3px solid rgba(0, 162, 224, 0.28);
    outline-offset: 2px;
}

.bbh-language-globe {
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
}

.bbh-language-globe svg {
    display: block;
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.55;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.bbh-language-current {
    min-width: 18px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.bbh-language-caret {
    display: block;
    width: 6px;
    height: 6px;
    margin-left: 1px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    transition: transform 160ms ease;
}

.bbh-language-details[open] .bbh-language-caret {
    transform: translateY(2px) rotate(225deg);
}

.bbh-language-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 2100;
    display: grid;
    gap: 4px;
    width: 205px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.985);
    border: 1px solid var(--bbh-nav-border);
    border-radius: 15px;
    box-shadow: var(--bbh-nav-shadow);
}

.bbh-language-dropdown::before {
    content: "";
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 10px;
}

.bbh-language-dropdown a {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 14px;
    min-height: 43px;
    padding: 9px 11px;
    border-radius: 10px;
    color: var(--bbh-nav-text);
    font-size: 0.88rem;
    line-height: 1.2;
    text-decoration: none;
    transition: color 150ms ease, background-color 150ms ease, transform 150ms ease;
}

.bbh-language-dropdown a:hover,
.bbh-language-dropdown a:focus-visible {
    color: var(--bbh-nav-blue-dark);
    background: rgba(0, 162, 224, 0.08);
    text-decoration: none;
    transform: translateX(2px);
}

.bbh-language-dropdown a.active {
    color: #087da7;
    background: rgba(0, 162, 224, 0.11);
    font-weight: 700;
}

.bbh-language-dropdown a:focus-visible {
    outline: 2px solid rgba(0, 162, 224, 0.25);
    outline-offset: 1px;
}

.bbh-language-code {
    display: grid;
    place-items: center;
    min-width: 30px;
    height: 24px;
    padding: 0 6px;
    border-radius: 8px;
    color: #63727b;
    background: rgba(38, 52, 61, 0.06);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.bbh-language-dropdown a.active .bbh-language-code {
    color: #ffffff;
    background: var(--bbh-nav-blue);
}

/* ---------- Training target pills: true vertical centering ---------- */
.bbh-pill {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.bbh48z-chip-label,
.bbhkfz-target-label,
.bbhveh-target-label {
    transform: none !important;
}

/* ---------- Vehicle conversion module images: never crop ---------- */
.bbhveh-modules .bbhveh-module-image {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 8px !important;
    background: #f2f5f6 !important;
}

.bbhveh-modules .bbhveh-module-image img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    object-position: center center !important;
}

/* ---------- Legal / imprint pages ---------- */
.bbh-legal-page .entry-content {
    padding-bottom: 22px;
}

.bbh-legal-shell {
    width: min(100% - 32px, 1120px);
    margin: 0 auto 64px;
    color: #24343d;
}

.bbh-legal-card {
    margin: 0 0 18px;
    padding: clamp(24px, 4vw, 42px);
    background: #ffffff;
    border: 1px solid rgba(38, 52, 61, 0.11);
    border-radius: 18px;
    box-shadow: 0 9px 28px rgba(17, 43, 55, 0.055);
}

.bbh-imprint-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
    gap: clamp(28px, 5vw, 68px);
    align-items: start;
}

.bbh-legal-label {
    display: block;
    margin: 0 0 8px;
    color: #008db8;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    line-height: 1.2;
    text-transform: uppercase;
}

.bbh-legal-card h2 {
    margin: 0 0 14px;
    color: #112b37;
    font-family: "Roboto Condensed", Roboto, sans-serif;
    font-size: clamp(1.55rem, 3vw, 2.05rem);
    line-height: 1.15;
    font-weight: 700;
}

.bbh-legal-card h3 {
    margin: 0 0 10px;
    color: #112b37;
    font-size: 1.03rem;
    line-height: 1.35;
    font-weight: 700;
}

.bbh-legal-address {
    margin: 0;
    color: #52636d;
    font-style: normal;
    font-size: 0.98rem;
    line-height: 1.75;
}

.bbh-legal-meta {
    display: grid;
    gap: 23px;
}

.bbh-legal-meta-block {
    padding-bottom: 21px;
    border-bottom: 1px solid rgba(38, 52, 61, 0.09);
}

.bbh-legal-meta-block:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.bbh-legal-meta p,
.bbh-legal-copy {
    margin: 0;
    color: #52636d;
    font-size: 0.96rem;
    line-height: 1.78;
}

.bbh-legal-shell a {
    color: #008db8;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.bbh-legal-shell a:hover,
.bbh-legal-shell a:focus-visible {
    color: #006f92;
}

/* Prevent old theme paragraph-width rules from squeezing legal content. */
.bbh-legal-page .entry-content > .bbh-legal-shell,
.bbh-legal-page .entry-content .bbh-legal-shell > *,
.bbh-legal-page .entry-content .bbh-legal-card > * {
    max-width: none !important;
}

/* ---------- Clean footer ---------- */
.bbh-site-info-clean {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35em;
}

.bbh-site-info-clean .site-name {
    margin: 0 !important;
}

@media only screen and (max-width: 1120px) and (min-width: 900px) {
    .bbh-modern-header {
        gap: 14px !important;
    }

    .bbh-modern-header .site-branding .site-logo img {
        max-height: 76px !important;
    }

    .bbh-modern-navigation > div > ul.main-menu > li > a {
        padding-left: 9px;
        padding-right: 9px;
        font-size: 0.90rem;
    }

    .bbh-language-details > summary {
        padding-left: 9px;
        padding-right: 9px;
    }

    .bbh-language-current {
        display: none;
    }
}

@media only screen and (max-width: 899px) {
    html {
        scroll-padding-top: 102px;
    }

    .bbh-modern-navigation {
        display: flex;
        gap: 7px;
    }

    .bbh-language-details > summary {
        width: 100%;
        min-height: 46px;
        padding: 11px 13px;
        justify-content: flex-start;
        border-radius: 11px;
    }

    .bbh-language-current {
        margin-left: 4px;
    }

    .bbh-language-caret {
        margin-left: auto;
        margin-right: 3px;
    }

    .bbh-language-dropdown {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 4px;
        width: auto;
        margin: 3px 0 7px;
        padding: 6px;
        border: 0;
        border-radius: 13px;
        background: #f7f9fa;
        box-shadow: none;
    }

    .bbh-language-dropdown::before {
        display: none;
    }

    .bbh-language-dropdown a {
        min-width: 0;
        min-height: 44px;
        padding: 9px 10px;
    }

    .bbh-imprint-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media only screen and (max-width: 520px) {
    .bbh-modern-header .site-branding .site-logo img {
        max-width: 145px !important;
    }

    .bbh-language-dropdown {
        grid-template-columns: 1fr;
    }

    .bbh-legal-shell {
        width: min(100% - 20px, 1120px);
        margin-bottom: 44px;
    }

    .bbh-legal-card {
        padding: 24px 20px;
        border-radius: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bbh-language-details > summary,
    .bbh-language-caret,
    .bbh-language-dropdown a {
        transition: none !important;
    }
}

/* ---------- 404 helper ---------- */
.bbh-404-home {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    margin-top: 8px;
    padding: 0 18px;
    border-radius: 11px;
    background: #008db8;
    color: #fff !important;
    font-weight: 700;
    text-decoration: none !important;
}

.bbh-404-home:hover,
.bbh-404-home:focus-visible {
    background: #007596;
}

/* ==========================================================
   2026-09 layout refinement
   - sticky top bar uses the same 1200px content grid as BBH pages
   - privacy and jobs receive dedicated, content-preserving layouts
   ========================================================== */

/* ---------- Header width: match the standard BBH content grid ---------- */
.site-header.bbh-modern-header {
    width: calc(100% - 48px) !important;
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box;
}

/* ---------- Shared page framing for Jobs + Privacy ---------- */
.bbh-jobs-page > .entry-header,
.bbh-privacy-page > .entry-header {
    width: calc(100% - 48px) !important;
    max-width: 1200px !important;
    margin: 44px auto 18px !important;
    padding: 0 !important;
}

.bbh-jobs-page > .entry-header::before,
.bbh-privacy-page > .entry-header::before {
    content: "";
    display: block;
    width: 34px;
    height: 3px;
    margin: 0 0 13px;
    border-radius: 999px;
    background: #26bdd8;
}

.bbh-jobs-page > .entry-header .entry-title,
.bbh-privacy-page > .entry-header .entry-title {
    margin: 0 !important;
    color: #0b1a22;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, Helvetica, sans-serif !important;
    font-size: clamp(2rem, 4vw, 3.2rem) !important;
    font-weight: 800 !important;
    line-height: 1.06 !important;
    letter-spacing: -0.025em;
    text-transform: none !important;
}

.bbh-jobs-page .entry-content,
.bbh-privacy-page .entry-content {
    width: 100% !important;
    max-width: none !important;
    margin-top: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.bbh-jobs-page .entry-content > .bbh-jobs-shell,
.bbh-privacy-page .entry-content > .bbh-privacy-shell {
    width: calc(100% - 48px) !important;
    max-width: 1200px !important;
    margin: 0 auto 80px !important;
    box-sizing: border-box;
}

/* ---------- Jobs ---------- */
.bbh-jobs-shell,
.bbh-jobs-shell * {
    box-sizing: border-box;
}

.bbh-jobs-shell {
    color: #14262e;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, Helvetica, sans-serif;
}

.bbh-jobs-hero {
    position: relative;
    overflow: hidden;
    margin: 0 0 20px;
    padding: clamp(28px, 5vw, 52px);
    border: 1px solid #d9e4e8;
    border-radius: 24px;
    background: linear-gradient(135deg, #f2f7f8 0%, #eaf3f5 100%);
}

.bbh-jobs-hero::after {
    content: "";
    position: absolute;
    top: -90px;
    right: -70px;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    border: 38px solid rgba(38, 189, 216, 0.09);
    pointer-events: none;
}

.bbh-jobs-hero h2 {
    position: relative;
    z-index: 1;
    max-width: 900px !important;
    margin: 0 0 18px !important;
    color: #0b1a22 !important;
    font-family: inherit !important;
    font-size: clamp(1.7rem, 3.2vw, 2.65rem) !important;
    font-weight: 800 !important;
    line-height: 1.12 !important;
    letter-spacing: -0.02em;
    text-transform: none !important;
}

.bbh-jobs-lead {
    position: relative;
    z-index: 1;
    max-width: 930px !important;
    margin: 0 !important;
    color: #536a75 !important;
    font-size: 1.02rem !important;
    line-height: 1.75 !important;
}

.bbh-jobs-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin: 0 0 20px;
}

.bbh-jobs-card {
    min-width: 0;
    padding: clamp(24px, 3vw, 34px);
    border: 1px solid #d9e4e8;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(17, 43, 55, 0.055);
}

.bbh-jobs-card h3 {
    position: relative;
    margin: 0 0 22px !important;
    padding-top: 15px;
    color: #0b1a22 !important;
    font-family: inherit !important;
    font-size: 1.2rem !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
    text-transform: none !important;
}

.bbh-jobs-card h3::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 30px;
    height: 3px;
    border-radius: 999px;
    background: #26bdd8;
}

.bbh-jobs-card ul {
    display: grid;
    gap: 12px;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.bbh-jobs-card li {
    position: relative;
    margin: 0 !important;
    padding: 0 0 0 23px;
    color: #5d7079;
    font-size: 0.96rem;
    line-height: 1.62;
}

.bbh-jobs-card li::before {
    content: "";
    position: absolute;
    top: 0.61em;
    left: 1px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #26bdd8;
    box-shadow: 0 0 0 4px rgba(38, 189, 216, 0.12);
}

.bbh-jobs-cta {
    position: relative;
    overflow: hidden;
    padding: clamp(28px, 5vw, 48px);
    border-radius: 22px;
    background: #0b1a22;
    color: #ffffff;
}

.bbh-jobs-cta::after {
    content: "";
    position: absolute;
    right: -60px;
    bottom: -85px;
    width: 230px;
    height: 230px;
    border-radius: 50%;
    background: rgba(38, 189, 216, 0.09);
    pointer-events: none;
}

.bbh-jobs-cta h3 {
    position: relative;
    z-index: 1;
    margin: 0 0 10px !important;
    color: #ffffff !important;
    font-family: inherit !important;
    font-size: clamp(1.45rem, 2.7vw, 2rem) !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    text-transform: none !important;
}

.bbh-jobs-cta > p {
    position: relative;
    z-index: 1;
    margin: 0 0 20px !important;
    color: #c7d5db !important;
    font-size: 1rem !important;
    line-height: 1.65 !important;
}

.bbh-jobs-meta {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0 0 24px;
}

.bbh-jobs-meta strong,
.bbh-jobs-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    margin: 0;
    padding: 7px 11px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 999px;
    font-size: 0.82rem;
    line-height: 1.2;
}

.bbh-jobs-meta strong {
    color: #8ce2ef;
    background: rgba(38, 189, 216, 0.10);
}

.bbh-jobs-meta span {
    color: #dce6ea;
    background: rgba(255, 255, 255, 0.045);
}

.bbh-jobs-apply {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    max-width: 100%;
    padding: 12px 20px;
    border-radius: 13px;
    background: #26bdd8;
    color: #06212b !important;
    font-weight: 800;
    line-height: 1.35;
    text-align: center;
    text-decoration: none !important;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
    transition: transform 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.bbh-jobs-apply:hover,
.bbh-jobs-apply:focus-visible {
    background: #8ce2ef;
    color: #06212b !important;
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

/* ---------- Privacy ---------- */
.bbh-privacy-shell,
.bbh-privacy-shell * {
    box-sizing: border-box;
}

.bbh-privacy-shell {
    display: grid;
    gap: 18px;
    color: #24343d;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, Helvetica, sans-serif;
}

.bbh-privacy-intro {
    padding: clamp(25px, 4vw, 38px);
    border: 1px solid #d9e4e8;
    border-radius: 22px;
    background: linear-gradient(135deg, #f2f7f8 0%, #eaf3f5 100%);
}

.bbh-privacy-document-title {
    margin: 0 !important;
    color: #0b1a22 !important;
    font-family: inherit !important;
    font-size: clamp(1.45rem, 2.8vw, 2.05rem) !important;
    font-weight: 800 !important;
    line-height: 1.18 !important;
    text-transform: none !important;
}

.bbh-privacy-card {
    padding: clamp(25px, 4vw, 40px);
    border: 1px solid #d9e4e8;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 9px 28px rgba(17, 43, 55, 0.05);
}

.bbh-privacy-section-title {
    position: relative;
    margin: 0 0 25px !important;
    padding: 0 0 16px 48px;
    border-bottom: 1px solid #e3ecef;
    color: #0b1a22 !important;
    font-family: inherit !important;
    font-size: clamp(1.25rem, 2.4vw, 1.75rem) !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
    text-transform: none !important;
}

.bbh-privacy-section-title::before {
    content: "";
    position: absolute;
    top: 0.22em;
    left: 0;
    width: 31px;
    height: 4px;
    border-radius: 999px;
    background: #26bdd8;
}

.bbh-privacy-subtitle {
    margin: 30px 0 11px !important;
    color: #16333f !important;
    font-family: inherit !important;
    font-size: 1.05rem !important;
    font-weight: 800 !important;
    line-height: 1.4 !important;
    text-transform: none !important;
}

.bbh-privacy-minor-title {
    margin: 23px 0 8px !important;
    color: #274754 !important;
    font-family: inherit !important;
    font-size: 0.98rem !important;
    font-weight: 800 !important;
    line-height: 1.4 !important;
    text-transform: none !important;
}

.bbh-privacy-copy {
    max-width: none !important;
    margin: 0 0 15px !important;
    color: #5a6d76 !important;
    font-size: 0.96rem !important;
    line-height: 1.75 !important;
}

.bbh-privacy-copy:last-child,
.bbh-privacy-list-item:last-child {
    margin-bottom: 0 !important;
}

.bbh-privacy-list-item {
    position: relative;
    max-width: none !important;
    margin: 8px 0 !important;
    padding: 10px 14px 10px 16px;
    border-left: 3px solid rgba(38, 189, 216, 0.75);
    border-radius: 0 10px 10px 0;
    background: #f5f9fa;
    color: #536872 !important;
    font-size: 0.94rem !important;
    line-height: 1.65 !important;
}

.bbh-privacy-shell a {
    color: #008eb6;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.bbh-privacy-shell a:hover,
.bbh-privacy-shell a:focus-visible {
    color: #006f92;
}

@media only screen and (max-width: 900px) {
    .site-header.bbh-modern-header,
    .bbh-jobs-page > .entry-header,
    .bbh-privacy-page > .entry-header,
    .bbh-jobs-page .entry-content > .bbh-jobs-shell,
    .bbh-privacy-page .entry-content > .bbh-privacy-shell {
        width: calc(100% - 32px) !important;
    }

    .bbh-jobs-grid {
        grid-template-columns: 1fr;
    }
}

@media only screen and (max-width: 560px) {
    .bbh-jobs-page > .entry-header,
    .bbh-privacy-page > .entry-header {
        margin-top: 30px !important;
    }

    .bbh-jobs-hero,
    .bbh-jobs-card,
    .bbh-jobs-cta,
    .bbh-privacy-intro,
    .bbh-privacy-card {
        border-radius: 16px;
    }

    .bbh-privacy-section-title {
        padding-left: 0;
    }

    .bbh-privacy-section-title::before {
        position: static;
        display: block;
        width: 28px;
        margin-bottom: 10px;
    }
}


/* ---------- Product detail gallery: VW Climatronic 00002635 ---------- */
.bbhveh-photo-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 26px 0 0;
}

.bbhveh-photo-gallery figure {
    display: flex;
    flex-direction: column;
    min-width: 0;
    margin: 0;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--bbh-line);
    border-radius: 12px;
}

.bbhveh-photo-gallery img {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: contain;
    object-position: center;
    padding: 10px;
    background: #eef2f4;
}

.bbhveh-photo-gallery figcaption {
    flex: 1 1 auto;
    padding: 11px 13px 13px;
    color: var(--bbh-muted);
    font-size: 11.5px;
    line-height: 1.45;
}

@media (max-width: 900px) {
    .bbhveh-photo-gallery {
        grid-template-columns: 1fr;
    }

    .bbhveh-photo-gallery img {
        height: auto;
        max-height: 420px;
    }
}


/* ---------- KFZ Elektrik: grouped student trainers EL1-EL3 ---------- */
.bbhkfz-trainer-family {
    position: relative;
}

.bbhkfz-trainer-group {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 28px 0 0;
}

.bbhkfz-trainer-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(19, 92, 121, 0.16);
    border-radius: 15px;
    box-shadow: 0 10px 28px rgba(31, 63, 76, 0.065);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.bbhkfz-trainer-card:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 162, 224, 0.34);
    box-shadow: 0 16px 34px rgba(31, 63, 76, 0.10);
}

.bbhkfz-trainer-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 380px;
    padding: 18px;
    background: linear-gradient(180deg, #f5f8f9 0%, #edf3f5 100%);
    border-bottom: 1px solid rgba(19, 92, 121, 0.10);
}

.bbhkfz-trainer-image img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
}

.bbhkfz-trainer-copy {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 22px 22px 24px;
}

.bbhkfz-trainer-number {
    margin: 0 0 8px;
    color: #008fc7;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.bbhkfz-trainer-copy h3 {
    margin: 0 0 12px !important;
    color: #102c39 !important;
    font-size: clamp(20px, 2vw, 25px) !important;
    line-height: 1.13 !important;
}

.bbhkfz-trainer-copy p {
    margin: 0 0 18px !important;
    color: #526c78 !important;
    font-size: 13px !important;
    line-height: 1.62 !important;
}

.bbhkfz-trainer-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: auto;
}

.bbhkfz-trainer-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 29px;
    padding: 5px 9px;
    color: #17647f;
    background: #eef8fb;
    border: 1px solid #cfe9f2;
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 700;
    line-height: 1.2;
}

.bbhkfz-trainer-common {
    display: grid;
    grid-template-columns: minmax(220px, .78fr) minmax(0, 2.22fr);
    gap: 24px;
    align-items: center;
    margin: 18px 0 0;
    padding: 22px;
    background: #102f3c;
    border-radius: 15px;
}

.bbhkfz-trainer-common-head span,
.bbhkfz-trainer-common-head strong {
    display: block;
}

.bbhkfz-trainer-common-head span {
    margin-bottom: 6px;
    color: #62c8e8;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.bbhkfz-trainer-common-head strong {
    color: #ffffff;
    font-size: 18px;
    line-height: 1.25;
}

.bbhkfz-trainer-common-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.bbhkfz-trainer-common-grid > div {
    min-width: 0;
    padding: 12px;
    background: rgba(255, 255, 255, .055);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 10px;
}

.bbhkfz-trainer-common-grid strong,
.bbhkfz-trainer-common-grid span {
    display: block;
}

.bbhkfz-trainer-common-grid strong {
    margin-bottom: 4px;
    color: #ffffff;
    font-size: 12px;
    line-height: 1.25;
}

.bbhkfz-trainer-common-grid span {
    color: #bdced5;
    font-size: 10.5px;
    line-height: 1.4;
}

@media (max-width: 980px) {
    .bbhkfz-trainer-group {
        grid-template-columns: 1fr;
    }

    .bbhkfz-trainer-card {
        display: grid;
        grid-template-columns: minmax(240px, .75fr) minmax(0, 1.25fr);
    }

    .bbhkfz-trainer-image {
        height: 360px;
        border-right: 1px solid rgba(19, 92, 121, 0.10);
        border-bottom: 0;
    }

    .bbhkfz-trainer-common {
        grid-template-columns: 1fr;
    }

    .bbhkfz-trainer-common-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .bbhkfz-trainer-card {
        display: flex;
    }

    .bbhkfz-trainer-image {
        height: 330px;
        border-right: 0;
        border-bottom: 1px solid rgba(19, 92, 121, 0.10);
    }

    .bbhkfz-trainer-common-grid {
        grid-template-columns: 1fr;
    }
}


/* ---------- Responsive product width correction ----------
   When the product layout switches from two columns to a vertical stack,
   the original 52/48 percent child widths must not remain active. */
@media (max-width: 900px) {
    .bbhkfz-product:not(.bbhkfz-product--detail) > .bbhkfz-product-image,
    .bbhveh-product:not(.bbhveh-product--detail) > .bbhveh-product-image,
    .bbhkfz-product-dark > .bbhkfz-product-dark-image,
    .bbhveh-product-dark > .bbhveh-product-dark-image,
    .bbhkfz-product:not(.bbhkfz-product--detail) > .bbhkfz-product-copy,
    .bbhveh-product:not(.bbhveh-product--detail) > .bbhveh-product-copy,
    .bbhkfz-product-dark > .bbhkfz-product-dark-copy,
    .bbhveh-product-dark > .bbhveh-product-dark-copy {
        flex: 0 0 auto !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
    }

    .bbhkfz-product:not(.bbhkfz-product--detail) > .bbhkfz-product-image,
    .bbhveh-product:not(.bbhveh-product--detail) > .bbhveh-product-image,
    .bbhkfz-product-dark > .bbhkfz-product-dark-image,
    .bbhveh-product-dark > .bbhveh-product-dark-image,
    .bbhkfz-product-image--portrait,
    .bbhkfz-product-image--landscape {
        min-height: 0 !important;
        height: auto !important;
    }

    .bbhkfz-product:not(.bbhkfz-product--detail) > .bbhkfz-product-image img,
    .bbhveh-product:not(.bbhveh-product--detail) > .bbhveh-product-image img,
    .bbhkfz-product-dark > .bbhkfz-product-dark-image img,
    .bbhveh-product-dark > .bbhveh-product-dark-image img {
        display: block !important;
        width: 100% !important;
        height: auto !important;
        max-width: 100% !important;
        max-height: 620px !important;
        object-fit: contain !important;
        object-position: center center !important;
    }
}

@media (max-width: 640px) {
    .bbhkfz-product:not(.bbhkfz-product--detail) > .bbhkfz-product-image img,
    .bbhveh-product:not(.bbhveh-product--detail) > .bbhveh-product-image img,
    .bbhkfz-product-dark > .bbhkfz-product-dark-image img,
    .bbhveh-product-dark > .bbhveh-product-dark-image img {
        max-height: 500px !important;
    }
}

/* ---------- KFZ Elektrik: CAN/LIN dashboard training models ---------- */
.bbhkfz-canlin-family .bbhkfz-canlin-product + .bbhkfz-canlin-product {
    margin-top: 28px;
}

.bbhkfz-canlin-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 28px 0 0;
}

.bbhkfz-canlin-gallery--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bbhkfz-canlin-gallery--single {
    grid-template-columns: minmax(0, 1fr);
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.bbhkfz-canlin-gallery figure {
    display: flex;
    flex-direction: column;
    min-width: 0;
    margin: 0;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(19, 92, 121, 0.14);
    border-radius: 12px;
}

.bbhkfz-canlin-gallery img {
    display: block;
    width: 100%;
    height: 220px;
    padding: 8px;
    background: #eef3f5;
    object-fit: contain;
    object-position: center;
}

.bbhkfz-canlin-gallery figcaption {
    flex: 1 1 auto;
    padding: 10px 12px 12px;
    color: #5b7079;
    font-size: 11px;
    line-height: 1.45;
}

.bbhkfz-canlin-product .bbhkfz-product-image {
    background: #f0f4f5 !important;
}

.bbhkfz-canlin-product .bbhkfz-product-image img {
    max-height: 560px !important;
}

@media (max-width: 900px) {
    .bbhkfz-canlin-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bbhkfz-canlin-gallery img {
        height: 260px;
    }
}

@media (max-width: 620px) {
    .bbhkfz-canlin-gallery {
        grid-template-columns: 1fr;
    }

    .bbhkfz-canlin-gallery img {
        height: auto;
        max-height: 460px;
    }
}
