* {
    margin: 0;
    padding: 0;
    max-width: 100%;
    max-height: 100%;
}

html{
    scroll-behavior: smooth;
    height: 100%;

    background-image: url('../graphics/background.png');
    background-position: right bottom;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-color: #e6a996;
}

body {
    height: 100%;

    /* Main Grid */
    display: grid;
    grid-template-columns: auto;
    grid-template-rows: 375px auto 150px;
    font-family: Arial, Helvetica, sans-serif;
}

a, a:link, a:visited{
    text-decoration: none;
    color: #000;
}

header {
    grid-column: 1;

    /* Header Grid */
    display: grid;
    grid-template-columns: auto;
    grid-template-rows: 50px 75px 250px;
}

#top-bar {
    grid-column: 1;
    background-color: #fff;
    border-bottom: 1px solid #ccc;
    font-size: smaller;
    font-weight: bolder;
    padding: 0 10px;

    /* Top Bar Grid */
    display: grid;
    grid-template-columns: auto auto auto auto auto auto auto;
    align-content: center;
}

/* icons */
.tel::before, .mobile::before, .adress::before, #facebook::before, #instagram::before {
    /* Font Awesome */
    content: "";
    background-size: 100% 100%;
    display: inline-block;

    height: 20px;
    width: 20px;

    position: relative;
    top: 5px;
}

.tel {
    grid-column: 1;
    text-align: left;
}

.mobile {
    grid-column: 2;
    text-align: left;
}

.tel::before, .mobile::before {
    /* Font Awesome */
    background-image: url('../graphics/square-phone-flip-solid.svg');
}

.adress {
    grid-column: 3 / 4;
    text-align: left;

    /* !don't show on small screens */
    display: none;
}

.adress::before {
    /* Font Awesome */
    background-image: url('../graphics/location-dot-solid.svg');
}

#facebook {
    grid-column: 4;
    text-align: right;
    text-decoration: none;
    color: #000;

    /* !don't show on small screens */
    display: none;
}

#facebook::before {
    /* Font Awesome */
    background-image: url('../graphics/square-facebook.svg');
}

#instagram {
    grid-column: 5;
    text-align: right;
    text-decoration: none;
    color: #000;
    
    /* !don't show on small screens */
    display: none;
}

#instagram::before {
    /* Font Awesome */
    background-image: url('../graphics/instagram.svg');
}

#language_switch {
    grid-column: 6;
    text-align: right;
}

#language_switch a {
    text-decoration: none;
}

#language_switch img {
    width: 15px;
    height: 12px;
}

nav {
    padding: 0 10px;

    /* Nav Grid*/
    display: grid;
    grid-template-columns: 95% auto;
    grid-template-rows: auto auto;
    align-content: center;
}

#website_title {
    grid-column: 1;
    grid-row: 1;
    color: #dd3333;
}

#website_slogan {
    grid-column: 1;
    grid-row: 2;
    color: #dd3333;
}

#menu_icon {
    grid-column: 2;
    grid-row: 1;
    font-size: x-large;
    font-weight: bolder;
    color: #dd3333;
    z-index: 1;
    cursor: pointer;
}

#main_nav {
    display: none;
    position: absolute;
    z-index: 1;
    left: 0;
    top: 125px;
    width: 100%;
    height: 100%;
    min-height: 800px;
    background-color: rgba(0,0,0,.5);
}

.nav_element {
    background-color: #fff;
    margin: 0px;
    padding: 0 10px;
    max-height: 50px; 
    line-height: 50px;   
    cursor: pointer;
}

.nav_element:hover {
    font-weight:bolder;
    padding-left: 15px;
}

.nav_element:last-of-type {
    background-color: #dd3333;
    border-style: solid;
    border-width: 0;
}

#header-pic {
    grid-column: 1;
    background-color: brown;
    background-image: url('../graphics/header.jpg');
    background-position: center;
}

#page_title {
    text-align: left;
    vertical-align: middle;
    color: #fff;
    font-size: xx-large;
    font-weight: bold;
    min-width: 85%;
    min-height: 100%;
    line-height: 250px; /* !needs to match height of grid colum for #header-pic to be vertically centered */
    background-color: rgba(0, 0, 0, 0.6);
}

section {
    grid-column: 1;
    padding: 10px 10px;
}

article h3 {
    margin-top: 30px;
    margin-bottom: 12px;

    text-align: left;
    color: #dd3333;
    width: 100%;
    display: block;
}

article p{
    margin-bottom: 5px;
    
}

.active {
    display: block;
}

.inactive{
    display: none;
} 

.gallery{
    width: 100%;
    margin: 25px 0;
    text-align: center;
}

.gallery::after {
    content: "";
    clear: both;
    display: table;
  }

.dropped{
    padding-top: 50px;
    width: 40%;
    max-width: 175px;
    margin: 5px;
    float: left;
}

.thumbnail {
    width: 40%;
    max-width: 175px;
    margin: 5px;
    border-radius: 5px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
}

.dropped .thumbnail{
    width: 100%;
    margin: 0;
}

#lightbox{
    display: none;
    position: fixed;
    z-index: 2;
    padding-top: 100px;
    left: 0;
    top: 0;
    overflow: auto;
    min-height: 100%;
    min-width: 100%;
    background-color: rgba(0,0,0,.9);
    text-align: center;
}

