﻿.splide__track {
    overflow: visible !important;
}

.herocontainerblock {
    padding-bottom: 10rem;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 70vh;
    overflow: visible;
}

.hero_teaser_cards {
    bottom: 100px;
    position: relative;
}

.hero-slider .splide__track,
.hero-slider .splide__list,
.hero-slider .splide__slide {
    height: 100%;
    width: 100%;
}

.hero-slider__cta .button--tertiary {
    background-color: #fff;
    border: 1px solid #fff;
    color: #005093;
}

    .hero-slider__cta .button--tertiary:hover {
        background-color: #f2f6fa;
        border: 1px solid #f2f6fa;
        text-decoration: none;
    }

.hero-slider__slide {
    position: relative;
    min-height: 520px;
    width: 100%;
    overflow: visible;
    height: 100%;
}

.hero-slider__background {
    position: absolute;
    inset: 0;
    z-index: 1;
}

    .hero-slider__background picture,
    .hero-slider__background img {
        width: 100%;
        height: 100%;
        display: block;
    }

    .hero-slider__background img {
        object-fit: cover;
    }

.hero-slider__overlay {
    position: relative;
    z-index: 2;
    min-height: 620px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    justify-self: center;
    padding: 48px 16px 48px 16px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-slider__content {
    flex: 0 1 auto;
    width: min(680px, 60%);
    max-width: 625px;
    color: #ffffff;
    background-color: rgba(53,59,64,.81);
    padding: 2rem;
}

/* Horizontal alignment */
.hero-slider__content--left {
    margin-left: 0;
    margin-right: auto;
    text-align: left;
}

.hero-slider__content--center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.hero-slider__content--right {
    margin-left: auto;
    text-align: right;
}

/* Vertical alignment */
.hero-slider__content-vertical--top {
    align-self: flex-start;
}

.hero-slider__content-vertical--middle {
    align-self: center;
}

.hero-slider__content-vertical--bottom {
    align-self: flex-end;
}

/* Headline sizes */
.hero-slider__headline {
    font-size: 47.7px;
    font-weight: 900;
    color: #ffffff;
    text-shadow: 1px 1px 5px #000;
    line-height: 1.2;
    margin: 0 0 2.9rem;
}

.hero-slider__subheading {
    margin: 0 0 24px;
    font-size: 20px;
    line-height: 1.5;
    color: #ffffff;
    max-width: 60ch;
}

.hero-slider__cta {
    margin-top: 16px;
}

    .hero-slider__cta a,
    .hero-slider__cta .btn {
        display: inline-block;
        background: #0b66b2;
        color: #ffffff;
        padding: 10px 18px;
        border-radius: 4px;
        text-decoration: none;
        font-weight: 600;
    }

        .hero-slider__cta a:hover,
        .hero-slider__cta .btn:hover {
            background: #084f86;
        }

.hero-slider__arrows {
    pointer-events: none;
    position: absolute;
    left: 50%;
    bottom: 10rem;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15rem;
    z-index: 6;
}

.hero-slider__arrow {
    position: static;
    pointer-events: auto;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: white;
    color: black;
}

    .hero-slider__arrow svg {
        width: 3rem;
        height: 3rem;
        fill: currentColor;
        transform: none !important;
    }

.hero-slider__arrow--prev svg {
    transform: none !important;
}

.hero-slider__arrow:hover,
.hero-slider__arrow:focus {
    background: rgba(255, 255, 255, 0.24);
    color: #ffffff;
}

/* Splide pagination */
.hero-slider .splide__pagination {
    bottom: 13rem;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: auto;
    padding: 0;
}

.hero-slider .splide__pagination__page {
    background: rgba(255, 255, 255, 0.55);
}

    .hero-slider .splide__pagination__page.is-active {
        background: #ffffff;
    }

    .hero-slider__slide .hero__cards {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -40rem;
    z-index: 7;
    width: min(1100px, 92%);
    display: flex;
    gap: 2.4rem;
    justify-content: center;
    align-items: stretch;
    pointer-events: auto;
}

.hero-slider__slide .hero__cards-card {
    max-width: 36rem;
    margin: 0;
}


@media (max-width:1195px) {
    .hero-slider {
        position: relative;
        width: 100%;
        height: unset;
        overflow: hidden;
    }

    .herocontainerblock {
        padding-bottom: 0px;
    }

    .hero-slider__overlay {
        width: 100%;
        padding: 24px 16px;
    }
}

@media (max-width: 1024px) {
    .hero-slider__overlay{
        padding-bottom: 12rem;
    }
    .hero_teaser_cards {
        margin-top: 20px;
        bottom: 0;
    }
    
    .hero-slider .splide__pagination{
        bottom: 43rem;
    }

    .hero-slider__arrows {
        bottom: 40rem;
    }

    .hero-slider__overlay{
        padding-top: 0;
    }    
}

@media (max-width: 991px) {
    .hero-slider__slide {
        min-height: 420px;
    }
    .hero-slider__headline {
        font-size: 34px;
    }

    .hero-slider__subheading {
        font-size: 20px;
    }
}

@media (max-width: 912px) {
    .hero-slider__arrows {
        bottom: 40rem;       
    }

    .hero-slider .splide__pagination {
        bottom: 43rem;
    }
}

@media (max-width: 820px) {
    .hero_teaser_cards {
        margin-top: 20px;
        bottom: 0;
    }
}


@media (max-width: 799px) {
    .hero-slider__slide .hero__cards {
        position: static;
        transform: none;
        bottom: auto;
        width: 100%;
        display: grid;
        grid-template-columns: 1fr;
        gap: 1.6rem;
        margin-top: 1.6rem;
    }

    .hero-slider__slide .hero__cards-card {
        max-width: none;
        padding: 0;
    }
}

@media (max-width: 768px) {
    .hero-slider__overlay {
        min-height: 360px;
        padding: 24px 0;
    }

    .hero-slider__content {
        max-width: 100%;
        width: 100%;
        padding: 16px 18px;
        box-shadow: 0 6px 18px rgba(0,0,0,0.35);
        margin-left: 1.5rem;
        margin-right: 1.5rem;
    }

    .hero-slider__headline {
        font-size: 2rem;
    }

    .hero-slider__subheading {
        font-size: 20px;
    }

    .hero_teaser_cards {
        margin-top: 20px;
        bottom: 0;
    }

     .hero-slider__arrows {
        bottom: 62rem;       
    }

    .hero-slider .splide__pagination {
        bottom: 65rem;
    }
}

@media (max-width: 599px) {
    .hero-slider__arrows {
        bottom: 75rem;       
    }

    .hero-slider .splide__pagination {
        bottom: 78rem;
    }
}

@media (max-width: 540px) {
    .hero-slider__arrows {
        bottom: 70rem;       
    }

    .hero-slider .splide__pagination {
        bottom: 73rem;
    }
}

@media (max-width: 430px) {
    .hero-slider__arrows {
        bottom: 70rem;       
    }

    .hero-slider .splide__pagination {
        bottom: 73rem;
    }
}

@media (max-width: 420px) {
    .hero-slider__arrows {
        bottom: 70rem;       
    }

    .hero-slider .splide__pagination {
        bottom: 73rem;
    }
}

@media (max-width: 375px) {
    .hero-slider__arrows {
        bottom: 75rem;       
    }

    .hero-slider .splide__pagination {
        bottom: 78rem;
    }
}

@media (max-width: 375px) {
    .hero-slider__arrows {
        bottom: 75rem;       
    }

    .hero-slider .splide__pagination {
        bottom: 78rem;
    }
}


@media screen and (min-width: 1024px) and (max-width: 1366px) and (hover: hover) and (pointer: fine) {
    .hero-slider__arrows{
        bottom: 1.0rem;
    }

     .hero-slider .splide__pagination{
        bottom: 4.5rem;
    }

    .hero-slider__overlay{
        padding-bottom: 12rem;
        min-height: unset;
    }

    .hero_teaser_cards{
        bottom: 0;
    }

    .herocontainerblock{
        padding-bottom: 20rem;
    }
}




