/**
 * Body CSS
 */

html,
body {
    height: 100%;
    background-color: #eee;
    font-size: 1em;
}

html,
body,
input,
textarea,
buttons {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.004);
}


/**
 * Layout CSS
 */

#header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 2;
    /* transition: left 0.2s; */
    transition: opacity 0.3s ease, visibility 0.3s ease; /* Für sanfte Animationen */
}

#sidedrawer {
    position: fixed;
    top: 0;
    bottom: 0;
    width: 230px;
    left: -230px;
    overflow: auto;
    z-index: 2;
    background-color: #fff;
    transition: transform 0.2s;
}

#content-wrapper {
    min-height: 100%;
    margin-left: 0px;
    transition: margin-left 0.2s;

    /* sticky bottom */
    box-sizing: border-box;
    margin-bottom: -20px;
    padding-bottom: 20px;
}

#footer {
    box-sizing: border-box;
    height: 20px;
    margin-left: 0px;
    transition: margin-left 0.2s;
}

.fit-content {
    width: fit-content;
    float: left;
}

@media (min-width: 768px) {
    #header {
        left: 230px;
    }

    #sidedrawer {
        transform: translate(230px);
    }

    #content-wrapper {
        margin-left: 230px;
    }

    #footer {
        margin-left: 230px;
    }

    body.hide-sidedrawer #header {
        left: 0;
    }

    body.hide-sidedrawer #sidedrawer {
        transform: translate(0px);
    }

    body.hide-sidedrawer #content-wrapper {
        margin-left: 0;
    }

    body.hide-sidedrawer #footer {
        margin-left: 0;
    }
}


/**
 * Toggle Sidedrawer
 */
#sidedrawer.active {
    transform: translate(230px);
}


/**
 * Header CSS
 */

.sidedrawer-toggle {
    color: #fff;
    cursor: pointer;
    font-size: 1.5em;
    line-height: 1em;
    margin-right: 1em;
}

.sidedrawer-toggle:hover {
    color: #fff;
    text-decoration: none;
}


/**
 * Sidedrawer CSS
 */

#sidedrawer-brand {
    padding-left: 1em;
}

#sidedrawer ul {
    list-style: none;
    padding-left: 1em;
}

#sidedrawer > ul {
    padding-left: 0px;
}

#sidedrawer > ul > li {
    line-height: 2em;
}

#sidedrawer > ul > li:first-child {
    padding-top: 15px;
}

#sidedrawer ul li a {
    font-size: 1.2em;
}

#sidedrawer strong {
    display: block;
    padding: 15px 22px;
    cursor: pointer;
}

#sidedrawer strong:hover {
    background-color: #E0E0E0;
}

#sidedrawer strong + ul > li {
    padding: 6px 0px;
}


/**
 * Footer CSS
 */

#footer {
    background-color: #0288D1;
    color: #fff;
}

#footer a {
    color: #fff;
    text-decoration: underline;
}