html {
    position: relative;
    min-height: 100%;
    overflow-x: hidden;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
    height: 100%;
    background-color: rgb(250,250,250);
}

h1, h2, h3, h4, h5, h6 {
    font-family: "DM Sans", sans-serif;
    font-weight: 200;
    letter-spacing: 1px;
}

.form-control:focus {
    color: var(--bs-body-color);
    background-color: var(--bs-body-bg);
    border-color: #86b7fe;
    outline: 0;
    box-shadow: none;
}


.modal-open {
    padding-right: 0 !important;
}
.modal-content {
    background-color: rgba(254,254,248,1);
    border-radius: 15px;
    border: 1px solid #eee;
    box-shadow: 0px 0px 5px 3px rgba(230,230,230,.8);
}


.modal-backdrop {
    background-color: rgba(255,255,255,0.1) !important;
    backdrop-filter: blur(4px) !important;
    opacity: 1 !important;
}


.map {
    width: 100%;
    height: 100%;
}

gmp-map-3d {
    width: 100%;
    height: 100%;
    border-radius: 15px;
}

.vAygCK-api-load-alpha-banner {
    display: none;
}



.ui-btn {
    position: absolute;
    z-index: 2;
    opacity: .4;
}
    .ui-btn:hover {
        text-decoration: none;
        opacity: 1;
    }

.ui-title {
    text-align: center;
}

.move {
    top: 8px;
    left: 8px;
    height: 26px;
    width: 26px;
    cursor: move;
    background: transparent url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' class='bi bi-arrows-move' viewBox='0 0 16 16' fill='rgb(142, 141, 138)'><path fill-rule='evenodd' d='M7.646.146a.5.5 0 0 1 .708 0l2 2a.5.5 0 0 1-.708.708L8.5 1.707V5.5a.5.5 0 0 1-1 0V1.707L6.354 2.854a.5.5 0 1 1-.708-.708zM8 10a.5.5 0 0 1 .5.5v3.793l1.146-1.147a.5.5 0 0 1 .708.708l-2 2a.5.5 0 0 1-.708 0l-2-2a.5.5 0 0 1 .708-.708L7.5 14.293V10.5A.5.5 0 0 1 8 10M.146 8.354a.5.5 0 0 1 0-.708l2-2a.5.5 0 1 1 .708.708L1.707 7.5H5.5a.5.5 0 0 1 0 1H1.707l1.147 1.146a.5.5 0 0 1-.708.708zM10 8a.5.5 0 0 1 .5-.5h3.793l-1.147-1.146a.5.5 0 0 1 .708-.708l2 2a.5.5 0 0 1 0 .708l-2 2a.5.5 0 0 1-.708-.708L14.293 8.5H10.5A.5.5 0 0 1 10 8'/> </svg>") center/1em auto no-repeat;
    background-size: auto;
}


.close {
    top: 9px;
    right: 9px;
    height: 21px;
    width: 21px;
    cursor: pointer;
    background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='rgb(142, 141, 138)'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat;
    background-size: auto;
}

.ui-resizable-handle {
    width: 20px;
}

.pen {
    bottom: 8px;
    left: 38px;
    height: 26px;
    width: 26px;
    cursor: pointer;
    background: transparent url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='currentColor' class='bi bi-pencil-square' viewBox='0 0 16 16'>  <path d='M15.502 1.94a.5.5 0 0 1 0 .706L14.459 3.69l-2-2L13.502.646a.5.5 0 0 1 .707 0l1.293 1.293zm-1.75 2.456-2-2L4.939 9.21a.5.5 0 0 0-.121.196l-.805 2.414a.25.25 0 0 0 .316.316l2.414-.805a.5.5 0 0 0 .196-.12l6.813-6.814z'/>  <path fill-rule='evenodd' d='M1 13.5A1.5 1.5 0 0 0 2.5 15h11a1.5 1.5 0 0 0 1.5-1.5v-6a.5.5 0 0 0-1 0v6a.5.5 0 0 1-.5.5h-11a.5.5 0 0 1-.5-.5v-11a.5.5 0 0 1 .5-.5H9a.5.5 0 0 0 0-1H2.5A1.5 1.5 0 0 0 1 2.5z'/></svg>") center/1em auto no-repeat;
    background-size: auto;
}


