/* ============================================================
   FamilyPlanner — Design System v2
   Aesthetic: Warm Organic · Freundlich & Klar
   Fonts: Quicksand (Headings) + DM Sans (Body)
   Primary: Warm Teal #0D9488
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@400;500;600;700&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap');

/* ── CSS Variables ── */
:root {
  /* Primärfarbe — Warmes Teal */
  --primary:       #0D9488;
  --primary-light: #14B8A6;
  --primary-dark:  #0F766E;
  --primary-50:    #F0FDFA;
  --primary-100:   #CCFBF1;
  --primary-rgb:   13, 148, 136;

  /* Hintergründe */
  --bg-main:   #FBF8F4;
  --bg-warm:   #F5F0EA;
  --bg-card:   #FFFFFF;
  --bg-nav:    rgba(255, 255, 255, 0.92);
  --bg-input:  #FAFAF8;

  /* Akzentfarben */
  --accent-coral:        #F97066;
  --accent-coral-light:  #FEE2E2;
  --accent-coral-rgb:    249, 112, 102;
  --accent-green:        #10B981;
  --accent-green-light:  #D1FAE5;
  --accent-amber:        #F59E0B;
  --accent-amber-light:  #FEF3C7;
  --accent-blue:         #3B82F6;
  --accent-blue-light:   #DBEAFE;

  /* Text */
  --text-primary:   #1C1917;
  --text-secondary: #57534E;
  --text-muted:     #A8A29E;
  --text-inverse:   #FFFFFF;

  /* Eltern-Farben (per DB anpassbar) */
  --color-vater:     #3B82F6;
  --color-vater-rgb: 59, 130, 246;
  --color-mutter:    #E879A0;
  --color-mutter-rgb: 232, 121, 160;

  /* Kind-Farben */
  --color-kind1: #8B5CF6;
  --color-kind2: #F97316;

  /* Schulferien */
  --holiday-bg:     #FEF9EE;
  --holiday-border: #FCD34D;

  /* Schatten */
  --shadow-xs:  0 1px 2px rgba(28,25,23,0.04);
  --shadow-sm:  0 2px 8px rgba(28,25,23,0.06);
  --shadow-md:  0 4px 16px rgba(28,25,23,0.08);
  --shadow-lg:  0 8px 32px rgba(28,25,23,0.10);
  --shadow-nav: 0 -4px 24px rgba(28,25,23,0.08);
  --shadow-glow:0 0 0 3px rgba(13,148,136,0.15);

  /* Rundungen */
  --radius-sm:   10px;
  --radius-md:   14px;
  --radius-lg:   20px;
  --radius-xl:   28px;
  --radius-full: 9999px;

  /* Typografie */
  --font-heading: 'Quicksand', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body:    'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Abstände */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;

  /* Layout */
  --max-width: 480px;
  --nav-height: 72px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-top:    env(safe-area-inset-top, 0px);

  /* Animationen */
  --duration-fast:   150ms;
  --duration-normal: 250ms;
  --duration-slow:   400ms;
  --ease-out:        cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring:     cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── Reset & Base ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  height: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-main);
  min-height: 100dvh;
  padding-bottom: calc(var(--nav-height) + var(--safe-bottom) + var(--space-md));
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: var(--font-body); }
img, svg { display: block; }

/* ── Scrollbar (Webkit) ── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(28,25,23,0.15); border-radius: 2px; }

/* ── Typografie ── */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.25;
  color: var(--text-primary);
}
h1 { font-size: 26px; font-weight: 700; }
h2 { font-size: 20px; font-weight: 700; }
h3 { font-size: 17px; font-weight: 700; }
h4 { font-size: 15px; font-weight: 600; }

/* ── Page Container ── */
.page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-md);
  padding-top: calc(var(--space-md) + var(--safe-top));
  animation: fadeUp var(--duration-slow) var(--ease-out) both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Page Header / Begrüßung ── */
.page-header {
  margin-bottom: var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}
.page-header__title,
.page-header__greeting {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.3px;
  margin: 0;
}
.page-header__sub {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0 0 2px;
  font-weight: 400;
}

