/*
 * SEO Lausitz – Steffen Timeline
 * Helle Markenoptik passend zu seo-lausitz.de
 */
.sl-timeline {
    --sl-brand: #8fca38;
    --sl-brand-dark: #679f22;
    --sl-brand-soft: #f2f8e9;
    --sl-text: #252b2f;
    --sl-muted: #687279;
    --sl-line: #dfe5e8;
    --sl-surface: #ffffff;
    --sl-surface-soft: #f7f9f6;
    --sl-shadow: 0 18px 42px rgba(37, 43, 47, .09);
    --sl-shadow-hover: 0 24px 58px rgba(37, 43, 47, .14);
    --sl-radius: 22px;

    --sl-career: #4d5b63;
    --sl-business: #8fca38;
    --sl-engagement: #65ad2b;
    --sl-education: #7f8b91;
    --sl-origin: #8fca38;

    position: relative;
    isolation: isolate;
    overflow: hidden;
    margin: 2.5rem 0;
    padding: clamp(2rem, 5vw, 4.75rem) clamp(1rem, 4vw, 3rem);
    border: 0px solid #edf0eb;
    border-radius: clamp(20px, 3vw, 32px);
    color: var(--sl-text);
    /*background:
        radial-gradient(circle at 12% 2%, rgba(143, 202, 56, .14), transparent 24rem),
        radial-gradient(circle at 98% 32%, rgba(143, 202, 56, .08), transparent 22rem),
        linear-gradient(180deg, #ffffff 0%, #fbfcfa 52%, #f7f9f6 100%);
    box-shadow: 0 8px 28px rgba(37, 43, 47, .05);
    */
    font-size: 16px;
}

.sl-timeline::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    opacity: .55;
    background-image: radial-gradient(rgba(143, 202, 56, .16) 1px, transparent 1px);
    background-size: 24px 24px;
    mask-image: linear-gradient(to bottom, #000 0, rgba(0,0,0,.35) 36%, transparent 72%);
}

.sl-timeline * { box-sizing: border-box; }

.sl-timeline__head {
    position: relative;
    max-width: 930px;
    margin: 0 auto clamp(3rem, 6vw, 5.25rem);
    text-align: center;
}

.sl-timeline__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    margin: 0 0 1rem;
    padding: .5rem .9rem;
    border: 1px solid rgba(103, 159, 34, .22);
    border-radius: 999px;
    color: #527f1c;
    background: var(--sl-brand-soft);
    font-size: .78rem;
    font-weight: 850;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.sl-timeline__eyebrow::before {
    content: "";
    width: .5rem;
    height: .5rem;
    border-radius: 50%;
    background: var(--sl-brand);
    box-shadow: 0 0 0 5px rgba(143, 202, 56, .14);
}

.sl-timeline h2 {
    margin: 0;
    color: #23292d;
    font-size: clamp(2rem, 5vw, 4.05rem);
    line-height: 1.04;
    letter-spacing: -.042em;
    text-wrap: balance;
}

.sl-timeline h2::after {
    content: "";
    display: block;
    width: 84px;
    height: 5px;
    margin: 1.15rem auto 0;
    border-radius: 999px;
    background: var(--sl-brand);
}

.sl-timeline__intro {
    max-width: 790px;
    margin: 1.35rem auto 0;
    color: var(--sl-muted);
    font-size: clamp(1rem, 1.5vw, 1.18rem);
    line-height: 1.75;
    text-wrap: pretty;
}

.sl-timeline__legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .65rem .8rem;
    margin-top: 1.8rem;
    color: #626c72;
    font-size: .82rem;
}

.sl-timeline__legend span {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .38rem .65rem;
    border: 1px solid #e5e9e3;
    border-radius: 999px;
    background: rgba(255,255,255,.78);
}

.sl-dot {
    width: .58rem;
    height: .58rem;
    border-radius: 50%;
    background: var(--sl-career);
}
.sl-dot--career { background: var(--sl-career); }
.sl-dot--business { background: var(--sl-business); }
.sl-dot--engagement { background: var(--sl-engagement); }
.sl-dot--education { background: var(--sl-education); }

.sl-timeline__rail {
    position: relative;
    max-width: 1220px;
    margin: 0 auto;
    padding: .5rem 0;
}

.sl-timeline__rail::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    transform: translateX(-50%);
    border-radius: 999px;
    background:
        linear-gradient(to bottom,
            rgba(143,202,56,.08),
            rgba(143,202,56,.8) 7%,
            #d9e3d0 24%,
            #d9e3d0 76%,
            rgba(143,202,56,.8) 93%,
            rgba(143,202,56,.08));
}

