body {
  padding: 0;
  margin: 0;
}

html,
body,
#map {
  height: 100%;
  width: 100%;
}

#radlobby-logo {
  position: fixed;
  right: 0px;
  bottom: 70px;
  z-index: 900;
}

#radlobby-logo img {
  padding: 5px;
  width: 100px;
}

@media (max-width: 600px) {
  #radlobby-logo img {
    width: 50px;
  }
}


.leaflet-container {
  background-color: #fff;
}

/* Sidebar positioning - replaces leaflet-sidebar positioning */
.leaflet-sidebar {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  z-index: 2000;
  background-color: #fff;
  transform: translateX(-100%);
  transition: transform 500ms;
}

@media (min-width: 768px) {
  .leaflet-sidebar {
    top: 10px;
    bottom: 10px;
    left: 10px;
    width: 400px;
    max-width: 400px;
    transform: translateX(0);
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.65);
    border-radius: 5px;
  }
}

.leaflet-sidebar.open {
  transform: translateX(0);
}

.leaflet-sidebar-tabs {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  height: 100%;
  background-color: #fff;
}

.leaflet-sidebar-tabs > ul {
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  background-color: #fff;
}

.leaflet-sidebar-tabs > ul > li {
  width: 100%;
  height: 40px;
  display: block;
  cursor: pointer;
}

.leaflet-sidebar-tabs > ul > li > a {
  display: block;
  width: 100%;
  height: 100%;
  line-height: 40px;
  text-align: center;
  text-decoration: none;
  color: #666;
}

.leaflet-sidebar-content {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 40px;
  right: 0;
  overflow-x: hidden;
  overflow-y: auto;
}

.leaflet-sidebar-pane {
  display: none;
  left: 40px;
  right: 0;
  box-sizing: border-box;
  padding: 0 20px 10px 20px;
}

.leaflet-sidebar-pane.active {
  display: block;
}

h1,
h2,
h3,
h4 {
  font-family: 'Museo 500 Regular', sans-serif;
  color: #004B67;
}

h5,
a {
  color: #004B67;
}

h5,
p,
li {
  font-family: Roboto, arial, sans-serif;
}

h1 {
  font-size: 100%;
  margin-top: 0;
  margin-bottom: 0.2em;
  color: #B8CC24;
}

h3 {
  font-size: 115%;
}

h4 {
  font-size: 110%;
}

strong {
  font-weight: bold;
}

input {
  accent-color: #004B67;
}

.leaflet-sidebar {
  font-size: medium;
}

.leaflet-sidebar-header,
.leaflet-sidebar-tabs > ul > li.active {
  background-color: #B8CC24;
  color: #fff;
  margin-top: 0;
  padding-top: 10px;
}

.leaflet-sidebar-tabs > ul > li.active > a > i {
  color: #fff;
}

.leaflet-sidebar-pane a,
.leaflet-sidebar-pane a:visited,
.leaflet-sidebar-pane a:active,
.leaflet-control-attribution a {
  color: #004B67;
  /* text-decoration: none; */
}

a:hover {
  color: white !important;
  background-color: #B8CC24 !important;
  /* text-decoration: underline; */
}

ul.legend-leftified {
  padding-left: 0;
}

ul.legend li {
  list-style-type: none;
  margin-bottom: 0.5em;
}

div.legend {
  width: 230px;
  height: 10px;
  border-radius: 5px;
}

div.legend-main {
  vertical-align: middle;
  background-color: #999;
}

div.legend-regional {
  background-color: #999;
  height: 4px;
}

div.legend-calm {
  background-color: #004B67;
}

div.legend-medium {
  background-color: #51A4B6;
}

div.legend-stressful {
  background-color: #FF6600;
}

div.legend-oneway {
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 15px 0 15px 15px;
  border-color: transparent transparent transparent #999;
  margin-left: 10px;
  margin-right: 35px;
  border-radius: 0;
}

div.legend-unpaved {
  background: repeating-linear-gradient(90deg,
      #999 0,
      #999 20px,
      #fff 20px,
      #fff 30px);
}

div.legend-steep {
  height: 25px;
  background: repeating-linear-gradient(90deg,
      transparent 0,
      transparent 9px,
      #999 9px,
      #999 11px,
      transparent 11px,
      transparent 30px);
}

div.legend-container {
  display: grid;
  align-items: center;
}

div.legend-container div {
  grid-column: 1;
  grid-row: 1;
  display: flex;
}

ul.legend li img {
  float: right;
  margin-left: 0.5em;
  margin-bottom: 0.5em;
}

.leaflet-popup-content p,
.leaflet-popup-content ul {
  margin-top: 0;
  margin-bottom: 0.2em;
}

.leaflet-popup-content h2 {
  font-size: 100%;
  margin-top: 0;
  margin-bottom: 0.2em;
}

.leaflet-popup-content .sidenote {
  color: dimgray;
  font-size: 85%;
  margin-bottom: 0;
}

.leaflet-popup-content .sidenote a {
  color: dimgray;
}

span.transitLine {
  color: #fff;
  font-weight: bold;
  padding: 0.2em;
}

/*
- #AAB622 Grün für Schrift

- #F0F4D9 Grün für Flächen (sehr hell)
- #B8CC24 Grün für Logo, Flächen & andere Stilelemente (satt)
- #004B67 Blau für Text & andere Stilelemente (satt, dunkel)

- #51A4B6 Sekundärfarbe (Türkis)
- #A2C8D3 Sekundärfarbe (Hellblau)
- #FF6600 Sekundärfarbe (Orange)
*/

/* Layer Control Styling */
.layer-control {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2100;
  background: white;
  border-radius: 5px;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.4);
  font-family: "Museo Sans", sans-serif;
  font-size: 14px;
}

.layer-control-toggle {
  padding: 8px;
  cursor: pointer;
  background: white;
  border-radius: 5px;
  border: 2px solid #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
}

.layer-control-toggle:hover {
  background: #f4f4f4;
}

.layer-control-content {
  display: none;
  position: absolute;
  top: 0;
  right: 100%;
  min-width: 200px;
  background: white;
  border-radius: 5px;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.4);
  padding: 10px;
  margin-right: 5px;
}

.layer-control.expanded .layer-control-content {
  display: block;
}

.layer-control-section {
  margin-bottom: 10px;
}

.layer-control-section h4 {
  margin: 0 0 5px 0;
  font-size: 12px;
  font-weight: bold;
  color: #004B67;
  border-bottom: 1px solid #eee;
  padding-bottom: 3px;
}

.layer-control-section label {
  display: block;
  padding: 3px 0;
  cursor: pointer;
  font-size: 12px;
}

.layer-control-section label:hover {
  color: #004B67;
}

.layer-control-section input[type="checkbox"] {
  margin-right: 5px;
}

/* MapLibre Popup Styling for Problem Markers */
.maplibregl-popup.problem-marker-popup .maplibregl-popup-content {
  font-family: Roboto, arial, sans-serif;
  max-width: 300px;
  padding: 10px;
  border-radius: 5px;
}

.maplibregl-popup.problem-marker-popup .maplibregl-popup-content h2 {
  font-family: 'Museo 500 Regular', sans-serif;
  font-size: 100%;
  margin-top: 0;
  margin-bottom: 0.2em;
  color: #004B67;
}

.maplibregl-popup.problem-marker-popup .maplibregl-popup-content p {
  margin-top: 0;
  margin-bottom: 0.2em;
  color: #333;
}
