/* Standardschriftart und Layout */
body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    height: 100vh;
    overflow: hidden;
}

/* Container für Karte und Info-Box */
#container {
    display: flex;
    height: 100vh;
    width: 100%;
}

h4 {
    padding: 0;
    margin-bottom: 1px;
}

/* Header Styling */
.header {
    background-color: #f9f9f9;
    padding: 0px 30px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    height: 60px;
}

.leaflet-interactive:focus {
    outline: none !important;
}

.logo {
    height: 40px;
    width: auto;
    margin-right: 20px;
    display: flex;
    align-self: center;
}

.header-title {
    font-family: 'Montserrat', sans-serif;
    color: #333;
    font-size: 24px;
    font-weight: 500;
    margin: 0;
}

/* Anpassung der Karte */
#map {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgb(255, 255, 255);
}

input[type="radio"]:disabled + span {
  color: #999; /* oder eine andere graue Farbe */
}

input[type="checkbox"]:disabled + span {
  color: #999; /* oder eine andere graue Farbe */
}


#info-box {
    flex: 1;
    padding: 20px;
    background-color: #f7f7f7;
    overflow-y: auto;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

#info-box h2, #info-box h3 {
    color: #333;
    margin-top: 0;
    padding-top: 0;
    font-weight: 700;
}

#layer-controls label {
    font-size: 14px;
    color: #333;
    margin-bottom: 5px;
}

/* Diagramm und Infotext */
#info-text {
    font-size: 14px;
    color: #555;
    margin-bottom: 20px;
}

/* Controls Container */
.controls-container {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 200px;
   
}

.section {
    background: white;
    border-radius: 12px;
    padding-left: 20px;
    padding-bottom: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 100%;
}

/* Layer Toggle Container */
#layer-toggle-container {
    position: absolute;
    top: 20px;
    left: 10px;
    z-index: 1000;
}

#layer-toggle {
    width: 36px;
    height: 36px;
    background-color: #ffffff;
    border: 2px solid rgba(0,0,0,0.2);
    border-radius: 4px;
    cursor: pointer;
    box-shadow: none;
    background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAaCAQAAAADQ4RFAAACf0lEQVR4AY1UM3gkARTePdvdoTxXKc+qTl3aU5U6b2Kbkz3Gtq3Zw6ziLGNPzrYx7946Tr6/ee/XeCQ4D3ykPtL5tHno4n0d/h3+xfuWHGLX81cn7r0iTNzjr7LrlxCqPtkbTQEHeqOrTy4Yyt3VCi/IOB0v7rVC7q45Q3Gr5K6jt+3Gl5nCoDD4MtO+j96Wu8atmhGqcNGHObuf8OM/x3AMx38+4Z2sPqzCxRFK2aF2e5Jol56XTLyggAMTL56XOMoS1W4pOyjUcGGQdZxU6qRh7B9Zp+PfpOFlqt0zyDZckPi1ttmIp03jX8gyJ8a/PG2yutpS/Vol7peZIbZcKBAEEheEIAgFbDkz5H6Zrkm2hVWGiXKiF4Ycw0RWKdtC16Q7qe3X4iOMxruonzegJzWaXFrU9utOSsLUmrc0YjeWYjCW4PDMADElpJSSQ0vQvA1Tm6/JlKnqFs1EGyZiFCqnRZTEJJJiKRYzVYzJck2Rm6P4iH+cmSY0YzimYa8l0EtTODFWhcMIMVqdsI2uiTvKmTisIDHJ3od5GILVhBCarCfVRmo4uTjkhrhzkiBV7SsaqS+TzrzM1qpGGUFt28pIySQHR6h7F6KSwGWm97ay+Z+ZqMcEjEWebE7wxCSQwpkhJqoZA5ivCdZDjJepuJ9IQjGGUmuXJdBFUygxVqVsxFsLMbDe8ZbDYVCGKxs+W080max1hFCarCfV+C1KATwcnvE9gRRuMP2prdbWGowm1KB1y+zwMMENkM755cJ2yPDtqhTI6ED1M/82yIDtC/4j4BijjeObflpO9I9MwXTCsSX8jWAFeHr05WoLTJ5G8IQVS/7vwR6ohirYM7f6HzYpogfS3R2OAAAAAElFTkSuQmCC');
    background-size: 26px 26px;
    background-position: center;
    background-repeat: no-repeat;
    display: block;
    padding: 0;
}

#layer-toggle:hover {
    background-color: #f1f1f1;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#layer-controls {
    position: absolute;
    top: 0;
    left: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 15px;
    display: none;
    opacity: 0;
    transform: translateY(-5px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    min-width: 250px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    z-index: 1001;
}

#layer-toggle-container:hover #layer-controls {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Chart Styling */
.chart-title {
    font-size: 16px;
    color: #333;
    margin-bottom: 15px;
    font-weight: 500;
    font-family: 'Arial', sans-serif;
}

.chart-container {
    width: 100%;
    height: 200px;
    position: relative;
    padding: 10px;
}

/* Checkbox und Radio Styling */
#layer-controls input[type="checkbox"],
#layer-controls input[type="radio"] {
    accent-color: #0f6606;
    margin-right: 8px;
}

#layer-controls input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-bottom: 10px;
}

h3 {
    margin: 0;
    margin-bottom: 5px;
}

#wind-rose-container {
    margin-top: 10px;
    max-width: 150px;
    padding-right: 10px;
   
}

#project-info {
    margin-top: 10px;
}

/* Scrollbar Styling */
#layer-controls::-webkit-scrollbar {
    width: 8px;
}

#layer-controls::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

#layer-controls::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Leaflet Controls Styling */
.leaflet-control-layers {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 0;
}

.leaflet-control-layers-toggle {
    width: 36px;
    height: 36px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="3" y1="12" x2="21" y2="12"></line><line x1="3" y1="6" x2="21" y2="6"></line><line x1="3" y1="18" x2="21" y2="18"></line></svg>');
    background-size: 20px;
    background-position: center;
    background-repeat: no-repeat;
}

.leaflet-control-layers-expanded {
    padding: 15px;
    width: 250px;
}

/* Media Queries */
@media screen and (max-width: 768px) {
    .controls-container {
        right: 2px;
       
        max-width: none;
    }
}

@media screen and (max-height: 900px) {
    .controls-container {
        top: 5px;
        gap: 5px;
        right: 2px;
    }

    .chart-container {
        height: 140px;
        padding: 5px;
    }

    .section {
        padding: 8px 15px;
    }

    .chart-title {
        font-size: 14px;
        margin-bottom: 8px;
    }

    #layer-controls input[type="checkbox"] {
        margin-bottom: 5px;
    }

    #layer-controls label {
        font-size: 13px;
        line-height: 1.2;
    }
}

@media screen and (max-height: 700px) {
    .chart-container {
        height: 120px;
    }

    .controls-container {
        top: 3px;
        gap: 3px;
    }
    
    .section {
        padding: 6px 12px;
    }

    #layer-controls input[type="checkbox"] {
        margin-bottom: 3px;
    }
}

/* Handy/Mobile Größe - verstecke Wind Rose und Layer Controls */
@media screen and (max-width: 500px) {
    .controls-container {
        display: none; /* Versteckt den gesamten rechten Container */
    }
    
}

/* Handy/Mobile Größe - verstecke Wind Rose und Layer Controls */
@media screen and (max-width: 300px) {
    .controls-container {
        display: none; /* Versteckt den gesamten rechten Container */
    }
    
    #layer-toggle-container {
        display: none; /* Versteckt auch die Layer-Auswahl links */
    }
}