/*-----Notes--------
Block-Color:                #9a8467
Background-Gradient-Start:  #fff3d9
Sägegriff:                  #d7b46a
Sägeblatt:                  #c6c6c7
Sägeblatt (Light):          #dadadb

font-family: 'Lato', sans-serif;
------------------*/

html {
    /*Layout*/
    min-height: 100%;
}

body {
    /*Layout*/
    min-height: 100%;
    overflow-y: scroll;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: nowrap;
    background: linear-gradient(white 100px, #fff3d9 300px);
    /*background-image: url('/imgs/background/bg02_gradient.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;*/
    font: 62.5% sans-serif;
}

@media only screen and (max-width: 960px) {
}
@media only screen and (max-width: 768px) {
}

#page {
    margin-top: 20px;
    width: 960px;
    display: grid;
    grid-template-columns: repeat(12, 60px);
    grid-template-rows: 216px auto auto auto;
    grid-column-gap: 20px;
}

@media only screen and (max-width: 960px) {
    #page {
        margin-top: 0px;
        width: 100%;
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        justify-content: flex-start;
        align-items: center;
    }
}

#logo {
    grid-column: 1 / 5;
    grid-row: 1 / 2;
    justify-self: stretch;
    align-self: stretch;
}

#logo img {
    padding: 20px;
    height: 100%;
    width: auto;
    box-sizing: border-box;
    /*mediastuff*/
    transition: height 0.3s, width 0.3s, padding 0.3s;
}

@media only screen and (max-width: 960px) {
    #logo {
        order: 1;
        justify-self: center;
        align-self: center;
    }
    #logo img {
        padding: 0px;
        height: 180px;
        width: auto;
    }
}

@media only screen and (max-width: 768px) {
    #logo img {
        height: 120px;
    }
}

#title {
    /*layout*/
    grid-column: 5 / 13;
    grid-row: 1 / 2;
    justify-self: start;
    align-self: center;
    /*typography*/
    font-variant: small-caps;
    font-size: 650%;
    font-weight: normal;
    margin: 0px;
    /*mediastuff*/
    transition: font-size 0.3s, margin 0.3s;
}

@media only screen and (max-width: 960px) {
    #title {
        order: 2;
        margin: 10px 0px 20px 0px;
        font-size: 500%;
    }
}

@media only screen and (max-width: 768px) {
    #title {
        font-size: 350%;
    }
}

nav {
    /*Layout*/
    grid-column: 1 / 13;
    grid-row: 2 / 3;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: space-evenly;
    /*Colors*/
    background-color: white;
    border: 2px solid #9a8467;
}

nav a {
    /*Layout*/
    flex-grow: 1;
    text-align: center;
    /*Colors*/
    color: black;
    background-color: white;
    border-left: 1px dotted white;
    border-right: 1px dotted white;
    /*Typography*/
    font-size: 190%;
    font-weight: bold;
    text-decoration: none;
    line-height: 56px;
}

nav a:hover {
    background-color: #fff3d9;
    border-left: 1px dotted #9a8467;
    border-right: 1px dotted #9a8467;
}

nav a.active {
    background-color: #d7b46a;
    border-left: 1px dotted #9a8467;
    border-right: 1px dotted #9a8467;
}

@media only screen and (max-width: 960px) {
    nav {
        order: 3;
        width: 100%;
        box-sizing: border-box;
    }
    nav a {
        min-width: 150px;
        border: none;
    }
    nav a:hover {
        border: none;
    }
    nav a.active {
        border: none;
    }
}

main {
    /*Layout*/
    grid-column: 2 / 11;
    grid-row: 3 / 4;
    padding: 30px 40px 40px 40px;
    /*Colors*/
    background-color: white;
    border-left: 2px solid #9a8467;
    border-right: 2px solid #9a8467;
    /*typograhpy*/
    font-size: 180%;
    line-height: 1.5;
    /*mediastuff*/
    transition: width 0.3s, padding 0.3s;
}

@media only screen and (max-width: 960px) {
    main {
        order: 4;
        width: 100%;
        box-sizing: border-box;
        padding: 3% 4% 4% 4%;
    }
}

main h1 {
    font-size: 200%;
    font-variant: small-caps;
    margin: 40px 0px 30px 0px;
}

main h2 {
    font-size: 150%;
    margin: 30px 0px 20px 0px;
    font-variant: small-caps;
    border-bottom: 1px solid black;
    /*border-bottom: 1px dotted #9a8467;*/
}

main h2 a {
    text-decoration: none;
}

main h3 {
    font-size: 125%;
    margin: 20px 0px 10px 0px;
    font-variant: small-caps;
}

main h3 a {
    text-decoration: none;
}

main h4 {
    font-size: 100%;
    margin: 10px 0px 0px 0px;
}

main p {
    text-align: left;
    hyphens: auto;
    -webkit-hyphens: auto;
}

main table {
    font-size: 100%;
}

main ul {
    list-style-type: disc;
    padding-left: 35px;
    hyphens: auto;
    -webkit-hyphens: auto;
}

main ul ul {
    list-style-type: square;
    margin-left: 15px;
    padding-left: 15px;
}

main a {
    color: black;
    font-weight: bold;
    text-decoration: underline;
}

