:root {
    --main-color: rgba(146, 179, 68, 1.0) }

#map {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0; }
    
/*Control Buttons*/
.ol-control button {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px); 
    color: black;
    padding-bottom: 0.19em;
    padding-left: 0.03em;
    border-radius: 0; }
    .ol-control button:hover {
        background: rgba(150, 150, 150, 0.6);
        color: white; }
    .ol-control button:focus {
        background: rgba(150, 150, 150, 0.6);
        color: white; }

.ol-control {
    background-color: rgba(200, 200, 200, 0.6);
    padding: 0;
    border-radius: 0;
    border-color: var(--main-color); }

    .ol-zoom {
        right: .5em;
        left: unset;
        top: 2.8em; }

/*Attribution*/
.ol-attribution.ol-uncollapsible {
    max-width: 100%;
    background-color: rgba(235, 235, 235, 0.95);
    border-top: 3px solid transparent;
    height: 27px; }
    @media (max-width: 576px) {
        .ol-attribution.ol-uncollapsible {
            width: 100%;
            height: auto;
            text-align: center; } }
    .ol-attribution ul {
        font-size: 12px;
        font-family: "Calibri";
        letter-spacing: 0.015em;
        color: rgb(0, 0, 0);
        text-shadow: 0 0 2px #fff;
        text-align: center;
        vertical-align: top; }

/*Textstyle*/
.lorem {
    font-family: Calibri;
    font-size: 13pt;
    margin-top: 9px; }
h2 {
    font-family: Calibri;
    font-size: 15pt; 
    color: #494949; }
    h2:after {
        content: ' ';
        display: block;
        margin-top: 5px;
        margin-left: 0;
        border: 1px solid var(--main-color); }

hr {
    margin-bottom: -.6em;
    visibility: inherit;
    border: 0;
    clear:both;
    display:block;
    width: 96%;               
    background-color:rgba(0, 0, 0, 0);
    height: 1px; }

hr#horizontal-line {
    border-bottom: 1px solid;
    border-color: var(--main-color);
    height: 2px; 
    margin-bottom: 9px;
    margin-top: 11px;
    margin-left: 0;
    width: 88% }

/*Font Awesome Icon Style der Control Buttons*/
.fa-plus {
    font-size: 11px; }
.fa-minus {
    font-size: 11px; }
.fa-expand {
    font-size: 18px;
    padding-top: 3px; }
.fa-compress {
    font-size: 18px;
    padding-top: 3px; }
.fa-search {
    font-size: 12px;
    padding-top: 3px; }

/*Ladeicon animieren*/
.fa-spinner {
    color: var(--main-color); }

/*Layerswitcher*/
.layer-switcher {
    top: 2.2em;
    left: .5em;
    width: 100%; }
    .layer-switcher li {
        display: grid; }
        .layer-switcher li label {
            margin-top: -5px;
            padding-right: 0.7em; }
    .layer-switcher .group button {
        background-color: rgba(0, 0, 0, 0.0);}

/*Hintergrundkartenauswahl*/
.bgmap {
    border-radius: 5px;
    border: 1px solid black;
    cursor: pointer; 
    height: 100px; 
    width: 97%;
    max-width: 500px;
    min-width: 185px;
    background-size: cover; }
    .bw {
        background-image: url('https://rv-k.de/WebGIS/Hintergrundkarte/osm_bw.png'); }
    .osm {
        background-image: url('https://rv-k.de/WebGIS/Hintergrundkarte/osm.png'); }
    .sat {
        background-image: url('https://rv-k.de/WebGIS/Hintergrundkarte/sat.png'); }
    .topo {
        background-image: url('https://rv-k.de/WebGIS/Hintergrundkarte/topo.png'); }
    .cycle {
        background-image: url('https://rv-k.de/WebGIS/Hintergrundkarte/cycle.png'); }
    .bgmap:hover {
        border: 1px solid rgba(200, 200, 200, 1);
        color: white; }
    .selected {
        border: 1px solid rgba(200, 200, 200, 1);
        color: white; }
    .bgmap-name {
        position: relative;
        top: 65%;
        width: auto;
        height: 35%;
        background-color: rgba(230, 230, 230, 0.9);
        border-bottom-left-radius: inherit;
        border-bottom-right-radius: inherit;
        text-align: center;
        padding-top: 4px;
        font-family: Calibri;
        letter-spacing: 1px;
        font-size: 13pt; }


/*Legende*/
#legend_img {
    height: 1.1em;
    width: auto; }

/*Hover-Effekt Sidebar Icons*/
.hvr-grow {
    color: black;
    display: inline-block;
    vertical-align: middle;
    transform: translateZ(0);
    box-shadow: 0 0 1px rgba(0, 0, 0, 0);
    backface-visibility: hidden;
    -moz-osx-font-smoothing: grayscale;
    transition: color .3s, transform .4s;}

