/* FARBEN 
   rot: #fb4541 
*/

/* Fonts */
    @font-face {
        font-family: 'Roboto';
        src: url('../fonts/Roboto-Regular.ttf') format('truetype');
        font-weight: normal;
        font-style: normal;
    }
    @font-face {
        font-family: 'Roboto';
        src: url('../fonts/Roboto-Bold.ttf') format('truetype');
        font-weight: bold;
        font-style: normal;
    }
/* --- */

/* Allgemein */
    *{
        font-size: 18px;
        font-family: Roboto, Arial, Helvetica, sans-serif;
        color: #333333;
    }

    h1{
        font-size: 7.9vw;
        margin-top: 0;
    }

    h2{
        font-size: 2rem;
        color: #fb4541;
    }

    h3{
        font-size: 1.2rem;
        text-decoration: underline;
    }

    h1, h2, h3{
        font-weight: 700;
    }

    #content hr{
        border: 1px solid #fb4441;
        width: 100%;
        margin: .75em auto;
    }

    .title{
        margin: 1em 0;
    }

    .kapitel{
        margin-top: 8rem;
    }

    .part{
        margin-top: 2rem;
    }

    .kapitel + .part{
        margin-top: 0;
    }

    .begriff{
        font-weight: bold;
    }

    .definition ul{
        padding-left: 1em;
    }

    .definition li::marker{
        color: #fb4541;
    }
/* --- */

/* Rahmen um Body */

    body{
        padding: 1em;
        background-color: #333333;
    }

    body > div{
        background-color: white;
        border-radius: 27px;
        padding: 2em;
        height: 95vh;
        overflow-y: scroll;
    }

    #content{
        padding-bottom: 8rem;
        scroll-behavior: smooth;
    }

    #content *{
        z-index: 2;
    }

/* --- */

/* Navigation */

    #nav{
        padding-top: 4rem;
        width: 100%;
    }

    #nav ul{
        display: flex;
        justify-content: space-between;
        padding: 0;
        flex-wrap: wrap;
    }

    #nav ul li{
        display: inline-block;
    }

    #nav ul li a{
        text-decoration: none;
        color: #fb4541;
        font-size: 1rem;
        font-weight: 700;
        border-bottom: 0px solid #fb4541;
        transition: .1s all;
    }

    #nav ul li a:hover{
        border-bottom: 2px solid #fb4541;
        transition: .1s all;
    }

    @media (max-width: 767px){
        #nav ul{
            justify-content: space-evenly;
        }

        #nav ul li a{
            padding: 0 .5em;
        }
    }

/* --- */

/* Scroll to top */

    #scroll-up{
        border-radius: 5px;
        display: block;
        box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
        background-color: white;
        position: absolute;
        bottom: 3rem;
        right: 3rem;
        transition: .2s all;
        z-index: 9999;
        opacity: 1;
    }

    #scroll-up a{
        display: inline-block;
        text-decoration: none;
        padding: 1rem;
    }

    #scroll-up a svg{
        height: 36px;
        width: 36px;
        padding: 0;
        fill: #fb4541;
        transition: .2s all;
    }

    #scroll-up:hover{
        box-shadow: 0 3px 6px rgb(251, 69, 65, 0.5);
        background-color: #fb4541;
    }

    #scroll-up:hover a svg{
        fill: white;
        transition: .2s all;
    }

    #scroll-up.hide{
        opacity: 0;
        transition: .2s all;
    }

    #scroll-up.hide *{
        display: none;
    }

/* --- */