html, body {
  height: 100%;
  margin: 0;
}

body {
  display: flex;
}

.main-content {
  flex: 1;
  display: flex;
  min-height: 0;
}

#map {
  flex: 3;
}

/* styling side-info */

#side-info{
  flex: 1;
  background: #fff;
  padding: 20px;
  margin-left: 5px;
  border-radius: 8px;
  font-family: 'Noto Sans', helvetica, arial, sans-serif;
  box-shadow: 0 2px 8px rgba(39, 39, 39, 0.2);
  min-width: 180px;
  max-width: 300px;
  display: flex;
  flex-direction: column;
}

#feature-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 0;
  overflow-y: scroll;
}

.digitalisat {
  display: inline-block;
  margin-top: 5px;
  margin-left: 5px;
  margin-bottom: 5px;
  color: white;
  text-decoration: none;
  padding: 10px;
  border-radius: 5px;
  box-shadow: 0 2px 8px rgba(39,39,39,0.5);
  background-image: linear-gradient(to bottom, #212a47, #2f3e6a);
}

.digitalisat:hover{
    background-image: linear-gradient(to bottom, #3e4b75, #526ab4);
}

.link {
  display: inline-block;
  margin-top: 10px;
  margin-bottom: 10px;
  margin-left: 5px;
  text-decoration: none !important;
  color: #2f3e6a !important;
  padding: 10px;
  border-radius: 5px;
  box-shadow: 0 2px 8px rgba(199, 199, 199, 0.5);
  background: #ffffff;
  font-weight: bold; 
}

.link:hover{
   color: #6275ad !important; 
}

.ausgabentitel{
  width: 100%;
  display: block; 
  box-sizing: border-box;
  color: black;
  text-decoration: none;
  font-size: large;
  font-weight: bold; 
  padding: 10px; 
  background: #c9cacc;
}

.haupttitel{
  width: 100%;
  display: block; 
  box-sizing: border-box;
  margin-bottom: 10px;
  color: rgb(255, 255, 255);
  text-decoration: none;
  font-size: x-large;
  font-weight: bold; 
  padding: 10px; 
  background: #2f3e6a;
}

.untertitel{
  width: 100%;
  display: block; 
  box-sizing: border-box;
  margin-bottom: 10px;
  color: rgb(255, 255, 255);
  text-decoration: none;
  font-size: larger;
  font-weight: bold; 
  padding: 10px; 
  background: #6275ad;
}

.ausgabebox{
  width: 100%;
  display: block; 
  box-sizing: border-box;
  color: black;
  padding: 5px; 
  border-width: 2px;
  margin-bottom: 10px;
  background-image: linear-gradient(to bottom, #ffffff, #e4e4e4);
}


/* styling tabelle */
.tg {
  border-collapse: collapse;
  border-spacing: 0;
  width: 100%;
  margin-bottom: 10px;
}

.tg td, .tg th {
  font-size: 14px;
  padding: 8px 6px;
}

.tg-label {
  font-weight: bold;
  background-color: #ffffff;
  width: 30%;
}

.tg-value {
  background-color: #ffffff;
}

.tg tr:nth-child(even) td {
  background-color: #f5f5f5;
}

.tg td:first-child {
  border-right: 2px solid #c9cacc;
}


/* styling ausklappbare Legende */
.leaflet-legend {
  background: #fff;
  padding: 2px 5px;
  border-radius: 5px;
  min-width: 55px;
  font-size: 20px;
}

.hidden {
  display: none;
}

.action {
  cursor: pointer;
}

.arrow {
  display: inline-block;
  pointer-events: none;
  line-height: 100%;
}

.is-active .arrow {
  rotate: 180deg;
}


/* styling Layer im Layercontrol */
.leaflet-touch .leaflet-control-layers-toggle:before {
  content: "Auswahl";
}

.leaflet-touch .leaflet-control-layers-toggle {
  background: #fff;
  color: #000;
  height: 31px;
  padding: 2px 5px;
  font-size: 20px;
  text-decoration: none;
  width: 78px;
}

.layername {
  flex: 0.6;
  background: #fff;
  padding: 5px;
  margin-left: 5px;
  min-width: 180px;
  max-width: 300px;
  display: inline-block;
  flex-direction: column;
}

.leaflet-control-layers input {
  vertical-align: top;
  margin-top: 30px;
}


/* styling tooltips */


.leaflet-tooltip-left:before {
left: 0;
right: 0;
/* margin-right: -12px; */
border-left-color: rgba(255, 255, 255, 0); 
}
.leaflet-tooltip-right:before {
left: 0;
right: 0;
/* margin-left: -12px; */
border-right-color: rgba(255, 255, 255, 0);
}
.leaflet-tooltip-own {
position: absolute;
/* padding: 4px; */
/* background-color: rgba(199, 26, 26, 0.4); */
/* border: 0px solid #000; */
color: #000;
background: #ffffff00;
white-space: nowrap;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
pointer-events: none;
/* box-shadow: 0 1px 3px rgba(0,0,0,0.4); */
}

.leaflet-tooltip {
    background-color: transparent;
    border: 0px;
    box-shadow: none;
    font-size: 20px;
}