/* ════════════════════════════════════════════════════════════
   Club39 — Brand & Design System
   Geteiltes Stylesheet für Hub, Login, Day1 und alle Sub-Apps
   ════════════════════════════════════════════════════════════ */

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

/* ─── Design Tokens ─── */
:root {
  /* Colors */
  --vdark:    #1E1E23;
  --dark:     #2A2A2F;
  --rail:     #14141A;
  --panel:    #2E2E38;
  --surface:  #38384A;
  --warm:     #6D6B70;
  --accent:   #8E4A62;  /* Burgund/Rosé — Brand */
  --amber:    #F2CC6E;  /* Akzent-Gold */
  --green:    #4A9E82;  /* Erfolg */
  --red:      #D46B6B;  /* Fehler */

  /* Text colors (opacity-based on white) */
  --c1: rgba(255,255,255,0.96);
  --c2: rgba(255,255,255,0.78);
  --c3: rgba(255,255,255,0.55);
  --c4: rgba(255,255,255,0.38);
  --c5: rgba(255,255,255,0.18);
  --c6: rgba(255,255,255,0.08);

  /* Fonts */
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono:  'JetBrains Mono', 'Courier New', monospace;

  /* Spacing */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;

  /* Misc */
  --radius: 4px;
  --transition: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ─── Base ─── */
html, body {
  background: var(--vdark);
  color: var(--c1);
  font-family: var(--sans);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body { min-height: 100vh; }

/* ─── Typography ─── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--c1);
}

p {
  line-height: 1.75;
  color: var(--c2);
  font-weight: 300;
}

a {
  color: var(--amber);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ─── Eyebrow ─── */
.eyebrow {
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--amber);
}

/* ─── Brand mark ─── */
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}
.brand:hover { text-decoration: none; }
.brand-main {
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--c1);
}
.brand-tag {
  font-family: var(--sans);
  font-size: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--amber);
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  border: none;
  color: #fff;
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 16px 32px;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
  border-radius: 0;
}
.btn:hover {
  background: #a35573;
  color: #fff;
  text-decoration: none;
}
.btn:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}
.btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}
.btn.btn-ghost {
  background: none;
  border: 1px solid var(--c5);
  color: var(--c2);
}
.btn.btn-ghost:hover {
  background: rgba(255,255,255,0.04);
  border-color: var(--c2);
  color: var(--c1);
}
.btn.btn-block { width: 100%; }

/* ─── Inputs ─── */
.input {
  display: block;
  width: 100%;
  background: transparent;
  border: 1px solid var(--c5);
  color: var(--c1);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 400;
  padding: 14px 16px;
  outline: none;
  transition: border-color var(--transition);
  border-radius: 0;
}
.input::placeholder {
  color: var(--c4);
  font-style: italic;
  font-weight: 300;
}
.input:focus { border-color: var(--accent); }

/* ─── Cards ─── */
.card {
  background: var(--panel);
  border: 1px solid var(--c5);
  padding: var(--s-6);
  transition: all var(--transition);
}
.card.card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.card.card-link:hover {
  border-color: var(--accent);
  text-decoration: none;
}
.card.card-locked {
  opacity: 0.65;
}

/* ─── Layout helpers ─── */
.wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: var(--s-8) var(--s-5);
}
.wrap-narrow {
  max-width: 540px;
  margin: 0 auto;
  padding: var(--s-8) var(--s-5);
}

/* ─── Topbar ─── */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  background: var(--vdark);
  border-bottom: 1px solid var(--c6);
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* ─── Status / Lock indicators ─── */
.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}
.dot.locked { background: var(--c4); }

.lock-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--c5);
  border-radius: 50%;
  color: var(--c3);
  font-size: 0.85rem;
}

/* ─── Notes / Hints ─── */
.note {
  background: rgba(142,74,98,0.1);
  border-left: 2px solid var(--accent);
  padding: 14px 18px;
  font-size: 0.88rem;
  color: var(--c2);
  line-height: 1.7;
}

/* ─── Loading state ─── */
.loading {
  display: inline-block;
  width: 1em;
  height: 1em;
  border: 2px solid var(--c5);
  border-top-color: var(--amber);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Sig ─── */
.sig {
  font-family: var(--serif);
  font-style: italic;
  color: var(--c3);
  font-size: 1.15rem;
  font-weight: 300;
}

/* ─── Form helpers ─── */
.field { margin-bottom: var(--s-5); }
.field-label {
  display: block;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c1);
  margin-bottom: var(--s-2);
}
.field-hint {
  display: block;
  font-size: 0.82rem;
  color: var(--c3);
  margin-top: var(--s-2);
  line-height: 1.6;
  font-weight: 300;
}
.field-error {
  display: block;
  font-size: 0.82rem;
  color: var(--red);
  margin-top: var(--s-2);
  line-height: 1.6;
}
.field-success {
  display: block;
  font-size: 0.82rem;
  color: var(--green);
  margin-top: var(--s-2);
  line-height: 1.6;
}

/* ─── Section dividers ─── */
.rule {
  width: 36px;
  height: 1px;
  background: var(--c5);
}
.rule.rule-amber { background: var(--amber); opacity: 0.5; }
.rule.rule-accent { background: var(--accent); opacity: 0.6; }

/* ─── Mobile ─── */
@media (max-width: 700px) {
  .topbar { padding: 14px 20px; }
  .wrap, .wrap-narrow { padding: var(--s-6) var(--s-4); }
  .brand-tag { display: none; }
  .btn { padding: 14px 24px; }
}
