/* Worldwise Design-Prototypen — gemeinsames Fundament.
   Jede Richtung liefert ihre Tokens in directions/<slug>/tokens.css;
   dieses File stellt nur Reset, iPhone-Rahmen und Preview-Chrome. */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body, -apple-system, system-ui, sans-serif);
  background: #d7d9de;
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 40px;
  padding: 48px 24px;
  flex-wrap: wrap;
}

:root[data-theme="dark"] body { background: #1a1c22; }

img { display: block; max-width: 100%; }
button { font: inherit; border: none; background: none; cursor: pointer; }

/* ---- iPhone-Rahmen (402×874 pt, iPhone 17 Pro) ---- */

.phone {
  width: 402px;
  height: 874px;
  border-radius: 58px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  box-shadow: 0 24px 60px rgba(0,0,0,.35), 0 0 0 10px #0b0b0c, 0 0 0 12px #3a3a3e;
  background: var(--background, #fff);
}

.screen {
  position: absolute;
  inset: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Statusleiste */
.statusbar {
  height: 54px;
  flex-shrink: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 32px 6px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary, #000);
  font-family: -apple-system, system-ui, sans-serif;
  position: relative;
  z-index: 40;
}

.statusbar .island {
  position: absolute;
  top: 11px; left: 50%;
  transform: translateX(-50%);
  width: 124px; height: 36px;
  border-radius: 20px;
  background: #000;
}

.statusbar .icons { display: flex; gap: 6px; align-items: center; letter-spacing: -1px; }

/* Home-Indicator */
.home-indicator {
  position: absolute;
  bottom: 8px; left: 50%;
  transform: translateX(-50%);
  width: 140px; height: 5px;
  border-radius: 3px;
  background: var(--text-primary, #000);
  opacity: .32;
  z-index: 40;
  pointer-events: none;
}

/* ---- Preview-Chrome (außerhalb des Telefons) ---- */

.preview-toggle {
  position: fixed;
  top: 14px; right: 14px;
  z-index: 100;
  padding: 8px 16px;
  border-radius: 999px;
  background: #0b0b0c;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  font-family: -apple-system, system-ui, sans-serif;
  box-shadow: 0 4px 14px rgba(0,0,0,.3);
}

.preview-label {
  position: fixed;
  top: 18px; left: 18px;
  z-index: 100;
  font-family: -apple-system, system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #555;
}

:root[data-theme="dark"] .preview-label { color: #aaa; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
