/* ==========================================================
   Content Block: Key Facts
========================================================== */

.key-facts-section {
    width: 100%;
    padding: 5rem 0;
}

.key-facts-section--white {
    background: #fff;
}

.key-facts-section--light {
    background: #f6f6f6;
}

/* ==========================================================
   Einleitung
========================================================== */

.key-facts-section__intro {
    max-width: 58rem;
}

.key-facts-section__eyebrow {
    margin: 0 0 0.75rem;
    color: var(--color-primary, #c12030);
    font-family: var(--font-monospace, monospace);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.14rem;
    line-height: 1.4;
    text-transform: uppercase;
}

.key-facts-section__title {
    max-width: 24ch;
    margin: 0;
    color: #292929;
    font-size: clamp(1.75rem, 4vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.03125rem;
    line-height: 1.18;
}

.key-facts-section__body {
    max-width: 54rem;
    margin-top: 1.25rem;
    color: #4f4f4f;
    font-size: 1.0625rem;
    line-height: 1.7;
}

.key-facts-section__body > :first-child {
    margin-top: 0;
}

.key-facts-section__body > :last-child {
    margin-bottom: 0;
}

/* ==========================================================
   Raster
========================================================== */

.key-facts-grid {
    display: grid;
    gap: 1.25rem;
    margin-top: 3rem;
}

.key-facts-grid--columns-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.key-facts-grid--columns-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.key-facts-grid--columns-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* ==========================================================
   Einzelner Fakt
========================================================== */

.key-fact {
    display: grid;
    grid-template-columns: 3.25rem minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
    min-width: 0;
    padding: 1.5rem;
    background: #fff;
    border: 1px solid #dedede;
    border-radius: 0.875rem;
    box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.035);
}

/* ==========================================================
   Icon oder Logo
========================================================== */

.key-fact__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    overflow: hidden;
    color: var(--color-primary, #c12030);
    background: #fbeaec;
    border-radius: 0.75rem;
}

.key-fact__icon svg {
    width: 1.625rem;
    height: 1.625rem;
}

.key-fact__logo {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0.5rem;
    object-fit: contain;
}

/* ==========================================================
   Text
========================================================== */

.key-fact__content {
    min-width: 0;
}

.key-fact__value {
    margin: 0 0 0.25rem;
    color: var(--color-primary, #c12030);
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.2;
}

.key-fact__title {
    margin: 0;
    color: #292929;
    font-size: 1rem;
    font-weight: 750;
    line-height: 1.4;
}

.key-fact__text {
    margin: 0.5rem 0 0;
    color: #5a5a5a;
    font-size: 0.8125rem;
    line-height: 1.6;
}

/* ==========================================================
   Tablet
========================================================== */

@media (max-width: 64rem) {
    .key-facts-grid--columns-3,
    .key-facts-grid--columns-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ==========================================================
   Mobil
========================================================== */

@media (max-width: 48rem) {
    .key-facts-section {
        padding: 3.5rem 0;
    }

    .key-facts-grid,
    .key-facts-grid--columns-2,
    .key-facts-grid--columns-3,
    .key-facts-grid--columns-4 {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-top: 2.25rem;
    }

    .key-fact {
        padding: 1.25rem;
        border-radius: 0.75rem;
    }
}