@import url('https://fonts.googleapis.com/css2?family=Fugaz+One&family=Josefin+Sans:ital,wght@0,100..700;1,100..700&family=Momo+Signature&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

:root {
    /* --fileLoaderContent: ''; */
    --fileLoaderFontSize: 10pt;
    --mapOppHeight: auto;
    --mapOppWidth: auto;
    --docFontSize: 0;

    -webkit-tap-highlight-color: transparent;
    --text-input-color: #f0f0f0;
    --kuerzel-color: #eb7018;
    
    --logo-green: /* #10B981 */#00bd7b;
    --logo-purple: /* #8B5CF6 */#8d52ff;

    --uni-background: #fdfeff;
    --main-color-preset: #384bc9;/*#4a90e2;*/
    --main-color: var(--main-color-preset);
    --main-color-2-preset: #ffb61a;
    --main-color-2: var(--main-color-2-preset);
    --dark-font-color: #17161a;
    --main-font-color: #ffffff;

    --normal-background: #ffffff;
    --snd-normal-background: #eeeeee;
    --trd-normal-background: #cccccc;
    --fth-normal-background: #dddddd;
    --opponent-normal-background: #000000;
    --icon-color: #000000;

    --button-color: var(--main-color);
    --button-unfilled-color: #eee;
    --button-hover-color: hsl(from var(--button-color) h s calc(l - 7));

    --input-placeholder-col: #777777;

    --number-color: linear-gradient(to bottom right, #2c8ae285, #5baffd85);
    --number-hover-color: linear-gradient(to bottom right, #2c44e285, #5b70ff85);
    --custom-scroller-color: #e5ebf0;

    --help-font-color: #22ac00;
    --warn-font-color: #d40f0f;

    --var-name-rep-color: #394585;
    --abf-rep-color: #92d050;
    --greek-abf-rep-color: #00b050;
    --fahz-rep-color: #ffbb00;
    --prefix-rep-color: #f03472;
    --cut-rep-color: #00a58f;
    --tsch-assign-rep-color: #0984db;
    --tsch-comment-rep-color: #c002c7;
    --line-comment-rep-color: #5600f5;
    
    --nav-width: 260px;

    --desktop-visual: 1;
}

html {
    color-scheme: light dark;
}

* {
    margin: 0;
    padding: 0;
    color: var(--dark-font-color);
    user-select: none;

    font-family: "Poppins", sans-serif;
    font-weight: 400;
    font-style: normal;

    box-sizing: border-box;
}
body {
    color-scheme: light;

    background: var(--uni-background);
}
body.DARKMODE {
    color-scheme: dark;

    --uni-background: #131214;
    --main-color: hsl(from var(--main-color-preset) calc(h + 3) calc(s - 5) calc(l - 3));
    --main-color-2: hsl(from var(--main-color-2-preset) calc(h + 3) calc(s - 10) calc(l - 3));

    --dark-font-color: #f1f1f1;
    --main-font-color: #efefef;

    --text-input-color: #25253c;
    --kuerzel-color: hsl(from chocolate calc(h - 1) calc(s + 10) calc(l + 10));

    --normal-background: #121114;
    --snd-normal-background: hsl(from var(--normal-background) calc(h - 13) calc(s + 5) calc(l + 10));
    --trd-normal-background: hsl(from var(--normal-background) calc(h - 13) calc(s + 5) calc(l + 20));
    --fth-normal-background: hsl(from var(--normal-background) calc(h - 13) calc(s + 5) calc(l + 30));
    --opponent-normal-background: #b9bbca;

    --icon-color: #ffffff;

    --button-color: var(--main-color);
    --button-unfilled-color: #262528;
    --button-hover-color: hsl(from var(--button-color) h s calc(l - 7));

    --input-placeholder-col: #a7a2b6;
    
    --number-color: linear-gradient(to bottom right, #4390d985, #5baffd85);
    --number-hover-color: linear-gradient(to bottom right, #3c51d885, #7182ec85);
    --custom-scroller-color: #45444d;
    
    --var-name-rep-color: #a9d0ff;
    --line-comment-rep-color: #743fc9;
}

.uniFont {
    height: 0;
}

.section, #comment-section {
    position: absolute;
    left: calc(var(--nav-width) + 4%);
    right: 4%;
    top: 10%;
    bottom: 2%;
    overflow-x: auto;
    overflow-y: auto;
    display: none;
    /* padding: 2px; */

    &.opened {
        display: block;
    }
}
#comment-section {
    height: fit-content;
    max-height: 300px;
    width: max-content;
    overflow-y: clip;
    padding: 4px;
    margin: 0 auto;
    place-content: center;
    display: block;
}
.section::-webkit-scrollbar {
    opacity: 1;
    width: 10px;
}
.section::-webkit-scrollbar-track {
    background: var(--normal-background);
}
.section::-webkit-scrollbar-thumb {
    background: var(--custom-scroller-color);
    border-radius: 20px;
    border: 3px solid var(--normal-background);
}

/*y, horizontal*/
.custom-scrollbar-1::-webkit-scrollbar, .custom-scrollbar-2::-webkit-scrollbar {
    width: 10px;
}
/*x vertikal*/
.custom-scrollbar-3::-webkit-scrollbar, .custom-scrollbar-4::-webkit-scrollbar {
    height: 10px;
}
.custom-scrollbar-1::-webkit-scrollbar-track {
    background: var(--normal-background);
    border-radius: 0px 7px 7px 0px;
}
.custom-scrollbar-3::-webkit-scrollbar-track {
    background: var(--normal-background);
    border-radius: 0px 0px 7px 7px;
}
.custom-scrollbar-1::-webkit-scrollbar-thumb, .custom-scrollbar-3::-webkit-scrollbar-thumb {
    background: var(--custom-scroller-color);
    border-radius: 20px;
    border: 3px solid var(--normal-background);
    cursor: pointer;
}
.custom-scrollbar-2::-webkit-scrollbar-track {
    background: var(--custom-scroller-color);
    border-radius: 0px 4px 4px 0px;
}
.custom-scrollbar-4::-webkit-scrollbar-track {
    background: var(--custom-scroller-color);
    border-radius: 0px 0px 4px 4px;
}
.custom-scrollbar-2::-webkit-scrollbar-thumb, .custom-scrollbar-4::-webkit-scrollbar-thumb {
    background: var(--normal-background);
    border-radius: 20px;
    border: 3px solid var(--custom-scroller-color);
    cursor: pointer;
}

section:has(.nav) {
    display: block;
    position: fixed;
    padding: .5rem;
    height: 100%;
    z-index: 10;
}
.nav {
    width: var(--nav-width);
    height: 100%;
    display: block;
    overflow: hidden;
    resize: none;
    border-radius: 1.5rem;
    corner-shape: squircle;
}
.nav .logo {
    position: relative;
    display: block;
    height: 40px;
    margin: 5px 5px;
    background-color: var(--normal-background);
    border-radius: 6px;
    visibility: hidden;
}
.nav .logo .icon {
    width: 100%;
    height: 100%;
}
.button-container {
    position: relative;
    top: 0;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background: var(--main-color);
}
.nav .sec {
    position: relative;
    padding: 37px 20px 0 20px;
    width: 100%;
}
.nav .sec > span {
    position: absolute;
    top: 15px;
    font-size: 11pt;
    font-weight: 550;
    /*text-decoration: underline;*/
    color: var(--main-font-color);
}
.nav .sec .dir-p {
    position: relative;
    height: 37.5px;
    width: 100%;
    margin-bottom: 2px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    cursor: pointer;
    z-index: 11;
}
.nav .sec .dir-p :is(.icon, img[src="xleb"][onerror^=SVG]) {
    position: absolute;
    height: 80%;
    width: unset;
    aspect-ratio: 1;
    left: 25px;
    top: 50%;
    transform: translateY(-50%);
}
@property --img-not-loaded-stroke-pos-1 {
    syntax: '<percentage>';
    inherits: true;
    initial-value: -40%;
}
@property --img-not-loaded-stroke-pos-2 {
    syntax: '<percentage>';
    inherits: true;
    initial-value: 0%;
}
.nav .sec .dir-p img[src="xleb"][onerror^=SVG]::after {
    --img-not-loaded-stroke-pos-2: calc(var(--img-not-loaded-stroke-pos-1) + 40%);

    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(
        135deg in oklch,
        #433d48 var(--img-not-loaded-stroke-pos-1),
        #c0cace,
        #433d48 var(--img-not-loaded-stroke-pos-2)
    );
    animation: --img-not-loaded-anim-icon 1500ms linear infinite;
    z-index: 1;
}
@keyframes --img-not-loaded-anim-icon {
    50%, 100% { --img-not-loaded-stroke-pos-1: 100%; }
}
.nav .sec .dir-p .icon [fill="#D9D9D9"] {
    fill: var(--main-font-color);
}
.nav .sec .dir-p .icon [stroke="#D9D9D9"] {
    stroke: var(--main-font-color);
}
.nav .sec .dir-p span {
    display: flex;
    padding: 0 30px 0 75px;
    width: 100%;
    height: 100%;
    align-items: center;
    font-size: 10pt;
    font-weight: 425;
    text-decoration: none;
    color: var(--main-font-color);
    hyphens: manual;
}
.nav .extern a {
    position: relative;
    text-decoration: none;
    width: 100%;
    height: 100%;
}
.nav .sec .dir-p.currently-selected {
    background: hsl(from var(--main-color) h s calc(l - 5));
    transition: .3s;
}
.nav .sec .dir-p:hover {
    background: hsl(from var(--main-color) h s calc(l - 9));
    transition: .3s;
}
.nav .dir-p.not-avail-in-this-plan:hover {
    background: #701818;
    transition: .3s;
}
#sidebar-active, .open-sidebar-button, .close-sidebar-button {
    display: none;
}
#splitscreen-doer {
    position: absolute;
    display: none;
    top: 10px;
    left: auto;
    right: 10px;
}

@media(max-width: 750px) {
    body {
        --desktop-visual: 0;
    }
    .section, #comment-section {
        left: 4%;
    }
    section:has(.nav) {
        top: 7px;
        left: auto;
        right: 7px;
        height: fit-content;
        padding: 0;
    }
    .nav {
        width: 45px;
        aspect-ratio: 1;
        border-radius: 10px;
        display: flex;
        justify-content: center;
        align-items: center;
        box-shadow: none;
        background: var(--main-color);
    }
    .nav .logo {
        position: absolute;
        margin: 0;
        height: 10vh;
    }
    .button-container {
        top: 0;
        right: -300px;
        width: 250px;
        position: fixed;
        /*background: #e5e5e50C;*/
        backdrop-filter: blur(7px);
        border: 1px solid #eee;
        transition: 0.7s ease-in-out;
        overflow-y: auto;
    }
    .open-sidebar-button, .close-sidebar-button {
        display: block;
    }
    .close-sidebar-button {
        padding: 10px;
        margin-bottom: 10px;
    }
    .open-sidebar-button .icon [fill="#D9D9D9"],
    .close-sidebar-button .icon [fill="#D9D9D9"] {
        fill: white;
    }
    .open-sidebar-button .icon [stroke="#D9D9D9"],
    .close-sidebar-button .icon [stroke="#D9D9D9"] {
        stroke: white;
    }
    #sidebar-active:checked ~ .button-container {
        right: 0;
    }
    #sidebar-active:checked ~ #overlay-closer {
        height: 100%;
        width: 100%;
        position: fixed;
        top: 0;
        right: 0;
    }
    #splitscreen-doer {
        display: none;
    }
}

