* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: #2c3e50;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

header {
    text-align: center;
    margin-bottom: 50px;
    animation: slideDown 0.8s ease-out;
}

header h1 {
    font-size: 2.5em;
    color: #1a3a52;
    margin-bottom: 10px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

header .subtitle {
    font-size: 1.1em;
    color: #34495e;
    font-style: italic;
    font-weight: 300;
}

.timeline-wrapper {
    position: relative;
    padding: 40px 20px;
}

.timeline {
    position: relative;
    padding: 20px 0;
}

/* Vertikale Timeline */
.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #3498db 0%, #2980b9 100%);
    border-radius: 2px;
    box-shadow: 0 0 20px rgba(52, 152, 219, 0.3);
}

.timeline-events {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.timeline-event {
    position: relative;
    width: 48%;
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.timeline-event:nth-child(odd) {
    margin-left: 0;
    margin-right: auto;
    text-align: right;
}

.timeline-event:nth-child(even) {
    margin-left: auto;
    margin-right: 0;
    text-align: left;
}

.timeline-event:nth-child(1) { animation-delay: 0.1s; }
.timeline-event:nth-child(2) { animation-delay: 0.2s; }
.timeline-event:nth-child(3) { animation-delay: 0.3s; }
.timeline-event:nth-child(4) { animation-delay: 0.4s; }
.timeline-event:nth-child(5) { animation-delay: 0.5s; }
.timeline-event:nth-child(6) { animation-delay: 0.6s; }
.timeline-event:nth-child(7) { animation-delay: 0.7s; }
.timeline-event:nth-child(8) { animation-delay: 0.8s; }
.timeline-event:nth-child(9) { animation-delay: 0.9s; }
.timeline-event:nth-child(10) { animation-delay: 1.0s; }
.timeline-event:nth-child(11) { animation-delay: 1.1s; }
.timeline-event:nth-child(12) { animation-delay: 1.2s; }
.timeline-event:nth-child(13) { animation-delay: 1.3s; }
.timeline-event:nth-child(14) { animation-delay: 1.4s; }
.timeline-event:nth-child(15) { animation-delay: 1.5s; }

.event-circle {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: white;
    border: 4px solid #3498db;
    border-radius: 50%;
    z-index: 10;
    box-shadow: 0 0 0 8px rgba(52, 152, 219, 0.1);
    transition: all 0.3s ease;
}

.timeline-event:hover .event-circle {
    width: 28px;
    height: 28px;
    border-color: #2980b9;
    box-shadow: 0 0 0 12px rgba(52, 152, 219, 0.2);
}

.event-content {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 4px solid #3498db;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.timeline-event:nth-child(odd) .event-content {
    margin-right: 40px;
}

.timeline-event:nth-child(even) .event-content {
    margin-left: 40px;
}

.event-content:hover {
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.25);
    transform: translateY(-5px);
    border-left-color: #2980b9;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.event-year {
    font-size: 1.6em;
    font-weight: 700;
    color: #3498db;
    margin-bottom: 8px;
}

.event-title {
    font-size: 1.2em;
    font-weight: 600;
    color: #1a3a52;
    margin-bottom: 10px;
    line-height: 1.4;
}

.event-description {
    font-size: 0.95em;
    color: #555;
    line-height: 1.6;
    margin-bottom: 10px;
    flex-grow: 1;
}

.event-cta {
    color: #3498db;
    font-weight: 600;
    font-size: 0.9em;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.3s ease;
}

.event-content:hover .event-cta {
    gap: 8px;
}

.event-cta::after {
    content: '→';
    transition: transform 0.3s ease;
}

.event-content:hover .event-cta::after {
    transform: translateX(3px);
}

/* Detail Panel */
.detail-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 40px;
    z-index: 1001;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
}

.detail-panel:not(.hidden) {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: auto;
}

.detail-panel.hidden {
    display: none;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.8em;
    cursor: pointer;
    color: #999;
    transition: color 0.3s ease;
    z-index: 1002;
}

.close-btn:hover {
    color: #333;
}

.detail-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1000;
}

.detail-overlay:not(.hidden) {
    opacity: 1;
    pointer-events: auto;
}

.detail-overlay.hidden {
    display: none;
}

.detail-content {
    position: relative;
}

.detail-year {
    font-size: 1.1em;
    color: #3498db;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.detail-panel h2 {
    font-size: 1.8em;
    color: #1a3a52;
    margin-bottom: 10px;
    font-weight: 700;
}

.detail-author {
    color: #666;
    font-size: 1em;
    margin-bottom: 20px;
    font-style: italic;
    border-bottom: 2px solid #ecf0f1;
    padding-bottom: 15px;
}

.detail-description {
    font-size: 1.05em;
    color: #333;
    line-height: 1.8;
    margin-bottom: 25px;
    background: #f8f9fa;
    padding: 15px;
    border-left: 4px solid #3498db;
    border-radius: 4px;
}

.detail-section {
    margin-bottom: 25px;
}

.detail-section h3 {
    font-size: 1.2em;
    color: #1a3a52;
    margin-bottom: 12px;
    font-weight: 600;
}

.detail-section p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 10px;
}

.detail-section ul {
    list-style: none;
    padding: 0;
}

.detail-section li {
    color: #555;
    line-height: 1.8;
    padding-left: 20px;
    position: relative;
    margin-bottom: 10px;
}

.detail-section li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #3498db;
    font-weight: bold;
}

/* Animationen */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.8em;
    }

    header .subtitle {
        font-size: 1em;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-event {
        width: 100%;
        margin-left: 0 !important;
        margin-right: 0 !important;
        text-align: left !important;
    }

    .event-circle {
        left: 20px;
    }

    .event-content {
        margin-left: 60px !important;
        margin-right: 0 !important;
    }

    .detail-panel {
        width: 95%;
        max-height: 90vh;
        padding: 30px 20px;
    }

    .detail-panel h2 {
        font-size: 1.4em;
    }

    .detail-year {
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.4em;
    }

    header .subtitle {
        font-size: 0.9em;
    }

    .event-title {
        font-size: 1em;
    }

    .event-description {
        font-size: 0.85em;
    }

    .timeline-wrapper {
        padding: 20px 10px;
    }
}

/* Scrollbar Styling */
.detail-panel::-webkit-scrollbar {
    width: 8px;
}

.detail-panel::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.detail-panel::-webkit-scrollbar-thumb {
    background: #3498db;
    border-radius: 10px;
}

.detail-panel::-webkit-scrollbar-thumb:hover {
    background: #2980b9;
}
