:root {
    --bg-color: #050505;
    --sys-color: #33ff00;
    --sys-dim: rgba(51, 255, 0, 0.2);
    --sys-alert: #ff3300;
    --ai-color-1: #00ffff;
    --ai-color-2: #ff00ff;
    --text-color: #e0e0e0;
    --panel-bg: rgba(10, 20, 10, 0.7);
    --font-stack: 'Courier New', Courier, monospace;
    --z-footer: 1000;
    --z-skip: 2000;
    --z-overlay: 3000;
    --z-start-prompt: 3005;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-stack);
    overflow-x: hidden;
    width: 100%;
    font-size: 16px;
    line-height: 1.5;
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="10" height="15" viewport="0 0 10 15" style="fill:%2333ff00"><rect x="0" y="0" width="10" height="15"/></svg>') 5 7, auto;
    margin: 0;
}

.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(var(--sys-dim) 1px, transparent 1px),
        linear-gradient(90deg, var(--sys-dim) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.15;
    z-index: -1;
    pointer-events: none;
}

a, button, .project-card, #start-prompt, .play-btn, input, #skip-btn {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewport="0 0 20 20" style="fill:none;stroke:%2333ff00;stroke-width:2"><rect x="1" y="1" width="18" height="18"/></svg>') 10 10, pointer;
}

body.alert-mode {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="10" height="15" viewport="0 0 10 15" style="fill:%23ff3300"><rect x="0" y="0" width="10" height="15"/></svg>') 5 7, auto !important;
}

body.alert-mode #start-prompt {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewport="0 0 20 20" style="fill:none;stroke:%23ff3300;stroke-width:2"><rect x="1" y="1" width="18" height="18"/></svg>') 10 10, pointer !important;
}

.hidden { display: none !important; }

#boot-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    z-index: var(--z-overlay);
    padding: 2rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    color: var(--sys-color);
    font-size: 1.1rem;
}

.boot-line { margin-bottom: 0.5rem; display: block; word-break: break-word; }
.loading-bar-container { margin-top: 2rem; border: 1px solid var(--sys-color); width: 300px; max-width: 100%; height: 20px; padding: 2px; display: none; }
.loading-bar-fill { height: 100%; background: var(--sys-color); width: 0%; }

#skip-btn {
    position: fixed;
    top: 15px;
    right: 15px;
    width: 44px;
    height: 44px;
    border: 1px solid var(--sys-color);
    color: var(--sys-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: var(--z-skip);
    font-size: 14px;
    background: rgba(0,0,0,0.8);
    transition: all 0.2s;
    cursor: pointer;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}
#skip-btn:hover {
    background: var(--sys-color);
    color: black;
}

#intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: black;
    z-index: var(--z-overlay);
    overflow: hidden;
    color: var(--sys-color);
}

#tactical-canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.scanlines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        transparent,
        transparent 2px,
        rgba(0, 255, 0, 0.05) 3px
    );
    pointer-events: none;
    z-index: 10001;
}

.overlay-text {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10002;
    text-shadow: 0 0 5px var(--sys-color);
    background: rgba(0,0,0,0.7);
    padding: 5px;
    border: 1px solid var(--sys-color);
    transition: color 0.3s, border-color 0.3s;
    max-width: 80%;
}

.overlay-text.locked {
    color: var(--sys-alert);
    border-color: var(--sys-alert);
}

#start-prompt {
    position: absolute;
    top: 80%; 
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: var(--z-start-prompt);
    color: var(--bg-color);
    background: var(--sys-alert);
    padding: 10px 20px;
    font-weight: bold;
    font-size: 1.2rem;
    cursor: pointer; 
    display: none; 
    box-shadow: 0 0 15px var(--sys-alert);
    animation: pulse 0.5s infinite;
    will-change: transform, opacity;
    white-space: nowrap;
    clip-path: polygon(10% 0, 100% 0, 100% 100%, 0 100%, 0 40%);
}

@keyframes pulse {
    0% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.05); }
    100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

#interface {
    display: grid;
    grid-template-columns: 1fr;
    min-height: 100vh;
    opacity: 0;
    transition: opacity 1s ease-in;
    padding-bottom: 80px;
    width: 100%;
    box-sizing: border-box;
}

