/* =====================================================================
   THE HOUSE OF JUNO · Lesesaal (/lesesaal/ und /lesesaal/lesen/)
   Baut auf haus.css auf (Schriften, Farben, Kopf, Knöpfe).
   Jedes Buch bringt seine Stimmung über .ls-b--<buch> mit:
   Deckel, Vorsatz, Papier, Tinte, Akzent.
   ===================================================================== */
.ls-b--7-shades-of-you {
  --b-deckel: #B9ABA8; --b-deckel-tinte: #F8F2F2; --b-vorsatz: #6d5764;
  --b-papier: #FBF6F4; --b-tinte: #3f3437; --b-leise: #6d5764; --b-akzent: #B08848;
  --b-bild: url(/lesesaal/bilder/7-shades-of-you.jpg); --b-bild-pos: 50% 50%;
  --b-schleier: none;
}
.ls-b--das-aphrodite-prinzip {
  --b-deckel: #222D24; --b-deckel-tinte: #F2EBDA; --b-vorsatz: #222D24;
  --b-papier: #F8F3E7; --b-tinte: #283128; --b-leise: #43533F; --b-akzent: #B0883F;
  --b-bild: url(/lesesaal/bilder/das-aphrodite-prinzip.jpg); --b-bild-pos: 50% 50%;
  --b-schleier: none;
}
.ls-b--mad-girl-bad-girl {
  --b-deckel: #271E23; --b-deckel-tinte: #E9E2DD; --b-vorsatz: #271E23;
  --b-papier: #F3EEEA; --b-tinte: #271E23; --b-leise: #5a4750; --b-akzent: #B57C84;
  --b-bild: url(/lesesaal/bilder/mad-girl-bad-girl.jpg); --b-bild-pos: 50% 50%;
  --b-schleier: none;
  --b-titel-schrift: 'Helvetica Neue', Helvetica, Arial, sans-serif; --b-titel-gewicht: 800; --b-titel-abstand: -0.03em; --b-titel-gross: uppercase;
}
.ls-b--das-geheime-pantheon-der-frau {
  --b-deckel: #F1EEEA; --b-deckel-tinte: #503529; --b-vorsatz: #503529;
  --b-papier: #F9F6F1; --b-tinte: #46392F; --b-leise: #6B5A4C; --b-akzent: #A9884B;
  --b-bild: url(/lesesaal/bilder/das-geheime-pantheon-der-frau.jpg); --b-bild-pos: 50% 50%; --b-schleier: none;
  --b-titel-abstand: 0.05em; --b-titel-gross: uppercase;
  --b-maeander: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 10' width='18' height='10'%3E%3Cpath d='M1 9 V1 H17 M13 1 V6 H6 V4 H10' fill='none' stroke='%23A9884B' stroke-width='1.2'/%3E%3C/svg%3E");
}

/* ── Buchdeckel (Regal und Lesepult benutzen denselben) ─────────── */
.ls-cover {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 100%; aspect-ratio: 2 / 3; container-type: inline-size;
  padding: 0 7%; text-align: center; overflow: hidden;
  color: var(--b-deckel-tinte);
  background: var(--b-deckel) var(--b-bild, none) var(--b-bild-pos, 50% 50%) / cover no-repeat;
  border-radius: 2px 6px 6px 2px;
}
.ls-cover::before { content: ''; position: absolute; inset: 0; background: var(--b-schleier, none); box-shadow: inset 0 0 0 1px rgba(26,26,24,.07); border-radius: inherit; }
.ls-cover::after { /* Falz am Buchrücken */
  content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: 7%;
  background: linear-gradient(90deg, rgba(0,0,0,.22) 0%, rgba(255,255,255,.16) 38%, rgba(0,0,0,.10) 62%, rgba(0,0,0,0) 100%);
}
.ls-cover > span { position: relative; z-index: 1; display: block; }
.ls-cover__riesig { font: 400 46cqw/0.8 'Oranienbaum', serif; letter-spacing: -0.04em; }
.ls-cover__gross {
  font-family: var(--b-titel-schrift, 'Oranienbaum', serif); font-weight: var(--b-titel-gewicht, 400);
  font-size: 13.5cqw; line-height: 1; letter-spacing: var(--b-titel-abstand, -0.04em); text-transform: uppercase;
  margin-top: 1.5cqw;
}
.ls-b--mad-girl-bad-girl .ls-cover__gross { font-size: 18cqw; line-height: 0.92; margin-top: 0; }
.ls-b--das-geheime-pantheon-der-frau .ls-cover__gross { font-size: 14.5cqw; margin: 3cqw 0; }
.ls-cover__klein { font: 500 4.6cqw/1.3 'Quicksand', sans-serif; letter-spacing: 0.34em; text-indent: 0.34em; text-transform: uppercase; }
.ls-cover__zier { width: 32cqw; height: 10px; margin-top: 6cqw; background: var(--b-maeander, none) repeat-x 0 0 / 18px 10px; }
.ls-cover > .ls-cover__autorin { position: absolute; left: 0; right: 0; bottom: 7cqw; font: 400 6cqw/1 'Oranienbaum', serif; letter-spacing: -0.04em; }

