@font-face {
    font-family:"Lemongrass";
    src:url("fonts/Nova Type Foundry - Lemongrass Script Regular.woff2") format("woff2"),url("fonts/Nova Type Foundry - Lemongrass Script Regular.woff") format("woff"),url("fonts/Nova Type Foundry - Lemongrass Script Regular.otf") format("opentype");
    font-style:normal;font-weight:400;
}

:root{
    --blauColor: #1d7b97;
    --redColor: #9f0909;
    --sitebarWith: 400px;
    --maxWidth: 100vw;
    --maxHeight: 100vh;
}

#content  *[class*="text"]:empty {
    display: none;
    border: 5px solid red;
}

#content .background,
#content .ImageWrapper{
    height: fit-content;
    height: fit-content;
    position: relative !important;
}

.cd-nav-container {
    right: unset;
    left: 0;
    transform: translateX(-100%);
    padding: 0;
    background-color: rgb(54,54,54);
    color: #FFF !important;
}

.cd-nav-container.is-visible{
    box-shadow: 2px 0 30px rgb(0, 0, 0.5);
}


.cd-nav-container h3,
.cd-nav em{
    color: #FFF;
}

.cd-nav li:first-child{
    border-top: 2px dotted #ffffff;
}


.cd-nav li{
    border-bottom: 2px dotted #ffffff;
}

.cd-nav-trigger{
    right: unset;
    left: 25px;
    top: 25px;
}

.no-touch .cd-nav li a.title:hover,
.cd-nav li a.title:hover,
.cd-nav li.cd-selected a.title:hover em,
.cd-nav li.cd-selected a.title em,
.cd-nav li.cd-selected a.title,
.cd-nav li.cd-selected a.title:hover{
    color: #fff;
    background-color: #252525;
}

body.scale-down {
    /*margin-left: 300px !important;*/
    margin-left: var(--sitebarWith) !important;
    margin-right: 0 !important;
    /*width: calc(100% - 300px) !important;*/
    width: calc(100% - var(--sitebarWith)) !important;
}

body.scale-down.show-cd-sub{
    /*transition: unset;*/
    /*margin-left: 600px !important;*/
    /*width: calc(100% - 600px) !important;*/
}



.cd-close-nav::after, .cd-close-nav::before {
    background-color: #fff;
}
.cd-sub-nav{
    position: fixed;
    top: 0;
    bottom: 0;
    width: var(--sitebarWith);
    left: calc(var(--sitebarWith) - (var(--sitebarWith) * 2));
    overflow-y: auto;
    overflow-x: hidden;

    transition: transform 0.4s 0s, box-shadow 0s 0s, left 0.4s 0s;
    background-color: #414141;
    z-index: 9999;
}

/*body.scale-down .cd-sub-nav{*/
/*    transition: transform 0.4s 0s, box-shadow 0s 0s, left 0.4s 0s;*/
/*    background-color: #414141;*/
/*    z-index: 9999;*/
/*}*/

body.scale-down.show-cd-sub .cd-sub-nav{
    transform: translateX(100%);
    box-shadow: 2px 0 30px rgb(0, 0, 0.5);
}

body.scale-down.show-cd-sub-open .cd-sub-nav,
body.scale-down.show-cd-sub-open{
    transition: unset !important;
}


.ContentAdmin,
.AdminWrapper{
    display: none !important;
}


.cd-sub-nav .title{
    background-color: var(--blauColor);
    color: #FFFFFF;
    /*padding: 15px 15px;*/
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: bold;
}


.cd-nav li {
    min-height: auto;
    line-height: 1.2;
}

.cd-nav em {
    font-size: 1.8rem;
    font-weight: normal;
    top: auto;
}

.cd-nav a.title {
    padding: 15px 15px 12px 15px;
    text-align: left;
    font-size: 12px;
    min-height: auto;
}

.cd-sub-nav .list-item{
    padding: 15px 15px;
    display: flex;
    justify-content: start;
    align-items: center;
    border-bottom: 2px dotted #ffffff;
    color: #FFFFFF;
    cursor: pointer;
    gap: 5px;
    position: relative;
    z-index: 1;
}



.cd-sub-nav .list-item > div:last-child{
    margin-left: auto;
}

