@font-face { 
    font-family: Raleway; 
    src: url('./fonts/Raleway-Regular.otf'); 
} 

@font-face { 
    font-family: Raleway; 
    font-weight: bold; 
    src: url('fonts/Raleway-Bold.otf');}

html {        
    height:100%;
    min-height:100%;
    -webkit-font-smoothing: antialiased;   
}

body {
    min-height:100%;
    background-color: rgba(233, 233, 233, 1);
    background-image: url(img/background1.png);
    background-size: auto 100%;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: bottom right;
    margin: 0 auto;
    padding: 2em 2em 4em;
    font-family: Raleway;
    font-size: 12px;
}

header, nav, nav a, article, section, aside, footer {
    border-radius: 0px 0.5em 0.5em;
    border: 1px solid;
    padding: 10px;
    margin: 45px 10px;    
    -webkit-flex: 1 1 100%;
    flex: 1 1 100%;    
}

header {
    background: rgba(241, 243, 244, 0.85);
    border-color: #d5d5d5;
    display:-webkit-flex;
    -webkit-flex-flow: column;
    display: flex;
    flex-flow: column;
    flex-grow: 0;
}

header img {
    display: block;
    max-width:260px;
    max-height:95px;
    width: auto;
    height: auto;
    -webkit-align-self: center;
    align-self: center;
}

header nav {
    -webkit-flex: 1;
    flex: 1;
}

nav, nav ul, nav li{
    margin: 0px 10px;
    padding: 0px;
    border: none;
}

nav li {
    list-style-type: none;
    margin: 10px 10px;
    -webkit-flex: 1;
    flex: 1;
}

nav a {
    display:inline-block;
    width: 100%;
    background: #fffbf0;
    border: 1px solid #dfac20;
    margin: 10px;
    text-align: center;
    text-decoration: none;
}

nav a:hover {
    background-color: #dfac20;
}

section {
    background: rgba(241, 243, 244, 0.55);
    border-color: slateblue;
}

article {
    background: rgba(255, 237, 224, 0.55);
    border-color: #df6c20;
}


aside {
    background: #ebf5d7;
    border-color: #8db243;
    -webkit-flex: 1 1 0;
    flex: 1 1 0;
}

#links {
    height:120px;
    -webkit-align-self: center;
    align-self: center;
}

#map {
    height:400px;   
    width: 100%;
    visibility: visible;
}

footer {
    background: #e4ebf2;
    border-color: #8a9da8;
    flex:1 1 100%;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-flow: row wrap;    
    flex-flow: row wrap;
}

footer ul {
    list-style: none;
    border: none;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: row;    
    flex-direction: row;
    -webkit-flex: 1 1 100%;
    flex: 1 1 100%;
    padding-left: 0px;
}

footer ul li {
    border: none;
    margin: 0 0px;
    -webkit-flex: 1 1 0;
    flex: 1 1 0;
    padding-left: 0px;
}

footer #copyright {
    text-align: left;
    -webkit-align-self: flex-end;
    align-self: flex-end;
}

footer #impressum {
    text-align: right;
    -webkit-flex: 2 1 0;
    flex: 2 1 0;
}

table tr td {
    padding:5px 20px;
    border: solid 1px;
}

@media only screen and (min-width: 800px) {
    body {
        background-size: cover;
        background-position: bottom center;
        max-width: 800px;
        font-size: 14px;  
    }

    header {
        -webkit-flex-flow: row wrap;
        flex-flow: row wrap;
        -webkit-align-items: center;
        align-items: center;
    }

    header img {
        -webkit-display: inline-flex;
        display: inline-flex;
        margin:50px 25px;   
    }

    header h1, h2, h3 {
        -webkit-display: inline-flex;
        display: inline-flex;    
    }

    header nav {
        -webkit-flex: 1 1 100%;
        flex: 1 1 100%;;
    }

    nav ul {
        display: -webkit-flex;
        -webkit-justify-content: space-around;
        -webkit-flex-direction: row;
        display: flex;
        justify-content: space-around;
        flex-direction: row;
    }

    nav li {
        position: relative;
        list-style-type: none;
        margin: 0 10px;
        flex: 1;
    }

    nav ul li ul {
        position: absolute;
        top: 0;
        margin: 0; 
        padding: 0;
        -webkit-flex-direction: column;
        flex-direction:  column;
        top: 3em; 
        font: 0/0 serif;            /* Unternavigation ausblenden */
        z-index: -1;
        visibility: hidden;
        transition: all 0.5s ease-in;
    }

    nav ul li:hover ul {
        font: inherit;
        z-index: auto;
        visibility: visible; /*  Unternavigation einblenden */
    }

    nav ul li ul li a {
        margin: 0px 5px;
        border-radius: 0px;
        border: 0px none;
    }
}