/* =============================================================
   BSW Infostand-Planer — Design System
   Stil: Neomodern, minimalistisch, Glassmorphism für Overlays
   ============================================================= */

:root {
  /* --- Farben (BSW Branding) --- */
  --color-primary: #5A0F41;        /* Tiefes Dunkelviolett / Amaranth */
  --color-primary-600: #4A0C35;
  --color-primary-700: #3D0A2B;
  --color-accent: #E53935;         /* Signalrot */
  --color-accent-600: #C62828;
  --color-accent-50: rgba(229, 57, 53, 0.08);

  --color-bg: #F8F9FA;             /* Sehr helles, kühles Grau */
  --color-surface: #FFFFFF;
  --color-surface-2: #FCFCFD;
  --color-text: #1A1A1A;           /* Anthrazit */
  --color-text-muted: #6B7280;
  --color-text-subtle: #9CA3AF;
  --color-border: #E7E8EC;
  --color-border-strong: #D1D5DB;

  /* --- Slots / Status-Farben (ohne "voll/leer" UI, nur Hervorhebung) --- */
  --color-slot-empty: #F3F4F6;
  --color-slot-full: #F0E9EE;     /* sehr dezenter Violett-Stich */

  /* --- Schatten (dezente Soft-Shadows) --- */
  --shadow-xs: 0 1px 2px rgba(16, 24, 40, 0.04);
  --shadow-sm: 0 2px 4px rgba(16, 24, 40, 0.05);
  --shadow-md: 0 6px 18px rgba(16, 24, 40, 0.07);
  --shadow-lg: 0 18px 48px rgba(16, 24, 40, 0.12);
  --shadow-floating: 0 12px 32px rgba(90, 15, 65, 0.18);

  /* --- Radien --- */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-pill: 999px;

  /* --- Spacing-Skala --- */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;

  /* --- Typo --- */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* --- Übergänge --- */
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --dur-fast: 140ms;
  --dur-base: 220ms;
  --dur-slow: 360ms;
}

/* =============================================================
   RESET / BASE
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input { font-family: inherit; }
ul { margin: 0; padding: 0; list-style: none; }

/* =============================================================
   HEADER (Floating)
   ============================================================= */
.app-header {
  position: sticky;
  top: var(--space-4);
  z-index: 30;
  margin: var(--space-4) auto var(--space-8);
  padding: 0 var(--space-4);
  max-width: 1200px;
}

.app-header__inner {
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  box-shadow: var(--shadow-floating);
  backdrop-filter: saturate(140%) blur(8px);
}

.app-header__brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.app-header__logo {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.12);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.app-header__title h1 {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}
.app-header__title p {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.72);
  margin-top: 2px;
}

.app-header__meta {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.08);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.app-header__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.18);
}
.app-header__meta.is-offline .app-header__dot { background: #facc15; box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.18); }

.app-header__update {
  margin-left: var(--space-2);
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: var(--color-accent);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease);
}
.app-header__update:hover { background: var(--color-accent-600); }

/* =============================================================
   HAUPTBEREICH
   ============================================================= */
.app-main {
  flex: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

.calendar-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-md);
}

.calendar-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-6);
}

.calendar-card__title {
  font-size: 22px;
  color: var(--color-text);
}
.calendar-card__subtitle {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-top: 4px;
}

.calendar-card__nav {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  padding: 4px;
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-pill);
  color: var(--color-text);
  transition: background var(--dur-fast) var(--ease);
}
.nav-btn:hover { background: var(--color-border); }
.nav-btn--ghost {
  width: auto;
  padding: 0 var(--space-3);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-muted);
}
.nav-btn--ghost:hover { color: var(--color-text); background: var(--color-border); }

.nav-label {
  font-weight: 600;
  font-size: 14px;
  color: var(--color-text);
  padding: 0 var(--space-3);
  min-width: 140px;
  text-align: center;
  text-transform: capitalize;
}

/* =============================================================
   KALENDER-GRID
   ============================================================= */
.calendar-grid {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-surface-2);
}

