/* ============================================================
   Schimmerpfad
   Reveal-sichere Buchwelt für „Wenn das Leben dir Grün schenkt“.

   Die Sebi-Ebene bleibt weich und offen. Die Buch-Ebene ergänzt
   Wald, Schotter, Papier, Wasserlicht und eine klare Weglogik.
   ============================================================ */

:root {
  --sp-forest-night: #142d26;
  --sp-paper: #eee8da;
  --sp-lake: #6f9fb4;
  --sp-joy: #b8ce3f;
  --sp-elli: #7d5d96;
  --sp-lantern: #d49a5b;
  --sp-leaf: #315f51;
  --sp-meadow-wash: #d8e8de;
  --sp-meadow-edge: #9fbdad;
  --radius-paper: 10px;
  --radius-surface: 20px;
}

/* ---------- Signatur: Weg und Uferkante ---------- */
.schimmer-line {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: clamp(54px, 9vw, 112px);
  overflow: visible;
  pointer-events: none;
}

.schimmer-line path {
  fill: none;
  vector-effect: non-scaling-stroke;
  stroke-linecap: round;
}

.schimmer-line__shadow {
  stroke: color-mix(in oklab, var(--sp-forest-night) 18%, transparent);
  stroke-width: 9;
  opacity: 0.32;
}

.schimmer-line__glint {
  stroke: color-mix(in oklab, var(--sp-lake) 74%, var(--cream));
  stroke-width: 2;
}

.hero__inner {
  z-index: 3;
}

/* ---------- Startseite: ruhiger Einstieg ---------- */
.hero--home .hero__bg {
  background:
    radial-gradient(58% 72% at 82% 12%, color-mix(in oklab, var(--sp-lake) 29%, var(--cream)) 0%, transparent 66%),
    radial-gradient(48% 60% at 9% 96%, color-mix(in oklab, var(--sp-elli) 16%, var(--cream)) 0%, transparent 68%),
    var(--cream);
}

/* Der Buchtitel bekommt ein klares Blattgrün statt Text im Pride-Verlauf. */
.hero--home.hero--schimmerpfad .hero__hook em {
  background: none;
  color: var(--sp-leaf);
  -webkit-text-fill-color: var(--sp-leaf);
}

/* Papierige, grüne Passepartout-Fläche hinter dem finalen Cover. */
.hero--home.hero--schimmerpfad .hero__stage::before {
  border: 1px solid var(--sp-meadow-edge);
  background: var(--sp-meadow-wash);
  opacity: 0.86;
}

.hero--home .cover-card {
  border-radius: var(--radius-paper);
  transform: rotate(-0.8deg);
  animation: none !important;
  box-shadow:
    0 1px 2px var(--berry-15),
    12px 18px 48px -26px var(--berry-45);
}

.hero--home .hero__stage:hover .cover-card {
  transform: rotate(0deg) translateY(-2px);
}

.cover-reveal-note {
  overflow: visible;
  padding: 0.78em 1.05em 0.68em;
  border: 1px solid color-mix(in oklab, var(--sp-forest-night) 20%, transparent);
  border-radius: 3px;
  background: #f7f1e4;
  color: #17342b;
  box-shadow: 5px 8px 20px -13px rgba(20, 45, 38, 0.55);
  transform: translateX(-50%) rotate(-1.2deg);
}

.cover-reveal-note::before {
  inset: -6px auto auto 18px;
  width: 11px;
  height: 11px;
  border: 2px solid #f7f1e4;
  border-radius: 50%;
  background: var(--sp-lantern);
  box-shadow: 0 2px 5px rgba(20, 45, 38, 0.28);
}

.cover-reveal-note__date {
  color: #17342b;
}

/* Drei echte Wege statt drei gleichartiger App-Karten. */
.book-paths {
  grid-template-columns: 1.28fr 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--berry-15);
  border-bottom: 1px solid var(--berry-15);
}

.book-path {
  --path-accent: var(--sp-lake);
  min-height: 286px;
  padding: clamp(26px, 3vw, 38px);
  overflow: visible;
  border: 0;
  border-right: 1px solid var(--berry-15);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transition: background-color 0.25s ease, transform 0.25s ease;
}

.book-path:last-child {
  border-right: 0;
}

.book-path--primary {
  --path-accent: var(--sp-elli);
  background: color-mix(in oklab, var(--sp-paper) 34%, var(--cream));
}

.book-path--people {
  --path-accent: var(--sp-joy);
}

