
/* TODO margins und hoehen anpassen fuer mobile */

.db-select {
    position: relative;
    height: 50rem;
    /* margin-bottom: 50rem;*/
    margin-right: 10rem;
}

.db-select .db-select-selectfield {
    padding: 12rem 50rem 12rem 20rem;
    border: var(--rahmenfarbe) solid 2px;
    border-radius: 28px;
    /*margin: 10rem 0 30rem 0;*/
    min-width: 200px;
    position: absolute;
    top: 0;
    left: -2px;
    right: -2px;
    min-height: fit-content;
    z-index: 1;
    background-color: var(--white);
    overflow: hidden;
    height: 50rem;
}



.db-select-textbaustein {
    position: relative;
    font-size: 20px;
    color: var(--linkfarbe);
    border: none;
    min-width: 200px;
    /*z-index: 2000;*/
    width: fit-content;
    background-color: transparent;
    cursor: pointer;
}

@media (max-width: 1200px) {
    .db-select-textbaustein {
        font-size: 16px;
    }
}

.db-max-width-300 {
    max-width: 300px;
}
.db-select-box {
    min-width: 200px;
}
.db-scrollbar-container {
    overflow: auto;
    max-height: 250rem;
    position: relative;
    z-index: 1;
}

.db-options-container {
    background-color: white;
    cursor: pointer;
    display: none;
    max-height: 300rem;
    position: absolute;
    padding-top: 25rem;
    top: 29rem;
    left: -2px;
    right: -2px;
    border: var(--rahmenfarbe) solid 2px;
    border-top-color: transparent;
    -moz-border-top-colors: transparent;
    border-radius: 0px;
    -moz-border-radius-bottomleft: 28px;
    -moz-border-radius-bottomright: 28px;
    border-bottom-left-radius: 28px;
    border-bottom-right-radius: 28px;
    z-index: -1;
    overflow: hidden;
}

.db-select-textbaustein .db-options-container {
    background-color: white;
    cursor: pointer;
    display: none;
    max-height: 300rem;
    position: absolute;
    padding: 2px 0px;
    top: -20rem;
    left: 30px;
    /* right: -30px;*/
    min-width: 300px;
    width: 500px;
    border: var(--rahmenfarbe) solid 2px;
    border-radius: 28px;
    -moz-border-radius-bottomleft: 28px;
    -moz-border-radius-bottomright: 28px;
    border-bottom-left-radius: 28px;
    border-bottom-right-radius: 28px;
    z-index: 1;
    overflow: hidden;
}


.db-select-textbaustein .db-options-container ul.db-select-options li {
    border-bottom: 2px solid var(--rahmenfarbe);
}

.db-select-textbaustein .db-options-container ul.db-select-options li:last-of-type {
    border-bottom: 2px solid transparent;
}


ul.db-select-options {
    padding-left: 0;
    padding-bottom: 0;
    margin-bottom: 0;
    background-color: white;
}
ul.db-select-options li {
    list-style-type: none;
    padding: 14px 20px;
}
ul.db-select-options li:last-of-type {
    padding-bottom: 0px;
}
ul.db-select-options li.db-selected:last-of-type {
    padding-bottom: 14px;
}
ul.db-select-options > li.db-selected {
    background-color: #edf0f4;
}
.db-select-textbaustein ul.db-select-options {
    padding-left: 0;
    padding-bottom: 0;
    margin-bottom: 0;
    background-color: white;
    color: black;
    font-size: 16rem;
    line-height: 21rem;
    /*z-index: -1;*/
}
.db-select-textbaustein ul.db-select-options li {
    list-style-type: none;
    padding: 7px 20px;
}
.db-select-textbaustein ul.db-select-options li:last-of-type {
    padding-bottom: 7px;
}
.db-select-textbaustein ul.db-select-options li.db-selected:last-of-type {
    padding-bottom: 7px;
}
.db-select-padding-bottom {
    height: 14px;
    background-color: white;
}
.db-select .db-select-selectfield:after {
    content: " ";
    background-image: url("/resources/icons/icon_Dropdown.svg");
    /*
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-size: 16px 12px;*/
    font-weight: 400;
    color: var(--schriftfarbe);
    background-position: right;
    background-repeat: no-repeat;
    position: absolute;
    left:0;
    right:15rem;
    top:0;
    bottom:0;
}

.db-select-opened.db-select .db-select-selectfield:after {
    background-image: url("/resources/icons/icon_Dropdown_offen.svg");
}

.db-select-opened {
    z-index: 2551;
}

.db-select-opened  .db-options-container {
    display: block;

}

.db-select-textbaustein.db-select-opened > .db-options-container {
    display: block;
}

.db-select-selectfield {
    padding-right: 50rem;
}

.db-select-label {
    overflow:hidden;
    text-overflow:ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    -moz-line-clamp: 1;
    -moz-box-orient: vertical;
}

.db-box .db-select {
    margin-right: 0;
}

@media (max-width: 1200px) {
    .db-select .db-select-selectfield {
        padding: 7rem 15rem 10rem 20rem;
        height: 40px;
    }
    .db-options-container {
        top: 25px;
    }

    .db-select-textbaustein .db-options-container {
        width: unset;
    }
}

@media (max-width: 400px) {
    .db-select-textbaustein .db-options-container {
        max-width: 200px;
        min-width: unset;
    }
}