/* Grundstruktur und globale Stile */
html, body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    background-color: #f4f7f8;
    font-size: 16px;
    line-height: 1.5;
    overflow-x: hidden; /* Verhindert horizontales Scrollen */
}

/* Header */
header {
    background-color: #f4f7f8;
    padding: 20px;
    color: #ffffff;
    font-size: 26px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    width: 100%;
    position: sticky; /* Fixiert den Header, damit er sichtbar bleibt */
    top: 0;
    z-index: 1000;
}

/* Hauptcontainer */
main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; /* Startet Inhalte oben */
    margin: 20px;
    padding: 20px;
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    /*max-width: 800px; /* Begrenzung der maximalen Breite */
    width: 90%; /* Flexible Breite für kleinere Bildschirme */
    overflow: auto; /* Verhindert, dass Inhalte abgeschnitten werden */
}

#create-notes {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

#format-codes {
    display: flex;
    flex-direction: column;
    align-items: start;
    padding-left: 20px;
    text-align: left;
}

#format-codes p {
    font-size: 10px;
}

/* Footer */
footer {
    background-color: #506090;
    text-align: center;
    color: #ffffff;
    font-size: 15px;
    width: 100%;
    margin-top: auto;
    padding: 10px 20px;
    
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    bottom: 0;
}

/* Formularstile */
form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 400px;
}

input[type="text"], input[type="password"], textarea {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
}

input[type="text"]:focus, input[type="password"]:focus, textarea:focus {
    border-color: #506090;
    outline: none;
}

/* Buttons */
.button, input[type="submit"] {
    background-color: #506090;
    color: #ffffff;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

#login-home-button {
    padding: 10px;
    border: 1px solid #ddd;
    outline: none;
    width: auto;
}

.button:hover, input[type="submit"]:hover {
    background-color: #3d4a70;
}

/* Spezifische Klassen für den Button */
.button.aktiv {
    background-color: #ffffff;
    color: #506090;
    border: 2px solid #506090;
}

.button.aktiv:hover {
    background-color: #f4f7f8;
    border-color: #3d4a70;
}

/* Layout der Button-Gruppe */
.button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

/* Notizen anzeigen */
section {
    background-color: #f4f7f8;
    border: 1px solid #ddd;
    border-radius: 6px;
    
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    width: 100%;
}

h1 {
    color: #506090;
    margin-bottom: 20px;
}

h2 {
    color: #506090;
    margin-bottom: 20px;
}

h5 {
    margin: 0;
    color: #506090;
}

p {
    margin: 5px 0;
}

/* Responsives Design */
@media screen and (max-width: 768px) {
    main {
        margin: 10px;
        padding: 15px;
    }
    
    .button-group {
        flex-direction: column;
        align-items: stretch;
    }
}
