:root {
    --background_gray: #E3E5E4;
    --text: #646363;
    --input_suggestion: #999999;
    --oewm_green: #006847;
    --green_hover_b: #003524;
    /* buttons */
    --green_hover_t: #66a491;
    /* text */
    /* --oewm_red: #8A0F3D; -- old */
    --oewm_red: #6e2349;
    /* --red_hover: #2e0514; -- old */
    --red_hover: #46162e;
    --scrollline: #E7E7E7;

    --spacing-sections-outer: 17px;
    --spacing-sections-between: 12px;

    /* --pad-content: 12px; */
}

html {
    height: -webkit-fill-available;
    padding: env(safe-area-inset);
    /* height: 100%; */
    position: fixed;
    top: 0;
    bottom: 0;
    width: 100%;
    -webkit-text-size-adjust: none;
    -webkit-text-size-adjust: 100% !important;
    -moz-text-size-adjust: 100% !important;
    -ms-text-size-adjust: 100% !important;
    /* overflow: hidden; */
}

body {
    margin: 0;
    padding: 0;
    /* height: 100%; */
    position: fixed;
    top: 0;
    bottom: 0;
    width: 100%;
    /* min-height: -webkit-fill-available; */
    overflow: hidden;
    image-rendering: -webkit-optimize-contrast;
}

.oewm-mapviewer-component-info {
    box-sizing: border-box;
    min-width: 395px;
    width: 480px;
    max-width: 40%;
}



/* ADD EU LOGO ======================= */

#eu-logo {
    position: absolute;
    bottom: 0;
    left: 0;
    overflow: hidden;
    height: auto;
    width: 230px;
    z-index: 1000;
    opacity: 0.85;
}

#eu-logo img {
    margin-top: auto;
    margin-right: auto;
    display: block;
    height: auto;
    width: 100%;
    object-fit: contain;    
}

/* ==================================== */

.oewm-mapviewer-component {
    position: fixed;
    top: 0;
    bottom: 0;
    width: 100%;
    overflow: hidden;
}

.oewm-mapviewer-component-map {
    height: calc(100% - 60px) !important;
    width: 100% !important;
    position: absolute !important;
    margin-top: 60px !important;
    overflow: hidden;
}

.map-full-height {
    height: 100% !important;
    margin-top: 0px !important;
}

#station_link, div.oewm-mapviewer-component a {
    cursor: pointer;
    text-decoration: underline;
    /* font-weight: bold; */
    font-style: italic;
    color: var(--oewm_green);
}

.oewm-mapviewer-component .leaflet-right a {
    text-decoration: none;
    font-style: normal;
}

#station_link:hover, div.oewm-mapviewer-component a:hover {
    color: var(--green_hover_t);
}


/*************************************
  Standard style of scrollbar
  *************************************/

/* Scrollbar for Firefox */

.scroller {
    scrollbar-color: var(--text) var(--scrollline);
    scrollbar-width: thin;
}

/* Scrollbar for Chrome, Edge Chromium, Safari, Vivaldi, and Opera */

.scroller::-webkit-scrollbar {
    width: 7px;
}

.scroller::-webkit-scrollbar-track {
    background: var(--scrollline);
}

.scroller::-webkit-scrollbar-thumb {
    border-left: 1px solid var(--scrollline);
    border-right: 1px solid var(--scrollline);
    background: var(--text);
}

.scroller::-webkit-scrollbar-thumb:hover {
    background: #414141;
}

.scroller::-webkit-scrollbar-thumb:active {
    background: #737373;
}

/*************************************
 Info Mobile
 *************************************/

.oewm-mapviewer-component-info.mobile-info {
    z-index: 1005;
    position: absolute;
    bottom: 0;
    left: 0;
    top: initial;
    min-width: unset;
    max-width: 100vw;

    /* in mapviewer-component */
    height: 180px !important;
    overflow: hidden;
    background: white;
    opacity: 1;
    transform: translateY(100%);
    transition: transform ease-out 0.4s;
}

.oewm-mapviewer-component-info.mobile-info.fullSize {
    height: calc(100% - 60px) !important;
    -webkit-transition: height 0.4s ease-in-out;
    -moz-transition: height 0.4s ease-in-out;
    -o-transition: height 0.4s ease-in-out;
    -ms-transition: height 0.4s ease-in-out;
    transition: height 0.4s ease-in-out;
}

.oewm-mapviewer-component-info.mobile-info.active {
    display: block;
    overflow: auto;
    transform: translateY(0);
    -webkit-transition: 0.4s ease-in-out;
    -moz-transition: 0.4s ease-in-out;
    -o-transition: 0.4s ease-in-out;
    -ms-transition: 0.4s ease-in-out;
    transition: 0.4s ease-in-out;
}

.oewm-mapviewer-component-info.mobile-info #hide-info .material-icons {
    transform: rotate(270deg);
}

.oewm-mapviewer-component-info.mobile-info #hide-info {
    display: none;
    /* opacity: 0;
    z-index: -1; */
}

#show-info.mobile-info {
    display: none;
    width: 60px;
    background-color: var(--oewm_green);
    border: 1px solid var(--oewm_green);
    border-bottom: 0px;
    height: 20px;
    position: absolute;
    bottom: 0px;
    right: 15px;
    top: initial;
    z-index: 1001;
    color: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, .25);
    justify-content: center;
    align-items: center;
    /* border-right: 1px solid var(--text);
    border-bottom: 1px solid var(--text); */
    cursor: pointer;
}

#show-info.mobile-info:hover {
    border: 2px solid var(--oewm_green);
    border-bottom: 0px;
}

#show-info.mobile-info .material-icons {
    transform: rotate(270deg)
}

#show-info.mobile-info.active {
    display: none;
}

.oewm-mapviewer-component-info.mobile-info .toggle {
    position: sticky;
    top: 0px;
    margin-bottom: -32px;
    margin-right: 15px;
    height: 20px;
    width: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--oewm_green);
    background-color: #ffffffbf;
    cursor: pointer;
    z-index: 1;
}