.book-path--place {
  --path-accent: var(--sp-lake);
}

.book-path::before {
  inset: -1px auto auto clamp(26px, 3vw, 38px);
  width: 52px;
  height: 3px;
  background: var(--path-accent);
  opacity: 1;
}

.book-path:hover,
.book-path.reveal.is-in:hover {
  transform: translateY(-3px);
  border-color: var(--berry-15);
  background: color-mix(in oklab, var(--path-accent) 9%, var(--cream));
  box-shadow: none;
}

.book-path__icon {
  width: 36px;
  height: 36px;
  margin-bottom: 28px;
  border-radius: 0;
  background: transparent;
  color: color-mix(in oklab, var(--path-accent) 72%, var(--berry));
  box-shadow: none;
}

.book-path__label {
  color: color-mix(in oklab, var(--path-accent) 58%, var(--berry));
}

/* ---------- Die konkrete Buchwelt ---------- */
.book-page[data-world="wald"] {
  --berry: #19382f;
  --cream: #f8f4ea;
  --bw-tint: #d8e3dc;
  --bw-accent: #315f51;
  --bw-ink: #315f51;
  --hero-tint: var(--bw-tint);
  --map-paper: #eee8da;
  --map-ink: #19382f;
  --map-path: #6f9fb4;
  --map-marker: #b8ce3f;
  color: var(--berry);
  background: var(--cream);
}

.book-page .section,
.book-page .hero,
.book-trail {
  scroll-margin-top: 84px;
}

.book-page .hero--book {
  min-height: min(760px, 92vh);
  padding-bottom: clamp(78px, 9vw, 118px);
  background: var(--cream);
}

.book-page .hero__photo img {
  transform: scale(1.015);
  filter: blur(1px) saturate(0.88) contrast(0.96) brightness(1.02);
}

.book-page .hero--book.has-photo .hero__bg {
  background:
    linear-gradient(90deg,
      color-mix(in oklab, var(--cream) 97%, transparent) 0%,
      color-mix(in oklab, var(--cream) 92%, transparent) 34%,
      color-mix(in oklab, var(--cream) 62%, transparent) 57%,
      color-mix(in oklab, var(--bw-tint) 26%, transparent) 100%),
    linear-gradient(0deg, color-mix(in oklab, var(--cream) 38%, transparent), transparent 60%);
}

.book-page .hero__text {
  max-width: 40rem;
}

.book-page__title {
  max-width: 13ch;
  color: var(--berry);
  text-shadow: 0 1px 0 color-mix(in oklab, var(--cream) 74%, transparent);
}

.book-page .hero__stage::before {
  inset: -5% -8% -7%;
  border: 1px solid color-mix(in oklab, var(--sp-joy) 42%, var(--cream));
  border-radius: 14px;
  background: color-mix(in oklab, var(--sp-joy) 16%, var(--cream));
  transform: rotate(1.2deg);
  opacity: 0.9;
}

.book-page .cover-card {
  border-radius: 5px;
  transform: rotate(-0.6deg);
  box-shadow:
    0 1px 2px color-mix(in oklab, var(--berry) 18%, transparent),
    14px 24px 54px -30px color-mix(in oklab, var(--berry) 64%, transparent);
}

.book-page .hero__stage:hover .cover-card {
  transform: rotate(0deg) translateY(-2px);
}

.book-page .pill {
  border-color: color-mix(in oklab, var(--bw-accent) 30%, transparent);
  background: color-mix(in oklab, var(--cream) 86%, transparent);
  box-shadow: none;
}

.book-page .btn {
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

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

/* ---------- Buchpfad-Navigation ---------- */
.book-trail {
  position: relative;
  z-index: 5;
  background: var(--sp-forest-night);
  color: #f5efe2;
  box-shadow: 0 14px 30px -28px rgba(20, 45, 38, 0.9);
}

.book-trail__list {
  position: relative;
  display: flex;
  margin: 0;
  padding: 21px 0 19px;
  overflow-x: auto;
  list-style: none;
  scrollbar-width: thin;
  scrollbar-color: rgba(245, 239, 226, 0.3) transparent;
}

.book-trail__list::before {
  content: "";
  position: absolute;
  top: 31px;
  right: 7%;
  left: 7%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(245, 239, 226, 0.28) 8%, rgba(245, 239, 226, 0.28) 92%, transparent);
}

.book-trail__list li {
  position: relative;
  flex: 1 0 142px;
  min-width: 0;
  text-align: center;
}