h1.title {
    font-size: 28px;
    font-weight: 700;
    /*font-family: "Monoton", sans-serif;*/
    text-align: center;
    color: var(--main-color-2);
    margin: 0 auto 40px auto;
    position: relative;
    width: 100%;
    hyphens: manual;
}
/*.title::before {
    content: '';
    position: absolute;
    background: linear-gradient(to bottom right, hsl(from var(--main-color-2) h s calc(l - 2)), hsl(from var(--main-color-2) calc(h - 2) calc(s + 7) calc(l - 6)));
    box-shadow: 1px 1px 7px hsl(from var(--main-color-2) calc(h - 2) calc(s + 7) calc(l - 6));
    width: calc(100% + 4vw);
    height: 5px;
    border-radius: 2px;
    left: -2vw;
    right: -2vw;
    bottom: 0;
}*/

#linienBlock, #divAL {
    display: grid;
    row-gap: .45rem;
    padding: .625rem;
    border-radius: 1.25rem;
    background: transparent;

    &> .qtextL {
        display: flex;
        flex-wrap: wrap;
        gap: .2rem .3125rem;
        padding: .5rem;
        border-radius: .5rem;
        border: .075rem solid var(--fth-normal-background);
    }
}
body.DARKMODE :is(#linienBlock, #divAL) {
    background: var(--opponent-normal-background);
}
.linieA {
    font-family: "Roboto", sans-serif;
    font-weight: 700;
    cursor: default;
    display: flex;
    min-width: 38px;
    height: .875rem;
    font-size: .85rem;
    overflow: hidden;
    align-items: center;
    justify-content: center;
    user-select: text;
}
.linieK {
    color: var(--kuerzel-color);
    font-weight: 600;
    margin-left: .9375rem;
    user-select: text;
}
.station-visu {
    background: #ddd;
    border-radius: 5px;
    border: 1px solid #bbb;
    padding: 1px 4px;
    min-width: 38px;
}

.buttonDivO {
    display: flex;
    flex-wrap: wrap;
    justify-content: right;
    margin-right: 2px;
    margin-top: 10px;
    margin-bottom: 10px;
    font-size: 12px;
}
.buttonDivU {
    display: flex;
    justify-content: left;
    margin-left: 2px;
    margin-top: 10px;
    margin-bottom: 10px;
    font-size: 12px;
}

.button, .unfilled-button {
    position: relative;
    font-size: 10pt;
    font-weight: 600;
    background: var(--button-color);
    color: var(--main-font-color);
    /*box-shadow: 2px 2px 2px #e3e3e3;*/
    border: none;
    border-radius: 7px;
    margin: 1px;
    height: 35px;
    /* width: clamp(135px, 15vw, 185px); */
    min-width: 135px;
    width: fit-content;
    max-width: 185px;
    padding: 9px 13px;
    display: inline-flex;
    text-align: center;
    justify-content: center;
    align-items: center;
    justify-self: center;
    cursor: pointer;
    transition: .2s;

    &:is(a) {
        text-decoration: none;
    }
}
.button.scalable, .unfilled-button.scalable {
    width: 100%;
}
.unfilled-button {
    background: var(--button-unfilled-color);
    color: var(--dark-font-color);
}
.button span, .unfilled-button span {
    font: inherit;
    color: inherit;
}
.button .icon [fill="#D9D9D9"] {
    fill: var(--main-font-color);
    transition: .2s;
}
.button .icon [stroke="#D9D9D9"] {
    stroke: var(--main-font-color);
    transition: .2s;
}
.button:active:not(:disabled), .unfilled-button:active:not(:disabled) { /* :enabled */
    scale: .97 .97 .97;
    transition: .05s;
}
.button:hover:not(:disabled), .unfilled-button:hover:not(:disabled) {
    background: var(--button-hover-color);
    color: var(--main-font-color);
    outline: .25px solid var(--dark-font-color);
    transition: .2s;
}
.button:hover:not(:disabled) .icon [fill="#D9D9D9"],
.unfilled-button:hover:not(:disabled) .icon [fill="#D9D9D9"] {
    fill: var(--main-font-color);
    transition: .2s;
}
.button:hover:not(:disabled) .icon [stroke="#D9D9D9"],
.unfilled-button:hover:not(:disabled) .icon [stroke="#D9D9D9"] {
    stroke: var(--main-font-color);
    transition: .2s;
}
.button:disabled, .unfilled-button:disabled {
    background: hsl(from var(--button-color) h calc(s - 7) calc(l - 7));
    color: #b8b8b8;
}
.button:disabled .icon [fill="#D9D9D9"] {
    fill: #b8b8b8;
}
.button:disabled .icon [stroke="#D9D9D9"] {
    stroke: #b8b8b8;
}
.button:hover:disabled, .unfilled-button:hover:disabled {
    animation: disabledButton .3s linear 0s 1 normal;
    /*animation: name duration timing-function delay iteration-count direction fill-mode;*/
}
@keyframes disabledButton {
    0%  { rotate: 0deg; }
    25% { rotate: 3deg; }
    75% { rotate: -3deg; }
    100%{ rotate: 0deg; }
}
.button .icon, .adderOpener .icon {
    width: 23px;
    height: 23px;
}
.button .icon + span, .adderOpener .icon + span {
    margin-left: 5px;
    color: inherit;
    font-size: inherit;
    font-family: inherit;
    font-weight: inherit;
    font-style: inherit;
    vertical-align: middle;
    align-items: center;
}
.moButton {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--normal-background);
    border: 2px solid var(--opponent-normal-background);
    cursor: pointer;
    &::-webkit-scrollbar {
        opacity: 0;
    }
    &:hover {
        background: var(--snd-normal-background);
    }
    &:active { /*ausfeilen mit animationen*/
        background: var(--trd-normal-background);
        scale: .97 .97 .97;
        transition: .05s;
    }
}
#sorterK {
    display: block;
    border-radius: 12px;
    margin-left: 2%;
    height: fit-content;
    width: auto;
    font-size: 11pt;
    padding: 2px 14px;
}
#zuweisAk {
    margin: 5px 2% 3px 0.5%;
    border-radius: 8px;
    width: 100px;
    height: 37px;
    font-size: 9pt;
    padding: 2px;
}
#zuweisAkLoesch {
    margin: 5px 0.5% 3px auto;
    border-radius: 8px;
    width: 37px;
    height: 37px;
    font-size: 9pt;
    padding: 2px;
}

