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

body{
    font-family: 'Optima', sans-serif;
    background-repeat: no-repeat;
    background-size: 100%;
}

/* HEADER +
NAVBAR */

header {
    box-shadow: 0px 3px 10px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0px;  /* to make position:sticky work */
    height: 60px;
    background:white;
    display: flex;
    flex-flow: row wrap;
    justify-content: space-evenly;
}


.logo {
    display: flex;
    align-items: center;
}

.refresh {
    text-decoration: none;
    font-weight: bold;
    color: black;
    font-size: 1.5em;
    line-height: 1.2em;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.toggleButton{
    position: absolute;
    top: .75rem;
    right: 1rem;
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 31px;
    height: 21px;
}

.toggleButton .bar{
    height: 3px;
    width: 100%;
    background-color: black;
}

.nav {
    margin: 0;
    display: flex;
    align-items: center;
}

nav.hover {
    border-bottom: solid 1px skyblue;
}

.nav h1,
.nav ul {
    font-size: 1.5em;
    flex: 1;
    text-align: center;
}

.nav ul {
    list-style: none;
    display: flex;
}

.nav ul li {
    display: block;
    padding: 1rem;
}

.nav a {
    letter-spacing: 2px;
}

.nav a:hover {
    letter-spacing: 2px;
}

/* START MAIN
START SEARCH */

.wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;   
    padding: 5% 0% 0% 0%; 
}

main {
    width: 100%;
    background: white;
    padding: 1% 5% 3% 5%;
}

section {
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

h2 {
    font-size: 1.3em;
    color: rgb(13, 87, 148);
    text-align: center;
    padding: 3% 5% 0 5%;
}

h3 {
    font-size: 1.1em;
    color: rgb(3, 22, 39);
    text-align: center;
    padding: 3% 5% 0 5%;
}

#start {
    display: flex;
    flex-flow: column wrap;
    width: 100%;
    text-align: justify;
    margin: -80px 0 0 0;
    padding: 62px 0 5% 0;
}

.intro {
    display: flex;
    width: 80%;
    max-width: 550px;
    overflow: hidden;
    margin-bottom: 5%;
    text-align: justify;
    font-size: 1em;
    padding: 2% 5% 2% 5%;
    line-height: 1.5em;
}

form {
    display: flex;
    flex-flow: column wrap;
    flex-shrink: 3;
    width: 100%;
    max-width: 550px;
    justify-content: center;
    align-items: center;

}

.searchBox {
    display: flex;
    direction: row;
    width: 100%;
    align-items: center;
    padding: 5% 8% 2% 8%;
    font-size: 1.5em;
}

.label {
    display: flex;
    flex: 1;
    width: 100%;
    font-size: 1em;
}
  
.search {
    display: flex;
    flex: 2;
    width: 100%;
    padding: 1%;
    font-size: 1.2rem;
    border: 1px solid #EEEEEE;
    box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.15);
    border-radius: 5px;
    text-align: center;
}

.search:hover, .search:active, .search:focus  {
    border: 1px solid darkgrey;
    box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.15);
    outline: none;
}

.button {
    background: white;
    border: 1px solid #EEEEEE;
    box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.15);
    border-radius: 5px;
    color: rgb(13, 87, 148);
}

.button:hover {
    color: white;   
    background: rgb(13, 87, 148);
}

#searchButton {
    padding: 1% 2% 1% 2%;
    margin: 5% 5% 5% 5%;
    font-size: 1.2em;
}

.spacer {
    display: flex;
    width: 100%;
    border-bottom: solid 1px black;
}

/* START ACCOMMODATION */

#accommodation {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
    padding: 5% 0 5% 0;
    margin-top: -60px;
    padding-top: 60px;
}

.frame {
    display: flex;
    flex: 1;
    align-items: center;
    padding:0;
    margin:0 1% 0 1%;
}

.frame img {
    display: flex;
    max-height: 300px;
    width: 100%;
    height: auto;
}

.textAccommodation {
    display: flex;
    flex-flow: column wrap;
    flex: 1;
    text-align: justify;
    line-height: 1.5em;
    padding: 4%;
}

h3 {
    color: rgb(13, 87, 148);
    padding-bottom: 2%;
}

.textAccommodation a {
    color: rgb(13, 87, 148);
}

