/**
 * Progress Tracker Styles
 * Visueller Fortschrittsindikator für mehrstufigen Prozess
 */

/* ================================
   Progress Wrapper
   ================================ */
.progress-wrapper {
    position: sticky;
    top: 70px; /* Unterhalb des Headers */
    background: var(--color-surface, #ffffff);
    padding: 1rem 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 999;
    border-bottom: 1px solid var(--color-border, #e0e0e0);
}

/* ================================
   Progress Bar
   ================================ */
.progress-bar-container {
    width: 100%;
    height: 6px;
    background: var(--color-border, #e0e0e0);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg,
        var(--color-primary, #C41E68) 0%,
        var(--color-primary-light, #E84E1B) 50%,
        var(--color-accent, #F5A623) 100%
    );
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 3px;
}

/* ================================
   Progress Steps
   ================================ */
.progress-steps {
    display: flex;
    justify-content: space-between;
    list-style: none;
    padding: 0;
    margin: 0 0 0.5rem 0;
    position: relative;
}

/* Verbindungslinie zwischen Steps */
.progress-steps::before {
    content: '';
    position: absolute;
    top: 16px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--color-border, #e0e0e0);
    z-index: 0;
}

/* ================================
   Individual Steps
   ================================ */
.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    cursor: default;
    opacity: 0.5;
    transition: opacity 0.3s, transform 0.2s;
    position: relative;
    z-index: 1;
    background: var(--color-surface, #ffffff);
    padding: 0 0.5rem;
}

.step.active,
.step.completed {
    opacity: 1;
}

.step.completed {
    cursor: pointer;
}

.step.completed:hover {
    transform: scale(1.05);
}

.step.completed:hover .step-number {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* ================================
   Step Number
   ================================ */
.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--color-surface, #ffffff);
    border: 2px solid var(--color-border, #e0e0e0);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s;
    color: var(--color-text-light, #666);
}

.step.active .step-number {
    background: var(--color-primary, #C41E68);
    border-color: var(--color-primary, #C41E68);
    color: white;
    box-shadow: 0 0 0 4px rgba(196, 30, 104, 0.2);
}

.step.completed .step-number {
    background: var(--color-success, #2D7D46);
    border-color: var(--color-success, #2D7D46);
    color: white;
}

/* Checkmark für completed */
.step.completed .step-number::after {
    content: '✓';
    font-size: 1rem;
}

.step.completed .step-number {
    font-size: 0; /* Verstecke die Nummer */
}

/* ================================
   Step Label
   ================================ */
.step-label {
    font-size: 0.75rem;
    color: var(--color-text-light, #666);
    text-align: center;
    transition: color 0.3s;
    white-space: nowrap;
}

.step.active .step-label {
    color: var(--color-primary, #C41E68);
    font-weight: 600;
}

.step.completed .step-label {
    color: var(--color-success, #2D7D46);
}

/* ================================
   Progress Text
   ================================ */
.progress-text {
    text-align: center;
    font-size: 0.875rem;
    color: var(--color-text-light, #666);
    font-weight: 500;
}

/* ================================
   Responsive Design
   ================================ */
@media (max-width: 768px) {
    .progress-wrapper {
        padding: 0.75rem 1rem;
        top: 60px;
    }

    .step-label {
        display: none;
    }

    .step-number {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }

    .progress-steps::before {
        top: 14px;
    }
}

@media (max-width: 480px) {
    .progress-wrapper {
        padding: 0.5rem;
    }

    .progress-steps {
        justify-content: space-around;
    }

    .step-number {
        width: 24px;
        height: 24px;
        font-size: 0.7rem;
    }

    .progress-text {
        font-size: 0.75rem;
    }

    .progress-steps::before {
        top: 12px;
    }
}

/* ================================
   Accessibility
   ================================ */
.step:focus-visible {
    outline: 3px solid var(--color-accent, #F5A623);
    outline-offset: 4px;
    border-radius: 4px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .progress-bar-fill,
    .step,
    .step-number {
        transition: none;
    }
}

/* High Contrast */
@media (prefers-contrast: high) {
    .step-number {
        border-width: 3px;
    }

    .step.active .step-number,
    .step.completed .step-number {
        border-color: #000000;
    }
}