.progress-bar {
    visibility: visible;
    transition: .5s;
    border-radius: 15px;
    height: 15px;
    border: 2px solid var(--opponent-normal-background)/* color-mix(in oklab, var(--logo-purple) 100%, var(--logo-green) 100%) */;
}
/* .progress-bar[max=0], .progress-bar[max="0"] {
    visibility: hidden;
} */
.progress-bar::-webkit-progress-bar {
    background-color: transparent;
    border-radius: 15px;
}
.progress-bar::-webkit-progress-value {
    background: linear-gradient(110deg in oklch, var(--logo-purple), var(--logo-green));
    border-radius: 15px;
}
.progress-bar::-webkit-progress-inner-element {
    
}

.fileLoader {
    color: transparent;
    container-type: inline-size;
    width: 8.44rem;
}
.fileLoader::-webkit-file-upload-button {
    position: absolute;
    opacity: 0;
    height: 0;
    width: 0;
}
.fileLoader::before {
    margin-left: .625rem;
    position: relative;
    content: attr(data-content);
    font-size: var(--fileLoaderFontSize);
    font-family: sans-serif;
    color: var(--dark-font-color);
    display: inline-block;
    background: var(--normal-background);
    cursor: pointer;
    font-weight: 700;
    width: 6.375rem;
    height: .9375rem;
    vertical-align: middle;
    place-content: center;
    text-align: center;
    border: 1px solid #999;
    border-radius: .3125rem;
    padding: .3125rem .5rem;
    outline: none;
    white-space: nowrap;
    transition: 0.3s;
}
.fileLoader[data-overwrite-content]:not([data-overwrite-content=""])::before {
    content: attr(data-overwrite-content);
}
.fileLoader:hover::before {
    border-color: var(--opponent-normal-background);
}

.input, .inputSS, .inputN, .linieNeu, .kürzelNeu, #searchNR, #verifyV {
    border: none;
    border-radius: 5px;
    outline: none;
    height: 30px;
    padding: 3px 8px;
    &::placeholder {
        color: var(--input-placeholder-col);
    }
}
.inputSS {
    font-size: 14pt;
    width: 100%;
    height: 2.8rem;
    border-radius: 1.7rem;
    padding: 5px 20px;
}
.linieNeu, .kürzelNeu, .inputSS, .infosO, .inputN, .input {
    background: var(--text-input-color);
}
.input:focus, .linieNeu:focus, .kürzelNeu:focus, .inputSS:focus, .inputN:focus, .infosO:focus {
    outline: 2px solid var(--main-color);
    outline-offset: -2px;
}
.input:disabled, .linieNeu:disabled, .kürzelNeu:disabled, .inputSS:disabled, .inputN:disabled, .infosO:disabled {
    background: var(--trd-normal-background);
}
.inputN::-webkit-inner-spin-button {
    opacity: 0;
    width: 0;
    height: 0;
}
.infosO {
    width: 100%;
    height: 100%;
    font-size: 10pt;
    margin-top: 7px;
    resize: none;
    border: hidden;
    border-radius: 5px;
    outline: none;
    padding: 4px 8px;
}
.infosO::placeholder {
    color: var(--input-placeholder-col);
}
.infosO::-webkit-scrollbar-track {
    background: #e5ebf0;
}

.custom-show-on-hover-title > .stat-n-in-title {
    font-weight: 700;

    &~ p {
        hyphens: manuel;
        text-wrap: wrap;
    }
    &~ p > span {
        font-style: italic;
    }
}

.search-res, .search-res-1 {
    display: none;
    border-radius: 15px;
    background: var(--snd-normal-background);
    padding: 5px;
    font-size: 10pt;
    width: 100%;
    overflow-y: auto;
    max-height: 65vh;
}
.search-res-1 {
    font-size: 9px;
    max-height: 100px;
    position: absolute;
    display: block;
    visibility: hidden;
    transform: rotate(0deg);
}
.divs, .divs-1 {
    position: relative;
    padding: .3em 1.25em;
    border-radius: 10px;
    cursor: pointer;
}
.divs-1 { padding: 3px 5px; }
.divs:hover, .divs-1:hover {
    transition: 0.3s;
    background: hsl(from var(--snd-normal-background) h s calc(l - 7));
}
.divs:active, .divs-1:active {
    transition: 0.15s;
    transform: scale(0.98);
}
#searchbar {
    anchor-name: --searchbar;
    padding-left: 43px;

    div:has(> &) {
        position: relative;
    }
    &+ label {
        position: absolute;
        left: 14px;
        top: 50%;
        transform: translateY(-50%);
        height: 50%;
        aspect-ratio: 1;
    }
    &+ label > .icon {
        width: 100%;
        height: unset;
        aspect-ratio: 1;
    }
    &+ label > .icon [fill="#D9D9D9"] {
        fill: var(--input-placeholder-col);
    }
    &+ label > .icon [stroke="#D9D9D9"] {
        stroke: var(--input-placeholder-col);
    }

    :has(&:focus) ~ #stationsList:not(:empty) {
        display: block;
    }
}
#stationsList {
    position: absolute;
    position-anchor: --searchbar;
    top: calc(anchor(bottom) + 4px);
    left: anchor(left);
}

#hinzufuegen-matrix {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 3px;
    margin-top: 10px;
}
#hinzufuegen-matrix > input {
    width: 100%;
}

#stationen #stationName {
    display: flex;
    align-items: center;
    margin: 1em 0 1em 2vw;
}
#stationen #divStationIs {
    margin-top: 10px;
    margin-bottom: 15px;
}

#ändern > #aendernStationName + div {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 3px;
    padding: 5px;
    background: var(--trd-normal-background);
    border-radius: 6px 6px 0px 0px;
}
#ändern > #aendernStationName + div > div {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3px;
}
#ändern > #aendernStationName + div > div > input.input,
#ändern > #aendernStationName + div > textarea.infosO {
    margin: 0;
    width: 100%;
    background: var(--normal-background);
}
#ändern > #aendernStationName + div + div {
    background: var(--trd-normal-background);
    border-radius: 0px 0px 6px 6px;
    padding: 5px;
}

.linienEinsicht {
    margin: 0.75em;
    overflow: hidden auto;
    max-height: 14em;
    border: .125rem solid var(--custom-scroller-color);
    border-radius: 7px;
    padding: .25rem;
}
.linienEinsichtRowed, .linienEinsichtUnrowed {
    display: grid;
    --inf-w: calc(1.5rem * 2 + .25rem);
    grid-template-columns: min(5vw, var(--inf-w)) 1fr var(--inf-w);
    width: 100%;
    height: 28px;
    justify-self: center;
    font-size: 10pt;
    overflow: hidden;
    text-wrap: nowrap;
    padding: 2px 4px;
}
.linienEinsichtRowed:has(+ .linienEinsichtUnrowed) {
    margin-bottom: 2px;
}
.linienEinsichtRowed + .linienEinsichtUnrowed {
    border-top: 1px solid var(--input-placeholder-col);
    margin-top: 2px;
}
.linienEinsicht .LE {
    display: block;
    grid-column: 2 / 3;
    align-content: center;
    border-radius: 4px;
    background: transparent;
    margin: 0 4px;
    overflow: hidden;
    user-select: text;
}
.linienEinsicht.edit-mode .LE {
    background: #b30;
}
.linienEinsichtRowed > div:not(.LE) {
    display: grid;
    grid-column: 3 / 4;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
}
.linienEinsichtRowed > div:not(.LE) > div.hoveryNr,
.linienEinsichtUnrowed > .LE + div.hoveryNr {
    margin: 0;
    font-size: 10pt;
    height: 100%;
    aspect-ratio: 1;
    color: var(--input-placeholder-col);
    background: var(--snd-normal-background);
    cursor: default;
}
.linienEinsichtRowed > div:not(.LE) > div.hoveryNr:first-child,
.linienEinsichtUnrowed > .LE + div.hoveryNr {
    color: #999;
    background: var(--normal-background);
}
.linienEinsicht.edit-mode .linienEinsichtRowed > div:not(.LE) > div.hoveryNr:first-child,
.linienEinsicht.edit-mode .linienEinsichtUnrowed > .LE + div.hoveryNr {
    background: #2c8ae285;
    cursor: pointer;
}
.rowerParent {
    display: grid;
    height: auto;
    width: 100%;
}
.rowerParent > div {
    align-content: end;
    padding: 0 .5px;
}
.rowerParent > div:nth-child(even) {
    border-left: 1px solid var(--input-placeholder-col);
}
.rowerParent .linienEinsichtRowed {
    grid-template-columns: 1fr auto;
    margin: 0;
}
.rowerParent .linienEinsichtRowed > div {
    grid-column: unset;
}
#lEl > .linienEinsichtRowed:first-child .LE,
#lEl > .rowerParent:first-child div > .rowerParent:first-child > div > .linienEinsichtRowed:first-child .LE,
#lEl > .rowerParent:first-child > div > .linienEinsichtRowed:first-child .LE,
#lEl > .linienEinsichtRowed:last-child .LE,
#lEl > .linienEinsichtRowed:has(+ .linienEinsichtUnrowed) .LE,
#lEl > .rowerParent:last-child div > .rowerParent:last-child .LE,
#lEl > .rowerParent:last-child > div > .linienEinsichtRowed:last-child .LE {
    text-decoration: underline;
    font-weight: 600;
}