.oewm-mapviewer-component-info.mobile-info .toggle:hover {
    background-color: white;
    color: var(--green_hover_b);
}

.oewm-mapviewer-component-info.mobile-info .toggle:hover {
    background-color: white;
    color: var(--green_hover_b);
}

.oewm-mapviewer-component-info.active.fullSize.mobile-info #decrease-info {
    display: flex;
}

#decrease-info {
    display: none;
    border-top: 0px;
    width: 56px;
    background-color: white;
    height: 28px;
    margin-right: 50px;
    top: 0px;
    z-index: 1006;
    color: var(--oewm_green);
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

#decrease-info:hover {
    background-color: var(--background_gray);
}

#increase-info {
    display: none;
}

.oewm-mapviewer-component-info.active.fullSize #increase-info {
    display: none;
}

.mobile-info #increase-info {
    display: flex;
    width: 56px;
    background-color: white;
    color: var(--oewm_green);
    border-top: 0px;
    height: 28px;
    margin-right: 50px;
    top: 0px;
    z-index: 1006;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

#increase-info:hover {
    background-color: var(--background_gray);
}

.mobile-info #close-info {
    display: flex;
    width: 28px;
    background-color: white;
    border-top: 0px;
    height: 28px;
    top: 0px;
    z-index: 1006;
    color: var(--oewm_red);
    box-shadow: 0 0 10px rgba(0, 0, 0, .25);
    justify-content: center;
    align-items: center;
    cursor: pointer;
    position: sticky;
    margin-bottom: -28px;
    margin-left: calc(100% - 40px);
}

.mobile-info #close-info:hover {
    background-color: var(--background_gray);
}

@media only screen and (min-width: 480px) {
    #close-info {
        display: none;
    }
}

/* @media only screen and (max-width: 374px) {

    .mobile-info .stats > dl {
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: center;

        line-height: normal;
    }

    .mobile-info .stats > dl > div {
        margin-top: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-bottom: 0 !important;
    }
} */

/*
 * ************************************
 *  Info 
 * ************************************
 */

.oewm-mapviewer-component-info {
    background: white;
    font-family: Merriweather, Times, serif;
    /* font-size: 13px; */
    font-size: 12.5px;
    line-height: 23px;
    color: var(--text);
    box-shadow: 0 0 10px rgba(0, 0, 0, .25);
    margin-top: 60px !important;
    left: 0;
    height: calc(100% - 60px) !important;
    overflow: hidden !important;

    width: 480px;
    max-width: 40%;
    box-sizing: border-box;
}

.oewm-mapviewer-component-info .inactive-cat {
    color: #999999;
}

.oewm-mapviewer-component-info.active {
    background-color: var(--background_gray);
}

.oewm-mapviewer-component-info .info-box-wrapper {
    height: calc(100% - 180px);
    clear: both;
    overflow-y: scroll;
    visibility: visible/* hidden */
    ;
    /* background-color: white;
	box-shadow: 0 0 10px rgba(0,0,0,.25); */
    /* Scrollbar for Firefox */
}

@media only screen and (max-width: 480px) {
    .oewm-mapviewer-component-info .info-box-wrapper {
        height: calc(100% - 180px);
    }
}

@media only screen and (min-width: 480px) and (max-height: 400px) and (orientation:landscape) {
    .oewm-mapviewer-component-info .info-box-wrapper {
        height: calc(100% - 120px);
    }
}

/* .oewm-mapviewer-component-info .content, .oewm-mapviewer-component-info .info-box-wrapper:hover, .oewm-mapviewer-component-info .info-box-wrapper:active, .oewm-mapviewer-component-info .info-box-wrapper:focus {
    visibility: visible;
} */

.oewm-mapviewer-component-info .toggle {
    position: sticky;
    top: 10px;
    margin-bottom: -72px;
    left: calc(100% - 28px);
    height: 56px;
    width: 28px;
    box-shadow: 0 0 10px rgba(0, 0, 0, .25);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--oewm_green);
    background-color: white;
    cursor: pointer;
    z-index: 1;
}

.oewm-mapviewer-component-info .toggle:hover {
    background-color: var(--background_gray);
}

#click-info {
    display: none;
    padding: 5px;
    background-color: #ffffffde;
    max-height: 200px;
    position: absolute;
    bottom: 0px;
    /* -webkit-transform: translate(-50%, -50%); */
    /* transform: translate(-50%, -50%); */
    right: 0px;
    /* -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%); */
    /* left: 50%; */
    z-index: 1000;
    color: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, .25);
    justify-content: center;
    align-items: center;
    /* border-right: 1px solid var(--text);
    border-bottom: 1px solid var(--text); */
    cursor: pointer;
    border-radius: 5px;
    border: 2px solid var(--oewm_green);
    color: var(--oewm_green);
}

#herkunft-info {
    background-color: white;
    min-height: 134px;
    width: 250px;
    position: absolute;
    top: 70px;
    right: 50px;
    z-index: 1000;
    color: white;
    justify-content: center;
    align-items: center;
    cursor: default;
    color: var(--text);
    box-shadow: 0 0 10px rgb(0 0 0 / 25%);
    font-family: Merriweather, Times, serif;
    font-size: 13px;
    text-align: center;
    z-index: 1005;
}

.active-herkunft#geoline_wbl {
    color: #006847;
}

.active-herkunft#geoline_wbr {
    color: #006847;
}

.active-herkunft#geoline_g_wbg {
    color: #006847;
}

.active-herkunft#geoline_s_wbg {
    color: #6e2349;
}

.active-herkunft#geoline_grosslage {
    color: #006847;
}

.active-herkunft#geoline_ortswein {
    color: #6e2349;
}

.active-herkunft#geoline_gemeinde {
    color: #006847;
}

.active-herkunft#geoline_kg {
    color: #006847;
}

.active-herkunft#geoline_riede {
    color: #6e2349;
}

.active-herkunft#geoline_subriede {
    color: #6e2349;
}

