body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

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

.popup-img {
    width: 100%;
    height: auto;
    margin-top: 8px;
    border-radius: 4px;
    display: block;
}

/* Optional: Styling für das Layer-Control-Menü */
.leaflet-control-layers {
    font-size: 14px;
    line-height: 1.5;
}

/* Grundlayout */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

header {
    background-color: #2c3e50;
    color: white;
    padding: 10px 20px;
    text-align: center;
}

header h1 {
    margin: 0;
    font-size: 1.5rem;
}

/* Die Karte füllt den verfügbaren Platz aus */
#map {
    flex-grow: 1;
    width: 100%;
}

footer {
    background-color: #f8f9fa;
    padding: 15px;
    text-align: center;
    border-top: 1px solid #dee2e6;
    font-size: 0.9rem;
}

footer a {
    color: #2980b9;
    text-decoration: none;
    margin: 0 5px;
}

footer a:hover {
    text-decoration: underline;
}

/* Leaflet Popup Anpassungen */
.popup-img {
    width: 100%;
    height: auto;
    margin-top: 8px;
    border-radius: 4px;
    display: block;
}

.loading-hint {
    color: #7f8c8d;
    font-size: 0.85rem;
    margin-top: 10px;
}

.history-table {
    width: 100%;
    font-size: 0.8rem;
    border-collapse: collapse;
    margin-top: 10px;
}

.history-table td {
    border-bottom: 1px solid #eee;
    padding: 4px 0;
}

/* Scrollbereich für lange Texte */
.popup-scroll-container {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 5px;
}

/* Scrollbar-Styling für moderne Browser */
.popup-scroll-container::-webkit-scrollbar {
    width: 6px;
}
.popup-scroll-container::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 3px;
}

.ext-content-area {
    margin-top: 10px;
}

.ext-html {
    font-size: 0.9rem;
    line-height: 1.4;
    color: #444;
}

.ext-html img {
    margin: 10px 0;
    border: 1px solid #ddd;
}