.video-endtext-text {
    max-width: 75%;
    text-align: center;
}

.video-endtext-overlay .endtext-wrapper {
    display: flex;
    flex-direction: column;
    align-content: center;
    align-items: center;
    width: 80rem;
    max-width: 100%;
}


.video-endtext-block {
    margin: 0;
    padding: 0;
    padding-left: calc(var(--padding) * -1) !important;
    padding-right: calc(var(--padding) * -1) !important;
}

.video-wrapper {
    position: relative;
    width: 100%;
    min-height: 91vmin;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Das Video: Absolut oben links */
.js-autoplay-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000;
    display: block;
}

.video-endtext-overlay {
    position: relative;
    z-index: 1;
    opacity: 0;
    text-align: center;
    height: 100%;
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 10vmin var(--large_padding);
}

/* Wenn per JS-Klasse .show-endtext hinzugefügt wird: Fade-In */
.show-endtext .video-endtext-overlay {
    transition: opacity 1s ease-in-out;
    opacity: 1;
}

/* Headline-Styling wie gehabt */
.video-endtext-headline {
    line-height: 1;
    text-transform: uppercase;
    margin-bottom: 0.8em;
    color: var(--blue);
    font-size: var(--headline);
}

.video-endtext-arrow {
    z-index: 10;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-top: 10vmin;
    /* Optional: Animation hinzufügen */
    animation: bounce 2s infinite;
    padding: 0;
    box-shadow: none;
}

.video-endtext-arrow:hover {
    animation: none;
    cursor: pointer;
}

.video-endtext-arrow img {
    width: 50px; /* Passe die Größe nach Bedarf an */
    height: auto;
}

/* Beispiel für eine einfache Bounce-Animation */
@keyframes bounce {
    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@media (max-width: 1080px) {
    

  .video-wrapper {
    min-height: 100vmin;
  }
}

/* Responsives Design */
@media (max-width: 768px) {
    .video-endtext-headline {
        font-size: 1.5em;
    }

    .video-endtext-arrow img {
        width: 30px;
    }

    .video-endtext-overlay {
        padding-top: 20vmin;
    }

    .video-endtext-text {
        max-width: 100%;
    }
}