@media (min-width: 900px) {
    #interface {
        grid-template-columns: 350px 1fr; 
        padding-bottom: 60px;
    }
}

.sidebar {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    border-right: 1px solid var(--sys-dim);
    background: linear-gradient(90deg, rgba(0,0,0,0) 0%, rgba(51,255,0,0.05) 100%);
}

.avatar-container {
    position: sticky;
    top: 4rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.glitch-avatar {
    width: 220px;
    height: 220px;
    background: #111;
    position: relative;
    margin-bottom: 1.5rem;
    will-change: transform; 
}

.hud-border {
    border: 1px solid var(--sys-color);
    position: relative;
}

.hud-border::before, .hud-border::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    border: 2px solid var(--sys-color);
    transition: all 0.3s;
}

.hud-border::before { top: -2px; left: -2px; border-bottom: none; border-right: none; }
.hud-border::after { bottom: -2px; right: -2px; border-top: none; border-left: none; }

.corner-flair {
    position: absolute;
    top: 5px; right: 5px;
    width: 20px; height: 2px;
    background: var(--sys-color);
    box-shadow: 0 0 5px var(--sys-color);
}

.glitch-active {
    animation: glitch-anim 0.3s cubic-bezier(.25, .46, .45, .94) both infinite;
}

.avatar-name {
    font-size: 1.8rem;
    font-weight: bold;
    letter-spacing: 4px;
    color: var(--text-color);
    text-shadow: 0 0 10px var(--sys-color);
    margin-top: 1rem;
    opacity: 0; 
    border-bottom: 2px solid var(--sys-color);
    padding-bottom: 5px;
}

.status-indicator {
    margin-top: 10px;
    font-size: 0.8rem;
    color: var(--sys-color);
    animation: blink 2s infinite;
}

@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

.content-area {
    padding: 3rem;
    width: 100%;
    box-sizing: border-box;
}

section {
    min-height: auto; 
    margin-bottom: 15vh; 
    scroll-margin-top: 5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
#bio{ margin-bottom: 20vh; }

.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

h2 {
    font-size: 2rem;
    color: var(--sys-color);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding-right: 20px;
    white-space: nowrap;
}

.header-line {
    flex-grow: 1;
    height: 2px;
    background: linear-gradient(90deg, var(--sys-color) 0%, transparent 100%);
    position: relative;
}

.header-line::after {
    content: '';
    position: absolute;
    right: 0;
    top: -4px;
    width: 10px;
    height: 10px;
    background: var(--sys-dim);
}

.tech-panel {
    background: var(--panel-bg);
    border-left: 2px solid var(--sys-color);
    padding: 1.5rem;
    position: relative;
    color: #ccc;
}

.panel-decor-top {
    position: absolute;
    top: 0; right: 0;
    width: 30%; height: 2px;
    background: var(--sys-color);
}
.panel-decor-bot {
    position: absolute;
    bottom: 0; right: 0;
    width: 5px; height: 30%;
    background: var(--sys-color);
}

.sci-fi-card {
    background: linear-gradient(135deg, rgba(0,20,0,0.6) 0%, rgba(0,0,0,0.8) 100%);
    border: 1px solid var(--sys-dim);
    position: relative;
    padding: 2rem;
    clip-path: polygon(
        20px 0, 100% 0, 
        100% calc(100% - 20px), calc(100% - 20px) 100%, 
        0 100%, 0 20px
    );
    margin-bottom: 2rem;
    transition: all 0.3s;
}

.sci-fi-card:hover {
    border-color: var(--sys-color);
    box-shadow: 0 0 15px rgba(51, 255, 0, 0.1);
}

.sci-fi-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 20px; height: 100%;
    border-left: 4px solid var(--sys-color);
    opacity: 0.5;
}

.card-deco-corner {
    position: absolute;
    top: 10px; right: 10px;
    width: 40px; height: 40px;
    border-top: 2px solid var(--ai-color-1);
    border-right: 2px solid var(--ai-color-1);
}

