section#interactive-map {
    display: flex;
    flex-direction: row-reverse;
    position: relative;
    margin-bottom: 2rem;
}
section#interactive-map .land-list {
    display: block;
    height: 100%;
    width: 30%;
}
section#interactive-map .land-list ul {
    padding: 20px;
    margin: 0 0 0 2rem;
}
section#interactive-map .land-list ul li.land-tx {
    display: table;
    padding: 0.5rem 1rem 0.7rem;
    margin: 0;
    cursor: pointer;
    width: 100%;
    text-align: left;
    text-decoration: underline;
}
section#interactive-map .land-list ul li.land-tx:hover,
section#interactive-map .land-list ul li.land-tx.on {
    background-color: #d1d1d1;
}
section#interactive-map .land-list ul li.land-tx span {
    display: table-cell;
    vertical-align: middle;
}

section#interactive-map .mp {
    position: relative;
    width: 70%;
}
section#interactive-map #map svg {
    width: 100%;
    height: auto;
}
section#interactive-map #map svg path {
    fill-opacity: 1;
    stroke-opacity: 1;
    stroke-width: 0.5;
    stroke-linecap: round;
    cursor: pointer;
}

section#interactive-map .popup {
    visibility: hidden;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: auto;
    max-height: 100%;
    opacity: 0.9;
    background: white;
    color: black;
    z-index: 1;
    overflow: scroll;
    padding: 30px;
}
section#interactive-map .popup.show_popup {
    visibility: visible !important;
}
section#interactive-map .popup a.close_popup {
    cursor: pointer;
    position: absolute;
    right: 0; top: 0;
    padding: 10px 20px;
    font-size: 1.5em;
    font-weight: bold;
}
section#interactive-map .popup table {
    width: 100%;
}
section#interactive-map .popup th:not(:first-child) {
    width: 46% !important;
}
section#interactive-map .popup th:first-child {
    width: 8% !important;
}
section#interactive-map .popup td,
section#interactive-map .popup th {
    padding: 10px;
}
section#interactive-map .popup th,
section#interactive-map .popup td:first-child {
    color: #30658C;
    font-weight: bold;
}
section#interactive-map .popup td {
    vertical-align: top;
}
section#interactive-map .popup td:first-child {
    text-align: right;
}
section#interactive-map .popup th,
section#interactive-map .popup td:not(:first-child) {
    text-align: left;
}
section#interactive-map .popup td a {
    cursor: pointer;
    color: #30658C;
    text-decoration: underline;
    font-weight: bold;
}

/* media queries */
@media (max-width: 767px) {
    section#interactive-map {
        flex-direction: row;
        flex-wrap: wrap;
        display: block;
    }
    section#interactive-map .mp {
        width: 100%;
        position: relative;
    }
    section#interactive-map .land-list {
        width: 100%;
    }
    section#interactive-map .land-list ul {
        margin: 0 0 2rem 0;
        display: flex;
        flex-wrap: wrap;
    }
    section#interactive-map .land-list ul li.land-tx {
        width: unset;
    }
}
/*
@media (max-width: 600px) {
    section#interactive-map svg#bundesrepublik_deutschland {
        height: auto;
    }
    section#interactive-map .land-list ul li.land-tx {

    }
}
@media (max-width: 440px) {
    section#interactive-map .land-list ul li.land-tx {

    }
}
*/


.map-section .map-bottom .charge-btn {
    background-color: #f7a724 !important;
}
.switch .map-button {
    width: 50%;
    padding: 10px 0 !important;
    margin-bottom: 20px;
    line-height: 30px !important;
}
.switch .map-button:hover {
    cursor: pointer;
}
.switch .map-button.left {
    background: #f7a724 !important;
}
.switch .map-button.left:hover {
    background-color: #db9320 !important;
}
.switch .map-button.right {
    background: #006061 !important;
}
.switch .map-button.right:hover {
    background-color: #003738 !important;
}
.switch .map-button.right.charge-btn {
    padding: 10px 20px !important;
}
.switch .map-button a {
    color: white;
    position: relative;
}
.switch .map-button a .icon {
    background: left / contain no-repeat !important;
    height: 28px;
    width: 37px;
    display: inline-flex;
    margin-bottom: -5px;
}
.switch .map-button.right a .icon {
    background-image: url(https://www.terranus.de/wp-content/uploads/2022/03/group.png) !important;
}
.switch .map-button.left a .icon {
    background-image: url(https://www.terranus.de/wp-content/uploads/2022/03/home.png) !important;
}
@media (max-width: 767px) {
    .switch .map-button {
        width: 80%;
    }
}
@media (max-width: 479px) {
    .switch {
        display: block !important;
    }
}


#map-modal {
    margin: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    border: 4px solid #006061;
    border-radius: 6%;
    padding: 30px 42px;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    width: 370px;
    max-width: 80%;
}

@media screen and (min-width: 1280px) {
    #map-modal {
        transform: translate(-100%, -120%);
    }
}

#map-modal p {
    color: #006061;
    font-weight: 700;
    font-size: 1.6rem;
    line-height: 1.45;
    hyphens: auto;
}

#map-modal .title {
    color: #41a630;
    font-weight: 700;
}

#modal-wrapper {
    position: relative;
}

#modal-wrapper button {
    position: absolute;
    top: 0;
    left: 0;
    background: 0;
    border: 0;
    transform: translate(-110%, -150%);
    color: #006061;
    font-size: 2.5rem;
}

#modal-wrapper button svg {
    width: 2rem;
    height: 2rem;
}

#modal-wrapper a {
    text-decoration: underline;
    text-underline-offset: 2px;
    color: #006061;
}

li.land-tx.on span + span {
    text-decoration-color: #006061 !important;
}

li.land-tx.inverted.on span + span {
    text-decoration-color: #db9320 !important;
}