.mapping-container {
    box-sizing: border-box;
    background: #f8f5f0;
    width: 100%;
}

.mapping {
    width: 100%;
    position: relative;
    padding: 6rem 0; /* must match .location- bottom */
}

.mapping .heading {
    text-align: center;
    width: 100%;
}

.mapping .heading h2 {
    margin: 0;
    font-size: 250%;
}

.mapping .heading h2 + small {
    font-size: 100%;
}

.mapping .switch {
    text-align: center;
    margin: 2rem auto;
}

.mapping .switch button {
    appearance: none;
    background: transparent;
    padding: .65rem 1rem;
    font-weight: bold;
    border: 1px solid #e5e1d9;
    color: #787674;
}

.mapping .switch button + button {
    border-left: 0 none;
}

.mapping.active-bremen .switch .bremen,
.mapping.active-bremerhaven .switch .bremerhaven {
    background: #0f5c5a;
    color: #c7d103;
}

.mapping .switch button:first-child {
    border-radius: 4px /*0 0 4px*/;
}

.mapping .switch button:last-child {
    border-radius: 0 4px 4px 0;
}

.mapping .selector {
    display: none;
}

.mapping [class^=icon-] {
    position: absolute;
    width: 2rem;
    height: 2rem;
    margin-top: -1rem;
    margin-left: -1rem;
    background-image: url(/fileadmin/user_upload/neubau/GEWOBA_neubau_PIN.svg);
    background-position: center bottom;
    background-repeat: no-repeat;
    background-size: contain;
    -webkit-filter: drop-shadow(-5px 10px 10px rgba(0,0,0,0.1));
	filter: drop-shadow(-5px 10px 10px rgba(0,0,0,0.1));
    z-index: 1;
    cursor: pointer;
    transition: all .175s ease-in-out;
}
.icon-014{
  z-index: 3 !important;
}

.mapping [class^=icon-].active {
    background-image: url(/fileadmin/user_upload/neubau/GEWOBA_neubau_PIN_current.svg);
    transform: scale(1.15);
    -webkit-filter: drop-shadow(-4px 9px 10px rgba(0,0,0,0.2));
    filter: drop-shadow(-4px 9px 10px rgba(0,0,0,0.2));
    z-index: 2;

}

.mapping [class^=location-] {
    overflow: hidden;
    display: flex;
    justify-content: flex-start;
    flex-direction: column;
}

.mapping [class^=location] img {
    display: none;
}

.mapping [class^=location] .content-box {
    padding: 1rem 1.5rem;
    position: relative;
    display: flex;
    flex-direction: column-reverse;
}

.mapping [class^=location] .content-box a {
    border-bottom: 0 none;
}
.mapping [class^=location] .content-box p{
    margin-top: 0;
}
.mapping [class^=location] .content-box > .teaser,
.mapping [class^=location] .content-box > .btn {
    display: none;
}

.mapping.active-bremen .selector > img.bremerhaven,
.mapping.active-bremerhaven .selector > img.bremen {
    display: none;
}

.mapping.active-bremen div[class^=location-1],
.mapping.active-bremen .selector > div[class^=icon-1],
.mapping.active-bremerhaven div[class^=location-0],
.mapping.active-bremerhaven .selector > div[class^=icon-0] {
    display: none;
}

@media (max-width: 1280px) {
    .mapping {
      width: 100%;
      position: relative;
      padding: 6rem 0;
      max-width: 1140px;
    }
}
@media (max-width: 991px) {
    .mapping .locations {
        border-radius: .75rem;
        border: 1px solid #eee;
        background: #fcfcfc;
        overflow: hidden;
	display: flex;
	flex-wrap: wrap;
    }

    .mapping [class^=location-] {
        border-bottom: 1px solid #eee;
	width: 50%;
	border-right: 1px solid #eee;
	box-sizing: border-box;
    }

    .mapping [class^=location] .content-box {
	padding: 0.75rem;
        font-size: .9rem;
    }

    .mapping [class^=location] .content-box > span {
        color: #003a3a;
    }

    .mapping [class^=location] .content-box h3 {
        color: #003a3a;
        font-family: inherit;
        font-weight: bold;
        font-size: 100%;
        margin: 0;
        display: flex;
        align-items: center;
    }

    .mapping [class^=location] .content-box h3::after {
        content: " »";
        display: flex;
        justify-content: center;
        align-items: center;
        color: #D2E20A;
        width: 1.25rem;
    }
}


@media (min-width: 992px) {
    .mapping .switch {
        position: absolute;
        margin: 0;
        right: 0;
        top: 14rem;
    }

    .mapping.active-bremerhaven .switch {
        left: 0;
    }

    .mapping .switch button {
        padding: .65rem 1.5rem;
    }

    .mapping [class^=location-] {
        width: 400px;
        position: absolute;
        background: #fff;
        border-radius: .75rem;
        box-shadow: 0 0 2rem 0 rgba(0,0,0,0.15);
        bottom: 6rem; /* must match .selector padding */
        left: 0;
    }

    .mapping.active-bremerhaven [class^=location-] {
	top: 35%;
	left: 5%;
        bottom: auto;
    }

    .mapping [class^=location-]:not(.active) {
        display: none;
    }

    .mapping [class^=location] img {
        width: 100%;
        height: 280px;
        object-fit: cover;
        display: block;
    }

    .mapping [class^=location] .content-box {
        padding: 1.5rem;
        display: block;
        height: 240px;
    }

    .mapping [class^=location] .content-box > span {
        background: #c7d103;
        font-size: 0.875rem;
        padding: 2px 10px;
        display: inline-block;
        border-radius: 3px;
        margin-bottom: .5rem;
    }

    .mapping [class^=location] .content-box h3 {
        margin-bottom: .75rem;
    }

    .mapping [class^=location] .content-box > .teaser {
        display: block;
	overflow: hidden;
    }

    .mapping [class^=location] .content-box > .btn {
        background: #0f5c5a;
        color: #fff;
        border-radius: 5px;
        padding: .5rem 1rem;
        display: block;
        height: auto;
        position: absolute;
        bottom: 1.5rem;
        right: 1.5rem;
        left: 1.5rem;
        box-sizing: border-box;
        text-align: center;
        font-weight: bold;
    }

    .mapping .selector {
        display: flex;
	justify-content: flex-end;
        width: 55%;
        margin-left: 45%;
        position: relative;
        margin-top: 8rem;
        margin-bottom: 6rem;
    }

    .mapping.active-bremerhaven .selector {
        width: 55%;
        margin-left: 40%;
        margin-top: 20%;
	margin-right: 5%;
    }

    .mapping .selector img.bremen,
    .mapping .selector img.bremerhaven {
        width: 100%;
        height: 100%;
        display: block;
        -webkit-filter: drop-shadow(-20px 20px 15px rgba(0,0,0,0.15));
		filter: drop-shadow(-20px 20px 15px rgba(0,0,0,0.15));
    }
}


@media (min-width: 1280px) {
    .mapping .heading {
        width: 70%;
        position: absolute;
        right: 0;
    }

    .mapping.active-bremerhaven .heading {
	width: 100%;
    }

    .mapping .selector {
        width: 90%;
        margin-left: 10%;
        margin-top: 0;
        margin-bottom: 0;
    }

    .mapping.active-bremerhaven .selector {
        width: 45%;
        margin-left: 45%;
        margin-top: 20%;
        margin-right: 10%;
    }

    .mapping.active-bremerhaven [class^=location-] {
        top: 35%;
        left: 10%;
        bottom: auto;
    }
}