#branches-container {
    padding: 20px;
    overflow: auto;
    max-width: 100%;
}
.branch {
    display: grid;
    gap: 3px;
    margin-top: 3px;
}
.branch > div > div > input[type=checkbox] {
    width: 0;
    height: 0;
    opacity: 0;
}
.branch > div > div > input[type=checkbox] + label {
    background: var(--button-unfilled-color);
    width: 100%;
    height: 100%;
    border-radius: 4px;
    align-items: center;
    transition: .2s;
}
.branch > div > div > input[type=checkbox]:hover + label {
    background: hsl(from var(--button-hover-color) calc(h - 10) calc(s + 20) calc(l + 20));
    transition: .2s;
}
.branch > div > div > input[type=checkbox]:checked + label {
    background: rgb(30, 181, 70);
    transition: .2s;
}
.branch > div > div > input[type=checkbox] + label.not-in-checked {
    background: #877;
}
.branch > div > div > input[type=checkbox]:hover + label.not-in-checked {
    background: hsl(0, 61%, 45%);
}
#branches-container #clear-branch-container > button {
    display: flex;
    justify-content: center;
    width: 50px;
    height: 26px;
}
#branches-container #branch-amount-container > div {
    display: flex;
    justify-content: right;
}
#branches-container #branch-amount-container > div > .inputN {
    width: 80%;
    height: 24px;
    margin: 3px 0 0 0;
}
#sortDIV {
    display: grid;
    gap: 4px;
}
#sortDIV > * {
    margin: 0;
    &:first-child {
        border-bottom: 1px solid #aaa;
    }
}
#modeDIV {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto min(50%, 24px);
    gap: 4px;
    border-radius: 6px;
    border: 1px solid #aaa;
    padding: 4px;
    background: var(--normal-background);
}
#modeDIV .number2:first-child {
    width: 100%;
    height: 100%;
    text-overflow: ellipsis;
    grid-column: 1 / span 2;
    font-size: 10pt;
    overflow-y: auto;
}
#modeDIV .number2 {
    margin: 0;
}
#shower1.showOnHover {
    display: none;
    column-gap: 5px;
    max-width: 278px;
    height: fit-content;
    padding: 8px;
    bottom: anchor(bottom);
    right: anchor(left);
    z-index: 10;
}

.comment {
    border: 1.5px solid lightgray;
    box-shadow: 2px 2px 2px #bbb;
    border-radius: 8px;
    background: white;
    right: 0;
    left: 0;
    margin: auto;
    width: auto;
    max-width: 400px;
    position: absolute;
    display: none;
    margin: 4px auto auto auto;
    font-size: 12px;
    padding: 2px 6px;
    /*animation: fade 10s linear 0s 1 normal;*/
}
@keyframes fade {
    /*0%  {opacity: 1;}*/
    to  {opacity: 0;}
}

.checked {
    list-style-type: "✅";
}
.crossed {
    list-style-type: "❌";
}

/* Customize the label (the container) */
.checkbox {
    display: flex;
    position: relative;
    padding-left: 26px;
    margin-bottom: 4px;
    width: fit-content;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
.checktext {
    font-size: 14px;
    flex-direction: row;
    align-content: center;
    height: 20px;
}
/* Hide the browser's default checkbox */
.checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}
/* Create a custom checkbox */
.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    background: var(--snd-normal-background);
    border-radius: 3px;
    cursor: pointer;
}
/* On mouse-over, add a grey background color */
.checkbox:hover input ~ .checkmark {
    background: #edeef3;
    background: radial-gradient(#edeef3, #edeef3);
}
/* Add a background color when checked */
.checkbox input:checked ~ .checkmark {
    background: #2196F3;
    background: radial-gradient(#2196F3, #2196F3);
}
/* Create the checkmark/indicator (hidden when not checked) */
.checkmark::after {
    content: "";
    position: absolute;
    display: none;
}
/* Show the checkmark when checked */
.checkbox input:checked ~ .checkmark:after {
    display: block;
}
/* Style the checkmark/indicator */
.checkbox .checkmark::after {
    left: 6.95px;
    top: 3.2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 3px 3px 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
}

.colorInput{
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 1px solid #ccc;
    align-content: center;
    transform: translateY(-5px);
}
#colorInput1, #colorInput2{
    width: 88%;
    height: 7px;
    border-radius: 7px;
    transform: translateY(-5px);
}
/*#colorSlider{
    margin: 0;
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 10px;
    background: linear-gradient(to right, #f00, #ff0, #0f0, #0ff, #00f, #f0f, #f00);
    outline: none;
    border-radius: 5px;
}
#colorSlider::-webkit-slider-thumb{
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 7px;
    background: transparent;
    border: 3px solid #000;
}
#colorMarker{
    width: 6px;
    height: 6px;
    border-radius: 6px;
    background: transparent;
    border: 2px solid #000;
    position: absolute;
    pointer-events: none;
}*/

.openers-oc {
    margin-bottom: 4px;
    border: 2px solid var(--trd-normal-background);
    border-radius: 20px;
    background: var(--normal-background);
    padding: 7px 9px;
}
.openers-oc > p:first-child {
    margin-left: 27px;
    position: relative;
    font-weight: 550;
    cursor: pointer;
}
.openers-oc > p:first-child::before {
    content: '►';
    position: absolute;
    left: -22px;
    top: auto;
    bottom: auto;
    transition: .3s ease;
}
.openers-oc.openers-oc-opened > p:first-child::before {
    rotate: 90deg;
}
.openers-oc .openers-oc-content {
    display: grid;
    grid-template-rows: 0fr;
    transition: .3s;

    &> div { overflow: hidden; }

    &> div > p:last-child {
        font-size: 9pt;
        color: var(--warn-font-color);
    }
}
.openers-oc.openers-oc-opened .openers-oc-content {
    grid-template-rows: 1fr;
    margin-top: 4px;
}

.isS {
    border: 1px solid var(--normal-background);
    border-radius: 5px;
    background: var(--snd-normal-background);
    padding: 7px;
    font-size: 12px;
    margin-bottom: 8px;
    user-select: text;
}

.SNr, .hoveryNr, .number, .number2 {
    font-size: 11pt;
    font-weight: 500;
    background: var(--number-color);
    border-radius: 4px;
    text-align: center;
    place-content: center;
    cursor: default;
}
.SNr, .number, .number2 {
    min-width: 24px;
    width: 24px;
    max-width: 24px;
    height: 24px;
}
.SN {
    font-size: 15pt;
    margin-right: 7px;
    user-select: text;
}
.number, .number2 {
    background: var(--snd-normal-background);
    min-width: 24px;
    height: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid transparent;
}
.number::-webkit-scrollbar, .number2::-webkit-scrollbar {
    opacity: 0;
}
.number2:hover {
    background: var(--number-hover-color);
    cursor: pointer;
}
.hoveryNr {
    width: 24px;
    height: 24px;
    margin-left: auto;
    margin-right: 10px;
    position: relative;
    transition: 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
    &:hover {
        background: var(--number-hover-color);
        cursor: pointer;
    }
}
#showNRZZsame:hover {
    background: var(--snd-normal-background);
}
#showNRZZx {
    width: 24px;
}
#showNRZZx:hover {
    background: red;
}
#searchNR {
    position: relative;
    height: 30px;
    width: 100%;
    margin-bottom: 5px;
    padding: 8px;
    background: var(--trd-normal-background);
    border-radius: 12px;
    font-size: 12pt;
}
.DNumber {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    max-height: 175px; /* Prozentangabe hinzufügen */
    overflow-y: auto;
    width: 100%;
}
.DNumber::-webkit-scrollbar {
    opacity: 0;
    width: 0;
    height: 0;
}
#divHead, #divHead1 {
    border-bottom: 1px solid var(--trd-normal-background);
    margin-bottom: 2px;
}
#divHead {
    display: grid;
    gap: 10px;
}
#divHead.enhanced {
    grid-template-columns: 3fr 1fr;
}
#divHead1 {
    padding-bottom: 5px;
}

.showOnHover, .showOnHoverElem {
    position: absolute;
    border: 1.5px solid var(--trd-normal-background);
    border-radius: 8px;
    box-shadow: 1.5px 1.5px 5px #0002;
    background: var(--normal-background);
}
.showOnHoverElem {
    left: auto;
    right: 0.3%;
    top: 10px;
    padding: 10px;
}

