    #map {
    height: 100vh;
    width: 100%;
    }
    .windrad-marker {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 0.9rem;
    font-weight: bold;
    text-align: center;
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
    }
    .windrad-red { background-color: red; color: white; border: 1px solid #000000; }
    .windrad-yellow { background-color: yellow; color: black; border: 1px solid #000000; }
    .windrad-blue { background-color: blue; color: white; border: 1px solid #000000; }
    .windrad-gray { background-color: gray; color: white; border: 1px solid #000000; }
    .windrad-orange { background-color: orange; color: black; border: 1px solid #000000; }
    .windrad-white { background-color: white; color: black; border: 1px solid #000000; }
    .windrad-black { background-color: black; color: white; border: 1px solid #000000; }
    .windrad-green { background-color: #90EE90; color: black; border: 1px solid #000000; }
    .windrad-purple { background-color: #DDA0DD; color: black; border: 1px solid #000000; }
    .windrad-lightblue { background-color: #ADD8E6; color: black; border: 1px solid #000000; }
    .windrad-brown { background-color: #964B00; color: white; border: 1px solid #000000; }

    .ort-label {
    font-size: 0.8rem;
    font-weight: bold;
    color: black;
    background: rgba(255, 255, 255, 0.8);
    padding: 2px 5px;
    border-radius: 3px;
    border: 1px solid gray;
    }

    .vogel-icon {
    font-size: 1.5rem;
    text-shadow: 1px 1px 2px white, -1px -1px 2px white;
    background: white;
    border-radius: 50%;
    padding: 5px;
    display: inline-block;
    }

    .pflanze-icon {
    font-size: 1.5rem;
    text-shadow: 1px 1px 2px white, -1px -1px 2px white;
    background: white;
    border-radius: 50%;
    padding: 5px;
    display: inline-block;
    }

    .reptil-icon {
    font-size: 1.5rem;
    text-shadow: 1px 1px 2px white, -1px -1px 2px white;
    background: white;
    border-radius: 50%;
    padding: 5px;
    display: inline-block;
    }

    .insekt-icon {
    font-size: 1.5rem;
    text-shadow: 1px 1px 2px white, -1px -1px 2px white;
    background: white;
    border-radius: 50%;
    padding: 5px;
    display: inline-block;
    }

    .fledermaus-icon {
    font-size: 1.5rem;
    text-shadow: 1px 1px 2px white, -1px -1px 2px white;
    background: white;
    border-radius: 50%;
    padding: 5px;
    display: inline-block;
    }

    .legende {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: white;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 0 5px rgba(0,0,0,0.3);
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
    }

    .legende-item {
      display: flex;
      align-items: center;
      gap: 6px;
      margin: 2px 0;
    }

    .legende-farbe {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    margin-right: 5px;
    display: inline-block;
    }

    .legende-symbol {
    margin-right: 5px;
    font-size: 1.2;
    }

    .cluster-icon {
    background-color: #fff;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    text-align: center;
    line-height: 30px;
    font-weight: bold;
    border: 2px solid #000;
    }

    /* Legende auf der linken Seite */
    .legend-container {
    position: absolute;
    bottom: 20px;
    left: 50px;
    z-index: 1000;
    max-height: 100vh;
    overflow: hidden;
    transition: all 0.3s ease;
    }

    .legend-toggle {
    background: white;
    padding: 10px 15px;
    border-radius: 5px 5px 0 0;
    box-shadow: 0 0 5px rgba(0,0,0,0.3);
    cursor: default;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    }

    .legend-content {
    background: white;
    padding: 10px;
    border-radius: 0 0 5px 5px;
    box-shadow: 0 0 5px rgba(0,0,0,0.3);
    max-height: calc(80vh - 40px);
    overflow-y: auto;
    }

    .legend-content.collapsed {
    display: none;
    }

    .toggle-icon {
    font-size: 1.2m;
    transition: transform 0.3s;
    }

    .toggle-icon.collapsed {
    transform: rotate(-90deg);
    }

    .legende-item {
    margin: 5px 0;
    display: flex;
    align-items: center;
    white-space: nowrap;
    }

    .legende-farbe {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    margin-right: 5px;
    display: inline-block;
    }

    .legende-symbol {
    margin-right: 5px;
    font-size: 1.2rem;
    }

    .icon-110kv {
      background: #2196f3;
      border-radius: 50%;
      border: 2px solid #fff;
      width: 32px;
      height: 32px;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .icon-220kv {
      background: #e53935;
      border-radius: 50%;
      border: 2px solid #fff;
      width: 32px;
      height: 32px;
      display: flex;
      align-items: center;
      justify-content: center;
    }
/* Verschiebt den Layer-Control-Container (Button)  */
.leaflet-control-layers {
    margin-top: 10px !important; /* Abstand vom unteren Rand */
    margin-right: 10px !important;  /* Abstand vom rechten Rand */
}

    /* Koordinatenanzeige rechts unten */
    .coordinates-display {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    padding: 8px 12px;
    border-radius: 5px;
    box-shadow: 0 0 5px rgba(0,0,0,0.3);
    z-index: 1000;
    font-family: monospace;
    font-size: 12px;
    border: 1px solid #ccc;
    }

    /* Zoom-Buttons rechts unten (über Koordinaten) */
    .leaflet-control-zoom {
    position: absolute !important;
    bottom: 120px !important;
    right: 20px !important;
    top: auto !important;
    left: auto !important;
    }
    #map {
  cursor: pointer !important;
    }
      #address {
    width: 250px;
    padding: 5px;
  }

  #address-search-container {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 1000;
    background: white;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    display: block !important;
    z-index: 9999;
  }
    /* Kontextmenü-Styles */
  #context-menu {
    position: absolute;
    display: none;
    background-color: #f9f9f9;
    border: 1px solid #ccc;
    min-width: 220px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    z-index: 10000;
    font-family: sans-serif;
  }

  #context-menu ul {
    list-style: none;
    margin: 0;
    padding: 4px 0;
  }

  #context-menu ul li {
    padding: 8px 15px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
  }

  #context-menu ul li:hover {
    background-color: #0062cc;
    color: white;
  }

    .map-direction {
    position: absolute;
    font-weight: bold;
    background: rgba(255,255,0,0.7);
    padding: 2px 6px;
    border-radius: 3px;
    z-index: 1000;
    pointer-events: none;
  }
  .north { top: 10px; left: 50%; transform: translateX(-50%); }
  .south { bottom: 10px; left: 50%; transform: translateX(-50%); }
  .east { right: 10px; top: 50%; transform: translateY(-50%); }
  .west { left: 10px; top: 50%; transform: translateY(-50%); }

    /* Minimap auf Mobilgeräten ausblenden */
  @media (max-width: 768px) {
  .leaflet-control-minimap {
    display: none !important;
  }
}

.windrad-neon circle {
    filter: drop-shadow(0 0 4px currentColor)
    drop-shadow(0 0 8px currentColor)
    drop-shadow(0 0 12px currentColor);
}

    /* Mess-Tools im OpenLayers-Stil */
    .measure-tools {
      position: absolute;
      top: 240px;
      right: 10px;
      background: white;
      padding: 10px;
      border-radius: 5px;
      box-shadow: 0 0 5px rgba(0,0,0,0.3);
      z-index: 1000;
      min-width: 120px;
    }
    .measure-tools h4 {
      margin: 0 0 8px 0;
      font-size: 0.9rem;
      font-weight: 600;
    }
    .measure-tools button {
      display: block;
      width: 100%;
      margin: 1px 0;
      padding: 8px 12px;
      border: 1px solid #ccc;
      background: #f9f9f9;
      border-radius: 3px;
      cursor: pointer;
      font-size: 0.85rem;
      transition: background-color 0.2s;
    }
    .measure-tools button:hover {
      background: #e9e9e9;
    }
    .measure-tools button.active {
      background: #007cba;
      color: white;
    }
    .measure-result {
      margin-top: 8px;
      padding: 8px;
      background: #f0f8ff;
      border-radius: 3px;
      font-size: 0.8rem;
      border: 1px solid #ddd;
      display: none;
    }

    /* Responsive Design für Mess-Tools */
    @media (max-width: 600px) {
      .measure-tools {
        top: 60px;
        left: 5px;
        padding: 8px;
        min-width: 160px;
      }
    }