.programm-hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    color: var(--color-cream);
}

.programm-hero::before {
    content: '';
    position: absolute;
    z-index: -2;
    inset: 0;
    background-image: url('../../assets/backgrounds/programm_bg.webp');
    background-position: 30% center;
    background-size: cover;
    background-repeat: no-repeat;
}

.programm-hero::after {
    content: '';
    position: absolute;
    z-index: -1;
    inset: 0;
    background: linear-gradient(to bottom, rgb(15 2 0 / 30%) 0%, rgb(15 2 0 / 8%) 30%, rgb(15 2 0 / 42%) 100%);
}

.programm-hero__content {
    padding-top: calc(var(--header-height) + 2.5rem);
    padding-bottom: clamp(3.5rem, 8vw, 6rem);
}

.programm-hero__title {
    margin: 0 auto;
    max-width: 20rem;
    font-size: clamp(2.4rem, 9vw, 4.2rem);
    text-align: center;
    text-shadow: 0 0.25rem 1.2rem rgb(0 0 0 / 55%);
    color: var(--color-white);
}

.programm-hero__subtitle {
    max-width: 34rem;
    margin: clamp(0.75rem, 2.5vw, 1.25rem) auto 0;
    font-size: clamp(0.85rem, 2.6vw, 1.05rem);
    line-height: 1.55;
    text-align: center;
    text-shadow: 0 0.15rem 0.8rem rgb(0 0 0 / 95%);
    color: var(--color-white);
}

.programm-timeline {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: clamp(1.75rem, 5vw, 2.5rem);
    margin: clamp(2.5rem, 8vw, 4.5rem) 0 0;
    padding: 0 0 0 1.75rem;
    list-style: none;
    text-align: left;
}

.programm-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    width: 4px;
    background: var(--color-white);
    display: none;
}

.programm-item {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0rem;
}

.programm-item__heading {
    margin: 0;
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 4.2vw, 1.75rem);
    font-weight: 600;
    color: var(--color-white);
    text-shadow: 0 0.15rem 0.6rem rgb(0 0 0 / 45%);
}

.programm-item__description {
    margin: 0;
    font-family: var(--font-serif);
    font-size: clamp(1.15rem, 3.2vw, 1.35rem);
    font-weight: 400;
    color: var(--color-primary);
    text-shadow: 0 0.1rem 0.5rem rgb(255 247 220 / 45%);
}

@media (min-width: 48rem) {
    .programm-hero::before {
        background-position: center 35%;
    }

    .programm-timeline {
        margin-top: clamp(3rem, 6vw, 4.5rem);
        padding: 0;
    }

    .programm-timeline::before {
        display: block;
        top: calc(clamp(1.25rem, 1.7vw, 1.45rem) * 0.8);
        bottom: calc(clamp(0.95rem, 1.3vw, 1.1rem) * 1.6 + clamp(1.25rem, 1.7vw, 1.45rem) * 0.8);
        left: 50%;
        transform: translateX(-50%);
    }

    .programm-item {
        width: calc(50% - 2.25rem);
    }

    .programm-item:nth-child(even) {
        align-self: flex-start;
        align-items: flex-end;
        text-align: right;
    }

    .programm-item:nth-child(even) .programm-item__heading::after {
        content: '';
        position: absolute;
        top: 50%;
        right: -2.25rem;
        width: 2rem;
        height: 4px;
        transform: translateY(-50%);
        background: var(--color-white);
    }

    .programm-item:nth-child(odd) {
        align-self: flex-end;
        align-items: flex-start;
        text-align: left;
    }

    .programm-item:nth-child(odd) .programm-item__heading::after {
        content: '';
        position: absolute;
        top: 50%;
        left: -2.25rem;
        width: 2rem;
        height: 4px;
        transform: translateY(-50%);
        background: var(--color-white);
    }

    .programm-item__heading {
        position: relative;
        font-size: clamp(1.25rem, 1.7vw, 1.45rem);
    }

    .programm-item__description {
        font-size: clamp(0.95rem, 1.3vw, 1.1rem);
    }
}

@media (min-width: 64rem) {
    .programm-hero__title {
        max-width: 100%;
    }
}