/* ── Section Label ── */
.section-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: var(--space-sm);
}

/* ═══════════════════════════════════════════════
   STATUS-GRID & STATUS-CARDS
   ═══════════════════════════════════════════════ */
.status-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.status-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform var(--duration-fast) ease, box-shadow var(--duration-fast) ease;
  cursor: default;
}
.status-card:is(a) {
  cursor: pointer;
}
.status-card:is(a):hover,
.status-card:is(a):active {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.status-card__icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2px;
}
.status-card__icon--coral  { background: var(--accent-coral-light); }
.status-card__icon--amber  { background: var(--accent-amber-light); }
.status-card__icon--green  { background: var(--accent-green-light); }
.status-card__icon--blue   { background: var(--accent-blue-light); }
.status-card__icon--teal   { background: var(--primary-100); }

.status-card__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.status-card__label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}
.status-card__value {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}

/* Status-Card Farbvarianten */
.status-card--coral { border-top: 3px solid var(--accent-coral); }
.status-card--coral .status-card__icon { color: var(--accent-coral); }
.status-card--coral .status-card__value { color: var(--accent-coral); }
.status-card--amber { border-top: 3px solid var(--accent-amber); }
.status-card--amber .status-card__icon { color: var(--accent-amber); }
.status-card--amber .status-card__value { color: var(--accent-amber); }
.status-card--green { border-top: 3px solid var(--accent-green); }
.status-card--green .status-card__icon { color: var(--accent-green); }
.status-card--teal  { border-top: 3px solid var(--primary); }
.status-card--teal .status-card__icon  { color: var(--primary); }
.status-card__icon svg { width: 22px; height: 22px; }

/* ═══════════════════════════════════════════════
   CARDS
   ═══════════════════════════════════════════════ */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--duration-fast) ease;
}
.card + .card { margin-top: var(--space-sm); }

/* Farbige Karten-Varianten */
.card--amber  { border-left: 3px solid var(--accent-amber); }
.card--coral  { border-left: 3px solid var(--accent-coral); }
.card--green  { border-left: 3px solid var(--accent-green); }
.card--blue   { border-left: 3px solid var(--accent-blue); }
.card--teal   { border-left: 3px solid var(--primary); }

.card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-sm);
}
.card__body {
  padding-top: var(--space-sm);
}
.card__title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin: 0;
}
.card__title svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--primary);
}

/* ═══════════════════════════════════════════════
   WOCHENVORSCHAU (Dashboard)
   ═══════════════════════════════════════════════ */
.week-preview {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.week-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 6px 2px;
  border-radius: var(--radius-sm);
  cursor: default;
  transition: background var(--duration-fast) ease;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}
a.week-day { cursor: pointer; }
a.week-day:hover { background: var(--primary-50); }

.week-day--today {
  background: var(--primary-50);
}

.week-day__name {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.week-day__num {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}
.week-day--today .week-day__num {
  background: var(--primary);
  color: white;
}

.week-day--papa  { background: rgba(var(--color-vater-rgb),  0.08); }
.week-day--mama  { background: rgba(var(--color-mutter-rgb), 0.08); }
.week-day--split {
  background: linear-gradient(
    135deg,
    rgba(var(--color-vater-rgb),  0.06) 50%,
    rgba(var(--color-mutter-rgb), 0.06) 50%
  );
}

.week-day__bar {
  width: 4px;
  height: 22px;
  border-radius: 2px;
  background: rgba(28,25,23,0.1);
}
.week-day__dots {
  display: flex;
  gap: 2px;
  margin-top: 2px;
}
.week-day__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
}
.week-day__num--today {
  background: var(--primary);
  color: white;
}

/* ═══════════════════════════════════════════════
   SCHNELLAKTIONEN
   ═══════════════════════════════════════════════ */
.quick-actions {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.quick-action {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px var(--space-md);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--duration-fast) ease;
  border: none;
  text-decoration: none;
}
.quick-action svg { width: 16px; height: 16px; flex-shrink: 0; }

.quick-action--primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 2px 8px rgba(var(--primary-rgb), 0.3);
}
.quick-action--primary:hover  { background: var(--primary-dark); transform: translateY(-1px); }
.quick-action--primary:active { transform: translateY(0); }

