/* general Message/Popup settings */

.overlay{
    position: absolute;
    display: flex;
    background-color: rgba(var(--colBG),0.8);
    width: 100%;
    height: 100%;
    display: flex;
    top: 0px;
    left: 0px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 200;
    transition: opacity 0.5s;
    border: none;
    padding: 1em;
}
    /* .overlay--desktop{
        -webkit-backdrop-filter: blur(5px);
        backdrop-filter: blur(5px);
        background-color: rgba(var(--colBG),0.6);
    } */

    .overlay__BG{
        width: 100%;
        height: 100%;
        position: absolute;
    }




.message{
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;
    z-index: 11;
    max-width: 100%;
    max-height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    padding: 1em;
    -webkit-box-shadow: 0.1em 0.1em 0.2em rgba(var(--boxShadow));
    -moz-box-shadow: 0.1em 0.1em 0.2em rgba(var(--boxShadow));
    box-shadow: 0.1em 0.1em 0.2em rgba(var(--boxShadow));
    background: rgb(var(--colUIBack03));
    border-radius: 0.5em;
    color: rgb(var(--colUIText03));
    overflow: hidden;
}

    .message__icon{
        vertical-align: text-bottom;
        width: calc(var(--naviSize) / 2.5);
        height: calc(var(--naviSize) / 2.5);
        flex-shrink: 0;
        align-self: flex-start;
    }

    .message__text{
        max-width: 30em;
        min-width: 15em;
        padding-right:2em;
    }

    .message__content{
        overflow: auto;
        display: flex;
        align-items: flex-start;
        justify-content: center;
    }


    .message__button{
        min-width: fit-content;
        flex-grow: 1;
        width: 11em;
        white-space: nowrap;
    }

    .message__textarea{
        resize: both;
        min-width: 20em;
        min-height: 5em;
        max-width: 100%;
        max-height: 100%;
        transition: unset;
    }

    .message__contentBlock{
        display: flex;
        flex-wrap: wrap;
        position: relative;
        align-items: center;
        justify-content: flex-start;
        flex-shrink: 0;
        width: 100%;
    }

    .message__contentBlock--row{
        flex-direction: row;
        row-gap: 0.5em;
        column-gap: 1em;
        max-width: 100%;
        /* min-width: 17em; */
    }

    .message__contentBlock--column{
        flex-direction: column;
        flex-wrap: nowrap;
    }

    .message__contentHeadline{
        align-self: flex-start;
        color: rgb(var(--colAccent01));
        margin-bottom: 0.5em;
        margin-top: 0em;
        font-weight: 400;
        width: 100%;
    }

    .message__header{
        display: flex;
        width: 100%;
        flex-shrink: 0;
        flex-direction: row;
        font-size: 0.8em;
    }

        .message__headerTitle{
            width: 100%;
            display: flex;
            padding: 0.125em 0 0.75em;
            margin-bottom: 0.75em;
            justify-content: center;
            transform: translateY(-0.5em);
            border-bottom: 1px solid rgb(var(--colUIText04));
        }

    .message__options{
        width: 100%;
        max-width: 26em;
        display: flex;
        flex-shrink: 0;
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-top: 1em;
        -webkit-hyphens: none;
        -ms-hyphens: none;
        hyphens: none;
        row-gap: 0.5em;
    }

/* -----------------varrierende Bestandteile--------------------- */




/* Sachverhalt PopUp */


.task{
    max-width: 100%;
    max-height: 100%;
    align-items: center;
}

    .task>.task__text{
        width: 100%;
        overflow: auto;
        column-gap: 3em;
        column-rule: 1px solid rgb(var(--colUIText04));
        padding: 0.25em 0.5em 1em 0.5em;
        border-bottom: 1px solid rgb(var(--colUIText04));
    }

    .task>.task__text--short{
        column-count: 1;
        column-width: 20em;
        max-width: 25em;
    }

    .task>.task__text--medium{
        column-count: 2;
        column-width: 20em;
        max-width: 45em;
    }

    .task>.task__text--long{
        column-count: 3;
        column-width: 20em;
        max-width: 85em;
    }


    .task__buttons{
        max-width: 26em;
        width: 100%;
    }

/*  Splashscreen */

.message__splash{
    padding: unset;
}

