body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #7c84dc;
    color: #183d50;
}

.header {
    position: sticky;
    top: 0;
    background-color: #3f48cc;
    color: #fff;
    text-align: center;
    padding: 1rem 0;
}

/* Stil für mobile Ansicht */
@media (max-width:1100px) {
    .header {
        padding-top: 3em;
        /* Fügt den Zeilenumbruch hinzu */
    }
}

main {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background-color: #fff;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    margin-top: 2rem;
}

h1 {
    margin-top: 0;
    margin: 0;
}

h4 {
    margin-top: 0;
    margin: 0.66rem;
}

a.button {
    background-color: #7c84dc;
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-decoration: none;
    display: inline-block;
    width: 150px;
    margin-top: 2px;
    /* Feste Breite für beide Buttons */
    text-align: center;
    /* Zentriert den Text horizontal */
    font-size: 14px;
    /* Schriftgröße festlegen */
    font-weight: normal;
    /* Standard Schriftgewicht */
}

a.button:hover {
    background-color: #3f48cc;
}

footer {
    text-align: center;
    padding: 1rem 0;
    background-color: #ddd;
    color: #183d50;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
}

/* Dunkler Modus */
body.dark-mode {
    background-color: #3f48cc;
    color: #fff;
}

.dark-mode header {
    background-color: #2f3593;
    color: #fff;
}

.dark-mode main {
    background-color: #222;
}


.dark-mode a.button {
    background-color: #3f48cc;
}
.dark-mode a.button:hover {
    background-color: #2f3593;
}


.dark-mode footer {
    background-color: #111;
    color: #fff;
}

/* Schieberegler-Stil */
.slider-container {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    cursor: pointer;
    z-index: 200;
    /* Hier wird der z-index hinzugefügt */
}

.slider-track {
    width: 50px;
    height: 25px;
    background-color: #ccc;
    border-radius: 25px;
    position: relative;
    transition: background-color 0.3s;
}

.slider-thumb {
    width: 20px;
    height: 20px;
    background-color: #fff;
    border-radius: 50%;
    position: absolute;
    top: 2.5px;
    left: 2.5px;
    transition: left 0.3s;
}

/* Schieberegler im Dunklen Modus */
.dark-mode .slider-track {
    background-color: #666;
}

.dark-mode .slider-thumb {
    left: 27.5px;
}

/* Home-Button und Share-Button-Stil */

.nav-buttons {
    position: fixed;
    width: 80%;
    top: 20px;
    left: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 200;
    /* Hier wird der z-index hinzugefügt */
}

.nav-button {
    background-color: #3f48cc;
    color: #fff;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.nav-button:hover {
    background-color: #7c84dc;
}

.dark-mode .nav-button {
    background-color: #2f3593;
}
.dark-mode .nav-button:hover {
    background-color: #3f48cc;
}

label {
    display: block;
    margin-bottom: 0.5rem;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.regbutton {
    background-color: #777;
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-decoration: none;
    display: inline-block;
    width: 150px;
    /* Feste Breite für beide Buttons */
    text-align: center;
    /* Zentriert den Text horizontal */
    font-size: 14px;
    /* Schriftgröße festlegen */
    font-weight: normal;
    /* Standard Schriftgewicht */
}

button[type="submit"] {
    background-color: #0056b3;
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-decoration: none;
    display: inline-block;
    width: 150px;
    /* Feste Breite für beide Buttons */
    text-align: center;
    /* Zentriert den Text horizontal */
    font-size: 14px;
    /* Schriftgröße festlegen */
    font-weight: normal;
    /* Standard Schriftgewicht */
}

button[type="submit"]:hover,
.regbutton:hover {
    background-color: #007bff;
}


/* Schieberegler im Dunklen Modus */
.dark-side-text {
    color: #666;
    margin-right: 10px;
    cursor: default;
    /* Macht den Cursor beim Überfahren nicht zum Zeiger */
}

/* Dunkler Modus */
body.dark-mode label {
    color: #000;
    /* Passen Sie die Farbe nach Bedarf an */
}

/*
body.dark-mode input[type="text"],
body.dark-mode input[type="password"] {
    border-color: #666;

}*/

body.dark-mode label[for="username"],
body.dark-mode label[for="password"] {
    color: white;
}

body.dark-mode input[type="text"],
body.dark-mode input[type="password"] {
    background-color: #181818;
    border: 1px solid #666;
    color: white;
}


body.dark-mode main {
    background-color: #222;
    /* Passen Sie die Farbe nach Bedarf an */
}


.user-list {
    list-style: none;
    /* Entfernt die Punkte der Liste */
    padding: 0;
    /* Entfernt den Abstand innerhalb der Liste */
}

.user-item {
    display: flex;
    /* Verwendet flex layout */
    align-items: center;
    /* Zentriert den Inhalt vertikal */
    justify-content: space-between;
    /* Verteilt den Platz zwischen Elementen */
    margin-bottom: 8px;
    /* Fügt unten etwas Platz zwischen den Benutzern hinzu */
}


.user-button {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: block;
    margin: 0.5rem 0;
    width: 100%;
    text-align: center;
}

.user-button:hover {
    background-color: #dc3545;
}
/*
header {
    position: sticky;
    top: 0;
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 1rem 0;
    z-index: 100;
    /* Hier wird der z-index hinzugefügt * /
}