body#top .header.sticky { background-color: #fff; }

@media (max-width: 991px) {
    :root {
        --bfg-mobile-nav-height: 80px;
        scroll-padding-top: var(--bfg-mobile-nav-height);
    }

    /* The menu bar occupies its own row, including when it sticks. */
    body#top .header {
        position: sticky;
        top: 0;
        height: var(--bfg-mobile-nav-height);
        padding: 0;
        background-color: #fff;
        transition: none;
    }
    body#top .header > .container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        height: 100%;
    }
    body#top .header > .container::before,
    body#top .header > .container::after { content: none; }
    body#top .header .logo a { width: 162px; margin: 0; }
    body#top .header .logo img.l-black { display: block; position: static; opacity: 1; }
    body#top .header .logo img.l-white { display: none; }
    body#top .header .navigation { margin: 0; padding: 0; }
    body#top .header .navigation > ul {
        top: var(--bfg-mobile-nav-height);
        height: auto;
        max-height: calc(100vh - var(--bfg-mobile-nav-height));
        max-height: calc(100dvh - var(--bfg-mobile-nav-height));
    }
    body#top #about,
    body#top #aulendorf,
    body#top #berlin { scroll-margin-top: 16px; }

    /* Keep the established height of each header including its menu bar. */
    body#top .bfg-hero {
        min-height: calc(clamp(370px, 57vh, 590px) - var(--bfg-mobile-nav-height));
        padding-block: 24px;
        grid-template-rows: 1fr;
    }
    body#top .bfg-hero--showreel {
        min-height: calc(clamp(430px, 72vh, 750px) - var(--bfg-mobile-nav-height));
    }
    html.home body#top .bfg-hero--showreel {
        min-height: calc(clamp(420px, 58svh, 560px) - var(--bfg-mobile-nav-height));
    }
    body#top .bfg-hero__content { grid-row: 1; }

    body#top .home-slider { container-type: inline-size; }
    body#top .home-slider > .fullwidth-slider .owl-item {
        width: 100vw !important;
        width: 100cqw !important;
    }
    body#top .home-slider > .fullwidth-slider .owl-wrapper-outer { height: auto !important; min-height: 0; }
    body#top .home-slider > .fullwidth-slider .item {
        display: flex;
        min-height: calc(500px - var(--bfg-mobile-nav-height));
        height: auto !important;
        top: 0 !important;
    }
    body#top .home-slider > .fullwidth-slider .full-cap-wraper {
        display: flex;
        align-items: center;
        height: auto;
        min-height: 0;
        padding-block: 24px;
    }
    body#top .home-slider > .fullwidth-slider .content-caption {
        display: block;
        width: 100%;
        padding-top: 0;
    }

    body#top .bfg-case-intro {
        min-height: calc(clamp(470px, 72vh, 650px) - var(--bfg-mobile-nav-height));
        padding-top: 20px;
    }
    body#top .bfg-case-intro .cc-ll-subpage h1 {
        font-size: clamp(20px, 3.55vw, 34px);
        line-height: 1.24;
    }
    body#top .bfg-case-intro .cc-ll-subpage p {
        font-size: clamp(16px, 1.85vw, 19px);
        line-height: 1.48;
    }
    body#top.bfg-static-page #service .text-center h2 {
        font-size: clamp(21px, 4.25vw, 27px);
        line-height: 1.28;
        letter-spacing: .045em;
        text-wrap: balance;
    }
}

@media (max-width: 767px) {
    body#top .bfg-case-intro { min-height: 0; }
}

@media (max-width: 650px) {
    html:not(.home) body#top .bfg-hero { min-height: calc(372px - var(--bfg-mobile-nav-height)); }
    body#top .home-slider > .fullwidth-slider .item { min-height: calc(380px - var(--bfg-mobile-nav-height)); }
    body#top section { overflow-wrap: anywhere; }
    body#top .btn { max-width: 100%; white-space: normal; }
}

/* Apply the same visible height to picture and showreel headers. */
:root { --bfg-picture-header-height: clamp(430px, 72vh, 750px); }

body#top .bfg-hero,
body#top .bfg-hero--showreel,
html.home body#top .bfg-hero.bfg-hero--showreel,
body#top .home-slider > .fullwidth-slider .item {
    min-height: var(--bfg-picture-header-height);
}

