/* Standorte */
.locations {
    box-sizing: border-box;
    margin: 0 auto;
    max-width: 1920px;
    padding: 3rem 1.5rem 3rem 3rem;
}

.locations .locations-map,
.locations .locations-list {
    float: left;
}

.locations .locations-map {
    width: 32%;
}

.locations .locations-map .map {
    position: relative;
    width: calc(100% - 3rem);
}

.locations .locations-map .map img.pin {
    background-position: center 7px;
    background-repeat: no-repeat;
    background-size: 50% auto;
    cursor: pointer;
    height: 50px;
    left: 0;
    margin-top: -47px; /* etwas Abzug wegen dem Pin Schatten */
    position: absolute;
    top: 0;
    transform: translateX(-26%); /* etwas Abzug um den Pin korrekt auszurichten */
}

.locations .locations-map .map img.pin-main {
    background-position: center 8px;
    height: 60px;
    margin-top: -56px; /* etwas Abzug wegen dem Pin Schatten */
    transform: translateX(-32%); /* etwas Abzug um den Pin korrekt auszurichten */
}

.locations .locations-map .map img:first-child {
    height: auto;
    width: 100%;
}

.locations .locations-list {
    width: 68%;
}

.locations .locations-list .location {
    background-color: transparent;
    border-radius: .1rem;
    box-sizing: border-box;
    float: left;
    margin: 0 1rem 1rem 0;
    padding: .5rem;
    transition: background-color .3s ease-in-out;
    width: calc(25% - 1rem);
}

.locations .locations-list .location.active,
.locations .locations-list .location:hover {
    background-color: rgba(227, 225, 209, .75);
}

.locations .locations-list .location:nth-child(4n + 1) {
    clear: both;
}

.locations .locations-list .location a,
.locations .locations-list .location p,
.locations .locations-list .location span,
.locations .locations-list .location strong {
    font-size: .8rem !important;
    line-height: 1.05rem !important;
}

.locations .locations-list .location span {
    display: block;
}

.locations .locations-list .location span.mb {
    margin-bottom: .5rem;
}

.locations .locations-list .location p > strong:nth-of-type(1) {
    display: inline-block;
    font-size: .9rem;
    margin-bottom: .5rem;
}

.locations .locations-list .location p > strong:nth-of-type(2) {
    display: inline-block;
    margin-top: .5rem;
}

@media (max-width: 1449px) {
    .locations {
        padding: 3rem;
    }

    .locations .locations-map {
        display: none;
    }

    .locations .locations-list {
        float: none;
        margin: -1rem;
        width: calc(100% + 2rem);
    }

    .locations .locations-list .location {
        background-color: transparent !important;
        border-top: 1px solid #e8ebee;
        margin: 1rem;
        padding: 2rem 0 0;
        width: calc(25% - 2rem);
    }

    .locations .locations-list .location:nth-child(1),
    .locations .locations-list .location:nth-child(2),
    .locations .locations-list .location:nth-child(3),
    .locations .locations-list .location:nth-child(4) {
        border-top: none;
        padding-top: 0;
    }
}

@media (max-width: 1050px) {
    .locations {
        padding: 2rem;
    }

    .locations .locations-list .location {
        width: calc(33.333% - 2rem);
    }

    .locations .locations-list .location:nth-child(3n + 1) {
        clear: both;
    }

    .locations .locations-list .location:nth-child(4n + 1) {
        clear: none;
    }

    .locations .locations-list .location:nth-child(4) {
        border-top: 1px solid #e8ebee;
        padding-top: 2rem;
    }
}

@media (max-width: 800px) {
    .locations .locations-list {
        margin: -.5rem;
        width: calc(100% + 1rem);
    }

    .locations .locations-list .location {
        margin: .5rem;
        padding-top: 1rem;
        width: calc(50% - 1rem);
    }

    .locations .locations-list .location:nth-child(2n + 1) {
        clear: both;
    }

    .locations .locations-list .location:nth-child(3n + 1) {
        clear: none;
    }

    .locations .locations-list .location:nth-child(3),
    .locations .locations-list .location:nth-child(4) {
        border-top: 1px solid #e8ebee;
        padding-top: 1rem;
    }
}

@media (max-width: 576px) {
    .locations .locations-list {
        margin: 0 0 -2rem;
        width: 100%;
    }

    .locations .locations-list .location {
        border-top: 1px solid #e8ebee !important;
        float: none;
        margin: 0 0 2rem;
        padding: 2rem 0 0 !important;
        width: 100%;
    }

    .locations .locations-list .location:first-child {
        border-top: none !important;
        padding-top: 0 !important;
    }

    .locations .locations-list .location a,
    .locations .locations-list .location p,
    .locations .locations-list .location strong,
    .locations .locations-list .location p > strong:nth-of-type(1),
    .locations .locations-list .location p > strong:nth-of-type(2) {
        font-size: inherit;
        line-height: inherit;
    }
}

/* Ansprechpartner Teaser */
.contact-person > div {
    align-items: center;
    display: flex;
}

.contact-person > div picture {
    border-radius: .1rem;
    margin-right: 1rem;
    width: calc(33.333% - 1rem);
}

.contact-person > div picture img {
    width: 100%;
}

.contact-person > div .text {
    margin-left: 1rem;
}

.contact-person > div .text h3 {
    margin-bottom: 0;
}

.contact-person > div .text p + p {
    margin-top: .5rem;
}

@media (max-width: 991px) {
    .contact-person > div {
        display: block;
    }

    .contact-person > div picture {
        margin-right: 0;
        width: 60%;
    }

    .contact-person > div .text {
        margin-left: 0;
        margin-top: 2rem;
        width: 100%;
    }
}

@media (max-width: 767px) {
    .contact-person > div picture {
        width: 100%;
    }
}
