#btn {
    position:absolute;
    top:10px;
    right:10px;
    z-index:9000;
    background:white;
}

#map {
    position: relative;
    height: 100vh;
    display: block;
    /*font-family: "Akkurat",sans-serif;*/
    font-family: Helvetica;
    font-weight: normal;
    font-style: normal;
}

.leaflet-tile-pane {
    filter: grayscale(1);
}

.not-found, .wrong-type, .wrong-material, .invisible {
    display: none !important;
}

/* Filter */
#map .leaflet-control-layers, #map .leaflet-control-layers-toggle {
    border: 0;
    background: transparent;
    border-radius: 0;
}

#map .leaflet-right .leaflet-control {
    margin-right: 0;
}

#map .leaflet-top .leaflet-control {
    margin-top: 0;
}

#map .leaflet-control-zoom{
    margin-top: 10px !important;
}

#map .leaflet-control-layers-toggle {
    background-image: url(../img/filter-toggler-bg.png);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 57%;
    width: 43px;
    height: 43px;
    margin-right: 0;
    margin-top: 0;
    background-color: #ffffff;
    text-indent: -10000rem;
    overflow: hidden;
    cursor: pointer;
    border-radius: 3px;
    border: 2px solid rgba(0,0,0,0.2);
    background-clip: padding-box;
}

#map .leaflet-control-layers-toggle:hover {
    background-color: #f4f4f4;
}

#btn.leaflet-control-layers-closeBtn{
    width: 20px;
    height: 20px;
    color: #ffffff;
    background-color: transparent;
    border: 0;
    cursor: pointer;
    right: 296px !important;
    top: 16px !important;
    overflow: hidden;
    font-size: 19px;
    line-height: 0;
    text-align: center;
    padding: 0 !important;
}

#btn.leaflet-control-layers-closeBtn:hover{
    color: #adadad;
}

.leaflet-container {
    font-family: "Akkurat",sans-serif;
    font-size: 0.75rem;
    line-height: 1.5;
}

#map .leaflet-control-layers-expanded {
    padding: 0;
    margin-top: 10px !important;
    margin-bottom: 10px !important;
    height: 0px;
    background: #3b3b3b;
    width: 312px;
    position: relative;
    margin-right: 10px !important;
    transition: all 0.6s ease-in-out;
    display: block !important;
    overflow: hidden;
    opacity: 0%;
}

#map .leaflet-control-layers-expanded.open {
    min-height: calc(100vh - 22px);
    opacity: 100%;
}

#map .leaflet-control-layers .leaflet-control-layers-list {
    height: calc(100% - 160px);
    color: #ffffff;
    padding: 43px 20px 80px 30px;
    background: #3b3b3b;
    box-shadow: 0 1px 2px rgba(60,64,67,0.3),0 2px 6px 2px rgba(60,64,67,0.15);
    overflow: auto;
}

#map .leaflet-control-layers-overlays {
    position: relative;
}

#map .leaflet-control-layers-expanded .item-wrapper{
    overflow-y: auto;
    display: block;
    /*max-height: 69vh;*/
    min-height: 200px;
    margin-bottom: 60px;
}

#map .leaflet-control-layers-overlays #buildings_header,
#map .leaflet-control-layers-overlays #manufacturers_header {
    position: absolute;
    width: 100%;
    top: 50px;
    left: 0;
    background: #3b3b3b;
}

#map .leaflet-control-layers-overlays #buildings_header {
    top: 80px;
    padding-bottom: 20px;
}

#map .leaflet-control-layers-overlays #buildings_header div,
#map .leaflet-control-layers-overlays #manufacturers_header div {
    font-weight: 500;
    font-size: 14px;
    position: relative;
    padding-left: 20px;
}

#map .leaflet-control-layers-overlays #manufacturers_header div:before {
    background-image: url(../img/list-dot-hersteller.svg);
    width: 13px;
    height: 13px;
    content: "";
    display: block;
    background-repeat: no-repeat;
    background-size: cover;
    position: absolute;
    left: 0;
    top: 2px;
}

#map .leaflet-control-layers-overlays #buildings_header div:before {
    background-image: url(../img/list-dot-bauwerk.svg);
    width: 10px;
    height: 10px;
    content: "";
    display: block;
    background-repeat: no-repeat;
    background-size: cover;
    position: absolute;
    left: 2px;
    top: 2px;
}

