html {
    height: 100%;
}

header {
    display: flex;
    justify-content: center;
    align-items: center;
}

header h1 {
    font-family: Adler;
    text-align: center;
    font-size: 1.6em;
    color: silver;
}

footer {
    background-image: url('images/schildkröten.png');
    background-size: auto 100px;
    background-repeat: no-repeat;
}

body {
    font-family: 'Playfair Display';
    margin: 0px;
    min-height: 100%;
    display: grid;
    grid: 100px min-content auto 100px/auto;

    font-size: 1.2em;
}

body::after {
	z-index: -100;
    position: fixed;
    top: 0px;
    left: 0px;
    width: 100vw;
    height: 100vh;
    content: " ";
    opacity: .3;

    background-image: url('images/blumen-fullcolour.png');
    background-position: center center;
    background-repeat: no-repeat;
    background-size: 42%;
    background-attachment: fixed;
}

nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;

    background-image: url('images/jj.png');
    background-size: auto 100px;
    background-position: bottom left;
    background-repeat: no-repeat;
    padding-bottom: 60px;
}

nav a {
    display: inline-block;
    margin: 1em;
    text-decoration: none;
    color: hsl(336, 100%, 30%);
    font-family: 'Megrim';
}

main {
    margin-left: 20vw;
    margin-right: 20vw;
    padding-top: 3em;
}

.hell {
    color: hsl(0, 0%, 60%);
}

.mittel {
    color: hsl(0, 0%, 42%);
}

.dunkel {
    color: hsl(0, 0%, 19%);
}

.fancy {
    font-family: 'Dragon is Coming';
	line-height: .5em;
    margin-bottom: .3em;
    margin-top: .3em;
    font-size: 3em;
}

.fancy.inline {
    line-height: .2;
}

.mittelgross {
    font-size: 1.8em;
}

.etwasgroesser {
    font-size: 2em;
}

.gross {
    margin-top: .5em;
    font-size: 3em;
    margin-bottom: 1em;
}

.sehrgross {
    font-size: 4em;
    text-indent: -1em;
    margin-left: 1em;
}

.sehrgross p {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}

.klein {
    font-size: .8em;
}

.klein.schmieg {
    position: relative;
    top: -.5em;
}


#login_button {
    border: 0px;
    background-color: inherit;
    font-family: Megrim;
    color: #900;
    font-size: inherit;
}

.error {
    border: 1px solid red;
    background-color: #fcc;
    color: darkred;

    padding: .5em;
    margin-bottom: 1em;
}

.tagesablauf table {
    width: 100%;
    table-layout: fixed;
}

.tagesablauf table img {
    width: 3em;
    height: 3em;
}

/* .tagesablauf .kommentar {
} */

.tagesablauf .zeit {
    text-align: right;
    width: 4em;
}

.tagesablauf .bild {
    text-align: right;
    width: 3em;
}

.tagesablauf .strich {
    width: 8px;
    border-bottom: 1px solid hsl(0, 0%, 42%);
    position: relative;
    left: 3em;
    top: -1.5em;
    margin-left: -4px;
}

.tagesablauf {
    border-right: 1px solid hsl(0, 0%, 42%);
}

.tagesablauf.public {
    text-align: right;
}

main h1, main h2 {
    font-family: 'Dragon is Coming';
    font-size: 4em;
    line-height: .2;
    margin-top: 0px;
    margin-bottom: .5em;
    font-weight: normal;
    color: hsl(0, 0%, 19%);
}

main h1 a, main h2 a {
    text-decoration: none;
    color: darkblue;
}

main h2 {
    font-size: 3.4em;
    line-height: .2;
    margin: 0;
    margin-bottom: .2em;
    
}

h2 + p {
    margin-top: 0em;
}

hr {
    margin-top: 2em;
    margin-bottom: 2em;
    width: 90%;
    height: 0px;
    border-top: .5pt solid hsl(0, 0%, 19%);
}

.location {
    display: grid;
    grid-template-columns: 50% 50%;
    grid-template-rows: 50% 50%;
}

