/**
 * bon-base.css — Foundation for alle BonTools
 * Reset, design tokens, utility classes
 */

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

/* ── Design Tokens ──────────────────────────── */
:root {
  /* Brand */
  --brand-gold: #c9a227;
  --brand-gold-light: #d4af37;
  --brand-brown: #8e631f;
  --brand-brown-light: #a67c3d;

  /* Status (universelle) */
  --success: #27ae60;
  --error: #e74c3c;
  --warning: #f39c12;
  --info: #3498db;

  /* Spacing */
  --radius: 8px;
  --radius-lg: 12px;
  --radius-sm: 4px;
}

/* ── Body defaults ──────────────────────────── */
body {
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Utility classes ────────────────────────── */
.hidden { display: none !important; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Alert/status badges ────────────────────── */
.badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  font-weight: 600;
  width: fit-content;
}

.badge-success { background: rgba(39, 174, 96, 0.15); color: #4ade80; }
.badge-error   { background: rgba(231, 76, 60, 0.15); color: #f87171; }
.badge-warning { background: rgba(243, 156, 18, 0.15); color: #fbbf24; }
.badge-info    { background: rgba(52, 152, 219, 0.15); color: #60a5fa; }

/* ── Alerts ─────────────────────────────────── */
.alert {
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
}

.alert-success { background: rgba(39, 174, 96, 0.15); color: #4ade80; }
.alert-error   { background: rgba(231, 76, 60, 0.15); color: #f87171; }
.alert-info    { background: rgba(52, 152, 219, 0.15); color: #60a5fa; }
.alert-warning { background: rgba(243, 156, 18, 0.15); color: #fbbf24; }

/* ── Buttons (base) ─────────────────────────── */
.btn {
  padding: 0.5rem 0.85rem;
  border: none;
  border-radius: var(--radius);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--brand-gold);
  color: #1a1206;
}

.btn-primary:hover { filter: brightness(1.1); }

/* ── Animations ─────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
