:root {
  --primary:       #4F46E5;
  --primary-light: #EEF2FF;
  --primary-dark:  #4338CA;
  --indigo:  #4F46E5;
  --pink:    #EC4899;
  --orange:  #F97316;
  --purple:  #A855F7;
  --green:   #10B981;
  --red:     #E30613;
  --gray-50:  #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-900: #111827;
  --shadow:    0 1px 3px rgba(0,0,0,.10), 0 1px 2px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 25px rgba(0,0,0,.12);
  --radius:    8px;
  --radius-lg: 12px;
  --gutter:    56px; /* time gutter width in week/day view */
  --hour-h:    60px; /* height per hour slot */
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--gray-50);
  color: var(--gray-900);
  min-height: 100vh;
  font-size: 15px;
}

/* ── Header ─────────────────────────────────────────────────────────────── */
header {
  background: #fff;
  border-bottom: 1px solid var(--gray-200);
  padding: 0 1.25rem;
  height: 58px;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: var(--shadow);
}
.logo { font-size: 1.05rem; font-weight: 700; color: var(--primary); white-space: nowrap; flex-shrink: 0; }
.tabs { display: flex; gap: 4px; }
.tab {
  padding: 6px 14px; border: none; background: none;
  border-radius: var(--radius); cursor: pointer;
  color: var(--gray-500); font-size: .875rem; font-weight: 500;
  transition: background .15s, color .15s; white-space: nowrap;
}
.tab:hover  { background: var(--gray-100); color: var(--gray-700); }
.tab.active { background: var(--primary-light); color: var(--primary); }

