#slideshow {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    position: relative;
    z-index: 10;
    max-height: 100vh;
    margin: 0 0 20px 0;
    padding-bottom: 3px;
}

#slideshow .slides > div {
    position: absolute; 
    z-index: 9;
    width: 100%;
    height: calc(100% - 6px);
    transform: translateX(100%);
}

#slideshow .slides > div::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    z-index: 10;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease-in-out;
}

#slideshow .slides > div:nth-of-type(1)::after {
    background-image: url(../img/slides/umzug.webp);
}

#slideshow .slides > div:nth-of-type(2)::after {
    background-image: url(../img/slides/reinigung.webp);
}

#slideshow .slides > div:nth-of-type(3)::after {
    background-image: url(../img/slides/lagerung.webp);
}

#slideshow .slides > div:nth-of-type(4)::after {
    background-image: url(../img/slides/entsorgung.webp);
}

#slideshow .slides > div:hover::after {
    transform: scale(1.1);
}


/* Animation --> */

#slideshow .slides > div.prev {
    transform: translateX(-100%);
}

#slideshow .slides > div.change {
    z-index: 10;
    transition: transform 0.6s ease-in-out;
}

#slideshow .slides > div.active {
    z-index: 11;
    transform: translateX(0);
}


/* --> */

#slideshow .timebar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 11;
    height: 3px;
    background-color: var(--color-red-darker);
    border-top: 3px solid #fff;
}


#slideshow .timebar div {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 100%;
    bottom: 0;
    background-color: var(--color-red-main);
    transition: right linear;
}


/* --> */

#slideshow .slides > div h2 {
    position: absolute;
    top: 6px;
    left: 6px;
    right: 6px;
    z-index: 11;
    padding: 0 1.6em 0 20px;
    background-color: var(--color-red-main-translucent);
    color: #fff;
    font-size: 1.1em;
    text-align: center;
    line-height: 1.3em;
    /* clip-path: polygon(0 0, 100% 0, calc(100% - 64px) 100%, 0 100%);*/
}






/* */

#slideshow > div > div > span {
    display: none;
    /* background-color: wheat; */
    position: relative;
    bottom: 0;
    width: 100%;
    height: 100%;
    text-align: center;
    
}
/*
#slideshow > div > div > span > h1 {
    color: white;
    font-weight: bold;
    font-size: 5rem;
    line-height: 5rem;
    text-shadow:
        -2px -2px 0 #000,
        0   -1px 0 #000,
        2px -2px 0 #000,
        2px  0   0 #000,
        2px  2px 0 #000,
        0    2px 0 #000,
        -2px  2px 0 #000,
        -2px  0   0 #000;
    margin-top: 2rem;
    margin-bottom: 6rem;
}

#slideshow > div > div > span > h2 {
    color: white;
    font-weight: bold;
    font-size: 3rem;
    line-height: 3rem;
    text-shadow:
        -2px -2px 0 #000,
        0   -1px 0 #000,
        2px -2px 0 #000,
        2px  0   0 #000,
        2px  2px 0 #000,
        0    2px 0 #000,
        -2px  2px 0 #000,
        -2px  0   0 #000;
}

#slideshow > div > div > span > svg > g > path {
    stroke: var(--color-red-main);
}


#slideshow > div > div > span > svg {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    height: 40%;
    stroke: white;
    fill: var(--color-red-main);
    color: var(--color-red-main);
}*/



/* --> */

#slideshow ol {
    list-style: none;
    position: absolute;
    right: 0;
    z-index: 12;
    bottom: 6px;
    display: flex;
    flex-direction: column;
    gap: 3px 2px;
    min-width: 240px;
    mask-image: url(../img/header-mask.svg);
    mask-size: cover;
    mask-repeat: no-repeat;
    mask-position: left bottom;
    -webkit-mask-image: url(../img/header-mask.svg);
    -webkit-mask-size: cover;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: left bottom;
    transition: all 0.6s ease-in-out;
}

#slideshow ol::after {
    content: "";
    aspect-ratio: 1 / 1;
    position: absolute;
    top: 0;
    bottom: 0;
    clip-path: polygon(0 0, 100% 0, 0 100%);
}

#slideshow  ol li {
    cursor: pointer;
    user-select: none;     
    padding-right: 8px;
    background-color: var(--color-red-main);
    color: white;
    font-weight: bold;
    text-align: right;
    line-height: 1.6em;
    transition: all 0.6s ease-in-out;
}

#slideshow  ol li.current {
    background-color: var(--color-red-darker);
}



/* --> */

.badges {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 20px 0;
    padding: 20px;
    background-color: var(--color-red-main);
    /*border-radius: 20px;
    color: #fff;*/
}

/*.badges::before {
    content: "";
    box-sizing: border-box;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80px;
    height: 50%;
    background-color: #fff;
    background-image: url(../img/badge.png);
    background-repeat: no-repeat;
    background-size: auto 59%;
    background-position: center;
    border: 6px solid var(--color-red-main);
    border-radius: 12px;
    transform: translate(-50%, -50%);
}*/

.badges > a {
    box-sizing: border-box;
    display: block;
    flex: 1 1 0;
    padding: 12px;
    background-color: #fff;
    border-radius: 8px;
    text-align: center;
}

.badges img {
    height: 100%;
    max-width: 100%;
    max-height: 400px;
    vertical-align: middle;
}

@media all and (max-width: 412px) {
    #slideshow ol {
        display: none;
    }
}

@media screen and (orientation: portrait) and (max-width: 480px) {
    #slideshow {
        aspect-ratio: auto;
        width: 100%;
        height: calc(100vh - 98px);
    }

    #slideshow ol {
        display: flex;
    }
}

@media all and (min-width: 920px) {

    #slideshow {
        margin: 0 20px;
    }

    #slideshow .slides > div h2 {
        right: auto;
        padding-right: 62px;
        font-size: 28px;
        text-align: left;
        line-height: 42px;
        clip-path: polygon(0 0, 100% 0, calc(100% - 42px) 100%, 0 100%);
    }


    /* --> */
    
    .badges {
        flex-direction: row;
        margin: 20px;
        border-radius: 20px;
    }
    
    .badges::before {
        content: "";
        box-sizing: border-box;
        position: absolute;
        top: 50%;
        left: 50%;
        width: 80px;
        height: 50%;
        background-color: #fff;
        background-image: url(../img/badge.png);
        background-repeat: no-repeat;
        background-size: auto 59%;
        background-position: center;
        border: 6px solid var(--color-red-main);
        border-radius: 12px;
        transform: translate(-50%, -50%);
    }

}
