/* ============================================================
   base.css – Farbwelt, Typografie, globale Grundlagen
   ============================================================ */

:root {
  /* Flächen */
  --c-bg:          #ffffff;
  --c-canvas:      #f5f6f8;
  --c-surface:     #ffffff;
  --c-surface-2:   #fafbfc;
  --c-border:      #e4e7eb;
  --c-border-firm: #d3d8de;

  /* Text */
  --c-text:        #16191d;
  --c-text-soft:   #5c636e;
  --c-text-faint:  #8b929c;

  /* Akzent */
  --c-accent:      #2f6fed;
  --c-accent-dark: #2358c4;
  --c-accent-soft: #eaf1fe;
  --c-danger:      #d9453c;

  /* Zeichenfläche */
  --c-grid:        #e8eaee;
  --c-grid-strong: #d8dce2;
  --c-wall:        #2b3038;
  --c-room-fill:   rgba(47, 111, 237, 0.05);

  /* Maße */
  --r-sm: 6px;
  --r-md: 9px;
  --r-lg: 13px;

  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;

  --shadow-1: 0 1px 2px rgba(16, 20, 26, .06), 0 1px 3px rgba(16, 20, 26, .04);
  --shadow-2: 0 4px 16px rgba(16, 20, 26, .10), 0 1px 3px rgba(16, 20, 26, .06);
  --shadow-3: 0 18px 48px rgba(16, 20, 26, .18);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-num: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --topbar-h: 52px;
  --toolbar-w: 78px;
  --inspector-w: 322px;
  --status-h: 30px;
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
}

body {
  font-family: var(--font);
  font-size: 13px;
  line-height: 1.45;
  color: var(--c-text);
  background: var(--c-bg);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0 0 var(--sp-2); }

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button { cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

.icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.icon--brand { stroke-width: 1.5; color: var(--c-accent); }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

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