.mask_headerbild {
    container-type: inline-size;
    position: relative;

    .slider-item {
        display: flex;
        flex-flow: column-reverse;
        position: relative;
        height: auto;
        width: 100%;
        overflow: hidden;
    }

    > .maskElement > .slider-item:not(:first-child) {
        display: none;
    }

    .slick-initialized .slider-item {
        display: flex !important;
    }

    .ce-content {
        grid-column: 1;
        margin-block: 20px;
        padding: 0 30px;

        &.alignment-left {
        }

        &.alignment-right {
        }

        .ce-content--text {
        }
    }

    header {
        .main-header {
            color: var(--color-sherpa-blue);

            &:last-child {
                margin-bottom: 0;
            }
        }

        .sub-header {
            margin-bottom: 0;
        }
    }

    .ce-bodytext {
    }

    .image {
        aspect-ratio: 4/3;
        display: block;
        height: 100%;
        margin: 0;
        position: relative;

        picture {
            display: block;
            height: 100%;

            img {
                display: block;
                margin-inline: auto;
                height: 100%;
                min-width: 100%;
                object-fit: cover;
                object-position: center;
                transition: 0.5s ease;
            }
        }
    }

    .slick-slider {
        .slick-arrow {
            top: calc(75cqw / 2);

            &::before,
            &::after {
                background: var(--color-sherpa-blue-80);
                width: 20px;
            }
        }

        .slick-dots {
            background: rgba(255, 255, 255, 0.5);
            padding: 2px 5px 0;
            width: auto;
            top: 0;
            right: 0;
            bottom: auto;

            li {
                margin-bottom: 0;
            }
        }
    }

    .toggle-stage {
        background: rgba(255, 255, 255, 0.5);
        display: none;
        cursor: pointer;
        height: 38px;
        width: 38px;
        text-indent: -9999px;
        position: absolute;
        right: 0;
        bottom: 0;
        z-index: 3;

        &:before {
            content: "\f04b";
            display: block;
            color: var(--color-sherpa-blue);
            font-family: "Font Awesome 5 Free";
            font-size: 16px;
            font-weight: 600;
            line-height: 1;
            text-indent: 0;
            position: absolute;
            top: 50%;
            left: 55%;
            transform: translate(-50%, -50%);
        }

        &.playing::before {
            content: "\f04c";
        }
    }
}

@media (hover: hover) {
    html .mask_headerbild {
        .slick-slider .slick-arrow:hover {
            &::before,
            &::after {
                background: var(--color-orange);
            }
        }

        .toggle-stage:hover:before {
            color: var(--color-orange);
        }
    }
}

@media screen and (min-width: 768px) {
    .mask_headerbild {
        .image {
            aspect-ratio: 2/1;
        }

        .slick-slider {
            .slick-arrow {
                top: 25cqw;
            }

            .slick-dots {
                top: 50cqw;
                right: auto;
                left: 50%;
                transform: translate(-50%, -100%);
            }
        }
    }
}

@media screen and (min-width: 1024px) {
    .mask_headerbild {
        .image {
            aspect-ratio: 8/3;
        }

        .slick-slider {
            .slick-arrow {
                top: calc(50cqw * 3 / 8);
            }

            .slick-dots {
                top: calc(100cqw * 3 / 8);
            }
        }
    }
}

@media screen and (min-width: 1200px) {
    .mask_headerbild {
        .slider-item {
            display: block;

            .image {
                aspect-ratio: 16/3;
            }

            .slick-slider {
                .slick-arrow {
                    top: calc(50cqw * 3 / 16);
                }

                .slick-dots {
                    top: calc(100cqw * 3 / 16);
                }
            }

            &.higher-image {
                .image {
                    aspect-ratio: 8/3;
                }

                .slick-slider {
                    .slick-arrow {
                        top: calc(50cqw * 3 / 8);
                    }

                    .slick-dots {
                        top: calc(100cqw * 3 / 8);
                    }
                }
            }
        }

        .slick-initialized .slider-item {
            display: block !important;
        }

        .ce-content {
            display: flex;
            align-items: center;
            height: 100%;
            width: 100%;
            margin: 0 auto;
            padding: 0 20px;
            max-width: var(--max-page-width);
            position: absolute;
            top: 0;
            right: 0;
            bottom: 0;
            left: 0;
            z-index: 1;

            &.alignment-right {
                justify-content: flex-end;
            }

            .ce-content--text {
                background-color: rgba(255, 255, 255, 0.9);
                padding: 40px;
                max-width: 60%;
            }
        }

        header:not(:last-child) {
            margin-bottom: 30px;
        }

        .slick-slider {
            .slick-arrow {
                top: 50%;
            }

            .slick-dots {
                top: auto;
                bottom: 0;
                transform: translateY(0);
            }
        }

        .toggle-stage {
            display: block;
        }
    }
}


/** eof */
