/* Baier Hero (Content Block baier/hero) */
.bs-hero {
    /* Header-Höhe aus baier.css (Desktop 141 px, mobil 64 px); der Header liegt über dem Bild */
    --hero-head: var(--bs-header-h, 141px);
    --hero-h: min(56.25vw, 85svh);
    position: relative;
    overflow: hidden;
    background: #1E1E1E;
    color: #fff;
}
/* Vollbild: genau Bildschirmhöhe */
.bs-hero--large { --hero-h: 100svh; }
/* 16:9 (Standard): Bildformat, höchstens 85 % der Bildschirmhöhe, mindestens Header + 360 px */
.bs-hero--medium { --hero-h: max(min(56.25vw, 85svh), calc(var(--hero-head) + 360px)); }
/* Kompakt: Header + 300 px */
.bs-hero--small { --hero-h: calc(var(--hero-head) + 300px); }

.bs-hero__slide { position: relative; height: var(--hero-h); min-height: calc(var(--hero-head) + 260px); }
.bs-hero--large .bs-hero__slide { min-height: 560px; }
.bs-hero__media, .bs-hero__picture { position: absolute; inset: 0; display: block; }
.bs-hero__img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* oben dunkler für den transparenten Header, unten für den Text */
.bs-hero__shade {
    position: absolute; inset: 0; pointer-events: none;
    background:
        linear-gradient(to bottom, rgba(0, 0, 0, .45) 0, rgba(0, 0, 0, 0) 180px),
        linear-gradient(to top, rgba(0, 0, 0, .68) 0, rgba(0, 0, 0, .25) 45%, rgba(0, 0, 0, 0) 70%);
}

.bs-hero__content {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding-bottom: 40px;
    display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
}
.bs-hero__content--tabs { padding-bottom: 92px; }

