/* =========================================================
   Restart Galerie – Unterwasser-Look
   Die Farben --water-top / --water-bottom sowie --shimmer
   und --depth werden in main.js beim Scrollen gesetzt.
   ========================================================= */

:root {
  /* Startwerte (ganz oben = flaches, helles Wasser) */
  --water-top: #96e7ff;
  --water-bottom: #4fbae8;
  --shimmer: 1;   /* 1 = voller Lichtschein, 0 = aufgelöst */
  --depth: 0;     /* 0 = Oberfläche, 1 = tiefste Stelle    */

  --text: #eaf6ff;
  --text-muted: rgba(234, 246, 255, 0.72);
  --panel-bg: rgba(4, 26, 48, 0.34);
  --panel-border: rgba(255, 255, 255, 0.16);

  --font-base: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --header-h: 68px;
}

/* Selbst gehostete Schrift – nicht von Google geladen, damit beim
   Seitenaufruf keine Besucher-IP dorthin uebertragen wird.
   Great Vibes steht unter der SIL Open Font License,
   der Lizenztext liegt daneben in assets/fonts/GreatVibes-OFL.txt */
@font-face {
  font-family: 'Great Vibes';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/GreatVibes-Regular.ttf') format('truetype');
}

* { box-sizing: border-box; }

/* Muss vor allem anderen stehen: sonst gewinnt ein display:flex
   gegen das hidden-Attribut und versteckte Elemente bleiben sichtbar. */
[hidden] { display: none !important; }

html {
  background: #051a30;          /* Fallback, falls JS noch nicht lief */
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: transparent;
  font-family: var(--font-base);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* =========================================================
   Hintergrund
   ========================================================= */

.ocean {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

/* --- Grundfarbe: hellblau oben, dunkelblau in der Tiefe --- */
.ocean__water {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--water-top) 0%, var(--water-bottom) 100%);
}

/* --- Lichtpaket: Oberflächenglanz, Lichtschein, Schimmer --- */
.ocean__light {
  position: absolute;
  inset: 0;
  opacity: var(--shimmer);
  will-change: opacity;
}

/* heller Schein direkt unter der Wasseroberfläche */
.ocean__surface {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 55vh;
  background:
    linear-gradient(180deg,
      rgba(255, 255, 255, 0.55) 0%,
      rgba(255, 255, 255, 0.22) 28%,
      rgba(255, 255, 255, 0.00) 100%);
  animation: surfacePulse 7s ease-in-out infinite alternate;
}

@keyframes surfacePulse {
  from { opacity: 0.75; transform: translateY(-1.5%); }
  to   { opacity: 1;    transform: translateY(1.5%); }
}

/* --- Lichtstrahlen (Godrays) --- */
.rays {
  position: absolute;
  inset: 0;
}

.ray {
  position: absolute;
  top: -35vh;
  width: clamp(50px, 9vw, 150px);
  height: 150vh;
  transform-origin: top center;
  filter: blur(22px);
  background: linear-gradient(180deg,
    rgba(255, 255, 255, 0.42) 0%,
    rgba(214, 245, 255, 0.16) 40%,
    rgba(255, 255, 255, 0.00) 78%);
  animation: raySway 11s ease-in-out infinite alternate;
}

.ray:nth-child(1) { left:  4%; --tilt:  10deg; animation-duration: 13s; animation-delay: -1s;  opacity: .85; }
.ray:nth-child(2) { left: 21%; --tilt:  -6deg; animation-duration:  9s; animation-delay: -4s;  opacity: .65; }
.ray:nth-child(3) { left: 39%; --tilt:  14deg; animation-duration: 15s; animation-delay: -7s;  opacity: .9;  }
.ray:nth-child(4) { left: 58%; --tilt:  -3deg; animation-duration: 10s; animation-delay: -2s;  opacity: .7;  }
.ray:nth-child(5) { left: 74%; --tilt:  -12deg; animation-duration: 14s; animation-delay: -9s; opacity: .8;  }
.ray:nth-child(6) { left: 89%; --tilt:   7deg; animation-duration: 12s; animation-delay: -5s;  opacity: .6;  }

@keyframes raySway {
  from { transform: rotate(var(--tilt)) translateX(-2.5vw) scaleX(0.85); }
  to   { transform: rotate(var(--tilt)) translateX(2.5vw)  scaleX(1.25); }
}

/* --- Wasserschimmer (Caustics) --- */
.caustics {
  position: absolute;
  inset: 0;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.55) 45%, transparent 85%);
          mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.55) 45%, transparent 85%);
}

.caustics__layer {
  position: absolute;
  inset: -25%;
  background-repeat: repeat;
}

.caustics__layer--a {
  filter: blur(12px);
  opacity: 0.85;
  background-image:
    radial-gradient(closest-side circle at 30% 32%, rgba(255,255,255,0.55), rgba(255,255,255,0)),
    radial-gradient(closest-side circle at 72% 58%, rgba(198,244,255,0.45), rgba(255,255,255,0)),
    radial-gradient(closest-side circle at 48% 86%, rgba(255,255,255,0.38), rgba(255,255,255,0));
  background-size: 380px 300px, 250px 210px, 320px 250px;
  animation: causticsA 26s linear infinite;
}

.caustics__layer--b {
  filter: blur(20px);
  opacity: 0.55;
  background-image:
    radial-gradient(closest-side circle at 60% 40%, rgba(255,255,255,0.42), rgba(255,255,255,0)),
    radial-gradient(closest-side circle at 22% 74%, rgba(176,236,255,0.36), rgba(255,255,255,0));
  background-size: 540px 420px, 300px 260px;
  animation: causticsB 37s linear infinite;
}

@keyframes causticsA {
  from { background-position:    0px    0px,    0px    0px,    0px    0px; }
  to   { background-position:  380px -300px, -250px  210px,  320px -250px; }
}

@keyframes causticsB {
  from { background-position:    0px    0px,    0px    0px; }
  to   { background-position: -540px  420px,  300px -260px; }
}

/* --- Canvas-Ebenen: #life (Taucher + Fische), darüber #bubbles --- */
.ocean__layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* --- Vignette, die mit der Tiefe zunimmt --- */
.ocean__vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 90% at 50% 25%, rgba(0,0,0,0) 35%, rgba(0,0,0,0.55) 100%);
  opacity: calc(0.15 + var(--depth) * 0.75);
}

/* =========================================================
   Kopfzeile
   ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: var(--header-h);
  background: rgba(4, 26, 48, 0.30);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.logo {
  flex: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--text);
  text-shadow: 0 1px 8px rgba(0, 20, 40, 0.5);
}

/* Das Logo ist ein Quadrat mit schwarzen Ecken – rund beschneiden */
.logo__mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.22),
              0 2px 12px rgba(0, 20, 40, 0.45);
}

.site-nav {
  display: flex;
  gap: 0.25rem;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.site-nav::-webkit-scrollbar { display: none; }

.site-nav a {
  position: relative;
  flex: none;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color 0.25s ease, background-color 0.25s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.site-nav a.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
}

/* =========================================================
   Inhalt
   ========================================================= */

main {
  position: relative;
  z-index: 1;
  /* Der Parallax schiebt Karten und Tafeln seitlich aus dem Bild.
     Ohne das Beschneiden bekäme die Seite eine waagerechte Bildlaufleiste.
     "clip" statt "hidden", weil hidden hier einen Scrollbereich erzeugt. */
  overflow-x: hidden;
  overflow-x: clip;
}

.hero {
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100dvh - var(--header-h));
  display: flex;
  align-items: center;
  text-align: center;
}

