* {
    margin: 0;
    padding: 0;
    outline: none;
    box-sizing: border-box;
}

body {
    color: rgba(68,68,68,1);
    text-shadow: 1px 1px 1px rgba(0,0,0,0.004);
    text-rendering: optimizeLegibility !important;
    -webkit-font-smoothing: antialiased !important;
    font-family: "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;
    font-weight: 300;
    font-weight: 400;
    height: auto !important;
    height: 100%;
    min-height: 100%;
    background-size: cover;
    overflow-y: scroll;
}

body {
    min-height: 100%;
    height: auto !important;
    height: 100%;
}

body > header {
    background-color: rgba(255,255,255,0.7);
    border-bottom: 1px solid rgba(0,0,0,.15);
    display: flex;
    flex-direction: column;
    text-align: center;
    top: 0;
    z-index: 1;
    width: 100%;
    margin: 0;
}

body > header > .menuDown {
    box-shadow: 0 3px 5px rgba(0,0,0,.15);
}

body > header > .menuUp {
    box-shadow: none;
}

div#navToggle {
    background-color: rgba(0,0,0,.15);
    position: relative;
    margin: auto;
    transition: 300ms all ease;
}

div#navToggle:hover {
    background-color: rgba(0,0,0,.1);
}

div#navToggle > a {
    color: rgba(255,255,255,.85);
    display: block;
    font-size: 1em;
    font-weight: 600;
    padding: 0.5rem 2.5rem;
    text-decoration: none;
    transition: 300ms all ease;
}

div#navToggle:hover > a {
    color: rgba(255,255,255,1);
}

body > header > nav {
    background-color: rgba(255,255,255,1);
    display: none;
    flex: auto;
    transition: all 300ms ease;
}

/* any nav in header */
body > header nav > ul {
    list-style-type: none;
}

body > header nav > ul > li {
    border-bottom: 1px dotted rgba(0,0,0,.1);
    position: relative;
}

body > header nav > ul > li:last-of-type {
    border-bottom: none;
}

body > header nav > ul > li > a {
    display: block;
    color: rgba(0,0,0,.65);
    font-weight: 700;
    padding: 1.5rem 0;
    text-decoration: none;
    transition: 250ms all ease;
}

body > header nav > ul > li > a span.toggle {
    background-color: rgba(0,0,0,.05);
    border-radius: 3rem;
    color: rgba(0,0,0,.25);
    font-size: 0.75em;
    font-weight: 500;
    padding: 2px 8px;
}

body > header nav > ul > li > a span.caret {
    display: none;
}

/* first nav layer */
body > header > nav > ul > li:hover > a {
    color: rgba(164,183,223,1);
}

body > header > nav > ul > li > nav {
    background-color: rgba(73,104,132,0.85);
    box-shadow: 0 2px 8px rgba(0,0,0,.6);
    display: none;
    overflow: hidden;
    position: absolute;
    right: 5%;
    width: 90%;
    z-index: 100;
}

/* second nav layer */
body > header > nav > ul > li > nav > ul > li > a {
    color: rgba(255,255,255,.85);
    transition: 300ms all ease;
}

body > header > nav > ul > li > nav > ul > li:hover > a {
    background-color: rgba(0,0,0,.4);
    color: rgba(255,255,255,1);
}

.centered {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.shadow {
    box-shadow: 5px 5px 5px #aaa;
    margin-bottom: 10px;
}

div#kontakt {
    background-color: transparent;
    margin: 0;
    line-height: 1.5rem;
    text-align: center;
    vertical-align: middle;
}

div#kontakt ul {
    margin: 0;
}

div#kontakt li {
    display: inline;
    font-weight: bold;
    margin: 1em;
    white-space:nowrap;
}

div#kontakt li div {
    display: inline-block;
}

div#kontakt a {
    color: rgba(68,68,68,1);
    text-decoration: none;
    transition: 300ms all ease;
}

div#kontakt a:hover {
    color: rgba(68,68,68,0.5);
}

div#logo_container {
    padding: 10px 0 0 0;
    margin: auto;
}

div#logo {
    display: inline-block;
}

div#logo img {
    max-width: 400px;
    width: 100%;
    height: auto;
}

div#ds {
    margin-left: 3em;
    display: none;
}

div#ds img {
    max-width: 100px;
    width: 100%;
    height: auto;
}


img#mapsketch {
    margin: 2em auto 2em auto;
    max-width: 366px;
    width: 100%;
    height: auto;
}

div#map {
    margin: 2em auto;
    width: 100%;
    height: 600px;
}

div#mapbutton {
    padding: 5em;
    text-align: center;
    background-color: rgba(255,255,255,0.85);
}

