/* Eiswall-Website 1.4.1 – gebaut aus src/, nicht von Hand bearbeiten. */
/* ---- base.css ---- */
/* Grundlage: Farben, Schriften, Abstände und alles, was die ganze Seite betrifft. */

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2");
}

@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
}

:root {
  /* Farben: sehr dunkles Blau Richtung Schwarz, dazu Eislicht */
  --color-night: #04070d;
  --color-night-raised: #08101c;
  --color-panel: rgb(10 18 31 / 92%);
  --color-ink: #e8eef7;
  --color-ink-soft: #aebbd0;
  --color-ink-faint: #6e7d94;
  --color-ice: #9ad6ff;
  --color-ice-glow: rgb(110 185 255 / 38%);
  --color-line: rgb(170 205 255 / 14%);

  /* Seifenblasenhaut (Band 1) */
  --bubble-rose: #ff6fcf;
  --bubble-cyan: #5ff0ff;
  --bubble-gold: #ffd56b;
  --bubble-mint: #79ffb8;
  --bubble-violet: #9d80ff;

  /* Platzhalter (Band 2) */
  --placeholder-top: #222a38;
  --placeholder-bottom: #171d28;

  /* Schriften */
  --font-display: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", "Georgia", serif;
  --font-text: "Inter Variable", "Segoe UI", system-ui, -apple-system, "Roboto", "Arial", sans-serif;

  /* Maße */
  --page-gutter: 16px;
  --content-width: 640px;
  --radius-panel: 18px;
  --radius-book-flat: 12px; /* schlichte Buchform (shelf--flat) */

  /* Bewegung */
  --ease-soft: cubic-bezier(0.22, 0.7, 0.2, 1);

  color-scheme: dark;
}

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

html {
  background: var(--color-night);
  scroll-behavior: smooth;
}

/* Hinter einem offenen Fenster scrollt die Seite nicht mit. */
html:has(dialog[open]) {
  overflow: hidden;
}

body {
  margin: 0;
  min-height: 100svh;
  background: var(--color-night);
  color: var(--color-ink);
  font-family: var(--font-text);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--color-ice);
  text-decoration-color: rgb(154 214 255 / 40%);
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-color: currentcolor;
}

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--color-ice);
  outline-offset: 3px;
}

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

.site-footer {
  padding: 48px var(--page-gutter) calc(40px + env(safe-area-inset-bottom));
  text-align: center;
  color: var(--color-ink-faint);
  font-size: 13px;
}

.site-footer p {
  margin: 0 0 6px;
}

.site-footer__version {
  font-size: 11px;
  opacity: 0.6;
}

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

  /* Wer „Bewegung reduzieren“ eingestellt hat, bekommt eine ruhige Seite. Das geht allem anderen vor. */
  *,
  *::before,
  *::after {
    /* stylelint-disable declaration-no-important */
    animation: none !important;
    transition: none !important;
    /* stylelint-enable declaration-no-important */
  }
}

/* ---- hero.css ---- */
/* Kopfbereich: das Lantios-Bild, der Wall im Fokus, darüber Titel und Unterzeile. */

.hero {
  --hero-focus-x: 50%;
  --hero-focus-y: 30%; /* der Wall liegt im oberen Drittel des Bildes */

  position: relative;
  display: grid;
  align-items: end;
  min-height: 82svh;
  overflow: hidden;
  isolation: isolate;
}

.hero__picture,
.hero__image,
.hero__sparkles,
.hero__shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__image {
  object-fit: cover;
  object-position: var(--hero-focus-x) var(--hero-focus-y);
  transform-origin: var(--hero-focus-x) var(--hero-focus-y);
  animation: hero-drift 48s ease-in-out infinite alternate;
}

/* Ganz langsames Heranfahren an den Wall */
@keyframes hero-drift {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.07);
  }
}

.hero__sparkles {
  z-index: 1;
  pointer-events: none;
}

/* Verlauf ins Nachtblau, damit Bild und Seite ineinanderfließen und der Titel lesbar bleibt */
.hero__shade {
  z-index: 2;
  background:
    linear-gradient(to bottom, rgb(4 7 13 / 35%) 0%, rgb(4 7 13 / 0%) 18%),
    linear-gradient(to bottom, rgb(4 7 13 / 0%) 42%, rgb(4 7 13 / 70%) 72%, var(--color-night) 100%);
}