.hero__inner { padding-block: 4rem; }

/* Restart [Logo] Galerie – dasselbe wie im Header, nur groß */
.hero__wordmark {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.6rem, 2vw, 1.4rem);
  margin: 0 0 1.5rem;
  font-size: clamp(0.8rem, 2.4vw, 1.25rem);
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 2px 14px rgba(0, 40, 70, 0.55);
}

.hero__logo {
  width: clamp(92px, 17vw, 168px);
  height: clamp(92px, 17vw, 168px);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25),
              0 10px 44px rgba(0, 30, 60, 0.55);
}

/* .hero__title und .scroll-hint werden seit dem 11.10.2026 nicht mehr
   benutzt: "Tauch ein" und der Scroll-Hinweis sind aus index.html
   herausgenommen worden, an ihrer Stelle steht jetzt die Erde.
   Die Regeln bleiben stehen, falls die Zeilen wiederkommen sollen. */
.hero__title {
  margin: 0;
  font-size: clamp(2.75rem, 11vw, 6.5rem);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #fff;
  text-shadow: 0 4px 40px rgba(0, 45, 80, 0.55);
}

.scroll-hint {
  margin-top: 3rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}

.scroll-hint__dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 0.7em;
  border-radius: 50%;
  background: #fff;
  vertical-align: middle;
  animation: hintDrift 2.2s ease-in-out infinite;
}

@keyframes hintDrift {
  0%, 100% { transform: translateY(-4px); opacity: 0.4; }
  50%      { transform: translateY(4px);  opacity: 1; }
}

.chapter {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding-block: 4rem;
}

.chapter__inner {
  display: flex;
  flex-direction: column;
  gap: clamp(2.5rem, 6vw, 5rem);
}

/* Wo die Tafel im Bild sitzt */
.chapter[data-align="left"]   .panel-anchor { align-self: flex-start; }
.chapter[data-align="center"] .panel-anchor { align-self: center; }
.chapter[data-align="right"]  .panel-anchor { align-self: flex-end; }

.panel {
  max-width: 38rem;
  /* Parallax setzt transform/opacity/filter in main.js */
  will-change: transform, opacity;
  padding: clamp(1.5rem, 4vw, 2.75rem);
  border-radius: 20px;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  backdrop-filter: blur(16px) saturate(115%);
  -webkit-backdrop-filter: blur(16px) saturate(115%);
  box-shadow: 0 24px 60px rgba(0, 20, 45, 0.28);
}

.panel__index {
  margin: 0 0 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.35em;
  color: rgba(255, 255, 255, 0.55);
}

.panel h2 {
  margin: 0 0 0.9rem;
  font-size: clamp(1.7rem, 5.5vw, 2.6rem);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
}

.panel p:last-child {
  margin: 0;
  color: var(--text-muted);
}

/* Die Kapitelüberschrift aus dem Galeriebuch. Dort steht sie in einer
   geschwungenen Schrift unter der Kapitelnummer – das greift Great Vibes auf. */
.panel__sub {
  margin: 0;
  font-family: 'Great Vibes', 'Segoe Script', 'Apple Chancery', cursive;
  font-size: clamp(1.5rem, 4.5vw, 2.4rem);
  line-height: 1.25;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 2px 16px rgba(0, 25, 50, 0.6);
}

/* Kapitel 3: die Überschrift „Eine versteckte Quelle der Weisheit“ leuchtet
   goldgelb und pulsiert langsam wie ein Licht. Wer in den Einstellungen
   „Bewegung reduzieren“ gewählt hat, sieht ein ruhiges Leuchten ohne Pulsieren. */
.panel__sub--leuchtet {
  color: #fff3c9;
  text-shadow:
    0 0 8px rgba(255, 224, 140, 0.7),
    0 0 22px rgba(255, 196, 80, 0.5),
    0 2px 16px rgba(0, 25, 50, 0.6);
  animation: quelle-pulsiert 3.4s ease-in-out infinite;
}

@keyframes quelle-pulsiert {
  0%, 100% {
    color: #fff0bd;
    text-shadow:
      0 0 6px rgba(255, 220, 130, 0.55),
      0 0 16px rgba(255, 190, 80, 0.35),
      0 2px 16px rgba(0, 25, 50, 0.6);
  }
  50% {
    color: #ffffff;
    text-shadow:
      0 0 12px rgba(255, 240, 180, 1),
      0 0 32px rgba(255, 205, 95, 0.85),
      0 0 64px rgba(255, 170, 60, 0.6),
      0 2px 16px rgba(0, 25, 50, 0.6);
  }
}

@media (prefers-reduced-motion: reduce) {
  .panel__sub--leuchtet {
    animation: none;
  }
}

/* =========================================================
   Vorwort und Vita (Über mich)
   ========================================================= */

.vita {
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 5vw, 3.5rem);
  width: 100%;
}

.vita-slot { display: flex; }
.vita-slot--links  { justify-content: flex-start; }
.vita-slot--rechts { justify-content: flex-end; }

.vita__karte {
  max-width: 38rem;
  padding: clamp(1.4rem, 3.5vw, 2.4rem);
  border-radius: 20px;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  backdrop-filter: blur(16px) saturate(115%);
  -webkit-backdrop-filter: blur(16px) saturate(115%);
  box-shadow: 0 24px 60px rgba(0, 20, 45, 0.28);
  will-change: transform, opacity;
}

.vita__karte h3 {
  margin: 0 0 1rem;
  font-family: 'Great Vibes', 'Segoe Script', 'Apple Chancery', cursive;
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 400;
  line-height: 1;
  color: #fff;
  text-shadow: 0 2px 16px rgba(0, 25, 50, 0.6);
}