.geoline-herkunft {
    color: #d1d1d1b9;
}

.active-herkunft#pipe {
    color: var(--text);
}

#pipe {
    color: #d1d1d1b9;
    display: inherit;
    width: 2.5%;
}

.split_l, .split_r {
    display: inherit;
    width: 47.5%;
}

.split_l {
    padding-right: 2.5px;
    text-align: right;
}

.split_r {
    padding-left: 2.5px;
    text-align: left;
}

#herkunft-info p {
    cursor: pointer;
    margin: 0 5px 0 5px;
    padding-top: 4.5px;
    padding-bottom: 4.5px;
    line-height: 1.5em;
}

#herkunft-info-head {
    margin: 0px !important;
    padding: 5px;
    text-align: center;
    font-style: italic;
    font-weight: bold;
    color: white;
    background-color: var(--oewm_green);
}
#herkunftspyramide-geoline{
    position: absolute;
    top: 0px;
    left: 0px;
    height: 28px;
    width: 28px;
    cursor: pointer;
}
#herkunftspyramide-geoline:hover,
#legende-geoline:hover {
    margin: 0px !important;
    background: var(--green_hover_b);
}

#legende-geoline{
    position: absolute;
    top: 0px;
    left: 28px;
    height: 28px;
    width: 28px;
    cursor: pointer;
}
/* #herkunft-info.inactive {
    display: none;
} */

#show-info {
    display: none;
    width: 28px;
    background-color: white;
    border-left: 0px;
    height: 56px;
    position: absolute;
    top: 70px;
    z-index: 1000;
    color: var(--oewm_green);
    box-shadow: 0 0 10px rgba(0, 0, 0, .25);
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

#show-info.active {
    display: flex;
}

#show-info:hover {
    background-color: var(--background_gray);
}

.oewm-mapviewer-component-info .info-header {
    top: 0;
    position: sticky;
    display: block;
    overflow: hidden;
    height: 180px;
    z-index: 2;
}

@media only screen and (min-width: 480px) and (max-height: 400px) and (orientation:landscape) {
    .oewm-mapviewer-component-info .info-header {
        height: 120px;
    }
}

.oewm-mapviewer-component-info .info-header .close {
    position: absolute;
    top: 0;
    right: 0;
}

.oewm-mapviewer-component-info .info-header .close span {
    text-indent: -999px;
    width: 20px;
    height: 20px;
    display: inline-block;
    margin-top: -1.5em;
}

#geolineClose {
    position: absolute;
    top: 0;
    right: 0;
}

#geolineClose span {
    margin: 0px !important;
    color: white;
}

#geolineClose span:hover {
    margin: 0px !important;
    background: var(--green_hover_b);
}

/* .oewm-mapviewer-component-info .info-header .close span:after {
    content: '\2297';
    text-indent: 0;
    display: block;
    font-size: 22px;
    color: #aaa;
} */

.oewm-mapviewer-component-info .info-header .back {
    position: relative;
    float: left;
    margin-top: 16px/* -1em */
    ;
    height: 28px;
    width: 28px;
    color: white;
    background-color: var(--oewm_green);
    text-transform: uppercase;
    line-height: normal;
}

.oewm-mapviewer-component-info .info-header .back:hover {
    background-color: var(--green_hover_b);
}

/* .oewm-mapviewer-component-info .info-header .back span {
    text-indent: -999px;
    display: inline-block;
    padding-right: 0.5em;
} */

/* .oewm-mapviewer-component-info .info-header .back span:after {
    content: '\2039';
    text-indent: 0;
    display: block;
} */

.oewm-mapviewer-component-info ul {
    margin: 0;
    padding: 0;
    list-style-type: none;
}

.oewm-mapviewer-component-info h3 {
    position: absolute;
    float: left;
    padding: 0 40px 0 20px;
    font-size: 20px;
    bottom: 0;
    /*! margin-top: 20px; */
    /*! line-height: 28px; */
    /* white-space: nowrap; */
}

#herkunft-link:hover {
    color: var(--green_hover_b);
}

.oewm-mapviewer-component-info #feature-name {
    background-color: white;
    padding: 0 10px 0 10px;
    display: inline;
    box-decoration-break: clone;
    line-height: 1.5em;
}

.oewm-mapviewer-component-info #feature-category {
    font-size: 16px !important;
    /*! margin-top: 5px; */
    background-color: white;
    padding: 0 10px 0 10px;
    line-height: 1.5em;
    display: inline;
    font-style: italic;
    box-decoration-break: clone;
}

.oewm-mapviewer-component-info .feature-title {
    cursor: pointer;
    text-transform: uppercase;
}

.oewm-mapviewer-component-info h3 a {
    color: var(--text);
}

.oewm-mapviewer-component-info h3 a:hover {
    color: var(--green_hover_b);
}

.oewm-mapviewer-component-info h4 {
    display: table;
    position: relative;
    margin: 0;
    margin-bottom: 2px;
    font-size: 14px;
    text-transform: uppercase;
}

.oewm-mapviewer-component-info .images .highlighted-image, .oewm-mapviewer-component-info .images .other-images {
    display: inline-block;
    /* padding: 0 0.5em; */
}

.oewm-mapviewer-component-info .images .highlighted-image {
    width: 100%;
    height: 0px;
    display: inline-block;
    vertical-align: middle;
}

.oewm-mapviewer-component-info .images .other-images {
    width: calc(33% - 1em);
    display: none;
}

.oewm-mapviewer-component-info .images img {
    width: 100%;
    height: 183px;
    margin-top: 3px;
    object-fit: cover;
}

@media only screen and (min-width: 480px) and (max-height: 400px) and (orientation:landscape) {
    .oewm-mapviewer-component-info .images img {
        height: 120px;
    }
}

@media only screen and (max-width: 480px) {
    .oewm-mapviewer-component-info .images img {
        margin-top: -10px;
    }
}

#y-axis_1 {
    object-position: 50% 0%;
}

