body {
    margin: 0;
    padding: 0;
    background-color: #F2F2F2;
    font-family: 'Merriweather', serif;
    height: 100vh;
    overflow: hidden;
}

.navbar {
    width: 100%;
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    background-color: #F2F2F2;
    z-index: 100;
}

.nav-item {
    padding: 0 20px;
    cursor: pointer;
    font-family: 'Merriweather', serif;
    font-weight: 300;
    font-size: 16px;
}

.content-div {
    width: 100%;
    height: calc(100vh - 80px);
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    z-index: 1;
    overflow-y: auto;
}

#Struktur {
    background-color: #F2F2F2;
}

#main {
    background-color: #F2F2F2;
    text-align: center;
}

.main-container {
    width: 816px;
    background-color: #FFF;
    padding: 20px;
    display: inline-block;
}

#main img {
    height: calc(50vh - 40px);
    width: auto;
    max-width: 100%;
    object-fit: contain;
    display: block;
}

#menu {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    background-color: #F2F2F2;
}

.menu-item {
    font-family: 'Merriweather', serif;
    font-weight: 300;
    font-size: 46px;
    padding: 15px 20px;
    margin: 5px 0;
    cursor: pointer;
    text-align: center;
    white-space: nowrap;
    display: inline-block;
    transform-origin: center;
}

.submenu-div {
    width: 100%;
    height: calc(100vh - 80px);
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    z-index: 10;
    overflow-y: auto;
}

#Biographie {
    background-color: #F2F2F2;
}

#Werke {
    background-color: #F2F2F2;
}

#Briefe {
    background-color: #F2F2F2;
}

#Gedichte {
    background-color: #F2F2F2;
}

#Museum {
    background-color: #F2F2F2;
}

#Impressum {
    background-color: #F2F2F2;
}

#impressum-link {
    position: fixed;
    bottom: 10px;
    left: 10px;
    font-family: 'Merriweather', serif;
    font-weight: 300;
    font-size: 12px;
    color: #666;
    cursor: pointer;
    z-index: 1001;
}

#impressum-link:hover {
    color: #333;
}

@media (min-width: 769px) {
    .nav-item {
        font-size: 24pt;
    }
    .template-content {
        width: 50%;
        margin-left: 25%;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 10px 0;
        flex-direction: row;
    }
    .nav-item {
        padding: 0 10px;
        font-size: 14px;
    }
    #menu {
        width: 100%;
    }
    .menu-item {
        font-size: 24px;
        padding: 10px 15px;
        margin: 5px 0;
    }
}
