/* =================================================================
   UXOVIA · RESET & BASE
   Box-sizing reset, base element styling, the atmospheric mesh
   background, and the .container / .section / .sr-only utilities.
   ================================================================= */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
/* scroll-behavior auto, nicht smooth: das Scrollen fuehrt JavaScript, ueber
   ankerscroll.js und Lenis (assets/softscroll.js). Steht CSS-Smooth zusaetzlich
   an, animiert der Browser jeden JS-Frame nach und es ruckelt. Stand bis zum
   21.08.2026 nur im <style>-Block der Startseite, gilt seither fuer alle. */
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }

/* Basis-CSS fuer Lenis. Die Klassen setzt Lenis selbst; ohne Lenis greift
   nichts davon. Lag bis 21.08.2026 als <style>-Block in index.html. */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-smooth iframe { pointer-events: none; }

body {
  font-family: var(--font-body);
  font-size: var(--t-body);
  line-height: var(--lh-body);
  letter-spacing: var(--tr-body);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  /* dvh statt vh: auf dem Telefon aendert sich die Fensterhoehe, sobald die
     Adressleiste ein- oder ausfaehrt. Mit vh springt das Layout dabei. */
  min-height: 100dvh;

  /* atmospheric mesh background, fixed to viewport */
  background-image: var(--gradient-mesh);
  background-attachment: fixed;
  background-color: var(--bg);
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: var(--w-medium);
  letter-spacing: var(--tr-h);
  line-height: var(--lh-h);
  color: var(--text);
}

p { margin: 0; color: var(--text-2); }
a { color: inherit; text-decoration: none; }

img, svg, video { display: block; max-width: 100%; }

button, input, select, textarea { font: inherit; color: inherit; }

::selection { background: var(--brand); color: #fff; }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ─────────────────── Layout utilities ─────────────────── */
.container        { width: 100%; max-width: var(--container);        margin-inline: auto; padding-inline: var(--gutter); }
.container-narrow { width: 100%; max-width: var(--container-narrow); margin-inline: auto; padding-inline: var(--gutter); }
.container-tight  { width: 100%; max-width: var(--container-tight);  margin-inline: auto; padding-inline: var(--gutter); }

.section { padding-block: var(--section-y); }

.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;
}