.quick-action--outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid rgba(var(--primary-rgb), 0.3);
}
.quick-action--outline:hover  { background: var(--primary-50); border-color: var(--primary); }

/* ═══════════════════════════════════════════════
   USER INFO & AVATAR
   ═══════════════════════════════════════════════ */
.user-info {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--space-md);
}

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}
.avatar--vater  { background: var(--color-vater); }
.avatar--mutter { background: var(--color-mutter); }
.avatar svg { width: 22px; height: 22px; }

.user-info__name {
  font-weight: 700;
  font-size: 15px;
  color: var(--text-primary);
}
.user-info__role {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ═══════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--duration-fast) ease;
  text-decoration: none;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.btn svg { width: 15px; height: 15px; flex-shrink: 0; }

.btn--primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 2px 8px rgba(var(--primary-rgb), 0.25);
}
.btn--primary:hover  { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.3); }
.btn--primary:active { transform: translateY(0); }

.btn--danger {
  background: var(--accent-coral);
  color: white;
}
.btn--danger:hover { background: #e05252; transform: translateY(-1px); }

.btn--ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1.5px solid rgba(28,25,23,0.12);
}
.btn--ghost:hover { background: var(--bg-warm); border-color: rgba(28,25,23,0.2); }

.btn--outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid rgba(var(--primary-rgb), 0.3);
}
.btn--outline:hover { background: var(--primary-50); }

.btn--sm   { padding: 7px 14px; font-size: 13px; }
.btn--lg   { padding: 14px 28px; font-size: 16px; }
.btn--full { width: 100%; }

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* ═══════════════════════════════════════════════
   FORM INPUTS
   ═══════════════════════════════════════════════ */
.form-group { margin-bottom: var(--space-md); }

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 11px var(--space-md);
  border: 1.5px solid rgba(28,25,23,0.12);
  border-radius: var(--radius-md);
  background: var(--bg-input);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 15px;
  transition: border-color var(--duration-fast) ease, box-shadow var(--duration-fast) ease;
  appearance: none;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
}
.form-textarea { resize: vertical; min-height: 80px; }

/* ═══════════════════════════════════════════════
   LOGIN-SEITE
   ═══════════════════════════════════════════════ */
.login-page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl) var(--space-md);
  background: linear-gradient(145deg, #0D9488 0%, #0F766E 50%, #134E4A 100%);
  position: relative;
  overflow: hidden;
}

/* Dekoratives Muster */
.login-page::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
  pointer-events: none;
}
.login-page::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -15%;
  width: 400px;
  height: 400px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
  pointer-events: none;
}

.login-card {
  width: 100%;
  max-width: 360px;
  background: rgba(255,255,255,0.97);
  border-radius: var(--radius-xl);
  padding: var(--space-xl) var(--space-lg);
  box-shadow: 0 24px 64px rgba(0,0,0,0.2);
  position: relative;
  z-index: 1;
  animation: fadeUp var(--duration-slow) var(--ease-out) both;
}

.login-logo {
  text-align: center;
  margin-bottom: var(--space-xl);
}
.login-logo__icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
  box-shadow: 0 8px 24px rgba(var(--primary-rgb), 0.35);
}
.login-logo__icon svg { color: white; width: 32px; height: 32px; }

.login-logo__title {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.3px;
}
.login-logo__sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

.login-form .form-input {
  font-size: 16px; /* Verhindert iOS Zoom */
}

.login-error {
  background: var(--accent-coral-light);
  border-left: 3px solid var(--accent-coral);
  color: #9B1C1C;
  font-size: 13px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-md);
}

/* ═══════════════════════════════════════════════
   BOTTOM NAVIGATION — Floating Pill
   ═══════════════════════════════════════════════ */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 8px 12px;
  padding-bottom: calc(8px + var(--safe-bottom));
  z-index: 1000;
  pointer-events: none;
}

