html, body {
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    padding: 0;
    overflow: hidden;
  }
  
#map {
    width: 100%;
    max-height: 100vh;
    height: 100%;
}

#sidebar {
    height: 100vh;
    overflow-y: auto;
    background: #f8f9fa;
    padding: 14px;
    display: flex;
    flex-direction: column;
}

#sidebar a {
    position: relative;
    display: block;
}

.sidebar-header h5 {
    font-weight :700;
    color: #313131;
}

.toc-heading {
    text-decoration: underline;
    margin-top: 15px;
}

.layer-control-div:hover {
    background-color: #e3f4ff ;
    cursor: pointer;
}

.symbology-selection-div:hover {
    background-color: #bfe4ff ;
    cursor: pointer;
}

.symbology-selection-div:hover * {
    cursor: pointer;
}

/* Styles for the custom context menu */
.custom-context-menu {
    position: absolute;
    background-color: #fff;
    border: 1px solid #ddd;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
    display: none;
    z-index: 1000;
    padding: 7px;
}

/* Styles for menu items */
.custom-context-menu-item {
    padding: 4px 6px;
    cursor: pointer;
    font-size: 10pt;
}

.custom-context-menu-item:hover {
    background-color: #f0f0f0;
}


.settings-form {
    display: none;
    position: fixed;  /* Or use 'fixed' if you want it to stay visible on scroll */
    padding: 10px;
    border: 1px solid #ccc;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    font-size: 10pt;
}


/* Spinbox styling */
#spinbox {
    width: 50px;
    padding: 5px;
    margin-top: 5px;
}
  
  
.layer-text {
    font-size: 10pt !important;
    vertical-align: top;
}

#layer-control {
    height: 100%;
}

#sidebar img {
    height: 110px;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.7;
}

.leaflet-control-layers-list {
    max-height: 70vh;
    overflow-y: auto;
}

.legendInfo {
    position :absolute;
    display: block;
    top: 10px;
    width: 300px;
    max-width: 300px;
    max-height: 500px;
    padding: 10px 10px;
    font: 14px Arial, Helvetica, sans-serif;
    background: rgba(255, 255, 255, 0.87);
    border-radius: 5px;
    border: 1px solid rgb(110, 110, 110);
    line-height: 24px;
    color: #555;
    z-index: 2000;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.energyPopup{
    position :absolute;
    top: 10px;
    width: 400px;
    max-width: 400px;
    padding: 10px 10px;
    max-height: 90vh;
    scrollbar-width:auto;
    font: 12px Arial, Helvetica, sans-serif;
    background: rgba(255, 255, 255, 0.87);
    border-radius: 5px;
    border: 1px solid rgb(110, 110, 110);
    line-height: 15px;
    color: #555;
    z-index: 2000;
    overflow-y: auto;
}

.legend {
    padding: 6px 8px;
    max-height: 90vh;
    scrollbar-width:auto;
    font: 14px Arial, Helvetica, sans-serif;
    background: rgba(255, 255, 255, 0.87);
    line-height: 24px;
    color: #555;
    overflow-y: auto;
}

.legend h4 {
    text-align: center;
    font-size: 16px;
    margin: 2px 12px 8px;
    color: #777;
}

.legend span {
    position: relative;
}

.legend i {
    width: 18px;
    height: 18px;
    float: left;
    margin: 0 8px 0 0;
    opacity: 0.9;
}


.modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 550px;
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    border-color: #c2c2c2;
    border-style: solid;
    border-width: thin;
    max-height: 80% !important;
    height: auto; 
    z-index: 1000;
}

#modal-content {
    text-align: center;
}

.leaflet-control-container button,.leaflet-control-container a{
    background-color: #a84242;
    color : rgb(17, 14, 14);
}
.form-check-input:checked{
    background-color: #a84242;
}
.leaflet-control-container .leaflet-bar a {
    background-color: #a84242;
    color: rgb(26, 23, 23);
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 20px;
    cursor: pointer;
}

.my-print-btn {
    font-size: 16pt !important;
    background-color: aqua;
    cursor: pointer;
}


.info-button {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  color: rgb(255, 255, 255) !important;
  background-color: rgb(184, 184, 184) !important;
  border: none;
  font-size: 20px;
  font-weight: bold;
  text-align: center;
  line-height: 10px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.info-button:hover {
  background-color: #a84242 !important; /* dunkleres Blau beim Hover */
}