/* ============================================================
   Produktions-Overrides: die Prototyp-CSS (styles.css) enthielt ein
   Geräte-Mockup (Handy-/Tablet-Rahmen mit Kerbe, Kamera-Punkt, manuell
   umschaltbaren iPhone/iPad-Klassen) für die Stakeholder-Vorschau. In der
   echten App läuft die Seite direkt im Safari-Vollbild bzw. als
   "Zum Home-Bildschirm hinzufügen"-Icon, daher hier: Rahmen entfernen und
   das Sidebar/Tabbar-Umschalten an echte Fensterbreiten statt an eine
   manuell gesetzte Klasse koppeln.
   ============================================================ */

html, body { height: 100%; margin: 0; }
body {
  background: var(--color-bg);
  overflow: hidden;
}

.stage { display: block; }

.frame {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  background: var(--color-bg);
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
  transition: none;
}

.frame .screen-glass {
  border-radius: 0;
  width: 100%;
  height: 100%;
}

.notch, .camera-dot { display: none !important; }
.statusbar { display: none !important; }

/* Mobil zuerst: Tabbar unten, keine Seitenleiste. */
.sidebar { display: none; }
.tabbar { display: flex; }
.screen-glass { flex-direction: column; }

/* Ab Tablet-Breite: feste Seitenleiste statt Tabbar (entspricht dem
   bisherigen ".frame.ipad"-Verhalten, jetzt an die echte Fensterbreite
   gekoppelt statt an einen Vorschau-Schalter). */
@media (min-width: 860px) {
  .frame .screen-glass { flex-direction: row; }
  .sidebar { display: flex; }
  .tabbar { display: none; }
  .fab { bottom: var(--space-5); }
  .toast { bottom: 24px; }
}

.frame.auth .sidebar, .frame.auth .tabbar { display: none !important; }

/* Der Login-Bildschirm braucht kein Gerätefenster-Feeling mehr. */
.login-screen { justify-content: center; min-height: 100%; }

/* Monatsansicht im Kalender */
.month-weekday-row, .month-cells { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.month-weekday-row { font-size: 10px; font-weight: 700; text-transform: uppercase; color: var(--color-text-muted); text-align: center; margin-bottom: 4px; }
.day-cell { aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border-radius: var(--radius-md); border: 1px solid var(--color-border); background: var(--color-surface); font-size: var(--text-sm); }
.day-cell.other-month { opacity: 0.35; }
.day-cell.blocked { background: var(--color-neutral-highlight); border-style: dashed; }
.day-cell.today .day-cell-num { color: #fff; background: var(--color-primary); width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.day-cell .day-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--color-primary); }
.day-cell .day-dot.hidden { background: transparent; }