.barcode-decor {
    position: absolute;
    bottom: 10px; right: 30px;
    width: 60px; height: 10px;
    background: repeating-linear-gradient(
        90deg,
        var(--sys-dim),
        var(--sys-dim) 2px,
        transparent 2px,
        transparent 4px
    );
}

.project-meta {
    font-size: 0.8rem;
    color: var(--ai-color-1);
    margin-bottom: 1.5rem;
    font-family: monospace;
    border-bottom: 1px solid var(--sys-dim);
    padding-bottom: 0.5rem;
    letter-spacing: 1px;
}

.card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .card-grid { grid-template-columns: 200px 1fr; }
}

.cover-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: #000;
    position: relative;
    overflow: hidden;
}

.cover-image img {
    filter: grayscale(80%) contrast(1.2);
    transition: filter 0.3s;
}

.project-card:hover .cover-image img {
    filter: grayscale(0%) contrast(1);
}

.highlight-text {
    color: #fff;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    border-left: 2px solid var(--sys-dim);
    padding-left: 1rem;
}

.track-list {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.track-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0.5rem;
    border-bottom: 1px solid var(--sys-dim);
    color: var(--text-color);
    transition: background 0.2s;
}

.track-list li:hover {
    background: rgba(51, 255, 0, 0.05);
    color: var(--sys-color);
}

.track-num {
    color: var(--sys-dim);
    font-size: 0.8rem;
    margin-right: 1rem;
}

.play-btn {
    background: transparent;
    border: 1px solid var(--sys-dim);
    color: var(--sys-color);
    cursor: pointer; 
    font-size: 0.9rem;
    padding: 2px 8px;
    transition: all 0.2s;
    width: 30px;
    height: 30px;
}

.play-btn:hover {
    background: var(--sys-color);
    color: black;
    box-shadow: 0 0 8px var(--sys-color);
}

.decode-target .content-wrapper {
    opacity: 0; 
    overflow: hidden;
    transition: height 2s cubic-bezier(0.22, 1, 0.36, 1);
}

.encrypted {
    font-family: 'Courier New', monospace;
    word-break: break-all;
    color: #444;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: rgba(0, 255, 0, 0.02);
}

.decrypted .content-wrapper {
    animation: fadeIn 0.5s ease-in forwards;
}

.social-links {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media(min-width: 600px) {
    .social-links { grid-template-columns: repeat(3, 1fr); }
}

.social-link {
    color: var(--sys-color);
    text-decoration: none;
    border: 1px solid var(--sys-color);
    padding: 1rem;
    transition: all 0.3s;
    font-family: var(--font-stack);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: rgba(0,0,0,0.5);
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.link-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--ai-color-1);
}

.social-link:hover {
    background-color: var(--sys-dim);
    transform: translateY(-2px);
    box-shadow: 0 0 15px var(--sys-dim);
}

.alert-panel {
    border-color: var(--sys-alert);
    background: rgba(30, 0, 0, 0.5);
}

.alert-btn {
    border-color: var(--sys-alert);
    color: var(--sys-alert);
}
.alert-btn:hover {
    background: var(--sys-alert);
    color: black;
    box-shadow: 0 0 10px var(--sys-alert);
}

#terminal-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #000;
    border-top: 2px solid var(--sys-color);
    padding: 10px 20px;
    font-family: var(--font-stack);
    font-size: 0.9rem;
    color: var(--sys-color);
    z-index: var(--z-footer);
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

#footer-status-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
    font-size: 0.8rem;
    opacity: 0.8;
    white-space: nowrap;
    overflow: hidden;
}

#footer-coords {
    margin-left: 10px;
    color: var(--ai-color-1);
}

#cmd-container {
    display: flex;
    align-items: center;
}

#cmd-prompt {
    color: var(--ai-color-1);
    margin-right: 5px;
    font-weight: bold;
    flex-shrink: 0;
}

#cmd-input {
    background: transparent;
    border: none;
    color: var(--ai-color-1);
    font-family: var(--font-stack);
    font-size: 16px;
    outline: none;
    flex-grow: 1;
    text-transform: lowercase;
    cursor: text; 
    min-width: 0;
}

#cmd-input::placeholder {
    color: #444;
    text-transform: none;
}