#lightbox img{
    position: relative;
    margin: auto;
    padding: 0;
    width: 90%;
    max-width: 1200px;
    border-radius: 25px;
}

#lightbox .close{
    color: #fff;
    position: absolute;
    top: 10px;
    right: 25px;
    font-size:larger;
    font-weight: bold;
}

#lightbox .close:hover, #lightbox .close:focus {
    color: #999;
    text-decoration: none;
    cursor: pointer;
}

.container{
    /* placeholder */
}

.container::after {
    content: "";
    clear: both;
    display: table;
  }

.left{
    float: left;
}

.right{
    float: right;
}

.teaser{
    float: left;
    margin: 15px;
    margin-bottom: 25px;
    padding: 5px;
    width: 38%;
    max-width: 250px;
    min-height: 250px;
    background-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
}

.teaser h4{
    margin-bottom: 15px;
}

.teaser .pricetag{
    font-weight: bold;
    text-align: right;
    margin-top: 20px;
}

.teaser .conditions{
    font-size: x-small;
    text-align: right;
}

.contact_person{
    text-align: center;
    font-weight: bold;
    margin: 25px 0;
}

#map {
    width: 100%;
    max-width: 500px;
    min-height: 250px;
    border: 0;
    margin: 50px 0;
}

article table {
    border: 1px solid #000;
    width: 100%;
    margin: 15px 0;
}

article table caption {
    caption-side: bottom;
    font-size: x-small;
    font-weight: bold;
    text-align: right;
}

article th {
    text-align: left;
}

article th, article td {
    border-bottom: 1px solid #000;
}

article th:first-of-type, article th:nth-of-type(3) {
    border-bottom: 0px;
}

article button {
    display: inline-block;
    background-color: #dd3333;
    border: 1px solid #dd3333;
    border-radius: 25px;
    margin: 10px 0;
    padding: 5px 20px;
    font-weight: bold;
    cursor: pointer;
}

article button:hover{
    background-color: #dd3333;
    border-color:#dd3333;
    color: #fff;
    font-weight: bolder;
}

article ul, article ol{
    margin-bottom: 10px;
    padding-left: 25px;
    padding-bottom: 10px;
}

article ul li, article ol li{
    display: list-item;
    margin-bottom: 5px;
}

article form label{
    width: 100%;
    display: inline-block;
    font-size: small;
    margin-top: 5px;
}

article form input, article form select, article form textarea{
    width: 100%;
    display: inline-block;
    margin-bottom: 5px;
}

#lastname_label, #lastname{
    display: none;
}

.form_messages{
    display: none;
    font-size: small;
    font-weight: bold;
    margin-left: 15px;
}

footer {
    grid-column: 1;
    background-color: #e35130;
    margin: 0 0px;
    padding: 0 10px;
    color: #000;
    font-size: smaller;
    font-weight: bolder;

    /* Footer Grid */
    display: grid;
    grid-template-columns: auto auto;
    grid-template-rows: auto auto;
}

#copyright {
    grid-column: 1 / 2;
    grid-row: 2;
    text-align: left;
}

/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 768px) {
    #instagram, #facebook, .adress{
        display: block;
    }

    #instagram:hover, #facebook:hover{
        color: #dd3333;
    }

    input, select{
        max-width: 250px;
    }

    #page_title {
        font-size: 80px;
    }
} 

/* Large devices (laptops/desktops, 1024px and up) */
@media only screen and (min-width: 1024px) {
    body { 
        /* align page in center & increase header grid-row by 25px */
        grid-template-columns: auto 100% auto; /* 1009px */
        grid-template-rows: 775px auto 150px;
        
        /* have background image only behind content */
        background-position: center;
        background-size: 100% 100%;   /* 1009px */     

    }

    header, section, footer {
        grid-column: 2;
    }

    header {
        grid-template-rows: 50px 75px 650px;
    }

    /* have left + right some spacing */
    #top-bar, nav, section, #page_title, footer {
        padding: 0 100px;
    }   

    #page_title {
        font-size: 100px;
    }

    nav {
        /* swap amount of spaces inside of nav row */
        grid-template-columns: auto 75%;
    }

    #menu_icon{
        display: none;
    }

    #main_nav{
        grid-column: 2;
        grid-row: 1/2;
        text-align: right;
        overflow: visible;
        display: block;
        position: static;
        z-index: 0;
        min-height: 25px;
        max-height: 25px;
        background-color: rgba(0, 0, 0, 0); /* remove bg color */
    }
    
    .nav_element {
        display: inline-block;
        background-color: rgba(0, 0, 0, 0); /* remove bg color */
        margin: 10px 0;
        padding: 0 10px;
        max-height: 25px; 
        line-height: 25px;   
        cursor: pointer;
        font-size: smaller;
        font-weight: bolder;
    }
    
    .nav_element:hover {
        color: #dd3333;
        padding-left: 10px;
    }
    
    .nav_element:last-of-type {
        border: 1px solid #000;
        border-radius: 25px;        
    }

    #page_title {
        line-height: 500px; /* !needs to match height of grid colum for #header-pic to be vertically centered */
    }
} 