.hero__content {
  position: relative;
  z-index: 3;
  padding: 0 var(--page-gutter) 72px;
  text-align: center;
}

.hero__kicker {
  margin: 0 0 4px;
  color: var(--color-ice);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(64px, 19vw, 148px);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: 0.01em;
  text-shadow:
    0 0 28px var(--color-ice-glow),
    0 2px 18px rgb(0 0 0 / 70%);
}

.hero__subline {
  margin: 10px auto 0;
  max-width: 28ch;
  color: var(--color-ink-soft);
  font-family: var(--font-display);
  font-size: clamp(19px, 5vw, 26px);
  font-style: italic;
  font-weight: 500;
  line-height: 1.25;
  text-shadow: 0 1px 12px rgb(0 0 0 / 80%);
  text-wrap: balance;
}

.hero__scroll {
  position: absolute;
  bottom: 18px;
  left: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-left: -20px;
  border-radius: 50%;
  color: var(--color-ink-soft);
  animation: hero-scroll-hint 2.8s ease-in-out infinite;
}

.hero__scroll svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentcolor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@keyframes hero-scroll-hint {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.55;
  }

  50% {
    transform: translateY(5px);
    opacity: 1;
  }
}

@media (width >= 760px) {
  .hero {
    min-height: min(100svh, 980px);
  }

  .hero__content {
    padding-bottom: 96px;
  }

  .hero__subline {
    max-width: none;
    font-size: 30px;
  }
}

/* ---- books.css ---- */
/* Die Reihe: zwei Bücher nebeneinander.
   Band 1 hat noch kein Cover und schimmert wie eine Seifenblasenhaut, Band 2 ist ein stiller, grauer Platzhalter. */

.series {
  padding: 8px var(--page-gutter) 24px;
}

.series__heading {
  display: flex;
  gap: 14px;
  align-items: center;
  max-width: var(--content-width);
  margin: 0 auto 36px;
  color: var(--color-ink-faint);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.series__heading::before,
.series__heading::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--color-line));
}

.series__heading::after {
  background: linear-gradient(to left, transparent, var(--color-line));
}

.shelf {
  --book-width: min(40vw, 172px);

  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 20px;
  justify-items: center;
  max-width: 520px;
  margin: 0 auto;
}

.volume {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  text-align: center;
}

.volume__number {
  margin: 22px 0 2px;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.1;
}

.volume__status {
  margin: 0;
  color: var(--color-ink-faint);
  font-size: 13px;
  line-height: 1.45;
}

/* „Coming soon“ schillert in den Farben der Seifenhaut */
.volume__status--soon {
  background: linear-gradient(
    100deg,
    var(--bubble-cyan),
    var(--bubble-violet),
    var(--bubble-rose),
    var(--bubble-gold),
    var(--bubble-cyan)
  );
  background-size: 300% 100%;
  background-clip: text;
  color: transparent;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 12px;
  animation: soon-shift 9s linear infinite;
}

@keyframes soon-shift {
  to {
    background-position: 300% 0;
  }
}

.volume__more {
  margin-top: 8px;
  padding: 8px 12px;
  border: 0;
  background: none;
  color: var(--color-ice);
  font-size: 13px;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: rgb(154 214 255 / 35%);
  text-underline-offset: 4px;
}

.volume__more::after {
  content: " ›";
}

.volume__more:hover {
  text-decoration-color: currentcolor;
}

/* ---------- Buchform, für beide Bände gleich ---------- */

.book {
  position: relative;
  display: block;
  width: var(--book-width);
  aspect-ratio: 2 / 3;
  padding: 0;
  border: 0;
  background: none;
}

.book__cover {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 3px 7px 7px 3px;
  box-shadow:
    inset 0 0 0 1px rgb(255 255 255 / 6%),
    4px 4px 0 -1px #c9d0dc,
    7px 7px 0 -2px #8f98a8,
    18px 26px 40px rgb(0 0 0 / 65%);
}

/* Rücken: dunkle Falz links, wie bei einem Taschenbuch */
.book__spine {
  position: absolute;
  inset: 0 auto 0 0;
  width: 9%;
  background: linear-gradient(
    to right,
    rgb(0 0 0 / 45%),
    rgb(255 255 255 / 10%) 55%,
    rgb(0 0 0 / 30%) 80%,
    rgb(0 0 0 / 0%)
  );
}

