/**
 * Impressum Generator - Navigation Styles
 * Stile für die Navigation und den Schrittindikator
 * Version: 1.1.0
 */

/* Schritt-Indikator */
.step-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ddd;
}

.step {
    flex: 1;
    text-align: center;
    padding: 10px;
    background-color: #e0e0e0;
    border-radius: 4px;
    margin: 0 5px;
    font-weight: bold;
    color: #777;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.step:hover {
    background-color: #d0d0d0;
}

.step.active {
    background-color: #3498db;
    color: white;
}

/* Fortschrittsindikator */
.step.completed::after {
    content: "✓";
    position: absolute;
    top: 5px;
    right: 5px;
    color: #2ecc71;
    font-weight: bold;
    font-size: 12px;
}

/* Verbesserte Fokuszustände für Tastaturnavigation */
.step:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

.btn:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

input:focus,
textarea:focus,
select:focus {
    outline: 2px solid #3498db;
    border-color: #3498db;
}

/* Animationen für Schrittübergänge */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

.form-step.active {
    animation: fadeIn 0.3s forwards;
}

.form-step {
    opacity: 0;
    animation: fadeOut 0.3s forwards;
}

/* Verbesserte Visualisierung des aktiven Schritts */
.step.active {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* Fortschrittsleiste unter dem Schrittindikator */
.progress-container {
    height: 5px;
    width: 100%;
    background-color: #f0f0f0;
    margin-bottom: 20px;
    border-radius: 5px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background-color: #3498db;
    width: 0%;
    transition: width 0.3s ease;
}

/* Fortschrittsleiste für jeden Schritt */
.step-1 .progress-bar { width: 25%; }
.step-2 .progress-bar { width: 50%; }
.step-3 .progress-bar { width: 75%; }
.step-4 .progress-bar { width: 100%; }

/* Verbesserte Schritt-Nummerierung */
.step::before {
    content: attr(data-step);
    display: inline-block;
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    background-color: #999;
    color: white;
    border-radius: 50%;
    margin-right: 8px;
}

.step.active::before {
    background-color: #2980b9;
}

.step.completed::before {
    background-color: #27ae60;
}
