:root {
    --bg-color: #050510;
    --text-main: #f8fafc;
    --glass-bg: rgba(15, 23, 42, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);
    --accent: #3b82f6;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', system-ui, sans-serif; }

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    overflow: hidden; /* Verhindert natives Scrollen */
    width: 100vw;
    height: 100vh;
}

/* Fallback Styling */
.noscript-fallback { padding: 2rem; }

/* UI Panels (Glassmorphism) */
.ui-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    position: absolute;
    z-index: 100;
    border-radius: 12px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.top-bar {
    top: 1rem; left: 1rem; right: 1rem;
    display: flex; justify-content: space-between; align-items: center;
    padding: 1rem 1.5rem;
}

.controls button, .controls select, .action-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    color: white; padding: 0.5rem 1rem;
    border-radius: 6px; cursor: pointer; margin-left: 0.5rem;
}

.controls button:hover, .action-btn:hover { background: rgba(255, 255, 255, 0.2); }

#detail-panel, #list-panel {
    top: 5.5rem; width: 320px; padding: 1.5rem;
    max-height: calc(100vh - 7rem); overflow-y: auto;
}
#detail-panel { right: 1rem; }
#list-panel { left: 1rem; }
.hidden { transform: translateY(-20px); opacity: 0; pointer-events: none; }
.close-btn { position: absolute; top: 1rem; right: 1rem; background: none; border: none; color: white; cursor: pointer; }

.badge { display: inline-block; padding: 0.2rem 0.5rem; border-radius: 4px; font-size: 0.8rem; margin: 0.5rem 0; }
.badge.online { background: rgba(16, 185, 129, 0.2); color: #10b981; }
.badge.offline { background: rgba(239, 68, 68, 0.2); color: #ef4444; }

/* Viewport und Universum */
#viewport {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    cursor: grab;
}
#viewport:active { cursor: grabbing; }

#starfield {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none;
}

#universe {
    position: absolute; top: 50%; left: 50%;
    width: 0; height: 0; /* Ursprung in der Mitte des Bildschirms */
    z-index: 2;
    /* Transform wird per JS (Pan/Zoom) gesetzt */
}

/* Himmelskörper & Bahnen */
.orbit {
    position: absolute;
    border: 1px dashed rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    transform: translate(-50%, -50%); /* Zentriert um den Ursprung */
    pointer-events: none;
}

.planet {
    position: absolute;
    border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    font-size: 1.5rem;
    cursor: pointer;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 15px currentColor;
    transition: box-shadow 0.2s, transform 0.1s;
}
.planet:hover { box-shadow: 0 0 30px currentColor; z-index: 10; }
.planet.filtered-out { opacity: 0.2; pointer-events: none; }