#verifyV {
    position: relative;
    width: 100%;
    height: 30px;
    margin-bottom: 5px;
    background: var(--normal-background);
    border-radius: 12px;
    font-size: 12pt;
    padding: 2px;
    text-align: center;
    align-content: center;
    cursor: pointer;
}
#verifyV:hover:enabled {
    background: #eee;
}
#verifyV:disabled {
    cursor: default;
}

#storageAufrufBlock {
    display: grid;
}
.aufruf-stations-sammlung {
    border: 4px solid var(--snd-normal-background);
    /* border-radius: 7px; */
    padding: 7px;
    max-height: 400px; 
    overflow-y: auto;

    & > p {
        font-weight: 600;
    }
}
.aufruf, .aufruf > .color-ref-container > .revAuf {
    --background-col: #f0f8fc;
    --acc-col: #ffffff;
    .DARKMODE & {
        --background-col: #221f26;
        --acc-col: #111112;
    }

    font-size: 14px;
    background: var(--background-col);
    border-radius: 8px;
    margin-top: 4px;
    padding: 5px;
    width: auto;
    overflow-x: auto;

    & button {
        min-width: 0;
        height: auto;
        width: unset;
        aspect-ratio: 1;
        padding: 8px;
    }
}
.aufruf {
    & > p {
        display: flex;
        flex-wrap: nowrap;
        margin-bottom: .5rem;
    }
    & > p > span:not(:nth-child(2)) {
        border: 1px solid hsl(from var(--background-col) h s calc(l - 15));
        border-radius: .2em;
        margin-inline: .15em;
        padding-inline: .3em;
        text-wrap: nowrap;

        .DARKMODE & {
            border-color: hsl(from var(--background-col) h s calc(l + 15));
        }
    }

    & > div:first-child {
        width: fit-content;
        max-width: 90%;
    }

}
.aufruf > .color-ref-container {
    display: grid;
    width: clamp(20rem, 60%, 40rem);
}
.aufruf > .color-ref-container > .revAuf {
    background: var(--normal-background);
    border: 1px solid var(--normal-background);
    margin-top: 2px;
    vertical-align: middle;
    width: 100%;
    text-wrap: nowrap;

    & > p > span[data-color] {
        display: none;
        background: attr(data-color type(<color>));
        border: 1px solid var(--opponent-normal-background);
        border-radius: 100vw;
        margin: 0 2px;
        height: 1.2em;
        aspect-ratio: 1 / 2;
        vertical-align: sub;
    }
}
@supports (background: attr(data-color type(<color>))) {
    .aufruf > .color-ref-container > .revAuf > p > span[data-color] {
        display: inline-block;
    }
}
.aufruf::-webkit-scrollbar, .aufruf > .color-ref-container > .revAuf::-webkit-scrollbar {
    height: 10px;
}
.aufruf::-webkit-scrollbar-track {
    background: var(--acc-col);
    border-radius: 0px 0px 8px 8px;
}
.aufruf::-webkit-scrollbar-thumb {
    background: var(--background-col);
    border-radius: 20px;
    border: 3px solid var(--acc-col);
}
.aufruf > .color-ref-container > .revAuf::-webkit-scrollbar-track {
    background: var(--background-col);
    border-radius: 0px 0px 8px 8px;
}
.aufruf > .color-ref-container > .revAuf::-webkit-scrollbar-thumb {
    background: var(--normal-background);
    border-radius: 20px;
    border: 3px solid var(--background-col);
}
.popup :is(.edit-sv-pp-content, .edit-st-pp-content, .edit-sc-pp-content) {
    display: grid;
    gap: 4px 2px;
    justify-items: center;

    & > p:first-child {
        font-weight: 600;
    }
}
.popup .edit-st-pp-content {
    grid-template-columns: repeat(8, 1fr);

    & > p:first-child {
        grid-column: 1 / 9;
    }
    & > input {
        width: 100%;
    }
    & > input:nth-of-type(1) {
        grid-column: 1 / 3;
    }
    & > input:nth-of-type(2) {
        grid-column: 3 / 9;
    }
    & > input:last-of-type {
        grid-column: 1 / 9;
    }
}
.popup .edit-sc-pp-content {
    grid-template-columns: 1fr;
}

.gridItemfstRow, .gridItem, .gridItemK, .indicator {
    background: var(--trd-normal-background);
    padding: .125em .3em;
    border-radius: 4px;
    margin: 0;
    overflow-x: auto;
    align-content: center;
    min-height: 20px;
    text-wrap: nowrap;
}
.gridItemK {
    background: var(--snd-normal-background);
    border: 1px solid var(--snd-normal-background);
    user-select: text;
}
.gridItem {
    background: var(--trd-normal-background);
    border: 1px solid var(--trd-normal-background);
    user-select: text;
}
.kürzelTItem, .kürzelTItemFSTr {
    padding: .08em .35em;
    margin-block: 1px;
    border-radius: 7px;
    display: grid;
    grid-template-columns: 2.7fr 1fr 1fr 1fr 1fr;
    column-gap: 3px;
    width: 100%;
    transition: .1s;
}
/* .kürzelTItem { background: #7ba7ff11; } */
.kürzelTItem:hover {
    background: var(--main-color);
}
#kürzelT {
    position: relative;
    height: 450px;
    overflow-y: auto;
}
#kürzelT::-webkit-scrollbar {
    display: none;
}
.indicator {
    min-height: 0;
    height: 0;
    margin-top: 4px;
    margin-bottom: 4px;
}
.gridItemfstRow::-webkit-scrollbar, .section::-webkit-scrollbar {
    opacity: 0;
    height: 0;
    width: 0;
}
.gridItem::-webkit-scrollbar, .gridItemK::-webkit-scrollbar {
    height: 6px;
}
.gridItem::-webkit-scrollbar-track, .gridItemK::-webkit-scrollbar-track {
    background: var(--normal-background);
    border-radius: 0px 0px 4px 4px;
}
.gridItem::-webkit-scrollbar-thumb, .gridItemK::-webkit-scrollbar-thumb {
    background: var(--trd-normal-background);
    border-radius: 20px;
    border: 1px solid var(--normal-background);
}

.warnung {
    margin-left: 20px;
    margin-top: 5px;
    font-size: 14px;
    color: var(--warn-font-color);
}
.help-list-elements {
    font-size: 14px;
    padding-left: 24px;
}
.help-list-elements li {
    color: var(--help-font-color);
}

.icon {
    height: 30px;
    width: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}
.icon [fill="#D9D9D9"] {
    fill: var(--icon-color);
}
.icon [stroke="#D9D9D9"] {
    stroke: var(--icon-color);
}
[stop-color="#8B5CF6"] {
    stop-color: var(--logo-purple);
}
[stop-color="#10B981"] {
    stop-color: var(--logo-green);
}
.hoveryNr .icon, .number .icon, .number2 .icon, .moButton .icon {
    width: 23px;
    height: 23px;
}

.mapOpp {
    position: absolute;
    width: var(--mapOppWidth);
    height: var(--mapOppHeight);
    border: 1px solid #000;
    border-radius: 2px;
}
#lineMap {
    background: white;
}
.stationMark {
    position: absolute;
    border-radius: 0.5vmin;
    border: 1px solid #000;
    background: #fff;
    cursor: pointer;
}
.stationMark.dyn {
    background: red;
    border-color: red;
}
.stationMarkNr {
    position: absolute;
    /*border: 1px solid #f0f;*/
    min-width: 2px;
    min-height: 2px;
    width: fit-content;
    height: fit-content;
    background: #fffa;
    border-radius: 0.125vmin;
    font-size: 5px;
    color: black;
    cursor: pointer;
}
#mappChanger #closeItConfig {
    margin: -1px 1px 8px auto;
    transition: none;
}
#mappChanger .markerInfo {
    display: flex;
    gap: 3px;
    margin-bottom: 8px;
    font-size: 13px;
    background: var(--text-input-color);
    outline: 2px solid var(--text-input-color);
    border-radius: 10px;
    padding: 4px 2px;
    overflow: auto;
}
#mappChanger .markerInfo > div {
    width: fit-content;
    padding: 3px;
    border-radius: 10px;
    background: var(--normal-background);
}
#mappChanger .markerInfo > div > div {
    padding: 2px;
    width: 100%;
    text-wrap: nowrap;
}
#mappChanger .markerInfo > div > div:last-child {
    border-top: 1px solid var(--text-input-color);
}
#mappChanger .markerInfo > button {
    height: auto;
    min-width: auto;
}

