:root {
    --primary-color: #ccccd9; 
    --secondary-color: #d4e5ea; 
    --bg-color: #f8f9fa; 
    --text-color: #444444; 
    --active-nav-color: #9a9ab5; 
}

body {
    margin: 0;
    font-family: 'Nunito', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    user-select: none; 
}

/* Header */
header {
    background-color: var(--primary-color);
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    font-size: 20px;
    font-weight: 800;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
}

.logout-btn {
    position: absolute; 
    right: 15px; 
    top: 50%; 
    transform: translateY(-50%); 
    background: rgba(255,255,255,0.5); 
    color: var(--text-color); 
    border: none; 
    padding: 6px 12px; 
    border-radius: 10px; 
    font-size: 13px; 
    font-weight: bold; 
    cursor: pointer; 
    font-family: 'Nunito', sans-serif;
}

/* Top Dashboard (Logo & Sticky) */
.top-dashboard {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    align-items: stretch; 
}

.dashboard-logo {
    flex: 0 0 38%; 
    max-width: 150px;
    aspect-ratio: 1 / 1; 
    border-radius: 22px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    object-fit: contain; 
    background-color: white; 
    padding: 6px; 
    box-sizing: border-box;
}

.dashboard-sticky {
    flex: 1; 
    min-width: 0;
    display: flex;
}

.sticky-active-card {
    border-left: 6px solid #ffb142;
    background-color: #fffdf5;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(255, 177, 66, 0.15);
    height: 100%;
    width: 100%;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 12px 15px;
    box-sizing: border-box;
    border-radius: 20px;
}

.sticky-empty-btn {
    width: 100%;
    height: 100%;
    min-height: 100px;
    background-color: rgba(255,255,255,0.6);
    color: #999;
    border: 2px dashed #d4e5ea;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    box-sizing: border-box;
    border-radius: 20px;
    cursor: pointer;
    font-family: 'Nunito', sans-serif;
}

/* Content & Views */
.content { padding: 16px; padding-bottom: 90px; }
.view { display: none; animation: fadeIn 0.4s ease; }
.view.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Navigation Unten */
.bottom-nav {
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: white;
    display: flex;
    justify-content: space-around;
    padding: 12px 0;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.05);
    z-index: 1000;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

.nav-item {
    text-align: center;
    color: #b0b0b0;
    cursor: pointer;
    flex: 1;
    font-size: 13px;
    font-weight: 600;
    transition: 0.3s;
}

.nav-item span { display: block; font-size: 24px; margin-bottom: 4px; transition: 0.3s; }
.nav-item.active { color: var(--active-nav-color); font-weight: 800; }
.nav-item.active span { transform: translateY(-3px); }

/* Formulare & Buttons */
.input-group { display: flex; gap: 10px; margin-bottom: 20px; }
input[type="text"], input[type="email"], input[type="password"] {
    flex: 1;
    padding: 14px;
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    font-size: 16px;
    box-sizing: border-box;
    font-family: 'Nunito', sans-serif;
    outline: none;
    transition: 0.3s;
}
input[type="text"]:focus { border-color: var(--primary-color); }

button.primary-btn {
    background-color: var(--primary-color);
    color: var(--text-color);
    border: none;
    padding: 14px 20px;
    border-radius: 15px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(204, 204, 217, 0.4);
    font-family: 'Nunito', sans-serif;
}
.w-100 { width: 100%; }

