/* Allgemeine Einstellungen */
html {
    scroll-padding-top: 120px; /* Abstand für den Header */
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #F8F3ED;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #4A3F35;
    display: flex;
    flex-direction: column;
}

.hamburger {
    display: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 25px;
    z-index: 1000;
    cursor: pointer;
    width: 30px;
    height: 30px;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease-in-out;
}

.hamburger div {
    background-color: #4A3F35;
    height: 4px;
    width: 100%;
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

/* Transform hamburger into an "X" when active */
.hamburger.active div:nth-child(1) {
    transform: rotate(45deg) translate(12px, 6px);
}

.hamburger.active div:nth-child(2) {
    opacity: 0;
}

.hamburger.active div:nth-child(3) {
    transform: rotate(-45deg) translate(12px, -6px);
}

/* Hide the nav by default on smaller screens */
nav {
    position: fixed;
    top: 100px;
    left: 0;
    height: calc(100vh - 100px);
    width: 250px;
    background-color: #DAC7B5;
    padding: 20px 15px;
    overflow-y: auto;
    border-right: 2px solid #B3A393;
    box-shadow: 2px 0 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease-in-out;
}

/* Fixierter Titel oben */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #DAC7B5;
    color: #b89789;
    text-align: center;
    padding: 15px 0;
    z-index: 999;
    border-bottom: 2px solid #B3A393;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

header h1 {
    margin: 0;
    font-weight: 600;
    font-size: 2em;
}

header img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: 0 2px 15px rgba(0,0,0,0.2);
    border: 2px solid #B3A393;
}

nav ul {
    list-style: none;
    padding: 0;
}

nav ul li {
    margin-bottom: 15px;
}

nav ul li a {
    color: #4A3F35;
    text-decoration: none;
    font-weight: 300;
}

nav ul li a:hover {
    text-decoration: underline;
    color: #8C7A6B;
}

/* Hauptinhalt rechts von der Navigation */
main {
    margin-left: 270px;
    padding: 30px;
    padding-top: 130px;
    max-width: 900px;
    background-color: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    border-left: 6px solid #B4B49A;
}

section {
    margin-bottom: 40px;
}

article {
    margin-bottom: 50px;
}

h2 {
    color: #8C7A6B;
    font-weight: 600;
    margin-bottom: 10px;
    border-bottom: 2px solid #DAC7B5;
    padding-bottom: 5px;
}

h3 {
    color: #b89789;
    margin-top: 24px;
}

ul {
    margin: 0;
    padding-left: 20px;
    color: #4A3F35;
}

ul li {
    margin-bottom: 5px;
}

p {
    margin-bottom: 15px;
    color: #4A3F35;
}

footer {
    background-color: #DAC7B5;
    color: #4A3F35;
    text-align: center;
    padding: 15px 0;
    margin-top: 40px;
    border-top: 2px solid #B3A393;
}

footer p {
    margin: 0;
    font-weight: 300;
}

@media (max-width: 768px) {
    nav {
        transform: translateX(-100%);
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        width: 250px;
        background-color: #DAC7B5;
        z-index: 999;
        box-shadow: 2px 0 15px rgba(0, 0, 0, 0.1);
        padding: 20px 15px;
    }

    nav ul {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .hamburger {
        display: flex;
    }

    nav.active {
        transform: translateX(0);
    }

    main {
        margin-left: 0;
        padding: 30px 15px;
        padding-top: 80px;
    }
}