/* ==========================================================
   W20 KULTISTEN – Design-Tokens (Homepage + Mitgliederbereich)
   Hell als Standard, Dunkel automatisch oder per Schalter.
   ========================================================== */

@font-face { font-family: 'Bricolage Grotesque'; font-weight: 600; font-display: swap; src: url('../fonts/bricolage-grotesque-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Bricolage Grotesque'; font-weight: 700; font-display: swap; src: url('../fonts/bricolage-grotesque-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Bricolage Grotesque'; font-weight: 800; font-display: swap; src: url('../fonts/bricolage-grotesque-latin-800-normal.woff2') format('woff2'); }
@font-face { font-family: 'Cinzel'; font-weight: 700; font-display: swap; src: url('../fonts/cinzel-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter';  font-weight: 400; font-display: swap; src: url('../fonts/inter-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter';  font-weight: 500; font-display: swap; src: url('../fonts/inter-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter';  font-weight: 600; font-display: swap; src: url('../fonts/inter-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter';  font-weight: 700; font-display: swap; src: url('../fonts/inter-latin-700-normal.woff2') format('woff2'); }

:root {
  --display: 'Bricolage Grotesque', 'Inter', system-ui, sans-serif;
  --sans:    'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --brand:   'Cinzel', Georgia, serif;

  --r-sm: 10px;
  --r:    14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --ease: cubic-bezier(.2,.7,.2,1);

  /* ── Hell ── */
  color-scheme: light;
  --bg:        #f6f4f0;
  --bg-2:      #eeeae3;
  --surface:   #ffffff;
  --surface-2: #f7f4ef;
  --surface-3: #ede8e0;
  --input-bg:  #ffffff;
  --line:      #e6e1d9;
  --line-2:    #d3ccc1;

  --text:      #2b2734;
  --text-h:    #16131d;
  --muted:     #6b6578;
  --muted-2:   #4f4a5c;
  --fg-rgb:    22 19 29;

  --accent:      #5b3fd6;
  --accent-h:    #4a2fc2;
  --accent-rgb:  91 63 214;
  --accent-text: #4c32c4;
  --on-accent:   #ffffff;

  --gold:      #d6a434;
  --gold-text: #8a6512;
  --gold-rgb:  214 164 52;

  --danger:      #d64545;
  --danger-text: #b42828;
  --danger-rgb:  214 69 69;
  --success:      #1f9d6b;
  --success-text: #137a50;
  --success-rgb:  31 157 107;
  --teal:      #158f86;
  --teal-text: #0f6f68;
  --teal-rgb:  21 143 134;
  --warn-text: #9a6100;
  --warn-rgb:  224 150 20;
  --info:      #2f74d0;
  --info-rgb:  47 116 208;
  --orange:    #e8833a;

  --nav-bg:    rgb(255 255 255 / .82);
  --shadow-sm: 0 1px 2px rgb(22 19 29 / .05), 0 2px 10px rgb(22 19 29 / .04);
  --shadow:    0 14px 34px -14px rgb(22 19 29 / .20);
  --shadow-lg: 0 28px 70px -24px rgb(22 19 29 / .30);
}

/* ── Dunkel (Gerät) ── */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0e0c13; --bg-2: #13111a; --surface: #1a1723; --surface-2: #221e2d; --surface-3: #2a2537; --input-bg: #12101a;
    --line: #2f2a3d; --line-2: #443d57;
    --text: #e4e0ee; --text-h: #faf8ff; --muted: #a29bb6; --muted-2: #c3bdd3; --fg-rgb: 250 248 255;
    --accent: #9b85ff; --accent-h: #b3a2ff; --accent-rgb: 155 133 255; --accent-text: #b8a9ff; --on-accent: #120c26;
    --gold: #e6bf5a; --gold-text: #ecc96e; --gold-rgb: 230 191 90;
    --danger: #ef5b5b; --danger-text: #ff8a80; --danger-rgb: 239 91 91;
    --success: #3fc38d; --success-text: #6fdcae; --success-rgb: 63 195 141;
    --teal: #34b3a9; --teal-text: #6fd6cd; --teal-rgb: 52 179 169;
    --warn-text: #f0b444; --info: #5b9cf0; --info-rgb: 91 156 240; --orange: #f39a52;
    --nav-bg: rgb(14 12 19 / .78);
    --shadow-sm: 0 1px 2px rgb(0 0 0 / .4);
    --shadow:    0 16px 40px -16px rgb(0 0 0 / .7);
    --shadow-lg: 0 30px 80px -24px rgb(0 0 0 / .8);
  }
}
/* ── Dunkel (Schalter) ── */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0e0c13; --bg-2: #13111a; --surface: #1a1723; --surface-2: #221e2d; --surface-3: #2a2537; --input-bg: #12101a;
  --line: #2f2a3d; --line-2: #443d57;
  --text: #e4e0ee; --text-h: #faf8ff; --muted: #a29bb6; --muted-2: #c3bdd3; --fg-rgb: 250 248 255;
  --accent: #9b85ff; --accent-h: #b3a2ff; --accent-rgb: 155 133 255; --accent-text: #b8a9ff; --on-accent: #120c26;
  --gold: #e6bf5a; --gold-text: #ecc96e; --gold-rgb: 230 191 90;
  --danger: #ef5b5b; --danger-text: #ff8a80; --danger-rgb: 239 91 91;
  --success: #3fc38d; --success-text: #6fdcae; --success-rgb: 63 195 141;
  --teal: #34b3a9; --teal-text: #6fd6cd; --teal-rgb: 52 179 169;
  --warn-text: #f0b444; --info: #5b9cf0; --info-rgb: 91 156 240; --orange: #f39a52;
  --nav-bg: rgb(14 12 19 / .78);
  --shadow-sm: 0 1px 2px rgb(0 0 0 / .4);
  --shadow:    0 16px 40px -16px rgb(0 0 0 / .7);
  --shadow-lg: 0 30px 80px -24px rgb(0 0 0 / .8);
}

/* Theme-Schalter (beide Bereiche) */
.theme-toggle {
  display: inline-grid; place-items: center; flex-shrink: 0;
  width: 40px; height: 40px; padding: 0 !important; border-radius: 999px !important;
  background: var(--surface) !important; color: var(--text-h) !important;
  border: 1px solid var(--line) !important; cursor: pointer; box-shadow: none !important;
  transition: border-color .2s, transform .2s;
}
.theme-toggle:hover { border-color: var(--accent) !important; transform: rotate(-12deg); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .i-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .i-sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .i-moon { display: block; }
}
