/* 
   =============================
   Allgemeine Stile für HTML und Body
   =============================
*/
html,
body {
    height: 100%;
    font-family: Arial, sans-serif; /* Standard-Schriftart */
    margin: 0;
}

/* 
   =============================
   Stile für Logo in Navigation
   =============================
*/

.navbar-brand img {
     width:25px;   
    margin-top:-3px;
}

/* 
   =============================
   Stile für Abschnitte (Sections)
   =============================
*/
section {
    padding: 3rem 0 0 0; /* Abstand um Inhalte herum */
}

/* 
   =============================
   Stile für den Seitenkopf
   =============================
*/
h1 img {
    position: relative;
    top: -3px; /* Position des Bildes innerhalb des Kopfes */
    width: 35px;
}

/* 
   =============================
   Stile für Textbereiche
   =============================
*/
.text {
    /* width: 80%; */
    /* margin: auto; */
    /* Optionale Stile für Textbereiche */
}

/* 
   =============================
   Float-Ende-Stile für Absätze
   =============================
*/
.float-end {
    float: right;
    padding-right: 0.75rem;
}

/* 
   =============================
   Stile für Alarme
   =============================
*/

#alert, 
#goodToGo {
    position: absolute;
    top: 2.9rem;
    right: 1rem;
    margin-right: 10px;
    padding: 4px;
    color: #fff;
    width: 90%;
    text-align: center;
    border-radius: 5px;
    background: #fff;
    width: auto;
    /* display: none; */
}

#alert img, 
#goodToGo img {
    width:31px;
}

/* 
   =============================
   Stile für die Karte
   =============================
*/
#map {
    height: calc(100vh - 100px); /* 100% Höhe minus Kopfzeile und Footer-Höhe */
}

/* 
   =============================
   Stile für den Button-Behälter
   =============================
*/
#button-container {
    position: absolute;
    top: -4px;
    right: 1rem;
    margin-right: 10px;
    z-index: 1000;
    background: white;
    padding: 3px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* 
   =============================
   Stile für das Haupt-Element
   =============================
*/
main {
    position: relative;
}

/* 
   =============================
   Stile für die Legende
   =============================
*/
.legend {
    position: absolute;
    bottom: -1px;
    left: 10px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8); /* Transparenter Hintergrund */
    padding: 0.5rem;
    box-sizing: border-box;
    border-radius: 5px;
    white-space: nowrap; /* Verhindert Zeilenumbrüche */
    font-size: 0.85rem;
}

.legend .col {
    display: inline-block;
    margin-right: 0.5rem;
    white-space: nowrap; /* Verhindert Zeilenumbrüche */
}

.legend .col > span {
    width: 18px;
    height: 18px;
    display: inline-block;
    border-radius: 50%;
    margin-right: 0.25rem;
    vertical-align: middle;
}

.legend .location-info {
    padding-left:0.9rem;
}

/* 
   =============================
   Farb-Stile für die Legende
   =============================
*/
.legend .legend-color {
    width: 18px;
    height: 18px;
    display: inline-block;
    border-radius: 50%;
    margin-right: 0.25rem;
    vertical-align: middle;
}

.legend .legend-blue {
    background-color: blue;
}

.legend .legend-orange {
    background-color: #FFA500;
}

.legend .legend-green {
    background-color: green;
}

.legend .legend-pink {
    background-color: pink;
}

.legend .legend-red {
    background-color: red;
}

.legend .legend-yellow {
    background-color: yellow;
}

/* 
   =============================
   Stile für die Anzahl in der Legende
   =============================
*/
#countSchools,
#countPlaygrounds,
#countKindergartens,
#countSports,
#countJugendzentren {
    display: inline-block;
    vertical-align: middle;
}

/* 
   =============================
   Stile für den Cookie-Hinweis
   =============================
*/
#cookieConsent {
    position: fixed;
    top: 50%; /* Zentriert vertikal */
    left: 50%; /* Zentriert horizontal */
    background: #fff; /* Hintergrundfarbe */
    padding: 1rem;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    font-size: 0.9rem;
    z-index: 1000;
    width:93%;
    max-width: 500px; /* Maximalbreite des Cookie-Hinweises */    
    transform: translate(-50%, -50%);
}

#cookieConsent .cookie-buttons {
    margin-top: 0.5rem;
}

/* 
   =============================
   Stile für den Footer
   =============================
*/
footer {
    position: relative;
    padding-top: 1rem;
    text-align: center;
    background: #f8f9fa; /* Hintergrundfarbe anpassen */
    margin-top: 2rem; /* Abstand zum Hauptinhalt */
    clear: both; /* Footer klärt Floats */
}

footer .text {
    padding-bottom: 3rem;
}

/* 
   =============================
   Weitere spezifische Stile
   =============================
*/
.geometry-filters {
    margin-bottom: 10px;
}

.geometry-filters label {
    margin-right: 10px;
}

.legend-item {
    display: block;
    margin-bottom: 5px;
}

/* 
   =============================
   CSS für das Abdunkeln der Webseite
   =============================
*/
.dimmed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Hintergrundfarbe mit Transparenz */
    z-index: 1000; /* Über allen anderen Elementen */
    /* display: none; */ /* Standardmäßig ausgeblendet */
}

/* 
   =============================
   CSS für das Lade-Overlay
   =============================
*/
#loadingDiv {
    display: flex; /* Flexbox-Layout für Zentrierung */
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(255, 255, 255, 0.8);
    border: 1px solid #ccc;
    padding: 20px;
    z-index: 1000; /* Ausreichend hoher z-index */
}


#loadingDiv img,
#loadingDiv p {
    display:block;
    margin:auto;
}

#zoomWarningDiv {
	position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgb(204, 204, 204);
    display: none;
}	
