/*
 * Modern CSS Reset — minimal, opinionated.
 * Voraussetzung: tokens.css ist vorher geladen (für :focus-visible Outline-Farbe).
 */

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

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

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

button {
  background: none;
  border: none;
  cursor: pointer;
}

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

a {
  color: inherit;
  text-decoration-skip-ink: auto;
}

ul,
ol {
  padding-inline-start: 1.5em;
}

ul[role='list'],
ol[role='list'] {
  list-style: none;
  padding-inline-start: 0;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

:focus-visible {
  outline: 3px solid var(--enchase-accent);
  outline-offset: 2px;
  border-radius: var(--enchase-radius-sm);
}

:focus:not(:focus-visible) {
  outline: none;
}

[hidden] {
  display: none !important;
}
