/**
 * Stats Counter Widget (CM-Immo Style)
 * Badge-Style wie im Screenshot: Icon + Number + Label
 * @version 1.2.0
 */

.cockpit-stats-counter {
    color: var(--color-gray-800, #1f2937);
}

.cockpit-stats-counter__grid {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-4, 1.5rem);
    align-items: center;
    justify-content: flex-start;
}

/* Badge-Style Item (wie im Screenshot) */
.cockpit-stats-counter__item {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    background: #ffffff;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s var(--ease-smooth);
    white-space: nowrap;
}

.cockpit-stats-counter__item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

/* Icon (links im Badge) */
.cockpit-stats-counter__icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-accent-pink, #fce4ec);
    color: var(--color-gray-800, #1f2937);
    border-radius: 50%;
    font-size: 1.25rem;
    color: var(--color-primary, var(--color-primary, #da2032));
}

/* Number + Label Container */
.cockpit-stats-counter__content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* Number (z.B. "15K+" oder "98%") */
.cockpit-stats-counter__number {
    font-family: var(--font-family-heading, 'Baloo 2', sans-serif);
    font-size: 1.375rem; /* 22px */
    font-weight: 800;
    color: var(--color-primary, var(--color-primary, #da2032));
    line-height: 1;
    display: flex;
    align-items: baseline;
}

.cockpit-stats-counter__suffix {
    font-size: 0.8em;
    margin-left: 2px;
}

/* Label (z.B. "Love Cookies" oder "Fast Service") */
.cockpit-stats-counter__label {
    font-size: 0.875rem;
    color: var(--color-gray-600, #4b5563);
    font-weight: 500;
    line-height: 1.2;
}

/* Alternative: Vertical Layout (wenn gewünscht) */
.cockpit-stats-counter__item.stats-vertical {
    flex-direction: column;
    text-align: center;
    padding: 20px 24px;
}

.cockpit-stats-counter__item.stats-vertical .cockpit-stats-counter__icon {
    margin-bottom: 8px;
}

.cockpit-stats-counter__item.stats-vertical .cockpit-stats-counter__number {
    justify-content: center;
}

/* Responsive */
@media (max-width: 768px) {
    .cockpit-stats-counter__grid {
        gap: var(--spacing-3, 1rem);
    }
    
    .cockpit-stats-counter__item {
        padding: 12px 20px;
        gap: 10px;
    }
    
    .cockpit-stats-counter__icon {
        width: 36px;
        height: 36px;
        font-size: 1.125rem;
    }
    
    .cockpit-stats-counter__number {
        font-size: 1.25rem;
    }
    
    .cockpit-stats-counter__label {
        font-size: 0.8125rem;
    }
}

@media (max-width: 480px) {
    .cockpit-stats-counter {
    color: var(--color-gray-800, #1f2937);
        padding: var(--spacing-4, 1.5rem) var(--spacing-3, 1rem);
    }
    
    .cockpit-stats-counter__grid {
        flex-direction: column;
        align-items: stretch;
    }
    
    .cockpit-stats-counter__item {
        width: 100%;
        justify-content: center;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .cockpit-stats-counter__item {
        transition: none;
    }
}
