/* --- TYCHO DESIGN SYSTEM V4.1 [MASTER] --- */
/* --- ARCHITECT: ARVID STERN | SYSTEM: AEGIS --- */

:root {
    /* --- COLOR PALETTE --- */
    --bg-deep: #000000;
    --bg-card: rgba(10, 15, 30, 0.6);
    --bg-card-hover: rgba(20, 25, 40, 0.9);
    
    --text-main: #e0e0e0;
    --text-muted: #8899cc; /* Nav Links */
    --text-dark: #444444;
    
    --accent-primary: #6E7ACF; /* Aegis Indigo */
    --accent-green: #00ff41;   /* Terminal Green */
    --accent-alert: #ff5555;   /* Error/Alert */
    --whatsapp: #25D366;
    
    /* --- FONTS --- */
    --font-term: 'Consolas', 'Courier New', monospace;
    --font-ui: 'Courier Prime', monospace;
    /* NEU: Orbitron Variable */
    --font-logo: 'Orbitron', sans-serif;
}

/* --- TYCHO PATCH: FUSIONS-KLASSE --- */
.highlight-glow {
    color: var(--accent-primary); /* Dein definiertes Indigo/Violett */
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.7); /* Der zarte weiße Glow */
}
/* ==========================================================================
   TYCHO PATCH: GLOBAL BOX-MODEL & OVERFLOW FIX (Mobile Stabilisierung)
   ========================================================================== */

/* 1. Zwingt alle Elemente, Padding und Border NACH INNEN zu berechnen */
html {
    box-sizing: border-box;
    overflow-x: hidden; /* Kappt unsichtbare Kanten, die iOS zum Scrollen zwingen */
    width: 100vw;
}

*, *:before, *:after {
    box-sizing: inherit;
}

/* 2. Zwingt den Body, niemals breiter als der Bildschirm zu werden */
body {
    overflow-x: hidden;
    max-width: 100%;
    /* Verhindert, dass superlange Links auf Mobile das Layout sprengen */
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* --- BASE LAYER --- */
body {
    margin: 0; padding: 0;
    background-color: var(--bg-deep);
    color: var(--text-main);
    font-family: var(--font-term);
    /* Flex-Befehle restlos gelöscht */
    padding: 20px; line-height: 1.5; min-height: 100vh;

    background-image: 
        linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, #000 95%),
        url('files/images/charon-bg.webp'); 
    background-size: cover; background-position: center top;
    background-attachment: fixed; background-repeat: no-repeat;
}
.container { 
    max-width: 800px; 
    width: 100%; 
    text-align: center; 
    margin: 0 auto; /* Zentriert die Matrix wieder absolut fehlerfrei */
}

/* --- TYPOGRAPHY --- */
h1 { 
    font-size: 1.8rem; letter-spacing: 3px; margin-bottom: 5px; 
    text-transform: uppercase; font-weight: bold; color: #fff; 
    text-shadow: 0 0 10px rgba(255,255,255,0.3); 
}

/* --- SECTION TITLE: FLEXBOX UPGRADE --- */
h2.section-title {
    display: flex;
    align-items: center;
    text-align: center;
    font-size: 0.75rem;
    margin: 40px 0 25px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #fff;
}

/* Zieht die horizontalen Linien links und rechts vom Text */
h2.section-title::before,
h2.section-title::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #333;
}

h2.section-title::before { margin-right: 15px; }
h2.section-title::after { margin-left: 15px; }