/* Listen */
ul { list-style: none; padding: 0; margin: 0; }
li.list-item {
    background: white;
    padding: 15px 20px;
    margin-bottom: 12px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.list-item-left { display: flex; align-items: center; flex: 1; font-weight: 600; }
li.list-item input[type="checkbox"] { margin-right: 15px; transform: scale(1.4); accent-color: var(--active-nav-color); }
li.list-item.done span { text-decoration: line-through; color: #adb5bd; }
.delete-list-btn { background: transparent; border: none; font-size: 18px; cursor: pointer; padding: 5px; color: #ff8a8a; }

/* Kategorien */
.category-wrapper { display: flex; gap: 10px; overflow-x: auto; margin-bottom: 20px; padding-bottom: 5px; }
.cat-btn {
    background: #f0f0f0;
    border: none;
    padding: 10px 18px;
    border-radius: 20px;
    font-weight: 700;
    color: #777;
    cursor: pointer;
    white-space: nowrap;
    font-size: 14px;
    font-family: 'Nunito', sans-serif;
    transition: 0.3s;
}
.cat-btn.active { background: var(--secondary-color); color: var(--text-color); box-shadow: 0 4px 10px rgba(212, 229, 234, 0.6); }

/* Pinnwand */
.board-msg { flex-direction: column; align-items: flex-start; position: relative; background-color: white; border-left: 6px solid var(--primary-color); }
.board-msg .msg-text { font-size: 16px; font-weight: 600; margin-bottom: 6px; padding-right: 25px; }
.board-msg .msg-date { font-size: 12px; color: #999; }
.delete-btn-corner { position: absolute; right: 15px; top: 15px; background: transparent; border: none; padding: 0; cursor: pointer; color: #ff8a8a; }

/* Planer */
.planner-wrapper { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 15px; }
.member-col { min-width: 150px; flex: 1; background: transparent; }
.member-header { text-align: center; font-weight: 800; font-size: 16px; margin-bottom: 15px; background: white; padding: 12px; border-radius: 20px; box-shadow: 0 2px 8px rgba(0,0,0,0.03); color: var(--text-color); }
.add-task-btn { width: 100%; background: var(--secondary-color); color: var(--text-color); border: none; border-radius: 15px; padding: 10px; font-size: 20px; font-weight: bold; margin-bottom: 15px; cursor: pointer; box-shadow: 0 4px 10px rgba(212, 229, 234, 0.4); }
.task-card { color: var(--text-color); padding: 15px; border-radius: 15px; margin-bottom: 12px; position: relative; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.task-title { font-size: 15px; font-weight: 700; margin-bottom: 5px; padding-right: 20px; }
.task-time { font-size: 13px; opacity: 0.8; font-weight: 600; }
.task-card .delete-task { position: absolute; top: 10px; right: 10px; background: rgba(255,255,255,0.4); border: none; color: var(--text-color); border-radius: 50%; width: 24px; height: 24px; font-size: 12px; cursor: pointer; display: flex; align-items: center; justify-content: center; font-weight: bold; }

/* Kalender */
.calendar-header { display: flex; justify-content: space-between; align-items: center; background: white; padding: 15px 20px; border-radius: 15px; margin-bottom: 20px; box-shadow: 0 2px 8px rgba(0,0,0,0.03); }
.calendar-header button { background: var(--secondary-color); border: none; font-size: 16px; cursor: pointer; color: var(--text-color); font-weight: 800; width: 35px; height: 35px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.calendar-grid-header, .calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; gap: 8px; }
.calendar-grid-header div { font-weight: 800; font-size: 13px; color: #a0a0a0; margin-bottom: 10px; }
.calendar-day { background: white; padding: 14px 0; border-radius: 12px; font-size: 16px; font-weight: 600; cursor: pointer; box-shadow: 0 2px 5px rgba(0,0,0,0.02); position: relative; transition: 0.2s; }
.calendar-day.active { background: var(--primary-color); color: var(--text-color); font-weight: 800; transform: scale(1.05); box-shadow: 0 4px 10px rgba(204, 204, 217, 0.5); }
.calendar-day.empty { background: transparent; box-shadow: none; cursor: default; }
.calendar-day.has-event::after { content: ''; display: block; width: 6px; height: 6px; background-color: #ffb142; border-radius: 50%; position: absolute; bottom: 5px; left: 50%; transform: translateX(-50%); }
.calendar-day.active.has-event::after { background-color: var(--text-color); }
.calendar-day.is-ferien { background-color: #fef1d2; } 
.calendar-day.is-feiertag { color: #d9534f; font-weight: 800; } 
.calendar-day.active.is-feiertag { color: var(--text-color); } 
.calendar-day.active.is-ferien { background-color: var(--primary-color); } 

.selected-date-section { margin-top: 30px; }
.selected-date-section h3 { margin-top: 0; color: #555; font-weight: 800; font-size: 18px; }
.add-event-btn { width: 100%; margin-bottom: 20px; background-color: var(--secondary-color) !important; }
.event-item { background: white; padding: 18px; border-radius: 15px; margin-bottom: 12px; border-left: 6px solid var(--secondary-color); display: flex; justify-content: space-between; align-items: center; box-shadow: 0 2px 8px rgba(0,0,0,0.03); }
.event-info { display: flex; flex-direction: column; }
.event-title { font-weight: 800; font-size: 16px; margin-bottom: 4px; transition: 0.2s; }
.event-time { font-size: 13px; color: #888; font-weight: 600; transition: 0.2s; }

/* Login Screen & Copyright */
#auth-screen { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100vh; }
.card { background: white; padding: 35px 25px; border-radius: 20px; text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,0.05); width: 90%; max-width: 400px; margin: 0 auto; }
.login-logo { width: 160px; height: 160px; object-fit: contain; padding: 8px; background-color: white; border-radius: 25px; margin-bottom: 15px; box-shadow: 0 4px 15px rgba(0,0,0,0.08); box-sizing: border-box; }
.sub-text { color: #888; font-size: 15px; margin-bottom: 25px; font-weight: 600; }
.full-input { width: 100%; margin-bottom: 15px; }
#password { margin-bottom: 25px; }
#auth-error { color: #ff8a8a; font-size: 14px; font-weight: bold; margin-top: 15px; display: none; }
.copyright { text-align: center; font-size: 12px; color: #555555; margin-top: 40px; margin-bottom: 10px; font-weight: 800; letter-spacing: 0.5px; }
