76165da592
Umfassendes Redesign des gesamten Frontends in 9 Schritten: 1. Design-Tokens: Neutral-Farbskala (50–950), Modul-Akzentfarben, --text-2xs Token, Easing-Kurven, Z-Index-System, Dark-Mode-Overrides 2. Reset: Reduced-motion Query (prefers-reduced-motion) 3. Sidebar/Navigation: Flaches Design, Glassmorphismus Bottom-Nav, Akzentstreifen-Indikator, collapsed/expanded States 4. Layout-Grid: Master-Detail, Content-Aside, Sticky-Header-Primitives 5. Cards/Container: Einheitliches Card-Pattern, Modal-System (Bottom-Sheet mobil, zentriert Desktop), Skeleton-Loading, Empty-States 6. Dashboard: Kompaktere Widgets, Token-basierte Farben/Schatten, 4-Spalten-Grid ab 1440px 7. Module: Mobile-first Kanban/Day-Slots/Budget-Summary, border-subtle für sekundäre Trennlinien, responsive Quick-Add, Token-Migration aller hardcoded px/rgba-Werte 8. Mikrointeraktionen: Page-out Fade, Checkbox-Pop-Animation, Hover-States für Filter/Tabs/Toggles, Toast-Ausblendung, done-State Opacity-Transition 9. Feinschliff: Print-Styles, --text-2xs Token für Micro-Labels, Konsistenz-Audit (alle 9/10/11px → Token) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
723 lines
15 KiB
CSS
723 lines
15 KiB
CSS
/**
|
||
* Modul: Kalender (Calendar)
|
||
* Zweck: Styles für Monats-/Wochen-/Tages-/Agenda-Ansicht, Termin-Karten, Modal
|
||
* Abhängigkeiten: tokens.css, layout.css
|
||
*/
|
||
|
||
/* --------------------------------------------------------
|
||
* Seiten-Layout
|
||
* -------------------------------------------------------- */
|
||
.calendar-page {
|
||
display: flex;
|
||
flex-direction: column;
|
||
height: calc(100dvh - var(--nav-height-mobile) - var(--safe-area-inset-bottom));
|
||
max-width: var(--content-max-width);
|
||
margin: 0 auto;
|
||
overflow: hidden;
|
||
}
|
||
|
||
@media (min-width: 1024px) {
|
||
.calendar-page {
|
||
height: 100dvh;
|
||
}
|
||
}
|
||
|
||
/* --------------------------------------------------------
|
||
* Kalender-Toolbar (Navigation + Ansichts-Umschalter)
|
||
* -------------------------------------------------------- */
|
||
.cal-toolbar {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: var(--space-2);
|
||
padding: var(--space-3) var(--space-4);
|
||
border-bottom: 1px solid var(--color-border);
|
||
background-color: var(--color-surface);
|
||
flex-shrink: 0;
|
||
}
|
||
|
||
.cal-toolbar__nav {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: var(--space-1);
|
||
}
|
||
|
||
.cal-toolbar__label {
|
||
font-size: var(--text-base);
|
||
font-weight: var(--font-weight-semibold);
|
||
flex: 1;
|
||
text-align: center;
|
||
white-space: nowrap;
|
||
}
|
||
|
||
.cal-toolbar__today {
|
||
font-size: var(--text-sm);
|
||
color: var(--color-accent);
|
||
font-weight: var(--font-weight-medium);
|
||
padding: var(--space-1) var(--space-2);
|
||
border-radius: var(--radius-sm);
|
||
background: var(--color-accent-light);
|
||
cursor: pointer;
|
||
border: none;
|
||
white-space: nowrap;
|
||
}
|
||
|
||
.cal-toolbar__views {
|
||
display: flex;
|
||
gap: 2px;
|
||
background-color: var(--color-surface-2);
|
||
border-radius: var(--radius-sm);
|
||
padding: 2px;
|
||
}
|
||
|
||
.cal-toolbar__view-btn {
|
||
font-size: var(--text-xs);
|
||
font-weight: var(--font-weight-medium);
|
||
padding: var(--space-1) var(--space-2);
|
||
border-radius: var(--radius-xs);
|
||
border: none;
|
||
background: none;
|
||
color: var(--color-text-secondary);
|
||
cursor: pointer;
|
||
transition: all var(--transition-fast);
|
||
min-height: unset;
|
||
white-space: nowrap;
|
||
}
|
||
|
||
.cal-toolbar__view-btn:hover:not(.cal-toolbar__view-btn--active) {
|
||
color: var(--color-text-primary);
|
||
}
|
||
|
||
.cal-toolbar__view-btn--active {
|
||
background-color: var(--color-surface);
|
||
color: var(--color-text-primary);
|
||
box-shadow: var(--shadow-sm);
|
||
}
|
||
|
||
/* --------------------------------------------------------
|
||
* Monatsansicht
|
||
* -------------------------------------------------------- */
|
||
.month-view {
|
||
flex: 1;
|
||
display: flex;
|
||
flex-direction: column;
|
||
overflow: hidden;
|
||
}
|
||
|
||
.month-weekdays {
|
||
display: grid;
|
||
grid-template-columns: repeat(7, 1fr);
|
||
border-bottom: 1px solid var(--color-border);
|
||
flex-shrink: 0;
|
||
}
|
||
|
||
.month-weekday {
|
||
padding: var(--space-2) 0;
|
||
text-align: center;
|
||
font-size: var(--text-xs);
|
||
font-weight: var(--font-weight-semibold);
|
||
color: var(--color-text-secondary);
|
||
text-transform: uppercase;
|
||
letter-spacing: 0.05em;
|
||
}
|
||
|
||
.month-grid {
|
||
flex: 1;
|
||
display: grid;
|
||
grid-template-columns: repeat(7, 1fr);
|
||
grid-auto-rows: 1fr;
|
||
overflow-y: auto;
|
||
}
|
||
|
||
.month-day {
|
||
border-right: 1px solid var(--color-border-subtle);
|
||
border-bottom: 1px solid var(--color-border-subtle);
|
||
padding: var(--space-1);
|
||
min-height: 80px;
|
||
cursor: pointer;
|
||
transition: background-color var(--transition-fast);
|
||
overflow: hidden;
|
||
}
|
||
|
||
.month-day:nth-child(7n) {
|
||
border-right: none;
|
||
}
|
||
|
||
.month-day:hover {
|
||
background-color: var(--color-surface-2);
|
||
}
|
||
|
||
.month-day--outside {
|
||
background-color: var(--color-bg);
|
||
opacity: 0.5;
|
||
}
|
||
|
||
.month-day__number {
|
||
font-size: var(--text-sm);
|
||
font-weight: var(--font-weight-medium);
|
||
color: var(--color-text-secondary);
|
||
width: 26px;
|
||
height: 26px;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
border-radius: var(--radius-full);
|
||
margin-bottom: var(--space-1);
|
||
}
|
||
|
||
.month-day--today .month-day__number {
|
||
background-color: var(--color-accent);
|
||
color: #ffffff;
|
||
font-weight: var(--font-weight-bold);
|
||
}
|
||
|
||
.month-day--today {
|
||
background-color: var(--color-accent-light);
|
||
}
|
||
|
||
.month-day__event {
|
||
font-size: var(--text-xs);
|
||
font-weight: var(--font-weight-medium);
|
||
padding: 1px 5px;
|
||
border-radius: var(--radius-xs);
|
||
margin-bottom: 2px;
|
||
white-space: nowrap;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
cursor: pointer;
|
||
color: #ffffff;
|
||
line-height: 1.6;
|
||
}
|
||
|
||
.month-day__more {
|
||
font-size: var(--text-xs);
|
||
color: var(--color-text-secondary);
|
||
padding: 1px 4px;
|
||
cursor: pointer;
|
||
}
|
||
|
||
/* --------------------------------------------------------
|
||
* Wochenansicht
|
||
* -------------------------------------------------------- */
|
||
.week-view {
|
||
flex: 1;
|
||
display: flex;
|
||
flex-direction: column;
|
||
overflow: hidden;
|
||
}
|
||
|
||
.week-view__header {
|
||
display: grid;
|
||
flex-shrink: 0;
|
||
border-bottom: 1px solid var(--color-border);
|
||
}
|
||
|
||
.week-view__time-gutter {
|
||
width: 48px;
|
||
flex-shrink: 0;
|
||
}
|
||
|
||
.week-view__day-header {
|
||
padding: var(--space-2) var(--space-1);
|
||
text-align: center;
|
||
border-left: 1px solid var(--color-border-subtle);
|
||
}
|
||
|
||
.week-view__day-name {
|
||
font-size: var(--text-xs);
|
||
font-weight: var(--font-weight-semibold);
|
||
color: var(--color-text-secondary);
|
||
text-transform: uppercase;
|
||
letter-spacing: 0.05em;
|
||
}
|
||
|
||
.week-view__day-num {
|
||
font-size: var(--text-xl);
|
||
font-weight: var(--font-weight-bold);
|
||
color: var(--color-text-primary);
|
||
width: 36px;
|
||
height: 36px;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
border-radius: var(--radius-full);
|
||
margin: 0 auto;
|
||
}
|
||
|
||
.week-view__day-num--today {
|
||
background-color: var(--color-accent);
|
||
color: #ffffff;
|
||
}
|
||
|
||
.week-view__scroll {
|
||
flex: 1;
|
||
overflow-y: auto;
|
||
-webkit-overflow-scrolling: touch;
|
||
position: relative;
|
||
}
|
||
|
||
.week-view__body {
|
||
display: flex;
|
||
min-height: calc(24 * 56px); /* 24h × 56px pro Stunde */
|
||
position: relative;
|
||
}
|
||
|
||
.week-view__times {
|
||
width: 48px;
|
||
flex-shrink: 0;
|
||
position: relative;
|
||
}
|
||
|
||
.week-view__time-slot {
|
||
height: 56px;
|
||
padding-right: var(--space-2);
|
||
display: flex;
|
||
align-items: flex-start;
|
||
justify-content: flex-end;
|
||
padding-top: var(--space-1);
|
||
}
|
||
|
||
.week-view__time-label {
|
||
font-size: var(--text-xs);
|
||
color: var(--color-text-disabled);
|
||
white-space: nowrap;
|
||
}
|
||
|
||
.week-view__columns {
|
||
flex: 1;
|
||
display: grid;
|
||
position: relative;
|
||
}
|
||
|
||
.week-view__col {
|
||
border-left: 1px solid var(--color-border-subtle);
|
||
position: relative;
|
||
}
|
||
|
||
.week-view__hour-line {
|
||
position: absolute;
|
||
left: 0;
|
||
right: 0;
|
||
height: 1px;
|
||
background-color: var(--color-border-subtle);
|
||
pointer-events: none;
|
||
}
|
||
|
||
.week-view__now-line {
|
||
position: absolute;
|
||
left: 0;
|
||
right: 0;
|
||
height: 2px;
|
||
background-color: var(--color-danger);
|
||
z-index: 2;
|
||
pointer-events: none;
|
||
}
|
||
|
||
.week-view__now-line::before {
|
||
content: '';
|
||
position: absolute;
|
||
left: -4px;
|
||
top: -4px;
|
||
width: 10px;
|
||
height: 10px;
|
||
border-radius: 50%;
|
||
background-color: var(--color-danger);
|
||
}
|
||
|
||
.week-event {
|
||
position: absolute;
|
||
left: 2px;
|
||
right: 2px;
|
||
border-radius: var(--radius-xs);
|
||
padding: 2px 5px;
|
||
font-size: var(--text-xs);
|
||
font-weight: var(--font-weight-medium);
|
||
color: #ffffff;
|
||
overflow: hidden;
|
||
cursor: pointer;
|
||
z-index: 1;
|
||
line-height: 1.4;
|
||
transition: filter var(--transition-fast);
|
||
}
|
||
|
||
.week-event:hover {
|
||
filter: brightness(0.9);
|
||
}
|
||
|
||
.week-event__title {
|
||
white-space: nowrap;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
}
|
||
|
||
.week-event__time {
|
||
font-size: var(--text-xs);
|
||
opacity: 0.85;
|
||
}
|
||
|
||
/* --------------------------------------------------------
|
||
* Tagesansicht
|
||
* -------------------------------------------------------- */
|
||
.day-view {
|
||
flex: 1;
|
||
display: flex;
|
||
flex-direction: column;
|
||
overflow: hidden;
|
||
}
|
||
|
||
.day-view__header {
|
||
padding: var(--space-3) var(--space-4);
|
||
border-bottom: 1px solid var(--color-border);
|
||
text-align: center;
|
||
flex-shrink: 0;
|
||
}
|
||
|
||
.day-view__date-label {
|
||
font-size: var(--text-lg);
|
||
font-weight: var(--font-weight-bold);
|
||
}
|
||
|
||
.day-view__scroll {
|
||
flex: 1;
|
||
overflow-y: auto;
|
||
-webkit-overflow-scrolling: touch;
|
||
}
|
||
|
||
.day-view__body {
|
||
display: flex;
|
||
min-height: calc(24 * 56px);
|
||
position: relative;
|
||
}
|
||
|
||
.day-view__times {
|
||
width: 48px;
|
||
flex-shrink: 0;
|
||
}
|
||
|
||
.day-view__col {
|
||
flex: 1;
|
||
border-left: 1px solid var(--color-border-subtle);
|
||
position: relative;
|
||
}
|
||
|
||
/* --------------------------------------------------------
|
||
* Agenda-Ansicht
|
||
* -------------------------------------------------------- */
|
||
.agenda-view {
|
||
flex: 1;
|
||
overflow-y: auto;
|
||
-webkit-overflow-scrolling: touch;
|
||
padding: var(--space-2) var(--space-4) var(--space-6);
|
||
}
|
||
|
||
.agenda-day {
|
||
margin-bottom: var(--space-4);
|
||
}
|
||
|
||
.agenda-day__header {
|
||
display: flex;
|
||
align-items: baseline;
|
||
gap: var(--space-3);
|
||
padding: var(--space-2) 0 var(--space-1);
|
||
border-bottom: 2px solid var(--color-border);
|
||
margin-bottom: var(--space-2);
|
||
position: sticky;
|
||
top: 0;
|
||
background-color: var(--color-bg);
|
||
z-index: var(--z-base);
|
||
}
|
||
|
||
.agenda-day__date {
|
||
font-size: var(--text-sm);
|
||
font-weight: var(--font-weight-bold);
|
||
color: var(--color-text-primary);
|
||
}
|
||
|
||
.agenda-day__weekday {
|
||
font-size: var(--text-sm);
|
||
color: var(--color-text-secondary);
|
||
}
|
||
|
||
.agenda-day__header--today .agenda-day__date {
|
||
color: var(--color-accent);
|
||
}
|
||
|
||
.agenda-event {
|
||
display: flex;
|
||
align-items: flex-start;
|
||
gap: var(--space-3);
|
||
padding: var(--space-2) var(--space-3);
|
||
border-radius: var(--radius-sm);
|
||
margin-bottom: var(--space-1);
|
||
cursor: pointer;
|
||
transition: background-color var(--transition-fast);
|
||
}
|
||
|
||
.agenda-event:hover {
|
||
background-color: var(--color-surface-2);
|
||
}
|
||
|
||
.agenda-event__color {
|
||
width: 10px;
|
||
height: 10px;
|
||
border-radius: var(--radius-full);
|
||
flex-shrink: 0;
|
||
margin-top: 5px;
|
||
}
|
||
|
||
.agenda-event__body {
|
||
flex: 1;
|
||
min-width: 0;
|
||
}
|
||
|
||
.agenda-event__title {
|
||
font-size: var(--text-base);
|
||
font-weight: var(--font-weight-medium);
|
||
white-space: nowrap;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
}
|
||
|
||
.agenda-event__meta {
|
||
font-size: var(--text-sm);
|
||
color: var(--color-text-secondary);
|
||
display: flex;
|
||
align-items: center;
|
||
gap: var(--space-2);
|
||
margin-top: 2px;
|
||
}
|
||
|
||
.agenda-event__assigned {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
gap: var(--space-1);
|
||
}
|
||
|
||
.agenda-event__avatar {
|
||
width: 16px;
|
||
height: 16px;
|
||
border-radius: var(--radius-full);
|
||
display: inline-flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
font-size: 9px;
|
||
font-weight: var(--font-weight-bold);
|
||
color: #ffffff;
|
||
flex-shrink: 0;
|
||
}
|
||
|
||
.agenda-empty {
|
||
text-align: center;
|
||
padding: var(--space-8);
|
||
color: var(--color-text-secondary);
|
||
font-size: var(--text-sm);
|
||
}
|
||
|
||
/* --------------------------------------------------------
|
||
* Termin-Modal
|
||
* -------------------------------------------------------- */
|
||
.event-modal-overlay {
|
||
position: fixed;
|
||
inset: 0;
|
||
background-color: var(--color-overlay);
|
||
z-index: var(--z-modal);
|
||
display: flex;
|
||
align-items: flex-end;
|
||
justify-content: center;
|
||
animation: fadeIn var(--transition-fast) ease;
|
||
}
|
||
|
||
@media (min-width: 768px) {
|
||
.event-modal-overlay {
|
||
align-items: center;
|
||
padding: var(--space-4);
|
||
}
|
||
}
|
||
|
||
.event-modal {
|
||
background-color: var(--color-surface);
|
||
border-radius: var(--radius-lg) var(--radius-lg) 0 0;
|
||
width: 100%;
|
||
max-height: 90dvh;
|
||
display: flex;
|
||
flex-direction: column;
|
||
overflow: hidden;
|
||
animation: slideUp var(--transition-base) ease;
|
||
}
|
||
|
||
@media (min-width: 768px) {
|
||
.event-modal {
|
||
border-radius: var(--radius-lg);
|
||
max-width: 560px;
|
||
max-height: 85dvh;
|
||
}
|
||
}
|
||
|
||
.event-modal__header {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
padding: var(--space-4);
|
||
border-bottom: 1px solid var(--color-border);
|
||
flex-shrink: 0;
|
||
gap: var(--space-2);
|
||
}
|
||
|
||
.event-modal__title {
|
||
font-size: var(--text-lg);
|
||
font-weight: var(--font-weight-bold);
|
||
flex: 1;
|
||
}
|
||
|
||
.event-modal__close {
|
||
width: 32px;
|
||
height: 32px;
|
||
border-radius: var(--radius-full);
|
||
background: var(--color-border);
|
||
border: none;
|
||
cursor: pointer;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
color: var(--color-text-secondary);
|
||
min-height: unset;
|
||
flex-shrink: 0;
|
||
}
|
||
|
||
.event-modal__body {
|
||
flex: 1;
|
||
overflow-y: auto;
|
||
padding: var(--space-4);
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: var(--space-4);
|
||
}
|
||
|
||
.event-modal__row {
|
||
display: grid;
|
||
grid-template-columns: 1fr 1fr;
|
||
gap: var(--space-3);
|
||
}
|
||
|
||
/* Farbauswahl */
|
||
.color-picker {
|
||
display: flex;
|
||
flex-wrap: wrap;
|
||
gap: var(--space-2);
|
||
}
|
||
|
||
.color-swatch {
|
||
width: 28px;
|
||
height: 28px;
|
||
border-radius: var(--radius-full);
|
||
border: 2px solid transparent;
|
||
cursor: pointer;
|
||
transition: transform var(--transition-fast), border-color var(--transition-fast);
|
||
}
|
||
|
||
.color-swatch:hover {
|
||
transform: scale(1.15);
|
||
}
|
||
|
||
.color-swatch--active {
|
||
border-color: var(--color-text-primary);
|
||
transform: scale(1.1);
|
||
}
|
||
|
||
/* Allday-Toggle */
|
||
.allday-toggle {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: var(--space-3);
|
||
cursor: pointer;
|
||
}
|
||
|
||
.allday-toggle__label {
|
||
font-size: var(--text-sm);
|
||
color: var(--color-text-primary);
|
||
}
|
||
|
||
.event-modal__footer {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
padding: var(--space-4);
|
||
border-top: 1px solid var(--color-border);
|
||
flex-shrink: 0;
|
||
}
|
||
|
||
.event-modal__footer-actions {
|
||
display: flex;
|
||
gap: var(--space-3);
|
||
}
|
||
|
||
/* --------------------------------------------------------
|
||
* Termin-Detailansicht (Popup beim Klick)
|
||
* -------------------------------------------------------- */
|
||
.event-popup {
|
||
position: fixed;
|
||
z-index: calc(var(--z-modal) - 1);
|
||
background-color: var(--color-surface);
|
||
border-radius: var(--radius-md);
|
||
box-shadow: var(--shadow-lg);
|
||
padding: var(--space-4);
|
||
min-width: 240px;
|
||
max-width: 320px;
|
||
animation: fadeIn var(--transition-fast) ease;
|
||
}
|
||
|
||
.event-popup__color-bar {
|
||
height: 4px;
|
||
border-radius: var(--radius-full);
|
||
margin-bottom: var(--space-3);
|
||
}
|
||
|
||
.event-popup__title {
|
||
font-size: var(--text-base);
|
||
font-weight: var(--font-weight-semibold);
|
||
margin-bottom: var(--space-2);
|
||
}
|
||
|
||
.event-popup__meta {
|
||
font-size: var(--text-sm);
|
||
color: var(--color-text-secondary);
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: var(--space-1);
|
||
}
|
||
|
||
.event-popup__actions {
|
||
display: flex;
|
||
gap: var(--space-2);
|
||
margin-top: var(--space-3);
|
||
padding-top: var(--space-3);
|
||
border-top: 1px solid var(--color-border);
|
||
}
|
||
|
||
/* --------------------------------------------------------
|
||
* Ganztägige Ereignisse (oben in Wochen-/Tagesansicht)
|
||
* -------------------------------------------------------- */
|
||
.allday-row {
|
||
display: grid;
|
||
border-bottom: 1px solid var(--color-border);
|
||
min-height: 28px;
|
||
flex-shrink: 0;
|
||
}
|
||
|
||
.allday-cell {
|
||
border-left: 1px solid var(--color-border-subtle);
|
||
padding: 2px;
|
||
}
|
||
|
||
.allday-event {
|
||
font-size: var(--text-xs);
|
||
font-weight: var(--font-weight-medium);
|
||
padding: 1px 6px;
|
||
border-radius: var(--radius-xs);
|
||
color: #ffffff;
|
||
white-space: nowrap;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
margin-bottom: 2px;
|
||
cursor: pointer;
|
||
}
|