main a:hover {
    text-decoration: none;
}

main figure {
    background-color: #eee;
    padding: 5px 5px 0px 5px;
    box-shadow: 2px 2px 4px 1px #555;
    border-radius: 1px;
    box-sizing: border-box;
    margin-left: 20px;
    margin-right: 20px;
    margin-top: 0px;
    margin-bottom: 20px;
}

main figure.right {
    float: right;
    margin-right: 0px;
}

main figure.left {
    float: left;
    margin-left: 0px;
}

main figure img {
    max-width: 250px;
    max-height: 250px;
    width: auto;
    height: auto;
}

main figure figcaption {
    font-size: 80%;
    margin-bottom: 5px;
}

@media only screen and (max-width: 768px) {
    main figure {
        float: none;
        box-sizing: border-box;
        width: 100%;
        margin-left: auto;
        margin-right: auto;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        align-content: center;
    }
    main figure img {
        margin-bottom: 5px;
        max-width: 250px;
        max-height: 200px;
    }
}

main .clear {
    clear: both;
}

/*-------------------PAGE: Leistungen-------*/

main figure.leistungen {
    display: flex;
    width: 100%;
    flex-flow: row wrap;
    justify-content: space-evenly;
    margin: 20px 0px;
    padding: 5px;
}

main figure.leistungen a {
    flex-shrink: 1;
    display: flex;
    flex-flow: row nowrap;
    margin: 2px 0px;
}

main figure.leistungen a img {
    flex-shrink: 1;
    width: auto;
    max-height: 140px;
    max-width: auto;
    margin: 0px;
}

/*-------------------PAGE: Referenzen-------*/
main h4.reference {
    margin: 20px 0px 0px 0px;
    text-decoration: underline;
}

main p.referenceText {
    margin: 0px 0px 10px 10%;
    font-style: italic;
    line-height: 1.2;
}

main #gallery {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    grid-column-gap: 5px;
    grid-row-gap: 5px;
    justify-items: center;
    align-items: center;
    justify-content: stretch;
}

@media only screen and (max-width: 768px) {
    main #gallery {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

main #gallery a {
    display: block;
    padding: 5px 5px 5px 5px;
    width: 100%;
    height: 148px;
    background-color: #eee;
    box-shadow: 2px 2px 4px 1px #555;
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    align-content: center;
    transition: background-color 0.1s;
}

main #gallery a:hover {
    background-color: #fff2cd;
}

main #gallery img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    filter: grayscale(50%);
    transition: filter 0.1s;
}

main #gallery img:hover {
    filter: none;
}

/*-------------------PAGE: Kontakt-------*/

main #form p#msgBox .error {
    color: red;
}

main #form p#msgBox {
    display: block;
    border-bottom: 1px dotted #9a8467;
}

main #form #formbody {
    width: 100%;
}

main #form #formBody h3 {
    border-bottom: 1px solid black;
}

main #form #formBody input,
#form #formBody textarea {
    width: 100%;
    box-sizing: border-box;
}

main #form #formBody input.submitButton {
    width: auto;
}

main #form #formBody input[type="checkbox"] {
    width: 24px;
    margin-top: -1px;
    vertical-align: middle;
    margin-right: 5px;
    margin-left: 2px;
}

main #form #formBody div.error {
    border-left: 5px solid red;
    border-top: 1px solid red;
    border-bottom: 1px solid red;
    border-right: 5px solid red;
    border-radius: 2px;
}

footer {
    /*Layout*/
    grid-column: 1 / 13;
    grid-row: 4 / 5;
    box-sizing: border-box;
    padding: 20px;
    margin-bottom: 30px;
    /*Colors*/
    background-color: white;
    border: 2px solid #9a8467;
    /*Typography*/
    font-size: 180%;
    text-align: center;
}

footer .designFull {
    display: inline-block;
}

footer .designMobile {
    display: none;
}

@media only screen and (max-width: 960px) {
    footer {
        order: 5;
        width: 100%;
        margin-bottom: 0px;
    }

    footer .designFull {
        display: none;
    }

    footer .designMobile {
        display: inline-block;
    }
}

footer a {
    font-weight: bold;
    text-decoration: none;
    color: black;
}

footer a:hover {
    text-decoration: underline;
}

/*---------------------
------Magnifier--------
---------------------*/

#magBox {
    display: none;
    position: fixed;
    margin: auto;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    width: 750px;
    height: 600px;
    z-index: 100;
}

#magImg {
    max-width: 750px;
    max-height: 600px;
    width: auto;
    height: auto;
    border: 2px solid #002443;
    padding: 2px;
    background-color: #fff2cd;
}

#magSub {
    border: 2px solid #002443;
    padding: 2px;
    background-color: #fff2cd;
    overflow: auto;
    width: 750px;
    margin: auto;
    left: 0;
    right: 0;
    visibility: hidden;
}

#magCaption {
    font-weight: bold;
    padding: 1%;
    font-size: 1.3em;
    line-height: 15px;
}

#magCloseButton {
    width: 15px;
    height: auto;
    padding: 1%;
}

#magMask {
    display: none;
    position: fixed;
    margin: auto;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 99;
    background-color: black;
    opacity: 0.5;
}

#magSub #magGalleryControls {
    text-align: center;
}
