/* ==========================================================================
   1. TIMELINE SECTION: Core Layout
   ========================================================================== */

.timeline-section {
    background-color: #ffffff;
    position: relative;
    height: auto; /* File Priority: auto */
    overflow: visible; /* File Priority: visible */
    padding-bottom: 50px;
}

.timeline-section .section-title {
    text-align: center;
    font-family: 'Inter', Helvetica, sans-serif;
    font-size: 2.5rem;
    font-weight: 600;
    color: #2E2E2E;
    padding: 2rem 0;
    margin: 0;
    position: relative;
    z-index: 10;
}

.timeline-section .section-title::after {
    content: '';
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, #0056b3, #003366);
    border-radius: 2px;
}

.timeline-container {
    height: auto;
    position: relative;
    overflow-y: visible;
    scrollbar-width: none;
    -ms-overflow-style: none;
    margin-bottom: 3rem;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.timeline-container::-webkit-scrollbar {
    display: none;
}

/* (Removed: Timeline filtering system — not used by ueber-uns.html) */

/* ==========================================================================
   3. STICKY NAVIGATION (DOTS)
   ========================================================================== */

.timeline-navigation {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: flex !important;
    flex-direction: column;
    gap: 15px;
    opacity: 1 !important;
    visibility: visible !important;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.timeline-navigation.hidden {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none;
}

.timeline-nav-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: #2192cd;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.timeline-nav-dot::before {
    content: attr(data-year);
    position: absolute;
    right: 30px;
    font-size: 0.9rem;
    color: rgba(46, 46, 46, 0.8);
    white-space: nowrap;
    transition: all 0.3s ease;
    font-weight: 500;
}

.timeline-nav-dot:hover {
    background-color: #1a7ba9;
    transform: scale(1.3);
}

.timeline-nav-dot:hover::before {
    color: rgba(46, 46, 46, 1);
    font-weight: 600;
}

.timeline-nav-dot.active {
    background-color: #2192cd;
    transform: scale(1.4);
    box-shadow: 0 0 0 4px rgba(33, 146, 205, 0.3);
}

.timeline-nav-dot.active::before {
    color: #2192cd;
    font-weight: 700;
}

/* ==========================================================================
   4. TIMELINE SLIDE & COLUMN WRAPPER
   ========================================================================== */

.timeline-slide {
    min-height: auto;
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 2rem 5%;
    overflow: visible;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.timeline-slide.active {
    opacity: 1;
    transform: translateY(0);
}

.timeline-content-wrapper {
    display: flex;
    width: 100%;
    min-height: auto;
    position: relative;
    z-index: 2;
    margin-top: 0.5rem;
    gap: 2rem;
    padding-left: 1rem;
}

/* Two Column Split - File Priority: 60/40 */
.timeline-main-content {
    width: 60%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 2rem;
}

.timeline-side-content {
    width: 40%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Year Indicator */
.timeline-year {
    position: relative;
    top: 0;
    left: 0;
    font-size: 4rem;
    font-weight: 800;
    color: rgba(0, 0, 0, 0.25);
    z-index: 2;
    line-height: 0.9;
    margin-bottom: 0.2rem;
    text-align: left;
    letter-spacing: -2px;
    pointer-events: none;
    font-family: 'Inter', Helvetica, sans-serif;
    display: inline-block;
    padding-right: 1rem;
    border-right: 3px solid rgba(0, 86, 179, 0.5);
    opacity: 0.8 !important;
}

/* ==========================================================================
   5. TYPOGRAPHY & TEXT CONTENT
   ========================================================================== */

.timeline-title {
    font-family: 'Inter', Helvetica, sans-serif;
    font-size: 2.8rem;
    font-weight: 700;
    color: #2E2E2E;
    margin-top: 0.3rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
    text-align: left;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.timeline-slide.active .timeline-title {
    opacity: 1;
    transform: translateY(0);
}

.timeline-text {
    font-family: 'Inter', Helvetica, sans-serif;
    font-size: 1.2rem;
    line-height: 1.8;
    color: #2E2E2E;
    margin-bottom: 3rem;
    max-width: 90%;
    position: relative;
    z-index: 1;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease 0.2s, transform 0.8s ease 0.2s;
}

.timeline-slide.active .timeline-text {
    opacity: 1;
    transform: translateY(0);
}

/* (Removed: .highlight helpers — not used by ueber-uns.html) */

/* ==========================================================================
   6. VISUAL MEDIA (Gallery)
   ========================================================================== */
.timeline-gallery {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.2s ease 0.4s, transform 1.2s ease 0.4s;
}

.timeline-slide.active .timeline-gallery {
    opacity: 1;
    transform: translateY(0);
}

.timeline-gallery-item {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    position: relative;
    height: 240px;
    width: 450px;
    transition: box-shadow 0.5s ease, transform 0.5s ease;
}

.timeline-gallery-item:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.timeline-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.timeline-gallery-item:hover img {
    transform: scale(1.05);
}

/* (Removed: Interactive next teaser — not used by ueber-uns.html) */

/* (Removed: Unused keyframe animations and helper classes) */

/* ==========================================================================
   9. RESPONSIVE DESIGN (File Priority)
   ========================================================================== */

@media (max-width: 992px) {
    .timeline-content-wrapper { flex-direction: column; height: auto; gap: 2rem; }
    .timeline-main-content, .timeline-side-content { width: 100%; }
    .timeline-side-content { margin-top: 1rem; }

    .timeline-gallery { flex-direction: row; flex-wrap: wrap; }
    .timeline-gallery-item { width: calc(50% - 0.75rem); height: 180px; }
}

@media (max-width: 768px) {
    .timeline-slide { padding: 0 3%; }
    .timeline-year { font-size: 4rem; margin-bottom: 1rem; }
    .timeline-title { font-size: 2.2rem; }
    .timeline-text { font-size: 1rem; line-height: 1.6; }
    .timeline-navigation { right: 5px; }
    .timeline-nav-dot { width: 8px; height: 8px; }

    /* 2015 Logo Tweak */
    .timeline-slide[data-year="2015"] .timeline-gallery .timeline-gallery-item:first-child img {
        width: 70%;
    }
}

/* Specific Tweak for 2015 Castrol Logo from File */
.timeline-slide[data-year="2015"] .timeline-gallery .timeline-gallery-item:first-child {
    display: flex;
    align-items: center;
    justify-content: center;
}
.timeline-slide[data-year="2015"] .timeline-gallery .timeline-gallery-item:first-child img {
    width: 80%;
    height: auto;
    display: block;
    margin: 0 auto;
}