/* ============================================================
   XRechnungen – Reset & Base Styles
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }
html { overflow-x: clip; } /* clip statt hidden: kein Scroll-Container -> position:sticky funktioniert */
body { overflow-x: clip; }

body {
    font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg);
    color: var(--fg);
    line-height: 1.5;
    font-size: 1rem;    /* scales with html font-size -- A-/A/A+ control */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Global link colours (auto dark/light via --primary).
   Hinweis: KEIN a:visited-Recolor -- das ueberschrieb wegen Spezifitaet (0,1,1)
   Komponenten-Links (Nav, Cards, Steps) und faerbte sie nach Besuch im Akzent.
   Besuchte Links bleiben in der normalen Linkfarbe. (DESIGN_SYSTEM section 20) */
a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}
a:hover { color: var(--primary-hover); }

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