.book-trail__list li::before {
  content: "";
  position: relative;
  z-index: 1;
  display: block;
  width: 9px;
  height: 9px;
  margin: 6px auto 9px;
  border: 2px solid var(--sp-forest-night);
  border-radius: 50%;
  background: var(--sp-joy);
  box-shadow: 0 0 0 1px rgba(245, 239, 226, 0.46);
}

.book-trail__list li:nth-child(even)::before {
  background: var(--sp-elli);
}

.book-trail a {
  display: block;
  padding: 0 9px 4px;
  color: inherit;
  text-decoration: none;
}

.book-trail__place,
.book-trail__label {
  display: block;
}

.book-trail__place {
  color: rgba(245, 239, 226, 0.62);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.3;
  text-transform: uppercase;
}

.book-trail__label {
  margin-top: 3px;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.2;
}

.book-trail a:hover .book-trail__label,
.book-trail a:focus-visible .book-trail__label {
  color: var(--sp-joy);
}

/* ---------- Redaktionelle Flächen ---------- */
.book-page .book-intro {
  background: color-mix(in oklab, var(--sp-paper) 54%, var(--cream));
}

.book-page .book-intro__side,
.book-page .cn-box {
  border-radius: var(--radius-paper);
  box-shadow: 7px 9px 0 color-mix(in oklab, var(--sp-lake) 11%, transparent);
}

.book-page .trope {
  box-shadow: none;
}

.book-page .book-sample {
  background:
    linear-gradient(120deg, color-mix(in oklab, var(--sp-lake) 10%, transparent), transparent 44%),
    color-mix(in oklab, var(--sp-paper) 26%, var(--cream));
}

.sample-card {
  max-width: 72ch;
  max-height: 370px;
  padding: clamp(34px, 5vw, 64px) clamp(25px, 6vw, 72px);
  border: 1px solid color-mix(in oklab, var(--berry) 14%, transparent);
  border-radius: var(--radius-paper);
  background:
    linear-gradient(90deg, color-mix(in oklab, var(--sp-lantern) 14%, transparent), transparent 8%),
    var(--cream);
  box-shadow:
    10px 12px 0 color-mix(in oklab, var(--sp-lake) 12%, transparent),
    0 22px 50px -38px var(--berry-45);
  color: var(--berry-80);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.04rem, 1.3vw, 1.12rem);
  line-height: 1.86;
}

.sample-card::before {
  content: "";
  position: absolute;
  top: 22px;
  bottom: 22px;
  left: clamp(13px, 2.4vw, 29px);
  width: 1px;
  background: color-mix(in oklab, var(--sp-lantern) 44%, transparent);
}

.sample-card__chapter {
  margin: 0 0 2.2em;
  color: var(--berry);
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
}