.cd-sub-nav .list-item .status{
    display: flex;
    justify-content: end;
    align-items: center;
    gap: 10px;
}

.cd-sub-nav .list-item:before{
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    background-color: #252525;
    width: 0;
    transition: width 0.2s ease-in-out;
    z-index: -1;
}

.cd-sub-nav .list-item.active:before,
.cd-sub-nav .list-item:hover:before{
    width: 100%;
}


.admin_content .title .editElement,
.admin_content .title .newElement,
.cd-sub-nav .back,
.cd-sub-nav .newElement,
.cd-sub-nav .searchElement,
.cd-sub-nav .movehandle,
.admin_content .del,
.cd-sub-nav .del{
    aspect-ratio: 1/1;
    width: 22px;
    background-image: url("papierkorb.svg");
    background-repeat: no-repeat;
    background-position: center;
    margin-top: -4px;
    cursor: pointer;
}

.admin_content .del:hover,
.cd-sub-nav .del:hover{
    background-image: url("papierkorbactive.svg");
}

.admin_content .title .newElement,
.cd-sub-nav .searchElement,
.cd-sub-nav .newElement{
    position: absolute;
    right: 20px;
    top: 20px;
    z-index: 1;
    background-image: url("add.svg");
}

.cd-sub-nav .back{
    margin: 20px;
    z-index: 1;
    mask: url('/template/css/backToTop-arrow.svg') no-repeat center;
    mask-size: contain;
    -webkit-mask: url('/template/css/backToTop-arrow.svg') no-repeat center;
    -webkit-mask-size: contain;
    background-color: #000;
    background-image: none;
    transform: rotate(-90deg);
    cursor: pointer;
}

.cd-sub-nav .back:hover{
    background-color: #ffffff;
}

.cd-sub-nav .searchElement{
    background-image: url("search.svg");
    right: 50px;
    background-size: contain;
}

.cd-sub-nav .topNav{
    background-color: var(--blauColor);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin_content .title .editElement{
    position: absolute;
    right: 50px;
    top: 20px;
    z-index: 1;
    background-image: url("edit.svg");
}

.admin_content .title .editElement:hover{
    background-image: url("editactive.svg");
}

.admin_content .title .newElement:hover,
.cd-sub-nav .newElement:hover{
    background-image: url("addactive.svg");
}

.cd-sub-nav .searchElement:hover{
    filter: invert();
}

.admin_content .del:hover,
.cd-sub-nav .del:hover{
    background-image: url("papierkorbactive.svg");
}

.adm_top #vorschau {
    border: 30px solid #000;
    box-shadow: 0 0 7px rgba(0,0,0,0.5);
    box-sizing: content-box;
}

/*.adm_top #vorschau::after {*/
/*    content: "DS";*/
/*    color: #1D7B97;*/
/*    position: absolute;*/
/*    width: 100%;*/
/*    text-align: center;*/
/*    bottom: -31px;*/
/*    font-size: 2rem;*/
/*    font-style: italic;*/
/*    font-weight: bold;*/
/*}*/

.cd-sub-nav .movehandle {
    cursor: move;
    background-image: url("sort.svg");
}
.cd-sub-nav .movehandle:hover {
    background-image: url("sortactive.svg");
}


.cd-sub-nav .list-item .switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 22px;
    margin-bottom: 0;
}

.cd-sub-nav .list-item .switch:hover{
    filter: drop-shadow(0 0 5px #000);
    -webkit-filter: drop-shadow(0 0 5px #000);
}

.cd-sub-nav .list-item .switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cd-sub-nav .list-item .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
}

.cd-sub-nav .list-item .slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 2px;
    bottom: 2px;
    background-color: #252525;
    -webkit-transition: .4s;
    transition: .4s;
}

.cd-sub-nav .list-item input:checked + .slider {
    background-color: var(--blauColor);
}

.cd-sub-nav .list-item input:focus + .slider {
    box-shadow: 0 0 1px var(--blauColor);
}

.cd-sub-nav .list-item input:checked + .slider:before {
    -webkit-transform: translateX(18px);
    -ms-transform: translateX(18px);
    transform: translateX(18px);
}

