/* =========================================
   GV HERO
   ========================================= */

.gv-hero {
    position: relative;

    width: 100vw;
    height: 95svh;
    min-height: 620px;

    left: 50%;
    margin-left: -50vw;

    margin-top:
        calc(
            -1 * var(--gv-hero-offset, 0px)
        );

    overflow: hidden;

    background: #111;
    color: #fff;
}


/* =========================================
   MEDIA
   ========================================= */

.gv-hero__media {
    position: absolute;

    inset: 0;

    display: block;

    width: 100%;
    height: 100%;
}


.gv-hero__image {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;
}


/* =========================================
   OVERLAY
   ========================================= */

.gv-hero__overlay {
    position: absolute;

    inset: 0;

    z-index: 1;

    background:
        rgba(
            0,
            0,
            0,
            var(--gv-hero-overlay, 0.22)
        );

    pointer-events: none;
}


/* =========================================
   CONTENT
   ========================================= */

.gv-hero__content {
    position: absolute;

    z-index: 2;

    display: flex;
    flex-direction: column;

    align-items: center;

    width: min(92%, 900px);

    text-align: center;
}


/* =========================================
   CENTER
   ========================================= */

.gv-hero--center .gv-hero__content {
    top: 50%;
    left: 50%;

    transform: translate(-50%, -50%);
}


/* =========================================
   BOTTOM CENTER
   ========================================= */

.gv-hero--bottom-center .gv-hero__content {
    left: 50%;
    bottom: 8vh;

    transform: translateX(-50%);
}


/* =========================================
   BOTTOM LEFT
   ========================================= */

.gv-hero--bottom-left .gv-hero__content {
    left: 5vw;
    bottom: 8vh;

    align-items: flex-start;

    width: min(90%, 760px);

    text-align: left;
}


/* =========================================
   HEADLINE
   ========================================= */

.gv-hero__headline {
    margin: 0;

    max-width: 900px;

    font-size:
        clamp(
            2.5rem,
            5.5vw,
            5.5rem
        );

    font-weight: 600;

    line-height: 0.96;

    letter-spacing: -0.04em;

    color: #fff;
}


/* =========================================
   SUBHEADLINE
   ========================================= */

.gv-hero__subheadline {
    max-width: 680px;

    margin: 18px 0 0;

    font-size:
        clamp(
            1rem,
            1.4vw,
            1.25rem
        );

    font-weight: 400;

    line-height: 1.45;

    color:
        rgba(
            255,
            255,
            255,
            0.9
        );
}


/* =========================================
   ACTIONS
   ========================================= */

.gv-hero__actions {
    display: flex;
    flex-wrap: wrap;

    justify-content: center;

    gap: 10px;

    margin-top: 26px;
}


.gv-hero--bottom-left
.gv-hero__actions {
    justify-content: flex-start;
}


/* =========================================
   BUTTONS
   ========================================= */

.gv-hero__button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 46px;

    padding:
        12px
        22px;

    border:
        1px solid
        rgba(
            255,
            255,
            255,
            0.9
        );

    border-radius: 999px;

    font-size: 14px;
    font-weight: 600;

    line-height: 1;

    text-decoration: none;

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}


.gv-hero__button--primary {
    background: #fff;
    color: #111;
}


.gv-hero__button--primary:hover {
    background: #111;
    border-color: #111;

    color: #fff;

    text-decoration: none;
}


.gv-hero__button--secondary {
    background:
        rgba(
            255,
            255,
            255,
            0.08
        );

    color: #fff;

    backdrop-filter: blur(6px);
}


.gv-hero__button--secondary:hover {
    background: #fff;

    color: #111;

    text-decoration: none;
}


/* =========================================
   HEADER ON HERO
   ========================================= */

/*
 * Nur solange der Hero sichtbar ist.
 */
body.gv-has-hero.gv-hero-visible
#jtl-nav-wrapper {
    background: transparent !important;

    box-shadow: none !important;

    transition:
        background-color 0.25s ease,
        box-shadow 0.25s ease;
}


/* Topbar transparent */
body.gv-has-hero.gv-hero-visible
#header-top-bar {
    background: transparent !important;
}


