/* VIA ARTIS Basis */

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

html {
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
  background: var(--tiefgruen);
}

body {
  margin: 0;
  background: var(--knochen);
  color: var(--text);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Feine Papierkörnung über allem */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.08;
  margin: 0;
}

em { font-style: italic; }

p { margin: 0; }

a { color: inherit; }

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

::selection { background: var(--korall); color: var(--knochen); }

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

.sichtbar-nur-sr {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 100;
  background: var(--tiefgruen);
  color: var(--knochen);
  padding: .6rem 1.2rem;
  border-radius: 999px;
  text-decoration: none;
  transform: translate3d(0, -140%, 0);
  transition: transform var(--schnell) var(--kurve);
}
.skip:focus { transform: translate3d(0, 0, 0); }

/* Jede Seite des Bildbands */
.blatt {
  position: relative;
  min-height: 100dvh;
  scroll-snap-align: start;
  scroll-snap-stop: normal;
  overflow: hidden;
  display: flex;
  align-items: center;
}

/* Lange Inhalte dürfen frei fließen */
.blatt--frei {
  scroll-snap-align: start;
  min-height: 100dvh;
  height: auto;
}

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