/* --- BASIS FARBEN: FELDHANDBUCH --- */
:root {
    --bg-main: #1e201c; /* Gedecktes, dunkles Olivgrau */
    --bg-sidebar: #161814; /* Noch dunkler für die Seitenleiste */
    --bg-card: #252822; /* Für Boxen im Text */
    --text-main: #e5e7eb; /* Klares Leseweiss */
    --text-muted: #8b9084; /* Militärisches Schilfgrau für Nebentexte */
    --accent: #c0a062; /* Mattes Messing/Sand für Links und Akzente */
    --border: #33362e;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    margin: 0;
    padding: 0;
    line-height: 1.7;
    display: flex; /* Baut das Layout aus Sidebar links und Content rechts auf */
    min-height: 100vh;
}

/* --- DEMO BANNER --- */
.demo-banner {
    position: fixed;
    top: 0; left: 0; right: 0;
    background: #000;
    color: #fff;
    text-align: center;
    padding: 10px 40px;
    font-size: 0.85rem;
    border-bottom: 1px solid var(--accent);
    z-index: 2000;
}
.demo-banner p { margin: 0; }
.demo-banner a { color: var(--accent); text-decoration: none; margin-left: 10px; border-bottom: 1px dotted var(--accent); }
.close-banner-btn { position: absolute; right: 20px; top: 5px; background: none; border: none; color: #999; cursor: pointer; font-size: 1.2rem; }

/* --- SEITENLEISTE (WIKI SIDEBAR) --- */
.sidebar {
    width: 280px;
    background-color: var(--bg-sidebar);
    border-right: 1px solid var(--border);
    padding: 60px 2rem 2rem 2rem; /* 60px oben wegen des Banners */
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    box-sizing: border-box;
}

.sidebar-title {
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-main);
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 10px;
}

.wiki-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.wiki-menu li {
    margin-bottom: 0.8rem;
}

.wiki-menu-category {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 2rem 0 0.5rem 0;
    display: block;
}

.wiki-menu a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.95rem;
    display: block;
    padding: 5px 0;
    transition: color 0.2s;
}

.wiki-menu a:hover, .wiki-menu a.active {
    color: var(--accent);
}

/* --- HAUPTINHALT (READING AREA) --- */
.main-content {
    flex: 1;
    margin-left: 280px; /* Platz für die Sidebar machen */
    padding: 80px 4rem 4rem 4rem; /* Oben Platz für Banner */
    max-width: 900px;
}

.wiki-header {
    margin-bottom: 3rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1rem;
}

.wiki-header h1 {
    font-size: 2.5rem;
    margin: 0 0 10px 0;
    font-weight: 600;
}

.wiki-meta {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-family: monospace; /* Ein klein wenig technischer Look bleibt für Metadaten */
}

/* --- WIKI KARTEN (ÜBERSICHT) --- */
.grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.wiki-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    padding: 1.5rem;
    text-decoration: none;
    color: var(--text-main);
    border-radius: 4px;
    transition: transform 0.2s, border-color 0.2s;
}

.wiki-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
}

.wiki-card h3 {
    margin: 0 0 10px 0;
    color: var(--accent);
    font-size: 1.1rem;
}

.wiki-card p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* --- RESPONSIVE FÜR HANDYS --- */
@media (max-width: 768px) {
    body {
        flex-direction: column; /* Auf Handys alles untereinander */
    }
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        padding: 60px 1.5rem 1.5rem 1.5rem;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }
    .main-content {
        margin-left: 0;
        padding: 2rem 1.5rem;
    }
}