/* ── Tab content ────────────────────────────────────────────────────────── */
.tab-content { display: none; padding: 1.25rem 1.5rem; max-width: 1300px; margin: 0 auto; }
.tab-content.active { display: block; }

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn-primary, .btn-secondary, .btn-danger, .btn-fc, .nav-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 14px; border: none; border-radius: var(--radius);
  cursor: pointer; font-size: .875rem; font-weight: 500;
  transition: background .15s, transform .1s; white-space: nowrap;
}
.btn-primary   { background: var(--primary); color: #fff; }
.btn-primary:hover   { background: var(--primary-dark); }
.btn-secondary { background: var(--gray-100); color: var(--gray-700); }
.btn-secondary:hover { background: var(--gray-200); }
.btn-danger    { background: #FEE2E2; color: #DC2626; }
.btn-danger:hover    { background: #FECACA; }
.btn-fc        { background: #FFF0F0; color: var(--red); border: 1px solid #FECACA; }
.btn-fc:hover  { background: #FFE0E0; }
.nav-btn       { background: none; border: 1px solid var(--gray-300); color: var(--gray-700); width: 34px; padding: 0; justify-content: center; font-size: 1.2rem; }
.nav-btn:hover { background: var(--gray-100); }
button:active  { transform: scale(.97); }

/* ── View toggle (segmented control) ───────────────────────────────────── */
.view-toggle {
  display: flex; background: var(--gray-100);
  border-radius: var(--radius); padding: 3px; gap: 2px;
}
.vt-btn {
  padding: 5px 14px; border: none; background: none;
  border-radius: 6px; cursor: pointer;
  font-size: .85rem; font-weight: 500; color: var(--gray-500);
  transition: all .15s;
}
.vt-btn:hover  { color: var(--gray-700); }
.vt-btn.active { background: #fff; color: var(--primary); box-shadow: var(--shadow); }

/* ── Calendar controls row ──────────────────────────────────────────────── */
.calendar-controls {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 12px; flex-wrap: wrap;
}
.calendar-controls h2 { font-size: 1.15rem; font-weight: 600; min-width: 180px; text-align: center; }
.ctrl-sep { flex: 1; }

/* ── Legend ─────────────────────────────────────────────────────────────── */
.calendar-legend { display: flex; gap: 14px; margin-bottom: 12px; flex-wrap: wrap; }
.legend-item { display: flex; align-items: center; gap: 5px; font-size: .8rem; color: var(--gray-500); }
.dot    { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.dot-sm { width:  8px; height:  8px; border-radius: 50%; display: inline-block; margin-right: 3px; }

/* ── Calendar layout (grid + sidebar) ──────────────────────────────────── */
.calendar-layout {
  display: grid;
  grid-template-columns: 1fr 270px;
  gap: 1.25rem;
  align-items: start;
}
#calendar-view { min-width: 0; }

/* ═══════════════════════ MONTH VIEW ═══════════════════════════════════════ */
.month-grid {
  background: #fff; border-radius: var(--radius-lg);
  box-shadow: var(--shadow); border: 1px solid var(--gray-200);
  overflow: hidden;
  display: grid; grid-template-columns: repeat(7, 1fr);
}
.day-header {
  background: var(--gray-50); padding: 8px 4px;
  text-align: center; font-size: .7rem; font-weight: 700;
  color: var(--gray-500); text-transform: uppercase; letter-spacing: .06em;
  border-bottom: 1px solid var(--gray-200);
}
.day-header.sa, .day-header.so { color: var(--primary); }

.day-cell {
  border-right: 1px solid var(--gray-100); border-bottom: 1px solid var(--gray-100);
  min-height: 96px; padding: 5px; cursor: pointer; transition: background .1s; overflow: hidden;
}
.day-cell:hover { background: var(--primary-light); }
.day-cell.other-month { background: var(--gray-50); }
.day-cell.other-month .day-number { color: var(--gray-300); }
.day-cell.weekend .day-number { color: var(--primary); }
.day-cell.today .day-number {
  background: var(--primary); color: #fff;
  border-radius: 50%; width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
}
.day-cell.has-fc { border-left: 3px solid var(--red); }
.day-cell.feiertag .day-number { color: #DC2626; font-weight: 700; }
.day-cell.feiertag { border-top: 2px solid #FCA5A5; }
.feiertag-label {
  font-size: .62rem; font-weight: 600; color: #DC2626;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-bottom: 2px;
}
.ferien-label {
  font-size: .65rem; font-weight: 700; color: #374151;
  background: rgba(0,0,0,0.08); border-radius: 3px;
  padding: 1px 4px; margin-bottom: 2px; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
/* ── Wetter ──────────────────────────────────────────────────────────────── */
.weather-section {
  margin-top: 1.5rem;
  background: #fff; border-radius: var(--radius-lg);
  box-shadow: var(--shadow); padding: 1rem 1.25rem;
}
.weather-header {
  font-weight: 700; font-size: .95rem; color: var(--gray-700);
  margin-bottom: .75rem;
}
.weather-cards {
  display: flex; gap: .75rem; flex-wrap: wrap;
}
.weather-card {
  flex: 1; min-width: 90px; max-width: 140px;
  background: var(--primary-light); border-radius: var(--radius);
  padding: .75rem .5rem; text-align: center;
}
.weather-day { font-size: .8rem; font-weight: 700; color: var(--gray-600); margin-bottom: .25rem; }
.weather-icon { font-size: 2rem; margin: .25rem 0; }
.weather-temp { font-size: .9rem; margin-bottom: .25rem; }
.temp-max { font-weight: 700; color: #DC2626; }
.temp-min { color: var(--gray-500); }
.weather-rain { font-size: .75rem; color: #3B82F6; }
.weather-loading { color: var(--gray-400); font-size: .9rem; padding: .5rem; }

.day-number {
  font-size: .8rem; font-weight: 600; color: var(--gray-700);
  width: 24px; height: 24px; display: flex; align-items: center; justify-content: center;
  margin-bottom: 3px;
}
.event-pill {
  display: block; font-size: .68rem; line-height: 1.3;
  padding: 2px 5px; border-radius: 4px; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-bottom: 2px; cursor: pointer; transition: filter .15s;
}
.event-pill:hover { filter: brightness(1.1); }
.more-label { font-size: .65rem; color: var(--gray-400); padding: 1px 4px; }

/* ═══════════════════════ WEEK / DAY VIEW ══════════════════════════════════ */
.wv-container {
  background: #fff; border-radius: var(--radius-lg);
  box-shadow: var(--shadow); border: 1px solid var(--gray-200);
  overflow: hidden; display: flex; flex-direction: column;
}

/* Header row */
.wv-head {
  display: flex; border-bottom: 2px solid var(--gray-200);
  background: var(--gray-50); position: sticky; top: 0; z-index: 20;
}
.wv-gutter {
  width: var(--gutter); flex-shrink: 0;
  border-right: 1px solid var(--gray-200);
}
.wv-day-head {
  flex: 1; padding: 8px 4px; text-align: center;
  border-right: 1px solid var(--gray-100); cursor: pointer;
}
.wv-day-head:hover { background: var(--primary-light); }
.wv-dow {
  display: block; font-size: .68rem; font-weight: 700;
  color: var(--gray-400); text-transform: uppercase; letter-spacing: .05em;
}
.wv-daynum {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; margin-top: 3px;
  font-size: 1rem; font-weight: 600; color: var(--gray-700);
  border-radius: 50%;
}
.wv-today-head .wv-daynum { background: var(--primary); color: #fff; }
.wv-today-head .wv-dow    { color: var(--primary); }

/* All-day strip */
.wv-allday {
  display: flex; border-bottom: 1px solid var(--gray-200);
  min-height: 30px;
}
.wv-allday-label {
  width: var(--gutter); flex-shrink: 0;
  border-right: 1px solid var(--gray-200);
  font-size: .65rem; color: var(--gray-400);
  display: flex; align-items: center; justify-content: center; padding: 4px;
}
.wv-allday-col {
  flex: 1; border-right: 1px solid var(--gray-100);
  padding: 3px; min-height: 30px;
}
.wv-ad-pill {
  display: block; font-size: .7rem; padding: 2px 6px; border-radius: 4px; color: #fff;
  cursor: pointer; margin-bottom: 2px; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; transition: filter .15s;
}
.wv-ad-pill:hover { filter: brightness(1.1); }

/* Scrollable body */
.wv-body-wrap {
  overflow-y: auto; max-height: calc(100vh - 310px); min-height: 300px;
  scroll-behavior: smooth;
}
.wv-body { display: flex; position: relative; }

/* Time labels */
.wv-times {
  width: var(--gutter); flex-shrink: 0;
  border-right: 1px solid var(--gray-200);
}
.wv-hour-label {
  height: var(--hour-h); display: flex; align-items: flex-start;
  justify-content: flex-end; padding: 3px 6px 0;
  font-size: .65rem; color: var(--gray-400);
  border-bottom: 1px solid var(--gray-100);
}

/* Day columns */
.wv-day-col {
  flex: 1; position: relative;
  border-right: 1px solid var(--gray-100);
}
.wv-today-col { background: rgba(79,70,229,.025); }

.wv-hour-slot {
  height: var(--hour-h); border-bottom: 1px solid var(--gray-100);
  cursor: pointer; transition: background .1s;
}
.wv-hour-slot:hover { background: var(--primary-light); }
.wv-half-line {
  position: absolute; left: 0; right: 0;
  height: 1px; background: var(--gray-100);
  pointer-events: none;
}

/* Events in week/day view */
.wv-event {
  position: absolute; left: 2px; right: 2px;
  border-radius: 5px; padding: 3px 6px;
  color: #fff; font-size: .72rem; line-height: 1.35;
  cursor: pointer; overflow: hidden; z-index: 3;
  border-left: 3px solid rgba(0,0,0,.2);
  transition: filter .15s; min-height: 22px;
  box-shadow: 0 1px 3px rgba(0,0,0,.15);
}
.wv-event:hover { filter: brightness(1.08); z-index: 4; }
.wv-ev-time { font-weight: 700; display: block; font-size: .68rem; }
.wv-ev-title { display: block; }

/* Current time indicator */
.wv-now-line {
  position: absolute; left: 0; right: 0; height: 2px;
  background: #EF4444; z-index: 10; pointer-events: none;
}
.wv-now-line::before {
  content: ''; position: absolute; left: -4px; top: -4px;
  width: 10px; height: 10px; background: #EF4444; border-radius: 50%;
}

/* ── Upcoming sidebar ───────────────────────────────────────────────────── */
.upcoming-sidebar {
  background: #fff; border-radius: var(--radius-lg);
  box-shadow: var(--shadow); padding: 1rem;
  border: 1px solid var(--gray-200);
}
.sidebar-header {
  font-size: .75rem; font-weight: 700; color: var(--gray-500);
  text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px;
}
.upcoming-item {
  padding: 9px 10px; border-radius: var(--radius);
  border-left: 3px solid var(--gray-300); background: var(--gray-50);
  margin-bottom: 7px; cursor: pointer; transition: background .1s;
}
.upcoming-item:hover { background: var(--gray-100); }
.upcoming-item-title { font-size: .85rem; font-weight: 500; }
.upcoming-item-meta  { font-size: .75rem; color: var(--gray-500); margin-top: 2px; }
.no-events { font-size: .85rem; color: var(--gray-400); text-align: center; padding: 1rem 0; }

/* ── Shopping ───────────────────────────────────────────────────────────── */
.shopping-topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.shopping-topbar h2 { font-size: 1.2rem; font-weight: 600; }
.add-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 1rem; margin-bottom: 1.25rem; }
.add-form input[type="text"] {
  flex: 1; min-width: 140px; padding: 8px 12px;
  border: 1px solid var(--gray-200); border-radius: var(--radius);
  font-size: .875rem; outline: none; transition: border-color .15s, box-shadow .15s;
}
.add-form input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79,70,229,.12); }
.add-form select {
  padding: 8px 10px; border: 1px solid var(--gray-200);
  border-radius: var(--radius); font-size: .875rem; background: #fff; outline: none; cursor: pointer;
}
.qty-input { max-width: 80px !important; flex: none !important; }
.card { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); border: 1px solid var(--gray-200); }

.shopping-group { margin-bottom: 1rem; }
.shopping-group-header {
  padding: 8px 14px; background: var(--gray-50);
  border-bottom: 1px solid var(--gray-100); font-size: .8rem; font-weight: 700; color: var(--gray-600);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.shopping-group-body { background: #fff; border-radius: 0 0 var(--radius-lg) var(--radius-lg); border: 1px solid var(--gray-200); border-top: none; }
.shop-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-bottom: 1px solid var(--gray-100); transition: background .1s;
}
.shop-item:last-child { border-bottom: none; }
.shop-item:hover { background: var(--gray-50); }
.shop-item.done { opacity: .55; }
.shop-item.done .item-name { text-decoration: line-through; color: var(--gray-400); }
.shop-item input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--primary); cursor: pointer; flex-shrink: 0; }
.item-name { flex: 1; font-size: .9rem; }
.item-qty  { font-size: .75rem; color: var(--gray-500); background: var(--gray-100); padding: 2px 8px; border-radius: 999px; }
.item-by   { font-size: .72rem; color: var(--gray-400); }
.item-del  {
  background: none; border: none; color: var(--gray-300);
  cursor: pointer; font-size: 1rem; border-radius: 4px; padding: 3px 5px;
  opacity: 0; transition: opacity .15s, color .15s, background .15s;
}
.shop-item:hover .item-del { opacity: 1; }
.item-del:hover { color: #DC2626; background: #FEE2E2; }

/* ── Settings ───────────────────────────────────────────────────────────── */
.settings-title { font-size: 1.2rem; font-weight: 600; margin-bottom: 1rem; }
.settings-card { padding: 1.25rem; max-width: 560px; margin-bottom: 1rem; }
.settings-card h3 { font-size: .95rem; font-weight: 600; margin-bottom: 1rem; color: var(--gray-700); }
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: .8rem; font-weight: 600; color: var(--gray-700); margin-bottom: 5px; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 8px 12px; border: 1px solid var(--gray-200);
  border-radius: var(--radius); font-size: .875rem; outline: none;
  transition: border-color .15s, box-shadow .15s; font-family: inherit;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79,70,229,.12); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hint { font-size: .75rem; color: var(--gray-500); margin-top: 5px; line-height: 1.4; }
.code-block {
  display: block; background: var(--gray-900); color: #34D399;
  padding: 10px 14px; border-radius: var(--radius);
  font-size: .78rem; margin-top: 6px; word-break: break-all; line-height: 1.5;
}

/* ── Modal ──────────────────────────────────────────────────────────────── */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 300; backdrop-filter: blur(2px); }
.modal {
  position: fixed; inset: 0; z-index: 400;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem; pointer-events: none;
}
.modal:not(.hidden) { pointer-events: auto; }
.modal-box {
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  width: 100%; max-width: 490px; max-height: 92vh; overflow-y: auto;
  animation: popIn .2s ease;
}
@keyframes popIn {
  from { opacity: 0; transform: scale(.95) translateY(8px); }
  to   { opacity: 1; transform: scale(1)  translateY(0); }
}
.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--gray-200);
  position: sticky; top: 0; background: #fff; z-index: 1;
}
.modal-head h3 { font-size: 1.05rem; font-weight: 600; }
.close-btn {
  background: var(--gray-100); border: none; font-size: 1.5rem;
  color: var(--gray-600); cursor: pointer; line-height: 1;
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.close-btn:hover { background: var(--gray-200); color: var(--gray-900); }
#event-form { padding: 20px; }
.modal-actions { display: flex; gap: 8px; padding-top: 14px; margin-top: 14px; border-top: 1px solid var(--gray-100); }

/* ── Toast ──────────────────────────────────────────────────────────────── */
.toast {
  position: fixed; bottom: 20px; right: 20px;
  background: var(--gray-900); color: #fff;
  padding: 10px 16px; border-radius: var(--radius);
  font-size: .875rem; z-index: 1000; box-shadow: var(--shadow-lg);
  animation: fadeUp .25s ease;
}
.toast.success { background: #059669; }
.toast.error   { background: #DC2626; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Wohnung Tab ─────────────────────────────────────────────────────────── */
.wohnung-header {
  text-align: center;
  margin-bottom: 1.5rem;
}
.wohnung-header h2 { font-size: 1.4rem; color: var(--gray-900); }
.wohnung-subtitle  { color: var(--gray-500); font-size: .9rem; margin-top: .25rem; }

.wohnung-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.wohnung-col { padding: 0; overflow: hidden; }

.wohnung-col-header {
  padding: .7rem 1rem;
  font-weight: 700;
  font-size: 1rem;
  border-bottom: 1px solid var(--gray-200);
}
.wohnung-col-header.pro    { background: #DCFCE7; color: #15803D; }
.wohnung-col-header.contra { background: #FEE2E2; color: #B91C1C; }
.wohnung-col-header.ideen  { background: #FEF9C3; color: #A16207; }

.add-note-form {
  display: flex;
  gap: .5rem;
  padding: .75rem 1rem;
  border-bottom: 1px solid var(--gray-100);
}
.note-input {
  flex: 1;
  padding: .45rem .7rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: .9rem;
  outline: none;
}
.note-input:focus { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary-light); }

.btn-note-add {
  width: 34px; height: 34px;
  border: none; border-radius: var(--radius);
  font-size: 1.2rem; font-weight: 700;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: opacity .15s;
}
.btn-note-add:hover { opacity: .8; }
.btn-note-add.pro    { background: #DCFCE7; color: #15803D; }
.btn-note-add.contra { background: #FEE2E2; color: #B91C1C; }
.btn-note-add.ideen  { background: #FEF9C3; color: #A16207; }

.note-list {
  list-style: none;
  padding: .5rem 0;
  margin: 0;
  min-height: 40px;
}
.note-item {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  padding: .55rem 1rem;
  font-size: .9rem;
  border-bottom: 1px solid var(--gray-100);
  animation: fadeIn .2s ease;
}
.note-item:last-child { border-bottom: none; }
.note-item-text { flex: 1; line-height: 1.4; }
.note-item-del {
  background: none; border: none; cursor: pointer;
  color: var(--gray-400); font-size: 1rem; padding: 0 2px;
  flex-shrink: 0; margin-top: 1px;
  transition: color .15s;
}
.note-item-del:hover { color: #EF4444; }

@media (max-width: 820px) {
  .wohnung-grid { grid-template-columns: 1fr; }
}

/* ── Utility ────────────────────────────────────────────────────────────── */
.hidden { display: none !important; }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .calendar-layout { grid-template-columns: 1fr; }
  .upcoming-sidebar { display: none; }
  .ctrl-sep { display: none; }
}
@media (max-width: 640px) {
  .tab { padding: 6px 10px; font-size: .8rem; }
  .logo { font-size: .95rem; }
  header { gap: 1rem; padding: 0 .75rem; }
  .tab-content { padding: 1rem .75rem; }
  .day-cell { min-height: 72px; padding: 3px; }
  .day-number { width: 28px; height: 28px; font-size: .85rem; }
  .form-row { grid-template-columns: 1fr; }
  .add-form { flex-direction: column; align-items: stretch; }
  .calendar-controls h2 { min-width: 130px; font-size: .95rem; }
  .btn-fc { font-size: .78rem; padding: 6px 8px; }
  .vt-btn { padding: 5px 10px; font-size: .8rem; }
  :root { --hour-h: 50px; }

  /* Full-screen modal on mobile */
  .modal { align-items: flex-end; padding: 0; }
  .modal-box {
    max-width: 100%; width: 100%; border-radius: 16px 16px 0 0;
    max-height: 92vh; overflow-y: auto;
  }

  /* Bigger, easier-to-hit close button */
  .modal-head { padding: 14px 16px; }
  .close-btn { width: 40px; height: 40px; font-size: 1.7rem; }

  /* Bigger tap targets */
  .nav-btn { width: 42px; height: 42px; font-size: 1.4rem; }
  .btn-primary, .btn-secondary, .btn-danger { padding: 10px 16px; font-size: .9rem; }
  .shop-item { padding: 14px; }
  .shop-item input[type="checkbox"] { width: 22px; height: 22px; }
  .event-pill { padding: 4px 6px; font-size: .72rem; margin-bottom: 3px; }
  .upcoming-item { padding: 12px; }

  /* Readability: bigger text, more breathing room */
  body { font-size: 16px; }
  .day-number { font-size: .9rem; }
  .wv-ev-title, .wv-ev-time { font-size: .78rem; }
  .upcoming-item-title { font-size: .9rem; }
  .upcoming-item-meta { font-size: .8rem; }
  .item-name { font-size: .95rem; }
  .weather-day, .weather-temp { font-size: .85rem; }
  .modal-head h3 { font-size: 1.15rem; }
  .form-group label { font-size: .85rem; }

  /* Prevent iOS Safari auto-zoom on focus (inputs need >=16px) */
  .form-group input,
  .form-group select,
  .form-group textarea,
  .add-form input,
  .add-form select,
  .note-input {
    font-size: 16px;
  }
}