#map #search_form {
    height: 90px;
}

#map #search_form input {
    padding: 0.375rem 0;
    text-indent: 10px;
    height: 25px;
    line-height: 1.5;
    color: #3b3b3b;
    background-color: #fff;
    background-clip: padding-box;
    border-radius: 0;
    -webkit-transition: all .15s ease-in-out;
    font-size: 13px;
    border: 0;
    transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out,-webkit-box-shadow .15s ease-in-out;
}

#map #search_form input:focus {
    outline: 0;
    border-color: #ca7406;
    -webkit-box-shadow: 0 0 0 2px #ca7406;
    box-shadow: 0 0 0 2px #ca7406;
}

#map #search_form button {
    transition: all .15s ease-in-out;
    padding: 0;
    height: 37px;
    border-radius: 0;
    color: #ffffff;
    background-color: transparent;
    background-image: url(../img/lupe.svg);
    background-repeat: no-repeat;
    background-size: 80%;
    background-position: 4px center;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border: 0;
    background-clip: padding-box;
    margin-left: 6px;
}

#map #search_form button:hover {
    background-image: url(../img/lupe_aktiv.svg);
}

#map .leaflet-popup-content {
    margin: 10px 10px 25px 16px;
    width: 94% !important;
}

#map .leaflet-popup-content-wrapper {
    padding: 10px 10px 30px 10px;
    text-align: left !important;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(60,64,67,0.3),0 2px 6px 2px rgba(60,64,67,0.15);
    max-height: 342px;
    min-width: 410px;
    overflow: hidden;
}

#map .leaflet-popup-content .block p{
    margin-top: 0;
}

#map.leaflet-container a.leaflet-popup-close-button {
    text-align: center;
    font: 24px/24px Tahoma, Verdana, sans-serif;
    position: absolute;
    top: 9px;
    right: 9px;
    border: none;
    width: 24px;
    height: 24px;
    color: #b0b0b0;
    transition: all 0.3s ease;
}

#map.leaflet-container a.leaflet-popup-close-button:hover {
    color: #3b3b3b;
}

#map .leaflet-popup-content .block p,
#map .leaflet-popup-content .block ol li,
#map .leaflet-popup-content .block ul li{
    font-weight: 400;
    font-size: 15px;
    line-height: 22px;
    margin-bottom: 10px;
    color: #626262;
}

#map .leaflet-popup-content .block ol,
#map .leaflet-popup-content .block ul{
    margin-bottom: 9px;
}

#map .leaflet-popup-content .block a{
    text-decoration: underline;
    color: #626262;
}

#map .leaflet-popup-content .block a:hover{
    color: #000000;
}

#map .leaflet-popup-content .block.infos{
    font-size: 14px !important;
    max-height: 156px;
    overflow-y: auto;
    padding-right: 26px;
}

#map .leaflet-popup-content .block.infos p,
#map .leaflet-popup-content .block.infos a,
#map .leaflet-popup-content .block.infos li{
    font-size: 14px !important;
}

#map .leaflet-popup-content .block.infos ol,
#map .leaflet-popup-content .block.infos ul{
    padding-left: 25px;
    margin-top: 0;
    margin-bottom: 9px;
}

#map .leaflet-popup-content .block ol li{
    margin-bottom: 3px;
}

#map .leaflet-popup-content .block ul li{
    list-style-type: square;
    margin-bottom: 3px;
}

#map .leaflet-popup-content .block.title {
    font-weight: 400;
    display: block;
    font-size: 19px;
    margin-bottom: 10px;
    color: #000000;
    line-height: 26px;
    max-width: 90%;
}

/*#map .leaflet-popup-content .datenblatt a{*/
/*    background-color: #3b3b3b;*/
/*    padding-top: 0.55rem;*/
/*    padding-bottom: 0.54rem;*/
/*    color: #ffffff;*/
/*    font-size: 12px;*/
/*    display: block;*/
/*    text-align: center;*/
/*    text-decoration: none;*/
/*    width: 51%;*/
/*    text-transform: uppercase;*/
/*    letter-spacing: 0.03rem;*/
/*    margin-top: 11px;*/
/*    transition: all 0.3s ease;*/
/*}*/

