:root {
    --c_fore: whitesmoke;
    --c_header: crimson;
    --c_ebene_0: crimson;
    --c_ebene_1: rgb(220, 101, 125);
    --c_ebene_2: rgb(206, 149, 160);
}

* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    width: 100vw;
    height: 100vh;
}

div.cover-up {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    z-index: 1000;
}

body > main {
    width: 100%;
    height: 100%;

    display: grid;
    grid-template-columns: 100%;
    grid-template-rows: 50px 1fr;
}

main > header {
    min-height: 10px;
    background-color: var(--c_header);
    user-select: none;
    box-shadow: 0px 3px 5px #00000070;

    display: grid;
    grid-template-columns: 40px 40px 1fr;
    grid-template-rows: 1fr;
    gap: 20px;
    align-items: center;
    /* overflow: hidden; */
    z-index: 1000;
}

#btn-nav,
#btn-edit {
    cursor: pointer;
}

main > header svg {
    pointer-events: none;
}


section {
    position: relative;
    overflow: hidden;
    padding: 20px;
    overflow: auto;
}

nav {
    position: fixed;
    left: 0px;
    top: 50px;
    width: 250px;
    padding: 10px;
    background-color: silver;
    transition: all 300ms ease-in-out;

    border: groove;
    border: ridge;



    display: inline-flex;
    flex-flow: column;
    flex-wrap: wrap;
    gap: 10px;

    z-index: 20;
}

nav.nav-hide {
    position: absolute;
    top: -1000px;
}

nav .btn {
    font-size: 12px;
    user-select: none;
    cursor: pointer;
    box-shadow: 0px 0px 2px black;
    padding: 3px;
    margin: 5px;
}

nav .btn:hover {
    color: whitesmoke;
    background-color: var(--c_header);
}

nav fieldset {
    padding: 5px;
}

nav legend {
    padding: 0px 10px;
    font-weight: 600;
    font-size: 14px;
    color: var(--c_header);
}

section header {
    position: relative;
    padding: 5px 5px 5px 20px;
    user-select: none;
    cursor: pointer;
}


section header.hide {
    display: none;
}

section header::before {
    position: absolute;
    left: 5px;
    content: "▶";
    transform: rotate(90deg);
    transition: 250ms;
}

section header.close::before {
    transform: rotate(0deg);
}

section header.hide::before {
    display: none;
}

section ul {
    padding-left: 30px;
}

header.ebene-0 {
    margin-top: 20px;
    background-color: var(--c_ebene_0);
    border-radius: 0px 0px 0px 10px;
}

header.ebene-1 {
    margin-top: 20px;
    background-color: var(--c_ebene_1);
    border-radius: 0px 0px 0px 10px;
}

header.ebene-0:first-of-type,
header.ebene-1:first-child {
    margin-top: 0px;
}

header.ebene-2 {
    margin-top: 10px;
    border-radius: 5px;
    background-color: var(--c_ebene_2);
}

header.ebene-2:first-child {
    margin-top: 0px;
    border-radius: 0px 0px 5px 5px;
}

div.ebene-0, div.ebene-1, div.ebene-2 {
    overflow: hidden;
    transition: all 500ms linear;
}

div.ebene-0, div.ebene-1 {
    margin-left: 20px;
}

div.accordion-hide {
    height: 0px;
    transition: all 1000ms linear;
}

.ebene-2 .content {
    border: 1px solid silver;
    padding: 5px;
    border-radius: 5px;
    margin: 5px 0px;
}

.ebene-2 .content h4 {
    display: inline-block;
}

.ebene-2 .content footer::before {
    content: "Quellen";
    font-weight: bold;
}

.ebene-2 label {
    padding-right: 10px;
}

.p1 {
    padding-bottom: 10px;
}

.p2 {
    padding-top: 10px;
}

a.t-info {
    display: none;
}

table {
    width: 100%;
    border-collapse: collapse;
}



span.t-info::before {
    content: "ⓘ";
    font-weight: bold;
    cursor: pointer;
}

span.t-info:hover {
    color: var(--c_header);
}

header span.t-info:hover {
    color: var(--c_fore);
}


.ebene-2 .tip::before {
    content: "* ";
}

.ebene-2 footer {
    font-size: 12px;
    border-top: 1px solid gray;
    border-radius: 5px;
    margin-top: 5px;
    padding: 5px;
    color: gray;

    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.tooltip {
    position: absolute;
    width: 300px;
    border-radius: 5px;
    padding: 5px;
    background-color: rgba(255, 255, 255, 0.4);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    box-shadow: 0px 0px 5px black;

    z-index: 2500;
}

.link {
    text-decoration: underline blue;
    cursor: pointer;
}

.link:hover {
    color: blue;
}



.hide {
    opacity: 0;
    visibility: hidden;
    transition: all 500ms linear;
}



@media screen and (max-width: 800px) {
    section {
        grid-template-columns: 100%;
        grid-template-rows: auto 1fr;
    }

    p.t-info {
        display: none;
    }
    a.t-info {
        display: initial;
    }
    
}





@media print {
    body, section {
        overflow: visible;
    }

    main > header {
        display: none;
    }

    section header.hide {
        display: block;
        visibility: inherit;
        opacity: 1;
        /* padding: 5px 5px 5px 20px; */
    }

    section header.ebene-0 {
        page-break-before: always;
    }

    section div.accordion-hide {
        height: auto;
        max-height: max-content;
    }

    .link {
        text-decoration: none;
    }

    .t-info,
    section header::before {
        display: none;
    }

    ::-webkit-scrollbar {
        display: none;
    }
}