.bottom-nav__pill {
  max-width: var(--max-width);
  margin: 0 auto;
  background: var(--bg-nav);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-nav), 0 0 0 1px rgba(28,25,23,0.06);
  display: flex;
  align-items: center;
  padding: 6px;
  pointer-events: all;
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 4px;
  border-radius: var(--radius-full);
  color: var(--text-muted);
  transition: all var(--duration-fast) ease;
  -webkit-tap-highlight-color: transparent;
  text-decoration: none;
  min-width: 0;
}
.nav-item:hover  { color: var(--text-secondary); }
.nav-item:active { transform: scale(0.92); }

.nav-item--active {
  color: var(--primary);
  background: var(--primary-50);
}

.nav-item__icon {
  position: relative;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.nav-item__icon svg {
  width: 22px;
  height: 22px;
  transition: transform var(--duration-fast) var(--ease-spring);
}
.nav-item--active .nav-item__icon svg {
  transform: scale(1.1);
}

.nav-item__label {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1;
}

/* Badge */
.nav-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  min-width: 17px;
  height: 17px;
  background: var(--accent-coral);
  color: white;
  font-size: 10px;
  font-weight: 700;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid var(--bg-nav);
  animation: badgePop 0.3s var(--ease-spring) both;
  line-height: 1;
}

@keyframes badgePop {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

/* ═══════════════════════════════════════════════
   KALENDER-SEITE: HEADER + VIEW-SWITCH
   ═══════════════════════════════════════════════ */
.cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-md);
}

.cal-header__nav {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.cal-header__month {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  min-width: 156px;
  text-align: center;
  letter-spacing: -0.2px;
}

.cal-nav-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  border: none;
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--duration-fast) ease;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}
.cal-nav-btn:hover  { background: var(--primary-50); color: var(--primary); }
.cal-nav-btn:active { transform: scale(0.92); }
.cal-nav-btn svg { width: 18px; height: 18px; }

.cal-today-btn {
  padding: 7px 16px;
  border-radius: var(--radius-full);
  border: 1.5px solid rgba(var(--primary-rgb), 0.3);
  background: transparent;
  color: var(--primary);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--duration-fast) ease;
  -webkit-tap-highlight-color: transparent;
}
.cal-today-btn:hover { background: var(--primary-50); border-color: var(--primary); }

/* View-Switcher */
.view-switch {
  display: flex;
  background: rgba(28,25,23,0.06);
  border-radius: var(--radius-full);
  padding: 3px;
  margin-bottom: var(--space-md);
  width: fit-content;
}
.view-btn {
  padding: 6px 20px;
  border-radius: var(--radius-full);
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--duration-fast) ease;
  -webkit-tap-highlight-color: transparent;
}
.view-btn--active {
  background: var(--bg-card);
  color: var(--primary);
  box-shadow: var(--shadow-xs);
}

/* ═══════════════════════════════════════════════
   LEGENDE
   ═══════════════════════════════════════════════ */
.legend {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  overflow-x: auto;
  padding-bottom: 4px;
  margin-bottom: var(--space-md);
  scrollbar-width: none;
}
.legend::-webkit-scrollbar { display: none; }

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  flex-shrink: 0;
}
.legend-swatch {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}
.legend-bar {
  width: 4px;
  height: 16px;
  border-radius: 2px;
  flex-shrink: 0;
}
.legend-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

/* ═══════════════════════════════════════════════
   KALENDER-GRID & ZELLEN (Seitenbalken-System)
   ═══════════════════════════════════════════════ */