section {
    background-color: rgba(255,255,255,0.85);
    width: 100%;
    margin: 10px auto;
    padding: 3em;
    display: none;
}

section#home {
    display: block;
}

section > p {
    padding-top: 0.5em;
    padding-bottom: 0.5em;
}

section > div {
    display: inline-block;
}

section > ul {
    margin-bottom: 1em;
}

section ul {
    margin-left: 1em;
}

section h2 {
    text-decoration: none;
}

section h3 {
    text-decoration: none;
    color: rgba(91,116,163,1);
}

a {
    text-decoration: none;
    color: rgba(91,116,163,1);
}

a:hover {
    color: rgba(164,183,223,1);
}

table.impressum {
}

table.impressum td {
    padding: 2px;
}

table.impressum td.header {
    font-weight: bold;
    vertical-align: top;
}

/*
 For "n" images You must define:
 a=presentation time for one image
 b=duration for cross fading
 Total animation-duration is of course t=(a+b)*n

 animation-delay = t/n or = a+b

 Percentage for keyframes:

     0%
     a/t*100%
     (a+b)/t*100% = 1/n*100%
     100%-(b/t*100%)
     100%
*/

.css-slideshow{
    position: relative;
    width: auto;
    margin-left: 0;
    margin-right: 0;
    max-width: 800px;
    max-height: 533px;
}

img#dummy {
    position: relative;
    width: 100%;
    height: 100%;
    opacity: 0;
}

.css-slideshow figure {
    margin: auto;
    position: absolute;
    top: 0;
    animation-play-state: paused;
    animation-name: xfade;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
    animation-duration: 40s;
}

.css-slideshow figure img {
    box-shadow: 5px 5px 5px #aaa;
    width: 100%;
    height: 100%;
    opacity: 0;
}

figure:nth-child(1) {
    animation-delay: 35s;
}
figure:nth-child(2) {
    animation-delay: 30s;
}
figure:nth-child(3) {
    animation-delay: 25s;
}
figure:nth-child(4) {
    animation-delay: 20s;
}
figure:nth-child(5) {
    animation-delay: 15s;
}
figure:nth-child(6) {
    animation-delay: 10s;
}
figure:nth-child(7) {
    animation-delay: 5s;
}
figure:nth-child(8) {
    animation-delay: 0s;
}

@keyframes xfade{
    0%{
        opacity: 1;
    }
    9.52% {
        opacity:1;
    }
    14.29%{
        opacity: 0;
    }
    95.24% {
        opacity:0;
    }
    100% {
        opacity:1;
    }
}

/* Medium screens */
@media all and (min-width: 700px) {
    body {
        background: url(../images/bg_lindenallee_1400.jpg) no-repeat center bottom fixed;
        background-size: cover;
    }

    div#ds {
        display: inline-block;
    }

    div#navToggle {
        display: none;
    }

    body > header > nav {
        background-color: rgba(255,255,255,0);
        display: block;
        flex-direction: row;
        padding: 0.5rem 0 0 0;
        line-height: 2.5rem;
    }

    body > header > nav > ul {
        display: flex;
        flex-flow: row wrap;
        justify-content: center;
    }

    body > header > nav > ul > li {
        margin: 0 2px 5px 2px;
        background-color: rgba(0,0,0,.2);
        width: 180px;
    }

    body > header nav > ul > li {
        border-bottom: none;
        white-space:nowrap;
    }

    body > header nav > ul > li > a {
        padding: 0 1.25rem;
    }

    body > header nav > ul > li > a span.toggle {
        display: none;
    }

    body > header nav > ul > li > a span.caret {
        border-bottom: 4px solid transparent;
        border-top: 4px solid rgba(0,0,0,.65);
        border-right: 4px solid transparent;
        border-left: 4px solid transparent;
        border-radius: 1px;
        content: "";
        display: inline-block;
        height: 0;
        margin: 0 0 0 .25rem;
        transition: 250ms all ease;
        width: 0;
        vertical-align: middle;
    }

    body > header nav > ul > li:hover > a span.caret {
        border-top-color: rgba(164,183,223,1);
        transform: rotate(270deg);
    }

    body > header > nav > ul > li:hover > a {
        color: rgba(255,255,255,1);
    }

    body > header > nav > ul > li:hover > nav {
        background-color: rgba(73,104,132,0.85);
        box-shadow: 0 2px 8px rgba(0,0,0,.6);
        display: block;
        line-height: 3em;
        left: -35px;
        width: 250px;
    }

    section {
        max-width: 800px;
    }

    div#map {
        height: 400px;
    }

}
