html {
    font-family: Arial;
    text-align: center;
}

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

body {
    padding: 0;
    margin: 0;
}

:root {
    --color1: #007BFF;
}

.status-message-popup {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    padding: 15px 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    opacity: 1;
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
    z-index: 9999;
    font-family: sans-serif;
    font-size: 16px;
}

.status-message-popup.success {
    background-color: #4caf50;
}

.status-message-popup.error {
    background-color: #f44336;
}

.status-message-popup.fade-out {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
}

.infobox {
    position: fixed;
    top: 10px;
    right: 10px;
    width: 700px;
    background-color: #ffffff;
    border: 1px solid #ffffff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    font-family: sans-serif;
    overflow: hidden;
    z-index: 9999;
    font-size: 20px;
}

.infobox-header {
    background-color: var(--color1);
    color: white;
    padding: 10px 15px;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 30;
}

.infobox-toggle-icon {
    font-size: 20px;
    transition: transform 0.5s ease;
}

.infobox-content {
    max-height: 0;
    overflow: hidden;
    padding: 0 15px;
    transition: max-height 0.5s ease, padding 0.5s ease;
}

.infobox.open .infobox-content {
    max-height: 1000px;
    padding: 15px;
}

.legend-hr {
    border: 1px solid #aaaaaa;
}

/* Größere Checkboxen mit blauer Akzentfarbe */
.source-filter {
    width: 18px;
    height: 18px;
    accent-color: #007BFF;
    transform: translateY(2px); /* optische Ausrichtung an Text */
    margin-right: 8px;
    cursor: pointer;
}

#location-btn {
    background: #007BFF;
    border: 1px solid white;
    color: white;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

#classic-btn {
    background: #007BFF;
    border: 1px solid white;
    color: white;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

#hybrid-btn {
    background: #007BFF;
    border: 1px solid white;
    color: white;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

#satellite-btn {
    background: #0000ff;
    border: 1px solid white;
    color: white;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

.add-lp-popup .leaflet-popup-content-wrapper {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    padding: 0;
    overflow: visible;
}

.add-lp-popup .leaflet-popup-content {
    margin: 0;
    padding: 0;
    width: 350px !important;
    line-height: 1.4;
}

.add-lp-popup .leaflet-popup-tip {
    background: #007BFF;
}

/* Separate Klassen für Popup (nicht die gleichen wie für die Infobox) */
.add-lp-popup-header {
    background-color: var(--color1);
    color: white;
    padding: 10px 15px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 8px 8px 0 0;
}

.popup-content {
    padding: 15px;
    font-size: 16px;
    max-height: none !important;
    overflow: visible !important;
}

.close-popup {
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
}

.close-popup:hover {
    opacity: 0.8;
}

.popup-content strong {
    color: #333;
}

.popup-content p {
    margin: 0 0 10px 0;
    word-break: break-all;
}

.popup-content textarea {
    height: 120px;
    width: 100%;
    font-size: 16px;
    margin: 10px 0;
    padding: 8px;
    box-sizing: border-box;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
}

.popup-content button {
    font-size: 16px;
    width: 100%;
    padding: 10px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.popup-content button:hover {
    background-color: #0000ff;
}

#r {
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#r:hover {
    background-color: #ff0000;
}

/* Pulsierende Animation für Marker */

.pulse-marker-circlelpicon {
    animation: pulse-aqua 0.5s infinite;
    border-radius: 50%;
}

@keyframes pulse-aqua {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 255, 255, 1);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(255, 255, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 0, 0);
    }
}

.pulse-marker-yellowstaricon {
    animation: pulse-yellow 0.5s infinite;
    border-radius: 50%;
}

@keyframes pulse-yellow {
    0% {
        box-shadow: 0 0 0 0 rgba(251, 192, 45, 1);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(255, 255, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 0, 0);
    }
}

.pulse-marker-blue {
    animation: pulse-blue 0.5s infinite;
    border-radius: 50%;
}

@keyframes pulse-blue {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 0, 255, 1);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(255, 255, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 0, 0);
    }
}

.pulse-marker-red {
    animation: pulse-red 0.5s infinite;
    border-radius: 50%;
}

@keyframes pulse-red {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 0, 0, 1);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(255, 255, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 0, 0);
    }
}








/* Upload Section Styling */
.upload-section {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.upload-section h4 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 16px;
}

#fileInputElement1 {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f9f9f9;
    font-size: 14px;
    margin-bottom: 5px;
}

.upload-section small {
    color: #666;
    font-size: 12px;
    display: block;
    margin-bottom: 10px;
}