.ui-header {
    position: absolute;
    top: 0;
    cursor: move;
    z-index: 2;
    color: #000;
    font-size: 20px;
}

.graphcontainer{
    position: relative;
    width: 100%;
    height: 50%;
    /*background-color: lightcoral;*/
}

.tab-content {
    height: calc(100% - 52px);
    width: 100%;
}

.tab-pane {
    height: 100%;
    width: 100%;
}


.nav-pills {
    column-gap: 50px;
}

.pill-holder {
    background-color: rgba(234,231,220, .4);
    border-radius: 20px;
    margin: 4px;
    backdrop-filter: blur(16px);
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.nav-link-details {
    margin: 5px;
    background-color: unset;
    border: 1px solid #eee;
    border-radius: 48px;
    padding: 4px 12px 4px 12px;
}

    .nav-link-details:hover {
        background-color: #EAE7DC;
    }

    .nav-link-details.active {
        margin: 5px;
        background: #E98074;
        border: 1px solid #eee;
        border-radius: 48px;
        color: white;
    }

.graph {
    position: absolute;
    left: 0;
    top: 0;
    width: calc(100% - 125px) !important;
    height: 100% !important;
    resize: none !important;
    z-index: 1;
}
.detailtitle {
    transition-duration: 100ms;
    z-index: 1;
    margin: 4px;
    background-color: rgba(234, 231, 220, .4);
    backdrop-filter: blur(16px);
    border-radius: 48px;
    padding: 6px 12px 6px 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.graphtitle {
    position: absolute;
    left: 0;
    right: 0;
    margin-inline: auto;
    width: fit-content;
    background-color: rgba(254,254,248,1);
    border: 1px solid #eee;
    border-radius: 15px;
    transition-duration: 100ms;
    z-index: 3;
    padding: 4px 12px 4px 12px;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.kpi {
    border-radius: 15px;
    background-color: #EAE7DC;
    border: 1px solid transparent;
    text-align: center;
    transition: transform .1s;
}
    .kpi:hover {
        transform: scale(1.01);
        /*border: 1px solid #ccc;*/
    }

.kpiTitle {
    font-size: small;
    font-weight: 500;
}
.kpiContent {
    background-color: #f9f6e8;
    border-radius: 12px;
    font-size: x-large;
    font-weight: 500;
    line-height: normal;
    padding: 6px;
    border: 1px solid #eee;
}

.kpiRef {
    background-color: #f9f6e8;
    font-weight: bold;
    border-radius: 10px;
    color: #5A6E7F;
    border: 1px solid #eee;
}


.kpiContent.canvas {
    width: 99%;
    height: 240px;
}
.kpiUnit {
    font-size: small;
    font-weight: 400;
}

.kpin {
    font-size: 0.75rem;
    color: #666;
}

.graph:hover + div {
    opacity: 0.4;
    background-color: #eee;
    transition-duration: 500ms;
    z-index: 0;
}

.dygraph-axis-label {
    font-size: 11px;
}

.dygraph-label {
    font-size: 15px;
    font-family: "DM Sans", sans-serif;
}

.dygraph-legend {
    position: absolute;
    background-color: rgba(255,255,255,.8) !important;
    backdrop-filter: blur(2px);
    border: 1px solid #eee;
    border-radius: 4px;
    pointer-events: none;
    transition-duration: 100ms;
    z-index: 400;
    padding: 8px;
    text-align: center;
    width: fit-content;
    top: 20% !important;
}

.grid-stack {

}

.grid-stack-item-content {
    overflow: hidden;
    background-color: rgba(254,254,248,1);
    border-radius: 15px;
    box-shadow: 0px 0px 5px 3px rgba(230,230,230,.8);
    animation: fadeInAnimation ease .7s;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
    container-type: inline-size;

}

@keyframes fadeInAnimation {
    0% {
        transform: translateY(-100%);
    }
    40% {
        transform: translateY(1%);
    }
    55% {
        transform: translateY(-0.5%);
    }
    70% {
        transform: translateY(0.2%);
    }
    85% {
        transform: translateY(-0.1%);
    }
    100% {
        transform: translateY(0%);
    }
}

.grid-stack > .grid-stack-item > .ui-resizable-se {
    bottom: 20px;
    width: 32px;
    height: 32px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="rgb(142, 141, 138)" stroke="rgb(142, 141, 138)" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" viewBox="0 0 20 20"><path d="m10 3 2 2H8l2-2v14l-2-2h4l-2 2"/></svg>');
    opacity: .2;
}

    .grid-stack > .grid-stack-item > .ui-resizable-se:hover {
        text-decoration: none;
        opacity: 1;
    }


.table-container {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.first-div {
    display: flex;
    flex-direction: row;
    margin-left: 40px;
    margin-top: 0px;
    margin-right: 5px;
    margin-bottom: 3px;
    align-items: center;
}
.second-div {
    flex-grow: 1; /* Das zweite Div wächst, um den restlichen Platz auszufüllen */
    overflow: auto;
}

.settingBtn {
    border: 1px solid #eee;
    border-radius: 47px;
    margin: 3px;
    z-index: 1;
    padding: 4px 8px 4px 8px;
    font-size: smaller;
    background-color: rgba(234, 231, 220, .4);
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.settingBtn:hover {
    background-color: #EAE7DC;
}


.search-wrapper {
    position: relative;
    display: inline-block;
    width: 50%;
    margin-top: 4px;
    margin-left: auto;
}

    .search-wrapper input {
        z-index: 1;
        border-radius: 47px;
    }

.clear-icon {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    cursor: pointer;
    color: #888;
}

    .clear-icon:hover {
        color: #000;
    }

table {
    width: 100%;
}

thead {
    position: sticky;
    top: -1px;
    background-color: rgba(254, 254, 248, 1);
    border: 1px solid rgba(254, 254, 248, 1);
    z-index: 100;
}

tr td {
    border: .1px solid #eee;
    padding: 3px;
    cursor: pointer;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

th {
    padding: 3px;
    cursor: pointer;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

tbody tr:hover {
    background-color: rgba(0,0,0,.03);
}


.status {
    display: block;
    margin: auto;
    width: 10px;
    height: 10px;
}
    .status.alive {
        animation: blinker 2s cubic-bezier(0.35, 0.47, 0.7, 1.57) infinite;
    }
    .status.struggle {
        animation: blinker 1s cubic-bezier(0.35, 0.47, 0.7, 1.57) infinite;
    }

@keyframes blinker {
    50% {
        opacity: 0;
    }
}


.info-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 16%;
    /*margin: 4px 0px 4px 4px;*/
    max-height: 100%;
    overflow: auto;
}

.field {
    font-size: max(min(2cqmin, 16px), 7px);
    position: relative;
    margin: 2px;
    border: .4px solid #eee;
    border-radius: 15px;
    padding: 3px;
    overflow: hidden;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
    z-index: 2;
}

.text-field {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.progress-container {
    padding: 0;
    border: .4px solid #eee;
    border-radius: 15px;
}
    .progress-container:hover {
        border: .4px solid #ddd;
    }

.progress-number {
    font-size: x-large;
    font-weight: 500;
}

.progress-field {
    position: absolute;
    top: 0;
    left: 0;
    color: black;
    height: 100%;
    width: 100%;
    z-index: 0;
    transition: width 0.5s ease;
}
.graphlayercontrol {
    position: absolute;
    top: 0;
    right: 0;
    margin: 0;
    z-index: 2;
    padding: 8px;
    height: 100%;
    width: 125px;

}


.apexcharts-gridline {
    stroke-width: .5px;
}


.maplibregl-popup-content {
    pointer-events: none;
    max-width: 400px;
    font: 12px/20px 'Helvetica Neue', Arial, Helvetica, sans-serif;
    background-color: rgba(255,255,255,0.8);
    backdrop-filter: blur(2px);
    border: 1px solid #fff;
    border-radius: 10px;
    padding: 4px;
}

.maplibregl-ctrl-bottom-right{
    right: 30px;
}

.maplibregl-canvas {
    border-radius: 15px;
}


.widget {
    overflow: hidden;
    width: 100%;
    height: 100%;
}

.widget-title {
    position: absolute;
    padding: 0% 2% 0% 2%;
    margin: 4px;
    border: .2px solid #eee;
    background-color: rgba(254,254,248,.4);
    border-radius: 50px;
    backdrop-filter: blur(4px);
    font-size: max(min(9cqmin, 56px), 15px);
    font-family: "DM Sans", sans-serif;
    font-weight: 200;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
    z-index: 1;
}

    .widget-title.number {
        right: 0px;
        font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;
        font-weight: 300;
    }

.grid-stack-item-content:hover .widget-title {
    z-index: -1;
    opacity: 0.4;
    transition-duration: 500ms;
}

/*TEST*/
/*.mystyle {
    z-index: -1;
    opacity: 0.4;
    transition-duration: 500ms;
}*/


.layers-control .layer-control {
    display: block;
    padding: 0.2em;
}



/*CHECKBOX*/
.checkcontainer {
    display: block;
    position: relative;
    padding-left: 25px;
    margin: 5px;
    cursor: pointer;
    font-size: 13px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Hide the browser's default checkbox */
    .checkcontainer input {
        position: absolute;
        opacity: 0;
        cursor: pointer;
        height: 0;
        width: 0;
    }

/* Create a custom checkbox */
.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 18px;
    width: 18px;
    background-color: #eee;
    border-radius: 4px;
}

/* On mouse-over, add a grey background color */
.checkcontainer:hover input ~ .checkmark {
    background-color: #ccc;
}

.checkcontainer input:checked ~ .checkmark {
    background-color: #E98074;
}

/* When the checkbox is checked, add a blue background */
.checkcontainer.kfz input:checked ~ .checkmark {
    background-color: #1f77b4;
}
.checkcontainer.pkw input:checked ~ .checkmark {
    background-color: #21001f;
}
.checkcontainer.lkw input:checked ~ .checkmark {
    background-color: #00d4ff;
}
.checkcontainer.lfw input:checked ~ .checkmark {
    background-color: #9467bd;
}
.checkcontainer.person input:checked ~ .checkmark {
    background-color: #2ca02c;
}
.checkcontainer.fahrrad input:checked ~ .checkmark {
    background-color: #ff00ec;
}

/* Create the checkmark/indicator (hidden when not checked) */
.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

/* Show the checkmark when checked */
.checkcontainer input:checked ~ .checkmark:after {
    display: block;
}

/* Style the checkmark/indicator */
.checkcontainer .checkmark:after {
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
}

.reportField {
    background-color: white;
    position: absolute;
    width: 1450px;
    height: 400px;
    z-index: 10;
    left: -9999px;
    top: 0;
    resize: none !important;
}

.loading {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1100;
    text-align: center;
    opacity: 0;
    transition: opacity 1s;
    background-color: rgb(250,250,250);
}

.loadingWidget {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(254,254,248,1);
}

.center {
    margin: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}

.loading-text {
    padding: 10px;
    font-size: 30px;
}

.spinner {
    width: 20%;
    height: auto;
    margin: auto;
    overflow: hidden;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-animation: rotate 2s linear infinite; /* Safari */
    animation: rotate 2s linear infinite;
}


@keyframes rotate {
    0% {
        transform: rotate(0);
    }
    50% {
        transform: rotate(180deg);
    }
    100% {
        transform: rotate(360deg);
    }
}


.maplibregl-ctrl-group:not(:empty) {
    border-radius: 47px;
    border: .2px solid #eee;
    box-shadow: 0 0 0 0px rgba(0, 0, 0, .1);
}
.maplibregl-ctrl-group.layers-control {
    border-radius: 3px;
    background-color: white;
}

.editDetails {
    width: 49.8%;
    height: 100%;
}
    .editDetails.left {
        float: left;   
    }
    .editDetails.right {
        float: right;
        overflow-x: hidden;
        overflow-y: scroll;
    }

.form-label{
    font-weight: bold;
}

.streetviewContainer{
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
}

#testSVG:hover {
    fill: #EAE7DC;
}

.vAygCK-api-load-alpha-banner{
    display: none;
}

#reportButton {
    z-index: 999;
    color: rgb(0, 0, 0);
    background-color: #f8f6f0;
    border-radius: 50%;
    padding: 20px;
    width: 20px;
    height: 15px;
    border: 1px solid #ddd;
    display: flex;
    margin: 8px;
    justify-content: center;
    align-items: center;
    font-size: 20px;
}

    #reportButton:hover {
        background-color: #D8C3A5;
        color: #EAE7DC;
    }

/*Anmelden*/
.widget-item-content {
    background-color: rgba(254,254,248,1);
    border-radius: 15px;
    padding: 10px;
    text-align: center;
}

.imprint-container {
    position: relative;
    height: calc(100vh - 20px);
    border-radius: 15px;
    box-shadow: 0px 0px 5px 3px rgba(230,230,230,.8);
    animation: fadeInAnimation ease .7s;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
    background-image: url('/png/impressum1.jpg'); /* oder: URL zum Bild */
    background-size: cover; /* Bild füllt den Bereich */
    background-repeat: no-repeat; /* kein Wiederholen */
    background-position: center;
    background-color: rgba(254,254,248,1);
    margin: 5px;
    padding: 10px;
    display: flex;
    justify-content: center; /* horizontal */
    align-items: center;
}

    .imprint-container hr {
        margin: 10px;
        color: #ccc;
    }


.toggleBtn {
    border: solid 1px #eee;
    color: rgb(0, 0, 0);
    background-color: #f8f6f0;
    padding: 0;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    overflow: hidden;
    transition: transform .2s;
}
    .toggleBtn.active {
        border: solid 2px red;
    }

    .toggleBtn:hover {
        transform: scale(1.2);
    }



    .toggleBtn.edit {
        position: absolute;
        top: 10px;
        left: 10px;
    }

        .toggleBtn.edit:hover {
            background-color: #D8C3A5;
            color: #EAE7DC;
        }

    .toggleBtn img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }


.accordion-item {
    background-color: transparent;
    border: none;
}

.accordion-button {
    border-radius: 15px !important;
    background-color: #EAE7DC;
}

    .accordion-button:not(.collapsed) {
        background: #E98074;
        box-shadow: none;
    }

.slider-round {
    height: 15px;
    border-radius: 9px;
}

.slider-round.ref {
    height: 8px;
}

    .slider-round .noUi-connect {
        background: #E98074;
    }

    .slider-round.ref .noUi-connect {
        background: #5A6E7F;
    }

    .slider-round .noUi-handle {
        height: 20px;
        width: 20px;
        top: -3.5px;
        right: -10px; /* half the width */
        border-radius: 20px;
    }

    .slider-round.ref .noUi-handle {
        height: 15px;
        width: 15px;
        top: -4px;
    }
    .slider-round .noUi-handle:before,
    .slider-round .noUi-handle:after {
        display: none;
    }


.noUi-pips-horizontal {
    height: 10px;
}