.calendar-wrapper {
  margin-bottom: var(--space-md);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  background: rgba(28,25,23,0.05);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.calendar-weekday {
  background: var(--bg-card);
  padding: var(--space-sm) 4px;
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.calendar-cell {
  position: relative;
  background: var(--bg-card);
  padding: 6px 4px 6px 9px;
  min-height: 54px;
  cursor: pointer;
  transition: background var(--duration-fast) ease;
  -webkit-tap-highlight-color: transparent;
  overflow: hidden;
}
.calendar-cell:active { background: var(--bg-warm); }

/* Seitenbalken — gesetzt via --cell-bar CSS-Variable aus JS */
.calendar-cell::before {
  content: '';
  position: absolute;
  left: 0;
  top: 3px;
  bottom: 3px;
  width: 4px;
  border-radius: 0 2px 2px 0;
  background: var(--cell-bar, transparent);
}

/* Elternteil-Hintergrundtönung */
.calendar-cell--papa {
  background-color: rgba(var(--color-vater-rgb), 0.07) !important;
}
.calendar-cell--mama {
  background-color: rgba(var(--color-mutter-rgb), 0.07) !important;
}
.calendar-cell--split {
  background: linear-gradient(135deg,
    rgba(var(--color-vater-rgb), 0.05) 50%,
    rgba(var(--color-mutter-rgb), 0.05) 50%) !important;
}

/* Heute */
.calendar-cell--today {
  background: var(--primary-50) !important;
}
.calendar-cell--today .calendar-cell__num {
  background: var(--primary);
  color: white;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

/* Leere Zellen (vor/nach Monat) */
.calendar-cell--empty {
  background: rgba(28,25,23,0.02) !important;
  cursor: default;
}
.calendar-cell--empty::before { display: none; }

/* Ferientag */
.calendar-cell--holiday {
  background-color: var(--holiday-bg) !important;
  outline: 1.5px dashed rgba(245,158,11,0.4);
  outline-offset: -1px;
}

.calendar-cell__num {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1;
}
.calendar-cell--empty .calendar-cell__num { color: var(--text-muted); }

.calendar-cell__parent {
  font-size: 10px;
  color: var(--text-secondary);
  margin-top: 3px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ═══════════════════════════════════════════════
   MODAL — Bottom Sheet
   ═══════════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(28,25,23,0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1500;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: fadeIn var(--duration-fast) ease both;
}

.modal-overlay--exit { animation: fadeIn var(--duration-normal) ease reverse forwards; }
.modal-overlay--exit .modal { animation: slideUp var(--duration-normal) ease reverse forwards; }

.modal {
  width: 100%;
  max-width: var(--max-width);
  background: var(--bg-card);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  max-height: 88dvh;
  overflow-y: auto;
  animation: slideUp var(--duration-normal) var(--ease-out) both;
  overscroll-behavior: contain;
}

.modal__handle {
  width: 36px;
  height: 4px;
  background: rgba(28,25,23,0.15);
  border-radius: 2px;
  margin: var(--space-md) auto var(--space-sm);
}

.modal__body {
  padding: var(--space-sm) var(--space-lg) calc(var(--space-lg) + var(--safe-bottom));
}

.modal__title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
  line-height: 1.3;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slideUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}

/* ═══════════════════════════════════════════════
   TOAST NOTIFICATIONS
   ═══════════════════════════════════════════════ */
.toast-container {
  position: fixed;
  top: calc(var(--space-md) + var(--safe-top));
  left: 50%;
  transform: translateX(-50%);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: calc(100% - 2 * var(--space-md));
  max-width: 360px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  box-shadow: var(--shadow-lg);
  pointer-events: all;
  cursor: pointer;
  animation: toastIn var(--duration-normal) var(--ease-out) both;
}
.toast--exit {
  animation: toastOut var(--duration-normal) ease both;
}

.toast--success {
  background: #ECFDF5;
  color: #065F46;
  border-left: 3px solid var(--accent-green);
}
.toast--error {
  background: #FEF2F2;
  color: #7F1D1D;
  border-left: 3px solid var(--accent-coral);
}
.toast--info {
  background: var(--primary-50);
  color: var(--primary-dark);
  border-left: 3px solid var(--primary);
}

.toast__icon { flex-shrink: 0; display: flex; }
.toast__text { flex: 1; }

@keyframes toastIn {
  from { opacity: 0; transform: translateY(-12px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes toastOut {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to   { opacity: 0; transform: translateY(-8px) scale(0.95); }
}

/* ═══════════════════════════════════════════════
   CHIPS / TAGS
   ═══════════════════════════════════════════════ */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}
.chip--teal   { background: var(--primary-100);         color: var(--primary-dark); }
.chip--coral  { background: var(--accent-coral-light);  color: #9B1C1C; }
.chip--amber  { background: var(--accent-amber-light);  color: #78350F; }
.chip--green  { background: var(--accent-green-light);  color: #064E3B; }
.chip--blue   { background: var(--accent-blue-light);   color: #1E3A8A; }

/* ═══════════════════════════════════════════════
   TOGGLE / SWITCH
   ═══════════════════════════════════════════════ */
.toggle {
  position: relative;
  width: 48px;
  height: 28px;
  background: rgba(28,25,23,0.15);
  border-radius: var(--radius-full);
  cursor: pointer;
  border: none;
  padding: 0;
  transition: background var(--duration-fast) ease;
  flex-shrink: 0;
}
.toggle--on { background: var(--primary); }
.toggle::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
  transition: transform var(--duration-normal) var(--ease-out);
}
.toggle--on::after { transform: translateX(20px); }

/* ═══════════════════════════════════════════════
   SWAP REQUEST ITEMS
   ═══════════════════════════════════════════════ */
.swap-item {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  border: 1.5px solid rgba(28,25,23,0.06);
  margin-bottom: var(--space-sm);
  transition: border-color var(--duration-fast) ease;
}
.swap-item:hover { border-color: rgba(28,25,23,0.12); }

.swap-item__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}
.swap-item__actions {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

/* ═══════════════════════════════════════════════
   NOTIFICATION ITEMS
   ═══════════════════════════════════════════════ */
.notif-item {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background var(--duration-fast) ease;
}
.notif-item:hover        { background: var(--bg-warm); }
.notif-item--unread      { background: var(--primary-50); }

.notif-item__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
  margin-top: 5px;
}
.notif-item__content { flex: 1; min-width: 0; }
.notif-item__title {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-primary);
  margin-bottom: 2px;
}
.notif-item__msg {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
}
.notif-item__time {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ═══════════════════════════════════════════════
   EMPTY STATES
   ═══════════════════════════════════════════════ */
.empty-state {
  text-align: center;
  padding: var(--space-xl) var(--space-md);
  color: var(--text-muted);
}
.empty-state svg {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--space-md);
  opacity: 0.5;
}
.empty-state p {
  font-size: 14px;
  line-height: 1.5;
  max-width: 240px;
  margin: 0 auto;
}

/* ═══════════════════════════════════════════════
   SKELETON LOADER
   ═══════════════════════════════════════════════ */
.skeleton-loader {
  background: linear-gradient(90deg,
    rgba(28,25,23,0.06) 25%,
    rgba(28,25,23,0.1) 50%,
    rgba(28,25,23,0.06) 75%);
  background-size: 200% 100%;
  border-radius: var(--radius-md);
  animation: shimmer 1.4s ease-in-out infinite;
}
@keyframes shimmer {
  from { background-position: 200% 0; }
  to   { background-position: -200% 0; }
}

/* ═══════════════════════════════════════════════
   UTILITY CLASSES
   ═══════════════════════════════════════════════ */
.mt-xs { margin-top: var(--space-xs); }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }

.text-center   { text-align: center; }
.text-muted    { color: var(--text-muted); }
.text-sm       { font-size: 13px; }
.text-xs       { font-size: 11px; }
.font-heading  { font-family: var(--font-heading); }
.font-bold     { font-weight: 700; }

.flex          { display: flex; }
.flex-center   { display: flex; align-items: center; justify-content: center; }
.items-center  { align-items: center; }
.gap-sm        { gap: var(--space-sm); }
.gap-md        { gap: var(--space-md); }
.hidden        { display: none !important; }
.sr-only       { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

.divider {
  border: none;
  border-top: 1px solid rgba(28,25,23,0.08);
  margin: var(--space-md) 0;
}

/* ═══════════════════════════════════════════════
   BETREUUNGS-ICONS (Kalender-Zellen)
   ═══════════════════════════════════════════════ */
.calendar-cell__care {
  display: flex;
  gap: 2px;
  margin-top: 2px;
  flex-wrap: wrap;
}
.care-icon {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.care-icon--yes     { background: var(--accent-green-light); color: var(--accent-green); }
.care-icon--no      { background: var(--accent-coral-light); color: var(--accent-coral); }
.care-icon--unknown { background: rgba(28,25,23,.06);        color: var(--text-muted); }

/* Recurring-Eintrag: leicht transparente Darstellung */
.calendar-cell--recurring { opacity: 0.88; }
.calendar-cell--recurring .calendar-cell__parent {
  font-style: italic;
  font-size: 10px;
}

/* ═══════════════════════════════════════════════
   SETTINGS PAGE
   ═══════════════════════════════════════════════ */
.settings-section {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--space-md);
}
.settings-section__header {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid rgba(28,25,23,.06);
}
.settings-section__icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: var(--primary-50);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--primary);
}
.settings-section__title {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 2px;
}
.settings-section__desc {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}
.settings-empty {
  text-align: center;
  padding: var(--space-lg) var(--space-md);
  color: var(--text-muted);
  font-size: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.settings-form {
  background: var(--bg-warm);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  margin-bottom: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.form-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ── Kind-Tabs ── */
.child-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: var(--space-md);
}
.child-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border: 1.5px solid rgba(28,25,23,.12);
  border-radius: var(--radius-full);
  background: transparent;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--duration-fast) ease;
}
.child-tab--active {
  border-color: var(--tab-color, var(--primary));
  color: var(--tab-color, var(--primary));
  background: color-mix(in srgb, var(--tab-color, var(--primary)) 10%, transparent);
}
.child-tab__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── Recurring Editor ── */
.recurring-editor {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.pattern-type-switch {
  display: flex;
  gap: 6px;
}
.pattern-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1.5px solid rgba(28,25,23,.12);
  border-radius: var(--radius-md);
  background: transparent;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--duration-fast) ease;
}
.pattern-btn svg { width: 14px; height: 14px; flex-shrink: 0; }
.pattern-btn--active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

/* ── Day-Grid (7 Wochentage) ── */
.day-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.day-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 2px;
  border: 1.5px solid rgba(28,25,23,.10);
  border-radius: var(--radius-md);
  background: var(--bg-warm);
  cursor: pointer;
  transition: all var(--duration-fast) ease;
  min-width: 0;
}
.day-btn:hover { border-color: var(--primary); }
.day-btn__label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}
.day-btn__role {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  text-align: center;
}
.day-btn--vater {
  border-color: var(--day-color);
  background: color-mix(in srgb, var(--day-color) 12%, var(--bg-card));
}
.day-btn--vater .day-btn__role  { color: var(--day-color); }
.day-btn--mutter {
  border-color: var(--day-color);
  background: color-mix(in srgb, var(--day-color) 12%, var(--bg-card));
}
.day-btn--mutter .day-btn__role { color: var(--day-color); }

