/* ======================================================================================== */
/* Globales CSS                                                                             */
/* Projekt: JS Demo Snake-Game                                                              */
/* Description: Kombiniert Layout-Basis, Spiel-Logik und Benutzerinteraktion.               */
/* Autor: BRULSIM                                                                           */
/* Datum: 2026-06-20                                                                        */
/* ======================================================================================== */

/* Grundlegende Stile für die gesamte Seite */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
    display: flex;          /* Basis Aufteilung fixieren */
    flex-direction: column; 
    height: 100vh;          
    flex-wrap: nowrap;      
}

/**********************/
/* Header-Stile       */
/**********************/
header {
    background-color: #564ac1; /* Violett aus deinem JS-Entwurf beibehalten */
    color: white;
    font-size: 1.2em;
}

header .header-container {
    max-width: 800px;
    margin: auto;
    padding: 20px 5%;
    display: flex;
    gap: 10px;
    justify-content: space-between;
    align-items: center; /* Vertikal zentrieren */
}

/* Menü-Stile */
header .menu-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

header a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

/* Button-Stile im Header */
header button {
    background-color: white;
    text-decoration: none;
    color: #564ac1; /* Farbe an violettes Theme angepasst */
    border: none;
    padding: 10px 20px;
    font-size: 1em;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
    margin: 0;
}

header button:hover {
    background-color: #3f3593;
    color: white;
}

/**********************/
/* Main-Bereich-Stile */
/**********************/


/* Links in der Liste */
main a, main .bt {
    display: block;
    background-color: #5f55be;
    color: white;
    border: none;
    padding: 0.8em;
    margin: 10px 0;
    text-decoration: none;
    font-size: 1em;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    width: 100%;
    transition: 0.3s;
}

main a:hover:not(:disabled),
main .bt:hover:not(:disabled) {
    background-color: #342b85;
    font-size: 1.2em;
}

button:disabled {
    background-color: #c7abce;
    color: #616161;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Main-Bereich-Stile */
main {
    flex-grow: 1;
    padding: 0;
    margin: 0;
    overflow-y: auto;
    height: 100%;
    position: relative;
}

/* Formatierung für die Beschreibungsabsätze */
main p {
    line-height: 1.6;
    margin-bottom: 1.5em;
}

/**********************/
/* Footer-Stile        */
/**********************/
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 15px;      /* Etwas mehr Luft gegeben */
}
