/* === MAC WINDOW MANAGER === */
.mac-window {
    position: absolute;
    width: 700px;
    height: 450px;
    /* Mac-Fenster sind standardmäßig etwas heller */
    background: rgba(245, 245, 245, 0.85);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 10px;
    /* Typischer Apple-Schatten: Sehr weich, breite Streuung */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.2s, opacity 0.2s;
}

.mac-window.minimized {
    transform: scale(0);
    opacity: 0;
    pointer-events: none;
}

.mac-window.maximized {
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    /* 28px Abzug wegen der Topbar */
    height: calc(100vh - 28px) !important;
    border-radius: 0;
}

/* === WINDOW HEADER === */
.mac-window-header {
    height: 28px; /* Identisch zur Topbar */
    background: linear-gradient(to bottom, rgba(235, 235, 235, 0.9), rgba(215, 215, 215, 0.9));
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
}

/* === TRAFFIC LIGHTS (Ampel-Buttons) === */
.traffic-lights {
    display: flex;
    gap: 8px;
    width: 60px; /* Feste Breite für Layout-Balance */
}

.traffic-light {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.close-btn { background: #ff5f56; border: 1px solid #e0443e; }
.min-btn { background: #ffbd2e; border: 1px solid #dea123; }
.max-btn { background: #27c93f; border: 1px solid #1aab29; }

.window-title {
    font-size: 13px;
    font-weight: 600;
    color: #4d4d4d;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
    flex: 1;
    text-align: center;
    cursor: default;
}

.header-spacer {
    width: 60px; /* Muss identisch zu .traffic-lights sein, damit der Titel 100% zentriert ist */
}

.mac-window-body {
    flex: 1;
    overflow-y: auto;
}