.slider-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.slider {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.slide {
    flex-shrink: 0;
    width: 100vw;
    box-sizing: border-box;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease;
}

.slide.active {
    opacity: 1;
    pointer-events: auto;
}

.split-section-slider {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
    height: 100%;
}

.text-section-slider,
.image-section-slider {
    flex: 1 1 0;
    box-sizing: border-box;
}

.text-section-slider {
   margin-right: 1rem;
}

.image-section-slider {
    margin-left: 1rem;
}

.text-section-slider {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.text-section-slider .content-slider {
    hyphens: auto;
    max-width: 80%;
    align-items: center;
}

.content-slider h2,
.content-slider h1,
.content-slider p{
    text-align: center;
    padding-left: 0;
}

.content-slider p {
    width: 70%;
    margin-left: 15%;
}

.image-section-slider {
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-section-slider img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 0;
}

.slider-dots {
    position: absolute;
    bottom: 30px;
    width: 49%;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    z-index: 10;
}

.slider-dots button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #aaa;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}

.slider-dots button.active {
    background: #333;
}

.fade-text {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-text.visible {
    opacity: 1;
    transform: translateY(0);
}

.swiper {
    width: 100%;
    height: auto;
}

.swiper-wrapper {
    width: 100%;
}

.swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px; /* <- wichtig */
}

.fade-in-text {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in-text.visible {
    opacity: 1;
    transform: translateY(0);
}

.swiper-pagination-bullet-active {
    background-color: var(--darkblue);
}

.swiper-horizontal>.swiper-pagination-bullets,
.swiper-pagination-bullets.swiper-pagination-horizontal,
.swiper-pagination-custom, .swiper-pagination-fraction {
    bottom: 16px;
    top: auto;
    left: 0;
    width: 50%;
    }

.swiper-button-next,
.swiper-button-prev {
    color: #d9d5d5;         /* Farbe der Pfeile */
    width: 40px;         /* Breite des Buttons */
    height: 40px;        /* Höhe des Buttons */
  background-color: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    /*box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);*/
    transition: background-color 0.3s;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  /*  background-color: rgba(0, 0, 0, 0.1); !* Hover-Effekt *!*/
}

.swiper-button-next::after,
.swiper-button-prev::after {
    display: none;
    font-size: 16px;     /* Größe des Pfeils */
    color: #c9c7c7;         /* Farbe des Pfeilsymbols */
}

.swiper-button-next i,
.swiper-button-prev i {
    font-size: 24px;
    color: var(--lightcyan);
}



@media (max-width: 768px) {
    .split-section-slider {
        flex-direction: column-reverse;
        width: 100%;
        height: auto;
    }

    .text-section-slider,
    .image-section-slider {
        flex: 1 1 0;
        box-sizing: border-box;
        width: 100%;
        padding: 1rem;
        flex: unset;

    }

    .text-section-slider .content-slider {
        width: 100%;
        height: 40vh;
        max-width: 90%;
    }

    .content-slider {
        width: 100%;
        height: auto;
        display: flex;
        justify-content: center;
        align-items: flex-start;
        flex-direction: column;
    }

    .content-slider h2,
    .content-slider h1,
    .content-slider p {
        text-align: center;
    }


    .content-slider p {
        width: 100%;
        margin: 0;
    }

    .image-section-slider {
        padding: 0;
        height: auto;
    }

    .image-section-slider img {
        width: 100%;
        height: auto;
        display: block;
        object-fit: cover;
    }

    .text-section-slider {
        margin-right: 0;
    }

    .image-section-slider {
        margin-left: 0;
    }

    .swiper-horizontal>.swiper-pagination-bullets,
    .swiper-pagination-bullets.swiper-pagination-horizontal,
    .swiper-pagination-custom, .swiper-pagination-fraction {
        bottom: 16px;
        top: auto;
        left: 0;
        width: 100%;
    }

    /* Pfeile nur auf Desktop sichtbar */
    @media (max-width: 768px) {
        .swiper-button-next,
        .swiper-button-prev {
            display: none;
        }
    }
}