.vita__karte p {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

.vita__karte p:last-child { margin-bottom: 0; }

.vita__jahre {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem 1.1rem;
  margin: 1.4rem 0 0;
}

.vita__jahre dt {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #fff;
  white-space: nowrap;
}

.vita__jahre dd {
  margin: 0;
  color: var(--text-muted);
}

@media (max-width: 720px) {
  .vita-slot--links,
  .vita-slot--rechts { justify-content: center; }
  .vita__karte { max-width: 100%; }
  .vita__jahre { grid-template-columns: 1fr; gap: 0.2rem; }
  .vita__jahre dd { margin-bottom: 0.8rem; }
}

.chapter[data-width="narrow"] .panel { max-width: 30rem; }
.chapter[data-width="wide"]   .panel { max-width: 46rem; }

/* =========================================================
   Bilderwand
   ========================================================= */

.gallery:not(.is-filled) { display: none; }

/* Ausgerichtete Reihen statt gleich breiter Spalten.

   Jede Kachel bekommt von gallery.js ihr echtes Seitenverhaeltnis als
   --ar. Weil flex-grow und flex-basis beide daran haengen, teilen sich
   die Kacheln einer Reihe die Breite genau im Verhaeltnis ihrer Bilder
   -- und bekommen dadurch alle dieselbe Hoehe. Ein Panorama wird breit,
   ein Hochformat schmal, und keines wird beschnitten oder verzerrt.

   Wie viele nebeneinander stehen, ergibt sich von selbst: mal zwei,
   mal fuenf. --zeilenhoehe gibt nur die angepeilte Hoehe vor. */
.gallery__grid {
  --zeilenhoehe: clamp(9rem, 15vw, 14rem);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: clamp(2rem, 4vw, 3.25rem) clamp(1.25rem, 2.5vw, 2.25rem);
}

/* Zwei Bilder, die zusammen in einer Reihe stehen sollen. Der
   Container nimmt die volle Breite und laesst nicht umbrechen -- die
   beiden schrumpfen lieber gemeinsam, als auseinanderzufallen. Weil
   sie dabei im Verhaeltnis ihrer flex-basis schrumpfen und die wiederum
   am Seitenverhaeltnis haengt, bleiben sie gleich hoch. */
.gallery__paar {
  flex: 0 0 100%;
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: clamp(1.25rem, 2.5vw, 2.25rem);
}

/* Faengt den Rest der letzten Reihe ab. Ohne das wuerden zwei
   uebrig gebliebene Bilder auf die volle Breite auseinandergezogen. */
.gallery__grid::after {
  content: "";
  flex: 1000000 0 0;
  height: 0;
}

/* Der Platzhalter steht still – an ihm misst der Parallax in main.js.
   Ohne ihn wuerde die Kachel ihren eigenen Messwert verschieben. */
.artwork-slot {
  display: block;
  min-width: 0;
  flex-grow: var(--ar, 1);
  flex-shrink: 1;
  flex-basis: calc(var(--ar, 1) * var(--zeilenhoehe));

  /* Deckel gegen den Klassiker dieser Anordnung: Bleibt ein Bild als
     einziges in seiner Reihe uebrig, wuerde es sonst auf die volle
     Breite wachsen -- ein Quadrat waere ploetzlich so hoch wie der
     Bildschirm. Mehr als knapp das Doppelte der Zeilenhoehe darf
     deshalb keine Kachel werden. */
  max-width: calc(var(--ar, 1) * var(--zeilenhoehe) * 1.9);
}

.artwork {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  text-align: center;
  cursor: pointer;
  will-change: transform, opacity;
}

.artwork:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.8);
  outline-offset: 8px;
  border-radius: 4px;
}

/* Der Blubber: jede Kachel schwebt in ihrem eigenen Takt.
   Liegt eine Ebene tiefer als der Parallax, damit sich die
   beiden Bewegungen nicht gegenseitig ueberschreiben. */
.artwork__float {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  animation: blubber var(--dur, 7s) ease-in-out var(--delay, 0s) infinite alternate;
}

@keyframes blubber {
  from { transform: translateY(0); }
  to   { transform: translateY(calc(var(--lift, 10px) * -1)); }
}

.artwork:hover .artwork__float,
.artwork:focus-visible .artwork__float {
  animation-play-state: paused;
}

/* Nur das Bild – kein Rahmen, keine Aufhaengung.
   Der Schatten liegt auf dem Bild selbst, damit Freisteller
   mit Transparenz nicht in einem Kasten stehen. */
.artwork__shot {
  position: relative;
  display: block;
  transition: filter 0.3s ease, transform 0.3s ease;
  filter: drop-shadow(0 16px 26px rgba(0, 12, 28, 0.5));
}

.artwork:hover .artwork__shot,
.artwork:focus-visible .artwork__shot {
  filter: drop-shadow(0 20px 34px rgba(0, 12, 28, 0.62)) brightness(1.1);
  transform: scale(1.03);
}

.artwork__shot img {
  display: block;
  width: 100%;
  height: auto;
}

/* aufsteigende Blasen beim Überfahren */
.artwork__blubber {
  position: absolute;
  inset: 0;
  overflow: visible;
  pointer-events: none;
}

.artwork__blubber span {
  position: absolute;
  bottom: 6%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  opacity: 0;
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,0.85), rgba(255,255,255,0.12) 70%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.artwork__blubber span:nth-child(1) { left: 18%; width: 6px;  height: 6px;  }
.artwork__blubber span:nth-child(2) { left: 50%; width: 10px; height: 10px; }
.artwork__blubber span:nth-child(3) { left: 79%; width: 7px;  height: 7px;  }

.artwork:hover .artwork__blubber span,
.artwork:focus-visible .artwork__blubber span {
  animation: blubberSteigt 2.4s ease-in infinite;
}

.artwork:hover .artwork__blubber span:nth-child(2) { animation-delay: 0.55s; }
.artwork:hover .artwork__blubber span:nth-child(3) { animation-delay: 1.15s; }

@keyframes blubberSteigt {
  0%   { transform: translateY(0)      translateX(0);    opacity: 0; }
  12%  {                                                 opacity: 0.9; }
  50%  { transform: translateY(-60px)  translateX(7px);  opacity: 0.75; }
  100% { transform: translateY(-125px) translateX(-5px); opacity: 0; }
}

.artwork__label {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  line-height: 1.35;
}

.artwork__title {
  font-size: 0.86rem;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 10px rgba(0, 20, 40, 0.6);
}

.artwork__size {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.6);
  font-variant-numeric: tabular-nums;
}

/* =========================================================
   Art Legacy – Schriftzug, Logo und Gitterkugel (Kapitel 4)
   ========================================================= */

.artlegacy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 2rem);
  width: 100%;
}

.artlegacy__marke {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.artlegacy__marke:hover,
.artlegacy__marke:focus-visible {
  transform: translateY(-5px);
}

.artlegacy__logo {
  width: clamp(185px, 33vw, 310px);
  height: auto;
  filter: drop-shadow(0 14px 30px rgba(0, 15, 35, 0.6));
}

/* Untertitel in Great Vibes. Die Schrift liegt lokal unter assets/fonts/ –
   bewusst nicht von Google geladen, damit beim Seitenaufruf keine IP-Adresse
   dorthin geht. Great Vibes laeuft sehr klein, deshalb die grossen Werte. */
/* Am Telefon bricht der Schriftzug um, sonst würde er winzig.
   Ab 900 px steht er auf einer Zeile – siehe weiter unten. */
.artlegacy__claim {
  max-width: 24ch;
  margin: 0;
  font-family: 'Great Vibes', 'Segoe Script', 'Apple Chancery', cursive;
  font-size: clamp(2rem, 9.5vw, 4.6rem);
  font-weight: 400;
  line-height: 1.2;
  text-align: center;
  text-wrap: balance;
  color: #fffdf2;
  /* 06.10.2026: groß, leuchtend, pulsierend (Renes Wunsch). Der Schein
     wechselt zwischen warmem Gold und kühlem Türkis -- passt zum Wasser. */
  text-shadow:
    0 0 6px rgba(255, 255, 255, 0.9),
    0 0 18px rgba(255, 225, 120, 0.85),
    0 0 40px rgba(255, 190, 60, 0.6),
    0 0 80px rgba(90, 220, 255, 0.45);
  animation: quelle-puls 3.2s ease-in-out infinite;
  transform-origin: 50% 60%;
  will-change: transform, text-shadow;
}

@keyframes quelle-puls {
  0%, 100% {
    transform: scale(1);
    text-shadow:
      0 0 5px rgba(255, 255, 255, 0.8),
      0 0 14px rgba(255, 225, 120, 0.6),
      0 0 30px rgba(255, 190, 60, 0.4),
      0 0 60px rgba(90, 220, 255, 0.3);
  }
  50% {
    transform: scale(1.045);
    text-shadow:
      0 0 8px rgba(255, 255, 255, 1),
      0 0 24px rgba(255, 235, 140, 1),
      0 0 54px rgba(255, 200, 70, 0.85),
      0 0 110px rgba(90, 225, 255, 0.7);
  }
}

@media (prefers-reduced-motion: reduce) {
  .artlegacy__claim { animation: none; }
}

/* Der Schriftzug ist schwarz-grau und würde im dunklen Wasser von Kapitel 4
   fast verschwinden. Ein heller Schein dahinter hebt ihn ab, ohne dass die
   Bilddatei selbst angefasst werden muss. */
.artlegacy__wort {
  width: clamp(210px, 46vw, 400px);
  height: auto;
  filter:
    drop-shadow(0 0 2px rgba(255, 255, 255, 0.9))
    drop-shadow(0 0 16px rgba(255, 255, 255, 0.45))
    drop-shadow(0 10px 24px rgba(0, 15, 35, 0.5));
}

.artlegacy__kugel {
  width: min(560px, 100%);
  aspect-ratio: 16 / 10;
  border-radius: 16px;
  overflow: hidden;
  background: #05060a;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 24px 60px rgba(0, 10, 25, 0.5);
}

.artlegacy__kugel iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.artlegacy__hinweis {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.6);
}