.sl-timeline__item {
    --sl-type: var(--sl-career);
    --sl-type-soft: rgba(77,91,99,.08);
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 88px minmax(0, 1fr);
    align-items: start;
    margin: 0 0 clamp(1.5rem, 4vw, 3.6rem);
}

.sl-timeline__item--business {
    --sl-type: var(--sl-business);
    --sl-type-soft: rgba(143,202,56,.11);
}
.sl-timeline__item--engagement {
    --sl-type: var(--sl-engagement);
    --sl-type-soft: rgba(101,173,43,.10);
}
.sl-timeline__item--education {
    --sl-type: var(--sl-education);
    --sl-type-soft: rgba(127,139,145,.09);
}
.sl-timeline__item--origin {
    --sl-type: var(--sl-origin);
    --sl-type-soft: rgba(143,202,56,.11);
}

.sl-timeline__marker {
    grid-column: 2;
    display: flex;
    justify-content: center;
    position: sticky;
    top: 110px;
    z-index: 2;
    padding-top: 1.15rem;
}

.sl-timeline__marker span {
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    border: 7px solid #fafbf9;
    border-radius: 50%;
    color: var(--sl-type);
    background: #fff;
    box-shadow: 0 0 0 2px var(--sl-type), 0 8px 24px rgba(37,43,47,.13);
    font-weight: 950;
    font-size: 1rem;
}

.sl-timeline__card {
    position: relative;
    overflow: hidden;
    grid-column: 1;
    padding: clamp(1.25rem, 2.7vw, 2rem);
    border: 1px solid #e5e9e3;
    border-radius: var(--sl-radius);
    background: rgba(255,255,255,.96);
    box-shadow: var(--sl-shadow);
    transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease;
}

.sl-timeline__item:nth-child(even) .sl-timeline__card { grid-column: 3; }

.sl-timeline__card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: var(--sl-type);
}

.sl-timeline__card::after {
    content: "";
    position: absolute;
    width: 145px;
    height: 145px;
    right: -72px;
    top: -72px;
    border-radius: 50%;
    background: var(--sl-type-soft);
    pointer-events: none;
}

.sl-timeline__item:nth-child(even) .sl-timeline__card::before {
    inset: 0 0 0 auto;
}

.sl-timeline__item:nth-child(even) .sl-timeline__card::after {
    right: auto;
    left: -72px;
}

.sl-timeline__card:hover,
.sl-timeline__card:focus-within {
    transform: translateY(-5px);
    border-color: color-mix(in srgb, var(--sl-type) 42%, #e5e9e3);
    box-shadow: var(--sl-shadow-hover);
}

.sl-timeline__meta {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .55rem;
    margin-bottom: .85rem;
}

.sl-timeline__period,
.sl-timeline__voluntary {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: .34rem .72rem;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 850;
    letter-spacing: .035em;
}

.sl-timeline__period {
    color: #fff;
    background: var(--sl-type);
}

.sl-timeline__item--business .sl-timeline__period,
.sl-timeline__item--origin .sl-timeline__period {
    color: #24300f;
}

.sl-timeline__voluntary {
    border: 1px solid rgba(101,173,43,.28);
    color: #4b811f;
    background: #f0f7e9;
    text-transform: uppercase;
}

.sl-timeline h3 {
    position: relative;
    z-index: 1;
    margin: 0;
    color: #252b2f;
    font-size: clamp(1.32rem, 2.5vw, 2rem);
    line-height: 1.13;
    letter-spacing: -.018em;
}

.sl-timeline__subtitle {
    position: relative;
    z-index: 1;
    margin: .48rem 0 0;
    color: var(--sl-type);
    font-size: .92rem;
    font-weight: 800;
    line-height: 1.45;
}

.sl-timeline__teaser {
    position: relative;
    z-index: 1;
    margin: 1rem 0 0;
    color: #515b61;
    line-height: 1.72;
}

.sl-timeline__tags {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: .42rem;
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
}

.sl-timeline__tags li {
    margin: 0;
    padding: .31rem .58rem;
    border: 1px solid #e3e8e0;
    border-radius: 7px;
    color: #5f696e;
    background: #f7f9f6;
    font-size: .72rem;
    line-height: 1.25;
}

.sl-timeline__details {
    position: relative;
    z-index: 1;
    margin-top: 1.18rem;
    border-top: 1px solid #e7ebe5;
}

.sl-timeline__details summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 50px;
    padding: .78rem 0 .08rem;
    color: #30383c;
    cursor: pointer;
    list-style: none;
    font-size: .88rem;
    font-weight: 850;
    user-select: none;
}