.splash{
    background: var(--welcomeBG_H) top right no-repeat;
    background-size: cover;
    max-height: 100%;
    max-width: 100%;
    padding: 0px;
    margin: 0px;
}

    .splash>*{
        z-index: 1;
    }

    .splash__layer{
        background: rgba(var(--colBG),0.7);
        width: 100%;
        height: 100%;
        overflow-y: auto;
        z-index: 0;
        padding: 2em 2em 0.5em 2em;
        margin: 0px;
    }


/* Schnellnachrichten  */

    .quickMsg{
        position: absolute;
        display: flex;
        flex-direction: column-reverse;
        bottom: 3em;
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        pointer-events: none;
        z-index: 1000;
    }

    .quickMsg--text{
        padding: 0.25em 0.5em;
        width: max-content;
        max-width: calc(100vw - 4em);
        opacity: 1;
        background: rgba(var(--colUIBack03),0.85);
        color: rgb(var(--colUIText02));
        border-radius: 1.5em;
        text-align: center;
        margin-bottom: 0.5em;
        transition:
                opacity 0.5s ease,
                margin 0.5s ease;
        overflow-wrap: anywhere;
        pointer-events: all;
    }

        .quickMsg--text.hidden--faded{
            margin-bottom: -2em;
        }




/* urkaine */

.ukraineStatement{
    max-width: 65em;
    max-height: calc(100% - var(--naviSize));
}

    .ukraineStatement__logo{
        width: 5em;
        position: absolute;
        right: 3em;
        top: -2em;
    }

    .ukraineStatement__text{
        overflow: auto;
    }


    .ukraineStatement__text p{
        margin-bottom: 1em;
    }

    .ukraineStatement__subscription{
        display: flex;
        min-width: 12em;
        flex-wrap: wrap;
    }

    .ukraineStatement__subscription--script{
        margin-right: 3em;
        min-width: 10em;
        max-width: 21em;
        flex-grow: 1;
    }


/* ------------------------------ Share Structure links Popup ----------------------------------*/

.share{
    justify-content: center;
    max-width: 40em;
}

.share--list{
    width: calc(100vw - 4em);
}

.share__link,
.share__iFrame{
    margin: 0;
    display: flex;
    flex-direction: column;
    width: 100%;
    overflow-x: auto;
    white-space: normal;
    white-space: -moz-normal;
    white-space: -normal;
    white-space: -o-normal;
    word-wrap: break-word;
}



.share__iFrame{
    padding: 1em;
    background: rgb(var(--colBG));
    min-height: 15em;
    max-height: 25em;
    color: rgba(var(--colUIText03),0.8);
    border-radius: 0.25em;
}

    #iFrame_reset{
        position: absolute;
        right: 0.5em;
        bottom: 0.5em;
    }

.share__linkBlockList{
    gap: 1em;
    overflow: auto;
    opacity: 1;
    transition: opacity 0.8s ease;
    /* flex-grow: 1;
    flex-basis: 7em;
    max-height: max-content; */
}

