/* Milestones Page Styles */
.countdown-container {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 2rem;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    color: #fff;
}

.countdown-container h1 {
    font-size: 2.2rem;
    font-weight: 300;
    margin-bottom: 0.5rem;
    text-align: center;
}

.subtitle {
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    font-size: 1.1rem;
    font-weight: 300;
}

.milestone-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 2rem 0 3rem;
}

.countdown-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem 1rem;
    border-radius: 12px;
    text-align: center;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.countdown-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.countdown-number {
    font-size: 2.5rem;
    font-weight: 200;
    margin-bottom: 0.5rem;
    color: #fff;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

.countdown-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 400;
}

.milestones-section {
    margin-top: 3rem;
}

.milestones-section h2 {
    font-size: 1.8rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
    text-align: center;
    color: #fff;
    position: relative;
    padding-bottom: 1rem;
}

.milestones-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
}

.milestones-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.milestone-card {
    background: rgba(26, 26, 46, 0.6);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    transition: all 0.3s ease;
    border-left: 4px solid #ff4d8d;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    position: relative;
    padding-bottom: 3.5rem; /* Platz für die untere Leiste */
}

.milestone-card.achieved {
    background: rgba(46, 213, 115, 0.1);
    border-color: rgba(46, 213, 115, 0.2);
}

.milestone-card.upcoming {
    opacity: 0.7;
}

.milestone-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #ff6b6b;
}

.milestone-card.achieved .milestone-icon {
    color: #2ed573;
}

.milestone-title {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #fff;
}

.milestone-date {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    line-height: 1.4;
}

.days-ago,
.days-until {
    font-size: 0.8em;
    margin-left: 0.5rem;
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
}

.days-ago {
    color: #2ecc71;
}

.days-until {
    color: #f39c12;
}

.milestone-status {
    position: absolute;
    bottom: 1rem;
    right: 1.5rem;
    text-align: right;
    display: flex;
    gap: 0.8rem;
}

.achieved-badge {
    background: rgba(46, 204, 113, 0.15);
    color: #2ecc71;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border: 1px solid rgba(46, 204, 113, 0.3);
    white-space: nowrap;
    transition: all 0.2s ease;
}

.achieved-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(46, 204, 113, 0.2);
}

.days-left {
    background: rgba(243, 156, 18, 0.15);
    color: #f39c12;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border: 1px solid rgba(243, 156, 18, 0.3);
    white-space: nowrap;
    transition: all 0.2s ease;
}

.days-left:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(243, 156, 18, 0.2);
}

.achieved-badge i,
.days-left i {
    font-size: 0.9em;
}

.milestone-description {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 0.8rem;
    line-height: 1.5;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .milestone-stats {
        gap: 1rem;
    }
    
    .countdown-item {
        min-width: calc(33.333% - 1rem);
        padding: 1.2rem 0.5rem;
    }
    
    .countdown-number {
        font-size: 2rem;
    }
    
    .milestone-card {
        flex-direction: column;
        text-align: left;
        padding: 1.5rem;
        padding-bottom: 3.5rem;
    }
    
    .milestone-icon {
        margin: 0 0 1rem 0;
    }
    
    .milestone-status {
        position: absolute;
        bottom: 1rem;
        right: 1.5rem;
        width: auto;
        margin: 0;
        justify-content: flex-end;
    }
    
    .milestone-date {
        justify-content: flex-start;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .milestones-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