/* ── Biweekly Editor ── */
.biweekly-ref {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.biweekly-weeks {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.biweekly-week__label {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

/* ── Recurring Actions ── */
.recurring-actions {
  display: flex;
  gap: var(--space-sm);
  align-items: center;
}

/* ── Holiday List ── */
.holiday-actions {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
  flex-wrap: wrap;
}
.holiday-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.holiday-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 10px 12px;
  background: var(--bg-warm);
  border-radius: var(--radius-md);
  transition: opacity .2s;
}
.holiday-item__info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.holiday-item__name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.holiday-item__dates {
  font-size: 12px;
  color: var(--text-muted);
}
.holiday-item__badge {
  font-size: 10px;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-50);
  padding: 1px 6px;
  border-radius: var(--radius-full);
  display: inline-block;
  width: fit-content;
}

/* ═══════════════════════════════════════════════
   TAUSCH-ANFRAGEN SEITE
   ═══════════════════════════════════════════════ */
.swap-tabs {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
  border-bottom: 2px solid rgba(28,25,23,.08);
  padding-bottom: 0;
}
.swap-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color .2s, border-color .2s;
  position: relative;
}
.swap-tab--active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  font-weight: 600;
}
.swap-tab__badge {
  background: var(--accent-coral);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: var(--radius-full);
  padding: 0 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.swap-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.swap-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  box-shadow: var(--shadow-sm);
  border-left: 4px solid transparent;
}
.swap-card--pending   { border-left-color: var(--accent-amber); }
.swap-card--accepted  { border-left-color: var(--accent-green); }
.swap-card--declined,
.swap-card--cancelled { border-left-color: var(--text-muted); }

