/* PartyGuard Grundlagen: Schriften, Farben, Basis-Komponenten. Von Auth-Seiten und Startseite gemeinsam genutzt. */
@font-face {
  font-family: 'PG Display';
  src: url('../fonts/partyguard/montserrat-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'PG Text';
  src: url('../fonts/partyguard/inter-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #0b0b0c;
  --surface: #161617;
  --surface-2: #1e1e20;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f5f5f4;
  --text-muted: #9b9b9f;
  --accent: var(--pg-accent, #fc0000);  /* Akzentfarbe des Clubs (Layouts setzen --pg-accent aus tenant.accent); Rückfall PartyGuard-Rot */
  --accent-soft: color-mix(in srgb, var(--accent) 12%, transparent);
  --danger: #fc0000;            /* Fehlerfarbe bleibt rot, egal welche Clubfarbe */
  --danger-soft: rgba(252, 0, 0, 0.12);
  --ok: #3ddc84;
  --ink: #f5f5f4;
  --ink-text: #0b0b0c;
  --radius: 14px;
  --radius-sm: 11px;
  --font-display: 'PG Display', 'Montserrat', system-ui, sans-serif;
  --font-text: 'PG Text', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --shadow-pop: 0 24px 60px rgba(0, 0, 0, 0.45);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-text);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }

.pg-wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 26px;
  letter-spacing: -0.025em;
  line-height: 1;
  color: inherit;
  text-decoration: none;
}
.pg-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.pg-link {
  border: 0;
  background: none;
  padding: 0;
  color: var(--text-muted);
  font: inherit;
  font-size: 13.5px;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.25);
  text-underline-offset: 3px;
  cursor: pointer;
}
.pg-link:hover { color: var(--text); text-decoration-color: currentColor; }

/* Button */
.pg-btn {
  display: inline-flex;
  text-decoration: none;
  white-space: nowrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 46px;
  border: 1px solid var(--ink);
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: var(--ink-text);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}
.pg-btn:hover { background: color-mix(in srgb, var(--ink) 86%, var(--bg)); }
.pg-btn:active { transform: translateY(1px); }
.pg-btn:disabled { opacity: 0.6; cursor: progress; }
.pg-btn svg { width: 17px; height: 17px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pg-input:focus-visible { outline: 0; }

/* Meldungen */
.pg-alert {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 11px 13px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  font-size: 13.5px;
  line-height: 1.45;
}
.pg-alert::before {
  content: '';
  flex: none;
  width: 8px;
  height: 8px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--text-muted);
}
.pg-alert-danger, .pg-alert-error { border-color: rgba(252, 0, 0, 0.45); background: var(--danger-soft); }
.pg-alert-danger::before, .pg-alert-error::before { background: var(--danger); }
.pg-alert-success { border-color: rgba(61, 220, 132, 0.4); background: rgba(61, 220, 132, 0.08); }
.pg-alert-success::before { background: var(--ok); }
.pg-alert-warning::before { background: #f2c94c; }

/* Button-Varianten */
.pg-btn.is-inline { width: auto; padding: 0 20px; }
.pg-btn-ghost {
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}
.pg-btn-ghost:hover { background: rgba(255, 255, 255, 0.09); }
.pg-btn-sm { height: 38px; font-size: 14px; }
