/* 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 a 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 a button:hover {
    background-color: #3f3593;
    color: white;
}

/**********************/
/* Main-Bereich-Stile */
/**********************/

/* Links in der Liste */
main a {
    display: block;
    padding: 10px;
    background-color: white;
    margin: 10px 0;
    text-decoration: none;
    color: #2f286b;
    border: 1px solid #ddd;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
}

main a:hover {
    background-color: #564ac1;
    color: white;
}

/* Main-Bereich-Stile */
main {
    flex-grow: 1;
    padding: 30px 0;
    overflow: auto;
}

main .main-limit {
    padding: 0 5%;
    max-width: 800px;
    margin: auto;
}

/* 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 */
}

/**********************/
/* Adaptive Stile     */
/**********************/
@media screen and (max-width: 550px) {
    header h1 {
        font-size: 1.5em;
    } 
    header a button {
        font-size: 0.8em;
    }
}
@media screen and (max-width: 420px) {
    header h1 {
        font-size: 1.2em;
    }          
    header a button {
        font-size: 0.6em;
    }
}
@media screen and (max-width: 370px) {
    header .title-container h1 {
        word-break: break-all;
    }
    header .menu-container {
        flex-direction: column;
    }
}