/* ===== Desktop ===== */
#desktop {
    display: none;
    position: fixed;
    inset: 0;
    background: linear-gradient(140deg, #141e30, #243b55);
    transition: background .5s ease;
}

#desktop.visible { display: block; }

/* Icons */
#icons {
    position: absolute;
    inset: 25px 25px 75px 25px;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 10px;
    pointer-events: none;
}

.icon {
    width: 88px;
    padding: 10px 4px;
    text-align: center;
    color: #fff;
    cursor: pointer;
    user-select: none;
    border-radius: 8px;
    border: 1px solid transparent;
    pointer-events: auto;
    text-shadow: 0 1px 4px rgba(0, 0, 0, .7);
    transition: transform .12s ease, background .12s ease;
}

.icon:hover { background: rgba(255, 255, 255, .1); }

.icon.selected {
    background: var(--accent-soft);
    border-color: var(--accent);
}

.icon .glyph { font-size: 42px; display: block; }

.icon span {
    display: block;
    margin-top: 7px;
    font-size: 13px;
}

/* Kontextmenü */
#contextMenu {
    position: absolute;
    display: none;
    min-width: 200px;
    background: var(--bg-panel);
    backdrop-filter: blur(14px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 6px;
    z-index: 5000;
}

#contextMenu.visible { display: block; }

#contextMenu button {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    background: none;
    border: none;
    color: var(--text);
    padding: 9px 12px;
    border-radius: 6px;
    font-size: 13px;
    text-align: left;
}

#contextMenu button:hover { background: var(--bg-hover); }

#contextMenu hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 5px 8px;
}

/* Benachrichtigungen */
#notifications {
    position: absolute;
    right: 15px;
    bottom: 65px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 6000;
}

.toast {
    width: 300px;
    background: var(--bg-panel);
    backdrop-filter: blur(14px);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 13px 16px;
    animation: toastIn .25s ease both;
}

.toast.leaving { animation: toastOut .25s ease both; }

.toast b { display: block; font-size: 14px; margin-bottom: 3px; }
.toast p { font-size: 13px; color: var(--text-dim); }

@keyframes toastIn {
    from { opacity: 0; transform: translateX(40px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes toastOut {
    from { opacity: 1; }
    to   { opacity: 0; transform: translateX(40px); }
}
