
/*
=========================================
ZSH Banner Slider
Version 2.2
=========================================
*/

/* Banner */

.zsh-banner-slider {
    position: relative;
    width: 100%;
    height: 430px;
    overflow: hidden;
    background: #ffffff;
}

/* Slides */

.zsh-banner-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.zsh-banner-slide {
    position: absolute;
    inset: 0;

    background-color: #ffffff;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.7s ease,
        visibility 0.7s ease;
}

.zsh-banner-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

/* Kein Farbverlauf */

.zsh-banner-overlay {
    display: flex;
    align-items: center;

    width: 100%;
    height: 100%;

    background: transparent;
}

/* Individuelle Schriftfarbe */

.zsh-banner-content {
    --zsh-banner-text-color: #ffffff;

    max-width: 750px;
    padding: 50px 70px;

    color: var(--zsh-banner-text-color);
}

.zsh-banner-content h2 {
    margin: 0 0 20px;

    color: var(--zsh-banner-text-color);
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 600;
    line-height: 1.2;
}

.zsh-banner-description {
    color: var(--zsh-banner-text-color);
    font-size: 18px;
    line-height: 1.6;
}

.zsh-banner-description p {
    color: var(--zsh-banner-text-color);
    margin: 0 0 20px;
}

.zsh-banner-description p:last-child {
    margin-bottom: 0;
}

/* Link-Button */

.zsh-banner-button {
    display: inline-block;

    margin-top: 20px;
    padding: 12px 25px;

    background: #312783;
    color: #ffffff;

    text-decoration: none;
    font-size: 15px;

    transition: background 0.2s;
}

.zsh-banner-button:hover {
    background: #111111;
    color: #ffffff;
    text-decoration: none;
}

/* Navigation */

.zsh-banner-prev,
.zsh-banner-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;

    width: 45px;
    height: 55px;

    border: none;
    background: rgba(0, 0, 0, 0.35);
    color: #ffffff;

    font-size: 25px;
    cursor: pointer;
}

.zsh-banner-prev {
    left: 0;
}

.zsh-banner-next {
    right: 0;
}

.zsh-banner-prev:hover,
.zsh-banner-next:hover {
    background: #312783;
}

/* Smartphone */

@media (max-width: 768px) {

    .zsh-banner-slider {
        height: 330px;
    }

    .zsh-banner-content {
        padding: 35px 45px;
    }

    .zsh-banner-content h2 {
        font-size: 27px;
    }

    .zsh-banner-description {
        font-size: 15px;
    }

    .zsh-banner-prev,
    .zsh-banner-next {
        width: 32px;
        height: 45px;
        font-size: 19px;
    }
}

/* Reduzierte Animation */

@media (prefers-reduced-motion: reduce) {

    .zsh-banner-slide {
        transition: none;
    }
}