.hvr-grow:hover, .hvr-grow:focus, .hvr-grow:active {
    transform: scale(1.03);
    color: var(--main-color); }

    @keyframes stripes {
        to {
          background-size:100% 100%;
        }
      }

/*Popup Inhalt*/
.popupContent {
    margin-top: 1em;
    margin-left: .1em;
    width: 100%;
    line-height: 150%; }
    h3 {
        font-family: Calibri;
        font-size: 13pt;
        color: rgb(50, 50, 50);
        font-weight: bold;
        display: inline; }
    /*hr {
        visibility: hidden; 
        margin-bottom: -.6em; }*/
    #typ {
        color: var(--main-color);
        font-weight: bold; 
        font-size: 12pt; }

/*Thumbnails*/
#thumbnail {
    border: 1px solid #ddd;
    border-radius: 6px; 
    width: 174px; }
    #thumbnail:hover {
        box-shadow: 0 0 0 2px var(--main-color); }
#pdf-thumbnail {
    border: 1px solid #ddd; 
    padding: 3px; 
    width: 115px; }
    #pdf-thumbnail:hover {
        box-shadow: 0 0 0 2px var(--main-color); }

.date {
    bottom: 0;
    right: 0;
}

/*Popup*/
#popup {
    height: auto;
    width: auto;
    max-width: 45%;
    position: absolute;
    vertical-align: middle;
    display: none; }
    @media (max-width: 768px) {
        #popup { 
            max-width: 100%;
            height: 100%; } }
    @media (min-width: 768px) and (max-width: 1199px) {
        #popup { 
            max-width: 67%;
            height: 100%;
            left: 0; } }

#popup-inline {
    margin: .15vw;
    height: 50%;
    overflow: auto;
    padding: 1.5vw;
    padding-top: 0.4vw;
    position: relative;
    text-align: justify;
    hyphens: auto;
    background: rgba(255, 255, 255, 1); }
    @media (max-width: 768px) {
        #popup-inline { 
            max-width: 100%;
            height: 100%;
            padding: 7vw;
            padding-top: 1vw;
            align-content: center; } }
    @media (min-width: 768px) and (max-width: 1199px) {
        #popup-inline { 
            max-width: 100%;
            height: 100%;
            padding: 7vw;
            padding-top: 1vw;
            align-content: center; } }

button.close {
    padding: 10px;
    border: 1px solid var(--main-color);
    border-radius: 4px; }

.close {
    font-size: 1em;
    font-weight: 600;
    color: var(--main-color);
    line-height: .7;
    opacity: 1.0;
    text-shadow: none; } 

    .close:hover {
        color: var(--main-color);
        opacity: 1.0;
        background: rgba(240, 240, 240, 1.0);
        text-decoration: underline;
        text-shadow: none; }
    
    .close:not(:disabled):not(.disabled):hover {
        opacity: 1.0; }

    .close:focus {
        color: var(--main-color);
        opacity: 1.0;
        background: rgba(240, 240, 240, 1.0);
        text-decoration: underline;
        text-shadow: none; }
    
    .close:not(:disabled):not(.disabled):focus {
        opacity: 1.0; }

#overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px); 
    z-index: 5000000000;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column; }

/*Externe Links mit Icon versehen*/
a[target="_blank"]:after {
    content: ' \f08e';
    font: normal normal normal 0.75em/1 FontAwesome; }
a[href$=".pdf"]:after, a[href$=".pdf"]:after {
    content: ''; }
a[href$=".png"]:after, a[href$=".pdf"]:after {
    content: ''; }

/*Handlungsfelder und Umsetzungsstand für Seitenleiste*/
.hlf {
    color: white; 
    font-weight: 700; 
    padding: 0 4px 1px 4px; 
    border-radius: 3px; 
    white-space: nowrap;}
#rad {
    background-color:rgb(218, 109, 108); }
#fuss {
    background-color:rgb(222, 167, 63); }
#ovm {
    background-color:rgb(159, 74, 139); }
#leben {
    background-color:rgb(46, 162, 118); }
#kfz {
    background-color:rgb(74, 153, 201); }

#umgesetzt {
    background-color:#298e68; }
#alternativ {
    background-color:#83c4ac; }
#planung {
    background-color:#1a5baf; }
#idee {
    background-color:#ffd900; }
#nicht-umgesetzt {
    background-color:#ff0000; }
#zurueckgestellt {
    background-color:#a1a1a1; }