.parking {
    grid-column: 2;
    grid-row: 2;
}

.fassade {
    width: 100%;
    grid-column: 2;
    grid-row: 1;
}

img {
    max-width: 100%;
    image-orientation: from-image;
}

.photos {
    display: flex;
    flex-wrap: wrap;
}

.photos > .photo {
    height: 10em;
    width: max-content;
    padding: 5px;
}

.lightbox_container {
    position: fixed;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);

    display: none;
}

.lightbox {
    background-color: white;
    border-radius: 30px;
    position: relative;
    top: 10%;
    left: 10%;
    width: 80%;
    height: 80%;
}

.lightbox_picture {
    margin-left: 5%;
    margin-right: 5%;
    position: relative;
    top: 5%;
    width: 90%;
    height: 85%;

    background-size: contain;
    background-repeat: no-repeat;
    background-position: 50%;

    /* background-color: #ddd; */
}

.lightbox_buttons {
    height: 5%;
    width: 90%;
    position: relative;
    top: 5%;
    margin-left: 5%;
    margin-right: 5%;
    padding-top: .4em;
}

.lightbox_buttons > button {
    padding: .5em;
    padding-bottom: .3em;
    font-family: Adler;
    background-color: #eee;
    font-size: .7em;
    /* color: #900; */
}

main.pictures {
    margin-left: 1em;
    margin-right: 1em;
}

#download_link {
    font-size: .7em;
    /* font-family: Megrim; */
    font-family: Adler;
    color: #900;
    float: right;
    margin-top: .5em;
}

.photos > .photo > .uploader {
    font-size: .7em;
    background-color: black;
    opacity: .7;
    font-family: Helvetica;
    position: relative;
    top: -1.7em;
    left: -.2em;
    color: white;
    padding: .2em;
    width: 100%;

    display: none;
}

.photos > .photo > img {
    height: 100%;
}

@media (min-width: 500px) {
    img.newspicture {
        float: right;
        width: 42%;
    }
    .even img.newspicture {
        margin-top: 1em;
        margin-right: .5em;
        float: left;
    }

    .odd img.newspicture {
        margin-left: .5em;
    }
}

@media (max-width: 500px) {
    img.newspicture {
        margin-top: 1.5em;
    }
}

.location iframe {
    width: 95%;
    margin-top: .5em;
    height: 320px;
}

h1.newshead:not(:nth-of-type(1)) {
    margin-top: 1em;
}

p.subheading {
    margin-top: -.5em;
    margin-bottom: -.5em;
    text-indent: 2em;
    font-family: Barrio;
}

@media (min-width: 700px) {
    .tagesablauf br {
        display: none;
    }
    .schmieg {
        position: unset !important;
    }
}

@media (max-width: 500px) {
    main {
        margin-left: 1em;
        margin-right: 1em;
    }

    nav a {
        margin: .5em;
    }

    .etwasgroesser {
        font-size: 1.8em;
    }

    .mittelgross {
        font-size: 1.5em;
    }

    .gross {
        font-size: 2.5em;
    }

    .sehrgross {
        font-size: 3.4em;
        text-indent: unset;
        margin-left: unset;
        margin: 0.5em;
    }

    body::after {
        background-position:0px 0px; 
        background-size: 500px auto;
        opacity: 0.1;
    }

    footer, nav {
        background-size: auto 50px;
    }
    nav {
        padding-top: 60px;
        background-image: url('images/schildkröten.png');
        background-position: 0px 0px;
        grid-row: 4;
        padding-bottom: 30px;
    }
    footer {
        background-image: url('images/jj.png');
        grid-row: 2;
        height: 50px;
    }

    .location > * {
        grid-column: 1 / span 2;
    }

    .parking {
        grid-row: 3;
    }

    .fassade {
        grid-row: 2;
    }

    .location iframe {
        grid-row: 4;
    }
}

.article {
    margin-bottom: 2em;
    padding-bottom: 1em;
    border-bottom: 1px dotted #ddd;
}

.article:last-child {
    border-bottom: 0px dashed grey;
}

.countdown {
    margin-left: 1em;
}