#y-axis_0_5 {
    object-position: 50% 25%;
}

#y-axis_0 {
    object-position: 50% 50%;
}

#y-axis_-0_5 {
    object-position: 50% 75%;
}

#y-axis_-1 {
    object-position: 50% 100%;
}

.oewm-mapviewer-component-info .images .other-images li {
    padding: 0.2em 0;
    margin: 0;
    display: block;
}

.oewm-mapviewer-component-info .climate img {
    width: 100%;
    height: auto;
    margin-top: 20px;
}

.oewm-mapviewer-component-info .hierarchy {
    padding-top: 10px;
    padding-bottom: 5px;
}

.oewm-mapviewer-component-info ul.hierarchy-entry {
    /* padding-top: 0.4em; */
    display: inline-block;
    margin-left: 0.5em;
}

.oewm-mapviewer-component-info ul.hierarchy li {
    line-height: 2em;
}

.oewm-mapviewer-component-info ul.hierarchy-entry li a{
    /* line-height: 2em; */
    text-decoration: underline;
}

.oewm-mapviewer-component-info .hierarchy .category {
    display: table;
    float: left;
}

.oewm-mapviewer-component-info .statistics {
    margin-top: var(--spacing-sections-between);
    margin-right: var(--spacing-sections-outer);
    margin-left: var(--spacing-sections-outer);

    overflow: auto;
}

.oewm-mapviewer-component-info .stats {
    display: flex;
    flex-wrap: wrap;
    row-gap: 10px;
    column-gap: 10px;
    box-sizing: border-box;
}

.oewm-mapviewer-component-info .stats-item {
    min-width: fit-content;
    width: calc(50% - 10px);
    flex-grow: 1;

    padding-left: 6px;
    padding-right: 5px;
    overflow: hidden;
    height: 28px;
    background-color: white;
    box-sizing: border-box;
}

.oewm-mapviewer-component-info .stats dt {
    float: left;
    display: block;
    width: 28px;
    height: 28px;
    line-height: 28px;
    text-align: center;
    background-color: white;
    cursor: default;
}

.oewm-mapviewer-component-info .stats dl {
    display: inline;
    line-height: 28px;
}

.oewm-mapviewer-component-info .stats-icon {
    width: 20px;
    margin-top: 4px;
}

.oewm-mapviewer-component-info .hierarchy, .text {
    margin-top: var(--spacing-sections-between);
    margin-left: var(--spacing-sections-outer);
    margin-right: var(--spacing-sections-outer);

    padding-left: 15px;
    background-color: white;
}

/* climate table */

.oewm-mapviewer-component-info .table-scroll::-webkit-scrollbar {
    display: none;
}

.oewm-mapviewer-component-info table {
    width: calc(100% + 4px);
    border-collapse: collapse;
    margin-left: -9px;
}

@media screen and (max-width: 985px) {
    .oewm-mapviewer-component-info table {
        font-size: 1.25vw;
    }
}

@media screen and (max-width: 937.5px) {
    .oewm-mapviewer-component-info table {
        font-size: 11px;
    }
}

@media only screen and (max-width: 395px) {
    .oewm-mapviewer-component-info table {
        font-size: 13px;
    }
    .oewm-mapviewer-component-info table tr:first-child {
        display: none;
    }
    .oewm-mapviewer-component-info td:nth-child(3) {
        display: none;
    }
    .oewm-mapviewer-component-info td:nth-child(4) {
        display: none;
    }
    .oewm-mapviewer-component-info td:nth-child(5) {
        display: none;
    }
    .oewm-mapviewer-component-info td:nth-child(6) {
        display: none;
    }
}

.oewm-mapviewer-component-info tr:not(:first-child) {
    cursor: default;
}

.oewm-mapviewer-component-info tr:not(:first-child):hover {
    background-color: var(--background_gray);
}

.oewm-mapviewer-component-info tr td:last-child {
    padding-left: 10px;
}

.oewm-mapviewer-component-info td {
    height: 28px;
}

.oewm-mapviewer-component-info table img {
    display: table;
}

.oewm-mapviewer-component-info .season-icon {
    margin: 0 auto;
}

.oewm-mapviewer-component-info .value {
    text-align: center;
}

.oewm-mapviewer-component-info .data-source {
    float: left;
    font-size: 12px;
    text-align: left;
    padding-right: 15px;
    line-height: 1.5em;
}

.oewm-mapviewer-component-info .info-footer-control {
    /* margin: 15px 20px 0 20px; */

    margin-top: var(--spacing-sections-between);
    margin-left: var(--spacing-sections-outer);
    margin-bottom: 0;
    margin-right: var(--spacing-sections-outer);
}

.oewm-mapviewer-component-info .info-footer-control button.download-pdf {
    float: left;
    margin: 0 10px 10px 0;
    padding: 0;
    /* width: calc(50% - 5px) */
    width: auto;
    border: none;
    font-family: Merriweather, Times, serif;
    font-size: 14px;
    height: 28px;
    line-height: 28px;
    color: white;
    background-color: var(--oewm_green);
    text-transform: uppercase;
    cursor: pointer;
}

.oewm-mapviewer-component-info .info-footer-control button.download-pdf:hover {
    background-color: var(--green_hover_b);
}

.button-icon {
    float: left;
    width: 28px;
    border-right: 1px solid white;
}

.oewm-mapviewer-component-info .show_more {
    float: left;
    width: auto;
    margin-bottom: 20px;
    height: 28px;
    line-height: 28px;
    /* font-size: 16px; */
    text-transform: uppercase;
    text-align: center;
    color: white;
    background-color: var(--oewm_green);
    cursor: pointer;
}

.oewm-mapviewer-component-info .show_more:hover {
    background-color: var(--green_hover_b);
}

/* @media only screen and (max-width: 1050px) {
    .show_more {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .oewm-mapviewer-component-info .info-footer-control button.download-pdf {
        width: 100%;
    }
} */

