/* Grundlegendes Styling */
body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    color: #e0e0e0;
    margin: 0;
    padding: 20px;
    overflow-x: hidden;
}

h1 {
    text-align: center;
    color: #ffc107;
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 0 0 10px #ffc107, 0 0 20px #ffc107;
    animation: glow 2s infinite alternate;
}

@keyframes glow {
    0% {
        text-shadow: 0 0 10px #ffc107, 0 0 20px #ffc107;
    }

    100% {
        text-shadow: 0 0 20px #ffc107, 0 0 40px #ffc107;
    }
}

/* Container-Styling */
.container {
    width: 90%;
    max-width: 600px;
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 20px auto;
}

/* Navigationsleiste */
.nav {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.nav a {
    background-color: #ffc107;
    color: #24243e;
    padding: 12px 20px;
    text-decoration: none;
    margin: 10px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    font-weight: 600;
}

.nav a:hover {
    background-color: #ff9800;
}

/* Formular-Styling */
.homework-form,
.notizen-form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.form-section {
    width: 100%;
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #e0e0e0;
    font-weight: bold;
    text-align: left;
    width: 100%;
}

input[type="text"],
input[type="date"],
textarea {
    width: calc(100% - 22px);
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ffc107;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 16px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
}

input[type="submit"] {
    background-color: #ffc107;
    color: #24243e;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
    font-weight: 600;
    width: auto;
    align-self: center;
}

input[type="submit"]:hover {
    background-color: #ff9800;
}

/* Styling für Select-Elemente */
select {
    width: calc(100% - 22px);
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ffc107;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 16px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23e0e0e0" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/><path d="M0 0h24v24H0z" fill="none"/></svg>');
    background-repeat: no-repeat;
    background-position-x: 98%;
    background-position-y: 50%;
}

select:focus {
    outline: none;
    border-color: #ff9800;
    box-shadow: 0 0 5px rgba(255, 193, 7, 0.5);
}

option {
    background-color: #24243e;
    color: #e0e0e0;
}

option:hover {
    background-color: #302b63;
}

/* Listen-Styling */
ul {
    list-style-type: none;
    padding: 0;
}

li {
    margin-bottom: 10px;
    padding: 15px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    color: #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

li:hover {
    box-shadow: 0 4px 8px rgba(255, 193, 7, 0.3);
    transform: translateY(-5px);
    transition: transform 0.3s ease;
}

/* Logout-Button */
.logout-button {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 20px;
    background-color: #f44336;
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
    font-weight: 600;
}

.logout-button:hover {
    background-color: #d32f2f;
}

/* Zurück zur Hauptseite-Button */
.back-button {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 20px;
    background-color: #ffc107;
    color: #24243e;
    text-decoration: none;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
    font-weight: 600;
}

.back-button:hover {
    background-color: #ff9800;
}

/* Styling für den Löschen-Button */
.delete-button {
    display: inline-block;
    padding: 8px 12px;
    background-color: #f44336;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.delete-button:hover {
    background-color: #d32f2f;
}

/* Styling für die Hausaufgaben-Anzeige */
.homework-item {
    display: grid;
    grid-template-columns: 1fr 1fr 3fr auto;
    grid-gap: 10px;
    align-items: center;
}

.homework-fach {
    font-weight: bold;
}

.homework-datum {
    font-style: italic;
    color: #aaa;
}

.homework-aufgabe {}

/* Styling für das Hausaufgaben-Filterformular */
.homework-filter {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 20px;
}

.homework-filter .form-section {
    margin-right: 20px;
    margin-bottom: 10px;
}

.homework-filter label {
    margin-right: 5px;
}

.homework-filter select,
.homework-filter input[type="date"] {
    width: auto;
}

/* Styling für die Hausaufgaben-Sortierung */
.homework-sort {
    margin-bottom: 10px;
}