html{
    scroll-behavior: smooth;
}

:root{
    --border-right: #DFE34D 5vh solid;
    --border-left: #DFE34D 5vh solid;
}

body{
    margin: 0;
    font-family: "Lucida Handwriting", Arial, Helvetica, sans-serif;
    font-size: 18px;
    color:#0b7513;
    line-height: 1.5;
    background-color: white;
    height: 100%;
    width: clamp(200px, 100%, 2000px);
    white-space: normal;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

header{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-right: var(--border-right);
    border-left: var(--border-left);
}

header img{
    width: clamp(50px, 100%, 500px);
    height: auto;
}

nav{
    font-size: 16px;
    color: black;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

nav a {
    margin-left: 2vh;
    text-decoration: none;
    color: black;
}

.dropdown-content {
    display: none;
    font-size: 16px;
    position: absolute;
    color: black;
    z-index: 1;
}

a{
    text-decoration: underline;
    color: #0b7513;
}

a:hover{
    text-decoration: underline;
    background-color: #DFE34D;
}

.active{
    background-color: #DFE34D;
}

main{
    padding: 5vh;
    border-right: var(--border-right);
    border-left: var(--border-left);
    height: clamp(100px, 100%, 1000px);
}

.zur-person{
    display: flex;
    justify-content: space-evenly;
    gap: 5%;
}

.zur-person .eigenes-bild{
    border-radius: 50%;
    max-width: 100%;
    max-height: 100%;
}

.leistungen{
    display: flex;
    justify-content: space-evenly;
    gap: 5%;
    overflow: hidden;
}

.leistungen .bilder_leistungen{
    border-radius: 10%;
    max-width: 80%;
    max-height: 80%;
}

.kontakt ul{
    list-style-type: none;
    text-align: center;
}

.seitenanfang{
    position: sticky;
    z-index: 99;
    bottom: 0;
    left: 2%;
    padding-top: 7%;
}

footer{
    display: flex;
    justify-content: space-between;
    padding-right: 10vh;
    padding-left: 10vh;
    padding-bottom: 2vh;
    background-color: #DFE34D;
    list-style-type: none;
    font-size: 12px;
    text-align: center;
    color: black;
}

footer div{
    flex: 1;
}

footer ul{
    list-style-type: none;
    display: table;
    text-align: center;
}

footer a {
    text-decoration: none;
    margin-left: 2vh;
    color: black;
}

figcaption {
    font-size: 0.4em;
    color: gray;
}

/* Medien spezifische Anpassungen */

@media (max-width: 600px) {
    nav {
        flex-direction: column;
        gap: 1rem;
    }
    
    body {
        font-size: 16px;
    }

    h1 {
        text-align: center;
        margin: 0;
    }

    .leistungen, .zur-person {
        flex-direction: column;
        gap: 3vh;
    }

    header img {
        max-width: 80%;
    }

    .kontakt, .leistungen ul{
        list-style: none;
        margin: 0;
    }

    footer {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 5vh 2vh;
    }

    footer ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }  
}

@media (max-width: 800px) {
    h1 {
        text-align: center;
        margin: 0;
    }

    .leistungen, .zur-person {
        flex-direction: column;
        gap: 5vh;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .zur-person .eigenes-bild{
        max-width: 50%;
        max-height: 50%;
    }

    .kontakt, .leistungen ul{
        list-style: none;
        margin: 0;
    }

    footer {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 5vh 2vh;
    }

    footer ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }  
}

@media (hover: hover) {
    
    .dropdown-nav:hover .dropdown-content {
        display: block;
        background-color: #0b7513;
    }

    .dropdown-content a {
        padding: 10px 10px;
        color: black;
        text-decoration: none; 
        display: block; 
    }

    .dropdown-content a:hover {
        background-color: #DFE34D;
    }
}
  