/* Spachtelarbeiten Page Enhancements */

/* Before/After Section */
.before-after-section {
    padding: var(--spacing-3xl) 0;
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 50%, #f0f4ff 100%);
    position: relative;
}

.before-after-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(0,122,255,0.02)"/><circle cx="75" cy="75" r="1" fill="rgba(0,122,255,0.02)"/><circle cx="50" cy="10" r="0.5" fill="rgba(0,122,255,0.01)"/><circle cx="20" cy="80" r="0.5" fill="rgba(0,122,255,0.01)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>') repeat;
    opacity: 0.3;
}

.before-after-section h2 {
    text-align: center;
    font-size: var(--font-size-4xl);
    font-weight: 800;
    margin-bottom: var(--spacing-md);
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
}

.section-subtitle {
    text-align: center;
    font-size: var(--font-size-lg);
    color: var(--gray-600);
    margin-bottom: var(--spacing-3xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

.before-after-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: var(--spacing-3xl);
    position: relative;
    z-index: 1;
}

.before-after-item {
    background: white;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-base);
    border: 1px solid rgba(0, 122, 255, 0.08);
}

.before-after-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(0, 122, 255, 0.15);
}

.before-after-image {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.showcase-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.before-after-item:hover .showcase-image {
    transform: scale(1.05);
}

.before-after-content {
    padding: var(--spacing-xl);
}

.before-after-content h3 {
    font-size: var(--font-size-xl);
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    color: var(--dark);
}

.before-after-content p {
    color: var(--gray-700);
    line-height: 1.7;
    margin: 0;
}

/* Enhanced Info Box */
.info-box {
    background: linear-gradient(135deg, #fff8f0 0%, #ffffff 100%);
    border: 2px solid rgba(255, 140, 0, 0.1);
    border-radius: var(--radius-xl);
    padding: var(--spacing-2xl);
    margin-top: var(--spacing-3xl);
    position: relative;
    overflow: hidden;
}

.info-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(180deg, #ff8c00 0%, #ffb347 100%);
}

.info-box h3 {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    margin-bottom: var(--spacing-lg);
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.info-box h3::before {
    content: '💡';
    font-size: var(--font-size-xl);
}

.info-box p {
    font-size: var(--font-size-base);
    line-height: 1.8;
    color: var(--gray-700);
    margin-bottom: var(--spacing-md);
}

.info-box p:last-child {
    margin-bottom: 0;
}

/* Enhanced Feature Icons */
.feature-item .feature-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, #ff8c00 0%, #ffb347 100%);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-lg);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.feature-item .feature-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    transition: all var(--transition-slow);
    opacity: 0;
}

.feature-item:hover .feature-icon::before {
    opacity: 1;
    transform: rotate(45deg) translate(50%, 50%);
}

.feature-item:hover .feature-icon {
    transform: translateY(-4px) scale(1.05);
    box-shadow: var(--shadow-lg);
}

/* Enhanced Process Steps */
.process-step {
    position: relative;
    padding-left: var(--spacing-2xl);
    margin-bottom: var(--spacing-2xl);
}

/* Orange vertical lines removed for cleaner design */

.step-number {
    position: absolute;
    left: 0;
    top: 0;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #ff8c00 0%, #ffb347 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: var(--font-size-lg);
    box-shadow: var(--shadow-md);
    z-index: 1;
}

/* Responsive Enhancements */
@media (max-width: 768px) {
    .before-after-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
    }
    
    .before-after-image {
        height: 250px;
    }
    
    .before-after-content {
        padding: var(--spacing-lg);
    }
    
    .info-box {
        padding: var(--spacing-xl);
    }
    
    .feature-item .feature-icon {
        width: 60px;
        height: 60px;
    }
    
    .process-step {
        padding-left: var(--spacing-xl);
    }
    
    .step-number {
        width: 36px;
        height: 36px;
        font-size: var(--font-size-base);
    }
    
    /* Orange vertical lines removed for cleaner mobile design */
}

@media (max-width: 480px) {
    .before-after-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
    
    .before-after-image {
        height: 200px;
    }
    
    .section-subtitle {
        font-size: var(--font-size-base);
        padding: 0 var(--spacing-md);
    }
}

/* Animation Enhancements */
.before-after-item {
    animation: fadeInUp 0.8s ease-out;
    animation-fill-mode: both;
}

.before-after-item:nth-child(1) {
    animation-delay: 0.1s;
}

.before-after-item:nth-child(2) {
    animation-delay: 0.2s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Print Styles */
@media print {
    .before-after-section {
        background: white;
        padding: var(--spacing-xl) 0;
    }
    
    .before-after-section::before {
        display: none;
    }
    
    .before-after-item {
        box-shadow: none;
        border: 1px solid #ddd;
        break-inside: avoid;
        margin-bottom: var(--spacing-lg);
    }
    
    .before-after-image {
        height: 200px;
    }
}