.weekday-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: #FAFAFB;
  border-bottom: 1px solid var(--color-border);
}
.weekday-row > div {
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-subtle);
  text-align: left;
}

.day-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-auto-rows: minmax(96px, 1fr);
}

.day-cell {
  position: relative;
  background: var(--color-surface);
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  cursor: default;
  transition: background var(--dur-fast) var(--ease);
}
.day-cell:nth-child(7n) { border-right: none; }

/* Wochenende dezent abdunkeln */
.day-cell.is-weekend { background: #FBFBFC; }

/* Tage außerhalb des aktuellen Monats */
.day-cell.is-outside {
  background: #FAFAFB;
  color: var(--color-text-subtle);
}
.day-cell.is-outside .day-cell__num { opacity: 0.5; }

/* Heute */
.day-cell.is-today .day-cell__num {
  background: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  width: 28px; height: 28px;
  display: inline-grid;
  place-items: center;
  font-weight: 700;
}

/* Infostand-Tag */
.day-cell.is-event {
  cursor: pointer;
  background: linear-gradient(180deg, #FFF 0%, #FDFBFD 100%);
  box-shadow: inset 0 0 0 1.5px rgba(90, 15, 65, 0.25);
}
.day-cell.is-event:hover {
  background: linear-gradient(180deg, #FFF 0%, #F8F0F6 100%);
  box-shadow: inset 0 0 0 1.5px var(--color-primary);
}
.day-cell.is-event:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: -2px;
}

/* Jeder anklickbare Tag im aktuellen Monat (leer oder belegt) */
.day-cell.is-clickable { cursor: pointer; }
.day-cell.is-clickable:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: -2px;
}
/* Leere anklickbare Tage: dezenter Hover + "+"-Affordanz */
.day-cell.is-clickable:not(.is-event):hover { background: #F8F0F6; }
.day-cell__add {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 22px;
  line-height: 1;
  font-weight: 400;
  color: var(--color-primary);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-fast) var(--ease);
}
.day-cell.is-clickable:not(.is-event):hover .day-cell__add,
.day-cell.is-clickable:not(.is-event):focus-visible .day-cell__add { opacity: 0.55; }

.day-cell__num {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
  align-self: flex-start;
  line-height: 1.9;
}

.day-cell__marker {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.15);
}

.day-cell__pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--color-primary);
  background: rgba(90, 15, 65, 0.08);
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  width: fit-content;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.day-cell__count {
  font-size: 11px;
  color: var(--color-text-muted);
  font-weight: 500;
  margin-top: auto;
}
.day-cell__count.is-full { color: var(--color-primary); font-weight: 700; }

/* =============================================================
   LEGENDE
   ============================================================= */
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5);
  margin-top: var(--space-5);
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-border);
  font-size: 13px;
  color: var(--color-text-muted);
}
.legend__item { display: inline-flex; align-items: center; gap: 6px; }
.legend__dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--color-text-subtle);
}
.legend__dot--event { background: var(--color-accent); }
.legend__dot--today { background: var(--color-primary); }
.legend__dot--full   { background: var(--color-primary); opacity: 0.4; }

/* =============================================================
   FOOTER (Motivation)
   ============================================================= */
.app-footer {
  margin-top: var(--space-12);
  padding: var(--space-4);
}
.app-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  background: linear-gradient(135deg, rgba(90, 15, 65, 0.06) 0%, rgba(229, 57, 53, 0.05) 100%);
  border: 1px solid rgba(90, 15, 65, 0.12);
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-8);
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  box-shadow: var(--shadow-sm);
}
.app-footer__icon {
  font-size: 28px;
  line-height: 1;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 6px rgba(229, 57, 53, 0.25));
}
.app-footer__text {
  font-size: 14.5px;
  color: var(--color-text);
  line-height: 1.65;
}
.app-footer__text strong { color: var(--color-primary); font-weight: 700; }

