/* ═══════════════════════════════════════════════════════════════════════════
   base.css — Reset, Typografie, Utilities
   ═══════════════════════════════════════════════════════════════════════════ */

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

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

body {
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.5;
  background: var(--bg);
  color: var(--text);
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}

img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
a { color: var(--gold-bright); text-decoration: none; }

h1, h2, h3 { font-weight: 600; line-height: 1.25; }

::selection { background: var(--gold-alpha-40); }

/* Scrollbars dezent */
* { scrollbar-width: thin; scrollbar-color: var(--surface-3) transparent; }
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 4px; }
*::-webkit-scrollbar-track { background: transparent; }

/* Fokus sichtbar, aber nur bei Tastatur */
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
:focus:not(:focus-visible) { outline: none; }

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

.page-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.65rem;
  letter-spacing: .01em;
}

.text-dim   { color: var(--text-dim); }
.text-faint { color: var(--text-faint); }
.mono       { font-family: var(--font-mono); }

.empty-state {
  text-align: center;
  color: var(--text-faint);
  padding: 40px 16px;
  font-size: .9rem;
}
.empty-state .empty-icon { font-size: 2rem; display: block; margin-bottom: 10px; opacity: .6; }

.skeleton {
  background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 50%, var(--surface-2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: var(--radius-sm);
  min-height: 16px;
}
@keyframes shimmer { to { background-position: -200% 0; } }

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