.share__linkBlock{
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.share__linkBlockHeadline{
    align-self: flex-start;
    color: rgb(var(--colAccent01));
    margin-bottom: 1em;
    font-size: 1em;
    font-weight: 400;
    width: 100%;
    display: flex;
    gap: 0.5em;
    align-items: end;
}

.share__linkBlockHeadline:after{
    content: "";
    border-bottom: 1px solid rgb(var(--colAccent01));
    flex-grow: 1;
    margin-bottom: 0.4em;
}

.share__linkBlockIcon{
    display: flex;
    justify-content: center;
    align-items: center;
}

.share__linkBlockIcon>svg{
    fill: rgb(var(--colAccent01));
    stroke: transparent;
    stroke-width: 0px;
    height: var(--ButtonIconSize);
    width: var(--ButtonIconSize);
}


.share__linkBlockText{
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: no-wrap;
}


.share__linkList{
    display: flex;
    flex-direction: column;
    padding: 0;
    row-gap: 0.5em;
    width: 100%;
    pointer-events: all;
}

.share__linkRow{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    column-gap: 0.5em;
    width: 100%;
}

/* :first-child(.share__link--actual){
    margin-bottom: 0.5em;
} */

.share__link{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    column-gap: 1em;
    padding: 0.25em 0.5em;
    padding-right: 0.25em;
    border-radius: 1em;
    align-items: center;
    color: rgb(var(--colUIText03));
    stroke: rgb(var(--colUIText03));
    cursor: pointer;
    background: rgba(var(--colUIBack02), 0.2);
    transition: background-color 0.1s ease, color 0.1s ease, font-weigth 0.1s ease;
}
    .share__link--inactive{
        color: rgb(var(--colContra01));
    }

.share__linkButtons {
    display: flex;
    flex-direction: column;
}


.noTouch .share__link:hover{
    background-color: rgba(var(--colUIBack04), 1);
}

.share__link--actual{
    -webkit-box-shadow:inset 0px 0px 0px 1px rgb(var(--colUIText03));
    -moz-box-shadow:inset 0px 0px 0px 1px rgb(var(--colUIText03));
    box-shadow:inset 0px 0px 0px 1px rgb(var(--colUIText03));
}

.share__link--actual.share__link--selected,
.share__link--selected{
    background-color: rgb(var(--colUIBack04));
    outline: unset;
}

.noTouch .share__link--selected:hover{
    background-color: rgba(var(--colUIBack04),0.5);
}


.share__linkItem{
    overflow: hidden;
    text-overflow: ellipsis;
}

.share__linkComment{
    width: 0;
    flex-grow: 1;
}

.share__linkDate{
    width: fit-content;
}

.share__linkTime{
    -webkit-box-shadow: inset 0px 0px 0px 1px;
    -moz-box-shadow: inset 0px 0px 0px 1px;
    box-shadow: inset 0px 0px 0px 1px;
    /* background: rgb(var(--colUIBack02)); */
    min-width: 1.6em;
    min-height: 1.6em;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.125em 0.25em;
    border-radius: 2em;
}

.share__comment,
.share__date{
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.share__time{
    text-align: center;
    font-size: 0.9rem;
}



.share__linkComment--dud{
    font-style: italic;
    opacity: 0.4;
}

.share__buttons{
    display: flex;
    flex-direction: row;
    align-items: center;

    justify-content: right;

    flex-grow: 1;
    min-width: fit-content;
    overflow: hidden;
}

.share__buttonList{
    display: flex;
    flex-direction: column;
}

.share__link.actual>.share__buttons>.button>svg{
    stroke: rgb(var(--colUIText01));
}
.noTouch .share__link>.share__linkButtons>.button:hover
.noTouch .share__buttons>.button:hover{
    background: rgba(var(--colUIBack05), 0.3);
}

.share__createLink{
    gap: 0.5em;
    justify-content: center;
    align-items: center;
}

.import__input,
.share__input{
    padding: 0 !important;
    display: flex;
    width: 18em;
    min-width: 50%;
    flex-grow: 1000;
    text-indent: 0.5em;
}

.import__input{
    /* margin-bottom: 1em; */
}

.share__durationSelect{
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    flex-grow: 1;
    gap: 0.25em;
}





/* ------------------ Practice Rating Popup --------------------------------------------------------*/

.result{
    display: flex;
    align-items: center;
    min-width: 25em;
    white-space: nowrap;
    max-width: unset;

}

.result__warning{
    color: rgb(var(--colContra01));
    margin-top: 0.75em;
    white-space: normal;
    text-align: center;
}

.result__line{
    width: 100%;
    height: 1px;
    background-color: rgb(var(--colUIText04));
    margin: 1em 0px;
}

.result__content{
    display: flex;
    flex-direction: column;
    position: relative;
    width: 100%;
    padding: 0px 1em;
    justify-content: space-evenly;
}


    .result__score{
        display: flex;
        position: relative;
        flex-direction: row;
        justify-content: space-around;
        align-items: center;
        font-stretch: condensed;
        letter-spacing: normal;
        transition: opacity 0.5s;
        margin-bottom: 0.5rem;
        min-width: 8em;
    }

        .result__score--actual{
            font-size: 3em;
            font-weight: 900;
            cursor:default;
            color: rgb(var(--colRatinglevel));
        }

        .result__score--1{
            --colRatinglevel: var(--colRatinglevel01);
            animation: ratingGlow 2.5s infinite;
        }
        .result__score--2{
            --colRatinglevel: var(--colRatinglevel02);
            animation: ratingGlow 4s infinite;
        }
        .result__score--3{
            --colRatinglevel: var(--colRatinglevel03);
            animation: ratingGlow 4s infinite;
        }
        .result__score--4{
            --colRatinglevel: var(--colRatinglevel04);
            animation: ratingGlow 2.5s infinite;
        }
        .result__score--5{
            --colRatinglevel: var(--colRatinglevel05);
            animation: ratingGlow 1s infinite;
        }

        @keyframes ratingGlow {
            0%   { text-shadow: 0px 0px 30px rgba(var(--colRatinglevel),0.4) }
            40%   { text-shadow: 0px 0px 30px rgba(var(--colRatinglevel,0)) }
            100%   { text-shadow: 0px 0px 30px rgba(var(--colRatinglevel),0.4) }
        }

    .result__details{
        display: flex;
        flex-direction: column;
        position: relative;
        min-width: 15em;
    }


    .result__detailCount{
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        line-height: 2em;
        transition: opacity 0.5s;
    }

        .result__detailCount--number{
            font-weight: 700;
        }

        .result__detailCount--oldResults{
            font-size: unset;
            padding: 0px 1em;
            line-height: unset;
        }


    .result__time{
        min-width: 8em;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-evenly;
        line-height: 2em;
        transition: opacity 0.5s;
    }

        .result__time--digits{
            flex-direction: column;
            align-items: center;
            display: flex;
        }

        .result__time--digits>span{
            font-size: 1.2em;
            padding: 0.2em 0.5em;
            margin-top: 0.25em;
            box-shadow: inset 0 0 3px rgba(var(--colUIText01),0.2);
            border-radius: 0.5em;
            box-shadow: inset 0 0 3px rgba(var(--colUIText01),0.2);
        }

    .result>.button{
        max-width: 20em;
    }


    .difficulty{
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        transition: opacity 0.5s;
    }


    .difficultySymbol{
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 1.2em;
        font-weight: 400;
        cursor: default;
    }

        .difficultySymbol>*{
            position: absolute;
        }

        .difficultySymbol>svg{
            width: 1.8em;
            height: 1.8em;
            stroke: rgb(var(--colUIText03));
        }


/* -------------------------- Zeichenlegende ---------------- */

.legend{
    display: flex;
    align-items: center;
    max-width: 100%;
    max-height: 100%;
}

    .legend__content{
        display: flex;
        flex-direction: column;
        padding: 1em;
        width: 100vw;
        max-width: 100%;
        height: 100%;
        overflow: auto;
    }

    .legend__itemList{
        flex-direction: column;
        width: 100%;
        }

    .legend__item{
        display: flex;
        flex-direction: row;
        padding: 1em 0px;
    }

    .legend__item>*{
        margin-right: 1em;
        align-self: flex-start;
    }

    .legend__details{
        font-size: 1em;
    }

    .legend__itemPic{
        width: 1.5em;
        height: 1.5em;
        flex-shrink: 0;
        stroke: rgb(var(--colUIText03));
        stroke-width: 0px;
    }

    .legend__itemPic--full{
        fill: rgb(var(--colUIText03));
    }

    .legend__itemPic--outline{
        stroke: rgb(var(--colUIText03));
        stroke-width: 0.6px;
    }

    .legend__details>p{
        hyphens: none;
    }


    .legend__details>p:first-of-type{
        border-top: 1px solid rgb(var(--colUIText04));
        padding-top: 0.5em;
    }

    .legend__iconImportant{
        fill: rgb(var(--colAttention01));
        -webkit-filter: drop-shadow(0 0 2px rgba(var(--colAttention01),1));
        filter: drop-shadow( 0 0 0.3em rgba(var(--colAttention01),1));
        stroke: orange;
        stroke-width: 0.5px;
        }


/* Media Queries */


@media (orientation: landscape){

    .result__content{
        flex-direction: row;
    }

    .result__score,
    .result__time,
    .difficulty{
        flex-direction: column;
        justify-content: space-around;
    }

    .result__score {
        margin-bottom: unset;
    }

    .result__details{
        margin: 0px 1em;
    }

    .difficultyStars{
        flex-direction: column-reverse;
        margin: 0.5em 0px;
        min-height: 6em;
        }

    .result__line{
        width: 1px;
        height: 100%;
        margin: 0px 2em;

    }
}

@media (max-device-width: 45em) and (orientation: portrait) and (pointer: coarse),
    (max-device-height: 45em) and (orientation: landscape) and (pointer: coarse)
 {

    .task>.task__text{
        display: flex;
        flex-direction: column;
    }

    .legend {
        display: flex;
        align-items: center;
        min-width: 100%;
        min-height: 100%;
        max-width: 100%;
        max-height: 100%;
        width: 100%;
        height: 100%;
    }

}

@media (min-width: 45em) {

    .legend__content{
        flex-direction: row;
        padding: 2em;
        padding-top: 1em;
        width: 50em;
    }

}

@media (min-width: 100em) and (orientation: landscape){

    .splash__layer{
        padding: 2em 3em 0.5em 3em;
    }

    .legend {
        max-width: 50em;
        width: 50em;
    }

}
