﻿

#headerSlider .swiper-slide img
{
    width: 100%;
    margin: 0;
    padding: 0;
    vertical-align: top;
}

#headerSlider .swiper-slide img
{
    /* Part below needed if portrait images should be cut above and below. Without this the image is only cut below*/
    /*object-fit: cover;
    max-height: 100%;
    aspect-ratio: 2560/550;*/
}

#headerSlider .swiper-button-next, .swiper-button-prev {
    color: #fff !important;
}

/* Slider progress bar animated */
/*#headerSlider .swiper-slide-active::after {
    position: absolute;
    content: '';
    background-color: #BBBBBB;
    left: 0;
    bottom: 0;
    width: 0;
    height: 5px;
    width: 100%;
    z-index: 1;
}

#headerSlider .swiper-slide-active::before {
    position: absolute;
    content: '';
    background-color: #333333;
    left: 0;
    bottom: 0;
    width: 0;
    height: 5px;
    animation: progressbar 7s linear infinite;
    animation-delay: 0.3s;
    z-index: 2;
}

@keyframes progressbar {
    0% {
        width: 0%;
    }

    100% {
        width: 100%;
    }
}*/

#headerSlider .swiperContent {
    max-width: 768px;
    margin: 0 auto;
    color: #fff;
    text-shadow: 2px 2px 2px rgba(25, 25, 25, 0.5);
    position: absolute;
    left: 0;
    right: 0;
    bottom: 15px;
    padding: 0 25px 0 25px;
}

#headerSlider .swiperContent p:last-child {
    padding: 0;
}

#headerSlider .swiperContent h1,
#headerSlider .swiperContent h2,
#headerSlider .swiperContent h3,
#headerSlider .swiperContent h4
{
    color: #fff;
}

#headerSlider .swiperContent h1 {
    font-size: 29px;
    font-weight: 600;
    margin-bottom: 15px;
}

#headerSlider .swiperContent h2 {
    font-size: 25px;
    line-height: 1;
}

#headerSlider .swiperContent a,
#headerSlider .swiperContent a:visited {
    text-decoration: underline;
}

#headerSlider .swiperContent .button {
    margin: 20px 0 0 0;
    text-decoration: none;
    text-shadow: none;
    font-size: 20px;
    background-color: #fff;
    color: #333333;
}

#headerSlider .swiperContent .button:visited {
    text-decoration: none;
    color: #333333;
}

#headerSlider .swiperContent .button:hover {
    text-decoration: none;
    background-color: #808080;
    color: #fff;
}

/* mit Text-Hintergrund */
#headerSlider .swiperContent {
    background-color: rgba(25, 25, 25, 0.65);
    border-radius: 15px;
    padding-top: 10px;
    padding-bottom: 10px;
}

@media screen and (max-width: 1023.9px) {

    #headerSlider .swiper-slide img {
        min-height: 280px;
        object-fit: cover
    }


    #headerSlider .swiperContent h1 {
        font-size: 27px;
        margin-bottom: 10px;
    }

    #headerSlider .swiperContent h2 {
        font-size: 23px;
        margin-bottom: 10px;
    }
}

@media screen and (max-width: 767.9px) {

    #headerSlider .swiper-slide img {
        min-height: 180px;
    }

    #headerSlider .swiperContent .button {
        margin: 10px 0 0 0;
        font-size: 18px;
        padding: 5px 10px 5px 10px;
    }

    #headerSlider .swiperContent h1 {
        font-size: 25px;
    }

    #headerSlider .swiperContent h2 {
        font-size: 22px;
    }
}

@media screen and (max-width: 450px) {

    #headerSlider .swiperContent h1 {
        font-size: 23px;
    }

    #headerSlider .swiperContent h2 {
        font-size: 18px;
    }
}


