/* 1. VARIABLEN & SYSTEM-SETUP */
:root {
    --bg-color: #050507;
    --accent-blue: #00f2ff;
    --glass-bg: rgba(255, 255, 255, 0.07);
    --glass-border: rgba(255, 255, 255, 0.15);
    --text-main: #e0e0e0;
    --font-tech: 'Orbitron', sans-serif;
    --font-body: 'Exo 2', sans-serif;
}

/* 2. BASIS LAYOUT */
body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100vh;
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-body), Arial, sans-serif;
    overflow-x: hidden;
}

.grid-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(var(--glass-border) 1px, transparent 1px), 
                      linear-gradient(90deg, var(--glass-border) 1px, transparent 1px);
    background-size: 45px 45px;
    z-index: -1;
    opacity: 0.1;
}

/* 3. NAVIGATION OBEN RECHTS (Fixiert & Farbsicher) */
.hud-top-right {
    position: fixed;
    top: 40px;
    right: 40px;
    display: flex;
    gap: 25px;
    z-index: 2000;
}

.nav-link, .nav-link:visited {
    color: var(--accent-blue) !important;
    text-decoration: none;
    font-family: var(--font-tech);
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-link:hover {
    color: #fff !important;
    text-shadow: 0 0 15px var(--accent-blue);
    transform: translateY(-2px);
}

/* 4. LOGO & STATUS OBEN LINKS */
.hud-top-left {
    position: absolute;
    top: 40px;
    left: 40px;
    z-index: 1000;
}

.logo {
    font-family: var(--font-tech);
    font-size: 1.5rem;
    letter-spacing: 4px;
    margin: 0;
}

.logo span { color: var(--accent-blue); }

.status-indicator {
    font-size: 0.65rem;
    margin-top: 10px;
    color: var(--accent-blue);
    display: flex;
    align-items: center;
    letter-spacing: 1px;
}

.blink-dot {
    width: 7px;
    height: 7px;
    background-color: var(--accent-blue);
    border-radius: 50%;
    margin-right: 8px;
    animation: blink 1.5s infinite;
}

@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

/* 5. DASHBOARD GRID (Optimiert für 14 Zoll bis Desktop) */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 20px;
    width: 85vw;
    max-width: 1200px;
    height: 60vh;
    margin: 160px auto 50px;
    position: relative;
    z-index: 5;
}

.grid-item {
    position: relative;
    background: #0a0a0c;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: all 0.4s ease;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.grid-item:hover {
    border-color: var(--accent-blue);
    box-shadow: 0 0 25px rgba(0, 242, 255, 0.2);
    transform: translateY(-5px);
}

/* 6. BILDER-LAYER */
.image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.35;
    z-index: 1;
    transition: opacity 0.5s ease, transform 0.6s ease;
}

.grid-item:hover .image-container {
    opacity: 0.7;
    transform: scale(1.08);
}

.overlay {
    position: relative;
    z-index: 2;
    padding: 25px;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%);
    width: 100%;
    box-sizing: border-box;
}

.overlay h2 {
    margin: 0;
    font-family: var(--font-tech);
    font-size: 1.2rem;
    color: var(--accent-blue);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.overlay p {
    margin: 8px 0 0;
    font-size: 0.8rem;
    opacity: 0.8;
}

/* 7. HUD ELEMENTE (Seite & Unten) */
.hud-left-vertical {
    position: fixed;
    left: 20px;
    bottom: 30px;
    font-size: 0.75rem;
    color: var(--accent-blue);
    opacity: 0.5;
    border-left: 2px solid var(--accent-blue);
    padding-left: 12px;
    z-index: 1000;
}

.hud-bottom-right {
    position: fixed;
    right: 30px;
    bottom: 30px;
    font-family: var(--font-tech);
    font-size: 0.65rem;
    color: var(--accent-blue);
    opacity: 0.5;
    letter-spacing: 2px;
    z-index: 1000;
}

/* 8. BILDER-ZUWEISUNG (Absolut sicher) */
.ki-bg { background-image: url('https://ai-ki.site/images/ai.jpg'); }
.robotic-bg { background-image: url('https://ai-ki.site/images/robotic.jpg'); }
.hitech-bg { background-image: url('https://ai-ki.site/images/hitech.jpg'); }
.society-bg { background-image: url('https://ai-ki.site/images/society.jpg'); }

/* 9. RESPONSIVE ANPASSUNGEN (Mobile & Kleine Bildschirme) */
@media (max-width: 768px) {
    .hud-top-right {
        top: 85px;
        right: 20px;
        gap: 12px;
    }
    .nav-link { font-size: 0.6rem; }
    .dashboard-grid { 
        display: flex; 
        flex-direction: column; 
        height: auto; 
        margin-top: 130px; 
        margin-bottom: 120px; 
    }
    .grid-item { min-height: 200px; flex: none; margin-bottom: 10px; }
}

@media (max-height: 650px) {
    .dashboard-grid { margin-top: 110px; height: 65vh; }
}