.oewm-mapviewer-component-info .close-button {
    position: relative;
    float: right;
    margin: 16px 20px 0 0;
    height: 28px;
    width: 28px;
    text-align: center;
    color: white;
    background-color: var(--oewm_red);
    z-index: 1;
}

.oewm-mapviewer-component-info .close-button:hover {
    background-color: var(--red_hover);
}

/* 
 * **************************************
 * Map 
 * **************************************
 */
.leaflet-popup-close-button{
    display: none !important;
}
.leaflet-bar a:hover {
    background-color: white !important;
}

.oewm-mapviewer-component .leaflet-container {
    font: 12px/1.5 Merriweather, Times, serif;
}

.oewm-mapviewer-component .leaflet-bar a, .oewm-mapviewer-component.leaflet-bar a:hover {
    border-bottom: 1px solid var(--background_gray);
    color: var(--text);
}

.oewm-mapviewer-component .leaflet-bar a:hover {
    color: var(--text)
}

.oewm-mapviewer-component .leaflet-control-layers-expanded {
    color: var(--text);
}

.oewm-mapviewer-component .leaflet-control-attribution, .oewm-mapviewer-component .leaflet-control-scale-line {
    color: var(--text);
}

.oewm-mapviewer-component .leaflet-touch .leaflet-control-layers, .oewm-mapviewer-component .leaflet-touch .leaflet-bar {
    border: inherit;
    border-radius: 0;
}

.oewm-mapviewer-component .leaflet-touch .leaflet-bar {
    font-family: sans-serif;
    color: var(--text);
}

.oewm-mapviewer-component .leaflet-popup-content-wrapper, .oewm-mapviewer-component .leaflet-popup-tip {
    color: var(--text);
}

.leaflet-marker-icon {
    cursor: pointer !important;
}

/* 
 * **************************************
 * Layer control 
 * **************************************
 */

.oewm-mapviewer-component-map .layer-button {
    color: var(--text);
}

.oewm-mapviewer-component-map .layer-button:hover {
    background-color: var(--background_gray);
}

/* 
 * **************************************
 * Controlrol Locate 
 * **************************************
 */

.leaflet-control-locate.active a {
    background-color: var(--oewm_green);
}

.leaflet-control-locate.active a:hover {
    background-color: initial;
}

.leaflet-control-locate.active .material-icons {
    color: white
}

.leaflet-control-locate.active .material-icons:hover {
    background-color: var(--oewm_green);
}

/* 
 * ***************************************
 * TOOLTIP 
 * ***************************************
 */

.tooltip-wrapper {
    margin-top: 40px;
    margin-left: 40px;
    max-width: 250px;
    position: relative;
    background-color: white;
    border: 2px solid var(--oewm_green);
    padding: 10px;
    font-family: Merriweather, Times, serif;
    font-size: 12.5px;
    color: var(--text);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.25);
}

.tooltip-wrapper::before, .tooltip-wrapper::after {
    content: "";
    position: absolute;
    top: calc(50% - 9px);
    left: -10px;
    height: 15px;
    width: 15px;
    background-color: white;
    transform: rotate(45deg);
    border-left: inherit;
    border-bottom: inherit;
    box-shadow: inherit;
    z-index: -1;
}

.tooltip-wrapper::after {
    box-shadow: none;
    z-index: 0;
}

.tooltip-title {
    margin-bottom: 5px;
    text-transform: uppercase;
    font-weight: 700;
}

.tooltip-definition {
    position: relative;
    z-index: 1;
}

.wa-mediabox-overlay.opened {
    z-index: 1010;
}

.hide {
    display: none !important;
}

.fullWidth {
    width: 100% !important;
}

/* wa mediabox adaptions */

.wa-mediabox-title {
    font-family: Merriweather, Times, serif !important;
    background: rgba(0, 0, 0, .5) !important;
    bottom: -52px !important;
}

.info-ease {
    transition: opacity .5s ease;
}

dialog {
    max-width: 600px;
    font-family: Merriweather, Times, serif;
    font-size: 14px;
}

dialog .browser {
    font-weight: bold;
}

dialog .button {
    border: none;
    background-color: #006847;
    /* fallback for IE */
    background-color: var(--oewm_green);
    color: white;
    height: 36px;
    line-height: 28px;
    padding: 5px 20px;
    cursor: pointer;
}

.leaflet-pulsing-icon {
    border: 2px solid white;
    box-shadow: none !important;
}

.leaflet-interactive {
    cursor: grab;
}

.oewm-mapviewer-component .leaflet-bottom .leaflet-control-scale, .oewm-mapviewer-component .leaflet-container .leaflet-control-attribution {
    position: fixed;
}

/* .leaflet-control-zoom-display{
    top: 86px !important;
} */

/* Controls background img */

.origin-button {
    background-image: url('./images/layer.svg');
}

.origin-button.active {
    background-image: url('./images/layer_white.svg');
}

.legend-button {
    background-image: url('./images/legend_icon.svg');
}

.legend-button.active {
    background-image: url('./images/legend_icon_white.svg');
}

.leaflet-bar a.leaflet-disabled {
    background-color: #e6e4e4 !important;
}

/* PHOTOSWIPE ADAPTIONS */

.pswp {
    font-family: Merriweather, Times, serif !important;
}

.pswp__caption__center, .pswp__counter {
    text-align: center !important;
}

.pswp__button--download, .pswp__button--download:before {
    font-size: 22px;
    background: 12px 12px no-repeat;
    color: white;
    background-size: 16px 16px;
    width: 44px;
    height: 44px;
}

.pswp__zoom-wrap {
    text-align: center;
  }
  .pswp__zoom-wrap:before {
      content: '';
      display: inline-block;
      height: 100%;
      vertical-align: middle;
    }
  .wrapper {
    line-height: 0;
    width: 100%;
    max-width: 900px;
    position: relative;
    display: inline-block;
    vertical-align: middle;
    margin: 0 auto;
    text-align: left;
    z-index: 1045;
  }
  
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 */
    padding-top: 25px;
    height: 0;
    width: 100%;

}
.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
video {
    width: 100% !important;
    height: auto !important;
}

