﻿/* Allgemein gültig */
html {
    scroll-padding-top: 80px;
}

body {
    color: rgba(0,0,0,0.87);
    overflow-y: scroll;
}

img {
    max-width: 100%;
}

    img.dialog {
        border: 1px solid lightgray;
        border-radius: 5px;
    }

        img.dialog.cut-top {
            border-top-left-radius: 0;
            border-top-right-radius: 0;
        }

        img.dialog.cut-bottom {
            border-bottom-left-radius: 0;
            border-bottom-right-radius: 0;
        }

    img.app {
        border: 1px solid lightgray;
        border-top: none;
    }

        img.app[src$="gif"] {
            border-bottom-left-radius: 9px;
            border-bottom-right-radius: 9px;
        }

.app-container {
    position: relative;
    width: fit-content;
}

    .app-container::after {
        content: "";
        position: absolute;
        /*background: url('/Settings/Logo');*/
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        background-color: #27282A;
        left: 40%;
        right: 40%;
        top: 1%;
        height: 8%;
    }

div.image-wrapper {
    overflow: hidden;
    width: max-content;
    max-width: 100%;
}

.border {
    border: 1px solid lightgray;
}

.table-wrapper {
    overflow-x: auto;
}

code, code * {
    font-family: monospace;
}

    code.function {
        color: #2B91AF;
    }

    code.monaco {
        display: none;
        background-color: #d3d3df40;
        padding: 0px 1.5em;
        overflow: hidden;
        overflow-x: auto;
    }

a {
    color: var(--accent-color);
    text-decoration: none;
}

h1, h2, h5 {
    color: var(--accent-color-dark);
}

h2 {
    font-size: 1.17em;
    margin-block-start: 2.6em;
    margin-block-end: 1em;
}

/* Layout */
header {
    position: fixed;
    z-index: 10;
    top: 0px;
    left: 0px;
    right: 0px;
    height: 60px;
    background: white;
    box-sizing: border-box;
    border-bottom: thin solid rgb(229, 234, 242);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0px 40px;
}

    header #menu-link {
        font-size: 24px;
        padding: 6px;
        margin-top: 1px;
        cursor: pointer;
        color: rgb(97, 109, 138);
    }

        header #menu-link:hover {
            color: var(--accent-color);
        }

    header #header-caption {
        font-size: 20px;
        color: #444;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    header #spellcheck {
        display: flex;
        font-size: smaller;
        padding-right: 20px;
    }

nav {
    position: fixed;
    top: 60px;
    left: 0px;
    bottom: 0px;
    width: 280px;
    overflow: auto;
    font-size: 15px;
    box-sizing: border-box;
    border-right: thin solid rgb(229, 234, 242);
}

    nav a {
        display: flex;
        align-items: center;
        color: #444;
        text-decoration: none;
        white-space: pre-wrap;
    }

        nav a:hover {
            color: var(--accent-color);
        }

    nav ul {
        margin: 0px;
    }

    nav > ul {
        padding: 10px; /* Oberste Liste */
    }

    nav a.active {
        font-weight: bold;
        color: var(--accent-color);
    }

    nav a.btn-toggle::before {
        display: inline-block;
        flex-shrink: 0;
        width: 24px;
        content: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='rgba%280,0,0,.5%29' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M5 14l6-6-6-6'/%3e%3c/svg%3e");
        transform-origin: .5em 50%;
        transform: scale(0.6);
    }

    nav a:not(.btn-toggle) {
        margin-left: 24px;
    }

    nav a[href*="construction"]::after {
        font-family: "Font Awesome 5 Pro";
        font-weight: 400;
        content: "\f85d";
        color: orange;
        margin-left: 0.3em;
    }

    nav li {
        list-style: none;
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow: hidden;
        padding: 6px;
    }

        nav li.expanded > .btn-toggle::before {
            transform: scale(0.6) rotate(90deg) translateY(2px);
        }

        nav li ul {
            display: none;
            padding-left: 24px;
            padding-top: 6px;
        }

        nav li.expanded > ul {
            display: block;
        }

main {
    position: absolute;
    height: max-content;
    top: 60px;
    left: 280px;
    bottom: 0px;
    right: 0px;
    padding: 40px 75px;
    max-width: 950px;
}

    main > h1:first-child {
        margin-block-start: 0;
    }

    main li {
        margin: 6px 0px;
    }

        main li img {
            margin-bottom: 0.8em;
        }

.article-nav {
    clear: right;
    display: flex;
    justify-content: space-between;
    margin-top: 3em;
    padding-top: 2em;
    border-top: 1px solid lightgray;
}

    .article-nav a {
        display: flex;
        align-items: center;
        gap: 1em;
    }

    .article-nav .far {
        font-size: 24px;
    }

    .article-nav .nav-info {
        font-size: smaller;
        color: lightgray;
        margin-bottom: 0.3em;
    }

    .article-nav > div:last-child a > div {
        text-align: right;
    }

.heading-link-wrapper {
    margin-left: -30px;
    position: relative;
}

    .heading-link-wrapper:hover a::before {
        font-family: "Font Awesome 5 Pro";
        font-weight: 400;
        content: "\f0c1";
        position: absolute;
        padding: 3px;
    }

    .heading-link-wrapper h1, .heading-link-wrapper h2, .heading-link-wrapper h3,
    .heading-link-wrapper h4, .heading-link-wrapper h5, .heading-link-wrapper h6 {
        margin-left: 30px;
    }

    .heading-link-wrapper .copy-hint {
        top: -15px;
        margin-left: 30px;
    }