.interactive-btn {
    background: transparent;
    border: 1px solid var(--sys-color);
    color: var(--sys-color);
    padding: 8px 20px;
    cursor: pointer; 
    font-family: inherit;
    margin: 0 10px;
    transition: 0.2s;
    display: inline-block;
    letter-spacing: 1px;
}
.interactive-btn:hover {
    background: var(--sys-color);
    color: black;
    box-shadow: 0 0 10px var(--sys-color);
}

.legal-content {
    font-size: 0.85rem;
    color: #aaa;
    max-height: 300px;
    overflow-y: auto;
    padding-right: 10px;
    border-top: 1px solid var(--sys-dim);
    margin-top: 10px;
    padding-top: 10px;
}

.legal-content h3 {
    color: var(--sys-color);
    font-size: 1rem;
    margin-top: 1.5rem;
    border-left: 3px solid var(--sys-dim);
    padding-left: 10px;
}

.legal-content p {
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

.legal-content::-webkit-scrollbar {
    width: 5px;
}

.legal-content::-webkit-scrollbar-thumb {
    background: var(--sys-color);
}

.legal-content::-webkit-scrollbar-track {
    background: #111;
}
/* --- SYSTEM MENU --- */
.sys-menu {
    margin-top: 2rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.menu-header {
    font-size: 0.7rem;
    color: var(--sys-dim);
    margin-bottom: 0.5rem;
    border-bottom: 1px solid var(--sys-dim);
    width: 100%;
    text-align: left;
}

.sys-menu-item {
    color: var(--text-color);
    text-decoration: none;
    padding: 8px 10px;
    border-left: 2px solid transparent;
    transition: all 0.2s;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.6;
    text-align: left;
    width: 100%;
    box-sizing: border-box;
    display: block;
}

.sys-menu-item:hover {
    border-left-color: var(--sys-color);
    background: linear-gradient(90deg, var(--sys-dim) 0%, transparent 100%);
    color: var(--sys-color);
    opacity: 1;
    padding-left: 20px; /* Slide Effect */
    text-shadow: 0 0 5px var(--sys-color);
}

/* Mobile Adjustments for Menu */
@media (max-width: 768px) {
    .sys-menu {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 5px;
        margin-bottom: 2rem;
    }
    
    .menu-header {
        text-align: center;
        margin-bottom: 5px;
    }

    .sys-menu-item {
        width: auto;
        border-left: none;
        border: 1px solid var(--sys-dim);
        font-size: 0.75rem;
        padding: 5px 10px;
        background: rgba(0,0,0,0.5);
    }

    .sys-menu-item:hover {
        padding-left: 10px; /* Disable Slide on Mobile */
        background: var(--sys-dim);
        border-color: var(--sys-color);
    }
}

/* --- EASTER EGG: DENYS OVERRIDE --- */
#denys-override {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 5000; /* Ganz oben */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.huge-glitch {
    font-size: 15vw; /* Riesig */
    font-weight: bold;
    color: var(--text-color);
    position: relative;
    letter-spacing: 10px;
    z-index: 2;
    animation: text-shudder 0.2s infinite;
}

.huge-glitch::before,
.huge-glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: #000;
}

.huge-glitch::before {
    color: var(--sys-alert); /* Rot */
    text-shadow: -2px 0 var(--ai-color-2);
    clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
    transform: translate(-5px, -2px);
    animation: glitch-anim-1 2s infinite linear alternate-reverse;
}

.huge-glitch::after {
    color: var(--ai-color-1); /* Cyan */
    text-shadow: -2px 0 var(--sys-color);
    clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%);
    transform: translate(5px, 2px);
    animation: glitch-anim-2 2.5s infinite linear alternate-reverse;
}

.override-sub {
    font-family: 'Courier New', monospace;
    color: var(--sys-color);
    font-size: 1.5rem;
    margin-top: 2rem;
    letter-spacing: 5px;
    animation: blink 0.5s infinite;
    text-shadow: 0 0 10px var(--sys-color);
    z-index: 2;
}

.sub-2 {
    font-size: 1rem;
    color: var(--ai-color-1);
    animation: blink 0.8s infinite;
}

