/**
 * Wedding Workflow - Roter Faden
 * Zickzack Timeline Styles
 * Version: 1.0.0
 */

:root {
    --red-thread: #DDAF3A;
    --red-thread-light: #E6C35B;
    --premium-gold: #B8860B;
    --aqua-gray: #708090;
    --text-dark: #2c3e50;
    --text-light: #ffffff;
    --bg-light: #f8f9fa;
    --shadow: 0 4px 20px rgba(221, 175, 58, 0.15);
    --shadow-hover: 0 8px 30px rgba(221, 175, 58, 0.25);
}

/* Container */
.wedding-workflow-container {
    max-width: 900px;
    margin: 60px auto;
    padding: 0 20px;
    position: relative;
}

/* Timeline - Der rote Faden (links positioniert) */
.workflow-timeline {
    position: relative;
    padding: 40px 0 40px 60px;
}

/* Der zentrale rote Faden (vertikale Linie - links) */
.workflow-timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 60px;
    bottom: 0;
    width: 4px;
    background: linear-gradient(
        to bottom,
        var(--red-thread) 0%,
        var(--red-thread-light) 50%,
        var(--red-thread) 100%
    );
    z-index: 1;
    box-shadow: 0 0 10px rgba(221, 175, 58, 0.3);
}

/* Einzelner Workflow-Schritt - Treppen-Style */
.workflow-step {
    position: relative;
    margin-bottom: 40px;
    display: flex;
    align-items: flex-start;
    padding-left: 0;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

/* Animation für Schritte */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Verzögerte Animation für jeden Schritt */
.workflow-step:nth-child(1) { animation-delay: 0.1s; }
.workflow-step:nth-child(2) { animation-delay: 0.2s; }
.workflow-step:nth-child(3) { animation-delay: 0.3s; }
.workflow-step:nth-child(4) { animation-delay: 0.4s; }
.workflow-step:nth-child(5) { animation-delay: 0.5s; }
.workflow-step:nth-child(6) { animation-delay: 0.6s; }
.workflow-step:nth-child(7) { animation-delay: 0.7s; }
.workflow-step:nth-child(8) { animation-delay: 0.8s; }
.workflow-step:nth-child(9) { animation-delay: 0.9s; }
.workflow-step:nth-child(10) { animation-delay: 1.0s; }
.workflow-step:nth-child(11) { animation-delay: 1.1s; }

/* Alle Schritte links angeordnet */
.workflow-step-left,
.workflow-step-right {
    justify-content: flex-start;
    padding-left: 0;
}

.workflow-step-left .workflow-step-content,
.workflow-step-right .workflow-step-content {
    text-align: left;
}

/* Marker am roten Faden - EINFACHE KREISE ÜBER der Linie */
.workflow-step-marker {
    position: absolute;
    left: 30px;
    top: -20px;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--red-thread) 0%, var(--red-thread-light) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 5px 20px rgba(221, 175, 58, 0.5), 
        0 0 25px rgba(221, 175, 58, 0.4);
    z-index: 10;
    transition: all 0.3s ease;
    border: 4px solid rgba(255, 255, 255, 0.4);
}

.workflow-step-marker:hover {
    transform: translateX(-50%) scale(1.15) translateY(-5px);
    box-shadow: 
        0 8px 30px rgba(221, 175, 58, 0.7), 
        0 0 35px rgba(221, 175, 58, 0.6);
}

.workflow-step-marker .step-number {
    font-size: 26px;
    font-weight: 800;
    color: var(--text-light);
    font-family: 'Arial', sans-serif;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
}

/* Content Box - Treppen-Style */
.workflow-step-content {
    background: #ffffff;
    border-radius: 12px;
    padding: 25px 30px;
    box-shadow: var(--shadow);
    max-width: 100%;
    width: 100%;
    margin-left: 50px;
    transition: all 0.3s ease;
    position: relative;
    border: 2px solid transparent;
    border-left: 4px solid var(--red-thread);
}