.sample-card__chapter span {
  display: block;
  margin-bottom: 0.55em;
  color: var(--berry-65);
  font-family: var(--font-body);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.sample-card__text {
  max-width: 64ch;
  margin-inline: auto;
}

.sample-card__fade {
  background: linear-gradient(to bottom, transparent, var(--cream));
}

/* ---------- Figuren wie gedruckte Sammlerstücke ---------- */
.book-page .chars {
  background: color-mix(in oklab, var(--sp-elli) 12%, var(--cream));
}

.book-page .char {
  --char-accent: var(--sp-elli);
  overflow: visible;
  border: 1px solid color-mix(in oklab, var(--char-accent) 30%, transparent);
  border-radius: var(--radius-paper);
  background: color-mix(in oklab, var(--sp-paper) 36%, var(--cream));
  box-shadow:
    8px 10px 0 color-mix(in oklab, var(--char-accent) 10%, transparent),
    0 18px 42px -34px var(--berry-45);
}

.book-page .char:nth-child(even) {
  --char-accent: var(--sp-joy);
  background: color-mix(in oklab, var(--sp-paper) 22%, var(--cream));
}

.book-page .char:hover {
  transform: translateY(-2px);
  box-shadow:
    8px 12px 0 color-mix(in oklab, var(--char-accent) 12%, transparent),
    0 24px 48px -36px var(--berry-45);
}

.book-page .char__photo {
  margin: 14px 0 14px 14px;
  border-radius: 5px;
  background: var(--sp-paper);
}

.book-page .char:nth-child(even) .char__photo {
  margin: 14px 14px 14px 0;
}

.book-page .char__photo img {
  filter: saturate(0.92) contrast(0.98);
}

.book-page .char:hover .char__photo img {
  transform: scale(1.012);
}

.char__folio {
  margin: 0 0 1.2em;
  color: var(--berry-65);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.book-page .char__role {
  color: color-mix(in oklab, var(--char-accent) 68%, var(--berry));
}

.book-page .char-facts {
  border-top: 1px solid color-mix(in oklab, var(--char-accent) 22%, transparent);
}

.book-page .char-facts__ic {
  width: 28px;
  height: 28px;
  flex-basis: 28px;
  border-radius: 3px;
  background: color-mix(in oklab, var(--char-accent) 12%, var(--cream));
  color: color-mix(in oklab, var(--char-accent) 68%, var(--berry));
}

/* ---------- Rest der Buchseite: weniger App, mehr Papier ---------- */
.book-page .extra,
.book-page .newsletter-card,
.book-page .place-shot {
  border-radius: var(--radius-paper);
}

.book-page .extra {
  box-shadow: 0 14px 34px -30px var(--berry-45);
}

.book-page .book-place {
  background: color-mix(in oklab, var(--sp-lake) 13%, var(--cream));
}

.book-page .newsletter-card {
  border: 1px solid color-mix(in oklab, var(--sp-joy) 26%, transparent);
  background: var(--sp-forest-night);
  box-shadow: 10px 12px 0 color-mix(in oklab, var(--sp-joy) 15%, transparent);
}

/* ---------- Dark Mode: nächtlicher See, nicht bloß Schwarz ---------- */
:root[data-theme="dark"] {
  --sp-leaf: #b8ce3f;
  --sp-meadow-wash: #30443b;
  --sp-meadow-edge: #668071;
}

:root[data-theme="dark"] .book-page[data-world="wald"] {
  --berry: #f1ebdd;
  --cream: #13251f;
  --bw-tint: #25483d;
  --bw-accent: #b8ce3f;
  --bw-ink: #d5e5aa;
  --map-paper: #1a3028;
  --map-ink: #f1ebdd;
  --map-path: #8bb5c8;
  --map-marker: #b8ce3f;
}

:root[data-theme="dark"] .book-page[data-world="wald"] .btn:not(.btn--ghost) {
  --btn-fg: var(--sp-forest-night);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --sp-leaf: #b8ce3f;
    --sp-meadow-wash: #30443b;
    --sp-meadow-edge: #668071;
  }

  :root:not([data-theme="light"]) .book-page[data-world="wald"] {
    --berry: #f1ebdd;
    --cream: #13251f;
    --bw-tint: #25483d;
    --bw-accent: #b8ce3f;
    --bw-ink: #d5e5aa;
    --map-paper: #1a3028;
    --map-ink: #f1ebdd;
    --map-path: #8bb5c8;
    --map-marker: #b8ce3f;
  }

  :root:not([data-theme="light"]) .book-page[data-world="wald"] .btn:not(.btn--ghost) {
    --btn-fg: var(--sp-forest-night);
  }
}

@media (max-width: 880px) {
  .book-paths {
    grid-template-columns: 1fr;
    border-bottom: 0;
  }

  .book-path {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--berry-15);
  }

  .book-page .hero--book {
    min-height: 0;
  }

  .book-page .hero--book.has-photo .hero__bg {
    background:
      linear-gradient(180deg,
        color-mix(in oklab, var(--cream) 88%, transparent) 0%,
        color-mix(in oklab, var(--cream) 76%, transparent) 55%,
        color-mix(in oklab, var(--cream) 96%, transparent) 100%),
      color-mix(in oklab, var(--bw-tint) 18%, transparent);
  }
}

@media (max-width: 760px) {
  .book-trail .wrap {
    padding-inline: 0;
  }

  .book-trail__list {
    padding-inline: var(--pad-x);
  }

  .book-page .char__photo,
  .book-page .char:nth-child(even) .char__photo {
    margin: 12px 12px 0;
    border-radius: 5px;
  }
}

@media (max-width: 560px) {
  .sample-card {
    padding-inline: 30px 22px;
    box-shadow: 6px 8px 0 color-mix(in oklab, var(--sp-lake) 12%, transparent);
  }

  .sample-card::before {
    left: 14px;
  }

  .book-trail__list li {
    flex-basis: 132px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .book-page .cover-card,
  .book-path,
  .book-page .char,
  .book-page .char__photo img {
    transition: none;
  }
}
