@media (prefers-reduced-motion: no-preference) {
    * {
        scroll-behavior: smooth;
    }
}

body {
    margin: 0;
    padding: 0;
    font-family: Garamond, sans-serif;
}

a {
    text-decoration: none;
    color: black;
    padding: 20px;
}

a:hover {
    color: gray;
}


.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 9999;
    background-color: #fff;
}

#logo {
    height: 80%;
    border: 0;
    margin: 0 0 0 10%;
}

nav {
    width: 20%;
    margin-right: 20px;
}

nav > ul {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-inline-start: 0;
    margin-block: 0;
    height: 100%;
    list-style: none;
}

nav > ul > li {
    margin-right: 10%;
    margin-left: 15px;
    font-size: larger;
}

nav > ul > li > a {
    white-space: nowrap;
    font-weight: bold;
}

main {
    font-size: 1.2em;
    margin: 0;
    padding-top: 120px;
}

#filler {
    height: 30vh;
    width: 100%;
    background-image: url('./pics/keller.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

h2 {
    text-align: center;
}

.content-box {
    border: 6px solid rgb(201, 178, 128);
    padding: 0 5% 2% 5%;
    margin: 2% auto;
    width: 70vw;
}

#vdr {
    display: flex;
    background-color: red;
    justify-content: center;
    margin: auto;
    height: 50px;
    width: auto;
}

.metext {
    text-align: center;
}
#projekte, #leistung {
  text-align: center;
  line-height: 1.5;
  list-style-position: inside; 
  padding: 0;
  margin: 0 auto; 
  width: fit-content;
}
.metext > a {
    margin: 0;
    padding: 0;
}

#sti {
    height: auto;
    width: 40%;
    display: block;
    margin: 0 auto;
}



.kontakt {
    text-align: center;
    }


.kontakt >a {
    margin:0;
    padding:0;
    
}

footer {
    margin-top: 3%;
    height: 100px;
    text-align: center;
}

footer > ul {
    list-style: none;
    display: flex;
    justify-content: center;
    padding-inline-start: 0;
    margin-block: 0;
}

footer > ul a:hover {
    color: gray;
}

.impressum {
    text-align: center;
    margin: auto; 
    width:80%;
}
.impressum a {
  padding:0;
}
.datenschutz {
    text-align: center;
    width:80%;
    margin:auto;
}

.closed {
    display: none;
}

.burger-menu {
    display: none;
    cursor: pointer;
    position: fixed;
}

.burger-menu .bar {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 4px 0;
    transition: 0.4s;
}

.change .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-3px, 3px);
}

.change .bar:nth-child(2) {
    opacity: 0;
}

.change .bar:nth-child(3) {
    transform: rotate(45deg) translate(-3px, -3px);
}

@media screen and (max-width: 1024px) {
    .navbar {
        display: none;
        position: absolute;
        background: white;
        top: 100px;
        left: 80%;
        width: 20%;
        height: calc(100vh - 100px);
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
        z-index: 1;
        overflow-y: hidden;
        align-items: flex-start;
        justify-content: space-evenly;
        list-style: none;
        opacity: 95%;
    }

   
    .close-menu {
        font-weight: bold;
        justify-content: center;
    }

    nav > ul > li > a {
        padding: 20px;
        text-align: left;
    }

    nav > ul > li {
        padding-bottom: 20px;
        padding-top: 20px;
        margin: 0;
        border-bottom: 1px solid black;
        text-align: left;
    }

    nav > ul > li:not(.closed):hover {
        background-color: antiquewhite;
        font-weight: bold;
        cursor: pointer;
        color: black;
    }

    .burger-menu {
        display: block;
        right: 5vw;
    }

    .responsive {
        display: block;
    }

    .closed {
        display: flex;
    }

    .closed:hover {
        display: flex;
        font-weight: bolder;
        cursor: pointer;
    }

    #logo {
        height: 60%;
        margin: 0 0 0 5%;
    }
}

@media screen and (max-width: 499px) {
    .navbar {
        left: 0;
        width: 100%;
        text-align: center;
    }

    nav > ul > li > a {
        padding: 20px 40%;
        text-align: center;
    }

    nav > ul > li {
        padding-bottom: 20px;
        padding-top: 20px;
        border-bottom: 1px solid black;
        text-align: center;
    }

    nav > ul > li:not(.closed):hover {
        background-color: antiquewhite;
        font-weight: bold;
        cursor: pointer;
        color: black;
    }

    .responsive {
        display: block;
    }

    #logo {
        height: 40%;
        margin: 0 0 0 5%;
    }
}

@media screen and (max-width: 400px) {
    h1 {
        font-size: 1.2rem;
        white-space: nowrap;
    }
}