#configurator {
    border-radius: 12px;
    width: 100%;
    min-height: 22px;
    background: var(--trd-normal-background);
    margin: 7px 0 7px 0;
    padding: 7px 7px;
}
#lnpInfos {
    min-height: 22px;
    margin-bottom: 3px;
}
#lineManager {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}
.conf-line-sec {
    position: relative;
    height: auto;
    border-radius: 7px;
    border: 1px solid #000;
    padding: 4px;
    display: flex;
    flex-wrap: wrap;
    max-width: 115px;
}
.conf-line-sec input::placeholder {
    font-style: italic;
}
.conf-line-sec-modi {
    border: 1px solid #fff;
    color: #fff;
}
.line-hover-tile {
    min-width: 22px;
    height: 22px;
    font-size: 11pt;
    border-radius: 4px;
    background: #fff;
    text-align: center;
    align-content: center;
    cursor: pointer;
    padding: 0 4px;
    margin-left: 4px;
    color: #000;
    &:hover {
        transition: 0.2s;
        box-shadow: 1px 1px 2.5px #ddd inset, -1px -1px 2.5px #f2f2f2 inset;
    }
}
.line-info-scr {
    width: 100%;
    border-radius: 4px;
    background: #fff;
    font-size: 10pt;
    padding: 4px;
    margin-top: 6px;
}
.line-info-scr p {
    user-select: text;
}

#mapPlatzH {
    display: flex;
    margin-top: 4px;
    gap: .4em;
}
.adderOpener {
    flex: 1;
    height: 28px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 7px;
    background: var(--snd-normal-background);
    font-size: 10pt;
    font-weight: 405;
    cursor: pointer;
    transition: 0.2s;
    &:hover {
        background: var(--number-hover-color);
    }
}
#mappAdder {
    width: 175px;
}
.dragger {
    height: 4px;
    border-radius: 4px;
    width: 35%;
    background: var(--snd-normal-background);
}
.dragger:hover {
    background: var(--number-hover-color);
}
.dragger-settings {
    position: absolute;
    width: 100%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 15px 5px;
    cursor: grab;
}
.dragger-settings:active {
    padding: 35px 15px;
    cursor: grabbing;
}
#mapName {
    margin-top: 10px;
    font-size: 11pt;
}
#map-new-container {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(3, 1fr);
    grid-template-areas:
        "x-input x-input x-input y-input y-input y-input"
        "w-input w-input h-input h-input a-input a-input"
        "n-input n-input n-input n-input n-input n-input"
    ;
    gap: 3px;
}
#map-new-container input:nth-child(1) {
    grid-area: x-input;
}
#map-new-container input:nth-child(2) {
    grid-area: y-input;
}
#map-new-container input:nth-child(3) {
    grid-area: w-input;
}
#map-new-container input:nth-child(4) {
    grid-area: h-input;
}
#map-new-container input:nth-child(5) {
    grid-area: a-input;
}
#map-new-container input:nth-child(6) {
    grid-area: n-input;
}

.dd-selector {
    display: inline-block;
    width: 100px;
    height: 30px;
    border-radius: 5px;
    padding: 5px;
    background: #eee;
}
.dd-selector div {
    border: 1px solid #000;
    border-radius: 3px;
    font-size: 9pt;
    font-weight: 600;
}

#tab-chooser {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5em .2em;
}
#preset-tab-button, #freestyle-tab-button {
    display: none;
}
#preset-tab-button + label, #freestyle-tab-button + label {
    text-align: center;
    align-content: center;
    padding: .3em 2em;
    border-radius: 1.5em;
    background: var(--snd-normal-background);
    font-weight: 550;
}
#preset-tab-button:checked + label, #freestyle-tab-button:checked + label {
    border: 3px solid var(--main-color);
}
#preset-tab-button:checked ~ #preset-tab,
#freestyle-tab-button:checked ~ #freestyle-tab {
    display: grid;
}
#preset-tab {
    position: relative;
    display: none;
    grid-column: 1 / 3;
}
#preset-tab #conf-line {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    align-items: center;
}
#preset-tab #map-shower {
    visibility: visible;
    margin-top: 10px;
    border: 1px solid #000;
    width: 100%;
    height: fit-content;
}
#preset-tab #map-shower:empty {
    visibility: hidden;
}
#preset-tab #map-shower #map-canvas {
    width: 100%;
    height: auto;
    background: white;
}
#freestyle-tab {
    --route-color: #925;
    position: relative;
    display: none;
    grid-column: 1 / 3;
}
#freestyle-tab #freestyle-rmc-downloader {
    display: flex;
    width: 50%;
    justify-self: end;
}
#freestyle-tab #doing-screen {
    display: block;
    position: relative;
    padding: 10vh 10vw;
}
#freestyle-tab .map-container {
    width: calc(100% - 2px);
    height: 30vw;
    border: 1px solid black;
    position: relative;
    margin-top: 10px;

    --left-end: 5vw;
    --right-end: 14vw;
    --top-end: 60%;
}
#freestyle-tab .map-container :is(.ending-left, .ending-right) {
    position: absolute;
    top: var(--top-end);
    z-index: 1;

    &.ending-left {
        left: var(--left-end);
        transform: translate(-50%, -50%);
    }
    &.ending-right {
        right: var(--right-end);
        transform: translate(50%, -50%);
    }
}
#freestyle-tab .map-container [data-type="normal"] {
    width: 0.6%;
    height: 4%;
    background: var(--route-color);
}
#freestyle-tab .map-container [data-type="big"] {
    width: 1.5vw;
    height: 1.5vw;
    border-radius: 50%;
    border: .3vw solid var(--route-color);
    background: #fff;

    /* &.ending-left { transform: translate(-50%, -50%); }
    &.ending-right { transform: translate(50%, -50%); } */
}
#freestyle-tab .map-container :is([data-type="normal"], [data-type="big"]) .station-name-end {
    margin-left: 4.7vw;
    margin-top: -7.8vw;
    font-size: 1.3vw;
    background: #f0d5d5;
    font-weight: bold;

    &+ .btn-container {
        margin-top: 1.75vw;
    }
}
#freestyle-tab .map-container .way-conn {
    display: flex;
    position: absolute;
    top: var(--top-end);
    transform: translateY(-50%);
    left: var(--left-end);
    right: var(--right-end);
    width: auto;
    height: 1.4%;
    background: var(--route-color);
}
#freestyle-tab .map-container .way-conn > div {
    position: absolute;
    transform: translate(-50%, -50%);
    --auto-top-shift: 7.4vw;

    &[data-type="normal"] {
        width: .35vw;
        height: .75vw;
        background: var(--route-color);
        --top-shift: calc(-1 * (var(--auto-top-shift)));
    }
    &[data-type="circle"] {
        top: 50%;
        width: 1vw;
        height: 1vw;
        border-radius: 50%;
        border: .25vw solid #000;
        background: #fff;
        --top-shift: calc(-1 * (var(--auto-top-shift) + .24vw));
    }
    &[data-type="big"] {
        top: 50%;
        width: 1.5vw;
        height: 1.5vw;
        border-radius: 50%;
        border: .3vw solid var(--route-color);
        background: #fff;
        --top-shift: calc(-1 * (var(--auto-top-shift) + .25vw));
    }
}
#freestyle-tab .map-container .way-conn > div .station-name {
    margin-left: 4.7vw;
    margin-top: var(--top-shift);
}
#freestyle-tab .map-container .btn-container {
    margin-top: 1.5vw;
    margin-left: 50%;
    transform: translateX(-50%);
    display: grid;
    grid-template-rows: repeat(3, 2.4vw);
    gap: .2vw;
    width: 2.4vw;
    height: fit-content;
}
#freestyle-tab .map-container :is(.station-name, .station-name-end) {
    position: absolute;
    border: .1vw dashed #666;
    background: #eee;
    width: 16vw;
    min-height: 1vw;
    max-height: 2.2vw;
    font-size: 1vw;
    outline: none;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) rotate(-55deg);
}
#freestyle-tab .map-container :is([data-type="normal"], [data-type="circle"], [data-type="big"]) .dir-shower {
    margin-top: .9vw;
    margin-left: .9vw;
    left: 50%;
    transform: translateX(-50%);
    position: absolute;
    width: 3vw;
    height: 3vw;
    font-size: 8pt;
    color: var(--route-color);
}
#freestyle-tab .map-container :is(.ending-left, .ending-right) .dir-shower {
    margin-left: 1vw;
}
/* #freestyle-tab .normal-station {
    position: absolute;
    transform: translate(-50%, -50%);
    width: .35vw;
    height: .75vw;
    background: var(--route-color);
}
#freestyle-tab .circle-station {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: .5vw;
    height: .5vw;
    border-radius: .5vw;
    border: .2vw solid #000;
    background: #fff;
}
#freestyle-tab .big-station {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: .9vw;
    height: .9vw;
    border-radius: .9vw;
    border: .3vw solid var(--route-color);
    background: #fff;
} */
/* #freestyle-tab .normal-station .station-name {
    margin-left: 4.7vw;
    margin-top: -7.2vw;
}
#freestyle-tab .circle-station .station-name {
    margin-left: 4.7vw;
    margin-top: -7.5vw;
}
#freestyle-tab .big-station .station-name {
    margin-left: 4.7vw;
    margin-top: -7.8vw;
} */
/* #freestyle-tab .dir-shower {
    left: 50%;
    transform: translateX(-50%);
    position: absolute;
    width: 3vw;
    height: 3vw;
    font-size: 8pt;
    color: var(--route-color);
    margin-left: .9vw;
    margin-top: .5vw;
} */
/* #freestyle-tab .normal-end .station-name-end, #freestyle-tab .big-end .station-name-end {
    margin-left: 4.7vw;
    margin-top: -7.8vw;
    font-size: 1.3vw;
}
#freestyle-tab .station-name-end {
    background: #f0d5d5;
    font-weight: bold;
} */
/* #freestyle-tab .normal-end {
    width: 0.6%;
    height: 4%;
    background: var(--route-color);
}
#freestyle-tab .big-end {
    width: .9vw;
    height: .9vw;
    border-radius: .9vw;
    border: .3vw solid var(--route-color);
    background: #fff;

    &.ending-left { transform: translate(-50%, -50%); }
    &.ending-right { transform: translate(50%, -50%); }
} */
/*  */
/* #freestyle-tab .station-name-end + .btn-container {
    margin-top: 1.75vw;
} */
#freestyle-tab .map-container #adding-btn {
    top: 15%;
    left: 4%;
    width: 4vw !important;
    height: 4vw !important;
}
#freestyle-tab .map-container #col-pick-btn {
    top: 40%;
    left: 1%;
}
#freestyle-tab .map-container .change-dir-btn {
    position: relative !important;
    left: 50%;
    transform: translateX(-50%);
}
#freestyle-tab .map-container .change-dir-btn p {
    opacity: 1;
}
#freestyle-tab .map-container .change-type-btn {
    position: relative !important;
    left: 50%;
    transform: translateX(-50%);
}
#freestyle-tab .map-container .delete-stn-btn {
    position: relative !important;
    left: 50%;
    transform: translateX(-50%);
}
#freestyle-tab .map-container .do-sth-button {
    position: absolute;
    width: 2.4vw;
    height: 2.4vw;
    border: .24vw solid silver;
    border-radius: .67vw;
    opacity: .3;
    transition: .2s;
    cursor: pointer;
}
#freestyle-tab .map-container .do-sth-button:hover {
    opacity: .7;
    border: .24vw solid #056385;
}
#freestyle-tab .map-container .btn-with-icon .icon {
    width: 100% !important;
    height: 100% !important;
}

