.single-reference .section-post-header{
    display: none;
}
#references{
    min-height: 600px;
}
.reference-background {
    background-color: #EBEBEB;
}

.reference-filter {
    display: flex;
    align-items: center;
    position: relative;
    height: 70px;
    color: #003e75;
}

.reference-filter>div:first-child {
    display: flex;
    align-items: center;
    color: #003e75;
    font-weight: bold;
    font-size: 16px;
    line-height: 19px;
}

.reference-filter>div:first-child>div:not(:last-child) {
    margin-right: 70px;
}

.reference-filter>div:last-child {
    margin-left: auto;
    color: #565655 !important;
}

/* Dropdowns */
.reference-filter .dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
    height: 70px;
    cursor: pointer;
}

.reference-filter .dropdown svg {
    display: inline-block;
    width: 15px;
    margin-right: 10px;
}

.reference-filter .dropdown:hover svg {
    transform: scale(-1);
}

.reference-filter .dropdown>span:first-child {
    height: 70px;
    display: flex;
    align-items: center;
}

.reference-filter .dropdown-content {
    display: none;
    position: absolute;
    background-color: #FEFEFE;
    min-width: 340px;
    box-shadow: 3px 2px 6px -2px rgba(147, 147, 145, 0.5);

    z-index: 1;
    top: 100%;
}

.reference-filter .dropdown-content .filter-btn {
    padding: 15px 30px;
    padding-left: 60px;
    border-bottom: 1px solid rgba(86, 86, 85, 0.15);
    display: flex;
    align-items: center;
}

.reference-filter .dropdown-content .filter-btn .checkmark {
    left: 30px;
}

.reference-filter .dropdown-content .filter-btn-child {
    margin-left: 30px;
}

.reference-filter .dropdown-content .filter-btn.hidden {
    display: none;
}


.reference-filter .dropdown:hover .dropdown-content {
    display: block;
}

.ref-item {
    width: 100%;
    margin-bottom: 50px;
}
.ref-item:last-child{
    margin-bottom: 0;
}

.reference-teaser {
    display: flex;
    align-items: flex-start;
    padding-top: 50px;
    padding-bottom: 50px;
    gap: 50px;
}
html .reference-teaser li{
    margin-bottom: 5px;
    line-height: 24px;
}
.reference-teaser ul{
    margin: 10px 0 0px 18px;
}

.reference-teaser .preheader,
.reference-header .preheader {
    line-height: 24px !important;
    max-width: 75%;
}
.reference-header .mobile{
    display: none;
}
.reference-header .desktop{
    display: block;
}
.reference-header .mobile img{
    height: auto;
}

.reference-teaser>* {
    width: 33%;
}

.reference-teaser__header {
    display: flex;
    align-items: baseline;
    padding-top: 50px;
}
@media only screen and (max-width: 991px) {
    .reference-teaser__header {
        padding-bottom: 35px;
    }
    .reference-teaser p{
        margin-bottom: 15px;
    }
}
.reference-teaser__header>div:first-child>img {
    min-width: 40px;
    max-width: none;
    width: auto;
    height: 70px;
}

.reference-teaser__image {
    display: flex;
    align-items: center;
}

.reference-teaser__image-right {
    order: 1;
}

.reference-teaser__image>img {
    width: 100%;
    height: auto;
}

.reference-teaser h2 {
    margin-bottom: 30px;
}

/* Checkbox */
.filter-btn {
    display: block;
    position: relative;
    padding-left: 32px;
    font-weight: bold;
    font-size: 16px;
    line-height: 19px;
    cursor: pointer;
    user-select: none;
    margin-bottom: 0;
}

.filter-btn .checkmark {
    position: absolute;
    left: 0px;
    width: 22px;
    height: 22px;
    background: transparent;
    border: 2px solid #003E75;
    border-bottom-right-radius: 7px;
}

