/* Depotuebertrag Kosten Dauer - Modern Design */

/* Grid Layouts - Modern responsive design */
.factors-grid,
.duration-factors .factors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 320px));
    justify-content: center;
    max-width: 800px;
    margin: 2rem auto;
    gap: 1.5rem;
    padding: 0 1rem;
}

.tips-grid,
.preparation-grid,
.documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 300px));
    justify-content: center;
    max-width: 700px;
    margin: 2rem auto;
    gap: 1.5rem;
    padding: 0 1rem;
}

/* Card Styles - Modern and clean */
.factor-card,
.tip-item,
.document-card,
.cost-card,
.duration-card,
.guide-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    height: fit-content;
}

.factor-card:hover,
.tip-item:hover,
.document-card:hover,
.cost-card:hover,
.duration-card:hover,
.guide-card:hover {
    border-color: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.08);
}

/* Special card types */
.factor-card.fast {
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
    border-color: #bbf7d0;
}

.factor-card.slow {
    background: linear-gradient(135deg, #fef2f2 0%, #ffffff 100%);
    border-color: #fca5a5;
}

.factor-card.fast h4 {
    color: #166534;
}

.factor-card.slow h4 {
    color: #dc2626;
}

/* Card Content */
.factor-card h4,
.tip-item h4,
.document-card h4,
.cost-card h4,
.duration-card h4,
.guide-card h4 {
    color: #1f2937;
    margin-bottom: 0.75rem;
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.3;
}

.factor-card p,
.tip-item .tip-text p,
.document-card p,
.cost-card p,
.duration-card p,
.guide-card p {
    color: #4b5563;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Duration Overview - Modern container */
.duration-overview {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.duration-summary {
    background: linear-gradient(135deg, #fef3c7 0%, #ffffff 100%);
    border: 1px solid #f59e0b;
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.duration-summary h3 {
    color: #92400e;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.duration-summary p {
    color: #92400e;
    margin: 0;
    font-size: 1.125rem;
    line-height: 1.6;
}

/* Timeline Styling */
.timeline-process {
    background: white;
    border: none;
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.timeline-process:hover {
    box-shadow: 0 12px 40px rgba(59, 130, 246, 0.08);
}

.timeline-process h3 {
    color: #1f2937;
    margin-bottom: 2rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.process-timeline {
    position: relative;
    padding-left: 2rem;
    max-width: 700px;
    margin: 0 auto;
}

.process-timeline::before {
    content: '';
    position: absolute;
    left: 1.5rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e5e7eb;
}

.timeline-step {
    position: relative;
    margin-bottom: 2rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding-left: 2rem;
}

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

.step-number {
    position: absolute;
    left: -2rem;
    width: 3rem;
    height: 3rem;
    background: #3b82f6;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.125rem;
    z-index: 1;
    transition: all 0.3s ease;
    cursor: pointer;
}

.step-number:hover {
    background: #2563eb;
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
}

.step-content {
    flex: 1;
    background: #f8fafc;
    border-radius: 12px;
    padding: 1.5rem;
    position: relative;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.timeline-step:hover .step-content {
    background: #f1f5f9;
    border-color: #3b82f6;
    transform: translateX(4px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.1);
}

.step-content h4 {
    color: #1f2937;
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    text-align: left;
}

.step-content p {
    color: #4b5563;
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.5;
    text-align: left;
}

.step-duration {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #3b82f6;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.timeline-step:hover .step-duration {
    background: #2563eb;
    transform: scale(1.05);
}

/* Remove old container borders */
.duration-factors,
.preparation-guide,
.cost-overview,
.documents-section {
    border: none;
    background: transparent;
    padding: 0;
    margin: 2rem auto;
    max-width: 1200px;
}

/* Section Titles */
.guide-section h2 {
    color: #1f2937;
    font-size: 1.875rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.guide-section h3 {
    color: #374151;
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .factors-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 300px));
        max-width: 700px;
        gap: 1.25rem;
    }
    
    .tips-grid,
    .preparation-grid,
    .documents-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 280px));
        max-width: 600px;
        gap: 1.25rem;
    }
}

@media (max-width: 768px) {
    .factors-grid,
    .tips-grid,
    .preparation-grid,
    .documents-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 1.5rem auto;
        gap: 1rem;
        padding: 0 1rem;
    }
    
    .factor-card,
    .tip-item,
    .document-card,
    .cost-card,
    .duration-card,
    .guide-card {
        padding: 1.25rem;
    }
    
    .duration-summary {
        padding: 1.5rem;
        border-radius: 16px;
    }
    
    .timeline-process {
        padding: 1.5rem;
        border-radius: 16px;
    }
    
    .process-timeline {
        padding-left: 2rem;
    }
    
    .process-timeline::before {
        left: 1rem;
    }
    
    .timeline-step {
        padding-left: 1.5rem;
    }
    
    .step-number {
        left: -1.5rem;
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1rem;
    }
    
    .step-content {
        padding: 1.25rem;
    }
    
    .step-duration {
        position: static;
        display: inline-block;
        margin-top: 0.75rem;
    }
    
    .guide-section h2 {
        font-size: 1.5rem;
        padding: 0 1rem;
    }
    
    .guide-section h3 {
        font-size: 1.25rem;
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .duration-overview,
    .duration-factors,
    .preparation-guide,
    .cost-overview,
    .documents-section {
        padding: 0 0.75rem;
    }
    
    .duration-summary {
        padding: 1.25rem;
    }
    
    .timeline-process {
        padding: 1.25rem;
    }
} 