/* Grundlegende Stile für die gesamte Seite */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
    display: flex;          /* Basisaufteilung fixieren */
    flex-direction: column;                       /* *** */
    height: 100vh;                                /* *** */
    flex-wrap: nowrap;                            /* *** */
}

/**********************/
/* Header-Stile */
/**********************/
header {
    background-color: #4CAF50;
    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;
}

/* Titel-Stile */

/* Menü-Stile */
header .menue-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

header a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

/* Button-Stile */
header a button {
    background-color: white;
    text-decoration: none;
    color: #4CAF50;
    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: #45a049;
    color: white;
}

header button:hover a {
    color: white;
}

/**********************/
/* Main-Bereich-Stile */
/**********************/
main {
    flex-grow: 1;          /* Basisaufteilung fixieren */
    overflow: auto;                              /* *** */
}

main .main-limit {
    padding: 3% 5%;
    max-width: 800px;
    margin: auto;
}

/* Links in der Liste */
main a {
    display: block;
    padding: 10px;
    background-color: white;
    margin: 10px 0;
    text-decoration: none;
    color: #4CAF50;
    border: 1px solid #ddd;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
}

main a:hover {
    background-color: #45a049;
    color: white;
}

/* Formular */
main form {
    background-color: white;
    padding: 10px 20px 20px 20px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 5px;
}

main form label {
    display: block;
    margin: 10px 0;
}

main form input[type="text"], main form input[type="password"] {
    width: calc(100% - 20px);
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ddd;
}

main form input[type="submit"] {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 1em;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
}

main form input[type="submit"]:hover {
    background-color: #45a049;
    color: white;
}

main form button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 1em;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
}

main form button:hover {
    background-color: #1f5722;
    color: white;
}

/**********************/
/* Footer-Stile */
/**********************/
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 10px;
    bottom: 0;
}

/* ************************************/
/* 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 .menue-container {
        flex-direction: column;
    }
}