/* BlackPearl Design Tokens v1 */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;500;600&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Farben */
  --bg: #050505;
  --bg-elev: #0c0c0c;
  --bg-card: #141414;
  --gold: #c9a961;
  --gold-soft: #8a7542;
  --gold-bright: #e6c98a;
  --text: #f5f1e6;
  --text-mute: #b0b0b8;
  --text-dim: #70707a;
  --text-faint: #454550;
  --line: rgba(201,169,97,.18);
  --line-soft: rgba(255,255,255,.06);
  --ok: #7cc88f;
  --warn: #e6b450;
  --err: #e07a7a;

  /* Typografie */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --fs-xs: 11px;
  --fs-sm: 13px;
  --fs-md: 14px;
  --fs-lg: 16px;
  --fs-xl: 20px;
  --fs-2xl: 28px;
  --fs-3xl: 36px;
  --fs-4xl: 48px;
  --tracking: .02em;
  --tracking-wide: .18em;

  /* Abstände */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 20px;
  --s-6: 24px;
  --s-8: 32px;
  --s-10: 40px;

  /* Radien */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 24px;
  --r-full: 999px;

  /* Schatten */
  --shadow-sm: 0 2px 8px rgba(0,0,0,.4);
  --shadow-md: 0 12px 28px rgba(0,0,0,.5);
  --shadow-lg: 0 30px 60px rgba(0,0,0,.55);

  /* Layout */
  --topbar-h: 64px;
  --bottomnav-h: 72px;
  --sidebar-w: 260px;

  /* Animation */
  --ease: cubic-bezier(.4,0,.2,1);
  --dur-fast: .15s;
  --dur: .25s;
  --dur-slow: .4s;

  /* Safe Areas */
  --safe-t: env(safe-area-inset-top);
  --safe-b: env(safe-area-inset-bottom);
  --safe-l: env(safe-area-inset-left);
  --safe-r: env(safe-area-inset-right);
}

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

html, body {
  height: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-md);
  line-height: 1.5;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  padding-top: var(--safe-t);
  padding-bottom: var(--safe-b);
  padding-left: 0;
  padding-right: 0;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

button {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

a {
  color: var(--gold);
  text-decoration: none;
}

img, svg {
  display: block;
  max-width: 100%;
}

ul, ol {
  list-style: none;
}

/* Display-Headlines */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: var(--tracking);
  line-height: 1.1;
}

.display-gold {
  background: linear-gradient(180deg, var(--gold-bright), var(--gold) 50%, var(--gold-soft));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Frosted Glass Utility */
.glass {
  background: rgba(12,12,12,.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line-soft);
}

/* Cards */
.card {
  background: linear-gradient(180deg, var(--bg-card), var(--bg-elev));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  box-shadow: var(--shadow-md);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: var(--s-3) var(--s-5);
  border-radius: var(--r-md);
  font-weight: 500;
  font-size: var(--fs-md);
  letter-spacing: var(--tracking);
  transition: all var(--dur) var(--ease);
  min-height: 44px;
}

.btn-gold {
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  color: var(--bg);
}

.btn-gold:active {
  transform: scale(.97);
  filter: brightness(.92);
}

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--text);
}

.btn-ghost:active {
  background: rgba(201,169,97,.08);
}

/* Topbar */
.topbar {
  position: sticky;
  top: 0;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  padding: 0 var(--s-5);
  z-index: 100;
}

/* Bottom Nav */
.bottomnav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: calc(var(--bottomnav-h) + var(--safe-b));
  padding-bottom: var(--safe-b);
  display: flex;
  z-index: 90;
}

/* Labels / Captions */
.caption {
  font-size: var(--fs-xs);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--text-dim);
}

/* Loading dot */
.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ok);
  margin-right: var(--s-2);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,100% { opacity: 1; }
  50% { opacity: .4; }
}

/* Responsive */
@media (min-width: 1024px) {
  .bottomnav { display: none; }
  body { padding-left: var(--sidebar-w); }
}