/* ---------- Band 1: die Seifenblasenhaut ---------- */

/* Zeiger-Werte setzt bubble-pointer.js (0 bis 1). Hier stehen die Ruhewerte.
   Bewusst keine 3D-Neigung: In Chrome mit Grafikkarte hat die laufend neu berechnete Neigung die weichgezeichneten
   Ringschichten stückweise neu zeichnen lassen, sichtbar als helle Keile mit geraden Kanten (Fehler in 1.3.0). */
.book--bubble {
  --pointer-x: 0.5;
  --pointer-y: 0.5;
  --pointer-strength: 0;
  --lift: 0px;

  cursor: pointer;
  transform: translateY(var(--lift));
}

/* Fokus-Rahmen nur für Tastaturbedienung, bewusst zart, damit er nicht wie ein Teil des Buches wirkt */
.book--bubble:focus-visible {
  outline: 1.5px solid rgb(154 214 255 / 45%);
  outline-offset: 6px;
  border-radius: 8px;
}

/* Weicher Farbschein hinter dem Buch */
.book__glow {
  position: absolute;
  inset: -14% -18%;
  background:
    radial-gradient(closest-side at 30% 35%, rgb(255 111 207 / 40%), transparent),
    radial-gradient(closest-side at 70% 60%, rgb(95 240 255 / 40%), transparent),
    radial-gradient(closest-side at 45% 85%, rgb(255 213 107 / 30%), transparent);
  filter: blur(22px);
  opacity: 0.55;
  translate: calc((var(--pointer-x) - 0.5) * 16%) calc((var(--pointer-y) - 0.5) * 16%);
  animation: glow-breathe 7s ease-in-out infinite alternate;
}

@keyframes glow-breathe {
  from {
    opacity: 0.4;
    transform: scale(0.96);
  }

  to {
    opacity: 0.7;
    transform: scale(1.04);
  }
}

/* Die Seifenhaut entsteht wie in echt aus überlagerten Farbringen (Dünnschicht-Schillern):
   zwei weich gezeichnete Ringmuster treiben langsam gegeneinander, darunter ein ruhiger Farbschleier. */
.bubble {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: radial-gradient(130% 100% at 30% 20%, #141a35, #070a16 75%);
}

.bubble__wash,
.bubble__film {
  position: absolute;
  will-change: transform;
}

.bubble__wash {
  inset: -30%;
  background:
    radial-gradient(closest-side at 30% 30%, rgb(255 111 207 / 35%), transparent),
    radial-gradient(closest-side at 75% 70%, rgb(95 240 255 / 35%), transparent);
  mix-blend-mode: screen;
  animation: film-drift-b 12s ease-in-out infinite alternate;
}

/* Die Ringschichten sind deutlich größer als das Buch, damit sie es in jeder Drehung und Zeigerstellung bedecken.
   Ein Test rechnet das für alle Stellungen nach. */
.bubble__film {
  inset: -80%;
  filter: blur(3px);
}

.bubble__film--a {
  background: repeating-radial-gradient(
    circle at 35% 40%,
    rgb(255 80 200 / 0%) 0,
    rgb(255 80 200 / 80%) 18px,
    rgb(255 210 90 / 75%) 34px,
    rgb(90 255 170 / 60%) 50px,
    rgb(80 220 255 / 80%) 66px,
    rgb(150 110 255 / 75%) 82px,
    rgb(255 80 200 / 0%) 100px
  );
  mix-blend-mode: screen;
  opacity: 0.85;

  /* „translate“ wirkt zusätzlich zur Animation: Die Ringe folgen dem Zeiger ein Stück */
  translate: calc((var(--pointer-x) - 0.5) * 10%) calc((var(--pointer-y) - 0.5) * 10%);
  animation: film-drift-a 16s ease-in-out infinite alternate;
}

/* „difference“ lässt die Ringe sich gegenseitig umfärben, so entstehen die typischen dunklen Schlieren */
.bubble__film--b {
  background: repeating-radial-gradient(
    ellipse at 70% 65%,
    rgb(80 220 255 / 0%) 0,
    rgb(80 220 255 / 70%) 24px,
    rgb(255 90 210 / 70%) 46px,
    rgb(255 220 110 / 55%) 64px,
    rgb(80 220 255 / 0%) 86px
  );
  mix-blend-mode: difference;
  opacity: 0.45;

  /* … und diese Ringe weichen ihm aus. So verschiebt sich das Schillern unter dem Zeiger. */
  translate: calc((0.5 - var(--pointer-x)) * 8%) calc((0.5 - var(--pointer-y)) * 8%);
  animation: film-drift-b 21s ease-in-out infinite alternate;
}

/* Dritte Schicht (seit 1.4.0): elliptische Ringe, dreht gegenläufig und langsamer, folgt dem Zeiger über Kreuz.
   Macht die Haut „wirrer“, ohne dass etwas scharf wird. */
.bubble__film--c {
  background: repeating-radial-gradient(
    ellipse at 50% 30%,
    rgb(121 255 184 / 0%) 0,
    rgb(121 255 184 / 55%) 22px,
    rgb(157 128 255 / 60%) 44px,
    rgb(255 111 207 / 50%) 64px,
    rgb(121 255 184 / 0%) 88px
  );
  mix-blend-mode: overlay;
  opacity: 0.55;
  translate: calc((var(--pointer-y) - 0.5) * 6%) calc((0.5 - var(--pointer-x)) * 6%);
  animation: film-drift-c 27s ease-in-out infinite alternate;
}

@keyframes film-drift-c {
  from {
    transform: translate(0, 0) rotate(0) scale(1);
  }

  to {
    transform: translate(6%, -6%) rotate(80deg) scale(1.1);
  }
}

.bubble__vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(100% 80% at 50% 45%, transparent 45%, rgb(5 8 18 / 60%));
}

