:root{
    --naviSize: 4rem;
    --toolBoxWidth: 2.5em;
    --resizerSize: 2.5em;
    --focusOutline: 2px dashed rgba(var(--colAccent01),1);

    interpolate-size: allow-keywords;
}

/* basicFrame */



*{
    box-sizing: border-box;
    -webkit-touch-callout:none;
  }


html{
    height: 100%;
    overscroll-behavior-y: none;
    -webkit-touch-callout:none;
}

body{
    position: fixed; /* -------- preventing Safari mobile from dragging down the whole page while scrolling --------- */
    font-size: 16px;
    margin: 0px;
    padding: 0px;
    width: 100%;
    height: 100%;
    /*min-height: 360px*/;
    /*min-width: 360px*/;
    display: flex;
    overflow: hidden;
    -webkit-overflow-scrolling: touch;
    -webkit-touch-callout:none;
    overscroll-behavior-y: none;
    background-color: black;
    background-image: var(--bodyBG_H);
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    -moz-background-size: cover;
    -webkit-background-size: cover;
    -o-background-size: cover;
    background-position-x: right;
    background-color: rgb(var(--colBG));
    color: rgb(var(--colUIText03));
    font-family: var(--fontFamily);
    line-height: var(--lineHeight);
    font-weight: var(--fontWeight);
    letter-spacing: var(--letterSpacing);
    text-size-adjust: none;
    -webkit-text-size-adjust: none;
    -moz-text-size-adjust: none;
    -ms-text-size-adjust: none;
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    -webkit-hyphenate-limit-chars: auto 5;
    -webkit-hyphenate-limit-lines: 2;
    -ms-hyphenate-limit-chars: auto 5;
    -ms-hyphenate-limit-lines: 2;

  }

    /* body.waiting{
        cursor: wait;
    } */

    /* body.hasTouch{
        background-image: none;
        background-color: rgb(var(--colBG));
    } */


header{
    position: relative;
    flex-direction: column;
    flex-shrink: 0;
    z-index: 101;
    display: block;
    flex-direction: row;
    height: 100%;
    min-height: 24em;
    width: var(--naviSize);
    padding: 0.25em 0.5em;
    background-color: rgba(var(--colUIBack03),0.95);

    -webkit-box-shadow: 3px 1px 3px rgba(var(--boxShadow));
    -moz-box-shadow: 3px 1px 3px rgba(var(--boxShadow));
    box-shadow: 3px 1px 3px rgba(var(--boxShadow));
    -webkit-box-shadow: 3px 1px 3px rgba(0, 0, 0, 0.2);
    -moz-box-shadow: 3px 1px 3px rgba(0, 0, 0, 0.2);
    box-shadow: 3px 1px 3px rgba(0, 0, 0, 0.2);
}


main{
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    overflow: hidden;
    position: relative;
}

    .noTouch main{
        transition: background 0.3s ease, filter 0.3s ease;
    }



a{
    text-decoration: none;
}

    #newsBox a,
    span a,
    p a{
        color: rgb(var(--colAccent01));
    }

        .noTouch #newsBox a:hover,
        .noTouch span a:hover,
        .noTouch p a:hover{
            color: rgba(var(--colAccent01),0.6);
        }



p{
    color: rgb(var(--colUIText03));
    line-height: calc(var(--lineHeight) * 1.1);
    font-weight: unset;
    margin: unset;
    padding-inline-start: unset;
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;

}

h1, h2, h3, h4{
    font-weight: unset;
}

h1{
    font-size: 2.5em;
    margin-bottom: 1em;
    margin-top: 1em;
}

h2{
    font-size: 2em;
    margin-bottom: 0.75em;
    margin-top: 1em;
}


h3{
    font-size: 1.5em;
    margin-bottom: 0.5em;
    margin-top: 1em;
}

h4{
    font-size: 0.85em;
    margin-bottom: 0px;
    margin-top: 1em;
}


/* Linien */

hr {
    background: rgb(var(--colUIText04));
    border: none;
    height: 1px;
    width: 100%;
    margin: 1em 0px;
}

hr.dashed {
    background-color: transparent;
    border-top: 1px dashed rgb(var(--colUIText04));
}

summary{
    cursor: pointer;
    /* color: rgb(var(--colAccent)); */
    padding: 0em 0.6em;
    border-radius: 2em;
    width: fit-content;
}

summary::after {
    content: attr(data-closed);
  }

details{
    color: rgb(var(--colUIText03));
}

details[open]>summary{
    max-width: fit-content;
}

  details[open] summary::after {
    content: attr(data-open);
  }


    .noTouch summary:hover{
        /* filter:brightness(1.3); */
        background-color: rgb(var(--colUIText03));
        color: rgb(var(--colUIBack03));
        transition: 0.1s ease-in;
        transition-property: background-color, color;
    }

details::details-content{
    overflow: hidden;
    block-size: 0px;
    content-visibility: hidden;
    transition: block-size 0.5s, content-visibility 0.5s;
    transition-behavior: allow-discrete;
}

details[open]::details-content{
    block-size: auto;
    content-visibility: visible;
}

details>p{
    margin-top: 0.5em;
    padding: 0.5em 0.75em;
    }

    details:not(.legend__details)>p{
        border-radius: 0.5em;
        background: rgb(var(--colUIBack04));
    }

*:focus:not(:focus-visible) {
        outline: none
    }

*:focus-visible{
    outline: var(--focusOutline);
    outline-offset: -2px;
}

::-moz-selection {
    background: rgb(var(--colAccent01));
    color: #fff;
}
::selection {
    background: rgb(var(--colAccent01));
    color: #fff;
}

    .noTouch *::-webkit-scrollbar {
        background: none;  /* Safari and Chrome */
        width: 1em;
        height: 1em;
    }

    .noTouch *::-webkit-scrollbar-thumb {
        background: rgba(var(--colUIText03),0.3);
        border: 0.35em solid transparent;
        background-clip: padding-box;
        border-radius: 1em;
        -webkit-border-radius: 1em;
        z-index: -1;
    }

        .noTouch *::-webkit-scrollbar-thumb:hover {
            background: rgba(var(--colUIText03),0.5);
            background-clip: content-box;
            border: 0.3em solid transparent;
            cursor: grab;
        }

    *::-webkit-scrollbar-corner{
        background: none;
    }

    *::-webkit-resizer{
        width: 0px;
        height: 0px;
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
        border-style: solid;
        border-width: 0 0 2em 2em;
        border-color: transparent transparent rgba(var(--colUIText03),0.3) transparent;
    }

    .noTouch *::-webkit-resizer:hover{
        border-color: transparent transparent rgba(var(--colUIText03),0.5) transparent;
    }

a.button,
button{
    font-family: var(--fontFamily);
    font-size: 1em;
    font-weight: var(--fontWeight);
}

/* ERROR 404 */

.error{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: 25em;
    max-height: calc(100% - 5em);
    text-align: center;
    z-index: 100;
    position: absolute;
    transition: opacity 0.5s !important;
}

.error__pic {
    max-height: 100%;
}

.sign{
    font-size: 1.2em;
}

.mathcode{
    background: rgb(var(--colBG));
    padding: 0.25em;
    font-family: courier;
    font-size: 1.1em;
    line-height: 1.5rem;
}

@keyframes showUp {
    0% {opacity: 0;}
    100%{opacity: 1;}
}