/* Akkordion */

/* Style the buttons that are used to open and close the accordion panel */

.accbtn {
    font-family: Merriweather, Times, serif;
    line-height: 1.5em;
    background-color: white;
    cursor: pointer;
    padding: 0px;
    width: 100%;
    text-align: left;
    border: none;
    outline: none;
    text-align: center;
    vertical-align: middle;
    transition: 0.4s;
}

/* Add a background color to the button if it is clicked on (add the .active class with JS), and when you move the mouse over it (hover) */

.active, .accordion:hover {
    background-color: var(--background_gray);
}

/* Style the accordion panel. Note: hidden by default */

.panel {
    /* padding: 0 4px; */
    background-color: white;
    display: none;
    overflow: hidden;
    height: 47px;
    border-left: 2px solid var(--background_gray);
    border-bottom: 2px solid var(--background_gray);
    border-right: 2px solid var(--background_gray);
}

.panel img {
    width: 100%;
    position: relative;
    top: -3px;
}

/* Responsive iframe */

.box {
    /* margin-top: 130px; */
    margin: auto;
    max-width: 600px;
    max-height: 600px;
}

.container {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding-top: 100%;
}

.responsive-iframe {
    border: none;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-color: #f2f2f2;
}

/* ---------------------------------------------- */
/* CLIMATE SECTION */
/* ---------------------------------------------- */

.infobox-header-climograph#temp, .infobox-header-climograph#prec, .infobox-header-climograph#sun {
    margin-left: auto;
    margin-top: 70px;
    position: inherit;
    margin-right: auto;
    /* margin: auto; */
    max-width: 600px;
    top: 70px;
    width: 100%;
}

#climograph_temp_row, #climograph_prec_row, #climograph_prec_ext {
    cursor: default;
}

@media only screen and (orientation: portrait) and (max-width: 680px) {
    .box {
        margin: auto;
        max-width: 90%;
        max-height: 90%;
    }
    .infobox-header-climograph#temp, .infobox-header-climograph#prec, .infobox-header-climograph#sun {
        margin-left: auto;
        margin-top: 70px;
        position: inherit;
        margin-right: auto;
        max-width: 90%;
        top: 70px;
        width: 100%;
    }
}

@media only screen and (max-height: 650px) {
    .box {
        margin: auto;
        width: 400px;
        height: 400px;
    }
    .infobox-header-climograph#temp, .infobox-header-climograph#prec, .infobox-header-climograph#sun {
        margin-left: auto;
        margin-top: 10px;
        position: inherit;
        margin-right: auto;
        max-width: 90%;
        top: 10px;
        width: 400px;
    }
}

@media only screen and (orientation: landscape) and (max-height: 500px) {
    .box {
        margin: auto;
        max-width: 280px;
        max-height: 280px;
    }
    .infobox-header-climograph#temp, .infobox-header-climograph#prec, .infobox-header-climograph#sun {
        margin-left: auto;
        margin-top: 10px;
        position: inherit;
        margin-right: auto;
        /* margin: auto; */
        max-width: 280px;
        top: 10px;
        width: 100%;
    }
}

/* ---------------------------------------------- */

/* SECTION */

.climate-section * {
    box-sizing: border-box;
}

.oewm-mapviewer-component .climate-section *,
div.oewm-mapviewer-component .climate-section *:link,
div.oewm-mapviewer-component .climate-section *:active,
div.oewm-mapviewer-component .climate-section *:hover,
div.oewm-mapviewer-component .climate-section *:visited {
    text-decoration: none !important;
}

.climate-section p {
    appearance: none;
    margin: 0;
    padding: 0;
}

.climate-section {
    min-height: 102px;
    padding: 0 !important;
}

/* HEADER */

.climate-section-header {
    padding: 10px 15px 0 15px;
}

.climate-section-header h4 {
    min-width: fit-content;
    margin-bottom: 2px;
}

/* TABLE */

.climate-table-wrap {
    width: 100%;
    margin-top: 3px;

    /* Flexbox */
    display: flex;
    flex-direction: column;
}

/* TABLE GRID */

.climate-table-header-spacing {
    /* Flexbox */
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
}

.climate-table-row-spacing {
    /* Flexbox */
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
}

/* TABLE HEADER */

.climate-table-header {
    margin-left: 6px;
    margin-right: 6px;
    padding-left: 9px;
    padding-right: 9px;
}

.climate-table-header .climate-table-label {
    color: var(--text);
    font-style: italic;
    min-width: 100px;
}

.climate-table-icon {
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    min-width: 28px;
    max-width: 28px;
    min-height: 28px;
    max-height: 28px;
}

/* TABLE ROW */

.climate-table-row * {
    pointer-events: auto;
}

.climate-table-row {
    appearance: none;
    margin-left: 6px;
    margin-right: 6px;
    padding-left: 9px;
    padding-right: 9px;
    overflow: hidden;
}

.climate-table-row:not(.climate-table-header.climate-table-row):hover {
    background-color: var(--col-grey-light);
}

.climate-table-icon:not(.climate-table-icon.climate-table-label-season) {
    margin-left: -3px;
}

.climate-table-label-cat {
    color: var(--oewm_green);
    font-style: normal;
    text-decoration: none !important;
    text-align: left;
    min-width: 100px;
}

.climate-table-row:hover .climate-table-label-cat {
    color: var(--green_hover_t);
}

.climate-table-label-season,
.climate-table-label-average {
    color: var(--text);
    font-style: normal;
    text-decoration: none;
}

.climate-table-label-season {
    min-width: max-content;
    text-align: center;
    width: 31px;
}

.climate-table-label-average {
    min-width: max-content;
    text-align: right;
    width: 60px;
}

/* LINKS */

.climate-links {
    padding: 0 15px 0 15px;
    margin-top: 7px;
}

.climate-link-entry {
    margin: 0;
    padding: 0;
}