/* Rounded sliders */
.cd-sub-nav .list-item .slider.round {
    border-radius: 34px;
}

.cd-sub-nav .list-item .slider.round:before {
    border-radius: 50%;
}

.cd-sub-nav ol{
    margin: 0;
    padding: 0;
    list-style: none;
}

.cd-sub-nav ol li ol {
    border-left: 2px dotted #fff;
}
.cd-sub-nav ol li ol {
    margin-left: 25px;
    border-left: 2px dotted #fff;
}

.cd-sub-nav ol li.menu-highlight{
    border: 1px solid red !important;
    background: #f5f5f5;
}


/*.cd-sub-nav.subshow{*/
/*    transition: unset !important;*/
/*    transform: translateX(100%);*/
/*    box-shadow: 2px 0 30px rgb(0, 0, 0.5);*/
/*}*/

#dialog .fr-view h1,
#content .slideItem h1 {
    font-family: "Lemongrass";
    font-size: 1.5vw !important;
    font-size: 6em !important;
    letter-spacing: -2px;
}

#dialog .fr-view h2,
#content .slideItem  h2 {
    font-family: "Lemongrass";
    font-size: 2.5vw !important;
    letter-spacing: -1px;
}
#dialog .fr-view h3,
#content .slideItem h3 {
    font-size: 3.5vw !important;
}
#dialog .fr-view h4,
#content .slideItem h4 {
    font-size: 2.5vw !important;
}

#dialog .fr-view p,
#content .slideItem p {
    font-size: 1.5vw !important;
    line-height: 1.2;
}

#dsc div {
    font-size: 22px;
    line-height: 1;
}

#dsc .slideItem:first-child {
    z-index: 1;
}

#dsc .slideItem:last-child {
    z-index: 200;
}


.refTime {
    z-index: 9999;
    color: #000;
    filter: invert(1);
}

.cd-nav-container {
    /*width: 300px;*/
    width: var(--sitebarWith);
}

.ui-sortable-handle {
    cursor: move;
}

.cd-sub-nav .title,
.cd-nav-container .cd-nav .title {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
}

.cd-sub-nav .title .icon,
.cd-nav-container .cd-nav .title .icon {
    width: 25px;
}

.cd-sub-nav .title em,
.cd-nav-container .cd-nav em {
    width: calc(100% - 30px);
}

#dsc > * {
    position: relative;
}

div#dialog {
    background-color: rgba(255,255,255,0.75);
    backdrop-filter: blur(35px);
}

@media only screen and (max-width: 1300px) {
    .cd-nav-container {
        width: 230px;
    }

    .cd-sub-nav {
        width: 275px;
    }

    body.scale-down .cd-sub-nav {
        left: -49px;
    }

    body.scale-down.show-cd-sub {
        margin-left: 500px !important;
        width: calc(100% - 500px) !important;
    }
}

@media only screen and (max-width: 1024px) {
    .cd-nav-container {
        width: 180px;
    }

    .cd-nav em {
        font-size: 1.5rem;
    }

    .cd-sub-nav {
        width: 230px;
        font-size: 1.4rem;
    }
    .cd-sub-nav  a {
        font-size: 13px;
    }

    .cd-sub-nav a,
    cd-sub-nav em,
    .name {
        font-size: 14px;
        font-weight: lighter;
    }

    body.scale-down.show-cd-sub {
        margin-left: 411px !important;
        width: calc(100% - 411px) !important;
    }
}

@media only screen and (max-width: 700px) {

}

/* Animationen */
@keyframes fadeInDown {
    0% {
        transform: translateY(-50vh);
        opacity: 0;
    }

    100% {
        transform: translateY(0px);
        opacity: 1;
    }
}

@keyframes fadeInUp {
    0% {
        transform: translateY(50vh);
        opacity: 0;
    }

    100% {
        transform: translateY(0px);
        opacity: 1;
    }
}

@keyframes fadeOutDown {
    0% {
        transform: translateY(0px);
        opacity: 1;
    }

    100% {
        transform: translateY(50vh);
        opacity: 0;
    }
}

@keyframes fadeOutUp {
    0% {
        transform: translateY(0px);
        opacity: 1;
    }

    100% {
        transform: translateY(-50vh);
        opacity: 0;
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}
