/*
Projekt:   Website Pixel & Prosa
Version:   0.0.2

Datei:     mainDesign.css
Autor:     Ronald F. Böhmer
erstellt:  21.02.2026
geändert:  23.02.2026
*/

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat/Montserrat-VariableFont_wght.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Garamond';
    src: url('../fonts/Garamond/EBGaramond-VariableFont_wght.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #E8D5B5;
    margin: 0;
    padding: 0;
    color: #2A3A5A;
}

header {
    background-color: #2A3A5A;
    padding: 1rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center; /* Zentriert die Kind-Elemente horizontal */
    max-width: 1200px;
    width: 100%;
    padding: 0 2rem;
    position: relative; /* Für absolute Positionierung des Hamburger-Menüs */
}

.logo {
    margin-right: 2rem; /* Abstand zwischen Logo und Navigation */
    margin-left: 2rem; /* Optional: Symmetrischer Abstand */
}


.logo img {
    height: 50px;
    width: auto;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 1.5rem;
}

nav a {
    color: #E8D5B5;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
}

nav a:hover {
    color: #D4AF37;
}

main {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center; /* Optional: Falls du den Text ebenfalls zentrieren möchtest */
}

h1, h2, h3 {
    font-family: 'Garamond', serif;
}

footer {
    background-color: #2A3A5A;
    color: #E8D5B5;
    text-align: center;
    padding: 1rem 0;
    margin-top: 2rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.footer-links a {
    color: #E8D5B5;
    text-decoration: none;
}

.footer-links a:hover {
    color: #D4AF37;
}

/* Hamburger Menu Styles */
.hamburger {
    display: none;
    cursor: pointer;
    padding: 10px;
    position: absolute; /* Positioniert das Hamburger-Menü absolut */
    right: 2rem; /* Abstand vom rechten Rand */
    top: 50%;
    transform: translateY(-50%); /* Zentriert vertikal */
}

.hamburger div {
    width: 25px;
    height: 3px;
    background-color: #E8D5B5;
    margin: 5px 0;
    transition: 0.4s;
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    
    nav ul {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: #2A3A5A;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 2rem; /* Abstand von oben */
        transition: 0.5s;
    }

    nav ul.active {
        left: 0;
    }

    .header-content {
        justify-content: space-between;
    }

    .logo {
        margin-right: 0;
    }
}