@media screen and (max-width: 948px) {

    .climate-table-row * {
        font-size: 11px !important;
    }

    .climate-table-label,
    .climate-table-label-cat,
    .climate-table-label-season,
    .climate-table-label-average {
        font-size: 11px !important;
    }
}

@media screen and (max-width: 394px) {

    .climate-section {
        min-height: 101px;
    }

    .climate-table-label-cat {
        flex-grow: 1;
    }

    .climate-table-row-spacing {
        gap: 12px;
    }

    .climate-table-header,
    .climate-table-label-season {
        display: none;
    }

    .climate-table-label-average {
        text-align: right;
        width: max-content;
    }

    .climate-table-row * {
        font-size: 12.5px !important;
    }

    .climate-table-label,
    .climate-table-label-cat,
    .climate-table-label-season,
    .climate-table-label-average {
        font-size: 12.5px !important;
    }
}

/* ---------------------------------------------- */
/* ---------------------------------------------- */

#herkunftspyramide-img {
    float: left;
    margin-top: -3px;
    margin-right: 2px;
    /* display: inline-block;
    vertical-align: middle; */
    height: 28px;
}

#video-play {
    cursor: pointer;
    position: absolute;
    right: 22px;
    bottom: 22px;
    width: 55px;
    transition: 0.2s;
}

#video-play:hover {
    transform: scale(1.05);
}

.pswp--zoom-allowed .pswp__img {
    cursor: default !important;
  }

/* Cookie Banner */

.cookie-banner {
	overflow: auto;
	bottom: 0;
	position: sticky;
	width: 100%;
	color: white;
	background-color: rgba(0,0,0,0.75);
}

.cookie-banner a {
	color: white;
	text-decoration: underline;
}

.cookie-content {
	padding: 10px 15px;
}

.cc-window {
	padding: 9px 15px !important;
	line-height: normal !important;
}

.cc-message,
.cookie-text {
    font-family: Merriweather, Times, serif;
    font-size: 14px;
	/* padding-top: 5px;
	padding-bottom: 5px; */
	width: 100% !important;
    margin-right: 15px !important;
    overflow: auto;
}
.cc-message #modalLink{
    cursor: pointer;
    text-decoration: underline;
}
.cc-btn.cc-dismiss,
.cookie-button {
    font-family: Merriweather, Times, serif;
	display: inline-block;
	right: 15px;
	top: 10px;
	padding: 5px 9px;
	color: var(--oewm_green);
	font-weight: 600;
	/* border-radius: 5px; */
	background-color: white !important;
	border-style: none;
	transition: background-color 0.2s;
	-webkit-transition: background-color 0.2s;
	-moz-transition: background-color 0.2s;
}
.cc-btn:hover,
.cc-dismiss:hover,
.cookie-button:hover {
    font-family: Merriweather, Times, serif;
	/* text-decoration: underline; */
    border-style: none;
    background-color: var(--background_gray) !important;
}

.cc-color-override-1394128325.cc-window {
    background-color: var(--oewm_green) !important;
}

/* rebsorten */
.vines_main_bar_white {
    float:left;
    margin-top: 8px;
    height: 12px;
    background-color:#e3e5e4;
    border-right: 1px solid white;
}
.vines_main_bar_red {
    float:left;
    margin-top: 8px;
    height: 12px;
    background-color:#b9b9b9;
    border-left: 1px solid white;
}

.wine_white_color {
    color: var(--oewm_green)
}
.wine_red_color {
    color: var(--oewm_red)
}

.wine_color_desc {
    font-weight: bold;
    text-transform: uppercase;
}

.wine-chart-row {
    width:100%;
    border-right: 1px solid var(--background_gray);
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
}

.wine_entry {
    float: left;
    width: 130px;
    white-space: nowrap;
    box-sizing: border-box;
    margin-right: 6px;
}

.bar-icon_white {
    width: 20px;
    margin: 4px 4px 0 0;
    float: left;
}
.bar-icon_red {
    width: 20px;
    margin: 4px 0 0 4px;
    float: right;
}

/**/ 
@media only screen and (max-width: 1100px) {
    .area_value_sum {
        display: none;
    }
} 

.bar_area {
    width: calc(100% - 132px);
    border-left: 1px solid var(--background_gray);
    height: 23px;
    overflow: hidden;
}

.wine-chart-bar {
    height: 12px;
    float:left;
    margin-top: 5px;
}

.wine_white_bg_color {
    background-color: #e3e5e4;
}
.wine_red_bg_color {
    background-color: #b9b9b9;
}

.percentage {
    float: left;
    margin-left: 4px;
    margin-top: 1px;
    font-style: italic;
    font-size: 11px;
}

.percentage_right {
    float: right;
    margin-right: 4px;
    margin-top: -6px;
    font-style: italic;
    font-size: 11px;
}

/* ---------------------------------------------- */
/* GEOLOGY SECTION */
/* ---------------------------------------------- */

:root {
    --col-grey-light: #e3e5e4;
    --col-grey-dark: #b9b9b9;

    --bar-chart--cat-col-width: 128px;
    --bar-chart--bar-height: 13px;
}

/* SECTION */

.geology-section {
    min-height: 106px;
    padding: 0 !important;
}

.geology-section * {
    box-sizing: border-box;
}

/* SECTION HEADER */

.geology-section-header {
    padding: 10px 15px 0 15px;

    /* Flexbox */
    display: flex;
    flex-direction: row;
}

.geology-section-header h4 {
    min-width: fit-content;
    margin-bottom: 2px;
}

