/* Base Styles */
.company-stats-counter {
    display: flex;
    align-items: center;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.company-stats-counter:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Layout Varianten */
.company-stats-counter.layout-horizontal {
    flex-direction: row;
    gap: 25px;
}

.company-stats-counter.layout-vertical {
    flex-direction: column;
    text-align: center;
    gap: 20px;
}

.company-stats-counter.layout-simple {
    flex-direction: column;
    text-align: center;
}

/* Icon */
.stats-icon {
    font-size: 56px;
    flex-shrink: 0;
    line-height: 1;
}

.layout-vertical .stats-icon {
    font-size: 64px;
}

/* Content */
.stats-content {
    flex: 1;
    min-width: 0;
}

.layout-vertical .stats-content,
.layout-simple .stats-content {
    width: 100%;
}

.stats-number-wrapper {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;

}

.layout-vertical .stats-number-wrapper,
.layout-simple .stats-number-wrapper {
    justify-content: center;
    margin-right: -34px;
}

.stats-number {
    font-size: 52px;
    font-weight: 700;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.stats-suffix {
    font-size: 28px;
    font-weight: 600;
    opacity: 0.9;
}

.stats-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    color: #333;
    line-height: 1.4;
}

/* Info Icon & Tooltip */
.stats-info-icon {
    position: relative;
    cursor: help;
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
    color: #666;
    font-size: 18px;
    transition: color 0.3s;
}

.stats-info-icon:hover {
    color: #0066cc;
}

.stats-tooltip {
    position: absolute;
    bottom: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
    white-space: normal;
    max-width: 300px;
    width: max-content;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.stats-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: #333;
}

.stats-tooltip.visible {
    opacity: 1;
    pointer-events: auto;
}

/* Responsive */
@media (max-width: 768px) {
    .company-stats-counter {
        padding: 20px;
    }

    .company-stats-counter.layout-horizontal {
        flex-direction: column;
        text-align: center;
    }

    .stats-number {
        font-size: 42px;
    }

    .stats-suffix {
        font-size: 22px;
    }

    .stats-title {
        font-size: 16px;
    }

    .stats-icon {
        font-size: 48px;
    }

    .stats-tooltip {
        max-width: 250px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .stats-number {
        font-size: 36px;
    }

    .stats-tooltip {
        left: 0;
        transform: none;
        right: 0;
        margin: 0 10px;
    }

    .stats-tooltip::after {
        left: 30px;
    }
}

/* Icon Bild Support */
.stats-icon img {
    width: 56px;
    height: 56px;
    object-fit: contain;
}

.layout-vertical .stats-icon img {
    width: 64px;
    height: 64px;
}
