/*
 * Cultina Counter — a single animated stat tile.
 * One number (counts up on scroll-in) plus a subheadline, both INSIDE a coloured
 * rounded tile. Number and subheadline align independently (left/center/right);
 * the subheadline can sit above or below the number with an adjustable gap.
 * Structure + base look here; per-instance values come from the widget's Style
 * controls; the count-up runs in assets/js/counter.js. Responsive stacking of the
 * stats ROW is handled by the page's flex container (not here), matching how the
 * media-overlap widget defers stacking to the section.
 */

.cc {
    /* gap between number and label (overridden by the "Abstand" control) */
    --cc-gap: 12px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: stretch;     /* each child sets its own align-self for L/C/R */
    justify-content: center;  /* overridden by the vertical-align control */
    /* Fallbacks — the Style controls (tile_bg, radius, padding…) override these. */
    background-color: var(--cultina-color-surface-blue, #E8F5F9);
    border-radius: 24px;
    color: var(--cultina-color-text, #313131);
    font-family: var(--cultina-font-family, "Ubuntu", "Helvetica Neue", Arial, sans-serif);
}

.cc__num {
    display: block;
    margin: 0;
    font-weight: var(--cultina-font-weight-bold, 700);
    line-height: 1;
    /* Equal-width digits so the tile doesn't jitter while the number counts up. */
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1;
}

.cc__label {
    display: block;
    margin: 0;
    font-weight: var(--cultina-font-weight-medium, 500);
    line-height: 1.2;
}

/* Spacing between number and label — works in both stack orders. */
.cc:not(.cc--label-top) .cc__label { margin-top: var(--cc-gap); }
.cc.cc--label-top .cc__label       { margin-bottom: var(--cc-gap); }

/* Subheadline above the number: visual order only (DOM stays number → label so
   the reading/SEO order is "250 Mitarbeitende"). */
.cc.cc--label-top .cc__num   { order: 2; }
.cc.cc--label-top .cc__label { order: 1; }

/* Equal-height tiles when the stats row uses align-items:stretch (e.g. one tile's
   label wraps to two lines): let the widget wrapper and the tile fill the
   stretched height. Targets Elementor's stable widget wrapper classes. */
.elementor-widget-cultina_counter > .elementor-widget-container { height: 100%; }
.elementor-widget-cultina_counter > .elementor-widget-container > .cc { height: 100%; }