/* ── Regal ─────────────────────────────────────────────────────── */
.ls-regal { list-style: none; margin: 0; padding: 0 0 clamp(48px, 8vw, 96px); display: grid; gap: clamp(36px, 5vw, 56px) clamp(24px, 3.4vw, 44px); }
.ls-platz { display: grid; grid-template-columns: minmax(0, 132px) 1fr; gap: 22px; align-items: center; }
.ls-platz__buch { position: relative; display: block; perspective: 900px; text-decoration: none; border-radius: 2px 6px 6px 2px; }
.ls-platz__buch::before { /* Buchblock: wird sichtbar, wenn der Deckel sich hebt */
  content: ''; position: absolute; top: 1.5%; bottom: 1.5%; left: 3%; right: -1.5%;
  background: repeating-linear-gradient(90deg, #fff 0 2px, #e9e3d9 2px 3px); border-radius: 0 4px 4px 0;
  box-shadow: 0 18px 34px rgba(26,26,24,.16);
}
.ls-platz__buch .ls-cover {
  transform-origin: left center; transition: transform .55s cubic-bezier(.22,.61,.36,1), box-shadow .55s;
  box-shadow: 0 10px 22px rgba(26,26,24,.14);
}
.ls-platz__buch:hover .ls-cover, .ls-platz__buch:focus-visible .ls-cover { transform: rotateY(-24deg); box-shadow: 14px 16px 30px rgba(26,26,24,.18); }
.ls-platz__text { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.ls-platz__text h2 { font-size: clamp(24px, 3vw, 30px); line-height: 1.08; margin: 0; }
.ls-platz__text p { margin: 0 0 6px; color: var(--leise); font-size: 15px; line-height: 1.5; }
@media (min-width: 620px) {
  .ls-regal { grid-template-columns: repeat(2, 1fr); }
  .ls-platz { grid-template-columns: 1fr; align-items: start; gap: 22px; }
  .ls-platz__buch { max-width: 250px; }
}
@media (min-width: 1040px) { .ls-regal { grid-template-columns: repeat(4, 1fr); } }

/* ── Lesepult ──────────────────────────────────────────────────── */
body.ls-lesend { overflow: hidden; background: color-mix(in srgb, var(--papier) 90%, var(--b-deckel, #ece6dc)); }
.ls { display: flex; flex-direction: column; height: calc(100vh - var(--ls-kopf, 76px)); height: calc(100dvh - var(--ls-kopf, 76px)); padding: 0 var(--rand) env(safe-area-inset-bottom); }
.ls-leiste { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: 12px 0; font-size: 15px; }
.ls-zurueck, .ls-kaufen { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; text-decoration: none; color: var(--tinte); }
.ls-zurueck svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.ls-werkzeug { justify-self: end; display: flex; align-items: center; gap: clamp(12px, 2vw, 24px); }
.ls-schrift { display: flex; gap: 6px; }
.ls-schrift button { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; background: var(--papier); border: 1px solid var(--rahmen); color: var(--tinte); font: 400 17px/1 'Oranienbaum', serif; transition: background-color .25s, border-color .25s, opacity .25s; }
.ls-schrift button:first-child { font-size: 13px; }
.ls-schrift button:hover:not(:disabled) { background: var(--sand); border-color: var(--tinte); }
.ls-schrift button:disabled { opacity: .3; cursor: default; }
.ls-kaufen { font-weight: 600; text-decoration: underline; text-decoration-color: var(--b-akzent, var(--rose)); text-underline-offset: 5px; }
.ls-zurueck:hover, .ls-kaufen:hover { color: var(--rose); }
.ls-titel { margin: 0; font-size: clamp(18px, 2.2vw, 24px); line-height: 1.1; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ls-buehne { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; gap: clamp(10px, 2vw, 28px); perspective: 2600px; }
.ls-pfeil {
  flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: var(--papier); border: 1px solid var(--rahmen); color: var(--tinte);
  transition: background-color .25s, border-color .25s, opacity .25s;
}
.ls-pfeil svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.ls-pfeil:hover:not(:disabled) { background: var(--sand); border-color: var(--tinte); }
.ls-pfeil:disabled { opacity: .3; cursor: default; }
.ls-fuss { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 0 16px; }
.ls-zaehler { margin: 0; font-size: 14px; color: var(--leise); min-height: 1.6em; }
.ls-fortschritt { width: min(320px, 70%); height: 2px; background: var(--rahmen); }
.ls-fortschritt span { display: block; height: 100%; width: 0; background: var(--b-akzent, var(--rose)); transition: width .5s cubic-bezier(.22,.61,.36,1); }
.ls-fehler { text-align: center; padding: 40px 0; }

/* Das Buch */
.ls-buch {
  position: relative; flex: none; display: flex; justify-content: flex-end;
  width: var(--bw, 0); height: var(--ph, 0);
  transform-style: preserve-3d; transition: transform .9s cubic-bezier(.22,.61,.36,1);
}
/* Schatten als eigene Fläche hinter dem Buch (ein Filter auf dem Buch würde den Text bei jedem Bild neu zeichnen) */
.ls-buch::before { content: ''; position: absolute; top: 0; bottom: 0; left: 0; right: 0; border-radius: 6px; box-shadow: 0 22px 34px rgba(26,26,24,.20); z-index: -1; pointer-events: none; }
.ls-buch--zu.ls-buch--doppel::before { left: 50%; }
.ls-buch--zu.ls-buch--doppel { transform: translateX(-25%); }
.ls-buch--zu .ls-links { visibility: hidden; }
.ls-seite {
  position: relative; flex: none; width: var(--pw); height: var(--ph);
  padding: var(--pt) var(--px) var(--pb);
  background-color: var(--b-papier); color: var(--b-tinte);
  overflow: hidden; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.ls-links  { border-radius: 5px 0 0 5px; background-image: linear-gradient(270deg, rgba(0,0,0,.13) 0%, rgba(0,0,0,.03) 5%, rgba(0,0,0,0) 12%); }
.ls-rechts { border-radius: 0 5px 5px 0; background-image: linear-gradient(90deg, rgba(0,0,0,.13) 0%, rgba(0,0,0,.03) 5%, rgba(0,0,0,0) 12%); }
.ls-buch--einzel .ls-links { display: none; }
.ls-buch--einzel .ls-rechts { border-radius: 4px 6px 6px 4px; }
.ls-seite--vorsatz { background-color: var(--b-vorsatz); background-image: linear-gradient(270deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,0) 14%); }
.ls-rechts.ls-seite--vorsatz { background-image: linear-gradient(90deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,0) 14%); }
.ls-seite--vorsatz .ls-fenster, .ls-seite--leer .ls-fenster, .ls-seite--vorsatz .ls-seite__nr, .ls-seite--leer .ls-seite__nr { visibility: hidden; }
.ls-fenster { width: 100%; height: 100%; overflow: hidden; }
.ls-seite__nr { position: absolute; left: 0; right: 0; bottom: calc(var(--pb) * .38); text-align: center; font: 500 11px/1 'Quicksand', sans-serif; letter-spacing: .12em; color: var(--b-leise); }

/* Blatt, das sich wendet, und Deckel */
.ls-blatt { position: absolute; top: 0; width: var(--pw); height: var(--ph); z-index: 5; transform-style: preserve-3d; display: none; pointer-events: none; will-change: transform; }
.ls-blatt--an { display: block; }
/* Doppelseite: flaches Falten, nur die Vorderfläche, mit Schatten zum Buchrücken hin */
.ls-blatt--flach { transform-style: flat; }
.ls-blatt--flach .ls-blatt__flaeche--hinten { display: none; }
.ls-blatt--flach .ls-blatt__flaeche { backface-visibility: visible; -webkit-backface-visibility: visible; }
.ls-blatt__schatten { position: absolute; inset: 0; z-index: 3; opacity: 0; pointer-events: none; background: linear-gradient(90deg, rgba(20,14,12,.55), rgba(20,14,12,.9)); }
.ls-blatt:not(.ls-blatt--flach) .ls-blatt__schatten { display: none; }
.ls-blatt__flaeche { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.ls-blatt__flaeche--hinten { transform: rotateY(180deg); }
.ls-blatt__flaeche .ls-seite { position: absolute; inset: 0; }
.ls-deckel {
  position: absolute; top: 0; right: 0; width: var(--pw); height: var(--ph); z-index: 8;
  padding: 0; border: 0; background: none; cursor: pointer; font: inherit;
  transform-style: preserve-3d; transform-origin: left center;
}
.ls-deckel[hidden] { display: none; }
.ls-deckel .ls-cover { position: absolute; inset: 0; width: auto; aspect-ratio: auto; height: 100%; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.ls-deckel__innen { position: absolute; inset: 0; background: var(--b-vorsatz); border-radius: 6px 2px 2px 6px; transform: rotateY(180deg); backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.ls-deckel:focus-visible { outline-offset: 6px; }

/* ── Satz der Buchseiten ───────────────────────────────────────── */
.ls-fluss {
  height: 100%; column-fill: auto;
  font-family: 'Iowan Old Style', 'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, serif;
  font-size: var(--fs, 17px); line-height: 1.6;
  text-align: justify; hyphens: auto; -webkit-hyphens: auto;
  orphans: 2; widows: 2;
}
.ls-fluss p { margin: 0; text-indent: 1.4em; }
.ls-fluss .ls-kap + p, .ls-fluss .ls-h + p, .ls-fluss .ls-unter + p, .ls-fluss .ls-figur + p, .ls-fluss .ls-ganz + p, .ls-fluss .ls-satz + p { text-indent: 0; }
.ls-kap, .ls-h, .ls-teil__text, .ls-figur__name, .ls-titelseite__titel, .ls-ende h2 {
  font-family: var(--b-titel-schrift, 'Oranienbaum', serif); font-weight: var(--b-titel-gewicht, 400);
  letter-spacing: var(--b-titel-abstand, -0.04em); text-transform: var(--b-titel-gross, none);
  text-align: left; hyphens: manual; -webkit-hyphens: manual; color: var(--b-tinte);
}
.ls-kap { break-before: column; margin: 0 0 1.1em; padding-top: 1.6em; font-size: 1.85em; line-height: 1.1; text-wrap: balance; }
.ls-h { break-after: avoid; break-inside: avoid; margin: 1.5em 0 .55em; font-size: 1.28em; line-height: 1.2; }
.ls-b--mad-girl-bad-girl .ls-kap, .ls-b--das-geheime-pantheon-der-frau .ls-kap { font-size: 1.5em; }
.ls-b--mad-girl-bad-girl .ls-h, .ls-b--das-geheime-pantheon-der-frau .ls-h { font-size: 1em; letter-spacing: .04em; }
.ls-unter { margin: -0.7em 0 1.3em; font: italic 400 1.1em/1.35 inherit; font-family: inherit; color: var(--b-leise); text-align: left; break-after: avoid; }
.ls-ganz { break-before: column; break-after: column; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; hyphens: manual; -webkit-hyphens: manual; }
.ls-teil__nr { font: 500 .72em/1 'Quicksand', sans-serif; letter-spacing: .34em; text-indent: .34em; color: var(--b-leise); margin-bottom: 1.4em; }
.ls-teil__text { font-size: 2.1em; line-height: 1.08; text-align: center; text-wrap: balance; }
.ls-teil::after, .ls-titelseite__strich { content: ''; display: block; width: 2.6em; height: 1px; background: var(--b-akzent); margin-top: 1.5em; }
.ls-figur { break-before: column; padding-top: 1.6em; margin-bottom: 1.5em; text-align: left; }
.ls-figur__name { font-size: 2.4em; line-height: 1; }
.ls-figur__zeile { margin-top: .5em; font-style: italic; font-size: 1.08em; line-height: 1.35; color: var(--b-leise); hyphens: manual; }
.ls-zitat__zeile, .ls-widmung__zeile { font-style: italic; font-size: 1.15em; line-height: 1.5; }
.ls-zitat__quelle { margin-top: 1.4em; font: 500 .68em/1 'Quicksand', sans-serif; letter-spacing: .3em; text-indent: .3em; text-transform: uppercase; color: var(--b-leise); }
.ls-satz { break-inside: avoid; margin: 1.4em 6%; text-align: center; font-style: italic; font-size: 1.14em; line-height: 1.45; hyphens: manual; -webkit-hyphens: manual; text-wrap: balance; }
.ls-fragen { list-style: none; margin: 0; padding: 0; text-align: left; hyphens: manual; -webkit-hyphens: manual; }
.ls-fragen li { break-inside: avoid; position: relative; padding-left: 1.3em; margin-bottom: .7em; font-style: italic; }
.ls-fragen li::before { content: ''; position: absolute; left: 0; top: .8em; width: .7em; height: 1px; background: var(--b-akzent); }
.ls-titelseite__autorin { font: 500 .72em/1 'Quicksand', sans-serif; letter-spacing: .34em; text-indent: .34em; text-transform: uppercase; color: var(--b-leise); }
.ls-titelseite__titel { margin: 1.1em 0 .5em; font-size: 2.5em; line-height: 1.02; text-align: center; text-wrap: balance; }
.ls-titelseite__unter { font-style: italic; font-size: 1.05em; line-height: 1.4; max-width: 18em; text-wrap: balance; }
.ls-titelseite__probe { margin-top: 1.5em; font: 500 .72em/1 'Quicksand', sans-serif; letter-spacing: .34em; text-indent: .34em; text-transform: uppercase; color: var(--b-leise); }
.ls-ende h2 { margin: 0 0 .6em; font-size: 1.9em; line-height: 1.08; text-align: center; text-wrap: balance; }
.ls-ende p { text-indent: 0; margin-bottom: 1.6em; font-style: italic; }
.ls-ende .h-knopf { font-family: 'Quicksand', sans-serif; }

@media (max-width: 759px) {
  .ls { padding-left: 14px; padding-right: 14px; }
  .ls-leiste { grid-template-columns: auto 1fr; padding: 6px 0; }
  .ls-titel { display: none; }
  .ls-zurueck span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .ls-buehne { gap: 0; }
  .ls-pfeil { position: absolute; z-index: 9; bottom: 8px; width: 40px; height: 40px; opacity: .92; }
  .ls-pfeil--zurueck { left: 0; } .ls-pfeil--weiter { right: 0; }
  .ls-pfeil:disabled { opacity: 0; }
  .ls-fuss { padding: 8px 56px 12px; }
  .ls-fluss { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  .ls-buch, .ls-platz__buch .ls-cover, .ls-fortschritt span { transition: none; }
}

/* ── Vorspann auf der öffentlichen Startseite ──────────────────── */
.f-frei--lesesaal { grid-template-columns: minmax(0, 360px) 1fr; }
.ls-vorspann { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; align-items: end; }
.ls-vorspann > span { display: block; }
.ls-vorspann .ls-cover { box-shadow: 0 8px 18px rgba(26,26,24,.14); }
@media (max-width: 760px) { .f-frei--lesesaal { grid-template-columns: 1fr; } }

/* Doppelseite (Desktop): alles flach, keine 3D-Ebenen */
.ls-buch { isolation: isolate; }
.ls-buch--doppel, .ls-buch--doppel .ls-blatt, .ls-buch--doppel .ls-deckel { transform-style: flat; }
.ls-buch--doppel .ls-deckel__innen { display: none; }