/* Lichtpunkt unter Maus oder Finger: hellt die Farben weich auf, dazu ein kleiner Glanzfleck */
.bubble__glint,
.bubble__glint::after {
  position: absolute;
  inset: 0;
  opacity: var(--pointer-strength);
}

.bubble__glint {
  --glint-at: calc(var(--pointer-x) * 100%) calc(var(--pointer-y) * 100%);

  background: radial-gradient(circle at var(--glint-at), rgb(255 255 255 / 45%), rgb(255 255 255 / 0%) 45%);
  mix-blend-mode: overlay;
}

.bubble__glint::after {
  content: "";
  background: radial-gradient(circle at var(--glint-at), rgb(255 255 255 / 30%), rgb(255 255 255 / 0%) 16%);
  mix-blend-mode: screen;
}

@keyframes film-drift-a {
  from {
    transform: translate(0, 0) rotate(0) scale(1);
  }

  to {
    transform: translate(8%, 6%) rotate(40deg) scale(1.15);
  }
}

@keyframes film-drift-b {
  from {
    transform: translate(0, 0) rotate(0);
  }

  to {
    transform: translate(-8%, -10%) rotate(-55deg) scale(0.92);
  }
}

/* Glanzkante, damit es nach Oberfläche aussieht */
.book__gloss {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgb(255 255 255 / 0%) 30%, rgb(255 255 255 / 16%) 42%, rgb(255 255 255 / 0%) 54%),
    linear-gradient(to bottom, rgb(255 255 255 / 8%), rgb(255 255 255 / 0%) 30%);
  pointer-events: none;
}

/* ---------- Band 2: grauer Platzhalter, ohne Bewegung ---------- */

.book--placeholder .book__cover {
  background: linear-gradient(160deg, var(--placeholder-top), var(--placeholder-bottom));
  box-shadow:
    inset 0 0 0 1px rgb(255 255 255 / 5%),
    4px 4px 0 -1px #59606d,
    7px 7px 0 -2px #3b414c,
    18px 26px 40px rgb(0 0 0 / 55%);
}

.volume--later .volume__number {
  color: var(--color-ink-soft);
}

/* ---------- Schlichte Form (seit 1.1.0) ----------
   Abgerundetes Rechteck statt Buch mit Seitenschnitt: passt auch zum E-Book. Der Falz links bleibt.
   Ohne die Klasse shelf--flat im HTML erscheint wieder die Buchform aus Version 1.0.0. */

.shelf--flat .book__cover {
  border-radius: var(--radius-book-flat);
  box-shadow:
    inset 0 0 0 1px rgb(255 255 255 / 8%),
    0 18px 40px rgb(0 0 0 / 60%);
}

.shelf--flat .book--placeholder .book__cover {
  box-shadow:
    inset 0 0 0 1px rgb(255 255 255 / 6%),
    0 18px 40px rgb(0 0 0 / 50%);
}

