body {
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.desktop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100% - 40px); /* Höhe reduziert, um Platz für die Taskleiste zu schaffen */
    overflow: hidden;
    background: #3a3d41;
}

.desktop-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(255, 0, 0); /* Halbtransparentes Schwarz */
    display: none; /* Standardmäßig ausgeblendet */
    pointer-events: none; /* Klicks sollen nicht blockiert werden */
    z-index: 9999; /* Über allem anderen auf dem Desktop */
}

.marking-box {
    position: absolute;
    border: 2px dashed #000;
    pointer-events: none; /* Klicks sollen nicht auf das Overlay reagieren */
}

.taskbar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background: #1c1c1c;
    color: #fff;
    display: flex;
    align-items: center;
    padding: 0 10px;
    box-sizing: border-box;
}

.start-button, .programm-button, .programm-buttonmc, .programm-buttonmcc {
    background: #007bff;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
    margin-right: 10px;
}

.taskbar-apps {
    display: flex;
    flex-grow: 1;
}

.taskbar-app {
    background: #3a3d41;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
    margin-right: 5px;
    display: flex;
    align-items: center;
    position: relative;
}

.taskbar-app .window-title {
    flex-grow: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 10px;
}

.taskbar-app .context-menu {
    display: none;
    position: absolute;
    bottom: 25px;
    margin-left: 10px;
    border-radius: 8px;
    left: 0;
    background: #000000;
    border: 1px solid #ccc;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.taskbar-app .context-menu li {
    border-radius: 8px;
    list-style: none;
    padding: 5px 10px;
    cursor: pointer;
}

.taskbar-app .context-menu li:hover {
    background: #3a3a3a;
}

.window {
    position: absolute;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    border: 1px solid #ccc;
    border-radius: 4px;
    overflow: hidden;
    z-index: 100;
    width: 400px; /* Standardbreite */
    height: 300px; /* Standardhöhe */
}

.window-titlebar {
    background-color: #007bff;
    color: #fff;
    padding: 8px;
    cursor: move;
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between; /* Elemente nebeneinander anordnen */
}

.window-title {
    font-weight: bold;
}

.window-controls {
    display: flex;
}

.window-controls .window-minimize,
.window-controls .window-maximize,
.window-controls .window-restore,
.window-controls .window-close {
    margin-left: 10px;
    cursor: pointer;
}

.window-content {
    padding: 10px;
    position: relative;
    top: 0;
    z-index: 0;
    overflow: auto;
}
/* Fensterinhalt */

.window-content iframe {
    width: 100%;
    height: 100%;
    border: none; /* Entfernt den Standardrahmen des iframes */
    display: block;
}