/* =============================================================
   MODAL (Glassmorphism-Overlay)
   ============================================================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 26, 26, 0.45);
  backdrop-filter: blur(8px) saturate(140%);
  -webkit-backdrop-filter: blur(8px) saturate(140%);
  display: grid;
  place-items: center;
  padding: var(--space-4);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur-base) var(--ease), visibility var(--dur-base) var(--ease);
  z-index: 50;
}
.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.modal {
  width: 100%;
  max-width: 520px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: var(--space-8);
  position: relative;
  transform: translateY(12px) scale(0.98);
  transition: transform var(--dur-base) var(--ease);
}
.modal-overlay.is-open .modal { transform: translateY(0) scale(1); }

.modal__close {
  position: absolute;
  top: 16px; right: 16px;
  width: 36px; height: 36px;
  border-radius: var(--radius-pill);
  display: grid; place-items: center;
  color: var(--color-text-muted);
  transition: background var(--dur-fast) var(--ease);
}
.modal__close:hover { background: var(--color-slot-empty); color: var(--color-text); }

.modal__head { margin-bottom: var(--space-6); }
.modal__eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  background: var(--color-accent-50);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-3);
}
.modal__title {
  font-size: 22px;
  color: var(--color-text);
  margin-bottom: 4px;
}
.modal__date {
  font-size: 14px;
  color: var(--color-text-muted);
  text-transform: capitalize;
}

.modal__meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  margin-bottom: var(--space-6);
}
.meta-item { display: flex; gap: var(--space-3); align-items: flex-start; }
.meta-item--wide { grid-column: 1 / -1; }
.meta-item__icon { font-size: 18px; line-height: 1.4; }
.meta-item__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-subtle);
  margin-bottom: 2px;
}
.meta-item__value {
  font-size: 14px;
  color: var(--color-text);
  font-weight: 500;
}

.modal__section { margin-bottom: var(--space-6); }
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-3);
}
.section-head h4 { font-size: 15px; font-weight: 700; color: var(--color-text); }
.section-head__count {
  font-size: 12px;
  font-weight: 700;
  color: var(--color-primary);
  background: rgba(90, 15, 65, 0.08);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}

/* Slot-Liste */
.slot-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
}
.slot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding: 10px 12px;
  background: var(--color-slot-empty);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease);
  position: relative;
}
.slot:hover:not(.is-taken) {
  border-color: var(--color-primary);
  background: rgba(90, 15, 65, 0.04);
  color: var(--color-text);
}
.slot.is-selected {
  border-color: var(--color-primary);
  background: rgba(90, 15, 65, 0.08);
  color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(90, 15, 65, 0.1);
}
.slot.is-taken {
  background: var(--color-slot-full);
  border-color: rgba(90, 15, 65, 0.18);
  color: var(--color-text);
  cursor: default;
}
.slot__name { font-weight: 500; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slot__index {
  font-size: 10px;
  font-weight: 700;
  color: var(--color-text-subtle);
  background: rgba(0,0,0,0.04);
  padding: 2px 6px;
  border-radius: var(--radius-pill);
  flex-shrink: 0;
}
.slot.is-taken .slot__index {
  background: var(--color-primary);
  color: #fff;
}
.slot__remove {
  font-size: 16px;
  color: var(--color-text-subtle);
  width: 20px; height: 20px;
  border-radius: 50%;
  display: grid; place-items: center;
  flex-shrink: 0;
  transition: all var(--dur-fast) var(--ease);
}
.slot__remove:hover { background: var(--color-accent); color: #fff; }

/* Formular */
.modal__form { padding-top: var(--space-4); border-top: 1px solid var(--color-border); }
.form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.form-row { display: flex; gap: var(--space-2); }
.form-row input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--color-text);
  background: var(--color-surface);
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.form-row input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(90, 15, 65, 0.12);
}
.form-row input::placeholder { color: var(--color-text-subtle); }

.form-hint {
  font-size: 12.5px;
  color: var(--color-text-muted);
  margin-top: var(--space-2);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  transition: all var(--dur-fast) var(--ease);
  white-space: nowrap;
}
.btn--primary {
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 2px 8px rgba(229, 57, 53, 0.25);
}
.btn--primary:hover { background: var(--color-accent-600); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(229, 57, 53, 0.35); }
.btn--primary:active { transform: translateY(0); }
.btn--primary:disabled { background: var(--color-border-strong); color: var(--color-text-subtle); cursor: not-allowed; box-shadow: none; transform: none; }

