:root {
    --color-bg: #f9f6f1;
    --color-accent: #7a4c31;
    --color-accent-dark: #5c3320;
    --color-text: #2f1d0e;
    --color-light: #ffffff;
    --color-border: #dccfc2;
    --font-family: 'Segoe UI', sans-serif;
}

body {
    background-color: var(--color-bg);
    font-family: var(--font-family);
    color: var(--color-text);
    margin: 0;
    padding: 20px;
}

h1, h2 {
    color: var(--color-accent);
    font-weight: 400;
    border-bottom: 2px solid var(--color-border);
    padding-bottom: 8px;
    margin-bottom: 20px;
}

.task-box {
    background: var(--color-light);
    border-left: 5px solid var(--color-accent);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 2px 2px 8px rgba(0,0,0,0.05);
}

.task-box form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.task-box input[type="text"] {
    box-sizing: border-box; /* verhindert, dass padding/width kollidieren */
    width: 100%;
    max-width: 100%;
}

label {
    font-weight: 600;
    margin-top: 12px;
    display: block;
}





.category-header {
    margin-top: 40px;
    font-size: 1.3em;
    color: var(--color-accent-dark);
    border-left: 5px solid var(--color-accent);
    padding-left: 10px;
    margin-bottom: 15px;
}

.accordion {
    background-color: var(--color-accent);
    color: white;
    padding: 12px;
    width: 100%;
    border: none;
    border-radius: 6px;
    text-align: left;
    outline: none;
    font-size: 1em;
    cursor: pointer;
    margin-top: 20px;
    transition: background 0.2s ease-in-out;
}

.accordion:hover {
    background-color: var(--color-accent-dark);
}

.accordion-content {
    margin-top: 10px;
    margin-bottom: 20px;
}

.accordion.active {
    background-color: var(--color-accent-dark);
}

/* Slider-Toggle */
.switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    padding-bottom: 10px;
    background-color: #ccc;
    border-radius: 34px;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: .4s;
}

.switch input:checked + .slider {
    background-color: #4CAF50;
}

.switch input:checked + .slider:before {
    transform: translateX(22px);
}

.success-message {
    background: #e0ffe0;
    border: 1px solid #5cb85c;
    padding: 12px;
    margin-top: 20px;
    font-weight: bold;
    color: #3c763d;
    border-radius: 6px;
}