html, body{
    overflow-x: hidden;
}

#sidebarDateibaum {
    height: 100%;
    width: 400px;
    position: fixed;
    top: 55px;
    left: 0;
    background-color: #343A40;
    transition: 0.5s;
}

#logo {
    height: 30px;
}

#divSchnellauswahl {
    max-width: 1200px;
    margin-left: 0;
    margin-right: auto;
}

.sidebar a {
    padding: 0.4rem 5px 0 10px;
    text-decoration: none;
    font-size: larger;
    color: #fff;
    display: block;
    transition: 0.3s;
}

.sidebar a.mainlvl{
    padding-top: 0.8rem !important;
}

.sidebar p {
    padding: 12px 5px 0 20px;
    text-decoration: none;
    font-size: larger;
    color: #fff;
    display: block;
    transition: 0.3s;
}

.sidebar a.active {
    color: red;
    font-weight: bold;
}

.sidebar a.deleted {
    color: #a1a1a1;
    font-style: italic;
}

.sidebar a.deletedActive {
    color: red;
    font-weight: bold;
    font-style: italic;
}

.sidebar a.navBottom {
    vertical-align: bottom;
    margin-left: 1rem;
    bottom: 1px;
}

.sidebar a:hover {
    color: #ffbaba;
    font-weight: bold;
}

#main {
    transition: margin-left .5s;
    padding: 65px 10px 10px 10px;
    margin-left: 400px;
}

.iconRed {
    color: red;
}

.linkRed {
    color: red;
}

.linkRed:hover {
    color: darkred;
}

.linkGreen {
    color: darkgreen;
}

.iconBlue {
    color: blue;
}

.linkAccent {
    color: red !important;
}

.copyTextBlue{
    font-weight: bold;
    color: darkblue;
}

.iconBlack {
    color: black;
}

.linkBlack {
    color: black;
}

.linkBlack:hover {
    color: darkred;
}

.bcCustom a{
    color: red;
}

.smaller-text {
    font-size: 1.1em !important;
}

.invisibleText{
    color: rgba(255,255,255,0);
}

#sidebarMain{
    border-top: 1px solid grey;
    height: calc(100% - 190px);
    overflow: auto;
    z-index: 1;
    white-space: nowrap;
}

#sidebarBottom{
    border-top: 1px solid grey;
    height: 135px;
    margin-bottom: 5em;
    overflow: auto;
    z-index: 1;
    white-space: nowrap;
}

#resizeBar{
    font-size: xx-large;
    color: white;
    width: 1rem;
    height: 2rem;
    z-index: 100;
    right: 0;
    bottom: calc(50vh - 1rem);
    position: absolute;
    cursor: col-resize;
    float:right;
}

#toggleDateibaum{
    position: fixed;
    font-size: xx-large;
    border-radius: 0 !important;
    width: 60px;
    left: 340px;
    bottom: 0;
    display: block;
    z-index: 100;
}

#toggleDateibaum:focus{
    box-shadow: none;
    border: none;
    background-color: #343A40;
}

/* On smaller screens, where height is less than 450px, change the style of the sidenav (less padding and a smaller font size) */
@media screen and (max-height: 600px) {
    .sidebar a {font-size: medium;}
    #sidebarMain{height: calc(100% - 150px);}
    #sidebarBottom{height: 95px;}
    #sidebarMainPoi{height: calc(100% - 130px);}
    #sidebarBottomPoi{height: 75px;}
}

.navbar-sticky-top
{
    position: fixed;
    z-index: 998;
    opacity:1;
    width: 100%;
}

.custom-toplink.active {
    color: red;
    font-weight: bold;
}

.custom-toplink:hover {
    color: #ffbaba !important;
    font-weight: bold;
}

.pagination{
    justify-content: center;
    padding: 1em 0 0 0 !important;
}

.customThumb{
    max-height: 5em;
    max-width: 8em;
}

.customPoiThumb{
    max-height: 3.5em;
    max-width: 6em;
}

.inputAsText{
    border: 0;
    outline: none;
    background: none;
    width: 100%;
    resize: none;
}

.inputAsText:focus{
    background: white;
}

#settingsCard{
    margin-top: 3rem;
    width: 28rem;
}

/* Checkbox red styling */
/* Firefox and Chrome (blue Boxes) */
.checkFilterCF:checked {
    filter: hue-rotate(140deg) brightness(1.7);
}
/* Edge (dark grey boxes) */
.checkFilterE:checked {
    filter: invert(18%) sepia(96%) saturate(7474%) hue-rotate(358deg) brightness(93%) contrast(117%);
}
/* Safari (?? boxes) */
.checkFilterS:checked {
    filter: hue-rotate(140deg) brightness(1.7);
}
/* Opera (white boxes) */
.checkFilterO:checked {
    filter: brightness(0.5) sepia(0.25) saturate(10000%);
}