/*#map .leaflet-popup-content .datenblatt a:hover{*/
/*    background-color: #6b6b6b;*/
/*    color: #ffffff;*/
/*}*/

#map .leaflet-popup-content .block.website{
    font-weight: 400;
    font-size: 15px;
    line-height: 26px;
    margin-bottom: 3px;
    color: #626262;
    position: relative;
    padding-left: 22px;
}

.leaflet-pane.leaflet-labels-pane{
    -webkit-filter: grayscale(100%);
    filter: grayscale(100%);
}

#map .leaflet-popup-content .block.website a{
    color: #626262;
}

#map .leaflet-popup-content .block.website a:hover{
    color: #000000;
}

#map .leaflet-popup-content .block.website:before{
    content: "";
    display: block;
    width: 19px;
    height: 19px;
    background-image: url(../img/website-icon.svg);
    background-repeat: no-repeat;
    background-size: 98%;
    position: absolute;
    left: -1px;
    top: 4px;
}

#map .leaflet-popup-content .block.spacer {
    display: block;
    height: 13px;
    /*border-bottom: 1px solid #f5f5f5;*/
    width: 100%;
    /*margin-bottom: 13px;*/
}

.form-control {
    font-family: system-ui, sans-serif;
    font-size: 2rem;
    font-weight: bold;
    line-height: 1.1;
    display: grid;
    grid-template-columns: 1em auto;
    gap: 0.5em;
}

input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    background-color: #fff;
    font: inherit;
    width: 1.15em;
    height: 1.15em;
    border: 0.15em solid currentColor;
    border-radius: 0.15em;
    transform: translateY(-0.075em);
    display: grid;
    place-content: center;
    position: absolute;
    right: calc(10% + 8px);
}

.form-control + .form-control {
    margin-top: 1em;
}

input[type="checkbox"]:before {
    content: "✓";
    width: 0.65em;
    height: 0.65em;
    transform: scale(0);
    transition: 120ms transform ease-in-out;
    border-radius: 0;
    color: #ca7406;
    line-height: 0.4rem;
    font-weight: 700;
    text-indent: -2px;
}

input[type="checkbox"]:checked:before {
    transform: scale(1);
}

.item-wrapper{
    padding-top: 33px;
}

.item-wrapper > div > div.active,
.item-wrapper > div > div.inactive{
    background-color: #6b6b6b;
    font-size: 14px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 5px 0 6px 15px;
    transition: all 0.3s ease;
    width: calc(100% - 30px);
    background-image: url(../img/toggle_minus.png);
    background-repeat: no-repeat;
    background-size: 12px 12px;
    background-position: 95% 10px;
}

.item-wrapper > div > div:hover{
    background-color: #000000 !important;
}

.item-wrapper > div > div.inactive{
    background-color: #444444;
    color: #818181;
    background-image: url(../img/toggle_plus.png);
}

.item-wrapper ul{
    padding-left: 0;
}

.item-wrapper li{
    list-style: none;
    display: block;
    margin-bottom: 10px;
    position: relative;
    cursor: pointer;
    font-size: 13px;
    line-height: 22px;
    margin-top: 10px;
    padding-left: 38px;
}

.item-wrapper li:hover{

    color: #afafaf;
}

.item-wrapper li div:first-child{
    font-weight: 600;
    font-size: 0.8rem;
}

.item-wrapper li:before{
    content: "";
    display: block;
    width: 10px;
    height: 10px;
    background-repeat: no-repeat;
    background-size: cover;
    position: absolute;
    left: 15px;
    top: 5px;
}

.item-wrapper .manufacturers li:before{
    background-image: url(../img/list-dot-hersteller.svg);
    width: 13px;
    height: 13px;
}

.item-wrapper .buildings li:before{
    background-image: url(../img/list-dot-bauwerk.svg);
}

.animation-forward {
    animation-name: drehbuch-forward;
    animation-duration: 1s;
    animation-fill-mode: forwards;
}

.animation-backward {
    animation-name: drehbuch-backward;
    animation-duration: 1s;
    animation-fill-mode: forwards;
}

