nav {
    height: 10vh;
    width: 100%;
    background-color: white;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    box-shadow: 5px 0 5px rgba(0, 0, 0, 0.25);
    position: fixed;
    top: 0;
}

nav a {
    font-size: 14pt;
    height: 100%;
    padding: 0 20px;
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #4f4538;
}

nav a:hover {
    scale: 1.1;
    transition: 0.1s ease-out;
    color: #4f4538;
}

nav .home-link{
    margin-right: auto;
    font-size: 16pt;
    font-weight: bold;
}

nav .home-link-text {
    display: none;
}

nav svg {
    fill: #4f4538;
}

.links-container {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

#sidebar-active {
    display: none;
}

.open-sidebar-button, .close-sidebar-button {
    display: none;
}

#mobile-logo {
    display: none;
}

/* Für die mobile Ansicht */

@media(max-width: 900px) {
    
    .links-container{
        flex-direction: column;
        align-items: flex-start;

        position: fixed;
        top: 0;
        right: -100%;
        z-index: 10;
        width: 300px;

        background-color: white;
        box-shadow: -5px 0 5px rgba(0, 0, 0, 0.25);
        transition: 0.3s ease-out;
    }

    nav a {
        box-sizing: border-box;
        height: auto;
        width: 100%;
        padding: 20px 30px;
        justify-content: flex-start;
    }

    #headimage {
        height: 30svh;
    }

    main {
        width: 90%;
        margin: auto;
        padding: 30px 10px 10px 10px;
    }

    .open-sidebar-button, .close-sidebar-button {
        padding: 20px;
        display: block;
    }

    #sidebar-active:checked ~ .links-container {
        right: 0;
    }

    #sidebar-active:checked ~ #overlay {
        height: 100%;
        width: 100%;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 9;
    }

    .home-link {
        display: none;
    }

    nav .home-link-text {
        display: block;
    }

    #mobile-logo {
        display: block;
        margin-right: auto;
        margin-left: 3vw;
    }

}