/* Journey Timeline CSS for "Unser Weg" */
#slide-4 {
    overflow: hidden;
    height: 100vh;
}

#slide-4 .content {
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 30px 60px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header Section - Kompakter */
.journey-header {
    text-align: center;
    margin-bottom: 15px;
}

.journey-title {
    font-size: 44px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.journey-intro {
    font-size: 16px;
    color: var(--text-secondary);
    font-style: italic;
    max-width: 700px;
    margin: 0 auto;
}

/* Timeline Container */
.journey-timeline {
    flex: 1;
    position: relative;
    padding: 10px 0;
    overflow: hidden;
}

/* Central Timeline Line */
.timeline-track {
    position: absolute;
    left: 50%;
    top: 40px;
    bottom: 40px;
    width: 4px;
    background: var(--artemed-lightblue);
    transform: translateX(-50%);
}

/* Milestones Container */
.milestones {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    z-index: 2;
    height: 100%;
    justify-content: space-evenly;
    padding: 10px 0;
}

/* Individual Milestone */
.milestone {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
    opacity: 0;
    animation: fadeInMilestone 0.8s ease forwards;
    flex-shrink: 0;
    padding: 0 20px;
}

.milestone:nth-child(1) { animation-delay: 0.1s; }
.milestone:nth-child(2) { animation-delay: 0.2s; }
.milestone:nth-child(3) { animation-delay: 0.3s; }
.milestone:nth-child(4) { animation-delay: 0.4s; }
.milestone:nth-child(5) { animation-delay: 0.5s; }
.milestone:nth-child(6) { animation-delay: 0.6s; }

/* Milestone Content - Alternating Sides */
.milestone-content {
    background: white;
    border-radius: 10px;
    padding: 14px 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    min-width: 0;
    max-width: 400px;
}

.milestone:nth-child(odd) .milestone-content:first-child {
    text-align: right;
    margin-left: auto;
}

.milestone:nth-child(even) .milestone-content:last-child {
    text-align: left;
    margin-right: auto;
}

.milestone:nth-child(even) .milestone-content:first-child {
    opacity: 0;
    pointer-events: none;
}

.milestone:nth-child(odd) .milestone-content:last-child {
    opacity: 0;
    pointer-events: none;
}

.milestone-content:hover {
    transform: scale(1.02);
    border-color: var(--artemed-blue);
    box-shadow: 0 8px 30px rgba(123, 167, 204, 0.2);
}

/* Milestone Date */
.milestone-date {
    font-size: 12px;
    font-weight: 600;
    color: var(--artemed-blue);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

/* Milestone Title */
.milestone-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 3px;
}

/* Milestone Description */
.milestone-description {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.25;
}

/* Center Dot */
.milestone-dot {
    width: 20px;
    height: 20px;
    background: var(--artemed-lightblue);
    border: 3px solid var(--artemed-lightblue);
    border-radius: 50%;
    position: relative;
    z-index: 3;
    flex-shrink: 0;
}

.milestone:hover .milestone-dot {
    /* Removed hover effect for consistent visibility */
}

/* Milestone Icons - Entfernt */
.milestone-icon {
    display: none;
}

/* Project Type Tags */
.project-type {
    display: inline-block;
    font-size: 10px;
    padding: 3px 8px;
    background: rgba(123, 167, 204, 0.1);
    color: var(--artemed-blue);
    border-radius: 10px;
    margin-top: 4px;
    font-weight: 600;
}

/* Animations */
@keyframes fadeInMilestone {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Progress Animation on Timeline */
.timeline-progress {
    position: absolute;
    left: 50%;
    top: 0;
    width: 4px;
    height: 0%;
    background: var(--artemed-blue);
    transform: translateX(-50%);
    animation: growProgress 3s ease-out forwards;
    animation-delay: 0.5s;
}

@keyframes growProgress {
    to {
        height: 100%;
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .milestone {
        grid-template-columns: auto 1fr;
        gap: 30px;
    }
    
    .timeline-track {
        left: 40px;
    }
    
    .milestone-dot {
        margin-left: 24px;
    }
    
    .milestone:nth-child(even) .milestone-content:first-child,
    .milestone:nth-child(odd) .milestone-content:last-child {
        display: none;
    }
    
    .milestone:nth-child(even) .milestone-content:last-child,
    .milestone:nth-child(odd) .milestone-content:first-child {
        opacity: 1;
        pointer-events: auto;
        text-align: left;
    }
}

/* Fullscreen Optimization - Aggressivere Anpassungen */
@media (max-height: 900px) {
    #slide-4 .content {
        padding: 30px 25px;
    }
    
    .journey-title {
        font-size: 40px;
        margin-bottom: 8px;
    }
    
    .journey-intro {
        font-size: 16px;
        margin-bottom: 15px;
    }
    
    .journey-header {
        margin-bottom: 15px;
    }
    
    .milestone-content {
        padding: 12px;
    }
    
    .milestone-dot {
        width: 20px;
        height: 20px;
    }
}

@media (max-height: 800px) {
    .milestone-title {
        font-size: 14px;
    }
    
    .milestone-description {
        font-size: 12px;
    }
    
    .milestones {
        gap: 10px;
    }
    
    .milestone {
        gap: 20px;
    }
}

@media (max-height: 700px) {
    .journey-title {
        font-size: 32px;
    }
    
        
    .project-type {
        display: none;
    }
    
    .milestone-description {
        display: none;
    }
    
    .milestone-content {
        padding: 8px;
    }
}