:root {
  --ordner: #f6cf8b;
  --ordner-hinten: #efc27a;
  --kontur: #5a3b24;
  --papier: #f3ece0;
  --grund: #2b3324;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  color: var(--papier);
  font-family: Georgia, "Times New Roman", serif;
  background: var(--grund);
}

/* Hintergrund: Bild sofort, Schwarm blendet darüber ein. Fängt keine Gesten ab. */
.buehne {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: var(--grund) url("fische/hintergrund.webp") center / cover no-repeat;
}
.buehne canvas {
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.9s ease;
}
.buehne.laeuft canvas { opacity: 1; }

main { position: relative; }

.oben {
  height: 100vh;
  height: 100svh;
  scroll-snap-align: start;
  position: relative;
}

.unsichtbar {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Hinweis „da ist mehr": drei Striche am unteren Rand */
.hinweis {
  position: absolute;
  left: 50%;
  bottom: calc(18px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: grid;
  gap: 5px;
  padding: 14px 18px;
  border-radius: 12px;
  transition: opacity 0.4s ease;
}
.hinweis span {
  display: block;
  width: 34px;
  height: 3px;
  border-radius: 2px;
  background: var(--papier);
  opacity: 0.8;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.45);
}
.hinweis.weg { opacity: 0; pointer-events: none; }
.hinweis:focus-visible { outline: 2px solid var(--papier); outline-offset: 2px; }

.unten {
  scroll-snap-align: end;
  min-height: 42vh;
  display: flex;
  align-items: flex-end;
  padding: 48px 16px calc(40px + env(safe-area-inset-bottom));
  background: linear-gradient(to bottom, rgba(20, 24, 16, 0), rgba(20, 24, 16, 0.55) 45%, rgba(20, 24, 16, 0.7));
}

.unten nav { width: 100%; }

.ordnerreihe {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  width: min(100%, 72rem);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px 36px;
}

.ordner {
  display: grid;
  justify-items: center;
  gap: 8px;
  color: var(--papier);
  text-decoration: none;
  border-radius: 10px;
  padding: 6px;
}
.ordner svg {
  width: clamp(88px, 18vw, 132px);
  height: auto;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.35));
  transition: transform 0.25s ease;
}
.ordner span {
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}
.ordner:hover svg, .ordner:focus-visible svg { transform: translateY(-4px); }
.ordner:focus-visible { outline: 2px solid var(--papier); outline-offset: 4px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .buehne canvas, .hinweis, .ordner svg { transition: none; }
}
