/**
 * @license MIT, https://opensource.org/license/MIT
 */

.aimeos-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border-bottom: 0.55rem solid #D2C5AB;
    background-color: #103050;
    background-image: url("background-dark-small.jpg");
    background-position: center top;
    background-size: cover;
}

.aimeos-hero > .container {
    position: relative;
    display: flex;
    min-height: 44rem;
    max-width: none !important;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 2.95rem min(5%, 2rem) 0;
    text-align: center;
}

.aimeos-hero .background {
    position: absolute;
    z-index: -2;
    inset: 0;
}

.aimeos-hero .background::after {
    position: absolute;
    inset: 0;
    background-color: #071D3180;
    content: "";
}

.aimeos-hero .background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@keyframes aimeos-hero-zoom {
    from { transform: scale(1); }
    to { transform: scale(1.06); }
}

@media (prefers-reduced-motion: no-preference) {
    .aimeos-hero .background.zoom img {
        animation: aimeos-hero-zoom 12s ease-in-out infinite alternate;
    }
}

.aimeos-hero .first {
    z-index: 1;
    display: flex;
    width: 100%;
    max-width: 58rem;
    flex-direction: column;
    align-items: center;
    margin: 0;
    text-align: center;
}

.aimeos-hero .logo {
    margin-bottom: 2rem;
}

.aimeos-hero h1 {
    max-width: 58rem;
    margin: 0;
    color: #FFFFFF;
    font-size: clamp(2rem, 3.1vw, 3rem);
    font-weight: 400;
    line-height: 1.2;
    text-transform: uppercase;
}

.aimeos-hero .subtitle {
    margin: 2.5rem 0 0;
    color: #FFFFFF;
    font-size: clamp(1.05rem, 1.7vw, 1.4rem);
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
}

.aimeos-hero .subtitle::after {
    display: none;
}

.aimeos-hero .cms-text {
    max-width: 42rem;
    margin: 2rem auto 0;
    color: #FFFFFF;
    font-size: calc(var(--pico-font-size) * 1.05);
    line-height: 1.65;
}

.aimeos-hero .cms-text :where(p, li, strong) {
    color: inherit;
}

.aimeos-hero .actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.aimeos-hero .actions .btn {
    width: auto;
    padding: 0.75rem 1.1rem;
    font-size: calc(var(--pico-font-size) * 0.75);
}

.aimeos-hero .second {
    display: grid;
    width: min(64rem, 96vw);
    height: 22rem;
    margin-inline: auto;
    place-items: end center;
}

.aimeos-hero .second picture,
.aimeos-hero .second video {
    grid-area: 1 / 1;
    display: block;
    width: 100%;
    border: 0;
}

.aimeos-hero .second.multiple picture {
    opacity: 0;
    transition: opacity 0.8s ease;
}

.aimeos-hero .second.multiple picture.active {
    opacity: 1;
}

.aimeos-hero .second img,
.aimeos-hero .second video {
    display: block;
    width: 100%;
    max-height: 22rem;
    object-fit: contain;
    filter: drop-shadow(0 1.25rem 1.5rem #020D1780);
}

/* TYPO3 and Symfony landing pages use a shorter dark stage. */
.aimeos-hero:has(.logo img[src*="typo3"]) > .container,
.aimeos-hero:has(.logo img[src*="symfony"]) > .container {
    min-height: 0;
    padding-bottom: 3rem;
}

.aimeos-hero:has(.logo img[src*="typo3"]) .second,
.aimeos-hero:has(.logo img[src*="symfony"]) .second {
    position: static;
    width: min(37.5rem, 100%);
    height: auto;
    margin-top: 3rem;
}

.aimeos-hero:has(.logo img[src*="typo3"]) .second img,
.aimeos-hero:has(.logo img[src*="symfony"]) .second img {
    max-height: 21.875rem;
}

.aimeos-hero:has(.logo img[src*="symfony"]) .subtitle {
    margin-bottom: 2.5rem;
}

.aimeos-hero:has(.logo img[src*="symfony"]) .second {
    margin-top: 0;
}

/* Marketplace, SaaS and B2B pages use the connected light stage. */
.type-content main .cms-content:has(.marketplace-intro, .saas-intro, .b2b-intro) > .aimeos-hero {
    border: 0;
    background-color: #F4F0EA;
    background-image: url("background-light-small.jpg");
    background-position: left top;
    background-repeat: repeat-y;
    background-size: cover;
}

.type-content main .cms-content:has(.saas-intro) > .aimeos-hero {
    background-color: #FFFFFF;
}

.type-content main .cms-content:has(.marketplace-intro, .saas-intro, .b2b-intro) > .aimeos-hero > .container {
    min-height: 0;
    max-width: 73.5rem !important;
    padding: 4.75rem min(5%, 2rem) 3rem;
}

.type-content main .cms-content:has(.marketplace-intro, .saas-intro, .b2b-intro) > .aimeos-hero .first {
    max-width: 65rem;
}

.type-content main .cms-content:has(.marketplace-intro, .saas-intro, .b2b-intro) > .aimeos-hero h1 {
    max-width: 65rem;
    color: #103050;
    font-size: clamp(2rem, 3.3vw, 3.5rem);
}

.type-content main .cms-content:has(.marketplace-intro, .saas-intro, .b2b-intro) > .aimeos-hero .subtitle {
    margin-top: 1.5rem;
    color: #103050;
    font-size: clamp(1.1rem, 1.8vw, 1.5rem);
}

.type-content main .cms-content:has(.marketplace-intro, .saas-intro, .b2b-intro) > .aimeos-hero .second {
    position: static;
    width: min(100%, 49.875rem);
    height: auto;
    margin-top: 2.5rem;
}

.type-content main .cms-content:has(.marketplace-intro, .saas-intro, .b2b-intro) > .aimeos-hero .second img {
    max-height: none;
    filter: none;
}

@media screen and (max-width: 767px) {
    .aimeos-hero > .container {
        min-height: 35rem;
        padding-top: 2rem;
    }

    .aimeos-hero .logo {
        max-height: 5rem;
        margin-bottom: 2rem;
    }

    .aimeos-hero h1 {
        font-size: 2rem;
    }

    .aimeos-hero .subtitle {
        margin-top: 1.5rem;
    }

    .aimeos-hero .second {
        height: 16rem;
    }

    .aimeos-hero .second img,
    .aimeos-hero .second video {
        max-height: 16rem;
    }

    .type-content main .cms-content:has(.marketplace-intro, .saas-intro, .b2b-intro) > .aimeos-hero > .container {
        padding-top: 3rem;
        padding-bottom: 2.5rem;
    }

    .type-content main .cms-content:has(.marketplace-intro, .saas-intro, .b2b-intro) > .aimeos-hero .second {
        margin-top: 2rem;
    }
}