.shelf--flat .book__gloss {
  background: linear-gradient(to bottom, rgb(255 255 255 / 9%), rgb(255 255 255 / 0%) 35%);
}

.shelf--flat .book--bubble:focus-visible {
  border-radius: calc(var(--radius-book-flat) + 6px);
}

@media (width >= 760px) {
  .series {
    padding-bottom: 48px;
  }

  .shelf {
    --book-width: 210px;

    gap: 40px 72px;
    max-width: 640px;
  }

  .volume__number {
    font-size: 28px;
  }
}

/* ---- soap-bubbles.css ---- */
/* Weiche Schillerflecken, die in der Seifenhaut von Band 1 auftauchen und vergehen (erzeugt von bubble-spawner.js).
   Marco: „darf nichts scharf sein. es muss wie eine haut aussehen … wie jetzt, nur wirrer“.
   Deshalb: keine Ränder, keine Glanzlichter, alles weichgezeichnet und in die Haut hineingemischt.
   Nur 2D-Bewegung und Deckkraft, damit Chrome nichts stückweise neu zeichnen muss (siehe Fehler in 1.3.0).
   Das Skript setzt je Fleck: --x, --y (Mitte), --size (Durchmesser), --life (Dauer), --drift-x, --drift-y,
   --turn (Drehung über die Lebenszeit) und --cx, --cy (wo im Fleck die Ringe ihre Mitte haben). */

/* container-type macht „cqw“ nutzbar: 1cqw = 1 % der Buchbreite, so wachsen die Flecken mit dem Buch */
.bubble__spawn {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  container-type: inline-size;
}

/* ---------- Schillerfleck („Blase“ in der Haut) ---------- */

