/* ================================================================
   CHRONIK – Timeline
   ================================================================ */

/* ── Header ── */
.chronik-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 3.5rem 0 1.5rem;
    position: relative;
}
.chronik-header__title {
    color: #fff;
    font-weight: 800;
    font-size: 2.4rem;
    margin-bottom: 0.25rem;
}
.chronik-header__subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.05rem;
    margin-bottom: 0;
}

/* ── Timeline ── */
.timeline-section {
    padding: 3rem 0;
}
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, #e2e8f0 0%, #e2e8f0 85%, transparent 100%);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 0 2.5rem 2.5rem 0;
    box-sizing: border-box;
}

/* Odd items: left side */
.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
    padding-right: 2.5rem;
    padding-left: 0;
}

/* Even items: right side */
.timeline-item:nth-child(even) {
    left: 50%;
    text-align: left;
    padding-left: 2.5rem;
    padding-right: 0;
}

/* Dot */
.timeline-item__dot {
    position: absolute;
    top: 0.3rem;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--highlight-color);
    border: 3px solid var(--bg-light);
    box-shadow: 0 0 0 2px var(--highlight-color);
    z-index: 2;
}
.timeline-item:nth-child(odd) .timeline-item__dot {
    right: -7px;
}
.timeline-item:nth-child(even) .timeline-item__dot {
    left: -7px;
}
.timeline-item--highlight .timeline-item__dot {
    width: 18px;
    height: 18px;
    background: #f6ad55;
    box-shadow: 0 0 0 3px #f6ad55;
}
.timeline-item--highlight:nth-child(odd) .timeline-item__dot {
    right: -9px;
}
.timeline-item--highlight:nth-child(even) .timeline-item__dot {
    left: -9px;
}

.timeline-item__year {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--highlight-color);
    line-height: 1;
    margin-bottom: 0.35rem;
}
.timeline-item--highlight .timeline-item__year {
    color: #dd6b20;
}
.timeline-item__title {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}
.timeline-item__text {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 0;
}

/* ── Scroll Animation ── */
.timeline-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.timeline-item:nth-child(odd) {
    transform: translateX(-30px);
}
.timeline-item:nth-child(even) {
    transform: translateX(30px);
}
.timeline-item.visible {
    opacity: 1;
    transform: translateX(0) translateY(0);
}

/* ── Mobile ── */
@media (max-width: 767px) {
    .chronik-header__title {
        font-size: 1.8rem;
    }
    .timeline::before {
        left: 20px;
    }
    .timeline-item,
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        width: 100%;
        left: 0;
        text-align: left;
        padding-left: 3rem;
        padding-right: 0;
    }
    .timeline-item__dot,
    .timeline-item:nth-child(odd) .timeline-item__dot,
    .timeline-item:nth-child(even) .timeline-item__dot,
    .timeline-item--highlight:nth-child(odd) .timeline-item__dot,
    .timeline-item--highlight:nth-child(even) .timeline-item__dot {
        left: 13px;
        right: auto;
    }
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        transform: translateY(30px);
    }
}
