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

body {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 300;
    font-size: 19px;
}

p {
    line-height: 1.8;
    font-weight: normal;
}

main p {
    font-weight: 300;
}

.wrapper {
    position: relative;
    width: 95%;
    max-width: 2000px;
    margin-right: auto;
    margin-left: auto;
}

.wrapper_small {
    position: relative;
    width: 95%;
    max-width: 1500px;
    margin-right: auto;
    margin-left: auto;
}

/* ***** TITLES ***** */

h1 {
    font-weight: 300;
    font-size: 2em;
    margin-bottom: 0.5em;
}

h2 {
    font-weight: 300;
    font-size: 1.5em;
    margin-bottom: 1rem;
    margin-top: 2em;
}

h3 {
    padding: 20px 0 10px 0;
    font-weight: 300;
}

/* ***** NAVIGATION ***** */

#navigation {
    color: #F8F2E5;
    text-transform: lowercase;
    z-index: 5000;
    top: 0;
    position: fixed;
    right: 0;
    left: 0;
    background-color: rgba(51,51,51,0.4);
    padding-top: 70px;
}

#navigation.gallery {
    background-color: #333;
}

#navigation > div {
    display: flex;
    justify-content:center;
    margin-top: 1em;
    margin-bottom: 1em;
}

#navigation span {
    border-right: 1px solid white;
    padding: 0 0.5em;
    font-size: 1rem;
}

#navigation a {
    text-decoration: none;
    display: block;
    width: 100%;
    text-align: center;
}

#navigation span:after {
    display: block;
    content: '';
    border-bottom: solid 3px #BC9D87;
    transform: scaleX(0);
    transition: transform 250ms ease-in-out;
}

#navigation span:hover:after { transform: scaleX(1); }

@media screen and (min-width: 500px) {
    #navigation span {
        padding: 0 1em;
        font-size: 1.4rem;
    }
}

@media screen and (min-width: 600px) {
    #navigation span {
        padding: 0 1em;
        font-size: 1.6rem;
    }
}

@media screen and (min-width: 950px) {
    #navigation{
        padding-top: 0;
    }
    #navigation > div {
        justify-content: flex-end;
    }
}

#navigation span:last-child {
    padding-right: 0;
    border-right: none;
}
#navigation a {
    color: #F8F2E5;
}

/* ***** HEADER ***** */

header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;

}

#logo {
    position: absolute;
    align-items: center;
    justify-content: center;
    width: 100%;
    z-index: 5000;

}

.smallLogo {
    max-height: 68px;
    transition: all 0.5s ease-out;
    position: fixed;
    top: 0;
    padding: 0.5em 0;
    margin: 0 auto;
    left: 0;
    right: 0;
    display: block;
}

@media screen and (min-width: 950px) {
    .smallLogo {
        margin: auto;
        left: auto;
        right: auto;
    }
}

/* ***** MAIN ***** */

main {
    display: block;
    margin-top: 8em;
    margin-bottom: 5em;
    position: relative!important;
}

@media(min-width: 500px) and (max-width: 543px){
    main {
        margin-top: 10em;
    }
}

@media(min-width: 599px) and (max-width: 617px){
    main {
        margin-top: 10em;
    }
}

@media(min-width: 950px) {
    main {
        margin-top: 6em;
    }
}

.category_overview {
    display: block;
    justify-content: flex-start;
    margin-bottom: 3em;
    flex-wrap: wrap;
    list-style-position: outside;
    list-style-type: none;
}

.category_overview li {
    margin-right: 2em;
    margin-bottom: 1em;
}

@media(min-width: 700px) {
    .category_overview {
        display: flex;
    }

    .category_overview li {

    }
}

.category_overview a {
    text-decoration: none;
}

.category_overview a.active {
    color: #BC9D87;
}

.gallery_description {
    margin-bottom: 2em;
    max-width: 700px;
}

#container {
    position: relative;
    width: 100%!important;
}

.grid-item,
.grid_sizer {
    width: 99%;
}

@media(min-width: 450px) {
    .grid-item,
    .grid_sizer {
        width: 49%;
    }
}

@media(min-width: 800px) {
    .grid-item,
    .grid_sizer {
        width: 32%;
    }
}

@media(min-width: 1200px) {
    .grid-item,
    .grid_sizer {
        width: 19%;
    }
}

.grid-item {
    margin-bottom: 1%;
  }

.gutter-sizer {
    width: 1%;
}


/* ***** FOOTER ***** */

footer {
    background-color: #7a6e6c;
    min-height: 80px;
    font-size: 0.8em;
    padding: 1.5em 0;
    color: #222;
}

footer a {
    color: #222;
}

footer .wrapper {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

footer .wrapper > div {
    flex-basis: 33.3333%;
}

footer .footer_contact p {
    line-height: 150%;
}

.footer_contact .contact_label {
    display: inline-block;
    width: 55px;
}

.footer_contact a {
    color: #222;
    transition: all 0.1s ease-in;
}

.footer_contact a:hover {
    color: white;
    opacity: 0.7;
}

.footer_certificate {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    order: 2;
    margin: 2em 0 1em 0;
    height: 75px;
    min-height: 75px;
}

.footer_certificate img {
    width: 100px;
    height: 75px;
    display: block;
}

.footer_links {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    order: 3;
}

.footer_links a {
    font-weight: normal;
    padding: 0 0.5em;
    transition: all 0.1s ease-in;
}

.footer_links a {
    border-right: 1px solid #222;
}

.footer_links a:last-child {
    border-right: 0;
}

.footer_links a:hover {
    color: white;
    opacity: 0.7;
    border-color: #222;

}

@media(min-width: 725px) {
    footer .wrapper {
        display: flex;
        flex-direction: row;
    }

    .footer_certificate {
        align-items: flex-end;
        order: 3;
        margin: 0;
    }

    .footer_links {

        order: 2;
    }
}

/* ***** CONTACT ***** */

.contact_label {
    min-width: 65px;
    display: inline-block;
}

a {
    color: #333;
    transition: all 0.2s ease-in;
}

a:hover {
    color: #BC9D87;
}

.agb_link {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.agb_link .icon {
    height: 40px;
    position: relative;
    margin-right: 10px;
}
.agb_link .icon img {
   position: relative;
    height: 30px;

}

/* ***** UNTERSEITE ***** */

.overlay_wrapper .overlay {
  width: 100%;
  position: relative;
  display: block;
  overflow: hidden;
}

.overlay_wrapper .overlay img {
  width: 100%;
  position: relative;
  display: block;
  transition: transform 0.2s ease-in;
}

.overlay_wrapper .overlay_text {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.7);
	color: #333333;
	margin: auto;
	display: flex;
	justify-content: center;
	align-items: center;
	font-size: 2rem;
	z-index: 999;
}

.overlay_wrapper:hover img {
  transform: scale(1.1);
}
