:root{
    --primary: #707070;
    --secondary: #d41414;
}

footer {
    width: 100%;
    height: 5rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 3rem 2rem;
    border-top: 1px solid rgb(158, 158, 158);
}


.socialLinks {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.linkedIn, .xing {
    width: 100%;
    max-width: 50px;
    opacity: 0.5;
    margin: 0 10%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.linkedIn img, .xing img {
    max-width: 32px;
    max-height: 32px;
}

.linkedIn:hover, .xing:hover {
    opacity: 1;
}


.law {
    display: flex;
    justify-content: center;
    align-items: center;
}

.legal, .privacy, .legalDe {
    margin: 0 10%;
}

.legal a:hover, .privacy a:hover {
    color: var(--secondary);
}

.copyright {
    display: flex;
    justify-content: center;
    align-items: center;
}

.copy {
    text-align: center;
}


.contact {
    display: flex;
    justify-content: center;
    align-items: center;
}

.contactBtn {
    width: 6rem;
    height: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    position: fixed;
    z-index: 1000;
}

.contact a {
    width: 100%;
    height: 100%;
    font-size: 0.9rem;
    line-height: 2rem;
    border: 2px solid var(--primary);
    border-radius: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    -webkit-backdrop-filter: blur(0.15rem);
    -moz-backdrop-filter: blur(0.15rem);
    -o-backdrop-filter: blur(0.15rem);
    backdrop-filter: blur(0.15rem);
    cursor: pointer;
    background-color: rgba(252, 251, 245, 0.7);
    color: var(--secondary);
}

.contactBtn a:hover {
    color: rgb(252, 251, 245);
    background-color: var(--secondary);
    border: 2px solid rgb(252, 251, 245);
}




@media screen and (max-width: 21.875em) {


    .socialLinks {
        grid-row: 1/2;
        grid-column: 1/3;
    }

    .law {
        grid-row: 2/3;
        grid-column: 1/3;
        border-top: 1px solid rgb(158, 158, 158);
    }

    .legal a, .privacy a {
        font-size: 0.7rem;
    }

    .legalDe {
        margin: 0 5%;
        margin-bottom: 0.3rem;
    }

    .legalDe a {
        font-size: 0.6rem;
    }

    .copyright {
        grid-row: 2/3;
        grid-column: 3/5;
        border-top: 1px solid rgb(158, 158, 158);
    }

    .copy {
        font-size: 0.5rem;
        line-height: 2.2rem;
    }

    .contact {
        grid-column: 3/5;
    }

    .contactBtn {
        bottom: 2.7rem;
    }

}



@media screen and (min-width: 21.875em) and (max-width: 43.75rem) {


    .socialLinks {
        grid-row: 1/2;
        grid-column: 1/3;
    }

    .law {
        grid-row: 2/3;
        grid-column: 1/3;
        border-top: 1px solid rgb(158, 158, 158);
    }

    .legal a, .privacy a {
        font-size: 0.8rem;
    }

    .legalDe {
        margin: 0 5%;
        margin-bottom: 0.2rem;
    }

    .legalDe a {
        font-size: 0.7rem;
    }

    .copyright {
        grid-row: 2/3;
        grid-column: 3/5;
        border-top: 1px solid rgb(158, 158, 158);
    }

    .copy {
        font-size: 0.6rem;
        line-height: 2.1rem;
    }

    .contact {
        grid-column: 3/5;
    }

    .contactBtn {
        bottom: 2.6rem;
    }



}


@media screen and (min-width: 43.75em)  {

    footer {
        grid-template-columns: repeat(3, 1fr);
    }

    .socialLinks {
        grid-row: 1/2;
        grid-column: 2/3;
    }

    .law {
        grid-row: 1/2;
        grid-column: 1/2;
        padding: 0 1rem;
    }

    .legalDe {
        margin: 0 7%;
    }

    .legalDe a {
        font-size: 0.9rem;
    }

    .copyright {
        grid-row: 2/3;
        grid-column: 1/4;
        border-top: 1px solid rgb(158, 158, 158);
    }

    .copy {
        font-size: 0.7rem;
        line-height: 2.1rem;
    }

    .contact {
        grid-column: 3/4;
    }

    .contactBtn {
        bottom: 2.55rem;
    }


}






@media screen and (min-width: 53.125em) {

    footer {
        height: 6rem;
        grid-template-rows: 4rem 2rem;
    }


    .law {
        padding: 0 5rem;
    }

    .socialLinks {
        padding: 0 5rem;
    }

    .contactBtn {
        width: 8rem;
        height: 3rem;
    }

    .contactBtn a {
        border-radius: 2.5rem;
        font-size: 1.5rem;
    }


}