/* Der Text selbst: 100% transparent mit Aegis-Glow */
h2.section-title span {
    background: transparent;
    padding: 0;
    color: #fff;
    text-shadow: 0 0 15px rgba(110, 122, 207, 0.8);
    box-shadow: none;
}
/* --- NAVIGATION & LINKS --- */
.subline { margin-bottom: 25px; font-size: 0.9rem; }
.nav-link { color: var(--text-muted); text-decoration: none; transition: all 0.3s ease; cursor: pointer; }
.nav-link:hover { color: #fff; text-shadow: 0 0 10px var(--accent-primary); }
.separator { margin: 0 10px; color: #444; }

/* --- SOCIAL ICONS --- */
.social-row { display: flex; justify-content: center; gap: 25px; margin-bottom: 40px; padding-bottom: 20px; border-bottom: 1px solid #333; }
.social-btn { color: #ffffff; width: 28px; height: 28px; transition: all 0.3s ease; display: flex; align-items: center; justify-content: center; text-decoration: none; }
.social-btn:hover { transform: scale(1.2); color: var(--accent-primary); filter: drop-shadow(0 0 5px #ffffff); }
.social-btn svg { width: 100%; height: 100%; fill: currentColor; }

.social-btn.wa-btn:hover {
    color: var(--whatsapp);
    filter: drop-shadow(0 0 8px var(--whatsapp));
}

/* --- GRID SYSTEM (DASHBOARD) --- */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    width: 100%;
}

.module-card {
    background: var(--bg-card);
    border: 1px solid #444;
    padding: 20px;
    text-align: left;
    text-decoration: none;
    display: flex; flex-direction: column; justify-content: space-between;
    transition: all 0.3s ease;
    position: relative; height: 100px;
}

.module-card:hover {
    border-color: var(--accent-primary);
    background: var(--bg-card-hover);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
}

.module-label { font-size: 0.65rem; color: var(--accent-primary); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 5px; }
.module-title { font-size: 1.1rem; font-weight: bold; color: var(--text-main); text-transform: uppercase; transition: 0.3s; }
.module-card:hover .module-title { color: #fff; text-shadow: 0 0 8px #fff; }

.module-icon {
    position: absolute; bottom: 15px; right: 15px;
    font-size: 1.2rem; color: #444; transition: 0.3s;
}
.module-card:hover .module-icon { color: var(--accent-primary); transform: scale(1.2); }

/* --- SPECIAL BUTTONS & MODIFIERS --- */
.full-width-btn { grid-column: span 2; text-align: center; align-items: center; justify-content: center; background: rgba(10, 15, 30, 0.4); border: 1px dashed #444; }

.mission-alert { border-color: #aa3333; background: rgba(50, 10, 10, 0.3); }
.mission-alert:hover { border-color: var(--accent-alert); box-shadow: 0 0 20px rgba(255, 0, 0, 0.4); }
.mission-alert .module-title { color: #ffaaaa; }
.mission-alert:hover .module-title { color: var(--accent-alert); text-shadow: 0 0 10px var(--accent-alert); }

.locked { opacity: 0.6; cursor: help; border-style: dotted; }
.locked:hover { transform: none; box-shadow: none; border-color: #444; }

/* --- TERMINAL (STATUS BOX) --- */
.status-terminal {
    width: 100%; box-sizing: border-box;
    background: #050505;
    border: 1px solid #333; border-left: 3px solid var(--accent-green);
    padding: 15px; margin-bottom: 40px;
    font-family: var(--font-term); text-align: left;
    position: relative; box-shadow: 0 0 10px rgba(0, 255, 0, 0.05);
}

.terminal-header {
    font-size: 0.65rem; color: #666; margin-bottom: 10px;
    text-transform: uppercase; letter-spacing: 1px;
    border-bottom: 1px dashed #222; padding-bottom: 5px;
    display: flex; justify-content: space-between;
}

.terminal-text { color: #ccc; font-size: 0.85rem; line-height: 1.5; }
.terminal-highlight { color: var(--accent-green); font-weight: bold; }

/* Container-Logik für die Card */
.tooltip-container {
    position: relative;
    cursor: help;
}

/* Der Tooltip-Style */
.tooltip-text {
    visibility: hidden;
    width: 180px;
    background-color: var(--bg-deep);
    color: var(--accent-primary); /* Terminal-Grün */
    text-align: center;
    border: 1px solid var(--accent-primary); /* Aegis-Indigo */
    padding: 8px;
    font-family: var(--font-term);
    font-size: 0.75rem;
    
    /* Positionierung über der Card */
    position: absolute;
    z-index: 100;
    bottom: 110%; 
    left: 50%;
    transform: translateX(-50%); /* Perfekt zentriert */
    
    /* Effekt */
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
    box-shadow: 0 0 15px rgba(110, 122, 207, 0.3);
    pointer-events: none; /* Verhindert Flackern beim Drüberfahren */
}

/* Dreieck-Pfeil unten am Tooltip */
.tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: var(--accent-primary) transparent transparent transparent;
}

/* Einblenden beim Hover */
.tooltip-container:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(-5px); /* Kleiner "Slide-Up" Effekt */
}


/* --- FOOTER & LOGOS --- */
.logo-evolution-wrap {
    display: flex; justify-content: center; align-items: center; gap: 40px;
    margin-top: 50px; margin-bottom: 30px;
}
.evo-logo { width: 70px; height: auto; transition: all 0.4s ease; filter: brightness(0.6) sepia(1) hue-rotate(200deg) saturate(1) opacity(0.8); }
.evo-logo:hover { transform: scale(1.15); filter: none; opacity: 1; }

.footer { margin-top: 30px; font-size: 0.7rem; color: #444; }
.footer a { color: #666; text-decoration: none; }
.footer a:hover { color: #fff; }

.system-footer {
    position: relative; bottom: 20px; width: 100%; text-align: center;
    font-family: var(--font-ui); font-size: 0.75rem;
    color: rgba(37, 211, 102, 0.5); letter-spacing: 1px; z-index: 5;
}
.system-footer span { margin: 0 10px; }

/* --- ANIMATIONS --- */
.cursor {
    display: inline-block; width: 8px; height: 15px;
    background: var(--accent-green);
    animation: blink 1s infinite; vertical-align: middle; margin-left: 5px;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.glitch-link {
    color: var(--whatsapp); text-decoration: none; margin-left: 10px;
    display: inline-block; animation: signal-flicker 4s infinite; transition: text-shadow 0.2s;
}
.glitch-link:hover { text-shadow: 0 0 8px var(--whatsapp); color: #fff; }

@keyframes signal-flicker {
    0%, 94%, 96%, 100% { opacity: 1; transform: skew(0); }
    95% { opacity: 0.2; transform: skew(5deg); }
    97% { opacity: 0.8; }
    98% { opacity: 0.1; transform: skew(-3deg); }
}

/* --- EXTRAS (PROFILBILD) --- */
.avatar {
    width: 120px; height: 120px; border-radius: 50%;
    background-color: #222; margin: 40px auto 20px;
    border: 2px solid #ffffff; object-fit: cover;
}

/* --- KA'RIEL TRANSMISSION BOX --- */
.transmission-box {
    width: 100%;
    box-sizing: border-box;
    background: rgba(15, 10, 25, 0.8); /* Leichter Violett-Stich im Schwarz */
    border: 1px solid #443366; /* Dunkles Lila */
    border-left: 3px solid #aa88ff; /* Helles Ka'Riel Violett */
    margin-bottom: 40px;
    position: relative;
    box-shadow: 0 0 20px rgba(110, 100, 200, 0.15);
    backdrop-filter: blur(5px);
    text-align: left;
}

.transmission-header {
    background: rgba(40, 30, 60, 0.5);
    padding: 8px 15px;
    font-size: 0.65rem;
    color: #aa88ff;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 1px solid #443366;
    display: flex;
    align-items: center;
}

.blink-dot {
    color: #ff3333; /* Roter Aufnahme-Punkt */
    margin-right: 10px;
    font-size: 1rem;
    animation: blinker 2s linear infinite;
}

.transmission-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.transmission-text {
    font-family: var(--font-ui);
    color: #e0e0e0;
    font-size: 0.9rem;
    font-style: italic;
    margin-bottom: 15px;
    text-align: center;
}

.transmission-text strong {
    color: #aa88ff;
    text-transform: uppercase;
}

/* Custom Audio Player Styling (Basis) */
.custom-audio {
    width: 100%;
    height: 35px;
    border-radius: 4px;
    filter: invert(0.6) sepia(0.25) hue-rotate(216deg) saturate(2); /* Macht den Standard-Player violett-artig */
    opacity: 0.8;
    transition: 0.3s;
}
.custom-audio:hover { opacity: 1; filter: invert(0.9) hue-rotate(200deg) saturate(3); }

/* --- WAVEFORM ANIMATION --- */
.waveform-visual {
    display: flex;
    gap: 3px;
    height: 20px;
    margin-bottom: 15px;
    align-items: center;
}

.bar {
    width: 3px;
    background: #aa88ff;
    animation: wave 1.2s ease-in-out infinite;
}

.bar:nth-child(1) { height: 10px; animation-delay: 0.0s; }
.bar:nth-child(2) { height: 15px; animation-delay: 0.1s; }
.bar:nth-child(3) { height: 20px; animation-delay: 0.2s; }
.bar:nth-child(4) { height: 12px; animation-delay: 0.3s; }
.bar:nth-child(5) { height: 18px; animation-delay: 0.4s; }
.bar:nth-child(6) { height: 8px; animation-delay: 0.5s; }

@keyframes wave {
    0%, 100% { height: 5px; opacity: 0.5; }
    50% { height: 20px; opacity: 1; box-shadow: 0 0 5px #aa88ff; }
}

/* ========================================= */
/* --- MODUL: ARCHIV & AUDIO LOGS (V4.1) --- */
/* ========================================= */

.page-header-wrap {
    text-align: center; margin-bottom: 40px; 
    border-bottom: 1px solid #333; padding-bottom: 20px; padding-top: 20px;
}

.glow-text { text-shadow: 0 0 15px rgba(110, 122, 207, 0.6); }

.subtitle {
    font-size: 0.75rem; color: var(--accent-primary); 
    letter-spacing: 1.5px; margin-top: 5px; text-transform: uppercase;
}

.back-link {
    color: #888; text-decoration: none; font-size: 0.8rem;
    border: 1px solid #333; padding: 8px 20px; transition: all 0.2s;
    text-transform: uppercase; letter-spacing: 1px; display: inline-block;
    font-family: var(--font-term);
}
.back-link:hover {
    color: #fff; border-color: var(--accent-primary);
    background: rgba(110, 122, 207, 0.1);
    box-shadow: 0 0 10px rgba(110, 122, 207, 0.4);
}

.timeline-marker {
    text-align: center; color: var(--accent-primary); font-size: 0.7rem;
    margin: 30px 0 10px 0; letter-spacing: 2px; font-weight: bold;
    opacity: 0.8; position: relative; text-transform: uppercase;
}
.timeline-marker::before, .timeline-marker::after {
    content: ""; display: inline-block; width: 30px; height: 1px;
    background: #444; vertical-align: middle; margin: 0 10px;
}

.log-entry {
    margin-bottom: 15px;
    border: 1px solid #333; 
    background: var(--bg-card);
    border-left: 3px solid #444;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    position: relative; overflow: hidden; width: 100%;
}

.log-entry:hover {
    border-color: var(--accent-primary);
    background: var(--bg-card-hover);
    transform: translateX(3px);
}

.log-entry.active {
    border-left-color: var(--accent-primary);
    border-color: var(--accent-primary);
    background: rgba(15, 15, 25, 0.95);
    box-shadow: 0 0 20px rgba(110, 122, 207, 0.15);
}

.log-header {
    padding: 15px 20px; cursor: pointer; display: flex;
    justify-content: space-between; align-items: center; user-select: none;
}

.log-title { 
    font-weight: bold; color: var(--text-main); font-size: 0.9rem; 
    text-transform: uppercase; letter-spacing: 1px; 
}
.log-entry.active .log-title { color: #fff; text-shadow: 0 0 5px #fff; }

.log-meta { 
    font-size: 0.7rem; color: var(--accent-primary); text-align: right; 
    min-width: 120px; margin-left: 10px; 
}

.log-content {
    max-height: 0; overflow: hidden; transition: max-height 0.5s cubic-bezier(0, 1, 0, 1);
    border-top: 1px solid transparent;
}
.log-entry.active .log-content {
    max-height: 2000px; border-top: 1px solid #444; padding: 25px;
}

audio {
    width: 100%; height: 30px; margin-bottom: 20px;
    filter: invert(1) hue-rotate(180deg);
    opacity: 0.8; border-radius: 4px;
}
audio:hover { opacity: 1; }

.transcript { font-size: 0.85rem; color: #ccc; line-height: 1.6; text-align: left; margin-bottom: 20px; }

.speaker {
    color: #fff; font-weight: bold; display: block; margin-top: 15px; margin-bottom: 5px;
    text-transform: uppercase; font-size: 0.75rem; letter-spacing: 1px;
    border-left: 2px solid var(--accent-primary); padding-left: 10px;
}

.context { font-style: italic; color: #888; font-size: 0.75rem; display: block; margin-bottom: 15px; }

.credits-container {
    margin-top: 60px; border-top: 1px solid #333; padding-top: 30px; text-align: center;
}

.credits-title {
    font-size: 0.7rem; color: #666; letter-spacing: 3px; margin-bottom: 30px; text-transform: uppercase;
}

.cast-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; font-size: 0.8rem; }

.cast-member {
    background: var(--bg-card);
    padding: 15px;
    border: 1px solid #333;
    border-left: 2px solid #555;
    transition: 0.3s;
    display: flex; justify-content: space-between; align-items: center;
}

.cast-member:hover {
    border-color: var(--accent-primary);
    border-left-color: var(--accent-primary);
    background: var(--bg-card-hover);
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(110, 122, 207, 0.2);
}

.cast-info { text-align: left; }

.role {
    display: block; color: var(--accent-primary); font-size: 0.65rem; 
    text-transform: uppercase; margin-bottom: 2px; font-weight: bold; letter-spacing: 1px;
}

.actor-name { color: #fff; font-size: 0.9rem; font-weight: bold; }
.cast-member:hover .actor-name { text-shadow: 0 0 5px #fff; }

.social-link { color: #666; transition: 0.2s; display: flex; align-items: center; justify-content: center; padding: 5px; }
.social-link:hover { color: var(--accent-primary); transform: scale(1.2); filter: drop-shadow(0 0 5px #fff); }

.icon { width: 20px; height: 20px; fill: currentColor; display: block; }

/* ========================================= */
/* --- MODUL: AUTOR PROFIL & NERD ZONE --- */
/* ========================================= */

.active-page { 
    color: #fff !important; 
    border-bottom: 1px solid var(--accent-primary); 
    text-shadow: 0 0 5px var(--accent-primary); 
}

.profile-pic {
    width: 120px; height: 120px; border-radius: 50%;
    background-color: #222; margin: 40px auto 20px;
    border: 2px solid #fff; object-fit: cover;
    box-shadow: 0 0 20px rgba(255,255,255,0.1);
}

.terminal-box {
    background: rgba(10, 15, 30, 0.7);
    border: 1px solid #333;
    border-left: 4px solid var(--accent-primary);
    padding: 30px;
    text-align: left;
    margin-bottom: 40px;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
}

.terminal-box h2 {
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 1.1rem;
    border-bottom: 1px dashed #444;
    padding-bottom: 10px;
    margin-top: 0; margin-bottom: 20px;
    font-family: var(--font-term);
}

.highlight { color: var(--accent-primary); font-weight: bold; }
.white-glow { color: #fff; text-shadow: 0 0 5px #fff; }

.terminal-box p { color: #ccc; margin-bottom: 20px; font-size: 1rem; }
.terminal-box i { color: #aaa; }

.nerd-list {
    list-style: none; padding: 0; margin: 0;
    background: rgba(0,0,0,0.3);
    border: 1px solid #333;
    padding: 15px;
}

.nerd-list li {
    margin-bottom: 8px;
    color: #bbb;
    font-size: 0.9rem;
    border-bottom: 1px solid #222;
    padding-bottom: 5px;
    display: flex; justify-content: space-between;
}
.nerd-list li:last-child { border-bottom: none; }

.key { 
    color: var(--accent-primary); 
    text-transform: uppercase; 
    font-size: 0.8rem; 
    display: inline-block; 
    min-width: 100px;
}
.val { color: #fff; text-align: right; }

.back-nav { margin-top: 30px; }
.back-nav a { 
    color: #666; text-decoration: none; 
    font-size: 0.8rem; text-transform: uppercase; 
    letter-spacing: 2px; transition: 0.3s; 
}
.back-nav a:hover { color: #fff; text-shadow: 0 0 5px #fff; }

/* Mobile Anpassung für Nerd List & Archive */
@media screen and (max-width: 600px) {
    .dashboard-grid { grid-template-columns: 1fr; }
    .full-width-btn { grid-column: span 1; }
    .avatar { width: 100px; height: 100px; }
    h1 { font-size: 1.5rem; }
    
    .terminal-box { padding: 20px; }
    .nerd-list li { flex-direction: column; }
    .val { text-align: left; margin-left: 0; }
    
    .cast-grid { grid-template-columns: 1fr; }
    .log-header { flex-direction: column; align-items: flex-start; gap: 5px; }
    .log-meta { text-align: left; margin-left: 0; }
}

/* --- CLASSIFIED / EASTER EGGS --- */
styley { display: none; }

/* ========================================= */
/* --- MODUL: MISSION ALERT (RED PROTOCOL) --- */
/* ========================================= */

body.alert-protocol {
    background-image: 
        linear-gradient(to bottom, rgba(50, 0, 0, 0.6) 0%, #000 95%),
        url('files/images/charon-bg.webp');
}

.profile-pic.alert-mode {
    border-color: var(--accent-alert);
    box-shadow: 0 0 20px rgba(255, 50, 50, 0.3);
}

.alert-protocol h1 {
    text-shadow: 0 0 15px var(--accent-alert);
}

.text-alert { color: var(--accent-alert); text-shadow: 0 0 5px red; }
.highlight-red { color: var(--accent-alert); font-weight: bold; }

.terminal-box.alert-level {
    background: rgba(30, 5, 5, 0.85);
    border-color: #500;
    border-left-color: var(--accent-alert);
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.15);
}

.terminal-box.alert-level h2 {
    color: #ffaaaa;
    border-bottom-color: #700;
    text-shadow: 0 0 8px #ff0000;
}

.btn-mission-action {
    display: inline-block;
    background: #330000;
    color: #ffcccc;
    border: 1px solid var(--accent-alert);
    padding: 15px 30px;
    text-decoration: none;
    font-weight: bold;
    margin: 20px 0;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: var(--font-term);
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.2);
}

.btn-mission-action:hover {
    background: var(--accent-alert);
    color: #000;
    box-shadow: 0 0 25px var(--accent-alert);
    transform: scale(1.05);
}

/* ========================================= */
/* --- MODUL: READER MODE (LESEPROBE) --- */
/* ========================================= */

/* --- Darker Background for Reading --- */
body.reader-mode {
    color: #c5c6c7;
    line-height: 1.8;
    padding-bottom: 80px;
    background-image: 
        linear-gradient(to bottom, rgba(0,0,0,0.8) 0%, #000 100%),
        url('files/images/charon-bg.jpg'); 
}

/* --- Header Specifics --- */
.reader-mode header { text-align: center; margin-bottom: 50px; border-bottom: 1px solid #333; padding-bottom: 20px; }

.meta-data { 
    font-size: 0.75rem; color: var(--accent-primary); 
    letter-spacing: 1px; margin-top: 10px; text-transform: uppercase; 
}

/* --- STORY CONTAINER (Glass Look) --- */
.file-content {
    background: rgba(10, 15, 30, 0.85); /* Dunkleres Glas */
    border: 1px solid #333;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    position: relative;
    text-align: justify;
}

/* Ecken-Akzente (Indigo) */
.file-content::before {
    content: ""; position: absolute; top: 0; left: 0;
    width: 20px; height: 20px; 
    border-top: 2px solid var(--accent-primary); 
    border-left: 2px solid var(--accent-primary);
}
.file-content::after {
    content: ""; position: absolute; bottom: 0; right: 0;
    width: 20px; height: 20px; 
    border-bottom: 2px solid var(--accent-primary); 
    border-right: 2px solid var(--accent-primary);
}

.file-content h2 { 
    font-size: 1.2rem; color: #fff; margin-top: 0; margin-bottom: 5px; 
    text-transform: uppercase; letter-spacing: 1px; 
}

.location-tag {
    display: block; font-size: 0.8rem; color: var(--accent-primary); font-style: italic;
    margin-bottom: 30px; border-bottom: 1px solid #333; padding-bottom: 10px;
}

.file-content p { margin-bottom: 1.5em; }

/* --- SEPARATOR --- */
.separator-line {
    text-align: center; color: #444; margin: 40px 0; font-size: 1.2rem; letter-spacing: 5px;
    display: flex; align-items: center; justify-content: center;
}
.separator-line::before, .separator-line::after {
    content: ""; height: 1px; width: 50px; background: #333; margin: 0 15px;
}

/* --- MEMORY FRAGMENTS (Past/Present Switch) --- */
.present-day {
    border-left: 2px solid var(--accent-primary);
    padding-left: 20px; font-style: italic;
    background: rgba(110, 122, 207, 0.05);
    padding: 20px; margin-top: 20px;
}

/* --- CALL TO ACTION BOX (Newsletter) --- */
.cta-box {
    margin-top: 60px; text-align: center;
    background: rgba(10, 15, 30, 0.5); border: 1px dashed #444; padding: 30px;
}
.cta-title { color: #fff; font-size: 1rem; margin-bottom: 10px; text-transform: uppercase; }
.cta-text { font-size: 0.85rem; color: #888; margin-bottom: 20px; }

.cta-button {
    display: inline-block; background: transparent; border: 1px solid #fff;
    color: #fff; padding: 12px 30px; text-decoration: none; font-weight: bold;
    text-transform: uppercase; letter-spacing: 1px; transition: 0.3s;
}
.cta-button:hover {
    background: #fff; color: var(--accent-primary); box-shadow: 0 0 20px rgba(255,255,255,0.4);
}

/* Mobile Adjustments Reader */
@media screen and (max-width: 600px) {
    .file-content { padding: 20px; }
    .file-content p { text-align: left; }
}

/* ========================================= */
/* --- MODUL: LEGAL (IMPRESSUM & DATA) --- */
/* ========================================= */

.legal-content {
    background: rgba(10, 15, 30, 0.9);
    border: 1px solid #333;
    padding: 40px;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
    margin-bottom: 50px;
    text-align: left;
    color: #ccc;
}

.legal-content h1 {
    border-bottom: 1px solid #333; padding-bottom: 15px; margin-bottom: 30px;
}

.legal-content h2 {
    color: var(--accent-primary); font-size: 1.1rem; margin-top: 40px;
    text-transform: uppercase; letter-spacing: 1px;
    border-bottom: 1px dashed #333; padding-bottom: 5px;
    font-family: var(--font-term);
}

.legal-content h3 {
    color: #fff; font-size: 0.95rem; margin-top: 25px;
    border-left: 3px solid #444; padding-left: 15px;
}

.legal-content h4 {
    color: #888; font-size: 0.85rem; text-transform: uppercase; margin-top: 20px;
}

.legal-content p { margin-bottom: 1em; line-height: 1.6; }

.legal-content a {
    color: var(--accent-primary); text-decoration: none; 
    border-bottom: 1px dotted var(--accent-primary); transition: 0.3s;
}
.legal-content a:hover {
    color: #fff; border-bottom-style: solid; 
    text-shadow: 0 0 5px var(--accent-primary);
}

.legal-content ul { padding-left: 20px; color: #bbb; margin-bottom: 20px; }
.legal-content li { margin-bottom: 5px; }

.legal-divider {
    border: 0; border-top: 1px dashed #444; margin: 40px 0;
}

/* ========================================= */
/* --- MODUL: PERSONNEL DATABASE (V2.5) --- */
/* ========================================= */

html { scroll-behavior: smooth; }

/* --- RAPID ACCESS DIRECTORY (Shortcuts) --- */
.directory-panel {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid #333;
    padding: 15px;
    margin-bottom: 40px;
    text-align: center;
}

.directory-label {
    display: block; font-size: 0.7rem; color: #888;
    margin-bottom: 10px; text-transform: uppercase; letter-spacing: 1px;
}

.shortcut-container {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
}

.shortcut-btn {
    display: inline-block; padding: 5px 10px;
    border: 1px solid #444; color: #ccc;
    text-decoration: none; font-size: 0.75rem;
    text-transform: uppercase; transition: all 0.2s;
    background: rgba(255,255,255,0.05); font-family: var(--font-term);
}

.shortcut-btn:hover {
    border-color: var(--accent-primary); color: #fff;
    background: rgba(110, 122, 207, 0.2);
    box-shadow: 0 0 10px rgba(110, 122, 207, 0.3);
}

/* --- TIMELINE STATUS BAR --- */
.timeline-status {
    text-align: center; margin-bottom: 40px; padding: 15px;
    background: rgba(110, 122, 207, 0.1); border: 1px dashed #444;
    font-size: 0.75rem; color: #aaa;
}
.timeline-status strong { color: #fff; text-transform: uppercase; letter-spacing: 1px; }
.blink { animation: blinker 1.5s linear infinite; color: var(--accent-primary); font-weight: bold; }
@keyframes blinker { 50% { opacity: 0; } }

/* --- DOSSIER GRID --- */
.dossier-grid { display: grid; grid-template-columns: 1fr; gap: 40px; }
@media screen and (min-width: 768px) { .dossier-grid { grid-template-columns: 1fr 1fr; align-items: start; } }

/* --- CARD STYLE --- */
.dossier-card, .profile-card {
    background: rgba(10, 15, 30, 0.7); 
    border: 1px solid #333; 
    border-left: 3px solid var(--accent-primary);
    padding: 0; display: flex; flex-direction: column; 
    transition: all 0.3s ease; position: relative; overflow: hidden; height: 100%;
    scroll-margin-top: 20px; 
}

.dossier-card:hover { 
    background: var(--bg-card-hover); 
    border-color: var(--accent-primary); 
    box-shadow: 0 0 25px rgba(110, 122, 207, 0.25); 
    transform: translateY(-4px); 
}

/* Scanner Animation Effect */
.dossier-card::after { 
    content: ""; position: absolute; top: 0; left: 0; 
    width: 100%; height: 2px; background: var(--accent-primary); 
    opacity: 0; box-shadow: 0 0 10px var(--accent-primary); z-index: 10; 
}
.dossier-card:hover::after { opacity: 0.6; animation: scan 2s linear infinite; }
@keyframes scan { 0% { top: 0; } 100% { top: 100%; } }

/* IMAGE */
.profile-img-container { 
    width: 100%; height: 450px; overflow: hidden; 
    position: relative; border-bottom: 1px solid var(--accent-primary); 
    /* NEU: Zwingt den Container in einen eigenen GPU-Layer */
    transform: translateZ(0);
}
.profile-img { 
    width: 100%; height: 100%; object-fit: cover; object-position: top center; 
    filter: grayscale(100%) contrast(1.1) brightness(0.9); 
    transition: all 0.6s ease-in-out; 
    /* NEU: Hardware-Beschleunigung & Anti-Tearing Fix */
    will-change: transform, filter;
    backface-visibility: hidden;
}
.dossier-card:hover .profile-img { 
    filter: grayscale(0%) contrast(1) brightness(1); 
    /* WICHTIG: translateZ(0) hält die Ebene beim Skalieren stabil */
    transform: scale(1.02) translateZ(0); 
}

/* TEXT CONTENT */
.content { padding: 20px; }
.data-header { border-bottom: 1px dashed #444; padding-bottom: 10px; margin-bottom: 15px; }
.name { color: #fff; font-size: 1.3rem; font-weight: bold; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 2px; }
.role { color: var(--accent-primary); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px;}
.data-row { margin-bottom: 12px; font-size: 0.85rem; line-height: 1.5; color: #ccc; }
.label { color: #888; font-weight: bold; display: block; font-size: 0.7rem; text-transform: uppercase; margin-bottom: 3px; }

.status-badge { 
    float: right; font-size: 0.65rem; padding: 3px 8px; 
    border: 1px solid var(--accent-primary); color: var(--accent-primary); 
    border-radius: 2px; background: rgba(110, 122, 207, 0.1); 
}

/* --- BACK TO TOP BUTTON --- */
.to-top-btn {
    position: fixed; bottom: 20px; right: 20px;
    background: #000; border: 1px solid var(--accent-primary);
    color: var(--accent-primary);
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; cursor: pointer; z-index: 100;
    opacity: 0.7; transition: 0.3s; text-decoration: none;
}
.to-top-btn:hover { opacity: 1; background: var(--accent-primary); color: #000; }

/* Special Overrides for Restricted/Orion */
.blurred { filter: blur(4px); user-select: none; }
.overlay-lock {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; 
    display: flex; flex-direction: column; justify-content: center; align-items: center; 
    background: rgba(0,0,0,0.6); z-index: 10; pointer-events: none;
}

/* ========================================= */
/* --- MODUL: BONUSTRACK & AUDIO (V1.5) --- */
/* ========================================= */

/* --- RED LIONESS SPECIAL (Anomaly Style) --- */
.bonus-track {
    background: rgba(30, 10, 10, 0.7);
    border: 1px solid #ff3333; /* Spezifisches Rot bleibt */
    padding: 20px;
    margin-bottom: 40px;
    border-radius: 4px;
    position: relative;
    display: flex; gap: 20px; align-items: center;
    transition: 0.3s;
}

.bonus-track:hover {
    background-color: #ff3333;
    color: #000;
    box-shadow: 0 0 30px rgba(255, 50, 50, 0.6);
    transform: scale(1.02);
}

.bonus-track:hover .track-title,
.bonus-track:hover p {
    color: #000 !important;
    text-shadow: none !important;
}

.bonus-badge {
    position: absolute; top: -10px; right: 20px;
    background: #ff3333; color: #000;
    font-weight: bold; font-size: 0.7rem;
    padding: 2px 8px; text-transform: uppercase;
    box-shadow: 0 0 10px #ff3333;
}

.can-img {
    width: 80px; height: auto; border-radius: 4px;
    border: 1px solid #ff3333; box-shadow: 0 0 10px rgba(255, 50, 50, 0.4);
}
/* ==========================================================================
   MODUL: SOUNDTRACK & AUDIO ARCHITEKTUR (V2.0) - INDIGO EDITION
   ========================================================================== */

/* --- OBERES DRITTEL: ALBEN-GRID --- */
.album-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 30px; 
    margin-bottom: 50px; 
}

.album-card { 
    background: rgba(10, 15, 30, 0.6); 
    border: 1px solid rgba(110, 122, 207, 0.3); /* Indigo Border */
    padding: 20px; 
    text-align: center; 
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
}

.album-card:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 0 15px rgba(110, 122, 207, 0.15); /* Indigo Glow */
}

.album-cover { 
    width: 100%; 
    max-width: 250px; 
    border-radius: 4px; 
    box-shadow: 0 0 20px rgba(110, 122, 207, 0.2); 
    margin-bottom: 20px; 
}

/* --- ICONS (GRAU/WEISS) --- */
.provider-icons { display: flex; justify-content: center; gap: 20px; margin-top: auto; }
.provider-icons a { color: #888; transition: all 0.3s ease; display: inline-block; }
.provider-icons a:hover { color: #fff; transform: scale(1.1); filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.6)); }
.provider-icons svg { width: 24px; height: 24px; fill: currentColor; }

/* --- MITTLERER BEREICH: BAND-AKKORDEONS --- */
.band-accordion { 
    border: 1px solid rgba(110, 122, 207, 0.3); 
    background: rgba(5, 5, 5, 0.9); 
    margin-bottom: 20px; 
}
.band-header { 
    padding: 15px 20px; 
    background: rgba(110, 122, 207, 0.1); /* Sanftes Indigo */
    cursor: pointer; 
    display: flex; 
    justify-content: space-between; 
    font-weight: bold; 
    letter-spacing: 2px; 
    transition: background 0.3s;
}
.band-header:hover { background: rgba(110, 122, 207, 0.2); }
.band-content { padding: 0 20px; display: none; }
.band-accordion.active .band-content { display: block; padding-bottom: 10px; }
.band-accordion.active .band-header .accordion-icon { transform: rotate(-180deg); }

/* --- UNTERER BEREICH: KOMPAKTE TRACK-LISTE --- */
.track-row { 
    border-bottom: 1px dashed rgba(110, 122, 207, 0.3); 
    padding: 15px 0; 
}
.track-row:last-child { border-bottom: none; }

.track-info { 
    display: flex; 
    justify-content: space-between; 
    align-items: baseline; 
    margin-bottom: 10px;
}
.track-chapter { color: var(--text-muted); font-size: 0.8rem; letter-spacing: 1px; }

.track-title { 
    color: #fff; 
    font-weight: bold; 
    font-size: 1.1rem; 
    text-shadow: 0 0 5px rgba(0,0,0,0.5);
    letter-spacing: 1px;
}

.player-wrapper { display: flex; align-items: center; gap: 15px; }

/* Der optische Kern: Aegis-Indigo Filter für den nativen HTML-Player */
.aegis-player { 
    flex-grow: 1; 
    height: 35px; 
    filter: invert(0.6) sepia(0.25) hue-rotate(216deg) saturate(2); 
    opacity: 0.8; 
    border-radius: 4px;
    transition: 0.3s;
}
.aegis-player:hover { opacity: 1; filter: invert(0.9) hue-rotate(200deg) saturate(3); }

/* --- MIKRO-ICONS IN DEN TRACKS --- */
.track-mini-icons { display: flex; gap: 12px; }
.track-mini-icons a { color: #888; display: inline-block; transition: all 0.3s ease; }
.track-mini-icons svg { width: 18px; height: 18px; fill: currentColor; }

/* Hover in der Trackliste = Indigo Glow statt Grün */
.track-mini-icons a:hover { 
    color: var(--accent-primary); 
    transform: scale(1.1);
    filter: drop-shadow(0 0 5px var(--accent-primary)); 
}

/* --- MOBILE ANPASSUNGEN (V2.0) --- */
@media (max-width: 768px) {
    .album-grid { grid-template-columns: 1fr; }
    .player-wrapper { flex-direction: column; align-items: flex-start; }
    .aegis-player { width: 100%; }
}

/* ========================================= */
/* --- MODUL: SAGA BRIEFING (VIBES) --- */
/* ========================================= */

/* --- QUOTE BOX --- */
.quote-box {
    background: rgba(0,0,0,0.4);
    border: 1px solid #444;
    padding: 15px;
    margin: 20px 0;
    font-style: italic;
    color: #aab;
    border-left: 2px solid #fff;
}
.quote-author { 
    display: block; margin-top: 5px; font-size: 0.8rem; 
    color: var(--accent-primary); font-style: normal; text-transform: uppercase; 
}

.strong-white { color: #fff; text-shadow: 0 0 5px rgba(255,255,255,0.5); }

/* --- VIBE GRID (System Parameters) --- */
.vibe-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    text-align: left;
}

.vibe-card {
    background: rgba(10, 15, 30, 0.5);
    border: 1px solid #333;
    padding: 20px;
    transition: all 0.3s ease;
}

.vibe-card:hover {
    border-color: var(--accent-primary);
    background: var(--bg-card-hover);
    transform: translateY(-3px);
    box-shadow: 0 0 15px rgba(110, 122, 207, 0.15);
}

.vibe-title {
    display: block;
    color: var(--accent-primary);
    text-transform: uppercase;
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 10px;
    letter-spacing: 1px;
    border-bottom: 1px solid #333;
    padding-bottom: 5px;
}

.vibe-card:hover .vibe-title { 
    color: #fff; text-shadow: 0 0 5px #fff; 
    border-color: var(--accent-primary); 
}

.vibe-text { font-size: 0.85rem; color: #bbb; line-height: 1.5; }

/* Full Width Card Modifier */
.full-width { grid-column: span 2; }

@media screen and (max-width: 700px) {
    .vibe-grid { grid-template-columns: 1fr; }
    .full-width { grid-column: span 1; }
}

/* ========================================= */
/* --- MODUL: TECH DATABASE (R&D) --- */
/* ========================================= */

/* --- SEARCH BAR --- */
.search-wrapper { margin-bottom: 40px; position: relative; }

.search-input { 
    width: 100%; 
    box-sizing: border-box; 
    background: rgba(0, 0, 0, 0.7); 
    border: 1px solid #444; 
    color: #fff; 
    padding: 15px 20px; 
    font-family: var(--font-term); 
    font-size: 1rem; 
    text-transform: uppercase; 
    transition: 0.3s; 
}

.search-input:focus { 
    outline: none; 
    border-color: var(--accent-primary); 
    box-shadow: 0 0 15px rgba(110, 122, 207, 0.3); 
}

.search-icon { 
    position: absolute; 
    right: 15px; 
    top: 50%; 
    transform: translateY(-50%); 
    color: var(--accent-primary); 
    pointer-events: none; 
}

.filter-btn {
    background: rgba(0, 255, 157, 0.05);
    border: 1px solid var(--accent-primary);
    color: var(--accent-primary);
    padding: 5px 15px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--accent-primary);
    color: #000;
    box-shadow: 0 0 10px var(--accent-primary);
}

/* --- ACCORDION LIST --- */
.tech-list { display: flex; flex-direction: column; gap: 15px; }

.tech-item {
    background: var(--bg-card);
    border: 1px solid #333;
    border-left: 3px solid #444;
    transition: all 0.3s ease;
}

.tech-item:hover { 
    border-left-color: var(--accent-primary); 
    box-shadow: 0 0 15px rgba(110, 122, 207, 0.1); 
    transform: translateX(5px); 
}

.tech-item.active { 
    border-left-color: var(--accent-primary); 
    background: var(--bg-card-hover); 
    border-color: var(--accent-primary); 
    box-shadow: 0 0 20px rgba(110, 122, 207, 0.2); 
}

.tech-header { 
    padding: 15px 20px; 
    cursor: pointer; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    user-select: none;
    position: relative; 
}

.tech-title { 
    color: #ccc; 
    font-weight: bold; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    font-size: 1rem; 
    transition: 0.3s; 
}

.tech-item:hover .tech-title, 
.tech-item.active .tech-title { 
    color: #fff; 
    text-shadow: 0 0 8px #fff; 
}

.tech-category { 
    font-size: 0.6rem; 
    color: var(--accent-primary); 
    border: 1px solid var(--accent-primary); 
    padding: 2px 6px; 
    margin-right: 15px; 
    text-transform: uppercase; 
    display: inline-block; 
    vertical-align: middle; 
}

.toggle-icon { 
    color: var(--accent-primary); 
    font-weight: bold; 
    transition: transform 0.3s; 
}

.tech-item.active .toggle-icon { 
    transform: rotate(45deg); 
    color: #fff; 
}

.tech-content { 
    max-height: 0; 
    overflow: hidden; 
    transition: max-height 0.4s ease-out; 
    border-top: 1px solid transparent; 
}

.tech-item.active .tech-content { 
    border-top-color: #444; 
}

.content-inner { 
    padding: 20px; 
    color: #bbb; 
    font-size: 0.85rem; 
    line-height: 1.6; 
    text-align: left;
}

.content-inner strong { color: #fff; }
.danger-text { color: var(--accent-alert); }

/* LORE QUOTE */
.lore-quote {
    border-left: 2px solid var(--accent-primary);
    padding-left: 15px;
    margin-top: 15px;
    font-style: italic;
    color: var(--text-muted);
    background: rgba(110, 122, 207, 0.05);
    padding: 10px;
}

/* --- AI / ORION PROTOCOL STYLES --- */

/* Die Kategorie-Badge in Neon-Cyan */
.tech-category.ai-internal {
    border-color: #00ddee;
    color: #00ddee;
    text-shadow: 0 0 5px rgba(0, 221, 238, 0.4); /* Leichter Schein */
}

/* Der Log-Eintrag Kasten */
.lore-quote.ai-log {
    border-left-color: #00ddee;
    background: rgba(0, 221, 238, 0.05); /* Sehr dunkles Cyan im Hintergrund */
    color: #88ccdd; /* Lesbares helles Cyan für den Text */
}

/* Die Signatur (ORION) */
.ai-signature {
    font-size: 0.7rem;
    color: #00ddee;
    display: block;
    margin-top: 5px;
    font-weight: bold;
    letter-spacing: 1px;
}

/* Optional: Ein leises Pulsieren für den Warntext */
.danger-text {
    color: #ff3333;
    text-shadow: 0 0 3px rgba(255, 50, 50, 0.3);
}

/* Mobile Fixes for Tech List */
@media screen and (max-width: 600px) {
    .tech-header { 
        flex-direction: column; 
        align-items: flex-start; 
        gap: 8px; 
        padding-right: 60px; /* Verhindert, dass langer Text in das Icon läuft */
    }
    .tech-header > div {
        display: flex;
        flex-direction: column; /* Stapelt "BAND X" und den Titel untereinander */
        align-items: flex-start;
        text-align: left;
        gap: 5px;
    }
    .tech-category {
        margin-right: 0; /* Margin entfernen, da jetzt gestapelt */
        min-width: auto;
    }
    .toggle-icon { 
        position: absolute; 
        right: 20px; 
        top: 50%; 
        transform: translateY(-50%); /* Exakte vertikale Zentrierung */
    }
}

/* ========================================= */
/* --- MODUL: NEWSLETTER (BREVO) --- */
/* ========================================= */

/* --- Newsletter Page Specifics --- */
body.newsletter-mode {
    justify-content: center; /* Vertikal zentrieren */
    /* Spezifischer Background Overlay für Fokus */
    background-image: 
        radial-gradient(circle at center, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.9) 100%),
        url('files/images/charon-bg.jpg'); 
}

/* --- TERMINAL BOX SPECIAL --- */
.newsletter-box {
    background: rgba(10, 15, 30, 0.7);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(110, 122, 207, 0.4); 
    border-left: 4px solid var(--accent-primary);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    padding: 40px;
    position: relative;
    text-align: center;
    border-radius: 4px;
    width: 100%;
    max-width: 600px;
}

.newsletter-box::before {
    content: "SECURE CHANNEL ESTABLISHED";
    position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
    background: #050510; border: 1px solid var(--accent-primary); color: var(--accent-primary); 
    padding: 2px 12px; font-size: 0.65rem; letter-spacing: 2px;
    box-shadow: 0 0 10px rgba(110, 122, 207, 0.4);
}

.sub-header { 
    color: #aaa; font-size: 0.75rem; 
    border-bottom: 1px solid rgba(255,255,255,0.1); 
    padding-bottom: 20px; margin-bottom: 25px; 
    letter-spacing: 1px; 
}

.lead-magnet {
    background: rgba(110, 122, 207, 0.15); padding: 20px; margin-bottom: 20px; 
    border-left: 3px solid var(--accent-primary); text-align: left; font-size: 0.9rem;
}

/* --- BREVO OVERRIDES (Deep System Integration) --- */
#sib-container input[type="text"], 
#sib-container input[type="email"] {
    background-color: rgba(0, 0, 0, 0.5) !important; 
    color: #fff !important;
    border: 1px solid #555 !important; 
    font-family: var(--font-term) !important; 
}

#sib-container input:focus { 
    border-color: var(--accent-primary) !important; 
    box-shadow: 0 0 15px rgba(110,122,207,0.3) !important; 
}

#sib-container label { 
    color: #fff !important; 
    font-family: var(--font-term) !important; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
}

/* BUTTON */
.sib-form-block__button {
    background: linear-gradient(45deg, #535da1, var(--accent-primary)) !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
    font-family: var(--font-term) !important; 
    letter-spacing: 2px; font-weight: bold !important;
}
.sib-form-block__button:hover {
    background: #fff !important; 
    color: var(--accent-primary) !important; 
    box-shadow: 0 0 25px rgba(110,122,207,0.8);
}

/* CHECKBOX Accent */
.sib-optin input[type="checkbox"] { accent-color: var(--accent-primary) !important; }

/* HIDE DEFAULT BREVO TEXTS */
.sib-form-block:first-child p { display: none; } 

/* Footer Link Adjustment */
.back-link-small {
    display: inline-block; margin-top: 30px; color: #888; text-decoration: none; 
    font-size: 0.75rem; transition: 0.3s; padding: 5px 10px; border: 1px solid transparent;
}
.back-link-small:hover { 
    color: #fff; border-color: var(--accent-primary); 
    background: rgba(110, 122, 207, 0.1); 
}

/* ========================================== */
/* --- MODULE: LANDING PAGE / LBM SPECIAL --- */
/* ========================================== */

.hero-container {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

.hero-image {
    width: 100%;
    max-width: 280px;
    height: auto;
    border: 1px solid var(--accent-primary);
    border-radius: 50%; /* Rundes Design für Ka'Riel (Göttinnen-Look) */
    box-shadow: 0 0 30px rgba(110, 122, 207, 0.2);
    filter: contrast(1.2) brightness(1.1);
    transition: all 0.3s ease;
}

.hero-image:hover {
    box-shadow: 0 0 50px rgba(110, 122, 207, 0.4);
    border-color: #fff;
}

/* Der "Classified" Badge */
.badge-classified {
    position: absolute;
    bottom: 0;
    right: 10px;
    background-color: var(--bg-deep);
    border: 1px solid var(--accent-alert);
    color: var(--accent-alert);
    padding: 5px 10px;
    font-size: 0.7rem;
    font-weight: bold;
    font-family: var(--font-term);
    letter-spacing: 1px;
    transform: rotate(-5deg);
    z-index: 10;
}

/* Typografie für den Pitch */
.pitch-headline {
    font-family: var(--font-ui);
    font-size: 1.4rem;
    color: var(--accent-primary);
    margin-top: 15px;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
}

.pitch-text {
    font-size: 1rem;
    line-height: 1.6;
    color: #ccc; /* Leicht abgedunkeltes Weiß */
    margin-bottom: 25px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* System Log Box (Nerd Detail) */
.system-log {
    text-align: left;
    background: rgba(0, 0, 0, 0.3);
    border-left: 2px solid var(--accent-green);
    padding: 15px;
    margin: 20px auto;
    max-width: 400px;
    font-size: 0.85rem;
    font-family: var(--font-term);
    color: var(--text-muted);
}

/* Header & Footer Spezifisch für Landing */
.landing-header {
    text-align: center;
    margin-bottom: 20px;
}

.landing-subline {
    color: var(--accent-alert);
    font-size: 0.7rem;
    letter-spacing: 3px;
    margin-bottom: 5px;
    text-transform: uppercase;
}

/* --- ORBITRON TITEL (DAS UPGRADE) --- */
.landing-title {
    font-size: 2.8rem; /* Größer für mehr Wumms */
    margin: 0;
    text-shadow: 0 0 15px rgba(110,122,207,0.6);
    
    font-family: var(--font-logo); /* <-- Hier ist Orbitron */
    font-weight: 900;
    letter-spacing: 4px;
}

.landing-meta {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 5px;
    font-family: var(--font-term);
}

/* ========================================= */
/* --- MODUL: CHARACTER ANTHEMS (ACCORDION) --- */
/* ========================================= */

.anthem-wrapper {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 50px;
}

.anthem-card {
    background: rgba(10, 15, 30, 0.6);
    border: 1px solid #333;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    position: relative;
}

/* Header (Der sichtbare Balken) */
.anthem-header {
    padding: 15px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0,0,0,0.3);
    border-bottom: 1px solid transparent;
    transition: background 0.3s;
}

.anthem-header:hover {
    background: rgba(255,255,255,0.05);
}

.anthem-badge {
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 4px 8px;
    border: 1px solid;
    margin-right: 15px;
}

/* --- ANTHEM TITLE FIX --- */
.anthem-title {
    flex-grow: 1;
    font-family: 'Courier Prime', monospace; /* FIX: Explizit gesetzt */
    font-size: 1.1rem; /* Etwas größer für Lesbarkeit */
    text-transform: uppercase;
    color: #ccc;
    font-weight: bold;
    letter-spacing: 1px;
}

/* --- PROTOCOL: RED (JESSICA) GLOW FIX --- */
.anthem-card.protocol-red { 
    border-left: 4px solid #ff3333; 
    transition: all 0.3s ease;
}

/* Hover Glow RED */
.anthem-card.protocol-red:hover {
    box-shadow: 0 0 20px rgba(255, 50, 50, 0.4);
    border-color: #ff3333;
}

/* Active State RED */
.protocol-red.active { 
    border-color: #ff3333; 
    background: rgba(30, 5, 5, 0.9);
    box-shadow: 0 0 30px rgba(255, 50, 50, 0.6); /* Starker Glow wenn offen */
}
.protocol-red.active .anthem-title { 
    color: #fff; 
    text-shadow: 0 0 10px #ff3333; 
}

/* --- PROTOCOL: VIOLET (ELYTHARI) GLOW FIX --- */
.anthem-card.protocol-violet { 
    border-left: 4px solid #aa88ff; 
    transition: all 0.3s ease;
}

/* Hover Glow VIOLET */
.anthem-card.protocol-violet:hover {
    box-shadow: 0 0 20px rgba(170, 136, 255, 0.4);
    border-color: #aa88ff;
}

/* Active State VIOLET */
.protocol-violet.active { 
    border-color: #aa88ff; 
    background: rgba(20, 10, 35, 0.9);
    box-shadow: 0 0 30px rgba(170, 136, 255, 0.6); /* Starker Glow wenn offen */
}
.protocol-violet.active .anthem-title { 
    color: #fff; 
    text-shadow: 0 0 10px #aa88ff; 
}

.anthem-icon {
    font-size: 1.2rem;
    font-weight: bold;
    transition: transform 0.4s;
    color: #666;
}

/* Content (Versteckter Bereich) */
.anthem-body {
    max-height: 0;
    opacity: 0;
    transition: all 0.5s ease;
    padding: 0 20px;
}

.anthem-content-inner {
    padding: 20px 0;
    display: flex;
    gap: 20px;
    align-items: center;
}

/* --- PROTOCOL: RED (JESSICA) --- */
.anthem-card.protocol-red { border-left: 4px solid #ff3333; }
.protocol-red .anthem-badge { color: #ff3333; border-color: #ff3333; background: rgba(255, 50, 50, 0.1); }
.protocol-red.active { border-color: #ff3333; background: rgba(30, 5, 5, 0.8); }
.protocol-red.active .anthem-title { color: #fff; text-shadow: 0 0 10px #ff3333; }

/* --- PROTOCOL: VIOLET (ELYTHARI) --- */
.anthem-card.protocol-violet { border-left: 4px solid #aa88ff; }
.protocol-violet .anthem-badge { color: #aa88ff; border-color: #aa88ff; background: rgba(170, 136, 255, 0.1); }
.protocol-violet.active { border-color: #aa88ff; background: rgba(20, 10, 35, 0.8); }
.protocol-violet.active .anthem-title { color: #fff; text-shadow: 0 0 10px #aa88ff; }

/* Active States */
.anthem-card.active .anthem-body {
    max-height: 500px; /* Genug Platz für Player & Bild */
    opacity: 1;
}
.anthem-card.active .anthem-icon { transform: rotate(45deg); color: #fff; }

/* Mobile */
@media screen and (max-width: 600px) {
    .anthem-content-inner { flex-direction: column; text-align: center; }
    .can-img { margin: 0 auto 15px; }
}

/* ========================================= */
/* --- MODUL: CONTENT NOTES.             --- */
/* ========================================= */

        .note-list {
            list-style: none;
            padding: 0;
            margin: 10px 0;
        }

        .note-list li {
            margin-bottom: 8px;
            padding-left: 15px;
            border-left: 2px solid #333;
            color: #ccc;
            font-size: 0.85rem;
            margin-bottom: 15px;
            line-height: 1.5;
        }

        .note-list li strong {
            color: #fff;
        }

        .note-context {
            display: block;
            color: #aaa;
            margin-top: 4px;
        }
        .note-chapter {
            display: block;
            color: var(--accent-primary);
            font-size: 0.8rem;
            margin-top: 4px;
            font-weight: bold;
        }

        .spoiler-warning {
            background: rgba(255, 85, 85, 0.1);
            border: 1px solid var(--accent-alert);
            color: #ffaaaa;
            padding: 15px;
            margin-bottom: 30px;
            font-size: 0.8rem;
            text-align: center;
        }

.tech-category {

    display: inline-block;
    min-width: 95px;
    text-align: center;
    margin-right: 15px;
    white-space: nowrap;
    vertical-align: middle; 
}

.tech-title {
    display: inline-block;
    vertical-align: middle;
}

/* ==========================================================================
   TYCHO PATCH: THE AEGIS CODEX GRID
   Flexbox-Struktur für die Architekten-Analyse (Optimiert für Fließtext)
   ========================================================================== */

.codex-list {
    list-style: none;
    padding: 20px;
    margin: 20px 0;
    background: rgba(0,0,0,0.3);
    border: 1px solid #333;
}

.codex-list li {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px dashed #333;
    text-align: left;
}

.codex-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.codex-list .key {
    min-width: 170px;
    font-weight: bold;
    flex-shrink: 0;
    text-align: left;
    color: var(--accent-primary);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    padding-right: 20px;
}

.codex-list .val {
    flex-grow: 1;
    line-height: 1.6;
    text-align: left;
    color: #ccc;
    font-size: 0.9rem;
}

/* Mobile Responsiveness: Bricht das Grid auf kleinen Displays sauber um */
@media (max-width: 600px) {
    .codex-list li {
        flex-direction: column;
    }
    .codex-list .key {
        margin-bottom: 8px;
        min-width: auto;
        padding-right: 0;
    }
}

/* ==========================================================================
   TYCHO PATCH: MOBILE AEGIS KONSOLE & RECAPTCHA FIX
   ========================================================================== */

/* Zwingt die Box, das Padding in die 100% Breite einzurechnen */
.newsletter-box {
    box-sizing: border-box;
}

@media screen and (max-width: 600px) {
    /* Reduziert das massive Polster auf kleinen Bildschirmen */
    .newsletter-box {
        padding: 20px 15px; 
    }
    
    /* Skaliert das störrische Google-ReCaptcha leicht herunter, 
       damit es nicht über den Rand des Terminals bricht */
    .g-recaptcha {
        transform: scale(0.85);
        transform-origin: left top;
    }
}

/* ==========================================================================
   TYCHO PATCH: CUSTOM AUDIO TERMINAL (LBM EDITION)
   ========================================================================== */

.audio-terminal {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--accent-primary);
    border-left: 4px solid var(--accent-primary);
    padding: 15px;
    margin: 25px 0;
    text-align: left;
    font-family: var(--font-term);
    box-shadow: inset 0 0 10px rgba(110, 122, 207, 0.1);
}

.audio-header {
    font-size: 0.75em;
    color: #888;
    margin-bottom: 15px;
    letter-spacing: 1px;
    display: flex;
    justify-content: space-between;
}

.audio-status {
    color: var(--accent-green);
    animation: audio-pulse 2s infinite;
}

.audio-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap; 
}

.btn-play {
    background: rgba(110, 122, 207, 0.1);
    color: var(--accent-primary);
    border: 1px solid var(--accent-primary);
    padding: 10px 15px;
    cursor: pointer;
    font-family: var(--font-term);
    font-size: 0.9em;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.2s ease;
    min-width: 100px;
    text-align: center;
}

.btn-play:hover, .btn-play:active {
    background: var(--accent-primary);
    color: #000;
    box-shadow: 0 0 10px var(--accent-primary);
}

.progress-wrapper {
    flex-grow: 1;
    min-width: 150px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.progress-container {
    height: 14px;
    background: #111;
    border: 1px solid #333;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: var(--accent-primary);
    transition: width 0.1s linear;
    box-shadow: 0 0 8px var(--accent-primary);
}

.time-display {
    font-size: 0.7em;
    color: #aaa;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

@keyframes audio-pulse {
    0% { opacity: 0.7; }
    50% { opacity: 1; }
    100% { opacity: 0.7; }
}

@media (max-width: 480px) {
    .audio-controls {
        gap: 10px;
    }
    .progress-wrapper {
        width: 100%;
        order: 3; 
    }
    .btn-play {
        flex-grow: 1;
    }
}
/* ==========================================================================
   CONWAYS GAME OF LIFE TERMINAL (ISOLIERT & MOBILE FIXED)
   ========================================================================== */

body.conway-mode {
    margin: 0; 
    padding: 20px; /* Gibt der Box auf Mobile etwas Luft zum Atmen */
    width: 100%; 
    min-height: 100vh; /* WICHTIG: min-height statt height, damit es wachsen kann */
    
    /* Flexbox für kugelsicheres Zentrieren */
    display: flex; 
    justify-content: center;
    align-items: center;
    
    background-color: #050505;
    background-image: 
      linear-gradient(to right, rgba(37, 211, 102, 0.15) 1px, transparent 1px),
      linear-gradient(to bottom, rgba(37, 211, 102, 0.15) 1px, transparent 1px);
    background-size: 15px 15px;
    background-position: top left;
    background-repeat: repeat; 
    background-attachment: scroll; 
    color: #25D366;
    font-family: 'Courier Prime', monospace;
}

.conway-mode .terminal-container {
    /* Die absolute Positionierung wurde eliminiert */
    position: relative; 
    width: 100%; 
    max-width: 800px;
    background: rgba(5, 5, 5, 0.9);
    padding: 40px; 
    border: 1px solid #1a3a22;
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.1);
    /* margin: auto wird durch Flexbox im Body gesteuert */
}

/* Reduziert das fette Padding auf kleinen iPhone-Bildschirmen für mehr Platz */
@media (max-width: 600px) {
    .conway-mode .terminal-container {
        padding: 20px;
    }
}

.conway-mode .log-header {
    border-bottom: 1px solid #25D366; padding-bottom: 10px; margin-bottom: 20px;
    font-weight: bold; letter-spacing: 2px;
}

.conway-mode .log-body p { line-height: 1.6; margin-bottom: 15px; text-shadow: 0 0 2px rgba(37, 211, 102, 0.3); }

.conway-mode .sys-msg { color: #1a8f42; font-style: italic; font-size: 0.9em; }
.conway-mode .speaker { font-weight: bold; color: #fff; text-shadow: 0 0 4px rgba(255, 255, 255, 0.5); }

.conway-mode .edu-block { background: rgba(37, 211, 102, 0.05); padding: 15px; border-left: 3px solid #25D366; margin: 20px 0; }
.conway-mode .edu-block ul { margin: 0; padding-left: 20px; }

.conway-mode .run-btn {
    display: inline-block; margin-top: 20px;
    padding: 10px 20px; background: rgba(37, 211, 102, 0.1);
    color: #25D366; text-decoration: none; border: 1px solid #25D366;
    font-weight: bold; transition: all 0.3s;
}

.conway-mode .run-btn:hover { background: #25D366; color: #050505; box-shadow: 0 0 15px #25D366; }

/* ==========================================================================
   ORION SIMULATION (MAIN PANEL & INJECTION PROTOCOL)
   ========================================================================== */

/* Das Interface-Gehäuse (Main Panel) */
#mainPanel {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.85);
    border: 1px solid #25D366;
    padding: 20px;
    z-index: 100;
    color: #25D366;
    max-width: 380px;
    font-family: 'Courier Prime', monospace;
    box-shadow: 0 0 15px rgba(37, 211, 102, 0.2);
}

/* Injektions-Protokoll CSS */
.tool-selector { 
    margin: 15px 0; 
    border-top: 1px solid #25D366; 
    padding-top: 15px; 
}
.tool-header { 
    font-size: 0.8em; 
    color: #25D366; 
    margin-bottom: 8px; 
}

/* Tool Buttons Overrides für das Main Panel */
.sim-mode .btn-group { 
    display: flex; 
    gap: 5px; 
    flex-wrap: wrap; 
    margin-top: 10px; 
    flex-direction: row; 
}
.sim-mode .btn-group button { 
    flex-grow: 1; 
    margin: 0; 
    width: auto; 
}

/* --- MINI-GRID FÜR LEGENDE (PIXEL-PERFEKTE AUTOMATEN) --- */
.mini-grid { 
    display: grid; 
    gap: 1px; 
    margin-right: 15px; 
    margin-top: 3px; 
    flex-shrink: 0; 
}
.beehive-grid, .beacon-grid { grid-template-columns: repeat(4, 5px); }
.glider-grid { grid-template-columns: repeat(3, 5px); }

.mini-grid .cell { 
    width: 5px; 
    height: 5px; 
    background: transparent; 
}
.mini-grid .cell.fill { 
    background: #25D366; 
    box-shadow: 0 0 3px #25D366; 
}

.sim-mode .legend-item { 
    align-items: flex-start; 
    margin-bottom: 15px; 
}

/* ==========================================================================
   ORION SIMULATION (ISOLIERT)
   ========================================================================== */

body.sim-mode {
    margin: 0; padding: 0; width: 100%; height: 100vh;
    background-color: #050505; color: #25D366;
    font-family: 'Courier Prime', monospace; overflow: hidden;
    background-image: none; /* Kein statisches Raster, das Canvas zeichnet den Hintergrund */
}

.sim-mode #gameCanvas { 
    position: absolute; top: 0; left: 0; z-index: 1; 
    opacity: 0.4; cursor: crosshair; 
    /* Der GPU-beschleunigte Basis-Glow */
    filter: drop-shadow(0 0 5px #25D366);
    transition: filter 0.3s ease; /* Weicher Übergang bei Override */
}

/* Der aggressive rote Glow für Neytari */
.sim-mode #gameCanvas.neytari-glow {
    filter: drop-shadow(0 0 10px #ff4444);
}

/* --- LEGEND PANEL & ACCORDION --- */
.sim-mode .legend-panel {
    position: absolute; right: 20px; top: 20px; z-index: 10;
    width: 340px; background: rgba(5, 5, 5, 0.95);
    padding: 0; border: 1px solid #1a3a22;
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.2);
    max-height: 92vh; overflow: hidden;
    transition: all 0.3s ease-in-out;
}

.sim-mode .legend-header {
    padding: 15px 20px; background: rgba(37, 211, 102, 0.1); cursor: pointer;
    display: flex; justify-content: space-between; align-items: center;
    border-bottom: 1px solid #1a3a22;
}

.sim-mode .legend-title { font-weight: bold; letter-spacing: 2px; margin: 0; font-size: 0.9rem; }
.sim-mode .accordion-icon { transition: transform 0.3s ease; font-size: 1.2rem; }
.sim-mode .legend-content { padding: 20px; overflow-y: auto; max-height: 70vh; transition: opacity 0.3s ease; }

/* Collapsed State */
.sim-mode .legend-panel.collapsed { width: 250px; }
.sim-mode .legend-panel.collapsed .legend-content { display: none; }
.sim-mode .legend-panel.collapsed .accordion-icon { transform: rotate(-180deg); }

.sim-mode .legend-item { 
    margin-bottom: 18px; font-size: 0.85rem; line-height: 1.4; 
    color: #888; display: flex; align-items: flex-start; gap: 10px; 
}
.sim-mode .highlight { color: #25D366; font-weight: bold; }

/* Symbole in der Legende */
.sim-mode .sym { width: 14px; height: 14px; border: 1px solid #25D366; flex-shrink: 0; margin-top: 2px; position: relative; }
.sim-mode .sym-block { background: #25D366; }
.sim-mode .sym-osc::after { content: ''; position: absolute; width: 6px; height: 6px; background: #25D366; top: 3px; left: 3px; }
.sim-mode .sym-glider::before { content: '◤'; color: #25D366; font-size: 14px; position: absolute; top: -4px; left: 0; }

/* Button Group */
.sim-mode .btn-group { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.sim-mode button {
    width: 100%; padding: 12px; background: transparent; color: #25D366;
    border: 1px solid #1a3a22; font-family: 'Courier Prime', monospace;
    cursor: pointer; text-transform: uppercase; letter-spacing: 1px; font-size: 0.8rem;
}
.sim-mode button:hover { background: rgba(37, 211, 102, 0.1); border-color: #25D366; }
.sim-mode button.active { background: rgba(37, 211, 102, 0.2); border-color: #25D366; box-shadow: 0 0 10px #25D366; }
.sim-mode #overrideBtn.active { color: #ff4444; border-color: #ff4444; animation: redPulse 2s infinite; }

@keyframes redPulse { 
    0%, 100% { background: rgba(255,0,0,0.1); } 
    50% { background: rgba(255,0,0,0.3); } 
}

/* Mobile Optimizations */
@media (max-width: 600px) {
    .sim-mode .legend-panel { width: calc(100% - 40px); right: 20px; left: 20px; top: 10px; }
    .sim-mode .legend-panel.collapsed { width: calc(100% - 40px); }
    .sim-mode .legend-content { max-height: 60vh; }
}

.tool-btn {
    background: transparent;
    border: 1px solid #555;
    color: #888;
    padding: 5px 10px;
    font-family: 'Courier Prime', monospace;
    font-size: 0.8em;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-grow: 1;
}

.tool-btn:hover {
    border-color: #25D366;
    color: #25D366;
}

.tool-btn.active {
    background: #25D366;
    color: #000;
    border-color: #25D366;
    font-weight: bold;
}

/* ========================================= */
/* AEGIS GHOST TERMINAL (QR CODE TARGETS)    */
/* BAND 1 - VISUAL LOGS                      */
/* ========================================= */

body.aegis-ghost-body {
    margin: 0;
    padding: 0;
    background-color: #000000; /* Der absolute Nullpunkt. Kein Grau. Schwarz. */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh; /* Zwingt den Body exakt auf die Höhe des Smartphone-Displays */
    overflow: hidden; /* Verhindert hässliches Scrollen im leeren Raum */
}

.aegis-ghost-terminal {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ghost-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* Die wichtigste Zeile: Zwingt das Bild, immer komplett sichtbar zu bleiben, egal ob hoch- oder querformatiges Handy */
}

.ghost-overlay-text {
    position: absolute;
    top: 15px;
    left: 15px;
    font-family: 'Courier New', Courier, monospace; /* Harte Terminal-Schrift */
    color: var(--accent-primary);
    font-size: 0.65rem;
    letter-spacing: 2px;
    pointer-events: none; /* Verhindert, dass der Text die Zoom-Gesten des Handys blockiert */
    z-index: 10;
    text-transform: uppercase;
}

/* ========================================== */
/* AEGIS ANOMALY DECRYPTION PROTOCOL [COVER]  */
/* ========================================== */

/* Der Container für das gesperrte Cover */
.locked-cover-container {
    width: 140px; 
    height: 210px; /* ⚠️ SYSTEM-OVERRIDE: Hardcodierte Höhe! Verhindert das Zerreißen des Terminals */
    margin: 0 auto; 
    position: relative;
    border: 1px solid rgba(0, 255, 0, 0.2); 
    overflow: hidden; 
    background-color: #000;
}

/* Das Coverbild selbst - Die physische Zwangsjacke */
.locked-cover-img {
    width: 100%;
    height: 100%; /* ⚠️ Zwingt das Bild exakt in die 210px Höhe des Containers */
    object-fit: cover; /* ⚠️ Verhindert Verzerrungen und zentriert das Bild sauber */
    display: block;
    
}
/* Der Flacker-Overlay-Effekt mit reinem SVG-Rauschen */
.glitch-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    /* Wir kombinieren feine horizontale Scanlines (linear-gradient) 
       mit einem brutalen SVG-Fraktal-Rauschen (data:image/svg+xml...), 
       das direkt vom Browser berechnet wird. Keine externe Grafik nötig.
    */
    background-image: 
        linear-gradient(rgba(0,0,0,0.5) 50%, rgba(0,255,0,0.05) 50%),
        url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.5'/%3E%3C/svg%3E");
    background-size: 100% 4px, 100px 100px;
    opacity: 0.25; 
    mix-blend-mode: overlay; /* Verschmilzt das Rauschen weich mit dem Cover */
    
    animation: signal-flicker 0.2s infinite ease-in-out;
    pointer-events: none; /* Verhindert, dass das Overlay Klicks blockiert */
}

/* --- TYCHO PATCH: HIDDEN TERMINAL LOG EASTER EGG --- */
.hidden-log-link {
    color: #333; /* Extrem dezent, fast unsichtbar im schwarzen Hintergrund */
    text-decoration: none; 
    font-family: var(--font-term);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    /* Nutzt deine bereits existierende signal-flicker Animation */
    animation: signal-flicker 5s infinite;
    transition: all 0.3s ease;
}

.hidden-log-link:hover {
    color: var(--accent-green);
    text-shadow: 0 0 8px var(--accent-green);
    opacity: 1;
    animation: none; /* Stoppt das Flackern, wenn der User ihn "fängt" */
}
/* ========================================== */
/* AEGIS MERCH SHOP                           */
/* ========================================== */

/* --- SLIDESHOW MODUL --- */
.slideshow-container {
    position: relative;
    width: 100%;
    display: flex;
    overflow: hidden;
    align-items: center;
    justify-content: center;
    background: #000; /* Verhindert weiße Blitzer beim Laden */
}

.slideshow-container .slide {
    display: none;
    width: 100%;
    transition: opacity 0.3s ease-in-out;
    opacity: 0;
}

.slideshow-container .slide.active {
    display: block;
    opacity: 1;
}

/* Navigations-Buttons im Aegis-Stil */
.slide-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: var(--accent-primary);
    border: 1px solid var(--accent-primary);
    cursor: pointer;
    padding: 8px 12px;
    font-family: var(--font-term);
    font-size: 1rem;
    transition: all 0.2s ease;
    z-index: 10;
}

.slide-btn.prev {
    left: 5px;
}

.slide-btn.next {
    right: 5px;
}

.slide-btn:hover {
    background: var(--accent-primary);
    color: #000;
    box-shadow: 0 0 10px var(--accent-primary);
}
/* --- TYCHO PATCH: SLIDESHOW ASPECT RATIO FIX (1:1) --- */
.slideshow-container .prod-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}
/* --- PRODUKT SEKTION (LOGBOOKS) --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px; width: 100%; margin-top: 30px;
}

.product-card {
    background: rgba(10, 15, 30, 0.8);
    border: 1px solid #444;
    padding: 20px;
    display: flex; flex-direction: column;
    transition: all 0.3s ease;
    position: relative;
}

.product-card:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 0 20px rgba(110, 122, 207, 0.2);
    transform: translateY(-5px);
}

.product-title {
    font-size: 1.1rem; color: #fff; text-transform: uppercase;
    border-bottom: 1px dashed #444; padding-bottom: 10px; margin-bottom: 15px;
    letter-spacing: 1px;
}

.product-visuals { display: flex; gap: 10px; margin-bottom: 20px; overflow-x: auto; }

.prod-img {
    width: 48%; height: auto; aspect-ratio: 2/3;
    object-fit: cover; border: 1px solid #333;
    filter: grayscale(40%); transition: 0.3s;
}

.product-card:hover .prod-img { filter: grayscale(0%); border-color: #666; }

.product-desc { font-size: 0.8rem; color: #aaa; margin-bottom: 20px; flex-grow: 1; text-align: left;  }

.price-tag {
    font-size: 1.2rem; color: var(--accent-green); font-weight: bold;
    text-align: right; margin-bottom: 15px;
    font-family: var(--font-term);
}

.btn-card-action {
    width: 100%; box-sizing: border-box; 
    padding: 10px; margin-bottom: 10px;
    text-align: center; font-size: 0.8rem;
    display: block; text-decoration: none; text-transform: uppercase;
}

.btn-aegis-small {
    background: rgba(0, 255, 65, 0.1); border: 1px solid var(--accent-green);
    color: var(--accent-green); font-weight: bold;
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.1);
}
.btn-aegis-small:hover { background: var(--accent-green); color: #000; }

.btn-amazon-small { color: #666; border: 1px solid #666; background: #000; }
.btn-amazon-small:hover { color: #fff; border-color: #fff; }