.override-grid {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: 
        linear-gradient(transparent 50%, rgba(0, 255, 0, 0.05) 50%),
        linear-gradient(90deg, rgba(255, 0, 0, 0.03), rgba(0, 255, 0, 0.03), rgba(0, 0, 255, 0.03));
    background-size: 100% 2px, 3px 100%;
    z-index: 1;
    pointer-events: none;
}

/* Hard Glitch Keyframes */
@keyframes glitch-anim-1 {
    0% { clip-path: polygon(0 2%, 100% 2%, 100% 5%, 0 5%); transform: translate(-5px, 0); }
    20% { clip-path: polygon(0 15%, 100% 15%, 100% 15%, 0 15%); transform: translate(5px, 0); }
    40% { clip-path: polygon(0 10%, 100% 10%, 100% 20%, 0 20%); transform: translate(-5px, 0); }
    60% { clip-path: polygon(0 80%, 100% 80%, 100% 85%, 0 85%); transform: translate(5px, 0); }
    80% { clip-path: polygon(0 40%, 100% 40%, 100% 50%, 0 50%); transform: translate(-5px, 0); }
    100% { clip-path: polygon(0 60%, 100% 60%, 100% 65%, 0 65%); transform: translate(5px, 0); }
}

@keyframes glitch-anim-2 {
    0% { clip-path: polygon(0 60%, 100% 60%, 100% 65%, 0 65%); transform: translate(5px, 0); }
    20% { clip-path: polygon(0 40%, 100% 40%, 100% 50%, 0 50%); transform: translate(-5px, 0); }
    40% { clip-path: polygon(0 80%, 100% 80%, 100% 85%, 0 85%); transform: translate(5px, 0); }
    60% { clip-path: polygon(0 10%, 100% 10%, 100% 20%, 0 20%); transform: translate(-5px, 0); }
    80% { clip-path: polygon(0 15%, 100% 15%, 100% 15%, 0 15%); transform: translate(5px, 0); }
    100% { clip-path: polygon(0 2%, 100% 2%, 100% 5%, 0 5%); transform: translate(-5px, 0); }
}

@keyframes text-shudder {
    0% { transform: translate(1px, 1px) skewX(0deg); }
    20% { transform: translate(-1px, -1px) skewX(10deg); }
    40% { transform: translate(-2px, 1px) skewX(-5deg); }
    60% { transform: translate(1px, -2px) skewX(5deg); }
    80% { transform: translate(-1px, 2px) skewX(-10deg); }
    100% { transform: translate(1px, -1px) skewX(0deg); }
}