.filter-btn .checkmark:after {
    content: "";
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyBpZD0iRWJlbmVfMiIgZGF0YS1uYW1lPSJFYmVuZSAyIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMiAyMiI+CiAgPGRlZnM+CiAgICA8c3R5bGU+CiAgICAgIC5jbHMtMSB7CiAgICAgICAgZmlsbDogbm9uZTsKICAgICAgfQoKICAgICAgLmNscy0yIHsKICAgICAgICBmaWxsOiAjMDAzZTc1OwogICAgICB9CiAgICA8L3N0eWxlPgogIDwvZGVmcz4KICA8ZyBpZD0iRWJlbmVfMS0yIiBkYXRhLW5hbWU9IkViZW5lIDEiPgogICAgPHJlY3QgY2xhc3M9ImNscy0xIiB3aWR0aD0iMjIiIGhlaWdodD0iMjIiLz4KICAgIDxwb2x5Z29uIGNsYXNzPSJjbHMtMiIgcG9pbnRzPSI5LjI5IDE1LjY4IDUuMjYgMTEuMjYgNi43NCA5LjkyIDkuMzEgMTIuNzMgMTUuMjcgNi4zMiAxNi43NCA3LjY5IDkuMjkgMTUuNjgiLz4KICA8L2c+Cjwvc3ZnPg==);
    background-size: 22px 22px;
    background-repeat: no-repeat;
    background-position: center center;
    z-index: 50;
}

.reference-filter>div:first-child  .filter-btn.selected{
    color:#e6581c;
} 


.filter-btn.selected .checkmark:after {
    opacity: 1;
}

.filter-btn.selected .checkmark:after {
    opacity: 1;
}

.reference-teaser__margin-right {
    margin-right: 125px;
}

.reference-teaser__margin-left {
    margin-left: 125px;
}

.reference-details {
    padding-top: 40px;
    padding-bottom: 40px;
}

.reference-details h2 {
    margin-bottom: 30px;
}

.reference-details__content {
    display: flex;
    word-break: break-word;
    font-size: 17px;
}

.reference-details__content>div {
    width: calc((100% / 3) - 15px);
    margin-right: 15px;
}

.reference-details__content>div:last-child {
    width: calc(100% / 3);
}

.reference-details__content ul {
    margin: 0 0 15px 18px;
}

.reference-details__quote {
    background-color: #003E70;
    color: white;
    padding: 30px;
    font-size: 17px;
    letter-spacing: 0;
    line-height: 28px;
}

.reference-details__quote p {
    font-weight: bold;
    margin-bottom: 30px;
}

.reference-filter-div{
    margin-bottom: 50px;
}

@media only screen and (max-width: 991px) {
    .reference-filter {
        padding: 25px;
    }

    .reference-filter>div:first-child>div:not(:last-child) {
        margin-right: 25px;
    }

    .reference-teaser {
        /* padding: 50px 25px; */
        flex-wrap: wrap;
    }

    .reference-teaser>* {
        width: 100%;
    }

    .reference-teaser__image>img {
        margin-bottom: 50px;
    }

    .reference-teaser__image-right {
        order: 0;
        margin-right: 0;
    }

    .reference-teaser__margin-left {
        margin-left: 0;
    }
    .reference-header .mobile{
        display: block;
    }
    .reference-header .desktop{
        display: none;
    }
    .reference-header .preheader{
        margin-bottom: 5px;
    }
}

@media only screen and (max-width: 767px) {

    .reference-filter,
    .reference-filter>div:first-child,
    .reference-filter .dropdown {
        display: block;
        height: 100%;
    }

    .reference-filter>div:first-child>div {
        margin-bottom: 20px;
    }


    .filter-btn {
        padding-left: 0;
    }

    .reference-details__quote {
        margin-top: 50px;
    }

    .reference-details__content {
        flex-wrap: wrap;
    }

    .reference-details__content>div,
    .reference-details__content>div:last-child {
        width: 100%;
        margin-right: 0;
    }

    .reference-filter .dropdown:hover .dropdown-content {
        /* revert desktop styles */
        display: none;
    }

    .reference-filter .dropdown:hover svg {
        /* revert desktop styles */
        transform: scale(1);
    }

    .reference-filter .dropdown.open .dropdown-content {
        display: block;
        margin-top: 10px;
    }

    .reference-filter .dropdown.open svg {
        transform: scale(-1);
    }
    .reference-filter .dropdown-content {
        min-width: unset;
    }
    .reference-teaser__header>div:first-child>img{
        width: auto;
        height: 50px;
    }
}