:root {
    --bg: #0b0f13; 
    --panel: #141a23; 
    --panel-soft: rgba(20, 26, 35, 0.8);
    --muted: #0d1117; 
    --accent: #60a5fa;
    --accent-glow: rgba(96, 165, 250, 0.3);
    --text: #f1f5f9; 
    --text-dim: #94a3b8; 
    --ok: #10b981; 
    --warn: #f59e0b; 
    --err: #ef4444;
    --bezel: #08090b; 
    --bezel-outer: #040506;
    --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

body {
    margin: 0; 
    background: #050505;
    color: var(--text); 
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    overflow: hidden;
    height: 100dvh;
}

/* --- TABLET CASING --- */
.center { display: grid; place-items: center; height: 100%; padding: 10px; }

.tablet {
    width: 99vw; height: 98vh;
    background: #0f1115;
    border-radius: 40px; /* Abgerundetere Ecken für Modern-Look */
    padding: 14px;
    position: relative;
    border: 4px solid #1a1d23;
    box-shadow: 
        0 0 0 2px #000,
        0 20px 80px rgba(0,0,0,0.8),
        inset 0 0 40px rgba(0,0,0,0.6);
}

.camera-notch {
    position: absolute; 
    top: 10px; 
    left: 50%; 
    transform: translateX(-50%);
    width: 150px; 
    height: 30px;
    background: #000; 
    border-radius: 20px;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px; /* Abstand zwischen Linse und Sensor */
    
    /* Gehäuse-Optik */
    box-shadow: 
        0 4px 15px rgba(0,0,0,0.8),
        inset 0 -1px 1px rgba(255,255,255,0.05);
    border: 1px solid #111;
}

/* Die Hauptlinse (Links) */
.camera-notch::before {
    content: "";
    width: 10px;
    height: 10px;
    background: radial-gradient(circle at 35% 35%, #2a3045 0%, #050505 80%);
    border-radius: 50%;
    box-shadow: 
        0 0 4px rgba(0,0,0,0.5),
        inset 0 0 2px rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.03);
}

/* Der Infrarot/Licht-Sensor (Rechts) */
.camera-notch::after {
    content: "";
    width: 6px;
    height: 6px;
    background: radial-gradient(circle, rgba(96, 165, 250, 0.15) 0%, #080808 90%);
    border-radius: 50%;
    box-shadow: inset 0 0 2px #000;
    opacity: 0.6;
}

/* --- SCREEN INTERIOR --- */
.screen {
    position: absolute; inset: 12px;
    border-radius: 28px;
    overflow: hidden;
    background: #0a0c10;
    display: flex; flex-direction: column;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.5);
}

.topbar {
    height: 56px; display: flex; align-items: center; justify-content: space-between;
    padding: 0 24px; border-bottom: 1px solid rgba(255,255,255,0.05);
    background: rgba(13, 17, 23, 0.8);
    backdrop-filter: blur(12px);
    z-index: 50;
}

/* --- SIDEBAR REFINEMENT --- */
.sidebar {
    width: 240px; flex-shrink: 0;
    background: rgba(10, 12, 16, 0.95);
    border-right: 1px solid rgba(255,255,255,0.03);
    padding: 16px 12px;
    display: flex; flex-direction: column; gap: 8px;
    overflow-y: auto;
}

.navbtn {
    padding: 12px 16px; border-radius: 12px;
    display: flex; align-items: center; gap: 12px;
    color: var(--text-dim); text-decoration: none;
    background: transparent; border: 1px solid transparent;
    transition: var(--transition);
    font-weight: 500;
}

.navbtn:hover {
    background: rgba(255,255,255,0.03);
    color: var(--text);
}

.navbtn.active {
    background: var(--accent-glow);
    color: var(--accent);
    border-color: rgba(96, 165, 250, 0.2);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* --- CONTENT AREA --- */
.content { flex: 1; padding: 20px; overflow-y: auto; scroll-behavior: smooth; }

.card {
    background: linear-gradient(145deg, #161c26, #0f131a);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 20px; padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* --- INPUTS & BUTTONS --- */
.input {
    background: #080a0d; border: 1px solid #1e293b;
    color: #fff; padding: 14px; border-radius: 12px;
    transition: var(--transition);
}

.input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
    outline: none;
}

.btn {
    background: var(--accent); color: #000;
    border: none; padding: 12px 20px; border-radius: 12px;
    font-weight: 700; cursor: pointer; transition: var(--transition);
}

.btn:hover { transform: translateY(-2px); filter: brightness(1.1); }
.btn:active { transform: translateY(0); }

/* --- TABLET CASE: Deep Black Chrome --- */
.tablet {
    background: #050608; /* Noch dunkler */
    border: 1px solid #1a1c20;
    /* Gehäuse-Reflektion: Nur eine ganz feine Kante oben für den Metall-Look */
    box-shadow: 
        0 40px 100px rgba(0,0,0,0.9), 
        inset 0 1px 1px rgba(255,255,255,0.05), 
        0 0 0 6px #0d0e10; 
    border-radius: 35px;
}

/* --- SCREEN: OLED-Feeling --- */
.screen {
    background: #000000; /* Echtes Schwarz */
    box-shadow: inset 0 0 40px rgba(0,0,0,1);
    border: 1px solid #111418;
}

/* --- SIDEBAR: Stealth Mode --- */
.sidebar {
    background: #07090c; 
    border-right: 1px solid #14181e;
}

/* --- NAV-GLOW: Dezent & Edel --- */
.navbtn {
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.navbtn.active, .navbtn[aria-current="page"] {
    /* Sanfterer Verlauf */
    background: linear-gradient(90deg, rgba(96, 165, 250, 0.08) 0%, transparent 100%);
    border-left: 3px solid var(--accent);
    color: #fff;
    
    /* Glow drastisch reduziert: Nur ein Hauch von Licht an der Kante */
    box-shadow: -5px 0 15px -8px var(--accent); 
    text-shadow: 0 0 5px rgba(96, 165, 250, 0.4);
}

/* Hover-Effekt: Die Karte fängt an zu "leuchten" */
.card:hover, .prod-card:hover {
    border-color: var(--accent) !important;
    box-shadow: 0 0 15px rgba(96, 165, 250, 0.1), inset 0 0 10px rgba(96, 165, 250, 0.05);
}

/* --- BEHÖRDE BUTTONS: Extra Pop --- */
.btn.selectable.active {
    outline: none;
    border: 1px solid var(--accent);
    box-shadow: 0 0 15px var(--accent-glow), inset 0 0 5px var(--accent-glow);
    background: rgba(96, 165, 250, 0.1);
}

/* --- SCROLLBAR: Blackout --- */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: #000; }
::-webkit-scrollbar-thumb { 
    background: #1a1e26; 
    border-radius: 10px;
    border: 1px solid #252a35;
}
::-webkit-scrollbar-thumb:hover { background: var(--accent); }


/* --- SCREEN: Weg vom "toten" Schwarz --- */
.screen {
    /* Wir nutzen die Farben der Sidebar (#0f1319), aber dunkler verlaufend */
    background: linear-gradient(145deg, #0a0d12 0%, #050608 100%) !important;
    border: 1px solid #141a23; /* Subtile Kante passend zur Sidebar */
    box-shadow: inset 0 0 40px rgba(0,0,0,0.6);
}

/* --- CONTENT: Die Verbindung schaffen --- */
.content {
    /* Ein ganz leichter bläulicher Schimmer von oben links */
    background: radial-gradient(circle at 0% 0%, rgba(20, 26, 35, 0.4) 0%, transparent 50%);
    position: relative;
}

/* --- SIDEBAR: Feinjustierung --- */
.sidebar {
    /* Gleiche Basis wie rechts, aber einen Tick heller für die Abhebung */
    background: #0f1319 !important; 
    border-right: 1px solid #1f2430;
    box-shadow: 10px 0 30px rgba(0,0,0,0.3);
    z-index: 10;
}

/* --- KARTEN: Damit sie auf dem neuen Hintergrund "sitzen" --- */
.card, .prod-card, .po-card {
    /* Etwas dunkler als die Sidebar, aber heller als der Screen-Hintergrund */
    background: rgba(15, 20, 28, 0.7) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.04) !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

/* --- TOPBAR: Das Bindeglied --- */
.topbar {
    background: rgba(13, 17, 23, 0.9) !important;
    border-bottom: 1px solid #1f2430;
    backdrop-filter: blur(10px);
}

.sidebar {
    background: #0f1319 !important; 
    border-right: 1px solid #1f2430;
    position: relative;
    z-index: 10;
}

/* Der Glow-Effekt an der rechten Kante */
.sidebar::after {
    content: "";
    position: absolute;
    top: 50px;    /* Startet unterhalb der Topbar */
    right: -1px;  /* Direkt auf der Border */
    width: 1px;
    height: 70%;  /* Leuchtet nicht über die volle Länge für mehr Dynamik */
    background: linear-gradient(to bottom, 
        transparent, 
        var(--accent), 
        rgba(96, 165, 250, 0.5), 
        transparent
    );
    box-shadow: 0 0 15px rgba(96, 165, 250, 0.4);
    pointer-events: none;
}

/* NUR Karten in 'Extern' und 'MotorLife' leuchten */
#t-extern-ultimate .node-card, 
.social-main .t-post,
#t-extern-ultimate .card {
    background: rgba(15, 20, 28, 0.5) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    transition: all 0.3s ease;
}

#t-extern-ultimate .node-card:hover,
.social-main .t-post:hover {
    border-color: rgba(96, 165, 250, 0.3) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    background: rgba(20, 25, 35, 0.8) !important;
}

/* ALLE ANDEREN KARTEN (Cargo, Hilfe, etc.) bleiben neutral */
.card:not(#t-extern-ultimate .card) {
    box-shadow: none !important;
    border-color: #1e2633 !important;
}

