@font-face {
    font-family: 'Inter';
    src: url(https://tuxproject.de/blog/wp-content/themes/f2/InterVariable.woff2) format('woff2-variations'), url('https://tuxproject.de/blog/wp-content/themes/f2/Inter-Regular.woff2') format('woff2');
}

* {
    box-sizing: border-box
}

main a {
    text-decoration: underline
}

a:link,a:visited {
    color: #00f
}

a:hover {
    color: #006400
}

nav #randomgfx {
    position: fixed;
    left: 5px;
    bottom: 5px;
}

nav input[type=checkbox] {
    display: none
}

nav input[type=checkbox]:checked+li {
    height: auto
}

nav ul,nav ul label.title,nav ul li,nav ul li label~a {
    display: block;
    width: 100%
}

nav ul {
    padding-inline-start: 12px
}

nav ul li.navhead {
    color: navy;
    text-decoration: underline;
}

nav ul li a:link {
    padding: 4px 0
}

nav ul li a:hover {
    background-color: #ffffe0
}

nav ul li span.nav-link-explain {
    color: #a9a9a9;
    font-size: .9em
}

nav ul label {
    height: 1.5em;
    margin-top: 5px
}

nav ul li {
    height: 1.5em;
    overflow: hidden;
    transition: all .3s ease
}

nav label.title {
    cursor: pointer;
    transition: all .3s ease
}

nav label.title:hover {
    color: #8b0000;
    text-decoration: underline
}

nav {
    align-items: flex-start;
    background: #fff;
    color: red;
    display: flex;
    font-family: Inter;
    font-size: 14px;
    font-weight: 600;
    height: 90%;
    overflow-y: auto;
    position: absolute;
    left: 0;
    text-align: left
}

main {
    font-family: Inter,'Lucida Grande',Verdana,sans-serif;
    font-size: 15px;
    height: 100%;
    hyphens: auto;
    left: 290px;
    line-height: 1.5em;
    max-width: calc(100% - 290px);
    overflow: auto;
    padding: 10px 25px 10px 0;
    position: fixed;
    text-align: justify
}

.subtext {
    margin-left: 1.5em;
    padding: 0 1em 1em 0
}

.headlink {
    margin-left: .3em
}

.box {
    background: #fff;
    border: 2px solid #000;
    margin-bottom: 10px;
    padding: 0;
    width: 100%
}

.box b {
    background: #00438e;
    color: #90ee90;
    display: block;
    padding: .2em 0 .2em .2em;
}

.box b + .projectbox, .subtext:nth-child(3) {
    padding-top: 10px;
}

.box .projectbox {
    display: flex;
}

.box .projectbox .projectlang {
    border-right: 1px solid black;
    color: #888888;
    max-width: 8em;
    min-width: 8em;
    padding: 5px;
}

.entry {
    padding-bottom: 5px!important;
    padding-top: 0!important
}

.introbox {
    background: #ffffe0;
    display: block;
    font-style: italic;
    margin-bottom: 1em;
    padding: 1em
}

.media,form b {
    display: none!important
}

@media only screen and (max-width:800px) {
    main,nav {
        left: 0;
        width: 100%;
        position: relative
    }

    nav {
        align-items: flex-start
    }

    nav #randomgfx {
        display: none;
    }

    nav ul {
        float: left;
        text-align: center
    }

    nav ul li {
        display: inline-block;
        float: left
    }

    main {
        max-width: 100%;
        padding: 10px
    }
}

@media (prefers-color-scheme:dark) {
    * {
        color: lightred
    }

    .box,main p {
        color: #fff
    }

    body, nav, .box, .box .subtext {
        background-color: black;
    }

    nav ul li a:hover {
        background-color: navy;
        color: #fff
    }

    nav ul li.navhead {
        color: lightblue;
    }

    a:link,a:visited {
        color: #ff0
    }

    .introbox b {
        background: #ffffe0;
    }

    .introbox a:link,.introbox a:visited {
        background: #ffffe0;
        color: #00f
    }
}

/* Linktree: Nur den Kontaktkasten anzeigen */

body.linktree nav,
body.linktree main .box,
body.linktree main p,
body.linktree main .introbox
{ display: none; }

body.linktree main {
    left: 10px;
}

body.linktree main .box:last-child {
    border: none;
    display: inline !important;
}

body.linktree main .box:last-child b {
    visibility: hidden;
}

body.linktree main .box:last-child b:after {
    visibility: visible;
    color: navy;
    border: 4px dotted red;
    padding: 5px;
    content: "link tree";
}
