* {
    font-family: arial;
    font-size:100%;
    font-style:normal;
    font-variant:normal;
    font-weight:normal;
    color: #1d1d1b;
}

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

body {
    display: flex;
    flex-direction: column;
}

header {
    display: flex;
    flex-direction: column;
    flex: 0 0 auto;
    padding: 0.5em 1em 0.5em 1em;
    border-bottom: 2px solid #78b41e;
}

#contentwrapper {
    display: flex;
    flex: 1 0 auto;
    flex-direction: column;
}

footer {
    display: flex;
    flex: 0 1 auto;
    justify-content: space-between;
    font-size: 0.6em;
    border-top: 2px solid #78b41e;
}

#footer_right {
    text-align: right;
}

#logo img {
    margin-right: 0.5em;
}

#status {
    text-align: center;
}

#status div {
    background-color: #f9899b;
    border: 2px solid #f9667e;
}

#user {
    text-align: center;
    margin: 0.3em 0 0.3em 0;
}

#isadmin {
    color: #f00;
}

nav {
    background-color: #eceded;
    text-align: center;
}

nav a.active {
    background-color: #fff;
}

nav a:not(:first-child) {
    display: none;
}

nav.opened a:not(:first-child) {
    display: block;
}

nav a{
    display: block;
}

nav a:link {
    text-decoration: none;
}

#messages div {
    margin: 0.5em;
    padding: 0.5em 1em 0.5em 1em;
}

.success {
    background-color: #b0ec55;
    border: 2px solid #78b41e;
}

.error {
    background-color: #f9899b;
    border: 2px solid #f9667e;
}

.notice {
    background-color: #f9d589;
    border: 2px solid #9a762a;
}

#content {
    flex: 1;
    padding: 0.5em;
}

#content > div {
}

a:hover {
    color: #f49e00;
}

a:active {
    color: #f49e00;
} 

h1 {
    font-size: 1.5em;
    font-weight: bold;
}

h2 {
    font-size: 1.2em;
    font-weight: bold;
}

h3 {
    font-weight: bold;
    margin-bottom: 0.2em;
}

.inaktiv {
    background-color: #f49e00 !important;
}

.inaktiv a:hover {
    color: #fff;
}

.links {
    text-align: left;
}

.rechts {
    text-align: right;
}

.mitte {
    text-align: center;
}

.aktion > a {
    margin: 0 0.1em 0 0.1em;
}

.formcontainer {
    display: inline-block;
}

fieldset, .notafieldset {
    border: 0;
    margin: 0.4em;
}

legend {
    font-size: 1.5em;
    font-weight: bold;
    border-bottom: 2px solid #78b41e;
}

.inputcontainer {
    width: 100%;
    margin-top: 0.4em;
    margin-bottom: 0.4em;
}

input {
    padding: 0.3em;
}

textarea {
    width: 100%;
    height: 10em;
    padding: 0.3em;
}

.errmsg p {
    color: #f00;
}

option {
    width: 100%;
    height: 1.5em;
    padding: 0.3em;
}

label {
    display: block;
    font-weight: bold;
}

.checkboxcontainer {
    margin-top: 0.4em;
    margin-bottom: 0.4em;
}

.checkboxcontainer label {
    display: inline-block;
    width: 12em;
}

.checkboxcontainer input {
    width: auto;
}

.invalid input {
    border: 1px solid #f00;
}

.buttons {
    padding: 0;
    border: 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.6em;
}

tr {
    border-bottom: 1px solid #000;
}

.monat {
    padding: 0.5em 0 0.5em 0;
    font-size: 2em;
    font-weight: bold;
}

th {
    background-color: #5e5e5e;
    color: #fff;
    white-space: nowrap;
    padding-right: 0.3em;
}

tbody tr:nth-child(even) {
    background-color: #eceded;
}

td {
    padding: 0.2em;
    vertical-align: middle;
    white-space: nowrap;
}

tbody tr:hover {
    background-color: #78b41e;
}

tbody .inaktiv:hover {
    background-color: #78b41e !important;
}

hr {
    border: 1px solid #78b41e;
}

@media only screen and (orientation: landscape) {
    label {
        display: inline-block;
        width: 12em;
    }
    table {
        font-size: 1em;
    }
}