div:has(> #docPlatzH) {
    --din-a-4-ratio: 210 / 297;
    --w: 55cqh;
    margin-top: 20px;
    container-type: inline-size;
}
#docPlatzH.pret {
    display: flex;
    width: 100%;
    padding-block: .5rem;
    border: 2px solid var(--fth-normal-background);
    overflow: auto;
    gap: 3px;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
}
#docPlatzH > .doc-container {
    --px: .12cqh;
    --m-font-size: calc(var(--px) * 14);
    --s-font-size: calc(var(--px) * 11);
    --xs-font-size: calc(var(--px) * 9);
    --m-padding: 2.5cqh;
    --s-padding: 1.25cqh;
    --xs-padding: 1cqh;
    --xs-xxs-padding: .5cqh;
    --xxs-padding: .15cqh;
    --line-height: 1.4cqh;

    border: var(--px) solid #000;
    width: var(--w);
    aspect-ratio: var(--din-a-4-ratio);
    padding: 4cqh 2.25cqh;
    user-select: text;
    overflow: auto;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    position: relative;
    margin-inline: auto;

    &.measure {
        aspect-ratio: unset;
        height: fit-content;
        max-height: calc(var(--w) / (var(--din-a-4-ratio)));
    }

    &.cleanse {
        border: unset;
    }

    .pret > & {
        flex: 0 0 var(--w);
        overflow: hidden;
    }

    &::after {
        content: attr(data-page-nr);
        position: absolute;
        inset: auto var(--xs-padding) 0 auto;
        font-size: var(--xs-font-size);
        font-style: italic;
        color: gray;
    }

    & * {
        user-select: text;
        font-family: "Roboto", sans-serif;
    }

    /*   page-break-after: always;
      break-after: page;
  
      &:last-child {
          page-break-after: auto;
      } */
}
@supports selector(::scroll-button(right)) {
    #docPlatzH.pret {
        anchor-name: --carousel;
        scroll-marker-group: after;

        &::-webkit-scrollbar {
            display: none;
        }
        &::scroll-button(right), &::scroll-button(left) {
            --shift-bb: calc(.7rem);

            content: '►';
            border: none;
            font-weight: 600;
            background: var(--button-color);
            color: var(--main-font-color);
            font-size: .8rem;
            width: 2.2rem;
            aspect-ratio: 1;
            border-radius: 50%;
            text-align: center;
            align-content: center;
            cursor: pointer;
            position: absolute;
            position-anchor: --carousel;
            position-area: right center;
            transform: translateX(calc(-1 * var(--shift-bb)));
            opacity: .6;
            transition: .2s;
        }
        &::scroll-button(left) {
            content: '◄';
            position-area: left center;
            transform: translateX(calc(var(--shift-bb)));
        }
        &::scroll-button(right):disabled, &::scroll-button(left):disabled {
            background-color: hsl(from var(--button-color) h calc(s - 7) calc(l - 7));
            color: #b8b8b8;
            cursor: not-allowed;
        }
        &::scroll-button(right):not(:disabled):hover, &::scroll-button(left):not(:disabled):hover {
            opacity: 1;
        }
        &::scroll-marker-group {
            display: flex;
            justify-content: center;
            gap: .5em;
            margin-top: .2rem;
        }
    }
    #docPlatzH.pret > .doc-container {
        &::scroll-marker {
            content: '';
            display: block;
            width: .6em;
            height: .6em;
            background-color: var(--snd-normal-background);
            border-radius: 50%;
            transition: .2s;
        }
        &::scroll-marker:target-current {
            background-color: var(--button-color);
            transform: scale(1.3);
        }
    }
}
.doc-title {
    font-size: 2.5cqh;
    margin: 0 auto var(--m-padding) auto;
    text-align: center;
    font-weight: 700;
    text-decoration: underline;
}
.under-doc0 {
    padding: var(--xxs-padding);
}
.doc-grid1 {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 7.3fr);
}
.doc-grid1:first-child .doc-grid2 {
    border-top: var(--px) solid #000;
}
.doc-grid2 {
    display: grid;
    grid-template-columns: minmax(0, 8fr) minmax(0, 1fr) minmax(0, 2.1fr);
    border-bottom: var(--px) solid #000;
    border-right: var(--px) solid #000;
}
.doc-container .item1 {
    text-align: center;
    vertical-align: middle;
    align-content: center;
    font-size: var(--m-font-size);
    font-weight: 800;
    border-width: var(--px) !important;
}
.doc-container .item2, .doc-container .item2-child {
    display: flex;
    padding: 0 var(--xs-xxs-padding);
    font-size: var(--s-font-size);
    white-space: pre;
}
.doc-container .item2-child {
    flex-wrap: wrap;
}
.doc-container .item2 span, .doc-container .item2-child span {
    white-space: pre;
}
.doc-container .item3, .doc-container .item3-child {
    color: var(--abf-rep-color);
    font-size: var(--s-font-size);
    text-align: center;
}
.doc-container .item4, .doc-container .item4-child {
    font-size: var(--s-font-size);
    text-align: center;
}
.doc-container .item2-child, .doc-container .item3-child, .doc-container .item4-child {
    border-top: var(--px) dashed #000;
}
.doc-container .doc-title + div:has(+ .substitution) {
    font-size: var(--xs-font-size);
    text-align: center;
    text-wrap: wrap;
    line-height: var(--line-height);
}
.substitution {
    border-top: var(--px) solid #000;
    border-bottom: var(--px) solid #000;
    text-align: center;
    background: #f2f2f2;
    font-size: var(--s-font-size);
}
.substitution div {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
    padding: var(--xxs-padding) 0;
    white-space: pre;
}
.substitution div span {
    white-space: pre;
}
.span {
    border: var(--px) solid #000;

    :is(.span, .substitution) + & {
        border-top: none;
    }
}
.span-name {
    background: #2dbe0d;
    font-size: var(--s-font-size);
    text-align: center;
}
.defs {
    padding: var(--xs-xxs-padding);
    background: linear-gradient(to bottom right, #ecf8ff, #80bfe3);
}
.defs-child {
    border: var(--px) solid #000;
    border-top: none;
    background: #fff;
}
.defs-child:first-of-type {
    border-top: var(--px) solid #000;
}
.tsch-head {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 1fr);
    text-align: center;
    font-size: var(--s-font-size);
}
.item56 {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 7.7fr);
    height: fit-content;
}
.item56 span {
    white-space: pre;
    display: flex;
    align-items: center;
}
.item5-head, .item6-head {
    background: #ffc000;
}
.item5-head {
    border-right: var(--px) solid #fff;
}
.item5, .item6 {
    display: flex;
    justify-content: center;
}
.item5 {
    border-right: var(--px) solid #000;
    white-space: pre;
    /*border-left: 2px solid #000;*/
}
.item6 {
    padding: 0 var(--xs-xxs-padding);
    justify-content: left;
}
div:has(> .item7) {
    border-left: var(--px) solid #000;
}
.item7-head {
    background: #ffe599;
}
.item7 {
    &> p {
        position: relative;
        text-wrap: wrap;
        font-size: var(--xs-font-size);
        padding: var(--xxs-padding);
    }

    &> p:not(:first-child)::before {
        content: '';
        position: absolute;
        display: block;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 85%;
        height: var(--px);
        background: #89898946;
    }
}
.descr, .scum, .linki {
    /*margin-left: 1.1%;*/
}
.descr {
    font-weight: 600;
}
.scum {
    font-style: italic;
}
.item8 {
    background: #f4b083;
    padding: 0 var(--xs-xxs-padding);
    font-size: var(--s-font-size);
    text-wrap: wrap;
}
.span-comment, .doc-comment {
    border: var(--px) solid #000;
    border-top: none;
    font-size: var(--xs-font-size);
    padding-inline: var(--xs-xxs-padding);
    line-height: var(--line-height);
    text-wrap: wrap;
}
.span-comment {
    background: #6bac41;
}
.doc-comment {
    background: #2995e2;
}
#doc-download-btn {
    margin-top: 2em;
}