.geology-chart-legend {
    flex-grow: 1;

    /* Flexbox */
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.geology-chart-legend-entry {
    border: 1px solid var(--col-grey-light);
    width: 50%;
    height: var(--bar-chart--bar-height);
    padding-left: 2px;
    padding-right: 2px;
    font-size: 10px;
    line-height: normal;

    /* Flexbox */
    display: flex;
    align-items: center;
}

.geology-legend-most {
    background-color: var(--col-grey-light);
    justify-content: left;
}

.geology-legend-further {
    justify-content: right;
}

.geology-chart-legend-entry-label {
    min-width: fit-content;
    display: block;
}

/* If the legend doesn't fit next to "Begriffserklärung" anymore */
@media screen and (max-width: 390px) {

    .geology-chart-link-row {
        flex-direction: column !important;
    }

    .geology-chart-legend {
        margin-top: 10px;
    }
}

/* CHART WRAP */

.geology-chart-wrap {
    width: 100%;

    /* Flexbox */
    display: flex;
    flex-direction: column;
}

/* X-AXIS LABEL */

.geology-chart-axis {
    margin-left: calc(134px + 15px);
    margin-right: 15px;

    /* Font */
    font-size: 11px;
    font-style: italic;
    line-height: normal;

    /* Flexbox */
    display: flex;
    flex-direction: row;
    column-gap: 4px;
    row-gap: 0;
    justify-content: space-between;
    align-items: center;
}

.geology-chart-axis-line {
    border-top: 1px solid var(--col-grey-light);
    flex-grow: 1;
}

.geology-chart-axis-label {
    font-size: 10px;
}

.geology-chart-axis-top {
    margin-top: 1px;
    margin-bottom: 0;
}

/* If "Flächenanteil" doesn't fit between 0 and 100 anymore */
@media screen and (max-width: 340px) {

    .geology-section {
        min-height: 115px;
    }

    .geology-chart-axis-label {
        order: 1;
        flex-grow: 1;
        width: 100%;
        min-width: 100%;
        text-align: center;
    }

    .geology-chart-axis-top {
        flex-wrap: wrap;
    }

    .geology-chart-axis-0 {
        order: 2;
    }

    .geology-chart-axis-line {
        order: 3;
    }

    .geology-chart-axis-line:nth-child(4) {
       display: none;
    }

    .geology-chart-axis-100 {
        order: 4;
    }
}

/* ROW */

.geology-chart-row {
    appearance: none;
    margin-left: 6px;
    margin-right: 6px;
    padding-left: 9px;
    padding-right: 9px; 
    overflow: hidden;

    /* Flexbox */
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center; 
}

.geology-chart-row * {
    pointer-events: auto; /* important! otherwise child elements won't trigger the gallery to open */
    text-decoration: none;
}

.geology-chart-row p {
    margin: 0;
    padding: 0;
    display: inline;
}
div.oewm-mapviewer-component .geology-section *,
div.oewm-mapviewer-component .geology-section *:link,
div.oewm-mapviewer-component .geology-section *:active,
div.oewm-mapviewer-component .geology-section *:hover,
div.oewm-mapviewer-component .geology-section *:visited {
    text-decoration: none !important; 
}

.geology-chart-row:hover {
    background-color: var(--col-grey-light);
    /* cursor: pointer; */
}

.geology-chart-cat-label {
    display: block;
    min-width: 134px;
    
    /* Font */
    color: var(--oewm_green);
    font-style: normal !important;
}

.geology-chart-row:hover .geology-chart-cat-label {
    cursor: pointer;
    color: var(--green_hover_t);
}

.geology-chart-bar-wrap {
    /* background-color: #ffffff; */
    border: 1px solid var(--col-grey-light);
    height: var(--bar-chart--bar-height);
    flex-grow: 1;

    /* Flexbox */
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
}

.geology-chart-row:hover .geology-chart-bar-wrap {
    border: 1px solid #cccccc;
}

.geology-chart-bar {
    background-color: var(--col-grey-light);
    height: 100%;

    /* Flexbox */
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.geology-chart-row:hover .geology-chart-bar {
    background-color: #cccccc;
    border-color: #cccccc;
}


.geology-chart-row:hover .geology-chart-subcat-label {
    color: #505050;
}

.geology-chart-bar.geology-chart-bar-remaining {
    flex-grow: 1;
}

.geology-chart-subcat-label {
    display: block;
    padding-left: 2px !important;

    /* Font */
    color: var(--text);
    font-size: 10px;
    font-style: normal !important;
    line-height: normal;
    white-space: nowrap; /* preventing line breaks */
}

.inactive-cat .geology-chart-subcat-label {
    color: #999999;
    font-style: italic !important;
}

/* LINKS */

.geology-chart-link-row {
    /* Flexbox */
    display: flex;
    flex-direction: row;    
}

.geology-chart-link-label {
    display: inline-block;
    min-width: 134px;
}

.geology-chart-links {
    padding: 0 15px 5px 15px;
}

.geology-chart-links a,
.geology-chart-links a:link,
.geology-chart-links a:active,
.geology-chart-links a:hover,
.geology-chart-links a:visited {
    text-decoration: underline !important;
}

/* ---------------------------------------------- */
/* WINE SECTION */
/* ---------------------------------------------- */

.area_value_sum {
    font-style: italic;
}

.area_value {
    font-style: italic;
    font-size: 11px;  
    margin-left: 3px;
}

.bar_desc_50 {
    float: right;
    /* margin-right: calc(34.2% + 4px); */
    background-color: rgba(255,255,255,0.67);
    padding: 0 2px 0 2px;
    margin-top: -17px;
}

.chart_zero {
    position: relative;
    float: left;
    margin-left: 130px;  /* 120-0.5*12 (width) */
    margin-bottom: -4px;
    width: 12px;
    height: 18px;
    font-size: 11px;
    font-style: italic;
    text-align: center;
    background-color: white;
    z-index: 1;
}



.chart_hundred {
    position: relative;
    float: right;
    margin-bottom: -4px;
    margin-right: -6px;
    width: 40px;
    height: 18px;
    font-size: 11px;
    font-style: italic;
    text-align: center;
    background-color: white;
    z-index: 1;
}

.chart_top-line {
    position: absolute;
    top: 12px;
    right: 0;
    width: calc(100% - 130px);
    border-bottom: 1px solid var(--background_gray);
}

.chart_bottom-line {
    float: right;
    width: calc(100% - 134px);
    border-top: 1px solid var(--background_gray);
}