/* Suche */
#search {
    top: 0px;
    display: flex;
    flex-direction: column;
    position: relative;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
    align-self: flex-start;
    margin-top: 12px;
}

    #search > div:first-child {
        position: relative;
    }

    #search #search-input {
        padding: 8px 16px;
        padding-left: 46px;
        border: 1px solid lightgray;
        border-radius: 50px;
        outline: none;
    }

        #search #search-input:focus {
            border-color: var(--accent-color);
        }

        #search #search-input + span::before {
            font-family: "Font Awesome 5 Pro";
            font-weight: 400;
            content: "\f002";
            position: absolute;
            left: 15px;
            top: 9px;
            color: gray;
            pointer-events: none;
        }

        #search #search-input:focus + span::before {
            color: var(--accent-color);
        }

    #search #search-result {
        display: none;
        padding: 1em;
        margin-top: 5px;
        width: 400px;
        max-height: 220px;
        overflow-y: auto;
        background: white;
        border: 1px solid rgb(229, 234, 242);
    }

        #search #search-result ul {
            margin: 0;
            padding: 0;
            list-style-type: none;
        }

            #search #search-result ul li {
                padding: 3px 0px;
                font-size: smaller;
            }

body.search-active #search #search-result {
    display: block;
}

body.search-active::after {
    content: "";
    position: fixed;
    display: block;
    left: 0px;
    top: 0px;
    right: 0px;
    bottom: 0px;
    background-color: black;
    opacity: 0.3;
    z-index: 9;
}

body.search-active main, body.search-active nav {
    filter: blur(2px);
}

/* Responsive Design */
@media (min-width: 768px) {
    #menu-link {
        display: none;
    }
}

@media (max-width: 768px) {
    header {
        padding-left: 14px;
        padding-right: 20px;
    }

    nav {
        left: -280px;
    }

    .menu-active nav {
        left: 0px;
        z-index: 10;
        background-color: white;
        transition: left 200ms;
    }

    .menu-active main::after {
        content: "";
        position: absolute;
        display: block;
        left: 0px;
        top: 0px;
        right: 0px;
        bottom: 0px;
        background-color: black;
        opacity: 0.3;
        z-index: 9;
    }

    main {
        left: 0px;
        padding: 20px;
    }
}

@media (max-width: 580px) {
    header #search > * {
        display: none;
    }
}

/* Zur Verwendung im Content */
.table td, th {
    padding: 5px;
}

.key-table td, th {
    padding: 5px;
}

    .key-table td:first-of-type:not([colspan]) {
        font-weight: bolder;
        text-align: right;
        padding-right: 10px;
        vertical-align: top;
        white-space: nowrap;
    }

    .key-table td[colspan="2"] {
        color: var(--accent-color-dark);
        text-align: center;
    }

.grid-lines-h {
    border-collapse: collapse;
}

    .grid-lines-h tr {
        border-top: 1px solid lightgray;
    }

    .grid-lines-h tr:last-of-type {
        border-bottom: 1px solid lightgray;
    }

.hint {
    margin: 0px 20px;
    margin-block-start: 1.6em;
    border-left: 4px rgb(52, 109, 219) solid;
    padding: 12px;
    padding-left: 50px;
    background: rgb(236, 238, 246);
}

    .hint::before {
        position: absolute;
        margin-left: -30px;
        font-family: "Font Awesome 5 Pro";
        font-weight: 400;
        content: "\f05a";
        color: rgb(52, 109, 219);
    }

    .hint.attention {
        border-left-color: rgb(211, 61, 61);
    }

        .hint.attention::before {
            content: "\f071";
            color: rgb(211, 61, 61);
        }

    .hint.warn {
        border-left-color: orange;
    }

        .hint.warn::before {
            content: "\f071";
            color: orange;
        }

.check::before {
    font-family: "Font Awesome 5 Pro";
    font-weight: 400;
    content: "\f00c";
    color: green;
}

li.check {
    list-style: none;
    margin-left: -20px;
}

    li.check::before {
        margin-right: 6px;
    }

.float-right {
    float: right;
    margin-left: 1.4em;
    margin-bottom: 0.7em;
}

a.goto {
    margin-left: 20px;
}

    a.goto::before {
        position: absolute;
        margin-left: -20px;
        font-family: "Font Awesome 5 Pro";
        font-weight: 400;
        content: "\f061";
    }

.copy-hint {
    position: absolute;
    font-family: 'Roboto';
    font-weight: bold;
    font-size: smaller;
    white-space: nowrap;
    top: -1px;
    margin-left: 46px;
    color: darkgray;
    opacity: 0;
    transform: translateY(0);
    transition: opacity 1s ease, transform 1s ease;
}

code.bash {
    position: relative;
    display: inline-block;
    color: rgb(255, 255, 255);
    background-color: rgba(51, 51, 51, 0.85);
    border-radius: 4px;
    padding: .6rem 1.5rem;
    font-family: Consolas, "Lucida Console", monospace;
    line-height: 18px;
    font-size: 14px;
}

    code.bash .copy-code {
        position: absolute;
        outline: none;
        border: none;
        cursor: pointer;
        right: -13px;
        top: -12px;
        width: 28px;
        height: 28px;
        border-radius: 15px;
        font-size: 16px;
        color: white;
        background: var(--accent-color-dark);
    }
        code.bash .copy-code:hover {
            background: var(--accent-color);
        }

    code.bash .copy-hint {
        top: -1px;
        margin-left: 46px;
    }

.tile {
    box-shadow: rgb(0 0 0 / 20%) 0 3px 3px -2px, rgb(0 0 0 / 14%) 0 3px 4px 0, rgb(0 0 0 / 12%) 0 1px 8px 0;
    border-radius: 5px;
}

.collapsible {
    margin-left: 20px;
    overflow: hidden;
    height: 0;
    transition: height 0.3s ease;
}

.collapsible-toggler {
    cursor: pointer;
    font-size: smaller;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--accent-color);
}