/* -------------------- LAYOUT: HEADER & NAVIGATION -------------------- */

header {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--anthra-dark);
    padding: 1rem;
    z-index: 1001;
    box-shadow: 0 2px 6px rgba(26, 24, 22, 0.9);
    transition: transform 0.4s ease, opacity 0.4s ease, box-shadow 0.4s ease;
    opacity: 1;
}

header.hide {
    transform: translateY(-100%);
    opacity: 0;
    box-shadow: none;
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Nur im Desktop aktiv – wird im Media Query überschrieben */
.nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Hover-Effekt für Links */
nav a:hover {
    background-color: var(--brown-medium);
    color: var(--gold);
    animation: fire-glow 1.2s ease-in-out infinite alternate;
}

/* -------------------- MOBILE MENU: BUTTON & OVERLAY -------------------- */

.menu-toggle {
    position: fixed;
    top: 1rem;
    left: 1rem;
    width: 30px;
    height: 24px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gold);
    font-family: 'Cinzel', serif;
    font-size: 1.6rem;
    font-weight: bold;
    z-index: 1200;
    margin: 0;
}

.menu-toggle.open .icon-bars {
    opacity: 0;
    transform: scale(0);
}

.menu-toggle.open .icon-l {
    display: block;
    transform: scale(1);
}

.menu-toggle:focus-visible {
    outline: none;
}

/* -------------------- OVERLAY -------------------- */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(26, 24, 22, 0.9);
    z-index: 900;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.menu-overlay.active {
    display: block;
    opacity: 1;
}

/* -------------------- SLIDE-IN ANIMATION -------------------- */
.nav-links.active li {
    opacity: 0;
    transform: translateX(-20px);
    animation: slideIn 0.3s ease forwards;
}

.nav-links.active li:nth-child(1) {
    animation-delay: 0.1s;
}

.nav-links.active li:nth-child(2) {
    animation-delay: 0.2s;
}

.nav-links.active li:nth-child(3) {
    animation-delay: 0.3s;
}

.nav-links.active li:nth-child(4) {
    animation-delay: 0.4s;
}

.nav-links.active li:nth-child(5) {
    animation-delay: 0.5s;
}

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fire-glow {
    0% {
        box-shadow: 0 0 6px var(--gold), 0 0 10px var(--gold-light);
    }

    50% {
        box-shadow: 0 0 12px var(--gold), 0 0 18px var(--gold-light);
    }

    100% {
        box-shadow: 0 0 6px var(--gold), 0 0 10px var(--gold-light);
    }
}

@keyframes heroLogoFadeIn {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes header-glow {
    0% {
        text-shadow:
            0 0 1px white,
            0 0 2px var(--gold-light),
            0 0 4px var(--gold);
    }

    50% {
        text-shadow:
            0 0 1px white,
            0 0 3px var(--gold-light),
            0 0 6px var(--gold);
    }

    100% {
        text-shadow:
            0 0 1px white,
            0 0 2px var(--gold-light),
            0 0 4px var(--gold);
    }
}



header.show-glow {
    box-shadow: 0 0 12px 2px var(--gold);
    animation: header-glow 1.2s ease-in-out;
}

@keyframes glowing-fire {
    0% {
        box-shadow: 0 0 5px var(--gold), 0 0 10px var(--gold);
    }

    25% {
        box-shadow: 0 0 8px var(--gold-light), 0 0 16px var(--gold-light);
    }

    50% {
        box-shadow: 0 0 4px var(--gold), 0 0 12px var(--gold);
    }

    75% {
        box-shadow: 0 0 10px var(--gold-light), 0 0 18px var(--gold-light);
    }

    100% {
        box-shadow: 0 0 5px var(--gold), 0 0 10px var(--gold);
    }
}

.header-glow-animated {
    animation: glowing-fire 2s infinite ease-in-out;
}

/* -------------------- HERO SECTION / CONTENT -------------------- */
.hero {
    padding: 6rem 2rem 3rem 2rem;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    background: linear-gradient(to bottom, var(--anthra), var(--anthra-dark));
    border-radius: 16px;
    box-shadow: 0 0 24px rgba(214, 168, 79, 0.15);
    backdrop-filter: blur(3px);
    position: relative;
    overflow: hidden;
}


.content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
    text-align: left;
    /* oder center, je nach Wunsch */
}

/* -------------------- FOOTER -------------------- */
footer {
    background-color: var(--anthra-dark);
    padding: 1rem;
    text-align: center;
    margin-top: 2rem;
    font-size: 0.9rem;
}

/* -------------------- MEDIA QUERIES -------------------- */
@media (min-width: 769px) {
    .menu-toggle {
        display: none;
    }

    header {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
        /* Abstand zwischen Titel und Nav */
    }

    nav {
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .nav-links {
        display: flex;
        justify-content: center;
        gap: 1.5rem;
        list-style: none;
        padding: 0;
        margin: 0;
    }
}



@media (max-width: 768px) {
    .nav-links {
        flex-direction: column;
        position: fixed;
        top: 0;
        left: -250px;
        width: 200px;
        height: 100%;
        background: linear-gradient(to bottom, #1a1a1a, #0d0d0d);
        padding: 2rem 1rem;
        gap: 1rem;
        box-shadow: 4px 0 10px rgba(26, 24, 22, 0.9);
        transition: left 0.3s ease;
        z-index: 900;
        text-align: left;
    }

    .menu-toggle {
        display: block;
    }

    nav a {
        display: block;
        padding: 0.5rem 0.8rem;
    }
}

.nav-links.active {
    left: 0;
}