/* Logo / Suche / Icons-Zeile */
body.gv-has-hero.gv-hero-visible
#jtl-nav-wrapper
.hide-navbar {
    background: transparent !important;
}


/* Kategorienavigation */
body.gv-has-hero.gv-hero-visible
#jtl-nav-wrapper
> .container {
    background: transparent !important;
}


/* =========================================
   HEADER TEXT / LINKS WHITE
   ========================================= */

body.gv-has-hero.gv-hero-visible
#jtl-nav-wrapper
.navbar,
body.gv-has-hero.gv-hero-visible
#jtl-nav-wrapper
.nav-link,
body.gv-has-hero.gv-hero-visible
#jtl-nav-wrapper
.navbar-nav
.nav-link,
body.gv-has-hero.gv-hero-visible
#jtl-nav-wrapper
#shop-nav
.nav-link,
body.gv-has-hero.gv-hero-visible
#jtl-nav-wrapper
#header-top-bar
.nav-link {
    color: #fff !important;
}


/* Icons weiß */
body.gv-has-hero.gv-hero-visible
#jtl-nav-wrapper
.fas,
body.gv-has-hero.gv-hero-visible
#jtl-nav-wrapper
.far,
body.gv-has-hero.gv-hero-visible
#jtl-nav-wrapper
.fa {
    color: #fff !important;
}


/* Warenkorbpreis */
body.gv-has-hero.gv-hero-visible
#jtl-nav-wrapper
.cart-icon-dropdown-price {
    color: #fff !important;
}


/* =========================================
   SEARCH
   ========================================= */

body.gv-has-hero.gv-hero-visible
#jtl-nav-wrapper
#search
.form-control {
    color: #fff !important;

    background: transparent !important;

    border-color:
        rgba(
            255,
            255,
            255,
            0.45
        ) !important;
}


/* Placeholder */
body.gv-has-hero.gv-hero-visible
#jtl-nav-wrapper
#search
.form-control::placeholder {
    color:
        rgba(
            255,
            255,
            255,
            0.75
        ) !important;
}


/* Search Button */
body.gv-has-hero.gv-hero-visible
#jtl-nav-wrapper
#search
.btn {
    color: #fff !important;

    background: transparent !important;

    border-color:
        rgba(
            255,
            255,
            255,
            0.45
        ) !important;
}


/* =========================================
   BURGER
   ========================================= */

body.gv-has-hero.gv-hero-visible
#jtl-nav-wrapper
.navbar-toggler {
    color: #fff !important;
}


/* =========================================
   DROPDOWNS BLEIBEN HELL
   ========================================= */

body.gv-has-hero.gv-hero-visible
#jtl-nav-wrapper
.dropdown-menu {
    background: #fff !important;

    color: #111 !important;
}


/* Dropdown-Inhalte wieder dunkel */
body.gv-has-hero.gv-hero-visible
#jtl-nav-wrapper
.dropdown-menu
.nav-link,
body.gv-has-hero.gv-hero-visible
#jtl-nav-wrapper
.dropdown-menu
.dropdown-item,
body.gv-has-hero.gv-hero-visible
#jtl-nav-wrapper
.dropdown-menu
a,
body.gv-has-hero.gv-hero-visible
#jtl-nav-wrapper
.dropdown-menu
span {
    color: #111 !important;
}


/* =========================================
   NORMALER HEADER NACH HERO
   ========================================= */

body.gv-has-hero:not(.gv-hero-visible)
#jtl-nav-wrapper {
    background: #fff !important;

    transition:
        background-color 0.25s ease,
        box-shadow 0.25s ease;
}


/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 767px) {

    .gv-hero {
        height: 92svh;
        min-height: 560px;
    }


    .gv-hero__headline {
        font-size:
            clamp(
                2.2rem,
                11vw,
                4rem
            );
    }


    .gv-hero__subheadline {
        margin-top: 14px;

        font-size: 1rem;
    }


    .gv-hero__actions {
        margin-top: 22px;
    }


    .gv-hero--bottom-center
    .gv-hero__content {
        bottom: 6vh;
    }


    .gv-hero--bottom-left
    .gv-hero__content {
        left: 20px;
        right: 20px;
        bottom: 6vh;

        width: auto;
    }

}