/* Globale Einstellungen */
body {
    margin: 0;
    font-family: Tahoma, Arial, sans-serif; 
    font-size: 11px;
    color: black;
    -webkit-font-smoothing: none; 
}

/* --- STYLES FÜR index.html (Cover-Seite) --- */

body.escape-desktop {
    background-image: url('../images/bck.jpg');
    background-size: cover; 
    background-repeat: no-repeat;
    background-position: center center;
    background-attachment: fixed;
    
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.xp-window {
    background-color: #ECE9D8; 
    border-top: 1px solid #FFFFFF;
    border-left: 1px solid #FFFFFF;
    border-right: 1px solid #808080;
    border-bottom: 1px solid #808080;
    box-shadow: 1px 1px 0 0 #D4D0C8, 2px 2px 0 0 #D4D0C8, 3px 3px 0 0 #000000;
    width: 320px; /* Kleine Breite */
    max-width: 90%;
    box-sizing: border-box;
}

.xp-title-bar {
    background: linear-gradient(to right, #00428E, #0070CE); 
    color: white;
    padding: 3px 2px 3px 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 18px;
    font-weight: bold;
    font-size: 12px;
}

.xp-title-bar-controls {
    display: flex;
    height: 100%;
}

.xp-control-button {
    width: 16px;
    height: 16px;
    margin-left: 2px;
    background-color: #ECE9D8;
    border: 1px solid #000000;
    font-size: 11px;
    line-height: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-sizing: border-box;
    padding: 0;
    font-weight: bold;
}

.xp-control-button:hover {
    background-color: #FF0000;
    color: white;
}

.xp-window-body {
    padding: 15px;
    background-color: #ECE9D8; 
}

.message-content-xp {
    display: flex;
    align-items: center;
    gap: 15px; 
    margin-bottom: 25px; 
}

/* Garantiert die vollständige Anzeige des Tür-Icons */
.xp-message-icon {
    width: 38px;
    height: 38px;
    
    /* Stellt sicher, dass das Element als Block und nicht als flexibles Element im Fenster-Layout angezeigt wird */
    display: block; 
    
    background-image: url('../images/door.jpg');
    background-size: contain; /* Sorgt dafür, dass das gesamte Bild sichtbar ist */
    background-repeat: no-repeat;
    background-position: center; 
    
    background-color: transparent; 
    border: none;
    box-shadow: none;
}

/* Schriftvergrößerung für "Do you want to escape?" */
.message-content-xp p {
    margin: 0;
    font-size: 12px; 
}

/* Button-Container */
.xp-button-container {
    display: flex;
    justify-content: center;
    padding-top: 10px;
}

/* XP Buttons: Wichtig, dass diese als Inline-Flex definiert bleiben! */
.xp-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 75px; 
    height: 23px; 
    margin: 0 5px; 
    
    background-color: #ECE9D8;
    border: 1px solid #000000; 
    box-shadow: inset 1px 1px 0 #FFFFFF, inset -1px -1px 0 #808080;
    
    text-decoration: none;
    color: black;
    font-size: 11px;
    cursor: pointer;
    box-sizing: border-box;
    outline: none;
}

.xp-button:active {
    border: 1px solid #808080;
    box-shadow: inset 1px 1px 0 #808080, inset -1px -1px 0 #FFFFFF;
    background-color: #D4D4D4;
}

/* --- STYLES FÜR error.html (Fehler-Seite) --- */

body.error-desktop {
    background-color: #FF0000; 
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    color: white; 
    
    /* Hintergrund-Animation: Läuft nur einmalig ab */
    animation: background-flash 5s ease-in-out 1; 
}

.error-container {
    text-align: center;
    padding: 20px;
}

/* H1: ERROR (Blinkend, Schwarz mit dünnem Umriss) */
.error-h1 {
    font-size: 32px; 
    text-transform: uppercase; 
    font-weight: bold;
    margin-bottom: 25px; 
    color: #000000; 
    
    /* Umrandung dünn (1px) */
    text-shadow: 
        1px 1px 0 #808080, 
        -1px 1px 0 #808080, 
        1px -1px 0 #808080, 
        -1px -1px 0 #808080;
        
    /* Blink-Animation */
    animation: blink-error 0.5s step-start infinite;
}

/* H2: CLICK HERE TO CLEAN UP HARD DRIVE (Link) */
.error-h2-link a {
    font-size: 14px; 
    text-transform: uppercase; 
    text-decoration: none; 
    font-weight: bold;
    color: #A06020; /* Braun-Ton */
    text-shadow: 1px 1px 0 #000000;
}

.error-h2-link a:hover {
    color: #FFFFFF; 
    text-shadow: 1px 1px 0 #000000; 
}

/* --- KEYFRAMES FÜR DRAMATISCHE EFFEKTE --- */

/* Hintergrund-Flash-Animation */
@keyframes background-flash {
    0% { background-color: #FF0000; } 
    10% { background-color: #000000; } 
    20% { background-color: #FF0000; } 
    100% { background-color: #FF0000; } 
}

/* Vordergrund-Blink-Animation */
@keyframes blink-error {
    from {
        opacity: 0; 
    }
    50% {
        opacity: 1; 
    }
    to {
        opacity: 0; 
    }
}





/* --- STYLES FÜR home.html (Dashboard) --- */

/* Body-Stil für den Vollbild-Hintergrund */
body.dashboard-desktop {
    background-image: url('../images/vprbck.jpeg');
    background-size: cover; 
    background-repeat: no-repeat;
    background-position: center center;
    
    min-height: 100vh;
    height: 100%;
    
    display: flex;
    flex-direction: column;
}

/* Oberer Header (Der obere Balken) */
.main-header {
    background-color: rgba(255, 255, 255, 0.9); 
    height: 30px; 
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    /* WICHTIGE KORREKTUR: Setzt den Header direkt an den oberen Bildschirmrand */
    margin-bottom: 0; 
    width: 100%;
    box-sizing: border-box;
}

/* Haupt-Layout für Banner und Kacheln */
.main-content-layout {
    display: flex;
    flex-grow: 1; 
    /* Abstände nur an den Seiten, oben und unten */
    padding: 10px 10px 10px 10px; 
}

/* Linker Banner/Sidebar */
.sidebar-banner {
    background-color: rgba(255, 255, 255, 0.9); 
    
    /* Breite 60px */
    width: 60px; 
    min-width: 60px;
    
    margin-right: 15px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
    border-radius: 3px;
    flex-grow: 0;
}

/* Rechter Kachel-Container */
.tile-grid-container {
    display: flex; 
    flex-wrap: wrap; 
    gap: 10px; 
    flex-grow: 1;
    align-content: flex-start;
    /* Reduziert den Abstand oben, damit die Kacheln näher am Header sind */
    padding-top: 0; 
}

/* Einzelne Rechteckige Kachel */
.tile {
    background-color: rgba(255, 255, 255, 0.9); 
    
    /* Kachelgrösse: 80px breit, 40px hoch */
    width: 80px; 
    height: 40px; 
    
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
    border-radius: 3px;
    transition: transform 0.2s;
}

.tile:hover {
    transform: translateY(-2px); 
    box-shadow: 2px 5px 10px rgba(0, 0, 0, 0.3);
}



