/* barlow-regular - latin */
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 400;
  src: url('fonts/barlow-v1-latin-regular.eot'); /* IE9 Compat Modes */
  src: local('Barlow Regular'), local('Barlow-Regular'),
       url('fonts/barlow-v1-latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('fonts/barlow-v1-latin-regular.woff2') format('woff2'), /* Super Modern Browsers */
       url('fonts/barlow-v1-latin-regular.woff') format('woff'), /* Modern Browsers */
       url('fonts/barlow-v1-latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */
       url('fonts/barlow-v1-latin-regular.svg#Barlow') format('svg'); /* Legacy iOS */
}


div, article, header, main, .container, nav, footer {
    box-sizing: border-box;
}



body {
    border-bottom: 1px solid transparent;
    font-family: Arial, Helvetica, sans-serif;
    font-family: 'Barlow';
    background-color: #FDF5E6;
    color: #333;
}

a {
    color: #333;
}

img {
    max-width:100%;
    height:auto;
}




.container {
    display: grid;

    grid-template-areas:
        "header"
        "content"
        "footer"
        ;

    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr auto;
    grid-gap: 0;
    height: 100vh;
    width: 86%;
    max-width: 1100px;
    margin:auto;
}


header {
    grid-area: header;
    position: relative;
    padding-top:0.5em;
}
header h1 {
    margin:0;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 2rem;
    line-height:2rem;
    float:left;
}
header a {
    color: #444;
    text-decoration: none;
}

/* Hauptmenü */

nav.main ul {
    position:absolute;
    right:2rem;
    bottom:2px;
    margin:0;
}
nav.main li {
    float: left;
    list-style:none;
    margin:0;
}
nav.main a {
    background-color: #EAE1D2;
    margin: 0 0.2em;
    padding: 0.1em 1em;
    border: 1px solid #C69F58;
}

nav.main a.active {
    background-color: #FDF5E6;
    border-bottom: 1px solid #FDF5E6;
}

/* Mobiles menu */

nav.mobile {
    display:none;
}

nav.mobile ul {
margin:0.5em 0 0 0;
padding:0;
}
nav.mobile li {
    float: left;
    list-style:none;
    margin:0;
    padding:0;
}
nav.mobile a {
    background-color: #EAE1D2;
    margin: 0 0 0 0.2em;
    padding: 0.1em 1em;
    border: 1px solid #C69F58;
    text-decoration: none;
    font-size: 0.9em;

}

nav.mobile a.active {
    background-color: #FDF5E6;
    border-bottom: 1px solid #FDF5E6;
}





.subheader {
    grid-area: subheader;
    position: relative;

}
.subheader h2 {
    margin:0;
    text-transform: uppercase;
    letter-spacing: 0.035em;
    font-weight: normal;
    font-size: 1.3rem;
    color: #444;
}


main {
    grid-area: content;
    border: 1px solid #C69F58;
    border-left:none;
    display: grid;
        grid-template-areas:
        "subheader"
        "article"
        ;

    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
}

article {
    grid-area: article;
    border: 1px solid #C69F58;
    margin:1em 2em 2em 0;
    background-color: #FEFBF5;
    padding: 3em;
    line-height: 1.4em;
}

article h2 {
    color: #91856E;
}


/* Referenzen */
.fotos {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}



.fotos div {
    flex: 1 1 200px;
    padding:1em;
    border: 1px solid #C69F58;
    font-size: 0.80em;
    line-height: 1em;
    margin: 0.5em;
max-width:230px;
position: relative;
padding-bottom: 3em;
}


.fotos div div:first-child {


}

.fotos div p:nth-child(2) {
    position: absolute;
    width:90%;
    bottom:0;
    vertical-align: top;
}

.wiwo {
    max-width:50%;
    display: inline-block;
text-align:left;
line-height: 1.1em;
font-size:0.9em;
}
.wiwo.doppelseite {
    max-width:100%;
}

.wiwo img {
    border: 1px solid #D5AB58;
}

hr {
    border: none;
    border-bottom: 2px dotted #977126;
    margin: 2em 0;
}

.galerie {
    margin-top: 2em;
    padding-top: 2em;
    border-top: 2px dotted #977126;
}

.galerie p {
text-align:left;
line-height: 1.1em;
font-size:0.9em;

}

dd:after {
    content: " ";
    display:block;
    clear:both;
    float:none;
}



footer {
    grid-area: footer;
    height: 2rem;
    line-height: 2rem;
    font-size: 0.85em;
}
footer ul, footer li {
    margin:0;
    padding:0;
    list-style:none;
    float:left;
    margin-right: 2em;
}
footer a {
    color: #666;
}



@media screen and (max-width: 800px) {

.container {
width: 96%;
    max-width: auto;
    margin:auto;
}

nav.main {
    display:none;
}

nav.mobile {
display:inline-block;
float:right;
margin-right: 1em;
}

nav.mobile a {
     padding: 0.1em 0.5em;
}

nav.mobile a.active {
    background-color: #FEFBF5;
    border-bottom: 1px solid #FEFBF5;
}

article {
margin: 2px 1em 1em 0.5em ;
 }

}

@media screen and (max-width: 382px) {

article {

padding:1em;
}

.wiwo {
    max-width:100%;
}




}