/* START CONTACT */

#contact {
    display: flex;
    flex-flow: column wrap;
    width: 100%;
    padding: 5% 0 5% 0;
    margin-top: -60px;
    padding-top: 60px;
}

.contactWrapper {
    display: flex;
    flex-direction: row;
    flex: 1;
}

.textContact {
    display: flex;
    flex-flow: column wrap;
    flex: 1;
    text-align: justify;
    line-height: 1.5em;
    padding: 4%;
}

.contactForm {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    width: 100%;
    padding: 2% 2% 0 2%;
}

.contactForm h2 {
    line-height: 2em;
    padding-bottom: 5%;
}

.contactInput {
    display: flex;
    min-height: 2em;
    padding: 1%;
    margin: 2%;
    color: black;
    border: 1px solid #EEEEEE;
    box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.15);
    border-radius: 5px;
    font-size: 1em;
    font-family: "Optima";
}

.firstLine {
    display: flex;
    flex-flow: row wrap;
    width: 100%;
}

#contactName {
    flex: 1;
}

#contactMail {
    flex: 1;
}

#contactMessage {
    flex: 2;
    text-align: start;
    min-width: 96%;
}

.contactCheckbox {
    display: flex;
    margin: 1%;
}

.contactForm a {
    color: rgb(13, 87, 148);
}

#contactButton {
    padding: 1%;
    margin: 2% 2% 0 2%;
    font-size: 1em;
}

/* START FOOTER */

footer {
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
    box-shadow: 0px 3px 10px rgba(0, 0, 0, 0.3); /* x, y, z, (shadow:1, 2, 3, opacity) */
    position: sticky;
    bottom: 0px;  /* to make position:sticky work */
    min-height: 7vh;
    width: 100%;
    z-index: 1;
    padding: 1%;
    background:white;
}

.footerBar {
    display: flex;
    flex: 1;
    width: 100%;
}

.copyright {
    display: flex;
    font-style: italic;
    flex: 1;
}

footer ul {
    display: flex;
    list-style: none;
    align-items: center;
    justify-content: space-evenly;
    width: 100%;
    margin: 0;
    padding: 0;
}

footer ul li {
    
    margin: 0;
}

#consent-popup {
    position: fixed;
    height: fit-content;
    text-align: center;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 3%;
    opacity: 1;
    background-color: rgb(238, 238, 238);
    transition: opacity .8s ease;
    z-index: 1;
}

#consent-popup.hidden {
    opacity: 0;
    bottom:0;
}

.link {
    color: rgb(13, 87, 148);
    text-decoration: none;
}

.link:hover,
.link:active {
    color: darkgrey;
    cursor: pointer;
}

#accept {
    font-weight: bold;
}

/* RESULTS.PHP */

#back {
    display: flex;
    flex-flow: column wrap;
    font-size: 1.2em;
    text-align: center;
    padding: 2% 3% 2% 1%;
}

#back a, a:active {
    color: rgb(13, 87, 148);
    font-weight: bold;
}


#results {
    display: flex;
    flex-flow: row wrap;
    align-items: stretch;
    justify-content: center;
    width: 100%;
    padding: 0 3% 0 3%;
}

.resultBox {
    display: flex;
    flex-flow: column wrap;
    align-items: center;
    flex-basis: 0;
    flex: 1 1 0px;
    margin: 1em;
    border: solid 1px darkgrey;
    padding-bottom: 1%;
}

.cardImgFrame {
    display: flex;
    width: 100%;
    flex: 4;
}

.cardImg {
    display: flex;
    width: 100%;
    height: auto;
    padding: 5%;
}

.data {
    display: flex;
    text-align: center;
    height: auto;
}

#data1 {
    font-size: 1.2em;
}

#data2 {
    font-weight: bold;
    color: rgb(13, 87, 148);
}

.infoBox {
    display: flex;
    font-size: .8em;
    padding: 2% 2% 0 2%;
}

#googleMap{
    display: flex;
    flex-flow: column wrap;
    width: 80%;
    height: 200px;
}

/* IMPRESSUM, DATENSCHUTZERKLÄRUNG UND AGB*/

#impressum {
    display: flex;
    flex-flow: column nowrap;
    align-items: center;
    text-align: justify;
    width: 100%;
    margin: 0;
    padding: 2%;
    line-height: 1.5em;
    font-size: 1em;
}