/* Geocoder */
 .ol-geocoder.gcd-gl-container {
    position: relative;
    display: none;
    box-sizing: border-box;
    left: 0;
    top: 0;
    animation-name: bump; /*Animation beim aufrufen des Web GIS zusammen mit der Sidebar*/
    animation-duration: .5s; }
    @keyframes bump {
        from {margin-left: 3.5em;} }
    .ol-geocoder.gcd-gl-container *,
    .ol-geocoder.gcd-gl-container *::before,
    .ol-geocoder.gcd-gl-container *::after {
      box-sizing: inherit; }
    @media (min-width: 768px) {
      .ol-touch .ol-geocoder.gcd-gl-container {
        top: 5.5em; } }
  
  .ol-geocoder .gcd-gl-control {
    position: relative;
    width: 300px;
    height: 40px;
    overflow: hidden;
    transition: width 200ms, height 200ms; 
    background-color: var(--main-color); 
    border-radius: 0; 
    padding-left: 5px; }
    .ol-geocoder .gcd-gl-control::before {
      content: 'a';
      border-left: 2px solid #e1e1e1;
      margin-left: -5px;
      position: absolute;
      top: 3px;
      height: 82%; }
    .ol-touch .ol-geocoder .gcd-gl-control {
      width: 39px;
      height: 39px; }
  
  .ol-geocoder .gcd-gl-expanded {
    width: 15.625em;
    height: 1.95em; }
    .ol-touch .ol-geocoder .gcd-gl-expanded {
      width: 15.925em; }
  
  .ol-geocoder .gcd-gl-input {
    position: absolute;
    z-index: 99;
    margin: 0;
    margin-left: -2px;
    width: 292px;
    padding: 7px;
    border: none;
    font-family: inherit;
    font-size: 0.875em;
    background-color: #fff;
    color: #222;
    left: 6px }
    .ol-geocoder .gcd-gl-input:focus {
      border: none;
      outline: none;
      box-shadow: none; }
    .ol-touch .ol-geocoder .gcd-gl-input {
      height: 30px;
      left: 2.75em;
      top: 0.33em; }
  
  .ol-geocoder .gcd-gl-reset {
    position: absolute;
    z-index: 100;
    top: 0;
    right: 0.1em;
    width: 1.5625em;
    height: 100%;
    line-height: 1.15;
    border: none;
    background-color: transparent;
    display: inline-block;
    outline: 0;
    cursor: pointer; }
    .ol-geocoder .gcd-gl-reset::after {
      font-family: "Font Awesome 6 Free";
      content: "\f1f8";
      display: inline-block;
      margin-top: 11px;
      color: rgb(130, 129, 129);
      font-size: 15px;
      font-weight: 900;
      cursor: pointer; }
    .ol-touch .ol-geocoder .gcd-gl-reset {
      line-height: 1.6; }
  
  .ol-geocoder .gcd-gl-btn {
    display: none;
    position: absolute;
    width: 1.375em;
    height: 1.375em;
    top: 0.125em;
    left: 0.125em; }
    .ol-touch .ol-geocoder .gcd-gl-btn {
      width: 31px;
      height: 31px; }
  
  .ol-geocoder ul.gcd-gl-result {
    top: 43px;
    left: 1px;
    width: 292px;
    max-height: 18.75em;
    white-space: normal;
    list-style: none;
    padding: 0;
    margin: 3px;
    margin-top: 0;
    background-color: white;
    border-radius: 4px;
    border-top: none;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    overflow-x: hidden;
    overflow-y: auto;
    box-shadow: 0 1px 7px rgba(0, 0, 0, 0.8);
    transition: max-height 300ms ease-in; }
    .ol-geocoder ul.gcd-gl-result > li {
      width: 100%;
      overflow: hidden;
      border-bottom: 1px solid #eee;
      padding: 0;
      line-height: 0.875rem; }
      .ol-geocoder ul.gcd-gl-result > li > a {
        display: block;
        text-decoration: none;
        padding: 3px 5px; }
        .ol-geocoder ul.gcd-gl-result > li > a:hover {
          background-color: #d4d4d4; }
    .ol-geocoder ul.gcd-gl-result > li:nth-child(odd) {
      background-color: rgba(240, 240, 240, 0.9); }
    .ol-touch .ol-geocoder ul.gcd-gl-result {
      top: 2.4em;
      left: 2.45em;
      width: 14.25em;
      max-width: 75%; }
  
  .ol-geocoder ul.gcd-gl-result:empty {
    display: none; }
  
  .ol-geocoder.gcd-txt-container {
    position: absolute;
    width: 25em;
    height: 4.375em;
    top: 0.7em;
    left: 5em;
    box-sizing: border-box; }
    .ol-geocoder.gcd-txt-container *,
    .ol-geocoder.gcd-txt-container *::before,
    .ol-geocoder.gcd-txt-container *::after {
      box-sizing: inherit; }
  
  .ol-geocoder .gcd-txt-input {
    height: 1.8em;
    border-radius: 5px;
    border: 5px solid;
    background-color: rgb(230, 230, 230);
  }

.icon::before {
    display: inline-block;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased; }

.ol-geocoder .gcd-gl-search {
    top: 9px;
    right: 3px; }
.ol-geocoder .gcd-gl-search::after {
    font: var(--fa-font-solid);
    content: "\f002";
    color: var(--main-color); }

@media (min-width: 768px) and (max-width: 991px) {
    .sidebar-left ~ .sidebar-map .ol-geocoder {
        margin-left: 305px;
    }
    }
