/* ==========================================================================
   00_tokens.css – Design Tokens only
   Only Custom Properties. No layout rules, no selectors with real CSS rules
   other than these token containers.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Global tokens (scheme-independent)
   -------------------------------------------------------------------------- */
:root {
  /* Accent palette */
  --book-accent:        #2b4460;
  --book-accent-2:      #4e95d9;
  --book-title-accent:      #7ab0e8;  /* Site title accent – light/muted (dark mode) */
  --book-title-accent-dark: #2f6fb3;  /* Site title accent – rich (light mode) */

  /* Border radius */
  --book-radius:        14px;
  --book-radius-sm:     8px;

  /* Shadows */
  --book-shadow:        0 2px 8px rgba(0, 0, 0, 0.08);
  --book-shadow-md:     0 4px 16px rgba(0, 0, 0, 0.12);

  /* Focus ring */
  --book-focus:         0 0 0 3px rgba(78, 149, 217, 0.35);

  /* Spacing scale */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 1rem;
  --s-4: 1.5rem;
  --s-5: 2.5rem;

  /* Admonition tint mix ratios (scheme-independent) */
  --book-adm-tint-light: 93%;
  --book-adm-tint-dark:  90%;

  /* ── Text highlights (inline / flow) ──────────────────────────────────── */
  --book-impuls-tint-light: 92%;   /* bg tint: book-bg + book-accent */
  --book-impuls-tint-dark:  88%;   /* bg tint: book-surface-1 + book-accent */
  --book-impuls-fg-mix:     85%;   /* text: color-mix(book-fg VAL, book-accent) */

  /* ── Weiterlesen tint mix ratios (paper-tint, extrem subtil) ──────────── */
  --book-weiterlesen-tint-light: 90%;   /* Anteil book-bg in paper-mix */
  --book-weiterlesen-tint-dark:  92%;   /* Anteil book-surface-1 in paper-mix */
  --book-paper:                  #fbfaf8; /* paper-weiß für Background-Tints */
}

/* --------------------------------------------------------------------------
   Light mode tokens  (scheme = default)
   -------------------------------------------------------------------------- */
body[data-md-color-scheme="default"] {
  --book-bg:            #f7f6f3;
  --book-surface-1:     #eeecea;
  --book-surface-2:     #e3e0db;
  --book-fg:            #1c1c1c;
  --book-muted:         #5a5855;
  --book-border:        #d5d2cc;
  --book-border-strong: #bcb9b4;
  --book-accent:        #2b4460;
  --book-accent-strong: #3a5a7a;
  --nav-active-bg:      rgba(43, 68, 96, 0.10);
  --nav-hover-bg:       rgba(43, 68, 96, 0.06);
  --code-bg:            #ece9e4;
  --code-inline-bg:     rgba(0, 0, 0, 0.05);
  --book-link:          #2b4460;
  --book-link-hover:    #4e95d9;
  --book-link-dark:     #1e324a;
  --hairline-color:     rgba(0, 0, 0, 0.08);

  /* ── Standard admonitions (MkDocs Material built-ins, minimal override) ── */
  --book-adm-info:           #1a6d8e;
  --book-adm-note:           #2b4460;
  --book-adm-success:        #27a577;
  --book-adm-warning:        #8a5f18;
  --book-adm-danger:         #8a2020;
  --book-adm-details:        #4e95d9;

  /* ── Custom admonitions (project-specific) ──────────────────────────────── */
  --book-adm-context:        #2b5f78;
  --book-adm-regel:          #2e6440;
  --book-adm-tip:            #1e7a4e;
  --book-adm-praxis:         #7a4e18;
  --book-adm-hoermal:        #4f6b88;
  --book-adm-expand: #3f6a72;
  --book-adm-expand-tint:    #d9d4c8;  /* decorative tint, not the accent */
  --book-adm-oton:           #7a2e52;
  --book-adm-cite:           #e6eaeb;
  --book-adm-weiterlesen:    #1c1a20;  /* near-black neutral for icon + border-left */

  /* Material/Zensical accent mapping – keep UI consistent with book palette */
  --md-accent-fg-color: var(--book-accent);
  --md-typeset-a-color: var(--book-link);
}

/* --------------------------------------------------------------------------
   Dark mode tokens  (scheme = slate)
   -------------------------------------------------------------------------- */
body[data-md-color-scheme="slate"] {
  --book-bg:            #1a1d22;
  --book-surface-1:     #20242b;
  --book-surface-2:     #262b34;
  --book-fg:            #e7e9ee;
  --book-muted:         rgba(231, 233, 238, 0.74);
  --book-border:        rgba(255, 255, 255, 0.10);
  --book-border-strong: rgba(255, 255, 255, 0.16);
  --book-accent:        #7ab0e8;
  --book-accent-strong: #9cc9f3;
  --book-accent-2:      #5a9fd4;
  --nav-active-bg:      rgba(122, 176, 232, 0.14);
  --nav-hover-bg:       rgba(122, 176, 232, 0.09);
  --code-bg:            #15171c;
  --code-inline-bg:     rgba(255, 255, 255, 0.06);
  --book-link:          #7ab0e8;
  --book-link-hover:    #a8ccf0;
  --book-link-dark:     #5a96d8;
  --hairline-color:     rgba(255, 255, 255, 0.08);

  /* ── Standard admonitions (MkDocs Material built-ins, minimal override) ── */
  --book-adm-info:           #5ab0d0;
  --book-adm-note:           #7ab0e8;
  --book-adm-success:        #3dbf8a;
  --book-adm-warning:        #c49040;
  --book-adm-danger:         #c45050;
  --book-adm-details:        #7ab0e8;

  /* ── Custom admonitions (project-specific) ──────────────────────────────── */
  --book-adm-context:        #5a9ab8;
  --book-adm-regel:          #5aa870;
  --book-adm-tip:            #4aad78;
  --book-adm-praxis:         #c48840;
  --book-adm-hoermal:        #82a4c7;
  --book-adm-expand:         #9a88c4;
  --book-adm-expand-tint:    #3a3832;  /* decorative tint, not the accent */
  --book-adm-oton:           #c078a0;
  --book-adm-cite:           #706e6c;
  --book-adm-weiterlesen:    #c8c6d4;  /* near-white neutral for icon + border-left */

  /* Material/Zensical accent mapping – keep UI consistent with book palette */
  --md-accent-fg-color: var(--book-accent);
  --md-typeset-a-color: var(--book-link);
}
