/* Grundstil „Inlay“: Seite, Schrift, Typografie-Stufen, Fokus, Hilfsklassen */

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: var(--fs-text);
    font-weight: 400;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-variant-numeric: tabular-nums;
}
button, input, select, textarea { font-family: inherit; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { font-weight: 600; hyphens: manual; overflow-wrap: break-word; }
a { color: inherit; }
::selection { background: var(--accent); color: var(--on-accent); }

/* Fokus sichtbar, aber nur bei Tastatur */
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* Typografie-Stufen (Designsystem) */
.t-number  { font-size: var(--fs-number);  font-weight: 600; line-height: 1;    letter-spacing: -3px; }
.t-display { font-size: var(--fs-display); font-weight: 600; line-height: 1.05; letter-spacing: -1.5px; }
.t-title1  { font-size: var(--fs-title1);  font-weight: 600; line-height: 1.1;  letter-spacing: -0.6px; }
.t-title2  { font-size: var(--fs-title2);  font-weight: 600; line-height: 1.15; letter-spacing: -0.3px; }
.t-title3  { font-size: var(--fs-title3);  font-weight: 500; line-height: 1.2; }
.t-large   { font-size: var(--fs-large);   font-weight: 400; line-height: 1.45; }
.t-text    { font-size: var(--fs-text);    line-height: 1.5; }
.t-small   { font-size: var(--fs-small);   line-height: 1.45; }
.label     { font-size: var(--fs-label);   font-weight: 600; line-height: 1.3; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-muted); }
.muted     { color: var(--text-muted); }
.accent    { color: var(--accent); }
.strong    { font-weight: 600; }

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

/* Seitenrahmen: Inhalt mittig mit Seitenrand */
.page {
    width: 100%;
    max-width: calc(var(--page-max) + 2 * var(--pad-page));
    margin: 0 auto;
    padding: 0 var(--pad-page);
}
.stack { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; }
.wrap { flex-wrap: wrap; }
.gap-1 { gap: var(--s1); } .gap-2 { gap: var(--s2); } .gap-3 { gap: var(--s3); } .gap-4 { gap: var(--s4); }
.gap-5 { gap: var(--s5); } .gap-6 { gap: var(--s6); } .gap-7 { gap: var(--s7); }
.grow { flex: 1 1 auto; min-width: 0; }
.spacer { flex: 1 1 auto; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
