@font-face  {
    font-family: 'lostinsouth';
    src: url('m/lostinsouth.otf');
}

@font-face  {
    font-family: 'calibri';
    src: url('m/calibri.ttf');
}

@font-face {
    font-family: 'architectsdaughter';
    src: url('m/architectsdaughter.ttf');
}

a, .fakeLink {
    color: #2482ff;
    text-decoration: underline;
    cursor: pointer;
}

    body.darkmode a, body.darkmode .fakeLink {
        color: #8AB4F8;
    }

a::after {
    height: 1px;
    bottom: 1px;
}

.extern-icon {
    width: 15px;
    height: 15px;
    margin-left: 6px;
    vertical-align: middle;
}

body {
    font-family: "calibri";
    font-size: 16px;
    background-color: #fef5e9;
    padding-bottom: 5px;
}

    body.darkmode {
        background-color: #15202a;
        color: white;
    }

h2:not(#idee h2) {
    margin: 100px 0 -7px 10px;
}

h2, h3 {
    font-family: "architectsdaughter";
}

h3 {
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    user-select: none; 
    -webkit-user-select: none;
}

h3::after {
    height: 1px;
    bottom: 1px;
}

.h3-icon {
    width: 15px;
    height: 15px;
    margin-left: 6px;
    vertical-align: middle;
}

h3, main div > div {
    scroll-margin-top: 60px;
}

ul, ol {
    padding-left: 20px;
}

header {
    display: flex;
    margin-left: 20%;
    margin-top: 5%;
    position: relative;
    width: 60%;
}

header > img {
    pointer-events: none;
    width: 55%;
    height: auto;
    margin-bottom: 5%;
}

header div > p {
    width: 35%;
    text-align: right;
    position: absolute;
    right: 0;  
    line-height: 1.5rem;  
    margin-top: 50px;
}

#anfang {
    display: flex;
    position: relative;  
    margin-top: 200px;
    width: 30vw;
}

#anfang img:nth-of-type(1) {
    padding-top: 20px;
    width: auto;
    height: 130px;
    position: absolute; 
}

#anfang img:nth-of-type(2) {
    position: absolute;
    top: 130px; 
    right: 0;
    width: 60%;
    height: auto;
}

nav {
    margin-left: 10%;
    margin-top: 30%;
}

nav ul {
    display: block;
    gap: 20px;
    margin-top: 0px;
}

nav ul li {
    list-style-type: ;
    font-size: 18px;
}        

nav a {
    color: black;
    text-decoration: none;
}

body.darkmode nav a {
    color: white;
}

main {
    width: 55%;
    margin-left: 20%;
    line-height: 1.5rem;
}

#idee h2 {
    margin-top: 60px;
}

#muffins img:nth-of-type(1):not(a img, h3 img), 
#kuchen img:nth-of-type(1):not(#fremde-apps img, #domainblock img, a img, h3 img),
#torte img:nth-of-type(1):not(a img, h3 img) {
    height: 5px;
    width: auto;
}

#muffins h3, #kuchen h3, #torte h3 {
    margin-top: 12px;
}

main > div > div {
    border-left: 1px solid black;
    padding-left: 20px;
    margin-bottom: 50px;
}

    body.darkmode main > div > div {
        border-left: 1px solid white;
    }
    
.tabelle {
    border-collapse: collapse;
}

.tabelle tr td {
    border: 1px solid black;
    padding: 5px 10px;
    vertical-align: top;
}

body.darkmode .tabelle tr td {
    border: 1px solid white;
}

.tabelle tr:nth-of-type(1) td {
    border-top: none;
    border: 1px solid white;
    /*font-weight: bold;*/
    background-color: #261819;
    color: white;
}

.tabelle tr:last-of-type td {
    border-bottom: none;
}

.tabelle tr td:nth-of-type(1) {
    border-left: none;
}

.tabelle tr td:last-of-type {
    border-right: none;
}
    
#open-source ul:not(.bedingungen) li {
    margin-top: 15px;
}
    
#dns div p {
    margin-bottom: 0;
}

#dns div ol {
    margin-top: 5px;
}

main > div > div p:nth-last-of-type(2), 
main > div > div p:last-of-type {
    margin-top: 25px;
}

main > div > div ul:last-of-type {
    margin-top: -10px;
}

#fremde-apps, #domainblock {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
    background-color: rgba(0, 0, 0, 0.9);
    color: white;
    z-index: 1;
    padding: 10%;
    padding-top: 10%;
    overflow-y: scroll;
    overscroll-behavior: contain;
    box-sizing: border-box;
}

#fremde-apps img, #domainblock > img {
    width: 30px;
    height: 30px;
    position: absolute;
    top: 5%;
    left: 10%;
    cursor: pointer;
}

main > :nth-last-child(2) {
    margin-top: 80px;
    font-family: "architectsdaughter";
    color: grey;
    text-align: right;
}

main > :last-child {
    color: grey;
    text-align: right;
}

main > :last-child a {
    color: grey;
}

.tooltip {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.tooltip::before {
    content: "";
    display: inline-block;
    width: 15px;
    height: 15px;
    margin-top: -3px;
    background: url("b/tooltip.png") center/contain no-repeat;
    vertical-align: middle;
}

body.darkmode .tooltip::before {
    background-image: url("b/tooltip-dark.png");
}

.tooltip-content {
    color: grey;
    display: none;
    margin-left: 6px;
}

.tooltip.show .tooltip-content {
    display: inline;
}

.tooltip a {
    color: grey;
}

.bedingungen {
    list-style-type: none;
    padding-left: 10px;
}
   
.bedingungen li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-top: 10px;
}

.bedingungen li:before {
    content: "";
    background-image: url("b/checkmark.png");
    background-repeat: none;
    background-size: contain;
    display: block;
    flex: 0 0 1rem;
    height: 1rem;
    width: 1rem;
}

body.darkmode .bedingungen li:before {
    background-image: url("b/checkmark-dark.png");
}

.bedingungen li span {
    display: block;
}

@media (max-width: 768px) {
    header {
        display: block;
        margin-left: 5%;
        margin-top: 30px;
        width: 90%;
    }

    header > img {
        width: 100%;
        height: auto;
    }

    header div > p {
        width: auto;
        text-align: left;
        margin-top: 20px;
        margin-left: 0;
    }
    
    main {
        width: 90%;
        margin: 10% 0 0 5%;
    }

    #idee h2 {
        margin-top: 150px;
    }
    
    #anfang {
        top: 170px;
        margin-top: 0;
        width: 100%;
        height: 400px;
    }
    
    #anfang img:nth-of-type(1) {
        width: auto;
        position: static;
        height: 110px; 
        margin-top: 50px;
    }

    #anfang img:nth-of-type(2) {
        position: absolute;
        right: 0;
        top: 150px;
        width: 50vw;
        height: auto;
    }

    nav {
        left: 0px;
        top: 100px;
        position: absolute;
    }

    h2:not(#idee h2) {
        margin: 60px 0 -7px 10px;
    }

    #fremde-apps, #domainblock {
        padding-top: 20%;
}
