/* Basis-Setup für das Wiki */
.wiki-body {
    background: #050508;
    color: white;
    font-family: 'Rajdhani', sans-serif;
    margin: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.wiki-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background: rgba(255, 60, 60, 0.1);
    border-bottom: 1px solid var(--rh-red);
}

.back-btn {
    color: var(--rh-red);
    text-decoration: none;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    border: 1px solid var(--rh-red);
    padding: 5px 15px;
    transition: 0.3s;
}

    .back-btn:hover {
        background: var(--rh-red);
        color: black;
    }

/* Das 2-Spalten-Layout */
.wiki-container {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* --- SIDEBAR (Links) --- */
.wiki-sidebar {
    width: 280px;
    background: rgba(10, 10, 15, 0.9);
    border-right: 1px solid #333;
    overflow-y: auto;
}

.nav-category {
    border-bottom: 1px solid #222;
}

/* Der klickbare Kategorie-Kopf */
.nav-category-title {
    font-family: 'Orbitron', sans-serif;
    color: #aaa;
    padding: 12px 20px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s, color 0.3s;
}

    .nav-category-title:hover {
        background: rgba(255, 60, 60, 0.1);
        color: var(--rh-red);
    }

    /* Der animierte Pfeil */
    .nav-category-title .arrow {
        font-size: 0.7rem;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

/* Container für die Unterpunkte */
.nav-items-container {
    background: rgba(10, 10, 15, 0.95);
    overflow: hidden;
    /* Wird per JavaScript ein- und ausgeblendet */
}

.nav-item {
    padding: 10px 20px 10px 30px; /* Etwas weiter eingerückt */
    cursor: pointer;
    border-left: 3px solid transparent;
    transition: 0.2s;
    color: #888;
    font-size: 0.95rem;
}

    .nav-item:hover {
        background: rgba(255, 255, 255, 0.05);
        color: white;
    }

    .nav-item.active {
        border-left-color: var(--rh-red);
        background: rgba(255, 60, 60, 0.1);
        color: var(--rh-red);
        font-weight: bold;
    }

/* --- HAUPTANZEIGE (Rechts) --- */
.wiki-display {
    flex: 1;
    padding: 40px;
    overflow-y: auto;
    position: relative;
    /* Blueprint Hintergrund-Raster */
    background-image: linear-gradient(rgba(255, 60, 60, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 60, 60, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
}

.hologram-placeholder {
    text-align: center;
    color: var(--rh-red);
    font-family: 'Orbitron', sans-serif;
    margin-top: 20vh;
    opacity: 0.5;
}

/* Detail-Ansicht der Einträge */
.entry-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    color: var(--rh-red);
    margin: 0 0 10px 0;
    text-transform: uppercase;
    border-bottom: 2px solid var(--rh-red);
    padding-bottom: 10px;
    display: inline-block;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.stat-box {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid #444;
    padding: 15px;
    text-align: center;
    position: relative;
}

    .stat-box::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 10px;
        height: 10px;
        border-top: 2px solid var(--rh-red);
        border-left: 2px solid var(--rh-red);
    }

.stat-label {
    font-size: 0.8rem;
    color: #888;
    text-transform: uppercase;
}

.stat-val {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    font-family: 'Orbitron', sans-serif;
    margin-top: 5px;
}

/* --- BILD & HEADER BEREICH --- */
.entry-header-flex {
    display: flex;
    gap: 25px;
    align-items: flex-start;
    margin-bottom: 20px;
}

.entry-image-container {
    position: relative;
    width: 360px;
    aspect-ratio: 3 / 1;
    flex-shrink: 0;
    border: 2px solid var(--rh-red);
    background: rgba(0, 0, 0, 0.5);
    padding: 5px;
    box-shadow: 0 0 15px rgba(255, 60, 60, 0.2);
}

    /* Ein kleiner Tech-Rahmen für das Bild */
    .entry-image-container::before {
        content: '';
        position: absolute;
        top: -2px;
        left: -2px;
        right: -2px;
        bottom: -2px;
        border: 1px solid rgba(255, 60, 60, 0.5);
        z-index: -1;
    }

.entry-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Verhindert, dass das Bild verzerrt wird */
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.2));
}

/* Titel-Anpassung, damit er sauber neben dem Bild steht */
.entry-title {
    margin-top: 0;
    margin-bottom: 10px;
}