/* =========================================================
   VALOWERK
   CONTACT

   Ziel:
   - starker Abschluss der Startseite
   - klare Handlungsaufforderung
   - große Typografie
   - dunkler Kontrast
   - einfache, hochwertige Interaktion
========================================================= */


/* =========================================================
   CONTACT SECTION
========================================================= */

.contact {
    position: relative;

    min-height: 90vh;
    min-height: 90svh;

    display: flex;

    flex-direction: column;

    justify-content: space-between;

    padding-top: clamp(80px, 9vw, 140px);
    padding-bottom: clamp(70px, 8vw, 120px);

    color: var(--color-light);

    background: var(--color-dark);

    overflow: hidden;
}


/* =========================================================
   SECTION LABEL
========================================================= */

.contact > .section-label {
    position: relative;

    z-index: 2;

    width: 100%;

    max-width: var(--content-width);

    margin: 0 auto;

    padding-bottom: 18px;

    color: rgba(242, 240, 235, 0.55);

    border-bottom:
        1px solid
        rgba(242, 240, 235, 0.18);
}


/* =========================================================
   CONTACT CONTENT
========================================================= */

.contact-content {
    position: relative;

    z-index: 2;

    display: flex;

    flex-direction: column;

    justify-content: flex-end;

    flex: 1;

    padding-top: clamp(80px, 10vw, 160px);
}


/* =========================================================
   CONTACT TITLE
========================================================= */

.contact-content h2 {
    max-width: 1450px;

    font-size: clamp(
        4.5rem,
        10vw,
        10.5rem
    );

    font-weight: 500;

    line-height: 0.83;

    letter-spacing: -0.068em;
}


/* =========================================================
   CONTACT LINK
========================================================= */

.contact-link {
    position: relative;

    display: flex;

    align-items: center;
    justify-content: space-between;

    width: 100%;

    margin-top: clamp(80px, 10vw, 150px);

    padding:
        clamp(22px, 2.5vw, 36px)
        0;

    color: var(--color-light);

    border-top:
        1px solid
        rgba(242, 240, 235, 0.22);

    border-bottom:
        1px solid
        rgba(242, 240, 235, 0.22);

    font-size: clamp(
        1.25rem,
        2.5vw,
        2.7rem
    );

    font-weight: 400;

    line-height: 1;

    letter-spacing: -0.035em;

    overflow: hidden;
}


/* =========================================================
   CONTACT LINK BACKGROUND
========================================================= */

.contact-link::before {
    content: "";

    position: absolute;

    z-index: -1;

    inset: 0;

    background: var(--color-accent);

    transform: scaleY(0);

    transform-origin: bottom;

    transition:
        transform
        500ms
        cubic-bezier(0.22, 1, 0.36, 1);
}


/* =========================================================
   CONTACT ARROW
========================================================= */

.contact-link span {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    width: clamp(42px, 4vw, 62px);
    height: clamp(42px, 4vw, 62px);

    flex-shrink: 0;

    margin-left: 30px;

    border:
        1px solid
        rgba(242, 240, 235, 0.28);

    border-radius: 50%;

    font-size: clamp(
        1rem,
        1.4vw,
        1.4rem
    );

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


/* =========================================================
   CONTACT HOVER
========================================================= */

@media (hover: hover) and (pointer: fine) {

    .contact-link:hover::before {
        transform: scaleY(1);
    }


    .contact-link:hover span {
        background: rgba(255, 255, 255, 0.12);

        border-color: rgba(255, 255, 255, 0.45);

        transform:
            translate(4px, -4px);
    }

}


/* =========================================================
   DECORATIVE CIRCLE
========================================================= */

.contact::after {
    content: "";

    position: absolute;

    z-index: 1;

    top: 8%;
    right: -10vw;

    width: clamp(
        280px,
        40vw,
        700px
    );

    aspect-ratio: 1;

    border:
        1px solid
        rgba(242, 240, 235, 0.07);

    border-radius: 50%;

    pointer-events: none;
}


/* Zweiter Kreis */

.contact::before {
    content: "";

    position: absolute;

    z-index: 1;

    top: 18%;
    right: -2vw;

    width: clamp(
        180px,
        26vw,
        450px
    );

    aspect-ratio: 1;

    border:
        1px solid
        rgba(242, 240, 235, 0.045);

    border-radius: 50%;

    pointer-events: none;
}


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

@media (max-width: 1000px) {

    .contact {
        min-height: 85svh;
    }


    .contact-content h2 {
        font-size: clamp(
            4.2rem,
            11vw,
            7.5rem
        );
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 800px) {

    .contact {
        min-height: 100svh;

        padding-top: 75px;
        padding-bottom: 55px;
    }


    .contact-content {
        padding-top: 90px;
    }


    .contact-content h2 {
        max-width: 700px;

        font-size: clamp(
            3.8rem,
            15vw,
            6.5rem
        );

        line-height: 0.85;

        letter-spacing: -0.06em;
    }


    .contact-link {
        margin-top: 75px;

        padding:
            22px
            0;

        font-size: clamp(
            1.15rem,
            4vw,
            1.6rem
        );
    }


    .contact-link span {
        width: 42px;
        height: 42px;

        margin-left: 20px;

        font-size: 1rem;
    }


    .contact::after {
        top: 15%;
        right: -30vw;

        width: 75vw;
    }


    .contact::before {
        top: 22%;
        right: -12vw;

        width: 48vw;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .contact {
        padding-top: 65px;
        padding-bottom: 45px;
    }


    .contact > .section-label {
        padding-bottom: 15px;
    }


    .contact-content {
        padding-top: 70px;
    }


    .contact-content h2 {
        font-size: clamp(
            3.3rem,
            14.8vw,
            4.8rem
        );

        line-height: 0.87;
    }


    .contact-link {
        margin-top: 60px;

        padding:
            19px
            0;

        font-size: clamp(
            1rem,
            4.7vw,
            1.3rem
        );

        letter-spacing: -0.025em;
    }


    .contact-link span {
        width: 38px;
        height: 38px;

        margin-left: 15px;

        font-size: 0.9rem;
    }

}


/* =========================================================
   VERY SMALL MOBILE
========================================================= */

@media (max-width: 360px) {

    .contact-content h2 {
        font-size: 3rem;
    }


    .contact-link {
        font-size: 0.94rem;
    }


    .contact-link span {
        width: 36px;
        height: 36px;
    }

}