@font-face {
  font-family: 'Comfortaa';
  font-weight: normal;
  src: url('comfortaa.ttf') format('truetype');
}

@font-face {
  font-family: 'Comfortaa';
  font-weight: bold;
  src: url('comfortaa-bold.ttf') format('truetype');
}

@font-face {
  font-family: 'Josefin Slab';
  font-style: normal;
  font-weight: normal;
  src: url('josefinslab.ttf') format('truetype');
}

@font-face {
  font-family: 'Josefin Slab';
  font-style: normal;
  font-weight: bold;
  src: url('josefinslab-bold.ttf') format('truetype');
}

@font-face {
  font-family: 'Josefin Slab';
  font-style: italic;
  font-weight: normal;
  src: url('josefinslab-italic.ttf') format('truetype');
}

@font-face {
  font-family: 'Josefin Slab';
  font-style: italic;
  font-weight: bold;
  src: url('josefinslab-bolditalic.ttf') format('truetype');
}


/** resets **/
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, tt, var, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
    font-size: 100%;
    line-height: 1.6em;
	font: inherit;
	vertical-align: baseline;
}
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
	display: block;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after, q:before, q:after {
	content: '';
	content: none;
}


/** general **/
html {
    height: 100%;
}
body {
    height: 100%;
    background:linear-gradient(170deg,#f3f2f6 0%, #e2f9e3 10%,#dafbf3 25%, #e2f9e3 40%, #f3f2f6) no-repeat fixed;
    background-size: 100% 200%;
    color: gray;
    font-family: 'Comfortaa', sans-serif;
    line-height: 1.6em;
}
p {
    font-family: 'Comfortaa', sans-serif;
}
a {
    color: black;
    text-decoration: none;
    font-weight: bold;
}
a:hover {
    text-decoration: underline;
}

header, nav, article, footer {
    width: 90vw;
    max-width: 801px;
    margin-left: auto;
    margin-right: auto;
}
header {
    font-family: 'Josefin Slab', serif;
    color: black;
}
nav {
    font-weight: bolder;
}
@media screen and (max-width: 890px) {
body {
    font-size:2vw;
}
header div {
    font-size: 9vw;
    height:16vw;
    line-height: 2em;
}
nav {
    font-size: 2.7vw;
}
}

.imprint p {
    font-size: 1.5vw;
    line-height: 1.6em;
    margin-top: 0.5em;
}

.imprint h2 {
    margin-top: 0.8em;
}

.imprint h3 {
    font-size: 1.6vw;
    margin-top: 0.5em;
}

footer {
    min-height: 50px;
    font-size: 1.6vw;
    text-align: center;
}

@media screen and (min-width: 891px) {
    body {
        font-size:15px;
    }
    header div {
        font-size:80px;
        height:140px;
        line-height: 2.5em;
    }
    nav {
        font-size: 20px;
    }

    .imprint p {
        font-size: 12px;
        line-height: 1.6em;
        margin-top: 0.5em;
    }

    .imprint h3 {
        font-size: 13px;
    }

    footer {
        font-size: 10px;
    }
}

header div {
  text-align: justify;
}
header div:after {
  content: "";
  display: inline-block;
  width: 100%;
  line-height: 0;
  height:0;
}



nav ul {
  list-style: none;
  display: flex;
  justify-content: space-between;
}

article {
    border: 9px solid white;
    border-image: url(images/border.png) stretch;
    border-image-slice: 40%;
    padding: 3px 6px;
    display: grid;
    grid-template-columns:1fr 1fr 1fr;
    grid-gap: 2vw;
}

section {
    background: white;
    padding:3%;
}
article div {
    line-height: 0;
    position: relative;
}
article img {
    background: white;
    width:100%
}
article img + p {
    position: absolute;
    left:0;
    right: 0px;
    bottom: 0px;
    background: rgba(255, 255, 255, 0.7);
    display: block;
    padding: 8px 15px 5px 15px;
    line-height: 1.3em;
    opacity: 0;
    text-align: right;

}

article img:hover + p {
    opacity:1;
}
.x12 { grid-column: span 1; grid-row: span 2; }
.x13 { grid-column: span 1; grid-row: span 3; }
.x21 { grid-column: span 2; grid-row: span 1; }
.x22 { grid-column: span 2; grid-row: span 2; }
.x23 { grid-column: span 2; grid-row: span 3; }
.x31 { grid-column: span 3; grid-row: span 1; }
.x32 { grid-column: span 3; grid-row: span 2; }
.x33 { grid-column: span 3; grid-row: span 3; }