.artlegacy__hinweis a {
  color: #7fe3ff;
  text-decoration: none;
  border-bottom: 1px solid rgba(127, 227, 255, 0.4);
}

.artlegacy__hinweis a:hover {
  color: #fff;
  border-bottom-color: #fff;
}

@media (prefers-reduced-motion: reduce) {
  .artlegacy {
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
  }
  .artlegacy__marke:hover { transform: none; }
}

/* =========================================================
   Merch – die Tassen-Kachel
   ========================================================= */

.merch:not(.is-filled) { display: none; }

.merch-slot { display: block; max-width: 30rem; }

.merch-kachel {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  text-align: center;
  cursor: pointer;
  will-change: transform, opacity;
}

.merch-kachel:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.8);
  outline-offset: 8px;
  border-radius: 4px;
}

.merch-kachel__float {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  animation: blubber 7.5s ease-in-out -2s infinite alternate;
}

.merch-kachel:hover .merch-kachel__float,
.merch-kachel:focus-visible .merch-kachel__float { animation-play-state: paused; }

/* Das Mockup bringt seinen grauen Studiohintergrund mit. Abgerundet und
   mit heller Kante liest er als Produktfoto statt als Fremdkörper im Wasser. */
.merch-kachel__bild {
  display: block;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 18px 38px rgba(0, 12, 28, 0.55);
  transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
}

.merch-kachel:hover .merch-kachel__bild,
.merch-kachel:focus-visible .merch-kachel__bild {
  transform: scale(1.025);
  box-shadow: 0 24px 48px rgba(0, 12, 28, 0.65);
  filter: brightness(1.05);
}

.merch-kachel__canvas {
  display: block;
  width: 100%;
  height: auto;
}

.merch-kachel__text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.merch-kachel__titel {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 10px rgba(0, 20, 40, 0.6);
}

.merch-kachel__unter {
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.62);
}

/* =========================================================
   Tasse gestalten – das Fenster
   ========================================================= */

.tassen-dialog {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(0.5rem, 3vw, 2rem);
  background: rgba(2, 12, 26, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overscroll-behavior: contain;
}

.tassen-dialog__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  width: min(1100px, 100%);
  max-height: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(6, 26, 48, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 40px 90px rgba(0, 10, 25, 0.6);
}

.tassen-buehne {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 3vw, 2rem);
  background:
    radial-gradient(90% 70% at 50% 35%, rgba(90, 170, 220, 0.22), rgba(4, 16, 31, 0) 70%),
    #04101f;
}

.tassen-buehne canvas {
  display: block;
  width: 100%;
  height: auto;
  max-height: 62vh;
  object-fit: contain;
}

.tassen-regler {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: clamp(1.25rem, 3vw, 2rem);
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.tassen-regler__titel {
  margin: 0 0 0.4rem;
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
}

.tassen-regler__hinweis {
  margin: 0 0 1.6rem;
  font-size: 0.78rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.6);
}

.tassen-gruppe {
  margin: 1.6rem 0 0.75rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.tassen-gruppe:first-of-type { margin-top: 0; }

.tassen-farben {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tassen-farbe {
  width: 38px;
  height: 38px;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.tassen-farbe:hover { transform: scale(1.1); }

.tassen-farbe.is-aktiv {
  border-color: #fff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.28);
}

.tassen-eigen,
.tassen-schalter {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 0.9rem;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.78);
  cursor: pointer;
}

.tassen-eigen input[type="color"] {
  width: 44px;
  height: 30px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  background: none;
  cursor: pointer;
}

.tassen-schalter input { width: 17px; height: 17px; cursor: pointer; }

.tassen-motive {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(58px, 1fr));
  gap: 0.45rem;
  max-height: 208px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0.35rem;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.22);
}