.df-switch {
    padding: 1rem;
    text-align: center;
}
.btn-toggle {
    top: 50%;
    transform: translateY(-50%);
}
.btn-toggle {
    margin: 0 4rem;
    padding: 0;
    position: relative;
    border: none;
    height: 1.5rem;
    width: 5rem;
    border-radius: 1.5rem;
    color: #6b7381;
    background: #343A40;
}
.btn-toggle:focus,
.btn-toggle.focus,
.btn-toggle:focus.active,
.btn-toggle.focus.active {
    outline: none;
}
.btn-toggle:before,
.btn-toggle:after {
    line-height: 1.5rem;
    width: 4rem;
    text-align: center;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: absolute;
    bottom: 0;
    transition: opacity 0.25s;
}
.btn-toggle:before {
    content: 'POIs';
    left: -4rem;
    color: red;
}
.btn-toggle:after {
    content: 'Adressen';
    right: -5rem;
    opacity: 0.5;
    color: #6b7381;
}
.btn-toggle > .inner-handle {
    border-radius: 13px;
    width: 65px;
    height: 13px;
    position: absolute;
    top: 6px;
    left: 8px;
    background-color: #F8FAFC;
    box-shadow: inset 1px 1px 2px -1px black;
}
.btn-toggle.active > .inner-handle {
    background-color: #F8FAFC;
}
.btn-toggle > .handle:before {
    content: "";
    position: absolute;
    height: 34px;
    width: 34px;
    top: 35%;
    left: 11px;
    background-image: radial-gradient(circle at center, red 5px, transparent 5px);
    background-size: 10px 10px;
    background-repeat: no-repeat;
}
.btn-toggle.active > .handle:before {
    background-image: radial-gradient(circle at center, red 5px, transparent 5px);
}
.btn-toggle > .handle {
    position: absolute;
    top: -0.2875rem;
    left: 0.3875rem;
    width: 2.125rem;
    height: 2.125rem;
    border-radius: 1.125rem;
    background: #fff;
    transition: left 0.25s;
    border: 1px solid #ccc;
}
.btn-toggle.active {
    transition: background-color 0.25s;
}
.btn-toggle.active > .handle {
    left: 2.4175rem;
    transition: left 0.25s;
}
.btn-toggle.active:before {
    opacity: 0.5;
    color: #6b7381;
}
.btn-toggle.active:after {
    opacity: 1;
    color: red;
}
.btn-toggle.active {
    background-color: #343A40;
}

/* Safari anchor as bugfix */
a[type="button"] {
    -webkit-appearance: none;
}

.dropdown-menu a:hover {
    cursor: pointer;
}

.dropdown-submenu {
    position: relative;
}

.dropdown-submenu .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -1px;
}

.geoTables{
    min-height: 80vh;
}

hr {
    margin-top: 1rem;
    margin-bottom: 1rem;
    border: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.settingsBox{
    border: 1px solid #343A40;
    margin: 1em 0 1em 0;
    padding: 0.5em;
}

.dropdown-menu{
    max-height: 20rem;
    overflow-y: auto;
}

/* Webkit Scrollbar Styling */
/* width */
.sidebarMain::-webkit-scrollbar {
    width: 12px;
}
/* Track */
.sidebarMain::-webkit-scrollbar-track {
    box-shadow: inset 0 0 6px grey;
    border-radius: 6px;
}
/* Handle */
.sidebarMain::-webkit-scrollbar-thumb {
    background: #b30000;
    border-radius: 6px;
}
/* Handle on hover */
.sidebarMain::-webkit-scrollbar-thumb:hover {
    background: red;
}

#versionString{
    position: fixed;
    bottom: 5px;
    right: 10px;
    color: grey;
    font-size: large;
}

table.fixedTableCells{
    table-layout: fixed;
}

#binSettingBox{
    position: static;
    bottom: 0;
    padding: 0.5rem;
    background: #F8FAFC;
    border: 1px solid rgba(0, 0, 0, 0.2);
}

.page-link {
    color: #343A40;
}

.page-item.active .page-link {
    background-color: #343A40;
    border-color: #343A40;
}

#storageUsageDiv{
    margin: auto;
    width: 150px;
}

#storageUsageContent{
    z-index: 999;
    position: absolute;
    top: 15px;
    height: 30px;
}

.dokBtn{
    border: 2px solid #B2B2B2;
    background-color: white;
}

/* Tooltip container */
.customTooltip {
    position: relative;
    display: inline-block;
    width: auto; /* Stellt sicher, dass die Breite nicht durch den Inhalt beeinflusst wird */
}

/* Tooltip Text */
.customTooltip .customTooltiptext {
    visibility: hidden;
    background-color: #555;
    color: #fff;
    text-align: center;
    padding: 5px 10px;
    border-radius: 6px;

    /* Position Text */
    position: absolute;
    z-index: 100;
    overflow: visible;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%); /* Zentriert den Tooltip über dem Icon */
    white-space: nowrap; /* Verhindert Zeilenumbrüche im Tooltip-Text */

    /* Fade in */
    opacity: 0;
    transition: opacity 0.3s;
}

/* Tooltip Pfeil */
.customTooltip .customTooltiptext::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #555 transparent transparent transparent;
}

/* Show the tooltip text when you mouse over the tooltip container */
.customTooltip:hover .customTooltiptext {
    visibility: visible;
    opacity: 1;
}

