/* ===== Fenster ===== */
.window {
    position: absolute;
    min-width: 320px;
    min-height: 220px;
    background: var(--bg-panel);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 10px 35px rgba(0, 0, 0, .45);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    resize: both;
    animation: winOpen .18s ease both;
}

@keyframes winOpen {
    from { opacity: 0; transform: scale(.94); }
    to   { opacity: 1; transform: scale(1); }
}

.window.focused {
    border-color: var(--accent);
    box-shadow: var(--shadow), 0 0 0 1px var(--accent-soft);
}

.window.minimized { display: none; }

.window.maximized {
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    height: calc(100% - 52px) !important;
    border-radius: 0;
    resize: none;
}

/* Titelleiste */
.titlebar {
    background: var(--bg-titlebar);
    border-bottom: 1px solid var(--border);
    padding: 9px 8px 9px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: grab;
    user-select: none;
    flex-shrink: 0;
}

.titlebar:active { cursor: grabbing; }

.titlebar .title {
    font-size: 13px;
    font-weight: 600;
}

.win-buttons { display: flex; gap: 2px; }

.win-buttons button {
    width: 34px;
    height: 26px;
    background: none;
    border: none;
    border-radius: 6px;
    color: var(--text-dim);
    font-size: 13px;
    line-height: 1;
}

.win-buttons button:hover {
    background: var(--bg-hover);
    color: var(--text);
}

.win-buttons .btn-close:hover {
    background: #d63b3b;
    color: #fff;
}

/* Inhalt */
.win-content {
    flex: 1;
    overflow: auto;
    padding: 22px;
    font-size: 14px;
    line-height: 1.6;
}

.win-content h1 {
    font-size: 22px;
    margin-bottom: 12px;
}

.win-content h2 {
    font-size: 16px;
    margin: 18px 0 8px;
    color: var(--accent);
}

.win-content p { margin-bottom: 10px; }

.win-content ul { margin: 8px 0 12px 22px; }

.win-content a { color: var(--accent); }

.win-content .dim { color: var(--text-dim); }
