/* =========================================================================
   QUADRONET Base - Reset
   Nur das Noetige. Kein max-width auf Absaetzen: das gehoert in den
   Lesebereich (.qn-text), nicht in jede Tabellenzelle und jede Karte.
   ========================================================================= */

@layer qn.reset {
  *, *::before, *::after { box-sizing: border-box; }
  * { margin: 0; padding: 0; }

  html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    tab-size: 4;
    /* Ankerspruenge landen nicht unter einer stehenden Kopfleiste.
       Den Wert setzt base.js aus der tatsaechlichen Hoehe. */
    scroll-padding-top: var(--qn-ankerabstand, 0px);
  }

  body {
    min-height: 100svh;
    font-family: var(--qn-schriftfamilie);
    font-size: var(--qn-groesse-text);
    line-height: var(--qn-zeile-normal);
    color: var(--qn-schrift);
    background: var(--qn-flaeche);
    -webkit-font-smoothing: antialiased;
  }

  img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
    height: auto;
  }

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

  p, h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; }

  ul[role="list"], ol[role="list"] { list-style: none; }

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