#impressum h2 {
    color: rgb(13, 87, 148);
    font-size: 2em;
    padding-bottom: 5%;
    line-height: 1.2em;
}

#impressum h3 {
    color:rgb(13, 87, 148);
    font-size: 1.2em;
    padding: 5% 0 5% 0;
}

a {
    text-decoration: none;
    color: black;
}

a:hover,
a:active {
    text-decoration: none;
    color: darkgrey;
}

/* FLEX CONTAINER */

.container {
    padding: 10px;
    max-width: 70%;
    margin: 0px auto;
    margin-bottom: 24px;
}

.flex-row {
    display: flex;
    flex-direction: row;
    gap: 10px;
}

.flex-row > .flex-col {
    margin-bottom: 10px;
}

.flex-1 { flex: 1; }
.flex-2 { flex: 2; }
.flex-3 { flex: 3; }
.flex-4 { flex: 4; }
.flex-5 { flex: 5; }
.flex-6 { flex: 6; }
.flex-7 { flex: 7; }
.flex-8 { flex: 8; }
.flex-9 { flex: 9; }
.flex-10 { flex: 10; }
.flex-11 { flex: 11; }
.flex-12 { flex: 12; }

.card {
    padding: 16px 20px;
    border: 1px solid #EEEEEE;
    box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.15);
    border-radius: 4px;
}

/* MEDIA RESPONSIVE DESIGN:
INDEX.HTML */

@media (max-width: 900px) {
    .toggleButton {
        display: flex;
        margin: 1%;
        cursor: pointer;
        z-index: 1;
    }

    body {
        font-size: 100%;
    }
    
    .wrapper {
        margin: 0;
        width: 100%;
    }

    header {
        display: flex;
        flex-flow: column nowrap;
        padding: 0 15% 0 5%;
    }

    .nav {
        display: none;
        z-index: -1;
        position: absolute;
        align-items: center;
        height: 100vh;
        top: 0;
        right: 0;
        box-shadow: 0px 3px 10px rgba(0, 0, 0, 0.3);
        background: white;
        transition: all 1s ease-in-out;
        z-index: 0;
    }

    .nav ul {
        width: 100%;
        flex-direction: column;
        gap: 60px;
    }

    .nav ul li {
        text-align: center;
    }
    
    .nav ul li a {
        font-size: .8em;
    }

    .nav.active {
        display: flex;
    }
    
    h2 {
        font-size: 1em;
        padding-bottom: 3%;
    }

    .searchBox {
        flex-flow: column nowrap;
        padding: 1%;
    }

    .search {
        width: auto;
        min-width: 15em;
        font-size: .9rem;
        padding: 1%;
        background: white;
        font-family: 'Roboto', sans-serif;
    }

    .label {
        padding-bottom: 2%;
        justify-content: center;
        font-size: .75em;
    }

    #searchButton {
        font-size: 1em;
    }
}

@media (max-width: 700px) {
    footer {
        flex-flow: column wrap;
        padding: 1% 2% 1% 2%;
        min-height: 7vh;
        gap: 5px;
    }

    .footerBar {
        width: 100%;
    }

    .footer ul {
        flex-direction: row;
        justify-content: space-evenly;
        gap: 2px;
    }

    .copyright {
        text-align: center;
    }
}

@media (max-width: 350px) {
    .footerBar ul {
        flex-flow: column wrap;
    }
}

@media (max-width: 480px) {
    #accommodation {
        flex-flow: column wrap;
    }

    .contactWrapper {
        flex-direction: column;
    }

    main {
        padding-top: 0;
    }
}

@media (max-width: 400px) {
    .refresh {
        font-size: 1.2em;
    }
}

@media (max-width: 480px) {
    .flex-row {
        flex-direction: column;
    }

    .flex-row > .flex-col {
        margin-right: 0px;
    }
}

/* MEDIA RESPONSIVE DESIGN:
RESULTS.PHP */

@media (max-width: 480px) {
    .resultBox {
        min-width: 50%;
    }
}

@media (min-width: 481px) {
    .resultBox {
        min-width: 30%;
        max-width: 46%;
    }
}

@media (min-width: 769px) {
    .resultBox {
        min-width: 25%;
        max-width: 28%;
    }
}