/* Datei: css/style.css */

/* -----------------------------
   Grundlegendes Styling
----------------------------- */
body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: Arial, sans-serif;
}

#map {
    width: 100%;
    height: 100vh;
}

/* -----------------------------
   Tooltip Styling
----------------------------- */
.tooltip-class {
    background-color: white;
    border: 1px solid red;
    padding: 2px 5px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
    color: black;
}

.area-label {
    background-color: white;
    border: 1px solid #333;
    padding: 2px 4px;
    border-radius: 3px;
    font-size: 13px;
    font-weight: bold;
    color: #333;
    text-align: center;
}

/* -----------------------------
   Marker Styling (zusätzliches Styling)
----------------------------- */
.leaflet-div-icon {
    /* Standardgröße überschreiben falls nötig */
    width: 20px !important;
    height: 30px !important;
}

/* -----------------------------
   DrawnItems / Polygon Styling
----------------------------- */
.leaflet-interactive {
    cursor: pointer;
}

/* -----------------------------
   Toggle Buttons Styling
----------------------------- */
button {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 1000;
    background-color: white;
    border: 1px solid #333;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 3px;
    font-size: 14px;
    margin-right: 5px;
}

button:hover {
    background-color: #f0f0f0;
}

/* Falls mehrere Buttons */
#toggleBoundaries {
    left: 160px;
}
#toggleOutside {
    left: 10px;
}

/* Datei: css/style.css */

/* -----------------------------
   Allgemeines Body / Seite
----------------------------- */
body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: Arial, sans-serif;
}

/* -----------------------------
   Map Container
----------------------------- */
#map {
    width: 100%;
    height: 100vh;
    position: relative;
}

/* -----------------------------
   Marker Tooltip
----------------------------- */
.tooltip-class {
    background-color: white;
    border: 1px solid red;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    color: #333;
    font-weight: bold;
}

/* -----------------------------
   Area Tooltip
----------------------------- */
.area-label {
    background-color: rgba(255,255,255,0.9);
    border: 1px solid #333;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
    color: #000;
}

/* -----------------------------
   Buttons (Toggle Outside / Boundaries)
----------------------------- */
#toggleOutside,
#toggleBoundaries {
    position: absolute;
    top: 10px;
    left: 10px;
    background: white;
    border: 1px solid #333;
    padding: 6px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    z-index: 1000;
    margin-bottom: 5px;
}

#toggleBoundaries {
    top: 40px;
}

/* Hover-Effekt Buttons */
#toggleOutside:hover,
#toggleBoundaries:hover {
    background-color: #f0f0f0;
}

/* -----------------------------
   Leaflet Draw Styles Anpassung
   (Optional, kann Leaflet CSS ergänzen)
----------------------------- */
.leaflet-draw-toolbar-top {
    z-index: 1001; /* Über Buttons */
}

/* -----------------------------
   Mobile Anpassung
----------------------------- */
@media (max-width: 600px){
    #toggleOutside, #toggleBoundaries {
        font-size: 10px;
        padding: 4px 8px;
    }
}