/* DocuSort Homepage - Features Section Styles */

/* =============================================
   FEATURES SECTION
   ============================================= */
.features {
    padding: 100px 0;
    background: var(--surface-color);
}

.features h2,
.section-title {
    text-align: center;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-subtitle {
    text-align: center;
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    overflow: hidden;
    padding: 2rem;
}

/* Responsive Features Grid für große Bildschirme */
@media (min-width: 1600px) {
    .features {
        padding: 120px 0;
    }
    
    .features h2,
    .section-title {
        font-size: 3.5rem;
    }
    
    .section-subtitle {
        font-size: 1.4rem;
        max-width: 700px;
        margin-bottom: 5rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
        gap: 2.5rem;
    }
    
    .feature-card {
        padding: 3rem;
    }
    
    .feature-icon {
        width: 80px;
        height: 80px;
    }
    
    .feature-icon i {
        font-size: 2.5rem;
    }
    
    .feature-card h3 {
        font-size: 1.75rem;
    }
    
    .feature-card p {
        font-size: 1.1rem;
    }
}

@media (min-width: 2000px) {
    .features {
        padding: 140px 0;
    }
    
    .features h2,
    .section-title {
        font-size: 4rem;
    }
    
    .section-subtitle {
        font-size: 1.5rem;
        max-width: 800px;
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
        gap: 3rem;
    }
    
    .feature-card {
        padding: 3.5rem;
    }
}

.feature-card {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    transition: var(--transition-slow);
    border: 1px solid var(--border-color);
    overflow: hidden;
    cursor: pointer;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: #2196F3;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(33, 150, 243, 0.3);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #2196F3, #1976D2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: var(--transition-normal);
}

.feature-card:nth-child(2n) .feature-icon {
    background: linear-gradient(135deg, #FF9800, #FF5926);
}

.feature-card:nth-child(3n) .feature-icon {
    background: linear-gradient(135deg, #404040, #282828);
}

.feature-card:nth-child(4n) .feature-icon {
    background: linear-gradient(135deg, #FFB852, #FF9800);
}

.feature-card:nth-child(5n) .feature-icon {
    background: linear-gradient(135deg, #2196F3, #42A5F5);
}

.feature-card:nth-child(6n) .feature-icon {
    background: linear-gradient(135deg, #FF5926, #FFB852);
}

.feature-icon i {
    font-size: 2rem;
    color: white;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* =============================================
   WORKFLOW SECTION
   ============================================= */
.workflow {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
}

.workflow h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.workflow .section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.workflow-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: nowrap;
    max-width: 1400px; /* Erweitert von 1200px */
    margin: 0 auto;
    overflow-x: hidden;
    padding: 3rem 0.5rem;
    overflow-y: hidden;
    width: 100%;
    box-sizing: border-box;
}

/* Responsive Workflow für große Bildschirme */
@media (min-width: 1600px) {
    .workflow {
        padding: 7rem 0;
    }
    
    .workflow h2 {
        font-size: 3rem;
    }
    
    .workflow .section-subtitle {
        font-size: 1.4rem;
        max-width: 700px;
        margin-bottom: 3rem;
    }
    
    .workflow-steps {
        max-width: 1600px;
        gap: 1.5rem;
        padding: 4rem 1rem;
    }
    
    .workflow-step {
        padding: 3rem 1.5rem;
        min-width: 220px;
        max-width: 250px;
        height: 400px;
    }
    
    .step-number {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .step-icon {
        width: 70px;
        height: 70px;
    }
    
    .workflow-step h3 {
        font-size: 1.4rem;
    }
    
    .workflow-step p {
        font-size: 1.1rem;
    }
}

@media (min-width: 2000px) {
    .workflow {
        padding: 8rem 0;
    }
    
    .workflow h2 {
        font-size: 3.5rem;
    }
    
    .workflow .section-subtitle {
        font-size: 1.5rem;
        max-width: 800px;
    }
    
    .workflow-steps {
        max-width: 1800px;
        gap: 2rem;
        padding: 5rem 1rem;
    }
    
    .workflow-step {
        padding: 3.5rem 2rem;
        min-width: 250px;
        max-width: 300px;
        height: 450px;
    }
    
    .step-icon {
        width: 80px;
        height: 80px;
    }
}

.workflow-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: white;
    padding: 2.5rem 1rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    position: relative;
    min-width: 180px;
    flex: 1;
    max-width: 275px;
    height: 400px;
    transition: var(--transition-slow);
    cursor: pointer;
    overflow: hidden;
}

.workflow-step:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 20px 40px rgba(33, 150, 243, 0.2);
    background: linear-gradient(135deg, white, #E3F2FD);
    border: 2px solid #2196F3;
}

.step-number {
    position: absolute;
    top: 0.5rem;
    left: 50%;
    transform: translateX(-50%);
    background: #2196F3;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.step-icon {
    background: linear-gradient(135deg, #2196F3, #1976D2);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1rem 0;
}

.step-icon i {
    font-size: 1.5rem;
    color: white;
}

.workflow-step h3 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    margin-top: auto;
}

.workflow-step p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-top: auto;
    margin-bottom: auto;
}

.workflow-arrow {
    color: #2196F3;
    font-size: 1.2rem;
    margin: 0 0.5rem;
    flex-shrink: 0;
}

.workflow-arrow .mobile-only {
    display: none;
}

.workflow-arrow .desktop-only {
    display: inline;
}

/* =============================================
   ADDITIONAL MODULES SECTION
   ============================================= */
.additional-modules {
    padding: 3.5rem 0;
    background: var(--background-color);
}

.additional-modules h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.additional-modules .section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 4rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    overflow: hidden;
    padding: 2rem;
}

.module-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: var(--transition-slow);
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.module-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: #2196F3;
}

.module-card.featured-module {
    border: 2px solid var(--accent-color);
    background: linear-gradient(135deg, #fff8e1, white);
}

.module-card.featured-module::before {
    content: "Beliebt";
    position: absolute;
    top: 0.5rem;
    right: 20px;
    background: var(--accent-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.module-icon {
    background: linear-gradient(135deg, #2196F3, #1976D2);
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.module-card:nth-child(2n) .module-icon {
    background: linear-gradient(135deg, #FF9800, #FF5926);
}

.module-card:nth-child(3n) .module-icon {
    background: linear-gradient(135deg, #404040, #282828);
}

.module-card:nth-child(4n) .module-icon {
    background: linear-gradient(135deg, #FFB852, #FF9800);
}

.module-icon i {
    font-size: 1.5rem;
    color: white;
}

.module-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.module-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

.modules-cta {
    text-align: center;
    background: var(--surface-color);
    padding: 2.5rem;
    border-radius: 16px;
    margin-top: 3rem;
}

.modules-cta p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.modules-cta i {
    color: var(--accent-color);
    margin-right: 0.5rem;
}

.modules-cta .btn-primary {
    background: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.3);
}

.modules-cta .btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.4);
}

/* =============================================
   RESPONSIVE DESIGN FOR FEATURES
   ============================================= */
@media (max-width: 768px) {
    .features h2,
    .workflow h2,
    .additional-modules h2 {
        font-size: 2rem;
        word-wrap: break-word;
    }

    .pricing-card {
        padding-top: 4.5rem!important;
    }

    .pricing-grid {
        gap: 3rem!important;
        padding: 1rem 1rem!important;
    }

    .features-grid,
    .modules-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 100%;
        overflow-x: hidden;
    }

    .feature-card,
    .module-card {
        max-width: 100%;
        box-sizing: border-box;
        padding: 1.5rem;
        margin: 0 auto;
    }

    .modules-grid {
        padding: 2.5rem 1rem;
    }

    .workflow-steps {
        flex-direction: column;
        align-items: center;
    }

    .workflow-arrow {
        margin: 1rem 0;
        font-size: 1.5rem;
    }

    .workflow-arrow .desktop-only {
        display: none;
    }

    .workflow-arrow .mobile-only {
        display: inline;
    }

    .workflow-step {
        max-width: 100%;
        width: 100%;
        text-align: center;
        align-items: center;
        justify-content: center;
        min-width: auto;
        height: auto;
        min-height: 300px;
        padding: 2rem 1.5rem;
        box-sizing: border-box;
    }

    .modules-cta {
        padding: 2rem 1rem;
        max-width: 100%;
        box-sizing: border-box;
    }
}

@media (max-width: 480px) {
    .workflow,
    .additional-modules {
        padding: 4rem 0;
    }

    .pricing-card {
        padding-top: 4.5rem!important;
    }

    .pricing-grid {
        gap: 3rem!important;
        padding: 1rem 1rem!important;
    }

    .workflow-step {
        padding: 1.5rem 1rem;
        min-height: 250px;
        max-width: 100%;
        box-sizing: border-box;
    }

    .module-card {
        padding: 1.5rem;
        max-width: 100%;
        box-sizing: border-box;
    }
}
