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

html, body, #map {
      height: 100%;
      width: 100%;
      height: 100vh;
      width: 100vw;
      height: 100dvh;
    }
    .input-container {
        position: relative;
        margin-bottom: 0.5rem;
        display: flex;
            padding-left: 0.7rem;
    padding-right: 0.7rem;
    }
    
    .flex-wrapper-horizontal {
    display: flex;
    align-items: center;
    border: 1px solid grey;
    width: 7rem;
    justify-content: flex-start;
    border-radius:5px;
    background-color: wheat;
    }
        .label2 {
        position: absolute;
        top: 0;
        bottom: 0;
        left: 16px;
        display: flex;
        align-items: center;
        pointer-events: none;
        font-family: 'Segoe UI';
        color: grey;
        font-size: 12px;
        transform: translate(0, -50%);
        background-color: white;
        padding-left: 4px;
        padding-right: 4px;
        height: fit-content;
    }
    .icon-gruppe {
    height: 3.5rem;
    width: 100%;
    border: 1px solid #c0c0c0;
    border-radius: 4px;
    box-sizing: border-box;
    padding: 16px 16px 6px;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    font-size: 0.8rem;
    }    
    .i-explore {
        background-image: url("icons/explore_24dp_5F6368_FILL0_wght300_GRAD0_opsz24.svg");
        background-size: 100%;
        background-position: center;
        background-repeat: no-repeat;
        width:24px;
        height:24px;
        margin: 6px;
    }
    
    .i-hdr_auto {
        background-image: url("icons/hdr_auto_24dp_5F6368_FILL0_wght300_GRAD0_opsz24.svg");
        background-size: 100%;
        background-position: center;
        background-repeat: no-repeat;
        width:24px;
        height:24px;
        margin: 6px;
    }
    
.highlight {
    background-color: #faa;
}
    
.list-header {
    height: 1.2rem;
    background-color: #ccc;
    font-size: 1.1rem;
    position: sticky;
    top: 0;
    padding: 5px 5px 5px;
    text-align: center;
}


.sidebar {
    width: 384px;
    width: 24rem;
    /*backdrop-filter: blur(5px);*/
    /*display: flex;*/
    flex-direction: column;
    z-index:1700;
    position: absolute;
    top:0;
    left: 11.2px;
    left: 0.7rem;
    height: 100%;
    pointer-events: none; 
}

#sidebar2 {
    width: 384px;
    width: 24rem;
    /* background: rgba(0, 0, 255, 0.1) ; */
    z-index:1750;
    position: absolute;
    top:0;
    left: 11.2px;
    left: 0.7rem;
    height: 100%;
    pointer-events: none;
}
  
#header {
      width: 100%;
      background-color: white;
      height: 8rem;
      border-radius: 5px;
      box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
      text-align: center;
      margin-bottom: 11.2px;
      margin-bottom: 0.7rem;
      margin-top: 11.2px;
      margin-top: 0.7rem;
      pointer-events: auto;
      display: flex;
      flex-direction: column;
      justify-content:flex-start;
    }
    h1 {
      font-size: 1.5rem;
    }
    #tablewrapper {
      width: 100%;
      height: calc(100dvh - 10rem);
      overflow-y: scroll;
      border-radius: 5px;
      box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
      background-color: #fff;
      scrollbar-width: thin;
      scrollbar-color: #f5f;
      pointer-events: auto;
    }
    #searchContainer {
        position: relative;
        margin: 0.7rem;
    }
    #search-results {
        list-style: none;
        margin-top: 1px;
        margin-bottom: 2px;
        padding: 0;
        margin: 0;
        border: 1px solid #ddd;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: white;
        z-index: 2000;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
        }
        #search-results li {
    padding: 5px 10px;
    border-bottom: 1px solid #eee;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    text-align: start;
    font-size: 0.9rem;
        }
        #search-results li:last-child {
            border-bottom: none;
        }
        input[type=text] {
  width: 100%;
  box-sizing: border-box;
  border: 2px solid #ccc;
  border-radius: 4px;
  font-size: 16px;
  background-color: white;
  background-image: url("icons/search_24dp_5F6368_FILL0_wght300_GRAD0_opsz24.svg");
  background-position: 4px 2px; 
  background-repeat: no-repeat;
  padding: 5px 2rem 5px 2rem;
  font-size: 1rem;
}
#clear-button {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
}
.size-20 {
    height: 20px;
    width: 20px;
    vertical-align: text-top;
    margin-right: 4px;
}
.size-24 {
    height: 24px;
    width: 24px;
    vertical-align: text-top;
}

.flex-parent {
    display: flex;
    align-items: center;
    margin: 5px 0;
    height: 88px;
    max-width: 24rem;
    border-bottom: solid 1px #aaa;
}

.long-and-truncated {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 16px;
    line-height: 18px;
    letter-spacing: 0.5px;
    
}

.rot {
    color: #555;
    font-size: 14px;
    line-height: 18px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin-top: 0px;
}
.rot2 {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
}

.gruppe {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.ja {
    color: green;
    font-weight: bolder;
}
.nein {
    color: #ccc;
        font-weight: bolder;
}

.purple {
    color: purple;
    margin-left: 16px;
    margin-right: 16px;
    height: 24px;
    width: 24px;
    align-self: center;
}
.rand {
    color: purple;
    margin-right: 16px;
    align-self: center;
    width: 10px;
}

.name {
    font-weight: bolder;
    font-size: 1.0rem;
}

.adresse {
    font-size: 0.8rem;
    margin-top: 0px;
}

.rund {
    /*background-color: #eee;*/
    border-radius: 50%;
    padding: 6px;
    border-color: #ffe;
    border: solid 1.5px;
    margin-left: 10px;
    margin-right: 10px;
}

.badge {
    position: relative;
    top: -6px;
    right: -6px;
    background-color: purple;
    color: white;
    font-size: 14px;
    font-weight: 900;
    height: 18px;
    width: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid white;
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.3);
    margin-left: 2px;
    margin-right: 2px;
}

