/* Minimaler Reset – domain-unabhängig */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  /* iOS: Textgröße beim Drehen nicht automatisch hochskalieren */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-family);
  font-size: var(--font-size-md);
  color: var(--text-normal);
  background: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  /* iOS: kein "Rubber-Band"-Mitscrollen der ganzen Seite und kein
     graues Aufblitzen / Doppeltipp-Zoom beim Antippen von Buttons. */
  overscroll-behavior: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

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

/* iOS rendert type="search" sonst mit abgerundeter Systemoptik und
   ignoriert eigene Paddings/Hintergründe. */
input[type="search"] {
  -webkit-appearance: none;
  appearance: none;
}

input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

a {
  color: var(--text-link);
  text-decoration: none;
}

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

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--bg-tertiary);
  border-radius: var(--radius-sm);
}
