body {
    font-family: "Rajdhani", sans-serif;
    font-weight: 500;
    font-style: normal;
    font-size: large;
}


.headimg {
    background-image: url('../images/spannrahmen.webp');
    background-size: cover;
    background-position: right;
    position: relative;
}

.headimg::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(37, 37, 37, 0) 75%, #012033 100%);
    z-index: 1;
}


.main-container {
    position: relative;
    background: linear-gradient(to bottom, #012033, #003a63);
    z-index: -10;
}

.container {
    margin-left: auto;
    margin-right: auto;
}

.margin-bottom-medium {
    margin-bottom: 32px;
}

.paragraph-large {
    letter-spacing: -0.02em;
    font-size: 20px;
}

.padding-vertical-xlarge {
    padding-top: 120px;
    padding-bottom: 120px;
}

.timeline-main_heading-wrapper {
    color: #fff;
    text-align: center;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.timeline_component {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: 1120px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    position: relative;
}

.timeline_item {
    z-index: 2;
    grid-column-gap: 0px;
    grid-row-gap: 0px;
    grid-template-rows: auto;
    grid-template-columns: 1fr 180px 1fr;
    grid-auto-columns: 1fr;
    padding-top: 2rem;
    padding-bottom: 2rem;
    display: grid;
    position: relative;
}

.timeline_left {
    text-align: right;
    justify-content: flex-end;
    align-items: stretch;
}

.timeline_centre {
    justify-content: center;
    display: flex;
}

.timeline_date-text {
    color: #fff;
    letter-spacing: -0.03em;
    font-size: 48px;
    font-weight: 500;
    line-height: 1.2;
    position: sticky;
    top: 50vh;
}

.timeline_text {
    color: #fff;
    font-size: 24px;
    font-weight: 500;
    line-height: 1.3;
}

.timeline_circle {
    background-color: #fff;
    border-radius: 100%;
    width: 15px;
    min-width: 15px;
    max-width: 15px;
    height: 15px;
    min-height: 15px;
    max-height: 15px;
    position: sticky;
    top: 50vh;
}

.timeline_progress {
    z-index: -2;
    background-color: #414141;
    width: 3px;
    height: 100%;
    position: absolute;
}

.timeline_progress-bar {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    background: #ffde13;
}

.section-timeline {
    z-index: -3;
    position: relative;
}

.margin-bottom-xlarge {
    margin-bottom: 2rem;
}

.text-colour-lightgrey {
    color: #ffffffa6;
}


.timeline_left,
.timeline_centre,
.timeline_right {
    opacity: 0;
    transition: transform 0.7s ease, opacity 0.7s ease;
}

/* Left & center: slide in from the left */
.timeline_left,
.timeline_centre {
    transform: translateX(-50px);
}

/* Right column: slide in from the right */
.timeline_right {
    transform: translateX(50px);
}

/* Once in view, remove the transform and fade in */
.timeline_item.in-view .timeline_left,
.timeline_item.in-view .timeline_centre,
.timeline_item.in-view .timeline_right {
    transform: translateX(0);
    opacity: 1;
}

.overlay-fade-top {
    background-image: linear-gradient(#012033, #01203300);
    height: 80px;
    position: absolute;
    inset: 0% 0% auto;
}

.timeline_component {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: 1120px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    position: relative;
}




@media screen and (max-width: 767px) {
    h2 {
        font-size: 40px;
    }

    .paragraph-large {
        font-size: 18px;
    }

    .padding-vertical-xlarge {
        padding-top: 80px;
        padding-bottom: 80px;
    }

    .timeline_item {
        grid-template-columns: 64px 1fr;
        width: 100%;
    }

    .timeline_left {
        text-align: left;
        grid-area: 1 / 2 / 2 / 3;
    }

    .timeline_centre {
        justify-content: flex-start;
        grid-area: 1 / 1 / 3 / 2;
    }

    .timeline_right {
        grid-area: span 1 / span 1 / span 1 / span 1;
    }

    .timeline_date-text {
        margin-bottom: 24px;
        font-size: 36px;
    }

    .timeline_text {
        font-size: 20px;
    }

    .timeline_progress {
        left: 6px;
    }

}

/* 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;
  }
  

/* Respect reduced motion for timeline animations too */
@media (prefers-reduced-motion: reduce) {

    .timeline_left,
    .timeline_centre,
    .timeline_right {
        transition: none !important;
        transform: none !important;
        opacity: 1 !important;
    }

    .timeline_progress-bar {
        transition: none !important;
    }
}