/* Zeitstrahl */
.timeline {
    position: relative;
    padding: 20px 0;
}

/* Zentrale Linie */
.timeline::before {
    content: '';
    position: absolute;
    width: 4px;
    background-color: #68bfbb;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    border-radius: 4px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
    margin-bottom: 30px;
}

/* Abwechselnde Items links/rechts */
.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    text-align: left;
}

/* Kreispunkte */
.timeline-item::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    background-color: #68bfbb;
    border: 4px solid #fff;
    border-radius: 50%;
    top: 15px;
    z-index: 1;
    box-shadow: 0 0 0 4px rgba(104, 191, 187, 0.2);
}

.timeline-item:nth-child(odd)::after {
    right: -13px;
}

.timeline-item:nth-child(even)::after {
    left: -13px;
}

.timeline-content {
    padding: 20px 30px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.timeline-content:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: 20px;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 20px;
}

.timeline-content h3 {
    margin-top: 0;
    color: #009a93;
    font-size: 22px;
}

.timeline-content p {
    margin-bottom: 0;
    line-height: 1.6;
}

/* Animation für Timeline-Items */
.timeline-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design für mobile Geräte */
@media screen and (max-width: 768px) {
    .timeline::before {
        left: 31px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        left: 0;
        text-align: left;
    }
    
    .timeline-item:nth-child(odd)::after,
    .timeline-item:nth-child(even)::after {
        left: 18px;
    }
    
    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        margin-right: 0;
        margin-left: 0;
    }
}

/* Zusätzliche Anpassungen für sehr kleine Bildschirme */
@media screen and (max-width: 480px) {
    .timeline-item {
        padding-left: 60px;
        padding-right: 15px;
    }
    
    .timeline-content {
        padding: 15px;
    }
}