/* Map Design */
/* Text */
.st1 {
    fill:var(--e-global-color-55cce9f);
}

.st5 {
    fill:var(--e-global-color-secondary);
}

/* Layout */
.map-shortcode {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: stretch;
    color: var(--e-global-color-55cce9f);
}

.map-shortcode > div {
    flex-basis: auto;
    width: 50%;
}

.map-list {
    background-color: var(--e-global-color-primary );
}

/* Map */
.st2 {
    fill: var(--e-global-color-primary);
    stroke: var(--e-global-color-secondary);
    stroke-linejoin: round;
    stroke-width: 4.96;
}

.highlight .st2,
.gemeinde:hover .st2 {
    fill: var(--e-global-color-secondary);
    stroke: var(--e-global-color-primary);
    transition: all 0.4s ease-in-out;
    cursor: pointer;
}

/*Line*/
.st3 {
    fill:var(--e-global-color-text);
    stroke: var(--e-global-color-text);
}

/*Lake*/
.st4 {
    fill:var(--e-global-color-accent);
}

/* */

.map--click {
    display: flex;
    justify-content: flex-end;
}

.map {
    padding: 5% 20px;
    cursor: pointer;
    /*width: calc(var(--wp--style--global--wide-size) / 2);*/
    width: 90%;
}

.map svg {
    max-width: 1000px;
}

/* Text */
.sv-filter-text {
    color: var(--e-global-color-primary );
} 

/* Betriebe Auflistung */
.betriebe {
    display: flex;
    flex-direction: column;
    width: calc(var(--wp--style--global--wide-size) / 2);
    max-width: 100%;
    padding: 20px;
}

.single-betrieb {
    display: none;
    border: dotted;
    border-width: 2px 0 0 0;
}

.single-betrieb p,
.betriebe-head p {
    margin: 10px 0;
    width: 100%;
    font-size: 1rem;
}

.single-betrieb p a  {
    font-size: 1rem;
}

.betriebe-head {
    display: flex;
    font-weight: 700;
}

p.betriebe-head-mobile {
    display: none;
}

.single-betrieb,
.betriebe-head {
    flex-direction: row;
    column-gap: 10px;
    position: relative;
    width: 100%;
}

.single-betrieb a.button {
    color: var(--e-global-color-55cce9f);
}

/* hide or display results */
.hidden.single-betrieb {
    border-width: 1px;
    border-color: black;
}

.show.show-language.show-name {
    display: flex;
}


/* Filter */
.map-form {
    border-bottom: 2px solid;
    overflow-x: hidden;
    padding: 20px;
    /*width: calc(var(--wp--style--global--wide-size) / 2);*/
}
.map-form,
.map-form-search {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
}

/* Titel Suche */
.map-form-search--label {
    font-weight: 700;
    padding: 10px  30px 10px 0;
}

/* Eingabefeld */
.map-form input,
.map-form input:focus-visible,
.map-form input:focus {
    background-color: var(--e-global-color-primary);
    padding: 10px 30px 10px 10px;
    border: solid white;
    border-width: 0 0 2px;
    border-radius: 0px;
    color: var(--e-global-color-55cce9f);
    outline: none;
}

.map-form input::placeholder {
    color: var(--e-global-color-55cce9f);
}

.map-form-search--label:-ms-input-placeholder, :-ms-input-placeholder,
.map-form-search--label::-ms-input-placeholder, ::-ms-input-placeholder,
.map-form-search--label::placeholder,
.map-form-search--label:-ms-input-placeholder,
.map-form-search--label::-ms-input-placeholder,
::placeholder,
:-ms-input-placeholder,
::-ms-input-placeholder {
    font-weight: 700;
    opacity: 1;
}

/* Gemeinde-Auswahl Feld */
.map-form select {
    color: var(--e-global-color-primary);
    width: 190px;
    border-radius: 0;
    padding: 10px 30px 10px 10px;
    background: var(--e-global-color-55cce9f);
}

.map-form select,
.map-form select:focus-visible,
.map-form section:focus {
    border: none;
    outline: none;
}

.sv-filter-text {
    margin: 0 0 5%;
}

.sv-filter-text h3{
    color: var(--e-global-color-primary )!important;
}
*/
/* Responsive */

@media (max-width:1025px) { /* big landscape tablets, laptops, and desktops */ }
@media (max-width:1281px) { /* hi-res laptops and desktops */ }

/* tablet, landscape iPad, lo-res laptops ands desktops */
@media (max-width:1200px)  {
    .betrieb
     {
        grid-template-columns: repeat(auto-fill, calc(50% - 20px));
    }
}

/* portrait tablets, portrait iPad, e-readers (Nook/Kindle), landscape 800x480 phones (Android) */ 
@media (max-width:821px)  {
    .map {
        display: none;
    }

    .map--click {
        display: none;
    }

    .map-shortcode > div {
        width: 100%;
    }

    .betriebe {
        width: 100%;
    }

    .single-betrieb {
        flex-direction: column;
        padding: 0.5rem 0;
    }

    .single-betrieb p {
        margin: 0;
    }

    .betriebe-head p {
        display: none;
    }

    p.betriebe-head-mobile {
        display: inline;
    }

    }

/* smartphones, portrait iPhone, portrait 480x320 phones (Android) */
@media (max-width:320px)  {  }

/* smartphones, Android phones, landscape iPhone */ 
@media (max-width:480px)  {
    .map-form {
        flex-direction: column;
        padding-bottom: 5%;
    }

    .map-form, .map-form-search {
        flex-direction: column;
        align-items: flex-start;
    }

    .betrieb {
        grid-template-columns: repeat(auto-fill, calc(100%));
    }

    .map-form-search, #map-search, #canton, #language {
        width: 100%;
    }

}