@keyframes glitch-anim {
    0% { transform: translate(0) }
    20% { transform: translate(-2px, 2px) }
    40% { transform: translate(-2px, -2px) }
    60% { transform: translate(2px, 2px) }
    80% { transform: translate(2px, -2px) }
    100% { transform: translate(0) }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (max-width: 768px) {
    .glitch-avatar { width: 140px; height: 140px; margin-bottom: 1rem; }
    .sidebar { padding: 1rem; align-items: center; border-right: none; border-bottom: 1px solid var(--sys-dim); }
    .content-area { padding: 1.5rem; }
    h2 { font-size: 1.5rem; }
    p { font-size: 0.95rem; }
    section { margin-bottom: 10vh; }
    #bio { margin-bottom: 15vh; }
    #footer-coords { display: none; }
    .project-card { padding: 1.5rem; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
    #terminal-footer { padding: 10px; }
    .overlay-text { font-size: 0.8rem; }
}

/* --- ACTIVE PLAYER UI IN TRACKLIST --- */
.track-list li {
    flex-wrap: wrap; /* Erlaubt Umbruch für den Player */
    transition: all 0.3s ease;
}

.track-list li.active-track {
    background: rgba(51, 255, 0, 0.1);
    border-left: 3px solid var(--sys-color);
    padding-bottom: 1rem;
}

/* Der Container für den Player (wird per JS eingefügt) */
.player-ui {
    width: 100%;
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    color: var(--sys-color);
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

.time-display {
    min-width: 90px;
    text-align: right;
    letter-spacing: 1px;
}

/* Die Progress Bar (Hintergrund) */
.progress-track {
    flex-grow: 1;
    height: 8px;
    background: rgba(51, 255, 0, 0.2);
    border: 1px solid var(--sys-dim);
    cursor: crosshair; /* Taktischer Cursor */
    position: relative;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.progress-track:hover {
    border-color: var(--sys-color);
}

/* Der Füllstand (Balken) */
.progress-fill {
    height: 100%;
    background: var(--sys-color);
    width: 0%;
    position: relative;
    box-shadow: 0 0 10px var(--sys-color);
    transition: width 0.1s linear; /* Smooth movement */
}

/* Der "Abspielkopf" (kleiner Strich) */
.progress-fill::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 2px;
    background: #fff;
    box-shadow: 0 0 5px #fff;
}

/* --- COVER LINK HOVER EFFECTS --- */
.cover-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    text-decoration: none;
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewport="0 0 20 20" style="fill:none;stroke:%2333ff00;stroke-width:2"><rect x="1" y="1" width="18" height="18"/><line x1="1" y1="1" x2="19" y2="19"/></svg>') 10 10, pointer;
}

.link-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Abdunkeln */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0; /* Unsichtbar am Anfang */
    transition: opacity 0.3s ease;
    border: 1px solid var(--sys-color);
    box-sizing: border-box;
}

/* Hover-Zustand: Overlay sichtbar machen */
.cover-link:hover .link-overlay {
    opacity: 1;
}

/* Der Text im Overlay */
.overlay-text {
    font-size: 14px;
    color: var(--sys-color);
    font-family: 'Courier New', monospace;
    font-weight: bold;
    letter-spacing: 0px;
    background: rgba(0, 20, 0, 0.8);
    padding: 5px 10px;
    border: 1px solid var(--sys-color);
    box-shadow: 0 0 10px var(--sys-color);
    transform: translateY(10px);
    transition: transform 0.3s;
}

.cover-link:hover .overlay-text {
    transform: translateY(0);
}

/* Scan-Line Animation */
.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--ai-color-1);
    opacity: 0.8;
    box-shadow: 0 0 10px var(--ai-color-1);
    animation: scanMove 1.5s linear infinite;
    pointer-events: none;
}

@keyframes scanMove {
    0% { top: 0%; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

/* --- GALLERY GRID --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.gallery-item {
    position: relative;
    aspect-ratio: 1 / 1; /* Quadratische Thumbnails */
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
    background: #000;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    transition: all 0.3s;
    filter: grayscale(80%);
}

/* Hover Effects */
.gallery-item:hover img {
    opacity: 1;
    transform: scale(1.1);
    filter: grayscale(0%);
}

.gallery-item:hover {
    box-shadow: 0 0 15px var(--sys-color);
    border-color: var(--sys-color);
    z-index: 10; /* Leicht anheben */
}

.item-overlay {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    color: var(--sys-color);
    border: 1px solid var(--sys-color);
    background: rgba(0,0,0,0.8);
    padding: 5px 10px;
    font-size: 0.8rem;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none; /* Klick geht durch aufs Bild */
    white-space: nowrap;
}

.gallery-item:hover .item-overlay {
    opacity: 1;
}

/* --- LIGHTBOX --- */
#lightbox {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 4000; /* Über allem, unter dem Easter Egg */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

#lightbox.active {
    opacity: 1;
    pointer-events: all;
}

.lightbox-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(5px);
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 85vh;
    z-index: 2;
    background: #000;
    box-shadow: 0 0 30px rgba(51, 255, 0, 0.2);
    display: flex;
    flex-direction: column;
}

#lightbox-img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    display: block;
}

.lightbox-ui {
    background: rgba(0, 20, 0, 0.9);
    border-top: 1px solid var(--sys-color);
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-stack);
    font-size: 0.9rem;
}

#lightbox-caption {
    color: var(--ai-color-1);
    text-transform: uppercase;
}

.lightbox-close {
    cursor: pointer;
    color: var(--sys-alert);
    border: 1px solid var(--sys-alert);
    padding: 2px 8px;
    transition: all 0.2s;
}

.lightbox-close:hover {
    background: var(--sys-alert);
    color: #000;
}