/* ── Reset & Grundlagen ───────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: var(--fs-base);
    line-height: 1.55;
    color: var(--text-normal);
    background: var(--bg-app);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, p, figure { margin: 0; }

h1 { font-size: var(--fs-2xl); font-weight: 700; color: var(--text-strong); letter-spacing: -0.021em; line-height: 1.15; }
h2 { font-size: var(--fs-xl); font-weight: 700; color: var(--text-strong); letter-spacing: -0.018em; }
h3 { font-size: var(--fs-lg); font-weight: 600; color: var(--text-strong); letter-spacing: -0.011em; }

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

button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }

/* FontAwesome durchgaengig light; einheitliche Strichstaerke/Groesse */
.fa-light, [class*="fa-"] { font-weight: 300; }
svg[class*="fa-"] { vertical-align: -0.08em; }

::selection { background: var(--petrol-100); color: var(--ink); }

.mono { font-family: var(--font-mono); font-feature-settings: "tnum"; letter-spacing: -0.01em; }

/* Scrollbars dezent */
* { scrollbar-width: thin; scrollbar-color: var(--slate-300) transparent; }
*::-webkit-scrollbar { width: 11px; height: 11px; }
*::-webkit-scrollbar-thumb { background: var(--slate-300); border-radius: 999px; border: 3px solid transparent; background-clip: padding-box; }
*::-webkit-scrollbar-thumb:hover { background: var(--slate-400); }

/* ── Hilfsklassen ─────────────────────────────────────────────────── */
.muted { color: var(--text-muted); }
.faint { color: var(--text-faint); }
.text-sm { font-size: var(--fs-sm); }
.text-xs { font-size: var(--fs-xs); }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }

.row { display: flex; align-items: center; gap: var(--sp-3); }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); }
.col { display: flex; flex-direction: column; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.gap-2 { gap: var(--sp-2); } .gap-3 { gap: var(--sp-3); } .gap-4 { gap: var(--sp-4); }

.stack > * + * { margin-top: var(--sp-4); }
.stack-sm > * + * { margin-top: var(--sp-2); }

.hidden { display: none !important; }

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
