/* ===== Basis: Variablen, Reset, Buttons ===== */
:root {
  --bg: #111318;
  --surface: #1a1d24;
  --surface-2: #232731;
  --line: #2c313c;
  --text: #eceef2;
  --muted: #9097a6;
  --accent: #ffb400;
  --accent-ink: #1a1400;
  --danger: #ff6b6b;
  --radius: 12px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

a { color: var(--accent); }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

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

/* Buttons */
.btn {
  border: 1px solid var(--line);
  background: var(--surface-2);
  border-radius: var(--radius);
  padding: 12px 18px;
  font-weight: 600;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
}
.btn:hover { background: #2b303c; border-color: #3a404d; }
.btn:active { transform: scale(0.98); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 800; }
.btn.primary:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; }

.ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 0.82rem;
  font-weight: 600;
  transition: color 0.15s, border-color 0.15s;
}
.ghost:hover { color: var(--text); border-color: #454c5b; }
.ghost.danger:hover { color: var(--danger); border-color: var(--danger); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
