body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden; /* Keine Scrollbalken */
    font-family: 'Segoe UI', sans-serif;
    background-color: #222; /* Fallback Farbe */
}

/* Der 3D Canvas im Hintergrund */
#gl-canvas {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    outline: none;
}

/* Info Panel oben links */
#info-panel {
    position: absolute;
    top: 20px; left: 20px;
    width: 300px;
    background: rgba(255, 255, 255, 0.9);
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    z-index: 10;
    pointer-events: none; /* Klicks gehen durch, wenn man nicht Text markiert */
}
#info-panel h3 { margin-top: 0; }
#json-output {
    font-size: 11px;
    background: #f0f0f0;
    padding: 10px;
    border-radius: 4px;
    max-height: 200px;
    overflow: auto;
    pointer-events: auto; /* Scrollen erlauben */
}

/* Sidebar rechts */
#sidebar {
    position: absolute;
    top: 20px; right: 20px;
    width: 200px;
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    z-index: 10;
}

.ui-btn {
    width: 100%;
    padding: 12px;
    background: #27ae60;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 10px;
}
.ui-btn:hover { background: #219150; }


/* ... (Der Rest bleibt gleich wie vorher) ... */

#catalog-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.catalog-item {
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 10px;
    cursor: grab; /* Zeigt Hand-Cursor */
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.1s, box-shadow 0.1s;
    user-select: none; /* Text nicht markierbar beim Ziehen */
}

.catalog-item:hover {
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.catalog-item:active {
    cursor: grabbing;
}

.item-icon {
    width: 40px;
    height: 40px;
    background: #ddd;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.item-info strong {
    display: block;
    font-size: 14px;
    color: #333;
}


/* Am Ende der Datei einfügen */

.tooltip-box {
    position: absolute;
    display: none; /* Erstmal weg */
    background: rgba(0, 0, 0, 0.85); /* Dunkler Hintergrund */
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    pointer-events: none; /* WICHTIG: Maus klickt hindurch */
    z-index: 1000;
    white-space: pre-line; /* Erlaubt Zeilenumbrüche */
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.2);
    transform: translate(15px, 15px); /* Leicht versetzt zur Maus */
}