/*  Typo
----------------------------------------------- */

a:link, a:visited {
    text-decoration: underline;
    color: #EC4413;
}

a:active {
    text-decoration: underline;
}

a:hover {
    text-decoration: none;
}

h1 {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.2;
}

h2 {
    font-size: 30px;
    font-weight: 700;
    line-height: 1.3;
}

p {
    font-size: 18px;
    line-height: 1.7;
}


/*  Grundlayout
----------------------------------------------- */

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
}

body {
    background: #999999;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 18px;
    line-height: 1.7;
}

#container {
    width: 100%;
    max-width: none;
    margin: 0;
    background: #cccccc;
}


/*  Header / Logo
----------------------------------------------- */

#header {
    display: none;
}

#logo {
    background: #999999;
    padding: 20px;
    text-align: center;
}

#logo img {
    max-width: 100%;
    height: auto;
    display: inline-block;
}


/*  Inhalt + Navigation
----------------------------------------------- */

#layout {
    display: flex;
    align-items: flex-start;
    width: 100%;
    background: #cccccc;
}

#content {
    flex: 1;
    padding: 17px 35px 17px 35px;
    min-width: 0;
    background: #cccccc;
}

#navigation {
    width: 260px;
    padding: 0;
    flex-shrink: 0;
    background: #eeeeee;
    border-left: 6px solid #304BFF;
    min-height: 100vh;
}

#navigation-inner {
    position: sticky;
    top: 0;
    background: #eeeeee;
}

#sidebar {
    padding: 35px 17px 17px 17px;
    background: #999999;
    text-align: center;
}


/*  Footer
----------------------------------------------- */

#footer {
    clear: both;
    margin-top: 0;
    background: #999999 url(footer-bg.gif) repeat-x top;
    min-height: 65px;
    height: auto;
}

#footer .gutter {
    height: auto;
    padding: 35px 15px 20px 90px;
}


/*  Navigation
----------------------------------------------- */

ul.mainNav1,
ul.mainNav2,
ul.mainNav3 {
    margin: 0;
    padding: 0;
}

ul.mainNav1 li,
ul.mainNav2 li,
ul.mainNav3 li {
    display: block;
    margin: 0;
    padding: 0;
}

ul.mainNav1 li a,
ul.mainNav2 li a,
ul.mainNav3 li a {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    display: block;
    color: #000;
    border-bottom: none;
    padding: 15px 20px;
    text-transform: uppercase;
}

ul.mainNav2 li a {
    padding-left: 30px;
}

ul.mainNav3 li a {
    padding-left: 40px;
}

ul.mainNav1 a:hover,
ul.mainNav2 a:hover,
ul.mainNav3 a:hover {
    background: #d9d9d9;
    color: #0000ff;
}

ul.mainNav1 a.current,
ul.mainNav2 a.current,
ul.mainNav3 a.current,
ul.mainNav1 li.current a,
ul.mainNav2 li.current a,
ul.mainNav3 li.current a,
ul.mainNav1 li.active a,
ul.mainNav2 li.active a,
ul.mainNav3 li.active a {
    background: #cfe2f3;
    color: #0000ff;
    font-weight: bold;
}


/*  Mobile Ansicht
----------------------------------------------- */

@media (max-width: 767px) {

    body {
        padding-top: 0;
        background: #999999;
        font-size: 17px;
    }

    #container {
        width: 100%;
        background: #cccccc;
    }

    #layout {
        display: flex;
        flex-direction: column;
        background: #cccccc;
    }

    #navigation {
        order: 1;
        width: 100%;
        min-height: 0;
        border-left: none;
        border-top: 5px solid #304BFF;
        background: #eeeeee;
    }

    #navigation-inner {
        position: static;
        background: #eeeeee;
    }

    #content {
        order: 2;
        width: 100%;
        padding: 15px;
        background: #cccccc;
    }

    #sidebar {
        padding: 15px;
        background: #999999;
    }

    h1 {
        font-size: 34px;
    }

    h2 {
        font-size: 26px;
    }

    p {
        font-size: 17px;
        line-height: 1.7;
    }

    ul.mainNav1 li a,
    ul.mainNav2 li a,
    ul.mainNav3 li a {
        font-size: 17px;
        padding: 12px 15px;
    }

    img {
        max-width: 100%;
        height: auto;
    }

    #footer {
        height: auto;
        min-height: 65px;
        background-color: #999999;
    }

    #footer .gutter {
        height: auto;
        padding: 20px 15px;
    }
}


/* Footer Links besser lesbar
----------------------------------------------- */

#footer a:link,
#footer a:visited,
#sidebar a:link,
#sidebar a:visited {
    color: #0033cc;
    text-decoration: underline;
    font-weight: bold;
}

#footer a:hover,
#sidebar a:hover {
    color: #001a66;
}


/* Mobile Tabellen als Karten darstellen
----------------------------------------------- */

@media (max-width: 767px) {

    #content table {
        width: 100%;
        border-collapse: collapse;
        margin-bottom: 20px;
    }

    #content table,
    #content thead,
    #content tbody,
    #content tr,
    #content th,
    #content td {
        display: block;
        width: 100%;
    }

    #content thead {
        display: none;
    }

    #content tr {
        margin-bottom: 16px;
        padding: 12px;
        background: #eeeeee;
        border: 1px solid #999999;
    }

    #content td,
    #content th {
        padding: 7px 0;
        border: none;
        font-size: 15px;
        line-height: 1.5;
        text-align: left;
    }

    #content td:empty,
    #content th:empty {
        display: none;
    }

    #content td br {
        display: none;
    }
}