.soap-bubble {
  position: absolute;
  top: var(--y);
  left: var(--x);
  width: var(--size);
  aspect-ratio: 1;
  margin: calc(var(--size) / -2) 0 0 calc(var(--size) / -2);
  border-radius: 50%;
  background: repeating-radial-gradient(
    ellipse closest-side at var(--cx) var(--cy),
    rgb(255 80 200 / 0%) 0,
    rgb(255 80 200 / 75%) 18%,
    rgb(255 210 90 / 65%) 32%,
    rgb(90 255 170 / 55%) 46%,
    rgb(80 220 255 / 75%) 61%,
    rgb(150 110 255 / 65%) 75%,
    rgb(255 80 200 / 0%) 90%
  );

  /* Weicher Rand nach außen und Weichzeichnung: Der Fleck geht ohne Kante in die Haut über */
  mask: radial-gradient(circle closest-side, #000 25%, transparent 100%);
  filter: blur(7px);
  mix-blend-mode: screen;
  animation:
    soap-bubble-drift var(--life) cubic-bezier(0.3, 0.1, 0.4, 1) forwards,
    soap-bubble-breathe var(--life) ease-in-out forwards,
    soap-bubble-turn var(--life) ease-in-out forwards,
    soap-bubble-fade var(--life) ease-in-out forwards;
}

/* Jeder zweite Fleck färbt die Haut darunter um statt sie aufzuhellen: So entstehen neue dunkle Schlieren */
.soap-bubble--invert {
  mix-blend-mode: difference;
}

/* Kleine Flecken, die die Maus beim Drüberfahren in die Haut rührt */
.soap-bubble--small {
  filter: blur(6px);
}

@keyframes soap-bubble-drift {
  from {
    translate: 0 0;
  }

  to {
    translate: var(--drift-x) var(--drift-y);
  }
}

/* Aufquellen, dann ungleichmäßiges Wabern wie eine Haut, die atmet */
@keyframes soap-bubble-breathe {
  0% {
    scale: 0.3;
  }

  20% {
    scale: 1.05 0.92;
  }

  40% {
    scale: 0.9 1.08;
  }

  60% {
    scale: 1.1 0.95;
  }

  80% {
    scale: 0.95 1.06;
  }

  100% {
    scale: 1.25 1.15;
  }
}

@keyframes soap-bubble-turn {
  from {
    rotate: 0deg;
  }

  to {
    rotate: var(--turn);
  }
}

@keyframes soap-bubble-fade {
  0% {
    opacity: 0;
  }

  25% {
    opacity: 0.95;
  }

  70% {
    opacity: 0.85;
  }

  100% {
    opacity: 0;
  }
}

/* Berührt die Maus einen Fleck, zerfließt er: wird schnell weit und verblasst */
.soap-bubble--pop {
  animation: soap-bubble-pop 0.7s ease-out forwards;
}

@keyframes soap-bubble-pop {
  0% {
    scale: 1;
    opacity: 0.95;
  }

  100% {
    scale: 1.9;
    opacity: 0;
  }
}

/* ---------- Farbwirbel: eine Stelle, an der die Haut kurz neu schillert ---------- */

.soap-swirl {
  position: absolute;
  top: var(--y);
  left: var(--x);
  width: var(--size);
  aspect-ratio: 1;
  margin: calc(var(--size) / -2) 0 0 calc(var(--size) / -2);
  border-radius: 50%;
  background: radial-gradient(
    circle closest-side,
    rgb(255 213 107 / 55%) 0,
    rgb(255 111 207 / 60%) 22%,
    rgb(95 240 255 / 0%) 38%,
    rgb(95 240 255 / 60%) 52%,
    rgb(157 128 255 / 55%) 66%,
    rgb(121 255 184 / 30%) 80%,
    rgb(121 255 184 / 0%) 100%
  );
  filter: blur(6px);
  mix-blend-mode: overlay;
  animation:
    soap-swirl-grow var(--life) ease-out forwards,
    soap-swirl-fade var(--life) ease-in-out forwards;
}

@keyframes soap-swirl-grow {
  from {
    scale: 0.2;
    rotate: 0deg;
  }

  to {
    scale: 1.5;
    rotate: 70deg;
  }
}

@keyframes soap-swirl-fade {
  0% {
    opacity: 0;
  }

  30% {
    opacity: 0.9;
  }

  100% {
    opacity: 0;
  }
}

/* ---- dialog.css ---- */
/* Das Fenster mit dem Stand von Band 1.
   Am Handy fährt es von unten herein, am großen Bildschirm steht es mittig. */

.book-dialog {
  width: 100%;
  max-width: 100%;
  max-height: 90svh;
  margin: auto 0 0;
  padding: 0;
  border: 0;
  border-radius: var(--radius-panel) var(--radius-panel) 0 0;
  background: transparent;
  color: var(--color-ink);
  overflow: hidden;
}

.book-dialog[open] {
  display: flex;
  animation: dialog-rise 0.45s var(--ease-soft);
}

.book-dialog::backdrop {
  background: rgb(2 4 9 / 72%);
  backdrop-filter: blur(6px);
}

@keyframes dialog-rise {
  from {
    transform: translateY(40px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.book-dialog__panel {
  position: relative;
  width: 100%;
  overflow-y: auto;
  padding: 30px 22px calc(28px + env(safe-area-inset-bottom));
  border: 1px solid var(--color-line);
  border-bottom: 0;
  border-radius: inherit;
  background:
    radial-gradient(120% 60% at 50% 0%, rgb(60 110 190 / 18%), transparent 70%),
    linear-gradient(to bottom, #0b1526, var(--color-night-raised));
  overscroll-behavior: contain;
}

.book-dialog__close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgb(255 255 255 / 6%);
  color: var(--color-ink-soft);
  cursor: pointer;
}

.book-dialog__close:hover {
  background: rgb(255 255 255 / 12%);
  color: var(--color-ink);
}

.book-dialog__close svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentcolor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.book-dialog__kicker {
  margin: 0;
  color: var(--color-ice);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.book-dialog__title {
  margin: 2px 0 0;
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 600;
  line-height: 1;
}

.book-dialog__subline {
  margin: 6px 0 0;
  color: var(--color-ink-soft);
  font-family: var(--font-display);
  font-size: 20px;
  font-style: italic;
  font-weight: 500;
  line-height: 1.25;
}

.book-dialog__teaser {
  margin: 22px 0 0;
  padding: 2px 0 2px 16px;
  border-left: 2px solid transparent;
  border-image: linear-gradient(to bottom, var(--bubble-cyan), var(--bubble-violet), var(--bubble-rose)) 1;
  color: var(--color-ink);
  font-family: var(--font-display);
  font-size: 19px;
  font-style: italic;
  font-weight: 500;
  line-height: 1.35;
}

.book-dialog__teaser p {
  margin: 0;
}

.book-dialog__teaser p + p {
  margin-top: 8px;
}

.book-dialog__section {
  margin: 28px 0 14px;
  color: var(--color-ink-faint);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

/* ---------- Fortschritt als senkrechte Zeitleiste ---------- */

.progress {
  --marker-size: 18px;

  margin: 0;
  padding: 0;
  list-style: none;
}

.progress__step {
  position: relative;
  display: grid;
  gap: 1px;
  padding: 0 0 18px 34px;
}

/* Verbindungslinie zum nächsten Schritt */
.progress__step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: calc(var(--marker-size) + 4px);
  bottom: 2px;
  left: calc(var(--marker-size) / 2 - 1px);
  width: 2px;
  border-radius: 1px;
  background: var(--color-line);
}

.progress__step--done:not(:last-child)::after {
  background: rgb(154 214 255 / 45%);
}

/* Markierung: Ring (offen), halb gefüllt (läuft), gefüllt mit Haken (fertig) */
.progress__step::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 0;
  width: var(--marker-size);
  height: var(--marker-size);
  border: 2px solid var(--color-ink-faint);
  border-radius: 50%;
  background: var(--color-night-raised);
}

.progress__step--done::before {
  border-color: var(--color-ice);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.4l2.6 2.6L12 5.4' fill='none' stroke='%2304070d' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
      center / 12px no-repeat,
    var(--color-ice);
}

.progress__step--current::before {
  border-color: var(--color-ice);
  background: linear-gradient(to right, var(--color-ice) 50%, var(--color-night-raised) 50%);
  box-shadow: 0 0 0 0 var(--color-ice-glow);
  animation: current-pulse 2.4s ease-out infinite;
}

@keyframes current-pulse {
  0% {
    box-shadow: 0 0 0 0 rgb(154 214 255 / 45%);
  }

  100% {
    box-shadow: 0 0 0 10px rgb(154 214 255 / 0%);
  }
}

.progress__label {
  font-weight: 600;
  font-size: 15px;
}

.progress__step:not(.progress__step--done, .progress__step--current) .progress__label {
  color: var(--color-ink-soft);
}

.progress__detail {
  color: var(--color-ink-soft);
  font-size: 14px;
}

.book-dialog__note {
  margin: 8px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--color-line);
  color: var(--color-ink-soft);
  font-size: 14px;
}

@media (width >= 760px) {
  .book-dialog {
    width: min(520px, calc(100% - 48px));
    max-height: min(86svh, 760px);
    margin: auto;
    border-radius: var(--radius-panel);
  }

  .book-dialog[open] {
    animation-name: dialog-appear;
  }

  .book-dialog__panel {
    padding: 36px 36px 32px;
    border-bottom: 1px solid var(--color-line);
  }

  .book-dialog__title {
    font-size: 52px;
  }
}

@keyframes dialog-appear {
  from {
    transform: translateY(12px) scale(0.98);
    opacity: 0;
  }

  to {
    transform: none;
    opacity: 1;
  }
}

/* ---- legal.css ---- */
/* Impressum und Datenschutz: ruhige Textseite im selben Nachtblau, kompakt und gut lesbar.
   Dazu die Rechtliches-Links in der Fußzeile der Startseite. */

.site-footer__legal {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 0 0 6px;
}

.site-footer__legal a {
  color: var(--color-ink-soft);
  text-decoration-color: rgb(174 187 208 / 35%);
}

.legal-header {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: calc(18px + env(safe-area-inset-top)) var(--page-gutter) 0;
}

.legal-header__back {
  color: var(--color-ink);
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  text-decoration: none;
}

.legal-header__back::before {
  content: "‹ ";
  color: var(--color-ice);
}

.legal {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 24px var(--page-gutter) 0;
  color: var(--color-ink-soft);
  font-size: 14px;
  line-height: 1.6;
}

.legal__title {
  margin: 0 0 20px;
  color: var(--color-ink);
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 600;
  line-height: 1.05;
}

.legal__block {
  margin: 0 0 20px;
}

.legal h2:not(.legal__title),
.legal h3 {
  margin: 0 0 4px;
  color: var(--color-ink);
  font-size: 14px;
  font-weight: 600;
}

.legal p {
  margin: 0 0 8px;
}

.legal__part {
  margin-top: 44px;
  padding-top: 32px;
  border-top: 1px solid var(--color-line);
  scroll-margin-top: 16px;
}

.legal__stand {
  color: var(--color-ink-faint);
  font-size: 13px;
}