.name-lists {
    font-size: 9pt;
    padding: 4px 0 4px 24px;
    margin: 1px 0 6px 0;
    background: var(--snd-normal-background);
    border-radius: 15px;
    cursor: default;
}
#mapNameList li {
    width: 100%;
}
.structoLI {
    list-style-type: none;
    font-family: 'Courier New', Courier, monospace;
    white-space: pre;
}
.structoLI span {
    font-family: inherit;
}
.structoLI span:hover {
    color: #008cff;
    cursor: pointer;
}
.structoLI .fold:hover {
    color: #ffbb00;
}

#notes-container-big {
    position: relative;
    background: var(--snd-normal-background);
    border-radius: 10px;
    padding: 9px;
    margin-top: 10px;
    font-size: 10pt;

    &:empty::before {
        position: relative;
        content: attr(data-empty-value);
        font-style: italic;
        color: var(--input-placeholder-col);
    }
}
@supports (corner-shape: squircle) {
    #notes-container-big {
        border-radius: 40px;
        corner-shape: squircle;
    }
}
.notesHeader {
    position: relative;
    font-size: 18pt;
    font-weight: bold;
    margin: 10px auto 20px 10%;
    text-align: left;
    width: fit-content;
}
.notesHeader::after {
    content: '';
    position: absolute;
    inset: 0 -.45em 4px .4em;
    background: hsl(from var(--main-color-2) h s calc(l + 2) / .5);
    transform: skew(-13deg, -3deg);
    border-left: .12em solid hsl(from var(--main-color-2) calc(h - 10) s l / .5);
    border-right: .3em solid hsl(from var(--main-color-2) calc(h - 10) s l / .4);
    z-index: -1;
}
/* .notesHeader::before {
    content: '';
    position: absolute;
    left: .45em;
    bottom: 4px;
    top: auto;
    width: 97%;
    height: 3px;
    background: #2e86b5;
    z-index: -1;
}
.notesHeader::after {
    content: '';
    position: absolute;
    left: .4em;
    bottom: 0;
    top: auto;
    width: 90%;
    height: 2px;
    background: #2c6889;
} */

.notes-content-container {
    /*width: auto;
    display: flex;
    flex-wrap: wrap;
    white-space: pre-wrap;
    font-size: 9pt;
    align-items: center;
    padding: 10px;
    border-radius: 12px;
    background: #eee;
    max-height: 50vh;
    overflow: scroll;*/
    width: 100%;
    height: 200px;
    font-size: 9pt;
    text-align: left;
    margin-bottom: 7px;
    resize: none;
    border: hidden;
    border-radius: 5px;
    outline: none;
    padding: 4px 5px;
    background: var(--text-input-color);
    position: relative;
    display: block;
    white-space: pre-wrap;
    text-wrap: nowrap;
    overflow: auto;
}
#noteContent {
    width: 100%;
    height: 200px;
    font-size: 9pt;
    text-align: left;
    margin-bottom: 7px;
    resize: none;
    border: hidden;
    border-radius: 0 0 5px 5px;
    outline: none;
    padding: 4px 5px;
    background: var(--text-input-color);
    position: relative;
    display: block;
    white-space: pre-wrap;
    text-wrap: nowrap;
    overflow: auto;
}
#noteContent.empty::before {
    content: attr(data-placeholder);
    color: var(--input-placeholder-col);
    pointer-events: none;
    position: absolute;
}
#noteContent::-webkit-scrollbar-track { background: var(--snd-normal-background); }
.notes-content .line-flex-item {
    display: block;
    white-space: nowrap;
    align-items: center;
    text-align: start !important;
    user-select: text;
}
.notes-content .line-flex-item span.perm3 {
    display: inline-block;
    white-space: pre-wrap;
    text-align: center;
    vertical-align: middle;
}
.notes-content .linieA {
    margin: 0 2px;
    scale: .8;
    width: fit-content;
}
.notes-content .station-visu {
    display: inline-block;
    margin: 0 4px;
    font-size: 7pt;
}
.notes-content [data-formats*="0"], .note-form-ncb-0 { font-weight: bold; }
.notes-content [data-formats*="1"], .note-form-ncb-1 { font-style: italic; }
.notes-content [data-formats*="2"], .note-form-ncb-2 { text-decoration: underline; }
.notes-content [data-formats*="3"], .note-form-ncb-3 { text-decoration: line-through; }
.notes-content [data-formats*="4"], .note-form-ncb-4 { color: red; }
.notes-content [data-formats*="5"], .note-form-ncb-5 { background: yellow; }
body.DARKMODE .notes-content [data-formats*="5"], body.DARKMODE .note-form-ncb-5 { background: hsl(from yellow h s l / .5); }
#noteContent-bar {
    border-radius: 5px 5px 0 0;
    list-style-type: none;
    background: var(--trd-normal-background);
    padding: 0;
    margin: 7px 0 0 0;
    overflow: hidden;
}
#noteContent-bar li {
    float: left;
}
#noteContent-bar li p {
    display: block;
    padding: 5px 10px;
    font-size: 10pt;
    border: 1px solid var(--fth-normal-background);
    align-items: center;
}
#noteContent-bar li p:hover, .bar-button-active {
    background: #999;
    cursor: pointer;
}
.notes-table {
    display: inline-grid;
    width: fit-content;
    margin: 2px;
    position: relative;
    gap: 0;
}
.notes-table .table-cell {
    align-items: center;
    padding: 3px;
    min-width: 3.25rem;
}
.notes-table .table-cell .line-flex-item {
    display: block;
    white-space: nowrap;
    align-items: center;
    width: 100%;
    outline: none;
}
.notes-table .table-cell.border-top {
    border-top: 1px solid #999999;
}
.notes-table .table-cell.border-left {
    border-left: 1px solid #999999;
}
.perm1 {
    outline: none;
}
.selected {
    background: #3352ba22;
}
.btn-table {
    position: absolute;
    background: var(--trd-normal-background);
    border: none;
    border-width: 1.5px;
    border-style: solid;
    border-color: #aaa;
    font-size: 9pt;
    cursor: pointer;
    padding: 0 0;
    opacity: .2;
    transition: .2s;
    user-select: none;
}
#noteContent-bar + #noteContent .btn-table:hover {
    background: var(--trd-normal-background);
    border-color: #56aee9;
    opacity: 1;
}
.btn-table.btn-top:after, .btn-table.btn-left:after {
    content: '-';
}
.btn-table.btn-bottom:after, .btn-table.btn-right:after {
    content: '+';
}
.btn-table:after {
    font-weight: 900;
    position: absolute;
    transform: translate(-50%, -50%);
    font-size: 7pt;
    background: inherit;
    border: inherit;
    width: 7px;
    height: 7px;
    border-radius: 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.btn-top { bottom: 100%; }
.btn-bottom { top: 100%; }
.btn-top, .btn-bottom {
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 4px;
    border-left: initial;
    border-right: initial;
    /*z-index: 20;*/
}
.btn-left { right: 100%; }
.btn-right { left: 100%; }
.btn-left, .btn-right  {
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 100%;
    border-top: initial;
    border-bottom: initial;
    /*z-index: 20;*/
}
.break-real {
    display: flex !important;
    flex-basis: 100%;
    height: 9pt;
}
.break-imit {
    display: flex !important;
    flex-basis: 100%;
    height: 0;
}

#history-shower {
    font-size: 14px;
    padding-left: 15px;
}
#history-shower > li {
    display: grid;
    grid-template-columns: 6% 20% auto auto;
    gap: 3px;
    align-items: center;
    justify-content: start;
    position: relative;
}
#history-shower > li > .icon {
    height: 100%;
    width: 24px;
}
#history-shower > li > .icon [fill="#D9D9D9"] {
    fill: var(--icon-color);
}
#history-shower > li > .icon [stroke="#D9D9D9"] {
    stroke: var(--icon-color);
}

#languages button.current-lang {

}