.bs-hero__crumb ol { display: flex; flex-wrap: wrap; gap: 0; margin: 0; padding: 0; list-style: none; font-size: .9375rem; color: #D6D6D6; }
.bs-hero__crumb li + li::before { content: "/"; padding: 0 8px; color: rgba(255, 255, 255, .5); }
.bs-hero__crumb a { color: #D6D6D6; text-decoration: none; }
.bs-hero__crumb a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--baier-yellow, #FFDD00); }
.bs-hero__crumb [aria-current] { color: var(--baier-yellow, #FFDD00); }

.bs-hero__title {
    margin: 0; color: #fff;
    font-size: clamp(2.125rem, 1.3rem + 2.9vw, 3.75rem); font-weight: 300; line-height: 1.08; letter-spacing: -.015em;
    text-shadow: 0 2px 16px rgba(0, 0, 0, .35);
    max-width: 22ch;
}
.bs-hero__subtitle { margin: 0; font-size: clamp(1.0625rem, 1rem + .4vw, 1.3125rem); color: #E6E6E6; max-width: 46ch; }

.bs-hero__link {
    display: inline-flex; align-items: center; gap: 10px; margin-top: 8px;
    min-height: 48px; padding: 12px 22px;
    background: var(--baier-yellow, #FFDD00); color: var(--baier-black, #141414);
    font-weight: 700; font-size: 1rem; text-decoration: none;
}
.bs-hero__link:hover { background: #fff; color: var(--baier-black, #141414); }
.bs-hero__link .bs-icon { width: 18px; height: 18px; }

/* Slider: Reiter und Pause */
.bs-hero__nav {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
    display: flex; align-items: stretch; gap: 16px;
}
.bs-hero__tabs {
    flex: 1 1 auto; display: flex; overflow-x: auto; scrollbar-width: none;
    border-top: 1px solid rgba(255, 255, 255, .22);
}
.bs-hero__tabs::-webkit-scrollbar { display: none; }
.bs-hero__tab {
    flex: 1 0 auto; margin-top: -2px; padding: 14px 16px 16px 0;
    border: 0; border-top: 3px solid transparent; background: none;
    color: #BDBDBD; font: inherit; font-size: .9375rem; font-weight: 500; text-align: left; cursor: pointer; white-space: nowrap;
}
.bs-hero__tab:hover { color: #fff; }
.bs-hero__tab[aria-current="true"] { color: #fff; border-top-color: var(--baier-yellow, #FFDD00); }
.bs-hero__pause {
    flex: none; align-self: center; display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border: 1px solid rgba(255, 255, 255, .4); background: rgba(0, 0, 0, .25); color: #fff; cursor: pointer;
}
.bs-hero__pause:hover { border-color: var(--baier-yellow, #FFDD00); color: var(--baier-yellow, #FFDD00); }
.bs-hero__icon-play { display: none; }
.bs-hero__pause[aria-pressed="true"] .bs-hero__icon-pause { display: none; }
.bs-hero__pause[aria-pressed="true"] .bs-hero__icon-play { display: block; }
.bs-hero :focus-visible { outline: 3px solid var(--baier-yellow, #FFDD00); outline-offset: 2px; }

/* Splide-Pfeile im Baier-Stil */
.bs-hero .splide__arrow {
    width: 48px; height: 48px; border-radius: 0; opacity: 1;
    background: rgba(0, 0, 0, .35); border: 1px solid rgba(255, 255, 255, .35);
}
.bs-hero .splide__arrow svg { fill: #fff; width: 18px; height: 18px; }
.bs-hero .splide__arrow:hover:not(:disabled) { background: var(--baier-yellow, #FFDD00); }
.bs-hero .splide__arrow:hover:not(:disabled) svg { fill: var(--baier-black, #141414); }
.bs-hero .splide__arrow--prev { left: max(16px, calc((100% - 1240px) / 2 - 64px)); }
.bs-hero .splide__arrow--next { right: max(16px, calc((100% - 1240px) / 2 - 64px)); }

@media (max-width: 767.98px) {
    /* mobil: 16:9 wäre zu flach, deshalb feste Mindesthöhen unter dem Header */
    .bs-hero--medium { --hero-h: calc(var(--hero-head) + 340px); }
    .bs-hero--small { --hero-h: calc(var(--hero-head) + 260px); }
    .bs-hero .splide__arrow { display: none; }
    .bs-hero__content { padding-bottom: 28px; }
    .bs-hero__content--tabs { padding-bottom: 76px; }
    .bs-hero__tab { padding-right: 14px; font-size: .875rem; }
}

/* ohne JavaScript: nur erster Slide sichtbar */
.bs-hero--slider:not(.is-ready) .splide__slide:not(:first-child) { display: none; }

/* Hintergrundvideo: liegt über dem Standbild, unter Verlauf und Text */
.bs-hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.bs-hero__video--fp > div, .bs-hero__video--fp .flowplayer { position: absolute !important; inset: 0; width: 100% !important; height: 100% !important; aspect-ratio: auto !important; }
.bs-hero__video--fp video { object-fit: cover; }
.bs-hero__vtoggle {
    position: absolute; z-index: 3; right: max(16px, calc((100% - 1240px) / 2 + 32px)); bottom: 40px;
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border: 1px solid rgba(255, 255, 255, .4); background: rgba(0, 0, 0, .25); color: #fff; cursor: pointer;
}
.bs-hero__vtoggle--tabs { bottom: 92px; }
.bs-hero__vtoggle:hover { border-color: var(--baier-yellow, #FFDD00); color: var(--baier-yellow, #FFDD00); }
.bs-hero__vtoggle[aria-pressed="true"] .bs-hero__icon-pause { display: none; }
.bs-hero__vtoggle[aria-pressed="true"] .bs-hero__icon-play { display: block; }
@media (max-width: 767.98px) { .bs-hero__vtoggle { bottom: 28px; } .bs-hero__vtoggle--tabs { bottom: 76px; } }