.tassen-motiv {
  aspect-ratio: 1;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.07);
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.tassen-motiv img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tassen-motiv:hover { border-color: rgba(255, 255, 255, 0.55); }
.tassen-motiv.is-aktiv { border-color: #46c7f0; }

.tassen-motiv--ohne {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.tassen-aktionen {
  margin-top: 1.8rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

@media (max-width: 860px) {
  .tassen-dialog__inner { grid-template-columns: 1fr; }
  .tassen-buehne canvas { max-height: 34vh; }
  .tassen-regler { border-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.12); }
}

@media (prefers-reduced-motion: reduce) {
  .merch-kachel__float { animation: none !important; }
  .tassen-farbe:hover { transform: none; }
}

/* =========================================================
   Großansicht
   ========================================================= */

.no-scroll { overflow: hidden; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(0.5rem, 3vw, 2rem);
  background: rgba(2, 12, 26, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overscroll-behavior: contain;
}

.lightbox__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(1080px, 100%);
  max-height: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(6, 26, 48, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 40px 90px rgba(0, 10, 25, 0.6);
}

.lightbox__close {
  position: absolute;
  top: 0.6rem;
  right: 0.75rem;
  z-index: 3;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.lightbox__close:hover { background: rgba(0, 0, 0, 0.75); }

.lightbox__stage {
  position: relative;
  flex: none;
  height: min(58vh, 560px);
  overflow: hidden;
  background: #04101f;
  cursor: zoom-in;
  touch-action: none;
}

.lightbox__stage.is-zoomed { cursor: grab; }
.lightbox__stage.is-dragging { cursor: grabbing; }

.lightbox__img {
  position: absolute;
  top: 50%;
  left: 50%;
  max-width: 100%;
  max-height: 100%;
  margin: 0;
  transform-origin: center center;
  translate: -50% -50%;
  user-select: none;
  -webkit-user-drag: none;
}

.lightbox__zoomhint {
  position: absolute;
  left: 50%;
  bottom: 0.6rem;
  transform: translateX(-50%);
  margin: 0;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.5);
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.7);
  pointer-events: none;
  transition: opacity 0.3s ease;
  /* einzeilig halten – umgebrochen sieht die runde Pille kaputt aus */
  white-space: nowrap;
  max-width: calc(100% - 1.5rem);
  overflow: hidden;
  text-overflow: ellipsis;
}

.lightbox__stage.is-zoomed .lightbox__zoomhint { opacity: 0; }

.lightbox__info {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: clamp(1.25rem, 3vw, 2rem);
  overscroll-behavior: contain;
}

.lightbox__title {
  margin: 0 0 0.35rem;
  font-size: clamp(1.3rem, 3.5vw, 1.9rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
}

.lightbox__meta {
  margin: 0 0 1.4rem;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.62);
}

.lightbox__text {
  max-width: 62ch;
  color: rgba(234, 246, 255, 0.85);
}

.lightbox__text p { margin: 0 0 1rem; }
.lightbox__text p:last-child { margin-bottom: 0; }

.lightbox__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.9rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn--order {
  background: linear-gradient(135deg, #46c7f0, #1c7fb8);
  color: #04202f;
}

.btn--order:hover { background: linear-gradient(135deg, #63d4f7, #2491cc); }

.btn--yt {
  background: #ff0033;
  color: #fff;
}

.btn--yt:hover { background: #e6002e; }

.btn__yt { font-size: 0.75em; }

@media (max-width: 720px) {
  .lightbox__stage { height: 42vh; }
  .gallery__grid { --zeilenhoehe: clamp(7rem, 26vw, 10rem); }

  /* Auf dem Handy passen ohnehin selten zwei nebeneinander. Hier darf
     eine Reihe deshalb auf die volle Breite wachsen -- sonst bliebe ein
     allein stehendes Bild am Ende auf Daumennagelgroesse haengen. */
  .gallery__grid::after { display: none; }
  .artwork-slot { max-width: 100%; }

  /* Die Paare gelten nur fuer die PC-Ansicht. Zwei Panoramen in einer
     Reihe von 335 px waeren keine 70 px hoch. Auf dem Handy darf der
     Paar-Container deshalb doch umbrechen. */
  .gallery__paar { flex-wrap: wrap; row-gap: clamp(2rem, 4vw, 3.25rem); }
}

@media (prefers-reduced-motion: reduce) {
  .artwork__float { animation: none !important; }
  .js-float {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    visibility: visible !important;
  }
  .artwork__blubber span { animation: none !important; opacity: 0 !important; }
  .btn:hover { transform: none; }
}

/* =========================================================
   Fußzeile
   ========================================================= */

.site-footer {
  position: relative;
  z-index: 1;
  margin-top: clamp(3rem, 8vw, 6rem);
  padding-block: clamp(2.5rem, 5vw, 4rem);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.62);
  background: rgba(2, 12, 26, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(200px, 1.6fr) repeat(3, minmax(130px, 1fr));
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: start;
}

.site-footer__marke p {
  margin: 0.9rem 0 0;
  max-width: 30ch;
  line-height: 1.6;
}

.logo--footer {
  font-size: 0.82rem;
  color: #fff;
}

.logo--footer .logo__mark { width: 28px; height: 28px; }

.site-footer__spalte h2 {
  margin: 0 0 0.9rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}

.site-footer__spalte ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: #fff;
  text-decoration: underline;
}

.site-footer__unten {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
}

.site-footer__unten p { margin: 0; }

@media (max-width: 860px) {
  .site-footer__grid { grid-template-columns: repeat(2, minmax(140px, 1fr)); }
  .site-footer__marke { grid-column: 1 / -1; }
}

/* =========================================================
   Kleine Bildschirme
   ========================================================= */

@media (max-width: 720px) {
  .site-header__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding-block: 0.6rem;
  }

  .site-nav { justify-content: flex-start; }

  :root { --header-h: 104px; }

  /* Auf schmalen Bildschirmen sitzt jede Tafel mittig und nutzt die volle Breite */
  .chapter > .container { justify-content: center !important; }
  .chapter .panel { max-width: 100% !important; }
}

/* =========================================================
   Reduzierte Bewegung
   ========================================================= */

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

  .ocean__surface,
  .ray,
  .caustics__layer,
  .scroll-hint__dot {
    animation: none !important;
  }

  /* Kein Parallax – die Tafeln stehen einfach da */
  .panel {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    visibility: visible !important;
    will-change: auto;
  }
}

/* =========================================================
   Merch: mehrere Produkte nebeneinander
   ========================================================= */

.merch.is-filled {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(2rem, 4vw, 3rem);
  width: 100%;
}

.merch-slot { max-width: none; }

/* Motivauswahl und Groessen im Gestaltungsfenster */
.merch-motive {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(74px, 1fr));
  gap: 0.5rem;
  padding: 0.4rem;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.22);
}

.merch-motiv {
  aspect-ratio: 1;
  padding: 6px;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.merch-motiv img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.merch-motiv:hover { border-color: rgba(255, 255, 255, 0.55); }
.merch-motiv.is-aktiv { border-color: #46c7f0; background: rgba(70, 199, 240, 0.16); }

.merch-motiv--ohne {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.merch-groessen {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.merch-groesse {
  padding: 0.5rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.82);
  font: inherit;
  font-size: 0.8rem;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.merch-groesse:hover { background: rgba(255, 255, 255, 0.14); }

.merch-groesse.is-aktiv {
  background: #46c7f0;
  border-color: #46c7f0;
  color: #04202f;
  font-weight: 600;
}

/* =========================================================
   Handy: gängige Größen, iOS und Android
   Geprüft gegen 360×800 (Android-Mittelklasse), 390×844
   (iPhone 14/15), 430×932 (Pro Max) und 320 px (iPhone SE 1).
   ========================================================= */

/* Geräte mit Aussparung: Inhalt nicht unter Kerbe und Home-Leiste schieben.
   Braucht viewport-fit=cover im <meta viewport>, das steht im HTML. */
.site-header__inner {
  padding-left: max(1.25rem, env(safe-area-inset-left));
  padding-right: max(1.25rem, env(safe-area-inset-right));
}

.site-footer {
  padding-bottom: max(clamp(2.5rem, 5vw, 4rem), calc(env(safe-area-inset-bottom) + 1.5rem));
}

.lightbox,
.tassen-dialog {
  padding-top: max(clamp(0.5rem, 3vw, 2rem), env(safe-area-inset-top));
  padding-bottom: max(clamp(0.5rem, 3vw, 2rem), env(safe-area-inset-bottom));
}

/* Kein blaues Aufblitzen beim Antippen, und Schaltflächen bleiben
   groß genug zum Treffen (Richtwert 44 px). */
button, a, .merch-groesse, .tassen-farbe, .tassen-motiv, .merch-motiv {
  -webkit-tap-highlight-color: transparent;
}

@media (pointer: coarse) {
  .site-nav a { padding-block: 0.7rem; }
  .merch-groesse { padding: 0.65rem 1rem; }
  .tassen-farbe { width: 44px; height: 44px; }
  .lightbox__close { width: 46px; height: 46px; }
}

@media (max-width: 720px) {
  /* Weichzeichner sind auf Handys der teuerste Effekt überhaupt.
     Hier deutlich zurücknehmen, sonst ruckelt das Scrollen. */
  .panel,
  .vita__karte {
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
    background: rgba(4, 26, 48, 0.55);
  }

  .site-header { backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }

  .ray { filter: blur(14px); }
  .caustics__layer--a { filter: blur(8px); }
  .caustics__layer--b { filter: blur(12px); }

  /* Abschnitte dürfen kürzer sein – sonst wird die Seite endlos */
  .chapter { min-height: 82vh; min-height: 82dvh; padding-block: 3rem; }
  .hero { min-height: calc(100vh - var(--header-h)); min-height: calc(100dvh - var(--header-h)); }

  .chapter__inner { gap: 2rem; }
  .vita { gap: 1.75rem; }

  .gallery__grid { gap: 1.5rem 0.9rem; }

  /* Das Zoomfenster nutzt auf dem Handy die volle Fläche */
  .lightbox__inner,
  .tassen-dialog__inner { border-radius: 14px; }

  .lightbox__stage { height: 46vh; height: 46dvh; }
  .tassen-buehne canvas { max-height: 38vh; max-height: 38dvh; }
}

@media (max-width: 400px) {
  .gallery__grid { --zeilenhoehe: clamp(6rem, 30vw, 8.5rem); }
  .merch.is-filled { grid-template-columns: 1fr; }
  .hero__title { font-size: clamp(2.4rem, 15vw, 3.6rem); }
  .tassen-motive { max-height: 168px; }
}

/* =========================================================
   Fenster: rundherum durchsichtig
   Vorher lag ein fast deckender Schleier über der ganzen Seite.
   Jetzt bleibt nur das Fenster selbst stehen – das Wasser mit
   Fischen und Blasen läuft ringsum sichtbar weiter.
   ========================================================= */

.lightbox,
.tassen-dialog {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* Das Fenster selbst braucht dafür etwas mehr Deckkraft und einen
   kräftigeren Schatten, sonst verschwimmt es mit dem Hintergrund. */
.lightbox__inner,
.tassen-dialog__inner {
  background: rgba(5, 22, 42, 0.9);
  backdrop-filter: blur(18px) saturate(115%);
  -webkit-backdrop-filter: blur(18px) saturate(115%);
  box-shadow: 0 30px 90px rgba(0, 8, 20, 0.75),
              0 0 0 1px rgba(255, 255, 255, 0.1);
}

/* Der Schließen-Knopf steht jetzt teils über dem freien Hintergrund
   und braucht deshalb einen eigenen Untergrund. */
.lightbox__close {
  background: rgba(4, 18, 34, 0.8);
  box-shadow: 0 2px 14px rgba(0, 8, 20, 0.6);
}

@media (max-width: 720px) {
  /* Auf dem Handy bleibt vom Rand kaum etwas übrig – dort lieber
     ein angedeuteter Schleier, damit das Fenster sich absetzt. */
  .lightbox,
  .tassen-dialog { background: rgba(2, 12, 26, 0.45); }
}

/* Hinweis unter den Bestellknöpfen im Merch-Konfigurator.
   Sagt, dass im Spreadshop gekauft wird und wer dort verkauft. */
.shop-hinweis {
  margin: 0.85rem 0 0;
  max-width: 34rem;
  font-size: 0.78rem;
  line-height: 1.6;
  color: rgba(234, 246, 255, 0.62);
}

/* Der Merchandise-Kasten ist als Ganzes ein Link in den Shop.
   Er soll aussehen wie die anderen Kästen, sich beim Zeigen aber
   merklich heben, damit man ihn als anklickbar erkennt. */
.panel--link {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.panel--link:hover,
.panel--link:focus-visible {
  border-color: rgba(127, 227, 255, 0.7);
  background: rgba(127, 227, 255, 0.08);
  box-shadow: 0 28px 70px rgba(0, 20, 45, 0.38);
}

.panel--link:focus-visible { outline: 2px solid #7fe3ff; outline-offset: 4px; }

.panel__mehr {
  display: inline-block;
  margin-top: 0.9rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #7fe3ff;
}

.panel--link:hover .panel__mehr { text-decoration: underline; }

/* =========================================================
   Ausschreibungen
   ========================================================= */

.ausschreibungen { width: 100%; }

.ausschreibungen__liste {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}

.ausschreibung {
  display: grid;
  grid-template-columns: 9.5rem 1fr;
  gap: 0.4rem 1.5rem;
  padding: 1.1rem 1.3rem;
  border-radius: 16px;
  background: rgba(4, 26, 48, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px) saturate(115%);
  -webkit-backdrop-filter: blur(14px) saturate(115%);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.ausschreibung:hover {
  border-color: rgba(127, 227, 255, 0.5);
  background: rgba(4, 26, 48, 0.58);
}

/* Was bald zumacht, faellt ins Auge */
.ausschreibung--eilig { border-left: 3px solid #ffb03c; }

.ausschreibung__frist { display: flex; flex-direction: column; gap: 0.15rem; }

.ausschreibung__datum {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #fff;
}

.ausschreibung__rest {
  font-size: 0.78rem;
  color: rgba(234, 246, 255, 0.6);
}

.ausschreibung--eilig .ausschreibung__rest { color: #ffc978; font-weight: 700; }

.ausschreibung__titel { margin: 0 0 0.15rem; font-size: 1.02rem; line-height: 1.4; }

.ausschreibung__titel a {
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(127, 227, 255, 0.45);
}

.ausschreibung__titel a:hover { color: #7fe3ff; border-bottom-color: #7fe3ff; }

.ausschreibung__wer {
  margin: 0;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  color: rgba(234, 246, 255, 0.62);
}

.ausschreibung__notiz {
  margin: 0.5rem 0 0;
  font-size: 0.84rem;
  line-height: 1.6;
  color: rgba(234, 246, 255, 0.8);
}

.ausschreibung__marken {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.65rem;
}

.marke {
  padding: 0.2em 0.65em;
  border-radius: 999px;
  font-size: 0.74rem;
  line-height: 1.5;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.07);
  color: rgba(234, 246, 255, 0.85);
}

.marke--preis {
  border-color: rgba(127, 227, 255, 0.55);
  background: rgba(127, 227, 255, 0.14);
  color: #bdeeff;
  font-weight: 700;
}

.marke--gebuehr { border-color: rgba(255, 176, 60, 0.45); color: #ffd08a; }
.marke--ungeprueft { border-style: dashed; color: rgba(234, 246, 255, 0.6); }

.ausschreibungen__fuss {
  margin: 1.4rem 0 0;
  font-size: 0.78rem;
  line-height: 1.7;
  color: rgba(234, 246, 255, 0.55);
}

.ausschreibungen__fuss a { color: #7fe3ff; }

.ausschreibung__leer {
  margin: 0;
  padding: 1.5rem;
  text-align: center;
  color: rgba(234, 246, 255, 0.7);
}

@media (max-width: 720px) {
  .ausschreibung {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }
  .ausschreibung__frist { flex-direction: row; align-items: baseline; gap: 0.6rem; }
}

/* Der Art-Legacy-Schriftzug unter dem Logo steht in der PC-Ansicht
   auf einer Zeile. Dafür muss die Breitenbegrenzung weg und die
   Schriftgröße an die Fensterbreite gekoppelt werden – sonst ragt
   der Satz bei knapp 900 px über den Rand hinaus.

   3.5vw ist gemessen, nicht geschätzt: Der Satz hat 65 Zeichen, in
   Great Vibes ergibt das bei dieser Größe rund 900 px. Der Kasten
   ist 1060 px breit, es bleibt also Luft. */
@media (min-width: 900px) {
  .artlegacy__claim {
    max-width: none;
    white-space: nowrap;
    font-size: min(4.6rem, 6.2vw);
  }
}

/* =========================================================
   Newsletter im Footer
   ========================================================= */

.newsletter {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: start;
  margin-top: clamp(2rem, 4vw, 3rem);
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: 18px;
  background: rgba(127, 227, 255, 0.07);
  border: 1px solid rgba(127, 227, 255, 0.24);
}

.newsletter__text h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.1rem, 2.6vw, 1.45rem);
  color: #fff;
}

.newsletter__text p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.7;
  color: rgba(234, 246, 255, 0.78);
}

.newsletter__zeile { display: flex; flex-wrap: wrap; gap: 0.6rem; }

.newsletter__zeile input[type="email"] {
  flex: 1 1 12rem;
  min-width: 0;
  padding: 0.8rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(2, 14, 28, 0.5);
  color: #fff;
  font: inherit;
  font-size: 0.92rem;
}

.newsletter__zeile input[type="email"]::placeholder { color: rgba(234, 246, 255, 0.4); }
.newsletter__zeile input[type="email"]:focus-visible { outline: 2px solid #7fe3ff; outline-offset: 1px; }
.newsletter__zeile .btn { flex: none; }

/* Das Häkchen ist bewusst gross und gut treffbar – es ist die
   Einwilligung, nicht irgendein Kleingedrucktes. */
.newsletter__zustimmung {
  display: flex;
  gap: 0.65rem;
  margin-top: 0.85rem;
  font-size: 0.76rem;
  line-height: 1.6;
  color: rgba(234, 246, 255, 0.66);
  cursor: pointer;
}

.newsletter__zustimmung input {
  flex: none;
  width: 1.05rem;
  height: 1.05rem;
  margin-top: 0.15rem;
  accent-color: #7fe3ff;
  cursor: pointer;
}

.newsletter__zustimmung a { color: #7fe3ff; }

.newsletter__status {
  margin: 0.8rem 0 0;
  font-size: 0.82rem;
  line-height: 1.6;
  min-height: 1.2em;
  color: rgba(234, 246, 255, 0.8);
}

.newsletter__status--ok     { color: #9be7a8; }
.newsletter__status--fehler { color: #ffc978; }

/* Nur für Screenreader – das Feld hat sichtbar nur einen Platzhalter,
   braucht aber trotzdem eine richtige Beschriftung. */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 760px) {
  .newsletter { grid-template-columns: 1fr; }
}

/* =========================================================
   Kapitel 5 – Familie und Freunde
   Aufbau nach Renes Vorlage: rundes Bild, Name, darunter die
   Kategorien mit einer Linie darunter.
   ========================================================= */

.familie { width: 100%; }
.familie:not(.is-filled) { display: none; }

.person + .person {
  margin-top: clamp(3rem, 7vw, 5.5rem);
  padding-top: clamp(2rem, 5vw, 3.5rem);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.person__kopf {
  text-align: center;
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
  will-change: transform, opacity;
}

.person__kreis {
  width: clamp(5.5rem, 13vw, 8.5rem);
  height: clamp(5.5rem, 13vw, 8.5rem);
  margin: 0 auto 1rem;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.22),
              0 14px 36px rgba(0, 12, 28, 0.5);
}

.person__kreis img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Solange kein Bild hinterlegt ist: ein ruhiger Kreis in den Farben
   der Seite. Besser als ein leeres Loch oder ein Platzhalter-Symbol. */
.person__kreis--leer {
  background:
    radial-gradient(circle at 34% 30%, rgba(127, 227, 255, 0.5), rgba(127, 227, 255, 0) 58%),
    linear-gradient(160deg, #0d3a5c, #041a2e);
}

.person__name {
  margin: 0;
  font-family: 'Great Vibes', 'Segoe Script', cursive;
  font-size: clamp(1.9rem, 5.5vw, 3rem);
  font-weight: 400;
  line-height: 1.25;
  color: #fff;
  text-shadow: 0 2px 18px rgba(0, 25, 50, 0.7);
}

.person__unter {
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
  color: rgba(234, 246, 255, 0.66);
}

/* Kategorie-Überschrift mit Linie darunter, wie in der Vorlage */
.person__kategorie {
  margin: clamp(2rem, 5vw, 3rem) 0 clamp(1rem, 2.5vw, 1.5rem);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  font-size: clamp(1.05rem, 3vw, 1.5rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.92);
  will-change: transform, opacity;
}

/* Ruhender Messpunkt für Kopf und Kategorie-Überschrift in Kapitel 5.
   Der Parallax misst immer das Elternelement – ohne diesen Anker wäre
   das der ganze Personenblock, und die Überschriften hingen dauerhaft
   halb ausgeblendet da. */
.person__anker { display: block; }

/* Ein Bild allein in seiner Reihe, mittig.
   Die Kachel darin behält ihr Seitenverhältnis über --ar; begrenzt
   wird sie über die Breite dieses Containers. */
.gallery__solo {
  flex: 0 0 100%;
  display: flex;
  justify-content: center;
}

/* Wachsen lassen, aber gedeckelt -- `flex: 0 1 auto` hatte die
   Basis aus dem Seitenverhaeltnis geloescht, dadurch fiel die
   Kachel auf Daumennagelgroesse zusammen. */
.gallery__solo .artwork-slot {
  flex: 1 1 calc(var(--ar, 1) * var(--zeilenhoehe));
  max-width: min(100%, calc(var(--ar, 1) * var(--zeilenhoehe) * 1.9));
}

/* „Gross" heisst: Das Bild beherrscht die Ebene. Rund die dreifache
   Zeilenhoehe statt der knapp doppelten – bei einem Quadrat sind das
   etwa 700 statt 430 px. */
.gallery__solo--gross .artwork-slot {
  max-width: min(100%, calc(var(--ar, 1) * var(--zeilenhoehe) * 3.2));
}

@media (max-width: 720px) {
  /* Auf dem Handy steht ohnehin fast alles untereinander –
     dort darf ein Solobild einfach die volle Breite nutzen. */
  .gallery__solo .artwork-slot,
  .gallery__solo--gross .artwork-slot { max-width: 100%; }
}

/* Shopfoto unter dem Merchandise-Kasten. Der Kasten selbst ist seit
   25.09.2026 kein Link mehr – der Weg in den Shop führt über dieses
   Bild. */
.shopbild-anker { display: block; margin-top: clamp(1.5rem, 4vw, 2.5rem); }

.shopbild {
  position: relative;
  display: block;
  max-width: 44rem;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 24px 60px rgba(0, 12, 28, 0.55);
  text-decoration: none;
  will-change: transform, opacity;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.shopbild img { display: block; width: 100%; height: auto; }

.shopbild:hover,
.shopbild:focus-visible {
  border-color: rgba(127, 227, 255, 0.75);
  box-shadow: 0 28px 72px rgba(0, 12, 28, 0.66);
}

.shopbild:focus-visible { outline: 2px solid #7fe3ff; outline-offset: 4px; }

/* Das Schild liegt über dem Bild, damit man sieht, dass es klickbar
   ist – auch ohne Mauszeiger, also auf dem Handy. */
.shopbild__schild {
  position: absolute;
  right: 0.9rem;
  bottom: 0.9rem;
  padding: 0.5em 1.1em;
  border-radius: 999px;
  background: rgba(5, 24, 46, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(127, 227, 255, 0.5);
  color: #7fe3ff;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.shopbild:hover .shopbild__schild { background: #7fe3ff; color: #05182e; }

/* Ruhender Messpunkt je Ausschreibung. Der Parallax misst immer das
   Elternelement – ohne diesen Anker wäre das die ganze Liste, und sie
   würde als Block ausblenden statt Eintrag für Eintrag. */
.ausschreibung-anker { display: block; }

/* Der Kasten selbst schwimmt, deshalb braucht er die Vorbereitung
   für die Bewegung. */
.ausschreibung { will-change: transform, opacity; }

/* =========================================================
   Tippziele auf dem Handy
   Apple empfiehlt 44 px, Google 48 px Kantenlänge. Fließtext-Links
   erreichen das nie – wohl aber Links, über die man etwas öffnet.
   Genau die bekommen hier Luft, ohne dass sich das Layout ändert:
   Das Polster liegt über negative Ränder außerhalb des Textflusses.
   ========================================================= */
@media (max-width: 760px) {

  /* Der Titel einer Ausschreibung ist der Weg zum Veranstalter –
     vorher 23 px hoch, das trifft man mit dem Daumen schlecht. */
  .ausschreibung__titel a {
    display: inline-block;
    padding: 0.55rem 0;
    margin: -0.55rem 0;
  }

  /* Fußzeilen-Links stehen eng untereinander */
  .site-footer__spalte li a,
  .site-footer__unten a {
    display: inline-block;
    padding: 0.5rem 0;
    margin: -0.5rem 0;
  }

  .site-footer__spalte li + li { margin-top: 0.35rem; }

  /* Quelle unter der Ausschreibungsliste */
  .ausschreibungen__fuss a {
    display: inline-block;
    padding: 0.4rem 0;
    margin: -0.4rem 0;
  }
}

/* =========================================================
   Vorschaubild statt voller Galerie (Startseite)
   Führt auf die jeweilige Kapitelseite.
   ========================================================= */

/* Ruhender Messpunkt – der Parallax misst immer das Elternelement. */
.vorschau-anker { display: block; margin-top: clamp(1.5rem, 4vw, 2.5rem); }

.vorschau {
  position: relative;
  display: block;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 26px 64px rgba(0, 12, 28, 0.55);
  text-decoration: none;
  will-change: transform, opacity;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.vorschau img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.4s ease;
}

.vorschau:hover img,
.vorschau:focus-visible img { transform: scale(1.03); }

.vorschau:hover,
.vorschau:focus-visible {
  border-color: rgba(127, 227, 255, 0.75);
  box-shadow: 0 30px 76px rgba(0, 12, 28, 0.66);
}

.vorschau:focus-visible { outline: 2px solid #7fe3ff; outline-offset: 4px; }

/* Das Schild liegt über dem Bild, damit auch ohne Mauszeiger klar ist,
   dass es weitergeht – also auf dem Handy. */
.vorschau__schild {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  padding: 0.55em 1.2em;
  border-radius: 999px;
  background: rgba(5, 24, 46, 0.84);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(127, 227, 255, 0.5);
  color: #7fe3ff;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.vorschau:hover .vorschau__schild { background: #7fe3ff; color: #05182e; }

@media (max-width: 560px) {
  .vorschau__schild { right: 0.7rem; bottom: 0.7rem; font-size: 0.74rem; padding: 0.5em 0.9em; }
}

/* =========================================================
   Kapitelseiten
   Dort ist das Kapitel die Hauptsache, nicht ein Abschnitt unter
   vielen – deshalb sitzt die Tafel oben und bleibt stehen.
   ========================================================= */

.kapitelseite { min-height: auto; padding-block: clamp(2rem, 6vw, 4rem); }

.kapitelseite .panel { max-width: 46rem; margin: 0 auto; text-align: center; }

.kapitelseite .panel h1 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.9rem, 6vw, 3.2rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
}

/* =========================================================
   Warenkorb-Knopf in der Kopfzeile

   Steht in der Navigation jeder Seite, die etwas verkauft.
   Die Zahl im Blaeschen traegt assets/js/warenkorb.js ein.
   ========================================================= */

/* Der Knopf steht NEBEN der Navigation, nicht darin: Die Navigation
   scrollt auf schmalen Geraeten seitlich weg (overflow-x: auto), und
   der Warenkorb waere dann aus dem Bild verschwunden. */
.warenkorb-knopf {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex: 0 0 auto;
  padding: 0.4rem 0.2rem;
  color: inherit;
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.warenkorb-knopf:hover,
.warenkorb-knopf:focus-visible { color: #7fe3ff; }

.warenkorb-knopf__sinnbild {
  width: 1.15em;
  height: 1.15em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Das Blaeschen sitzt an der Ecke des Korbs. `hidden` blendet es
   bei leerem Warenkorb aus - deshalb hier kein eigenes display. */
.warenkorb-knopf__zahl {
  position: absolute;
  top: -0.15rem;
  left: 0.75rem;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  background: #7fe3ff;
  color: #06283d;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.15rem;
  text-align: center;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 0 0 2px rgba(6, 40, 61, 0.85);
}

.warenkorb-knopf__zahl[hidden] { display: none; }

/* Auf schmalen Geraeten steht die Kopfzeile zweizeilig (Logo oben,
   Navigation darunter). Der Warenkorb bekaeme sonst eine eigene
   dritte Zeile - deshalb sitzt er hier oben rechts neben dem Logo,
   wo ohnehin Platz frei ist, und bleibt immer sichtbar.
   Das Wort "Warenkorb" faellt dabei weg, nur Korb und Zahl bleiben. */
@media (max-width: 760px) {
  .site-header__inner { position: relative; }

  .warenkorb-knopf {
    position: absolute;
    top: 0.6rem;
    right: max(1.25rem, env(safe-area-inset-right));
    /* 44 px Tippziel, auch wenn das Sinnbild kleiner ist. */
    min-width: 44px;
    min-height: 44px;
    justify-content: flex-end;
    padding: 0;
  }

  .warenkorb-knopf__wort { display: none; }
  .warenkorb-knopf__sinnbild { width: 1.5em; height: 1.5em; }
  .warenkorb-knopf__zahl { left: auto; right: -0.35rem; top: 0.25rem; }

  /* Damit die Navigation nicht unter dem Korb durchlaeuft. */
  .site-nav { padding-right: 3rem; }
}

/* =========================================================
   Weltraum-Hintergrund (Startseite, seit 11.10.2026)

   Die Startseite benutzt den Hintergrund von artlegacy.de:
   Sternenhimmel, Nebel und darauf der Meeresboden. Gezeichnet
   wird alles auf der Ebene #szene (siehe main.js, Schalter
   ARTLEGACY_HINTERGRUND).

   Die Regeln fuer .ocean__water, .ocean__light, .rays,
   .caustics und .ocean__vignette bleiben weiter oben stehen -
   die Kapitelseiten und die Kaufseiten brauchen sie noch.
   ========================================================= */

/* Grundfarbe schon vor dem ersten gezeichneten Bild, sonst blitzt
   beim Laden kurz Weiss auf, bevor die Leinwand gefuellt ist. */
.ocean--raum { background: #05060a; }

/* Gleiches gilt fuer die Seite selbst: Wird weit genug gescrollt,
   dass die feste Leinwand nicht mehr alles abdeckt (Gummiband-Effekt
   auf dem Handy), lag darunter sonst die helle Standardfarbe.
   Die Klasse steht am <body> von index.html. */
body.raum { background: #05060a; }
