html,
body {
  height: 100%;
  margin: 0;
  background: #f9f9f9;
}



body {
  overflow-y: hidden;
}

#karte {
  height: calc(98% - 65px);
  width: 100%;
}

#header {
  text-align: center;
  margin-bottom: 20px;
}



#content {
  text-align: center;
}

#popup-text {
  display: inline-block;
  margin-right: 20px;
}

#popup-text a {
  display: inline-block;
  margin-right: 20px;
  color: gray;
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
  text-decoration: none;
}

#popup-text a:hover {
  color: black;
}

h1 {
  font-size: 20px;
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}

h2 {
  margin: 5px auto;
  font-size: 14px;
  text-align: center;
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}

.layerControl {
  background-color: rgb(168, 143, 143);
  padding: 10%;
}

p {
  font-size: 14px;
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}

.legend {
  background-color: whitesmoke;
  padding: 20px;
  width: 200px;
  border: 2px solid #000;
  position: static;
  bottom: 20;
  left: 50;
  right: 20;
  z-index: 600;
}

.custom-popup {
  background-color: #fff;
  border: 2px solid #000;
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
  max-width: 500px;
}

.custom-popup h1 {
  color: #303030;
  font-size: 16px;
  margin-bottom: 5px;
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif
}

.custom-popup h2 {
  color: #303030;
  font-size: 14px;
  margin: 0;
  margin-bottom: 5px;
  text-align: left;
}


.custom-popup p {
  font-size: 14px;
  margin: 5px 0;
}

.Literaturstyle {
  font-size: 11px;
  font-family: Arial, Helvetica, sans-serif;
  font-style: italic;
}

.flyToButton {
  cursor: pointer;
  padding: 5px;
  margin: 5px;
  display: inline-block;
  padding: 10px 10px;
  margin: 10px 0;
  background-color: #7a8188;
  color: #fff;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s;
}

.flyToButton:hover {
  background-color: #a2a2a2;
  color: #303030
}

#overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
}

#popup-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  padding: 20px;
  border: 2px solid #000;
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
  max-width: 500px;
}

#popup-content h2 {
  margin-top: 0;
  font-weight: bold;
}

#open-popup {
  margin-right: auto;
  color: gray;
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
  text-decoration: none;
}

a {
  margin-right: 20px;
  color: gray;
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
  text-decoration: none;
  display: inline-block;
  text-align: right;
  margin-bottom: 10px;
}

#links {
  display: inline-block;
  text-align: right;
}

#links a {
  margin-left: auto;
  position: relative;
}

#links a::after {
  content: "\2197";
  font-size: 0.8em;
  margin-left: 5px;
}

#popup-text .ammertallink {
  text-align: left;
  color: gray;
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
  text-decoration: none;
}

#popup-text .ammertallink:hover {
  color: black;
}

#popup-text .ammertallink::after {
  content: "\2197";
  margin-left: 5px;
}

#close-popup {
  cursor: pointer;
  padding: 5px;
  margin: 5px;
  display: inline-block;
  padding: 5px 10px;
  margin: 10px 0;
  background-color: #7a8188;
  color: #fff;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s;
}

#close-popup:hover {
  background-color: #a2a2a2;
  color: #303030
}

.leaflet-bar {
  border: none!important;
}