/* 
 * Prozess Grid
 * Version: 1.0.9
 * Last updated: 2024-03-21
 * Changes: Icon-Größe Anpassung
 */
.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
    margin-top: var(--space-4xl);
    position: relative;
    padding: var(--space-2xl) var(--space-lg);
}

/* Verbindungslinie mit Pulse-Effekt */
.process-grid::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
        rgba(0, 212, 255, 0.1) 0%,
        rgba(124, 58, 237, 0.1) 100%);
    z-index: 1;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0% { opacity: 0.3; }
    50% { opacity: 0.6; }
    100% { opacity: 0.3; }
}

/* Fortschrittspfad mit verbesserter Animation */
.process-grid::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
        rgba(0, 212, 255, 0.5) 0%,
        rgba(124, 58, 237, 0.5) 100%);
    z-index: 1;
    transform: scaleX(0);
    transform-origin: left;
    animation: pathProgress 2s ease-out forwards;
}

@keyframes pathProgress {
    to { transform: scaleX(1); }
}

.process-card {
    background: rgba(17, 25, 40, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: var(--space-xl);
    position: relative;
    overflow: visible;
    cursor: pointer;
    transform-origin: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    min-height: 360px;
    margin-top: 6px;
}

/* Verbesserte Focus-Styles für Accessibility */
.process-card:focus-within {
    outline: none;
    border-color: rgb(0, 212, 255);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.3);
}

.process-card:hover {
    transform: translateY(-5px);
    border-color: rgba(var(--primary-rgb), 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Aktiver Zustand */
.process-card.active {
    border-color: rgb(0, 212, 255);
    background: linear-gradient(135deg,
        rgba(17, 25, 40, 0.95),
        rgba(17, 25, 40, 0.8));
}

/* Verbindungspunkte mit Pulse-Effekt */
.process-card::before {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    background: rgb(0, 212, 255);
    border-radius: 50%;
    left: 50%;
    top: 0;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px rgba(var(--primary-rgb), 0.5);
    z-index: 3;
    transition: all 0.3s ease;
}

.process-card:hover::before {
    animation: pointPulse 1.5s ease-in-out infinite;
}

@keyframes pointPulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 212, 255, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(0, 212, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 212, 255, 0); }
}

.process-title {
    font-size: 1.25rem;
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin-bottom: var(--space-md);
    line-height: 1.3;
    transition: color 0.3s ease;
}

.process-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: var(--space-xl);
    opacity: 0.7;
    transition: all 0.3s ease;
    flex-grow: 1;
}

.process-card:hover .process-description {
    opacity: 0.9;
}

.process-features {
    margin-top: var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.process-feature {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--text-secondary);
    font-size: 0.95rem;
    padding: var(--space-xs) 0;
}

.process-feature i {
    color: var(--primary);
    font-size: 0.8rem;
    opacity: 0.8;
}

/* Keyboard Navigation Verbesserungen */
.process-card:focus-visible {
    outline: none;
    border-color: rgb(0, 212, 255);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.3);
}

.process-feature:focus-visible {
    outline: none;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 4px;
}

@media (max-width: 1200px) {
    .process-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-2xl);
        padding: var(--space-xl) var(--space-lg);
    }

    .process-grid::before,
    .process-grid::after {
        display: none;
    }

    .process-card::before {
        display: none;
    }

    .process-card {
        min-height: 320px;
    }
}

@media (max-width: 768px) {
    .process-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
        padding: var(--space-lg);
    }
    
    .process-card {
        padding: var(--space-lg);
        min-height: auto;
    }

    /* Touch-optimierte Hover-States */
    @media (hover: none) {
        .process-card:hover {
            transform: none;
        }

        .process-feature:hover {
            transform: none;
        }

        .process-card:active {
            transform: scale(0.98);
        }

        .process-feature:active {
            opacity: 0.8;
        }
    }
} 