@media only screen and (min-width: 700px) {
    /*
     * Header auseinanderziehen
     */
    header {
        flex-direction: row;
        justify-content: space-between;
    }

    #status div {
        padding: 0.2em;
    }

    #user {
        text-align: right;
    }
}

@media only screen and (min-width: 1100px) {
    /*
     * Menü auf die linke Bildschirmhälfte bringen
     */
    #contentwrapper {
        flex-direction: row;
    }

    nav {
        text-align: right;
        border-right: 2px solid #78b41e;
    }

    nav a {
        margin-top: 1em;
        padding: 0.2em;
    }

    nav a:first-child {
        display: none;
    }

    nav a:not(:first-child) {
        display: block;
    }
}

/*
 *
 * Account
 *
 */
    #bildcontainer img {
        max-width: 400px;
    }

    #kontaktliste {
        margin-bottom: 2em;
    }

    .warnungleicht {
        color: #f49e00;
    }

    .warnungschwer {
        color: #f00;
    }

    @media only screen and (min-width: 1400px) {
        #benutzerdetails {
            display: flex;
            flex-wrap: wrap;
        }

        #benutzerdetails fieldset {
            padding: 1em;
        }
    }

    /*
     *
     * Dateien
     *
     */

    #upload {
        border: 1px solid #1d1d1b;
    }
    #upload .buttons {
        text-align: right;
    }
    #dateien {
        display: inline-block;
    }

    #dateien div {
        padding: 0.5em;
    }

    #dateien div:nth-child(even) {
        background-color: #eceded;
    }

    #dateien div:hover {
        background-color: #78b41e;
    }

    .link {
        display: inline-block;
        width: 25em;
    }

    /*
     *
     * Routen
     *
     */
    #jahrlinks a {
        margin-right: 0.4em;
    }
    #anchorlinks {
        margin-top: 0.5em;
    }
    #anchorlinks a {
        margin-right: 0.4em;
    }
    .testkunde {
        width: 12em;
    }

    .testkundendiv {
        padding: 0.2em;
    }

    .eintragzeit, .reserve {
        margin-left: 0.3em;
        font-size: 0.8em;
    }

    .benutzereintrag {
        background-color: #ccff99;
    }

    .frei_zum_eintragen {
        color: #78b41e;
    }

    tbody tr:hover .frei_zum_eintragen {
        color: #000;
    }
    
    @media only screen and (min-width: 1000px) {
        #neueroute {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
        }

        #neueroute .notafieldset {
            padding-right: 2em;
        }

        #routeaendern label, .notafieldset label {
            display: inline-block;
            width: 12em;
        }

        #routeaendern input, .notafieldset input {
            width: auto;
        }
    }

    /*
     *
     * Info
     *
     */
    #infotabelle td {
        padding-right: 1em;
    }

    #kurzinfo input {
        width: 18em;
    }

    #kurzinfo, #suche {
        margin-bottom: 2em;
    }

    .logeintrag {
        margin-bottom: 0.3em;
    }

    .logeintrag > span {
        display: inline-block;
        padding: 0.3em;
    }

    .logeintrag:nth-child(even) {
        background-color: #eceded;
        color: #1d1d1b;
    }

    .typ {
        width: 4em;
    }

    .ERROR {
        color: #f00;
    }

    .WARN {
        color: #9a762a;
    }

    .FATAL {
        background-color: #f00;
        font-weight: bold;
    }

    /*
     *
     * Rechnungen
     *
     */

    #legende {
        display: inline-block;
    }

    #legende p {
        padding: 0.3em;
        margin: 0.3em;
    }

    .stats_head {
        display: inline-block;
        width: 16em;
        font-weight: bold;
    }

    .freigabeok {
        background-color: #b0ec55 !important;
    }

    .freigabenichtok {
        background-color: #f9899b !important;
    }

    .freigabenichterlaubt {
        background-color: #f49e00 !important;
    }

    #rechnungen .buttons, #statistik {
        margin-top: 1em;
    }

    #rechnungen label {
        display: inline-block;
        width: 2em;
    }
    /*
     *
     * Lohn
     *
     */
    #lohntabelle {
        width: auto;
        margin-top: 1em;
    }
    #lohntabelle td {
        padding-right: 1em;
    }
    /*
     *
     * Sondereinsätze
     *
     */
    .teilnehmer {
        font-size: 0.8em;
    }
