/* ===== STAT CARD KOMPONENTE ===== */
/* Wiederverwendbare Statistik-Kachel mit verschiedenen Farbschemata */

.stat-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    flex: 1;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--card-color);
    transition: width 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.9);
}

.stat-card:hover::before {
    width: 100%;
    opacity: 0.1;
}

/* Farbschemata */
.stat-card.primary { --card-color: #667eea; }
.stat-card.success { --card-color: #27ae60; }
.stat-card.warning { --card-color: #f39c12; }
.stat-card.info { --card-color: #3498db; }
.stat-card.danger { --card-color: #e74c3c; }

.stat-icon {
    font-size: 2em;
    opacity: 0.8;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
    flex-shrink: 0;
}

.stat-content {
    flex: 1;
    text-align: center;
}

.stat-label {
    font-size: 0.75em;
    color: #666;
    font-weight: 500;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 1.8em;
    font-weight: bold;
    color: #333;
    line-height: 1;
    margin-bottom: 2px;
}

.stat-subtext {
    font-size: 0.7em;
    color: #888;
    font-weight: 500;
}

/* Container für mehrere Stat Cards */
.stats-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    position: relative;
    z-index: 2;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .stats-container {
        gap: 15px;
    }
    
    .stat-card {
        flex: 1 1 calc(50% - 15px);
        min-width: 200px;
    }
}

@media (max-width: 768px) {
    .stats-container {
        flex-direction: column;
        gap: 12px;
    }
    
    .stat-card {
        width: 100%;
        flex: 1 1 100%;
    }
    
    .stat-icon {
        font-size: 1.8em;
    }
    
    .stat-value {
        font-size: 1.6em;
    }
}
