body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}
header {
    background: linear-gradient(90deg, #35424a 60%, #506070 100%);
    color: #fff;
    padding: 13px 0 13px 0;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}
header img {
    max-height: 60px;
    margin-bottom: 0;
    display: block;
    margin-left: auto;
    margin-right: auto;
}
main {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 10px;
}
section {
    padding: 20px;
    background: #fff;
    margin: 20px 0;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
h1, h2 {
    margin-top: 0;
}
ul {
    padding-left: 20px;
}
footer {
    text-align: center;
    padding: 10px 0;
    background: #35424a;
    color: #fff;
    position: relative;
    bottom: 0;
    width: 100%;
    margin-top: 40px;
}
form {
    display: flex;
    flex-direction: column;
    max-width: 400px;
    margin: 0 auto;
}
label {
    margin-bottom: 5px;
    text-align: left;
    font-weight: bold;
}
input, textarea {
    margin-bottom: 15px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 100%;
    box-sizing: border-box;
    font-size: 1em;
}
textarea {
    resize: vertical;
}
button {
    padding: 10px;
    background: #35424a;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background 0.2s;
}
button:hover {
    background: #2c3e50;
}
@media (max-width: 600px) {
    main {
        padding: 0 5px;
    }
    section {
        margin: 10px 0;
        padding: 15px;
    }
    form {
        max-width: 100%;
    }
}







.mode-toggle {
    position: absolute;
    top: 15px; /* Abstand vom oberen Rand */
    right: 15px; /* Abstand vom rechten Rand */
    display: flex;
    align-items: center; /* Vertikale Ausrichtung */
}

.mode-toggle span {
    margin-right: 5px; /* Abstand zwischen Text und Schieber */
    color: rgb(0, 0, 0); /* Textfarbe auf grün ändern */
    font-weight: bold; /* Text fett machen */
}

/* Schieber-Stil */
.switch {
    position: relative;
    display: inline-block;
    width: 50px; /* Breite des Schiebers kleiner machen */
    height: 28px; /* Höhe des Schiebers kleiner machen */
}

.switch input {
    opacity: 0; /* Unsichtbar machen */
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc; /* Hintergrundfarbe im hellen Modus */
    transition: .4s;
    border-radius: 34px; /* Abgerundete Ecken */
}

.slider:before {
    position: absolute;
    content: "";
    height: 24px; /* Höhe des Schieberelements kleiner machen */
    width: 24px; /* Breite des Schieberelements kleiner machen */
    left: 2px; /* Abstand vom linken Rand anpassen */
    bottom: 2px; /* Abstand vom unteren Rand anpassen */
    background-color: white; /* Hintergrundfarbe des Schieberelements */
    transition: .4s;
    border-radius: 50%; /* Runde Form */
}

input:checked + .slider {
    background-color: #2196F3; /* Hintergrundfarbe im dunklen Modus */
}

input:checked + .slider:before {
    transform: translateX(22px); /* Bewegung des Schieberelements anpassen */
}


/* Dunkelmodus-Stile */
body.dark-mode {
    background-color: #121212; /* Dunkler Hintergrund */
    color: green; /* Textfarbe auf grün ändern */
}

/* Restliche Dunkelmodus-Stile */
body.dark-mode header {
    background: linear-gradient(90deg, #1e1e1e 60%, #2e2e2e 100%);
}

body.dark-mode section {
    background: #1e1e1e; /* Dunkler Hintergrund für Abschnitte */
    color: green; /* Helle Schriftfarbe für Abschnitte */
}

body.dark-mode footer {
    background: #1e1e1e; /* Dunkler Hintergrund für Footer */
    color: green; /* Helle Schriftfarbe für Footer */
}