.swap-card__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.swap-card__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.swap-card__title {
  flex: 1;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}
.swap-card__meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.swap-card__reason {
  font-size: 13px;
  color: var(--text-secondary);
  background: var(--bg-warm);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  margin-top: 6px;
  margin-bottom: 0;
}
.swap-card__actions {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-md);
  padding-top: var(--space-sm);
  border-top: 1px solid rgba(28,25,23,.06);
}
.swap-loading {
  display: flex;
  justify-content: center;
  padding: var(--space-xl) 0;
}
.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(13,148,136,.15);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.swap-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-xl) 0;
  color: var(--text-muted);
  text-align: center;
}
.swap-empty svg { opacity: .4; }

/* Status-Badges für Tausch */
.badge--swap { font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: var(--radius-full); }
.badge--pending   { background: var(--accent-amber-light);  color: #92400E; }
.badge--accepted  { background: var(--accent-green-light);  color: #065F46; }
.badge--declined,
.badge--cancelled { background: rgba(28,25,23,.08); color: var(--text-muted); }

/* Danger-Button */
.btn--danger { background: var(--accent-coral); color: #fff; }
.btn--danger:hover { background: #DC4A40; transform: translateY(-1px); }

/* ═══════════════════════════════════════════════
   BENACHRICHTIGUNGS-SEITE
   ═══════════════════════════════════════════════ */
.notif-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.notif-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background .15s;
}
.notif-item:hover { background: var(--bg-warm); }
.notif-item--unread { background: rgba(13,148,136,.05); }
.notif-item--unread:hover { background: rgba(13,148,136,.09); }

.notif-item__icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-100);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.notif-item__icon--swap_declined,
.notif-item__icon--cancelled {
  background: rgba(239,68,68,.1);
  color: var(--accent-coral);
}
.notif-item__icon--swap_accepted {
  background: var(--accent-green-light);
  color: var(--accent-green);
}
.notif-item__icon--reminder {
  background: var(--accent-amber-light);
  color: var(--accent-amber);
}

.notif-item__content { flex: 1; min-width: 0; }
.notif-item__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}
.notif-item__msg {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: 4px;
}
.notif-item__meta {
  font-size: 11px;
  color: var(--text-muted);
}
.notif-item__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
  margin-top: 6px;
}

