.hero-slider {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.slides {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.slideBtn {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    transition: 0.4s ease 1.6s;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

/* Optional styles for overlay text */
.hero-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    z-index: 2;
}

.hero-text h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-text p {
    font-size: 1.5rem;
}

.timeline-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.title {
    font-size: 38px;
    color: #616161;
    font-weight: 800;
}

.timeline {
    width: 100%;
    box-shadow: 0 5px 25px 5px rgba(0, 0, 0, 0.2);
}

.timeline .swiper-container {
    height: 600px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.timeline .swiper-wrapper {
    transition: 1s cubic-bezier(0.68, -0.4, 0.27, 1.34) 0.2s;
}

.timeline .swiper-slide {
    height: 100%;
    width: 100%;
    position: relative;
    color: #fff;
    overflow: hidden;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
}

.timeline .swiper-slide::after {
    content: "";
    position: absolute;
    z-index: 1;
    right: -115%;
    bottom: -10%;
    width: 100%;
    height: 100%;
    box-shadow: -230px 0 150px 60vw rgba(0, 0, 0, 0.7);
    border-radius: 100%;
}

.timeline .swiper-slide-content {
    position: absolute;
    text-align: center;
    width: 80%;
    max-width: 500px;
    right: 50%;
    top: 13%;
    transform: translate(50%, 0);
    font-size: 12px;
    z-index: 2;
}

.timeline .swiper-slide .timeline-year {
    display: block;
    font-size: 42px;
    margin-bottom: 50px;
    transform: translate3d(20px, 0, 0);
    color: #d4a024;
    font-weight: 300;
    opacity: 0;
    transition: 0.2s ease 0.4s;
}

.timeline .swiper-slide .timeline-title {
    font-weight: 600;
    font-size: 32px;
    margin: 0 0 30px;
    opacity: 0;
    transform: translate3d(20px, 0, 0);
    transition: 0.2s ease 0.5s;
}

.timeline .swiper-slide .timeline-text {
    line-height: 1.5;
    opacity: 0;
    transform: translate3d(20px, 0, 0);
    transition: 0.2s ease 0.6s;
}

.timeline .swiper-slide-active .timeline-year {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    transition: 0.4s ease 1.6s;
}

.timeline .swiper-slide-active .timeline-title {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    transition: 0.4s ease 1.7s;
}

.timeline .swiper-slide-active .timeline-text {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    transition: 0.4s ease 1.8s;
}

.timeline .swiper-pagination {
    right: 15% !important;
    height: 100%;
    display: none;
    flex-direction: column;
    justify-content: center;
    font-weight: 300;
    font-size: 18px;
    z-index: 1;
}

.timeline .swiper-pagination::before {
    content: "";
    position: absolute;
    left: -30px;
    top: 0;
    height: 100%;
    width: 1px;
    background-color: rgba(255, 255, 255, 0.2);
}

.timeline .swiper-pagination-bullet {
    width: auto;
    height: auto;
    text-align: center;
    opacity: 1;
    background: transparent;
    color: #d4a024;
    margin: 15px 0 !important;
    position: relative;
}

.timeline .swiper-pagination-bullet::before {
    content: "";
    position: absolute;
    top: 8px;
    left: -32.5px;
    width: 6px;
    height: 6px;
    border-radius: 100%;
    background-color: #d4a024;
    transform: scale(0);
    transition: 0.2s;
}

.timeline .swiper-pagination-bullet-active {
    color: #d4a024;
}

.timeline .swiper-pagination-bullet-active::before {
    transform: scale(1);
}

/* Sichtbarer Fokus für Buttons/Pagination */
#swiper-prev:focus-visible,
#swiper-next:focus-visible,
.swiper-pagination button:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px #ffde13;
    border-radius: 9999px;
}

/* Pagination Buttons resetten (weil Swiper span -> wir nutzen button) */
.swiper-pagination button {
    background: transparent;
    border: 0;
    cursor: pointer;
    font: inherit;
    color: #d4a024;
}

/* Reduced motion: Animationen minimieren */
@media (prefers-reduced-motion: reduce) {

    .timeline .swiper-wrapper,
    .timeline .swiper-slide .timeline-year,
    .timeline .swiper-slide .timeline-title,
    .timeline .swiper-slide .timeline-text {
        transition: none !important;
        transform: none !important;
    }
}


@media screen and (min-width: 768px) {
    .timeline .swiper-slide::after {
        right: -30%;
        bottom: -8%;
        width: 240px;
        height: 50%;
        box-shadow: -230px 0 150px 50vw rgba(0, 0, 0, 0.7);
    }

    .timeline .swiper-slide-content {
        right: 30%;
        top: 50%;
        transform: translateY(-50%);
        width: 400px;
        font-size: 11px;
        text-align: right;
    }

    .timeline .swiper-slide .timeline-year {
        margin-bottom: 0;
        font-size: 32px;
    }

    .timeline .swiper-slide .timeline-title {
        font-size: 44px;
        margin: 0;
    }

    .timeline .swiper-pagination {
        display: flex;
    }

}

@media screen and (min-width: 1024px) {
    .timeline .swiper-slide::after {
        right: -20%;
        bottom: -12%;
        width: 240px;
        height: 50%;
        box-shadow: -230px 0 150px 39vw rgba(0, 0, 0, 0.7);
    }

    .timeline .swiper-slide-content {
        right: 25%;
    }
}

@keyframes zoomInUp {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(30px);
    }

    60% {
        opacity: 1;
        transform: scale(1.05) translateY(-10px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.animate-zoomInUp {
    animation: zoomInUp 2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    will-change: opacity, transform;
}

.hero-slider::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(37, 37, 37, 0) 75%, #011d2f 100%);
    z-index: 10;
}

#content {
    background-image: linear-gradient(to bottom, #011d2f, #003a63);

}

.image-map {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 420px;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain;
}

.image-box {
    position: absolute;
}

.map-marker {
    position: absolute;
    transform: translate(-50%, -100%);
    width: 28px;
    height: 28px;
    border-radius: 9999px;
    border: 2px solid #003a63;
    background: #ffde13;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .25);
    cursor: pointer;
    display: grid;
    place-items: center;
}

.map-marker img {
    width: 60%;
    height: 60%;
    object-fit: contain;
    pointer-events: none;
}

.map-marker:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px #ffde13, 0 6px 20px rgba(0, 0, 0, .25);
}

.map-label {
    position: absolute;
    top: -36px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, .7);
    color: #fff;
    font-size: 12px;
    padding: 6px 8px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity .2s;
}

.map-marker:hover .map-label,
.map-marker:focus-visible .map-label {
    opacity: 1;
}

/* Motion-Reduktion */
@media (prefers-reduced-motion: reduce) {
    .transition {
        transition: none !important;
    }

    .map-label {
        transition: none !important;
    }
}


/* Visually hidden utility */
.sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}