.fa-browser-container {
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    padding: 1rem;
    z-index: 1000;
    background: rgba(0,0,0,0.5);
}

.fa-browser-container > .window {
    display: flex;
    padding: 1rem;
    flex-wrap: wrap;
    box-sizing: border-box;
    position: relative;
    max-width: 1120px;
    width: 100%;
    max-height: 70%;
    background: white;
    z-index: 1001;
    overflow: auto;
}


.fa-browser-container > .close {
    font-size: 36px;
    color: white;
    position: absolute;
    top: 65px;
    right: 1rem;
    z-index: 1002;
    cursor: pointer;
    text-shadow: 0 0 10px black;
}

.fa-browser-container .icon {
    flex: 0 0 6.6667%;
    font-size: 36px;
    text-align: center;
    margin-bottom: 0;
    cursor: pointer;
}

.fa-browser-container .icon:hover {
    color: #8f8f8f;
}

.form-group.required label:after {
    content:"*";
    color:red;
}

.form-check.required label:after {
    content:"*";
    color:red;
}

.search-container {
    float: right;
}

.search-container input[type=text] {
    padding: 6px;
    margin-top: 8px;
    font-size: 17px;
    border: none;
}

.topnav .search-container button {
    float: right;
    padding: 6px 10px;
    margin-top: 8px;
    margin-right: 16px;
    background: #ddd;
    font-size: 17px;
    border: none;
    cursor: pointer;
}

.topnav .search-container button:hover {
    background: #ccc;
}

/* CSS für TetraControl Status-Farben */
.tetracontrol_statustext_0 {
    background-color: #00FFFF; /* Hintergrundfarbe */
    color: #000000;           /* Textfarbe */
    display: inline-block;    /* Nur den Text umschließen */
    padding: 0 4px;           /* Innenabstand */
    border-radius: 4px;       /* Abgerundete Ecken */
}

.tetracontrol_statustext_1 {
    background-color: #00FF00;
    color: #000000;
    display: inline-block;
    padding: 0 4px;
    border-radius: 3px;
}

.tetracontrol_statustext_2 {
    background-color: #00A000;
    color: #000000;
    display: inline-block;
    padding: 0 4px;
    border-radius: 3px;
}

.tetracontrol_statustext_3 {
    background-color: #FFFF00;
    color: #000000;
    display: inline-block;
    padding: 0 4px;
    border-radius: 3px;
}

.tetracontrol_statustext_4 {
    background-color: #FF0000;
    color: #000000;
    display: inline-block;
    padding: 0 4px;
    border-radius: 3px;
}

.tetracontrol_statustext_5 {
    background-color: #0000FF;
    color: #FFFFFF;
    display: inline-block;
    padding: 0 4px;
    border-radius: 3px;
}

.tetracontrol_statustext_6 {
    background-color: #404040;
    color: #FFFFFF;
    display: inline-block;
    padding: 0 4px;
    border-radius: 3px;
}

.tetracontrol_statustext_7 {
    background-color: #FF8000;
    color: #000000;
    display: inline-block;
    padding: 0 4px;
    border-radius: 3px;
}

.tetracontrol_statustext_8 {
    background-color: #FF0080;
    color: #000000;
    display: inline-block;
    padding: 0 4px;
    border-radius: 3px;
}

.tetracontrol_statustext_9 {
    background-color: #D3D3D3;
    color: #000000;
    display: inline-block;
    padding: 0 4px;
    border-radius: 3px;
}

#configured-layers .list-group {
    background-color: #555;
    padding: 0.75rem;
}


/* xs */
@media (min-width: 576px) and (max-width: 850px){
    .fa-browser-container .icon {
        flex: 0 0 10%;
    }
    .fa-browser-container > .close {
        top: .5rem;
        right: .5rem;
    }
}

/* xs */
@media (max-width: 575px){
    .fa-browser-container .icon {
        flex: 0 0 20%;
    }
    .fa-browser-container > .close {
        top: .5rem;
        right: .5rem;
    }
}

/* nunito-regular - latin */
@font-face {
    font-family: 'Nunito';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/nunito-v16-latin/nunito-v16-latin-regular.eot'); /* IE9 Compat Modes */
    src: local(''),
    url('../fonts/nunito-v16-latin/nunito-v16-latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
    url('../fonts/nunito-v16-latin/nunito-v16-latin-regular.woff2') format('woff2'), /* Super Modern Browsers */
    url('../fonts/nunito-v16-latin/nunito-v16-latin-regular.woff') format('woff'), /* Modern Browsers */
    url('../fonts/nunito-v16-latin/nunito-v16-latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */
    url('../fonts/nunito-v16-latin/nunito-v16-latin-regular.svg#Nunito') format('svg'); /* Legacy iOS */
}

.tag-button {
    background: #007bff;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 12px;
    font-weight: bold;
    margin-right: 12px;
    cursor: pointer;
    min-width: 80px;
    text-align: center;
}

.tag-description {
    flex: 1;
    color: #666;
    font-size: 14px;
}

.hidden {
    display: none;
}
