/* ============================================
   Milestones.css - Meilenstein Timeline
   ============================================ */

:root {
    --primary-color: #2962ff;
    --primary-light: #768fff;
    --primary-dark: #0039cb;
    --secondary-color: #303F9F;
    --accent-color: #00BFA5;
    --success-color: #10b981;
    --warning-color: #fbbf24;
    --info-color: #3b82f6;
    --muted-color: #78909C;
    --background-color: #f8f9fa;
    --card-background-color: #fff;
    --text-color: #37474F;
    --header-color: #263238;
    --light-text: #eceff1;
    --shadow-sm: 0 2px 5px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.15);
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-xxl: 64px;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

/* Hero Section */
.milestones-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: var(--spacing-xxl) 0;
    position: relative;
    overflow: hidden;
    min-height: 350px;
    display: flex;
    align-items: center;
}

.milestones-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 80%, rgba(255,255,255,0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255,255,255,0.05) 0%, transparent 50%);
    opacity: 0.6;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-icon {
    font-size: 4rem;
    margin-bottom: var(--spacing-lg);
    animation: float 3s ease-in-out infinite;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    animation: fadeInUp 0.8s ease-out;
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* Stats Section */
.milestones-stats {
    background: white;
    padding: var(--spacing-xl) 0;
    margin-top: calc(-1 * var(--spacing-xl));
    position: relative;
    z-index: 10;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
    max-width: 900px;
    margin: 0 auto;
}

.stat-card {
    background: linear-gradient(135deg, #fafbfc 0%, #f8fafc 100%);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid #f1f5f9;
    transition: all var(--transition-normal);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: var(--spacing-xs);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--muted-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Timeline Section */
.timeline-section {
    background: var(--background-color);
    padding: var(--spacing-xxl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xxl);
}

.section-title {
    font-size: 2.5rem;
    color: var(--header-color);
    margin-bottom: var(--spacing-md);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--muted-color);
    max-width: 700px;
    margin: 0 auto;
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: var(--spacing-lg) 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--primary-color), var(--accent-color));
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    margin-bottom: var(--spacing-xxl);
    position: relative;
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
}

.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.2s; }
.timeline-item:nth-child(3) { animation-delay: 0.3s; }
.timeline-item:nth-child(4) { animation-delay: 0.4s; }
.timeline-item:nth-child(5) { animation-delay: 0.5s; }
.timeline-item:nth-child(6) { animation-delay: 0.6s; }
.timeline-item:nth-child(7) { animation-delay: 0.7s; }
.timeline-item:nth-child(8) { animation-delay: 0.8s; }

.timeline-content {
    flex: 1;
    background: white;
    padding: var(--spacing-xl);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid #f1f5f9;
    position: relative;
    transition: all var(--transition-normal);
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: calc(50% + var(--spacing-xl) + 20px);
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: calc(50% + var(--spacing-xl) + 20px);
}

.timeline-content:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-md);
}

.timeline-marker {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    z-index: 10;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
}

.timeline-marker.completed {
    background: linear-gradient(135deg, var(--success-color), #34d399);
    color: white;
}

.timeline-marker.active {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    animation: pulse 2s infinite;
}

.timeline-item:hover .timeline-marker {
    transform: translateX(-50%) scale(1.1);
}

.milestone-date {
    font-size: 0.875rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.milestone-title {
    font-size: 1.5rem;
    color: var(--header-color);
    margin-bottom: var(--spacing-md);
    font-weight: 700;
}

.milestone-description {
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
}

.milestone-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.milestone-tag {
    background: linear-gradient(135deg, rgba(41, 98, 255, 0.1), rgba(0, 191, 165, 0.1));
    color: var(--primary-color);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--border-radius);
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid rgba(41, 98, 255, 0.2);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #3f51b5 100%);
    padding: var(--spacing-xxl) 0;
    color: white;
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-lg);
}

.cta-title {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
}

.cta-subtitle {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: var(--spacing-xl);
}

.cta-buttons {
    display: flex;
    gap: var(--spacing-lg);
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-md) var(--spacing-xl);
    border-radius: var(--border-radius);
    font-weight: 600;
    text-decoration: none;
    font-size: 1rem;
    transition: all var(--transition-fast);
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: white;
    color: var(--primary-color);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(255, 255, 255, 0.3);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-outline:hover {
    background: white;
    color: var(--primary-color);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(41, 98, 255, 0.7);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(41, 98, 255, 0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .timeline::before {
        left: 30px;
    }

    .timeline-item,
    .timeline-item:nth-child(odd) {
        flex-direction: row;
    }

    .timeline-content,
    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        margin-left: 70px;
        margin-right: 0;
    }

    .timeline-marker {
        left: 30px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 2rem;
    }

    .milestone-title {
        font-size: 1.25rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .timeline-content {
        padding: var(--spacing-md);
    }

    .container {
        padding: 0 var(--spacing-md);
    }
}
