﻿.splide__track {
    overflow: visible !important;
}

.herocontainerblock {
    padding-bottom: 10rem;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 80vh;
    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: 520px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 48px 16px 48px 16px;
    padding-left: 20%;
}

.hero-slider__content {
    flex: 0 1 auto;
    width: min(680px, 50%);
    max-width: 680px;
    margin-left: 3rem;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.55);
    padding: 32px 36px;
    border-radius: 6px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}

/* 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: 48px;
    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: 18rem;
    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: 22rem;
    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;
    }

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

.herocontainerblock {
    padding-bottom: 0px;
}

.hero-slider__arrows{
    display: none;
}
    
 }   
@media (max-width: 991px) {
    .hero-slider__slide {
        min-height: 420px;
    }

    .hero-slider__overlay {
        min-height: 420px;
        padding: 32px;
    }

    .hero-slider__headline {
        font-size: 34px;
    }

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

@media (max-width: 767px) {
   
    .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;
}
}

/* Position teaser cards per-slide at the bottom of the slide */
.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: 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;
    }
}