.sl-timeline__details summary::-webkit-details-marker { display: none; }

.sl-timeline__details summary:hover { color: #527f1c; }

.sl-timeline__details summary:focus-visible {
    outline: 2px solid var(--sl-brand);
    outline-offset: 5px;
    border-radius: 5px;
}

.sl-timeline__less { display: none; }
.sl-timeline__details[open] .sl-timeline__more { display: none; }
.sl-timeline__details[open] .sl-timeline__less { display: inline; }

.sl-timeline__chevron {
    flex: 0 0 auto;
    width: 11px;
    height: 11px;
    border-right: 2px solid var(--sl-type);
    border-bottom: 2px solid var(--sl-type);
    transform: rotate(45deg) translateY(-3px);
    transition: transform .22s ease;
}

.sl-timeline__details[open] .sl-timeline__chevron {
    transform: rotate(225deg) translate(-2px, -2px);
}

.sl-timeline__details-inner {
    padding: .65rem 0 .15rem;
    animation: slTimelineOpen .28s ease both;
}

.sl-timeline__details-inner p {
    margin: 0 0 .9rem;
    color: #596369;
    line-height: 1.74;
}

.sl-timeline__details-inner p:last-child { margin-bottom: .4rem; }

/* Wichtige Stationen werden leicht betont, ohne den Seitenstil zu verlassen. */
.sl-timeline__item.is-featured .sl-timeline__card {
    border-color: color-mix(in srgb, var(--sl-type) 24%, #e5e9e3);
    background:
        linear-gradient(145deg, var(--sl-type-soft), transparent 34%),
        #fff;
}

/* Freiwilliges Engagement darf bewusst stärker herausstechen. */
.sl-timeline__item--engagement.is-featured .sl-timeline__card {
    box-shadow: 0 18px 42px rgba(83, 135, 35, .12);
}

.sl-timeline__footer {
    max-width: 900px;
    margin: clamp(2.6rem, 5vw, 4.75rem) auto 0;
    padding: 1.25rem 1.5rem;
    border: 1px solid rgba(143,202,56,.32);
    border-radius: 18px;
    text-align: center;
    background: linear-gradient(135deg, #f4faec, #fbfdf8);
    color: #4e585d;
    line-height: 1.65;
    box-shadow: 0 10px 30px rgba(82,127,28,.06);
}

.sl-timeline__footer strong {
    color: #527f1c;
    margin-right: .35rem;
}

.sl-timeline__item.sl-inview .sl-timeline__card {
    animation: slTimelineIn .6s cubic-bezier(.2,.7,.2,1) both;
}

@keyframes slTimelineIn {
    from { opacity: .62; transform: translateY(18px) scale(.992); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes slTimelineOpen {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 860px) {
    .sl-timeline {
        padding-inline: clamp(.85rem, 4vw, 1.35rem);
        border-radius: 22px;
    }

    .sl-timeline__head { text-align: left; }
    .sl-timeline h2::after { margin-left: 0; }
    .sl-timeline__legend { justify-content: flex-start; }

    .sl-timeline__rail::before {
        left: 23px;
        transform: none;
    }

    .sl-timeline__item {
        display: grid;
        grid-template-columns: 46px minmax(0,1fr);
        gap: 10px;
    }

    .sl-timeline__marker {
        grid-column: 1;
        position: relative;
        top: auto;
        padding-top: 1rem;
    }

    .sl-timeline__marker span {
        width: 38px;
        height: 38px;
        border-width: 5px;
        font-size: .82rem;
    }

    .sl-timeline__card,
    .sl-timeline__item:nth-child(even) .sl-timeline__card {
        grid-column: 2;
    }

    .sl-timeline__item:nth-child(even) .sl-timeline__card::before {
        inset: 0 auto 0 0;
    }

    .sl-timeline__item:nth-child(even) .sl-timeline__card::after {
        right: -72px;
        left: auto;
    }
}

@media (max-width: 540px) {
    .sl-timeline { margin-inline: -.15rem; }
    .sl-timeline__legend { gap: .4rem .5rem; }
    .sl-timeline__legend span { font-size: .75rem; }
    .sl-timeline__card { padding: 1.05rem; border-radius: 17px; }
    .sl-timeline__tags { gap: .32rem; }
    .sl-timeline__tags li { font-size: .68rem; }
}

@media (prefers-reduced-motion: reduce) {
    .sl-timeline *,
    .sl-timeline *::before,
    .sl-timeline *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
