:root {
    --bg: #0B0810;
    --grid: rgba(139, 92, 191, 0.45);
    --text: #E6E6E6;
    --headline: #F5F5F5;
    --accent: #BFA8E8;
    --panel: rgba(22, 18, 31, 0.05); /* noch transparenter */
    --panel-border: rgba(139, 92, 191, 0.28);
    --nav-gray: #C8C8C8;
}

/* Background */
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: 'IBM Plex Sans', sans-serif;
    line-height: 1.8;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image:
        url('Graphics/hex-grid.svg'),
        linear-gradient(0deg, rgba(139,92,191,0.22) 1px, transparent 1px),
        linear-gradient(90deg, rgba(139,92,191,0.22) 1px, transparent 1px);
    background-size: 380px, 40px 40px, 40px 40px;
    opacity: 0.45;
    pointer-events: none;
    z-index: -1;
}

/* Header */
.header {
    text-align: center;
    padding: 7rem 0 3.5rem 0;
}

.header img {
    width: 50%;
    height: auto;
    filter: drop-shadow(0 0 26px rgba(0, 0, 0, 0.9));
}

.archive-tag {
    margin-top: 4.2rem;
    font-family: 'Lexend', sans-serif;
    font-size: 1.75rem;
    letter-spacing: 7px;
    color: var(--accent);
}

/* Navigation */
nav {
    margin-top: 3.5rem;
    text-align: center;
    width: 100%;
    position: relative;
    padding-top: 2rem;
}

nav::before,
nav::after {
    content: "";
    position: absolute;
    left: 12.5%;
    width: 75%;
    height: 2px;
    background: linear-gradient(
        to right,
        transparent,
        var(--accent),
        transparent
    );
}

nav::before { top: 0; }
nav::after { bottom: -1.8rem; }

nav a {
    color: var(--nav-gray);
    text-decoration: none;
    margin: 0 3rem;
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 1.5px;
}

nav a:hover {
    color: #FFFFFF;
    text-shadow: 0 0 12px #FFFFFF;
}

/* Content */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 5vh 5vw;
}

h1 {
    font-family: 'Sora', sans-serif;
    font-weight: 500;
    font-size: clamp(2.4rem, 6vw, 3.4rem);
    color: var(--headline);
    letter-spacing: -0.5px;
    margin-top: 6.5rem;
    margin-bottom: 1rem;
}

.tagline {
    font-family: monospace;
    color: #A48BD1;
    margin-bottom: 3rem;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.main-description {
    font-size: 1.25rem;
    color: var(--text);
    margin-bottom: 4rem;
    font-weight: 300;
    text-align: justify;
}

/* ARCHIVE_NAVIGATION Panel (Glas-Look) */
.archive-nav {
    background: var(--panel);
    backdrop-filter: blur(22px);
    padding: 2.5rem;
    margin-top: 4rem;
    border-left: 4px solid var(--panel-border);
    border-radius: 6px;
    text-align: center;
    box-shadow: inset 0 0 4px rgba(139, 92, 191, 0.06);
}

.archive-nav-title {
    font-family: monospace;
    color: var(--accent);
    font-size: 1rem;
    margin-bottom: 1.8rem;
    letter-spacing: 1px;
    text-shadow: 0 0 6px rgba(139, 92, 191, 0.6);
}

/* Terminal-style arrows */
.archive-nav-links {
    display: flex;
    justify-content: center;
    gap: 10rem;
}

.archive-nav-links a {
    color: var(--nav-gray);
    text-decoration: none;
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    position: relative;
    padding: 0.3rem 0.6rem;
}

/* PREVIOUS */
.archive-nav-links a:first-child::before {
    content: "<< Previous Entry :: ";
    position: absolute;
    left: -12rem;
    top: 0;
    color: var(--accent);
    opacity: 0.9;
}

/* NEXT */
.archive-nav-links a:last-child::after {
    content: " :: Next Entry >>";
    position: absolute;
    right: -12rem;
    top: 0;
    color: var(--accent);
    opacity: 0.9;
}

.archive-nav-links a:hover {
    color: #FFFFFF;
    text-shadow: 0 0 12px #FFFFFF;
}

/* Footer */
footer {
    margin-top: 6rem;
    padding: 3rem 0;
    text-align: center;
    font-size: 0.75rem;
    color: #777;
    letter-spacing: 3px;
}
/* MOBILE OPTIMIZATION (Burger & Responsive) */
@media (max-width: 768px) {
    .header img {
        width: 80%; /* Logo auf Handy etwas größer */
    }

    .archive-nav-links {
        flex-direction: column; /* Links untereinander statt nebeneinander */
        gap: 4rem;
        align-items: center;
    }

    /* Entferne die weiten Abstände nach links/rechts für Mobile */
    .archive-nav-links a:first-child::before,
    .archive-nav-links a:last-child::after {
        position: static; /* Text wieder in den Fluss bringen */
        display: block; /* Eigene Zeile für "Next Entry" */
        margin-bottom: 0.5rem;
        left: 0;
        right: 0;
    }

    .container {
        padding: 2vh 5vw;
    }

    h1 {
        font-size: 2rem; /* Überschrift kleiner für kleine Screens */
    }
}
/* Smart Links im Text */
.smart-link {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid rgba(191, 168, 232, 0.3);
    transition: all 0.2s ease-in-out;
    font-weight: 600;
}

.smart-link:hover {
    border-bottom: 1px solid var(--accent);
    text-shadow: 0 0 8px var(--accent);
    background: rgba(191, 168, 232, 0.05);
}