/* ═══════════════════════════════════════════════
   RESPONSIVE (Desktop-Erweiterung)
   ═══════════════════════════════════════════════ */
@media (min-width: 768px) {
  .status-grid { grid-template-columns: repeat(4, 1fr); }
  .quick-actions { flex-direction: row; }
  .cal-header__month { min-width: 200px; font-size: 22px; }
  .biweekly-weeks { flex-direction: row; }
  .biweekly-weeks > * { flex: 1; }
  .form-row { grid-template-columns: 1fr 1fr; }
}

/* ═══════════════════════════════════════════════
   APP BANNER (Push Opt-in + PWA Install)
   ═══════════════════════════════════════════════ */
.app-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 16px 4px;
  padding: 14px 16px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border-left: 4px solid var(--primary);
  animation: fadeUp 0.3s ease-out;
}
.app-banner--install { border-left-color: var(--accent-amber); }
.app-banner--exit {
  animation: fadeDown 0.3s ease-out forwards;
}
@keyframes fadeDown {
  to { opacity: 0; transform: translateY(-8px); }
}
.app-banner__icon {
  font-size: 24px;
  flex-shrink: 0;
  line-height: 1;
}
.app-banner__text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.app-banner__text strong {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}
.app-banner__text span {
  font-size: 12px;
  color: var(--text-secondary);
}
.app-banner__btn {
  flex-shrink: 0;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}
.app-banner__btn--primary {
  background: var(--primary);
  color: #fff;
}
.app-banner__btn--primary:hover { background: var(--primary-dark); }
.app-banner__btn--ghost {
  background: transparent;
  color: var(--text-muted);
}
.app-banner__btn--ghost:hover { color: var(--text-secondary); }