.btn--danger {
  background: transparent;
  color: var(--color-accent);
  border: 1.5px solid var(--color-accent);
}
.btn--danger:hover { background: var(--color-accent); color: #fff; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(229, 57, 53, 0.35); }
.btn--danger:active { transform: translateY(0); }

.modal__danger {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin-top: 4px;
}
.modal__danger[hidden] { display: none; }

/* =============================================================
   AKTIVITÄTS-TABS (mehrere Aktivitäten pro Tag)
   ============================================================= */
.activity-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.activity-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-muted);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease);
  max-width: 100%;
}
.activity-tab:hover:not(.is-active):not(.is-delete) {
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.activity-tab.is-active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
  box-shadow: 0 2px 6px rgba(90, 15, 65, 0.25);
}
.activity-tab__label {
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.activity-tab__remove {
  width: 18px; height: 18px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 14px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.1);
  transition: all var(--dur-fast) var(--ease);
  flex-shrink: 0;
}
.activity-tab__remove:hover { background: var(--color-accent); color: #fff; }
.activity-tab:not(.is-active) .activity-tab__remove {
  color: var(--color-text-subtle);
  background: transparent;
}
.activity-tab:not(.is-active) .activity-tab__remove:hover { background: var(--color-accent-50); color: var(--color-accent); }

/* Trenner im Modal */
.modal__divider {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--color-border) 50%, transparent 100%);
  margin: var(--space-6) 0 var(--space-4);
}

/* Form-Grid für neue Aktivität */
.modal__form--add { border-top: none; padding-top: 0; }
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}
.form-field--wide { grid-column: 1 / -1; }
.form-field input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--color-text);
  background: var(--color-surface);
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.form-field input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(90, 15, 65, 0.12);
}
.form-field input::placeholder { color: var(--color-text-subtle); }
.form-actions { display: flex; justify-content: flex-end; }

/* =============================================================
   TOAST
   ============================================================= */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--color-primary);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: all var(--dur-base) var(--ease);
  z-index: 100;
  max-width: 90vw;
}
.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.toast.is-error { background: var(--color-accent); }

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 768px) {
  .app-header { top: 0; margin: 0 0 var(--space-4); padding: var(--space-2); }
  .app-header__inner { padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); }
  .app-header__title h1 { font-size: 15px; }
  .app-header__title p { display: none; }
  .app-header__meta { display: none; }

  .calendar-card { padding: var(--space-4); border-radius: var(--radius-md); }
  .calendar-card__title { font-size: 18px; }
  .nav-label { min-width: 110px; font-size: 13px; }

  .day-grid { grid-auto-rows: minmax(72px, 1fr); }
  .day-cell { padding: 6px 8px; }
  .day-cell__num { font-size: 12px; }
  .day-cell__pill { font-size: 10px; padding: 2px 6px; }
  .day-cell__count { display: none; }
  .day-cell__marker { width: 6px; height: 6px; top: 6px; right: 6px; }

  .modal { padding: var(--space-6); border-radius: var(--radius-lg); }
  .modal__title { font-size: 19px; }
  .modal__meta { grid-template-columns: 1fr; }
  .slot-list { grid-template-columns: 1fr; }
  .form-row { flex-direction: column; }
  .form-row .btn { width: 100%; }
  .form-grid { grid-template-columns: 1fr; }
  .activity-tab__label { max-width: 140px; }

  .app-footer__inner { padding: var(--space-4) var(--space-5); flex-direction: column; gap: var(--space-2); }
  .app-footer__icon { font-size: 22px; }
}

@media (max-width: 420px) {
  .day-grid { grid-auto-rows: minmax(60px, 1fr); }
  .day-cell__pill { display: none; }
  .day-cell.is-event::after {
    content: '';
    position: absolute;
    bottom: 8px; left: 50%;
    transform: translateX(-50%);
    width: 24px; height: 3px;
    background: var(--color-primary);
    border-radius: 2px;
  }
}

/* Reduzierte Bewegung */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
