/* ========================================================================
   SMG STATS COUNTER WIDGET
   Zahlen und Statistiken mit Animationen
   ======================================================================== */

.smg-stats-counter {
    padding: 6rem 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 50%, #f1f5f9 100%);
    position: relative;
    overflow: hidden;
}

.smg-stats-counter::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 25% 25%, rgba(59, 130, 246, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 75% 75%, rgba(220, 38, 38, 0.05) 0%, transparent 50%);
    z-index: 1;
}

.smg-stats-counter > * {
    position: relative;
    z-index: 2;
}

.smg-stats-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.smg-stats-title {
    /* Use unified title system from common.css */
    font-family: var(--font-secondary);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: var(--smg-space-lg);
    letter-spacing: -0.02em;
    text-align: center;
    background: var(--smg-gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.smg-stats-subtitle {
    /* Use unified subtitle system from common.css */
    font-size: var(--smg-text-xl);
    color: var(--smg-text-light-secondary);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
    font-weight: 400;
}

.smg-stats-grid {
    display: grid;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Fixed column classes with higher specificity */
.smg-stats-counter .smg-stats-grid.columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.smg-stats-counter .smg-stats-grid.columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.smg-stats-counter .smg-stats-grid.columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

.smg-stats-counter .smg-stats-grid.columns-5 {
    grid-template-columns: repeat(5, 1fr);
}

.smg-stat-item {
    text-align: center;
    padding: 2.5rem 1.5rem;
    border-radius: 20px;
    background: white;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    border: 1px solid #f1f5f9;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

/* Individual colors for each stat item */
.smg-stat-item:nth-child(1) {
    --stat-color: #dc2626;
    --stat-bg: #fef2f2;
}

.smg-stat-item:nth-child(2) {
    --stat-color: #2563eb;
    --stat-bg: #eff6ff;
}

.smg-stat-item:nth-child(3) {
    --stat-color: #16a34a;
    --stat-bg: #f0fdf4;
}

.smg-stat-item:nth-child(4) {
    --stat-color: #d97706;
    --stat-bg: #fffbeb;
}

.smg-stat-item:nth-child(5) {
    --stat-color: #7c3aed;
    --stat-bg: #faf5ff;
}

.smg-stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--stat-color, var(--primary-red));
    border-radius: 20px 20px 0 0;
}

.smg-stat-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--stat-bg, #f8fafc);
    opacity: 0;
    transition: opacity var(--transition-base);
    z-index: 1;
}

.smg-stat-item:hover::after {
    opacity: 0.3;
}

.smg-stat-item > * {
    position: relative;
    z-index: 2;
}

/* Style Variants */
.smg-stats-counter.style-modern .smg-stat-item {
    background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
    border: 1px solid #e2e8f0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.smg-stats-counter.style-minimal .smg-stat-item {
    background: transparent;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.smg-stats-counter.style-minimal .smg-stat-item::before {
    height: 2px;
}

.smg-stats-counter.style-bordered .smg-stat-item {
    border: 2px solid var(--stat-color, var(--primary-red));
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.smg-stats-counter.style-shadow .smg-stat-item {
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
    border: none;
}

.smg-stat-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.smg-stats-counter.style-shadow .smg-stat-item:hover {
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.2);
}

/* Remove the large icon and make it minimal */
.smg-stat-icon {
    width: 24px;
    height: 24px;
    margin: 0 auto 1rem;
    background: var(--stat-color, var(--primary-red));
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.75rem;
    transition: all var(--transition-base);
    opacity: 0.8;
}

.smg-stat-item:hover .smg-stat-icon {
    transform: scale(1.1);
    opacity: 1;
}

/* Make numbers the hero element */
.smg-stat-number-container {
    font-family: var(--font-secondary);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    margin-bottom: 0.5rem;
    line-height: 0.9;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.1rem;
    color: var(--stat-color, var(--primary-red));
}

.smg-stat-prefix,
.smg-stat-suffix {
    color: var(--stat-color, var(--primary-red));
    font-weight: 900;
    opacity: 0.8;
}

.smg-stat-number {
    color: var(--stat-color, var(--primary-red));
    font-weight: 900;
}

.smg-stat-label {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 0.25rem;
    line-height: 1.2;
}

.smg-stat-description {
    font-size: 0.9rem;
    color: #6b7280;
    line-height: 1.4;
    font-weight: 500;
    opacity: 0.8;
}

/* RESPONSIVE STYLES
   ======================================================================== */

/* Responsive Grid Fix */
@media (max-width: 1200px) {
    .smg-stats-counter .smg-stats-grid.columns-5 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .smg-stats-counter .smg-stats-grid.columns-4 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .smg-stats-counter {
        padding: 4rem 0;
    }

    .smg-stats-counter .smg-stats-grid.columns-5,
    .smg-stats-counter .smg-stats-grid.columns-4,
    .smg-stats-counter .smg-stats-grid.columns-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .smg-stat-item {
        padding: 2rem 1.5rem;
    }
    
    .smg-stat-icon {
        width: 20px;
        height: 20px;
        font-size: 0.625rem;
    }
}

@media (max-width: 480px) {
    .smg-stats-counter .smg-stats-grid.columns-5,
    .smg-stats-counter .smg-stats-grid.columns-4,
    .smg-stats-counter .smg-stats-grid.columns-3,
    .smg-stats-counter .smg-stats-grid.columns-2 {
        grid-template-columns: 1fr;
    }
    
    .smg-stat-item {
        padding: 2rem 1rem;
    }

    .smg-stat-number-container {
        font-size: clamp(2rem, 8vw, 3rem);
    }
} 