
/* ==========================================
   RAUMAMBIENTE AACHEN
   KONTAKTAUFFORDERUNG / CTA
   ========================================== */

.cta-box {
    display: grid;
    grid-template-columns: 36% 42% 22%;
    align-items: center;

    width: 100%;
    min-height: 150px;

    background: var(--color-gray-extra-light);
    border-radius: var(--radius-large);
    overflow: hidden;
}

/* ==========================================
   LINKE FLÄCHE
   ========================================== */

.cta-heading {
    position: relative;
    display: flex;
    align-items: center;
    gap: 30px;

    height: 100%;
    padding: 25px 65px 25px 40px;

    background: var(--color-petrol);
    color: var(--color-white);

    clip-path: polygon(
        0 0,
        100% 0,
        90% 100%,
        0 100%
    );
}

.cta-heading > i {
    flex-shrink: 0;
    font-size: 52px;
    line-height: 1;
    color: var(--color-white);
}

.cta-heading h2 {
    margin: 0;
    font-family: var(--font-headline);
    font-size: clamp(24px, 2.1vw, 32px);
    font-weight: 700;
    line-height: 1.15;
    color: var(--color-white);
}

/* ==========================================
   MITTLERER TEXTBEREICH
   ========================================== */

.cta-description {
    padding: 25px 35px;
}

.cta-description p {
    margin: 0;
    max-width: 550px;

    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.5;
    color: var(--color-text);
}

/* ==========================================
   RECHTER BUTTON
   ========================================== */

.cta-action {
    display: flex;
    justify-content: center;
    padding: 20px 25px 20px 0;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    padding: 15px 20px;

    background: var(--color-petrol);
    border: 1px solid var(--color-petrol);
    border-radius: var(--radius-medium);

    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;

    color: var(--color-white);
    text-decoration: none;
    white-space: nowrap;

    transition:
        background var(--transition-default),
        transform var(--transition-default);
}

.cta-button i {
    color: var(--color-white);
    font-size: 18px;
    transition: transform var(--transition-default);
}

.cta-button:hover {
    background: var(--color-petrol-hover);
    border-color: var(--color-petrol-hover);
    color: var(--color-white);
}

.cta-button:hover i {
    transform: translateX(4px);
}

/* ==========================================
   KLEINERE DESKTOPS
   ========================================== */

@media (max-width: 1199px) {

    .cta-box {
        grid-template-columns: 38% 37% 25%;
    }

    .cta-heading {
        gap: 18px;
        padding-left: 25px;
        padding-right: 45px;
    }

    .cta-heading > i {
        font-size: 40px;
    }

    .cta-heading h2 {
        font-size: 24px;
    }

    .cta-description {
        padding: 20px;
    }

    .cta-description p {
        font-size: 15px;
    }

    .cta-button {
        gap: 10px;
        padding: 12px;
        font-size: 13px;
    }
}

/* ==========================================
   TABLET
   ========================================== */

@media (max-width: 991px) {

    .cta-box {
        grid-template-columns: 1fr 1fr;
    }

    .cta-heading {
        grid-column: 1;
        grid-row: 1;
        min-height: 130px;
    }

    .cta-description {
        grid-column: 2;
        grid-row: 1;
    }

    .cta-action {
        grid-column: 1 / -1;
        grid-row: 2;

        padding: 0 20px 25px;
    }
}

/* ==========================================
   SMARTPHONE
   ========================================== */

@media (max-width: 767px) {

    .cta-box {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    .cta-heading {
        min-height: 115px;
        padding: 25px 35px 25px 20px;
        gap: 18px;

        clip-path: none;
    }

    .cta-heading > i {
        font-size: 38px;
    }

    .cta-heading h2 {
        font-size: 24px;
    }

    .cta-description {
        padding: 25px 20px 15px;
    }

    .cta-description p {
        font-size: 15px;
    }

    .cta-action {
        justify-content: flex-start;
        padding: 10px 20px 25px;
    }

    .cta-button {
        font-size: 14px;
        padding: 13px 18px;
    }
}