body#top .home-slider > .fullwidth-slider .owl-wrapper-outer {
    height: auto !important;
    min-height: 0;
}

body#top .home-slider > .fullwidth-slider .item {
    display: flex;
    height: auto !important;
    background-size: cover;
}

body#top .home-slider > .fullwidth-slider .full-cap-wraper {
    display: flex;
    align-items: center;
    height: auto;
    min-height: 0;
    padding-block: 24px;
}

body#top .home-slider > .fullwidth-slider .content-caption {
    display: block;
    width: 100%;
    padding-top: 0;
}

@media (max-width: 991px) {
    :root { --bfg-picture-header-height: clamp(340px, 50vh, 430px); }
}

@media (max-width: 650px) {
    :root { --bfg-picture-header-height: 300px; }
    html:not(.home) body#top .bfg-hero,
    body#top .home-slider > .fullwidth-slider .item { min-height: var(--bfg-picture-header-height); }
}

@media (min-width: 992px) and (max-height: 620px) {
    .home .bfg-hero .intro-scroll-down { bottom: 20px; }
}

@media (min-width: 992px) {
    :root.home { --bfg-picture-header-height: 100vh; }
    :root:not(.home) { --bfg-picture-header-height: calc(clamp(430px, 72vh, 750px) - 80px); }

    html:not(.home) body#top .bfg-hero,
    html.home body#top .bfg-hero.bfg-hero--showreel,
    body#top .home-slider > .fullwidth-slider .full-cap-wraper {
        padding-block: 156px 24px;
    }

    html:not(.home) body#top .bfg-hero { grid-template-rows: 1fr; }
    html:not(.home) body#top .bfg-hero__content { grid-row: 1; }
}

@media (max-width: 991px) {
    body#top .header .navigation #bfg-menu-toggle { color: #000; }
    body#top .header .navigation #bfg-menu-toggle:focus-visible { outline-color: currentColor; }
}

:root { --bfg-hero-overlay: rgba(0, 0, 0, .18); }

body#top .home-slider > .fullwidth-slider .item {
    isolation: isolate;
}

body#top .bfg-hero::before,
body#top .home-slider > .fullwidth-slider .item::before {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    content: "";
    background: var(--bfg-hero-overlay);
}

/* Match the homepage typography and spacing at 95% of its font sizes. */
:root {
    --bfg-hero-title-size: 36.1px;
    --bfg-hero-title-line-height: 40px;
}

@media (max-width: 991px) {
    :root {
        --bfg-hero-title-size: 26.6px;
        --bfg-hero-title-line-height: 34px;
    }
}

@media (max-width: 650px) {
    :root {
        --bfg-hero-title-size: 20.9px;
        --bfg-hero-title-line-height: 25px;
    }
}

html:not(.home) body#top .bfg-hero__eyebrow {
    display: block;
    margin: 0 0 12px;
    font: 600 14.25px/23px Raleway, sans-serif;
    letter-spacing: 2px;
}

html:not(.home) body#top .bfg-hero__title {
    display: block;
    margin: 0 0 22px;
    padding: 0;
    font: 600 var(--bfg-hero-title-size)/var(--bfg-hero-title-line-height) Raleway, sans-serif;
    letter-spacing: 6px;
    overflow-wrap: anywhere;
    text-transform: uppercase;
}

html:not(.home) body#top .bfg-hero__title:last-child { margin-bottom: 0; }
html:not(.home) body#top .bfg-hero__title > b { font-weight: inherit; }

@media (max-width: 767px) {
    html:not(.home) body#top .bfg-hero__actions--desktop { display: none; }
    html:not(.home) body#top .bfg-hero__title:has(+ .bfg-hero__actions--desktop) { margin-bottom: 0; }
}

@media (max-width: 498px) {
    .bfg-hero--karriere .bfg-hero__media img { object-position: center; }
}

/* Leave space for the title and controls on short desktop screens. */
@media (min-width: 992px) and (max-height: 620px) {
    html:not(.home) body#top .bfg-hero,
    body#top .home-slider > .fullwidth-slider .full-cap-wraper {
        padding-block: 140px 8px;
    }
}

@media (min-width: 992px) and (max-height: 420px) {
    html.home body#top .bfg-hero.bfg-hero--showreel { padding-block: 132px 64px; }
    html.home body#top .bfg-hero .intro-scroll-down { bottom: 12px; }
}
