/* =============================================================================
   xilox.de – UI-Relaunch 2026 · base.css (Phase 0)
   -----------------------------------------------------------------------------
   Poppins @font-face (self-hosted, fonts/poppins/), Body-Basis, Eyebrow,
   Utilities, Scrollbar, Fokus-Ringe.
   Lade-Reihenfolge: tokens.css → base.css → layout-*.css → components.css
   ============================================================================= */

/* --- 1. Poppins · self-hosted (Google Fonts v24, latin + latin-ext) ---------- */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../../fonts/poppins/poppins-300-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../../fonts/poppins/poppins-300-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../../fonts/poppins/poppins-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../../fonts/poppins/poppins-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../../fonts/poppins/poppins-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../../fonts/poppins/poppins-500-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../../fonts/poppins/poppins-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../../fonts/poppins/poppins-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --- 2. Body-Basis ----------------------------------------------------------- */
body {
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: var(--text-body-size);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  color: var(--text-primary);
}

a {
  color: var(--accent-text);
  text-decoration: none;
  transition: color var(--transition-fast);
}
/* Bootstrap-4-Reboot setzt a:hover{text-decoration:underline} (höhere Spezifität als das obere a{}) →
   global abschwächen. Einzelne Links mit bewusstem Underline (z. B. .campaign-summary .summary-link)
   überschreiben das über höhere Spezifität weiterhin. */
a:hover {
  color: var(--accent);
  text-decoration: none;
}

/* --- 3. Typo-Helfer ------------------------------------------------------------ */
.eyebrow {
  display: block;
  font-size: var(--text-eyebrow-size);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .22em;
  color: var(--text-muted);
}

h1.hero-title,
.hero h1 {
  font-size: var(--text-hero-size);
  font-weight: 600;
  line-height: 1.05;
}

.section-title {
  font-size: var(--text-section-size);
  font-weight: 600;
  line-height: 1.2;
}

.page-header h1,
.app-page-header h1 {
  font-size: var(--text-page-h1-size);
  font-weight: 600;
  line-height: 1.15;
}

.subline {
  color: var(--text-secondary);
  font-size: var(--text-body-size);
}

/* --- 4. Utilities ---------------------------------------------------------------- */
.text-accent {
  color: var(--accent-text) !important;
}
/* Akzent-Text (stark, für Werte wie Benutzer-ID/Guthaben in Panels) */
.accent-strong {
  color: var(--accent-text);
  font-weight: 600;
}
.muted, .text-muted-v2 {
  color: var(--text-secondary) !important;
}
.mono-num {
  font-variant-numeric: tabular-nums;
  letter-spacing: .01em;
}

/* --- 5. Scrollbar (dunkel) ---------------------------------------------------------- */
html {
  scrollbar-color: #2A3648 var(--bg-base); /* Firefox */
}
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-sidebar);
}
::-webkit-scrollbar-thumb {
  background: #2A3648;
  border-radius: var(--radius-chip);
  border: 2px solid var(--bg-sidebar);
}
::-webkit-scrollbar-thumb:hover {
  background: #37455C;
}

/* --- 6. Fokus-Ringe -------------------------------------------------------------------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Lucide-Icons vererben die Textfarbe (stroke="currentColor") */
.lucide, svg.lucide {
  flex-shrink: 0;
  vertical-align: middle;
}