@keyframes drehbuch-forward {
    from {
        transform: scale(1, 1);
    }
    to {
        transform: scale(1.2, 1.2);
    }
}

@keyframes drehbuch-backward {
    from {
        transform: scale(1.2, 1.2);
    }
    to {
        transform: scale(1, 1);
    }
}

.row {
    display: flex;
    flex-wrap: wrap;
}

.col-8 {
    flex: 0 0 66.666%;
    max-width: 66.666%;
}

.col-6 {
    flex: 0 0 60%;
    max-width: 60%;
}

.col-5 {
    flex: 0 0 50%;
    max-width: 50%;
}

.col-4 {
    flex: 0 0 33.333%;
    max-width: 33.333%;
}

.col-2 {
    flex: 0 0 calc(10% - 4px);
    max-width: calc(10% - 4px);
}

.col-10 {
    flex: 0 0 86%;
    max-width: 86%;
}

.col-12 {
    flex: 0 0 100%;
    max-width: 100%;
}

.marker-cluster-small {
    background-color: rgba(181, 181, 181, 0.6) !important;
}

.marker-cluster-small div {
    background-color: rgba(110, 110, 110, 0.6) !important;
}

.marker-cluster-medium {
    background-color: rgba(87, 87, 87, 0.6) !important;
}

.marker-cluster-medium div {
    background-color: rgba(241, 241, 241, 0.6) !important;
}
/* Responsive Design */
@media only screen and (max-width: 1024px) {

    #map .leaflet-popup-content .block.infos{
        display: none;
    }

    .leaflet-popup-content .row {
        display: block;
        flex-wrap: wrap;
    }

    #map .leaflet-popup-content-wrapper {
        min-width: 310px;
    }

    #map .leaflet-popup-content .datenblatt a{
        width: 95%;
    }

    #map .leaflet-popup-content .block.title {
        font-size: 17px;
        margin-bottom: 8px;
        line-height: 24px;
    }

    #map .leaflet-popup-content .block p, #map .leaflet-popup-content .block ul li {
        font-size: 14px;
        line-height: 20px;
    }

    #map .leaflet-control-layers-expanded {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        margin-right: 0 !important;
    }

    #map .leaflet-control-layers-expanded.open {
        min-height: calc(100vh);
        opacity: 100%;
    }

    #btn.leaflet-control-layers-closeBtn {
        right: 285px !important;
        top: 8px !important;
    }

    #map .leaflet-control-layers .leaflet-control-layers-list {
        height: 100%;
        color: #ffffff;
        padding: 14px 20px 80px 37px;
        overflow: auto;
    }

    .col-5 {
        flex: 0 0 100%;
        max-width: 100%;
    }

}

@media only screen and (max-width: 480px) and (orientation : portrait) {

    .leaflet-right {
        left: 0;
        right: unset;
        width: 100%;
    }

    #map .leaflet-control-layers-expanded.open {
        min-height: 280px;
    }

    #btn.leaflet-control-layers-closeBtn {
        right: 5px !important;
        top: 5px !important;
    }

    #map .leaflet-control-layers .leaflet-control-layers-list {
        /*height: 100vh;*/
        padding-right: 0;
        overflow: auto;
    }

    #map .leaflet-control-layers-expanded {
        width: 100%;
    }

    #map .leaflet-control-layers-expanded .item-wrapper{
        position: relative;
        top: 0;
        right: 11px;
        margin-left: 10px;
        overflow-y: scroll;
    }
    #map #search_form button {
        background-size: 70%;
    }

    .item-wrapper > div > div.active, .item-wrapper > div > div.inactive {
        width: 85%;
    }

    input[type="checkbox"]{
        right: calc(12.8%);
    }
}

.leaflet-control-container .leaflet-top,
.leaflet-control-container .leaflet-bottom {
    transform: translate3d(0px, 0px, 0px) !important;
}

ul { list-style-type: none; padding-left: 20px; display: none; }
li { margin: 4px 0; }
li > span { font-weight: bold; cursor: pointer; }
#gwpValue { font-weight: bold; margin-left: 10px; }
.menu-section {
    margin-bottom: 20px;
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 6px;
}
.menu-section h3 {
    margin: 0 0 10px 0;
    cursor: pointer;
    background: #f2f2f2;
    padding: 5px;
}