.weiss {
    background-color: #eee;
    border: 1.5px solid purple;
}
.verstecken {
    display: none;
}

.overlaybuttons {
    position: fixed;
    z-index: 1750;
    bottom: 0.7rem;
    right:  0.7rem;
}
.overlaybutton_holder {
    display: block;
}
.overlaybutton {
    background: #959595;
    width: 3.4rem;
    height:3.4rem;
    border-radius: 50%;
}

.overlaybutton.legende {
    background: lightblue;
    background-image: url(icons/sync_24dp_5F6368_FILL0_wght300_GRAD0_opsz24.svg);
    background-repeat: no-repeat;
    background-size: 80% auto;
    display: inline-block;
    background-position: center;
    content: "";
}
.overlaybutton.listenansicht {
    background: lightblue;
    background-image: url(icons/map_24dp_5F6368_FILL0_wght300_GRAD0_opsz24.svg);
    background-repeat: no-repeat;
    background-size: 80% auto;
    display: inline-block;
    background-position: center;
    content: "";

}
.overlaybutton.kartenansicht {
    background: lightblue;
    background-image: url(icons/menu_24dp_5F6368_FILL0_wght300_GRAD0_opsz24.svg);
    background-repeat: no-repeat;
    background-size: 80% auto;
    display: inline-block;
    background-position: center;
    content: "";

}

.hidden {
  display: none;
  pointer-events: none
}
.visible {
  display: block;
}
@media only screen and (max-width: 28.75rem) {
    .sidebar {
        width: calc(100% - 1.4rem);
        
    }
    #sidebar2 {
        width: calc(100% - 1.4rem);
        
    }}

@media only screen and (min-width: 50.1rem) {
    #sidebar2 {
            left: 25.4rem;
    }}


/* AB HIER VOM DETAILANSICHT KOPIERT*/
.size-30 {
    height: 30px;
    width: 30px;
    vertical-align: text-top;
}

.flex-parent {
    display: flex;
    align-items: center;
    margin: 5px 0;
    height: 88px;
    max-width: 24rem;
}

.flex-parent2 {
    max-width: 24rem;
    display: flex;
    align-items: center;
    margin: 10px 0;
}

.long-and-truncated {
    flex: 1;
    font-size: 1.3rem;
    line-height: 1.4rem;
}

.rot {
    color: #555;
    font-size: 14px;
    line-height: 18px;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
}
.abstand {
    color: #555;
    font-size: 14px;
    line-height: 18px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}
.gruppe {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.purple2 {
    color: purple;
    margin-right: 16px;
    height: 30px;
    width: 30px;
    align-self: flex-start;
}
.rand {
    color: purple;
    margin-right: 16px;
    align-self: center;
    width: 10px;
}

.detailadresse {
    font-size: 0.9rem;
}

.stadtteil {
    font-size: 0.9rem;
    color: #bbb;
}
.rund2 {
    border-radius: 50%;
    padding: 6px;
    border-color: #ffe;
    border: solid 1.5px;
    margin-left: 0px;
    margin-right: 10px;
}

.badge2 {
    position: absolute;
    bottom: -6px;
    right: -6px;
    background-color: purple;
    color: white;
    font-size: 14px;
    font-weight: 900;
    height: 18px;
    width: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid white;
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.3);
    margin-left: 2px;
    margin-right: 2px;
}



/* Basis-Styling für den Dialog */
.dialog, #dialog {
    display: none;
    position: relative;
    align-content: center;
    top: 0.7rem;
    background: white;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #ccc;
    pointer-events: auto;
}
/* Basis-Styling für den Dialog */
#dialog2 {
    position: relative;
    align-content: center;
    top: 0.7rem;
    left: 0;
    background: rgb(255, 187, 0);
    opacity: 1 !important;
    width: 100%;
    height: 50%;
    border-radius: 8px;
    border: 1px solid #ccc;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 3000;
    pointer-events: all;
}

/* Schließen-Button oben rechts */
.close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #555;
    font-weight: bold;
    line-height: 1;
}

.close-button:hover {
    color: #000;
}

/* Titel und Beschreibung im Dialog */
#entry-title {
    margin: 0;
    font-size: 1.4rem;
    text-align: left;
    color: #333;

}

#entry-description {
    font-size: 0.9rem;
    text-align: right;
    color: #666;
}

.field-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    margin: 0 15px;
    border-bottom: 1px solid #eee;
}

.ende {
    border-bottom: none;
}

.anfang {
    border-top: 2px solid red;
    margin-top: 10px;
}

label {
    flex: 1;
    font-size: 1rem;
    color: #333;
}

.update, .datensatzid {
    font-size: 0.7rem;
    color: #555;
    text-align: right;
}


/* Toggle Switch Styling */
div input[type="checkbox"] {
    flex-shrink: 0;
    width: 40px;
    height: 20px;
    appearance: none;
    background: #ddd;
    border-radius: 10px;
    position: relative;
    cursor: pointer;
    outline: none;
    transition: background 0.3s ease;
}

div input[type="checkbox"]:checked {
    background: #4caf50;
}

div input[type="checkbox"]::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    background: #fff;
    border-radius: 50%;
    transition: all 0.3s ease;
}

div input[type="checkbox"]:checked::after {
    transform: translateX(20px);
}