.workflow-step-content:hover {
    box-shadow: var(--shadow-hover);
    border-left-color: var(--premium-gold);
    transform: translateX(10px);
}

/* Pfeil vom Marker zur Box */
.workflow-step-left .workflow-step-content::before,
.workflow-step-right .workflow-step-content::before {
    content: '';
    position: absolute;
    left: -30px;
    top: 15px;
    width: 30px;
    height: 2px;
    background: var(--red-thread);
    z-index: 0;
}

/* Entferne alte Pfeile */
.workflow-step-left .workflow-step-content::after,
.workflow-step-right .workflow-step-content::after {
    display: none;
}

/* Header mit Titel (Icons entfernt) */
.workflow-step-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    justify-content: flex-start;
}

.workflow-step-left .workflow-step-header,
.workflow-step-right .workflow-step-header {
    justify-content: flex-start;
}

/* Icons ausblenden */
.step-icon {
    display: none;
}

.step-title {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: var(--red-thread);
    line-height: 1.3;
}

/* Dauer-Banner ausblenden */
.step-duration {
    display: none;
}

/* Beschreibung */
.step-description {
    color: var(--text-dark);
    line-height: 1.7;
    font-size: 16px;
    margin-bottom: 15px;
}

.step-description p:last-child {
    margin-bottom: 0;
}

/* Highlight Box */
.step-highlight {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe8e8 100%);
    border-left: 4px solid var(--red-thread);
    padding: 15px 20px;
    border-radius: 8px;
    margin-top: 15px;
}

.step-highlight p {
    margin: 0 0 8px 0;
    color: var(--text-dark);
    font-size: 14px;
    line-height: 1.6;
}

.step-highlight p:last-child {
    margin-bottom: 0;
}

.step-highlight ul {
    margin: 0;
    padding-left: 20px;
}

.step-highlight li {
    margin-bottom: 5px;
    color: var(--text-dark);
}

/* Responsive Design */
@media (max-width: 992px) {
    .workflow-timeline {
        padding-left: 50px;
    }
    
    .workflow-timeline::before {
        left: 25px;
    }
    
    .workflow-step-marker {
        left: 25px;
        width: 50px;
        height: 50px;
    }
    
    .workflow-step-marker .step-number {
        font-size: 20px;
    }
    
    .workflow-step-content {
        margin-left: 40px;
    }
}

@media (max-width: 768px) {
    .wedding-workflow-container {
        padding: 0 15px;
    }
    
    .workflow-timeline {
        padding: 20px 0 20px 40px;
    }
    
    .workflow-timeline::before {
        left: 20px;
        width: 3px;
    }
    
    .workflow-step {
        margin-bottom: 35px;
    }
    
    .workflow-step-marker {
        left: 20px;
        width: 45px;
        height: 45px;
        top: -15px;
    }
    
    .workflow-step-marker .step-number {
        font-size: 18px;
    }
    
    .workflow-step-content {
        padding: 20px;
        margin-left: 35px;
    }
    
    .step-title {
        font-size: 18px;
    }
    
    .step-description {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .workflow-timeline {
        padding-left: 35px;
    }
    
    .workflow-timeline::before {
        left: 15px;
    }
    
    .workflow-step {
        margin-bottom: 30px;
    }
    
    .workflow-step-marker {
        left: 15px;
        width: 40px;
        height: 40px;
    }
    
    .workflow-step-marker .step-number {
        font-size: 16px;
    }
    
    .workflow-step-content {
        padding: 15px;
        margin-left: 30px;
    }
    
    .step-title {
        font-size: 16px;
    }
    
    .step-description {
        font-size: 14px;
    }
    
    .workflow-step-content::before {
        width: 20px;
        left: -20px;
    }
}

/* Print Styles */
@media print {
    .workflow-timeline::before {
        background: var(--red-thread) !important;
    }
    
    .workflow-step-marker {
        background: var(--red-thread) !important;
        box-shadow: none;
    }
    
    .workflow-step-content {
        box-shadow: none;
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }
    
    .workflow-step {
        page-break-inside: avoid;
    }
}
