@charset "utf-8";

/* Formatierung Überschrift */
h2 {
    width: 80%;
    max-width: 31.25rem;
    margin: 0 auto var(--fs-600) auto;
    text-align: center;
    font-weight: 300;
    line-height: 1.5;
    text-transform: uppercase;
    font-size: var(--fs-600);
    color: var(--background-header);
    letter-spacing: 1px;
}



/* ab Bildschirmen über 430 Pixel Breite Doppelstriche */
@media only screen and (min-width: 430px) {
    h2 {
        /* Striche vor und nach Überschrift */
        display: grid;
        grid-template-columns: 1fr max-content 1fr;
        grid-template-rows: 27px 0;
        grid-gap: 20px;
        align-items: center;
    }    
    /*Striche vor und nach Überschrift*/
    h2:after, 
    h2:before {
        content: "";
        display: block;
        border-bottom: 1px solid rgba(255, 255, 255, 0.644);
        border-top: 1px solid rgba(255, 255, 255, 0.644);
        height: 5px;
    }
}

/*großes Hintergrundbild*/
.background-img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    position: fixed;
    top: 0;
    right: 0;
    z-index: -17;
    filter: brightness(0.7); 
}

/* große Box mit Referenzen */
.reference-box {
    background-color: rgba(255, 255, 255, 0.644);
    width: 90%;
    max-width: 70rem;
    padding: 2rem;
    margin: 0 auto;
    border: 2px solid var(--light-grey);
}

/*Bilder Design Mobile*/
.reference-box ul {
    list-style-type: none;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.reference-box ul li {
    height: 35px;
    width: max-content;
    display: inline-block;
}

.reference-box ul li:nth-of-type(8) {
    margin-bottom: 0;
}

.reference-box ul li {
    margin-bottom: 2rem;
}




/*logos und abstände werden größer bei größeren bildschirmen*/
@media only screen and (min-width: 450px) {
    .reference-box ul li {
        height: 55px;
    }

    .reference-box ul li {
        margin-bottom: 2.5rem;
    }

    .reference-box ul li:nth-of-type(8) {
        margin-bottom: 0;
    }
}


@media only screen and (min-width: 1000px) {
    .reference-box ul li {
        height: 70px;
    }
}



/*link und img haben gleiche größe*/
.reference-box ul li a {
    height: inherit;
    width: inherit;
}

.reference-box ul li a img {
    height: inherit;
}


@media only screen and (min-width: 1200px) {
    .reference-box {
        padding: 4rem;
    }

    .reference-box ul {
        display: block;
        column-count: 2;
        column-gap: 2rem;
        text-align: center;
    }

    .reference-box ul li {
        margin-bottom: 5rem;
    }

    .reference-box ul li:nth-of-type(4),
    .reference-box ul li:nth-of-type(8) {
        margin-bottom: 0;
    }
}

/*HOVEREFFEKTE*/
.reference-box ul li:hover {
    transform: scale(105%);
}