
* {
    margin: 0;
    padding: 0;
    font-size: 16px;
    color: var(--primary-text-color);
}

html {
    height: 100%;
}

.parallax_bild {
    height: 467px;
    background-image: url("images/clown-fish.jpg");
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: 100% auto;
}

.parallax_bild h1 {
    max-width: var(--max-width);
    margin: 0 auto;
    padding-top: 100px;
    text-align: right;
    font-size: 4vw;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--secondary-text-color);
    text-shadow: -2px 2px 2px #000000;
    animation: einblenden 3s;
}

.parallax_bild h3 {
    max-width: var(--max-width);
    margin:0 auto;
    padding-top: 30px;
    text-align: right;
    font-size: 2.2vw;
    text-transform: uppercase;
    font-weight: 300;
    color: var(--secondary-text-color);
    animation: einblenden 3s;
}

*#contact {
    margin:3em 7em 0 0;
    padding: 0.5em 1.5em 0.5em 1.5em;
    border-radius: 3em;
    float: right;
    width: fit-content;
    background-color:var(--secondary-color);
    text-transform: uppercase;
    color: #000;
    font-weight: 400;
}  

@media(max-width:1024px){
    .parallax_bild {
        height: 380px;
        background-attachment: scroll;
        background-size: cover;
    }
}

@media(max-width:1000px){
    .parallax_bild {
        height: 400px;
        background-attachment: scroll;
        background-size: cover;
    }
}

@media(max-width:850px) {
/*    .parallax_bild {
        height: 400px;
        background-attachment: scroll;
        background-size: cover;
    }   */
    .parallax_bild h1 {
        width: 100%;
        margin: 0;
        font-size: 6vw;
        text-align: center;
    }

    .parallax_bild h3 {
        width: 100%;
        margin: 0;
        font-size: 5vw;
        text-align: center;
    }

    #contact {
        text-align: center;
        margin-top: 1em ;
    }
}

@media(max-width:450px) {
    .parallax_bild {
        height: 300px;
        background-attachment: scroll;
        background-size: cover;
    }
}

@keyframes einblenden {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

header {
    position: fixed;
    width: 100%;
    background-color: var(--background-color);
}

nav {
    max-width: var(--max-width);
    margin: 0 auto;
    height: var(--navbar-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav .logo {
    align-items: center;
}

nav .logo img {
    width: auto;
    height: 50px;
}

nav ul {
    height: 100%;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    list-style: none;
    text-transform: uppercase;
    margin-right: calc(0em - var(--gutter-width));
}

nav li {
    height: 100%;
    padding: 0 var(--gutter-width);
    text-align: center;   
    position: relative;
}

nav li li {
    padding: 0;
}

nav li:hover {
    background: var(--accent-color);
}

nav ul a {
    height: 100%;
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--navbar-text-color);
    text-decoration: none;
}

.dropdown {
    height: min-content;
    width: 12.5rem;
    background: var(--background-color);

    display: none;
    flex-direction: column;

    position: absolute;
    left: 0;
    top: var(--navbar-height);
}

.dropdown li {
    height: 2.375rem;
    width: 100%;
}

.dropdown li a {
    justify-content: flex-start;
    padding-left: 30px;
    width: calc(100%-30px);
}

nav li:hover .dropdown {
    display: flex;
}

nav input[type="checkbox"] {
    display: none;
}

.expandable_li {
    display: flex;
    justify-content: center;
    align-items: center;
}

label {
    color: var(--navbar-text-color);
}

.toggle_button {
    width: 30px;
    height: 23px;

    position: absolute;
    top: 25px;
    right: 25px;

    display: none;
    flex-direction: column;
    justify-content: space-between;
}

.bar {
    height: 4px;
    width: 100%;
    background: var(--text-color);
    border-radius: 100px;
}

@media(max-width: 850px) {
    .toggle_button {
        display: flex;
    }

    nav ul {
        height: min-content;  
    
        width: 100%;
        background: var(--background-color);
        border-top: 1px solid #000;
        display: none;
        position:absolute;
        top: var(--navbar-height);
    }

    nav li {
        height: min-content;
        width: 100%;
        padding: 0;
    }

    nav ul a {
        padding: 1em 0;
        color: var(--navbar-text-color);
    }

    .expandable_li {
        display: block;
        padding: 0;
    }

    .expandable_li label {
        color: var(--navbar-text-color);
        padding: 1em 0;
        cursor: pointer;
        display: block;
    }

    .expandable_li:hover .dropdown {
        display: none;
    }

    .expandable_li input[type="checkbox"]:checked~.dropdown {
        display: block;
    }

    .dropdown {
        position:static;
        width: 100%;
        border-bottom: 1px solid #000;
    }

    .dropdown li {
        padding: 0;
        display: block;
        position: static;
        /*    background: var(--darker-background-color);*/
        background: var(--secondary-color);
    }

    .dropdown li a {
        width: 100%;
        padding: 0;
        justify-content: center;
    }

    #toggle_button:checked ~ ul {
        display: block;
    }
}

