body { font-family: sans-serif; max-width: 600px; margin: auto; }
.nav { display: flex; justify-content: space-between; margin: 20px 0; }
ul { list-style: none; padding: 0; }
li { margin: 10px 0; display: flex; align-items: center; gap: 10px; }
form { margin-bottom: 20px; }


body {
        background: #f4f6f9;

    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f4f9;
    margin: 0;
    padding: 20px;
    color: #333;
        padding: 0;

}



h1 {
    text-align: center;
    color: #4A90E2;
}

.nav {
    text-align: center;
    margin-bottom: 20px;
}

.nav button {
    background-color: #4A90E2;
    color: white;
    border: none;
    padding: 10px 20px;
    margin: 0 5px;
    border-radius: 5px;
    cursor: pointer;
}

#date-display {
    text-align: center;
    font-size: 1.2em;
    margin-bottom: 10px;
}

form {
    text-align: center;
    margin-bottom: 20px;
}

form input[type="text"] {
    padding: 10px;
    width: 250px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

form button {
    padding: 10px 20px;
    background-color: #27ae60;
    color: white;
    border: none;
    border-radius: 5px;
    margin-left: 5px;
    cursor: pointer;
}

#task-list {
    list-style: none;
    padding: 0;
    max-width: 600px;
    margin: 0 auto;
}

#task-list li {
    background-color: white;
    padding: 10px;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 5px;
    border: 1px solid #ddd;
    cursor: grab;
}

#task-list li input[type="checkbox"] {
    margin-right: 10px;
}

#task-list li button {
    background-color: transparent;
    border: none;
    cursor: pointer;
    color: #e74c3c;
}

footer, p {
    text-align: center;
    margin-top: 20px;
}

#calendar-toggle {
    display: block;
    margin: 10px auto;
    padding: 8px 16px;
    background-color: #f39c12;
    border: none;
    border-radius: 5px;
    color: white;
    cursor: pointer;
}

#mini-calendar {
    max-width: 300px;
    margin: 20px auto;
    background: white;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #ccc;
    display: none;
}

#mini-calendar header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#mini-calendar table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
}

#mini-calendar th, #mini-calendar td {
    padding: 5px;
    cursor: pointer;
}

#mini-calendar td:hover {
    background-color: #eee;
    border-radius: 3px;
}

#mini-calendar .today {
    background-color: #4A90E2;
    color: white;
    border-radius: 3px;
}

body {
    font-family: Arial, sans-serif;
    background: #f9f9f9;
    margin: 0;
    padding: 1rem;
    color: #333;
}

h1 {
    text-align: center;
    margin-bottom: 1rem;
}

.nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.nav button {
    padding: 0.5rem 1rem;
    font-size: 1rem;
}

#date-display {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

form {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

#task-input {
    flex: 1;
    max-width: 300px;
    padding: 0.5rem;
}

button {
    padding: 0.5rem 1rem;
    cursor: pointer;
}

ul#task-list {
    list-style: none;
    padding: 0;
    max-width: 500px;
    margin: 0 auto 2rem;
}

.task-item {
    background: #fff;
    border: 1px solid #ccc;
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    border-radius: 4px;
}

.task-item input[type="checkbox"] {
    margin-right: 0.5rem;
}

.task-item span {
    flex: 1;
    cursor: pointer;
}

.task-item button {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #c00;
}

#mini-calendar {
    display: block;
    max-width: 300px;
    margin: 1rem auto;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

#mini-calendar header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

#mini-calendar table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
}

#mini-calendar th,
#mini-calendar td {
    padding: 0.3rem;
    cursor: pointer;
}

#mini-calendar td.today {
    background: #007bff;
    color: white;
    border-radius: 50%;
}

#calendar-toggle {
    display: block;
    margin: 0 auto 0.5rem;
}

.task-item.done {
    color: #aaa;
    text-decoration: line-through;
    opacity: 0.6;
}

.page-container {
    display: flex;
    gap: 2rem;
    padding: 1rem;
}

.todo-section, .calendar-section {
    border: 1px solid #ccc;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    background-color: #fff;

    /* Animation */
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

/* Verzögerung zwischen den beiden Sektionen für sanfteren Effekt */
.todo-section {
    animation-delay: 0.1s;
}

.calendar-section {
    animation-delay: 0.3s;
}

/* Keyframes für die Animation */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.todo-item {
  transition: all 0.3s ease;
}
.todo-item[data-section="future"] {
  background: #eef;
}
.todo-item[data-section="past"] {
  background: #fdf6e3;
}
.todo-item[data-section="today"] {
  background: #eafae3;
}


.selected-date {
    background-color: #cce5ff;
    border: 2px solid #3399ff;
    border-radius: 50%;
}
