﻿/* WHITEGOAT MAIN
   Inhalt der Startseite (Rotburg-Carousel). Grundstruktur, Tokens, Header/Footer: whitegoat-base.css */

/**************************************************************/
/* MAIN (vor Footer, Mudd-Layer und Dust) */
/**************************************************************/
main {
  position: relative;
  z-index: 80;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 175px;
  pointer-events: none;
  /* main reicht bis unter den Footer, Footer-Links bleiben klickbar */
}

body.book1 {
  --book-panel-background-image: url("../media/webkit/hookBackground-book1.png");
}

body.book2 {
  --book-panel-background-image: url("../media/webkit/hookBackground-book2.png");
}

body.book3 {
  --book-panel-background-image: url("../media/webkit/hookBackground-book3.png");
}


.kicker {
  margin: 3.75rem 0 2rem;
  letter-spacing: 0.22em;
  font-size: 18px;
  font-family: var(--font-family);
  font-weight: 700;
  color: #d7d7dc;
  line-height: 1.2;
  text-align: center;
}

.info-wrapper {
  --hook-background-width: 568px;
  --fluorescent-end-cap-width: 42px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  isolation: isolate;
  overflow: visible;
  padding: 0 0 1.5rem;
}

.info-wrapper::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-color: #0e1517;
  background-image: var(--book-panel-background-image, url("../media/webkit/hookBackground.png"));
  /* Beispielhintergrund für die Info-Spalte */
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}

/**************************************************************/
/* MAIN FEATURE */
/**************************************************************/
/* =========================================================
   BOOK DETAIL / MAIN
   ========================================================= */

.feature {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.series {
  text-align: center;
}


/* ---------------------------------------------------------
   Main split
   --------------------------------------------------------- */

.split {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  width: 100%;
  max-width: 960px;
  pointer-events: auto;
}


/* ---------------------------------------------------------
   Cover column
   --------------------------------------------------------- */

.cover-col {
  position: relative;
  flex: 0 0 38%;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.cover-frame {
  position: relative;
  isolation: isolate;
}

.cover {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
}


/* Leseprobe badge */

.cover-frame .actionButton--badge {
  position: absolute;
  top: -2.75rem;
  left: 1rem;
  z-index: 0;
  transform: translateY(0);
}

.cover-frame .actionButton--badge:hover,
.cover-frame .actionButton--badge:focus-visible {
  transform: translateY(-1rem);
}


/* ---------------------------------------------------------
   Cover metadata
   --------------------------------------------------------- */

.bookTitle {
  margin: 0.35rem 0 0;

  font-family: "Bebas Neue", sans-serif;
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;

  color: var(--text-color-dim);
}

.meta,
.bookInfo {
  margin-top: 0.4rem;

  font-family: "Bebas Neue", sans-serif;
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.12em;
  text-transform: uppercase;

  color: var(--text-color-dim);
}

.bookInfo {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.9rem;
}

.ISBN-13 {
  margin-top: -0.75rem;
  padding-top: 0;

  font-family: var(--font-family-body);
  font-size: 0.78rem;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0.04em;
  text-transform: none;

  color: var(--text-color-dim);
}

.ISBN-13::before {
  content: "ISBN-13 ";

  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}


/* ---------------------------------------------------------
   Details column
   --------------------------------------------------------- */

.details-col {
  position: relative;
  flex: 1;
  min-width: 0;

  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.book-layout-ready .details-col {
  min-height: var(--book-cover-height);
}

.details-col>.info-wrapper {
  flex: 1 1 auto;
  min-height: 0;
}


/* ---------------------------------------------------------
   Book description
   --------------------------------------------------------- */

.info-col {
  max-width: 470px;

  font-family: var(--font-family-body);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.48;
  letter-spacing: 0.01em;

  color: var(--text-color);

  text-wrap: pretty;
}

.info-col h1 {
  padding-top: 1.5rem;

  font-family: var(--font-family);
  font-size: clamp(1.55rem, 1.5vw, 1.9rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.025em;

  color: var(--text-color);
}

.info-col p {
  margin: 0 0 1.15em;
}

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

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


/* Weiterlesen */

.info-content .info-moreButton {
  align-self: flex-end;
  flex: none;

  min-width: 0;
  margin: 0;
  padding: 0;

  border: 0;

  border-radius: 0;
  background: none;
  box-shadow: none;

  font-family: var(--font-family-body);
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.04em;

  color: #d7d7dc;

  cursor: pointer;
  text-align: right;
}

.info-content .info-moreButton::before {
  content: none;
}

.info-content .info-moreButton:hover,
.info-content .info-moreButton:focus-visible {
  background: none;
  background-color: transparent;
  box-shadow: none;
  opacity: 0.7;
}


/* ---------------------------------------------------------
   Footer inside information panel
   --------------------------------------------------------- */

.info-col-footer {
  margin-top: auto;

  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.genre {
  margin: 0;

  font-family: var(--font-family);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.025em;
  text-transform: uppercase;

  color: var(--text-color);
}

.iteration {
  margin-right: 0.4rem;
  padding-right: 0.5rem;

  border-right: 1px solid currentColor;

  color: var(--text-color-active);
  font-weight: 700;
}


/* ---------------------------------------------------------
   Purchase actions
   --------------------------------------------------------- */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.actions a,
.actions .actionButton {
  flex: 1;
  text-align: center;
}


/* ---------------------------------------------------------
   Quote
   --------------------------------------------------------- */

.details-col>.quote {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;

  margin-top: 1rem;
}

.quote {
  align-self: stretch;
  max-width: 85%;
  margin-left: auto;

  font-family: var(--font-family);
  font-weight: 400;
  font-size: clamp(1.45rem, 1.45vw, 1.8rem);
  line-height: 1.18;
  letter-spacing: 0.035em;

  color: rgba(215, 215, 220, 0.72);
  text-align: right;
  text-transform: uppercase;

  text-wrap: balance;
  transition: opacity 0.22s ease;
}

.quote::before {
  content: "„";
  margin-right: 0.08em;

  color: var(--color-button-text-active);
  font-size: 1.35em;
  line-height: 0;
}

.quote::after {
  content: "“";
  margin-left: 0.08em;

  color: var(--color-button-text-active);
  font-size: 1.35em;
  line-height: 0;
}

.quote--is-changing {
  opacity: 0;
  transition: opacity 0.22s ease;
}

body.subpage--flow main {
  padding-bottom: calc(var(--footer-reserved-height) + 2.5rem);
}

body.subpage--flow .details-col>.quote {
  position: static;
  margin-top: 1rem;
}


/* ---------------------------------------------------------
   Background / ambient layer
   --------------------------------------------------------- */

.info-wrapper> :not(.buehne-book) {
  position: relative;
  z-index: 2;
}

.buehne-book {
  position: absolute;
  inset: 0;
  z-index: 0;

  overflow: visible;
  pointer-events: none;
}

.info-wrapper .ambientLeuchten {
  left: 50%;
  top: 34%;

  width: min(760px, 138%);
  height: clamp(380px, 54vw, 760px);

  z-index: 0;
}


/* =========================================================
   BOOK MODAL
   ========================================================= */

.book-modal[hidden] {
  display: none;
}

.book-modal {
  position: fixed;
  inset: 0;
  z-index: 140;

  display: grid;
  place-items: center;

  padding: 1.5rem;
}

.book-modal-backdrop {
  position: absolute;
  inset: 0;

  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
}

.book-modal-dialog {
  position: relative;
  z-index: 1;

  width: min(100%, 760px);
  max-height: min(80vh, 900px);
  overflow: auto;

  padding: 2rem;

  border: 1px solid rgba(var(--color-text-active-rgb), 0.38);
  border-radius: 10px;

  background:
    linear-gradient(rgba(9, 11, 14, 0.96),
      rgba(9, 11, 14, 0.98)),
    var(--book-panel-background-image, url("../media/webkit/hookBackground.png")) center center / cover no-repeat;

  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.58),
    inset 0 0 0 1px rgba(189, 207, 167, 0.12);
}

.book-modal-dialog h2 {
  margin: 0 0 1rem;

  font-family: var(--font-family);
  font-size: clamp(1.55rem, 1.5vw, 1.9rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.025em;

  color: var(--text-color);
}

.book-modal-content {
  font-family: var(--font-family-body);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.48;
  letter-spacing: 0.01em;
  color: var(--text-color);
  text-wrap: pretty;
}

.book-modal-content p {
  margin: 0 0 1.15em;
}

.book-modal-content p:last-child {
  margin-bottom: 0;
}

.book-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;

  width: 2.5rem;
  height: 2.5rem;

  border: 1px solid rgba(189, 207, 167, 0.3);
  border-radius: 999px;

  background: rgba(0, 0, 0, 0.35);
  color: var(--text-color);

  font-size: 1.5rem;
  line-height: 1;

  cursor: pointer;
}

.book-modal-close:hover,
.book-modal-close:focus-visible {
  border-color: rgba(189, 207, 167, 0.5);
  color: var(--text-color-active);
  outline: none;
}

body.book-modal-open {
  overflow: hidden;
}




/**************************************************************/
/* AMBIENT LEUCHTEN */
/**************************************************************/
.buehne {
  position: absolute;
  inset: 0;
  overflow: hidden;
  /* Schere, nicht Aus-Schalter */
  pointer-events: none;
  z-index: 0;
}

.ambientLeuchten {
  position: absolute;
  left: 50%;
  top: 42%;
  width: min(1500px, 100%);
  height: clamp(280px, 46vw, 640px);
  transform: translate(-50%, -50%);
  z-index: 0;
  pointer-events: none;
  /* reiner Glow: vom Mittelpunkt aus, am Rand (closest-side) vollständig transparent */
  background-image: radial-gradient(ellipse closest-side at 50% 50%,
      rgba(222, 236, 221, 0.90) 0%,
      rgba(189, 207, 167, 0.70) 25%,
      rgba(171, 187, 177, 0.48) 50%,
      rgba(120, 137, 132, 0.22) 75%,
      transparent 100%);
  filter: blur(18px);
  animation: ambient-puls 9.6s ease-in-out infinite;
}

@keyframes ambient-puls {

  0%,
  100% {
    opacity: 0.45;
    transform: translate(-50%, -50%) scale(0.88);
    filter: blur(18px) brightness(0.75);
  }

  18% {
    /* altes Flackern */
    opacity: 0.28;
    transform: translate(-50%, -50%) scale(0.84);
    filter: blur(18px) brightness(0.55);
    animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
  }

  46%,
  87.667% {
    /* Peak, hält ca. 4s */
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.08);
    filter: blur(18px) brightness(1.2);
    animation-timing-function: cubic-bezier(0.4, 0, 1, 1);
  }
}

@keyframes current-shadow-puls {

  0%,
  100% {
    box-shadow:
      0 0 0 2px rgba(211, 19, 27, 0.35),
      0 30px 60px rgba(0, 0, 0, 0.6),
      0 0 50px 12px rgba(0, 0, 0, 0.55),
      0 0 20px 4px rgba(0, 0, 0, 0.4);
  }

  18% {
    box-shadow:
      0 0 0 2px rgba(211, 19, 27, 0.35),
      0 30px 60px rgba(0, 0, 0, 0.6),
      0 0 36px 6px rgba(0, 0, 0, 0.35),
      0 0 14px 2px rgba(0, 0, 0, 0.25);
    animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
  }

  46%,
  87.667% {
    box-shadow:
      0 0 0 2px rgba(211, 19, 27, 0.35),
      0 30px 60px rgba(0, 0, 0, 0.6),
      0 0 100px 40px rgba(0, 0, 0, 0.85),
      0 0 36px 12px rgba(0, 0, 0, 0.7);
    animation-timing-function: cubic-bezier(0.4, 0, 1, 1);
  }
}

@keyframes current-flicker {

  0%,
  5%,
  8%,
  32%,
  36%,
  57%,
  60%,
  80%,
  83%,
  100% {
    opacity: 1;
    filter: brightness(1);
  }

  6% {
    opacity: 0.9;
    filter: brightness(0.9);
  }

  7% {
    opacity: 1;
    filter: brightness(1.06);
  }

  33% {
    opacity: 0.88;
    filter: brightness(0.88);
  }

  34% {
    opacity: 0.96;
    filter: brightness(1.08);
  }

  58% {
    opacity: 0.93;
    filter: brightness(0.93);
  }

  81% {
    opacity: 0.9;
    filter: brightness(0.9);
  }

  82% {
    opacity: 1;
    filter: brightness(1.05);
  }
}



.leuchtstoffroehre-toggle {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  width: min(100%, var(--hook-background-width));
  height: 18px;
  margin: 0 auto;
  z-index: 48;
  display: block;
  padding: 0;
  border: 0;
  appearance: none;
  background: transparent;
  cursor: pointer;
  line-height: 0;
}

.leuchtstoffroehre-toggle:focus-visible {
  outline: 1px solid rgba(var(--color-text-active-rgb), 0.75);
  outline-offset: 6px;
}

.leuchtstoffroehre-ENDE {
  position: absolute;
  inset: 0;
  top: 0;
  height: 18px;
  width: 100%;
  z-index: 1;
  pointer-events: none;
  background: transparent;
}

.leuchtstoffroehre-ENDE::before,
.leuchtstoffroehre-ENDE::after {
  content: "";
  position: absolute;
  top: 0;
  width: var(--fluorescent-end-cap-width);
  height: 100%;
  background-color: rgb(154, 159, 164);
  background-image:
    linear-gradient(180deg,
      rgb(78, 82, 87) 0%,
      rgb(220, 224, 227) 28%,
      rgb(155, 160, 165) 56%,
      rgb(91, 96, 101) 100%),
    linear-gradient(90deg,
      rgba(255, 255, 255, 0.18) 0%,
      rgba(255, 255, 255, 0.05) 38%,
      rgba(35, 39, 43, 0.24) 100%);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  box-shadow: inset 0 0 0 1px rgba(54, 58, 62, 0.35);
}

.leuchtstoffroehre-ENDE::before {
  left: 0;
}

.leuchtstoffroehre-ENDE::after {
  right: 0;
  transform: scaleX(-1);
}

.leuchtstoffroehre {
  position: absolute;
  top: 50%;
  left: 12px;
  right: 12px;
  height: 100%;
  transform: translateY(-50%);
  z-index: 1;
  box-sizing: border-box;
  border-radius: 2px;
  border: 1px solid var(--fluorescent-border);
  background-color: rgb(189, 207, 167);
  background-image:
    linear-gradient(180deg,
      var(--fluorescent-start) 0%,
      rgb(206, 222, 186) 24%,
      rgb(189, 207, 167) 46%,
      rgb(171, 187, 177) 68%,
      var(--fluorescent-end) 100%),
    linear-gradient(90deg,
      rgba(255, 255, 255, 0.18) 0%,
      rgba(255, 255, 255, 0.06) 12%,
      rgba(255, 255, 255, 0.06) 88%,
      rgba(120, 137, 132, 0.18) 100%);
  box-shadow:
    0 0 16px 5px rgba(189, 207, 167, 0.37),
    0 0 48px 14px rgba(171, 187, 177, 0.22),
    inset 0 0 18px rgba(120, 137, 132, 0.18);
  opacity: 1;
  filter: brightness(1);
  animation: fluorescent-flicker 9s linear infinite;
  transition: opacity 180ms ease, filter 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.leuchtstoffroehre-ENDE::before,
.leuchtstoffroehre-ENDE::after {
  z-index: 2;
}

.leuchtstoffroehre::before,
.leuchtstoffroehre::after {
  content: "";
  position: absolute;
  left: 6%;
  right: 6%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--fluorescent-border-highlight), transparent);
}

.leuchtstoffroehre::before {
  top: 32%;
  opacity: 0.55;
}

.leuchtstoffroehre::after {
  top: 64%;
  opacity: 0.28;
  filter: blur(2px);
}

.info-wrapper.lights-off .ambientLeuchten {
  opacity: 0;
  animation: none;
  filter: blur(18px) brightness(0.45);
}

.info-wrapper.lights-off .leuchtstoffroehre {
  opacity: 0.28;
  animation: none;
  filter: brightness(0.5);
  background-color: rgb(88, 95, 92);
  box-shadow:
    0 0 6px 1px rgba(189, 207, 167, 0.1),
    inset 0 0 10px rgba(22, 26, 25, 0.35);
}

.info-wrapper.lights-off .leuchtstoffroehre-ENDE::before,
.info-wrapper.lights-off .leuchtstoffroehre-ENDE::after {
  filter: brightness(0.72);
}

@keyframes fluorescent-flicker {

  0%,
  5%,
  8%,
  32%,
  36%,
  57%,
  60%,
  80%,
  83%,
  100% {
    opacity: 1;
    filter: brightness(1);
  }

  6% {
    opacity: 0.92;
    filter: brightness(0.92);
  }

  7% {
    opacity: 1;
    filter: brightness(1.05);
  }

  33% {
    opacity: 0.9;
    filter: brightness(0.9);
  }

  34% {
    opacity: 0.97;
    filter: brightness(1.06);
  }

  58% {
    opacity: 0.94;
    filter: brightness(0.94);
  }

  81% {
    opacity: 0.91;
    filter: brightness(0.91);
  }

  82% {
    opacity: 1;
    filter: brightness(1.04);
  }
}


  .info-wrapper .ambientLeuchten {
    width: 132%;
    height: clamp(300px, 68vw, 560px);
    top: 36%;
  }

  .leuchtstoffroehre-toggle {
    width: min(92%, var(--hook-background-width));
  }

  .leuchtstoffroehre {
    left: 10px;
    right: 10px;
  }
/* =============================================================================
   BUCHSEITE
   ============================================================================= */

@media (max-width: 960px) {
    main:has(.split) {
        padding-top: 150px;
        padding-bottom: calc(var(--footer-reserved-height) + 5.5rem);
        overflow-x: clip;
    }

    .split {
        flex-direction: column;
        align-items: center;
        gap: 1.25rem;
        max-width: min(100%, 38rem);
        padding-inline: 1rem;
        box-sizing: border-box;
        overflow-x: clip;
    }

    .cover-col,
    .details-col {
        display: contents;
    }

    .cover-frame,
    .meta,
    .info-wrapper,
    .actions,
    .quote {
        width: 100%;
        max-width: 36rem;
        box-sizing: border-box;
    }

    .cover-frame {
        order: 1;
        width: min(100%, 24rem);
        margin-inline: auto;
    }

    .details-col > .quote {
        order: 2;
        position: static;
        margin-top: 0.75rem;
        margin-bottom: 0;
    }

    .meta {
        order: 3;
        width: min(100%, 24rem);
        margin-inline: auto;
        text-align: center;
    }

    .bookInfo {
        justify-content: center;
    }

    .ISBN-13 {
        margin-top: 0;
        text-align: center;
    }

    .book-layout-ready .details-col,
    .book-layout-ready .info-wrapper {
        min-height: 0;
    }

    .info-wrapper {
        order: 4;
        overflow-x: clip;
        overflow-y: visible;
        --fluorescent-end-cap-width: 36px;
    }

    .info-col {
        width: 100%;
        max-width: none;
        box-sizing: border-box;
        padding: 2.75rem clamp(1rem, 4vw, 2rem) 0;
    }

    .actions {
        order: 5;
        flex-direction: column;
    }

    .actions a,
    .actions .actionButton {
        width: 100%;
        min-width: 0;
        font-size: clamp(1.7rem, 4vw, 2.2rem);
    }

    .split .quote {
        max-width: min(100%, 24rem);
        margin-inline: auto;
        text-align: center;
        font-size: clamp(1.35rem, 3.4vw, 1.8rem);
        text-wrap: balance;
        overflow-wrap: anywhere;
    }

    .book-modal-dialog,
    .book-modal__dialog {
        width: min(100%, 42rem);
        max-height: min(86dvh, 42rem);
        padding: 1.5rem 1.25rem 1.25rem;
    }

    .info-wrapper .ambientLeuchten {
        width: 126%;
        height: clamp(260px, 72vw, 480px);
        top: 35%;
    }
}

@media (max-width: 960px) and (max-height: 720px) and (orientation: landscape) {
    main:has(.split) {
        padding-top: 128px;
        padding-bottom: calc(var(--footer-reserved-height) + 3.5rem);
    }

    .split {
        gap: 1rem;
    }

    .cover-frame,
    .meta {
        width: min(100%, 20rem);
    }

    .actions a,
    .actions .actionButton {
        font-size: clamp(1.35rem, 3vw, 1.8rem);
        padding: 0.65rem 0.8rem;
    }

    .split .quote {
        font-size: clamp(1rem, 2.2vw, 1.25rem);
    }

    .info-wrapper .ambientLeuchten {
        width: 118%;
        height: clamp(190px, 52vw, 320px);
        top: 34%;
    }
}

@media (max-width: 720px) {
    main {
        padding-top: 136px;
        padding-bottom: calc(var(--footer-reserved-height) + 5rem);
    }

    main:has(.split) {
        padding-top: 136px;
        padding-bottom: calc(var(--footer-reserved-height) + 5rem);
    }

    .split {
        gap: 1rem;
        padding-inline: 0.85rem;
    }

    .cover-frame,
    .meta {
        width: min(100%, 22rem);
    }

    .info-col {
        padding: 2.6rem 1rem 0;
        font-size: 1rem;
        line-height: 1.55;
    }

    .info-col h1,
    .book-modal-dialog h2,
    .book-modal__dialog h2 {
        font-size: clamp(1.35rem, 5.5vw, 1.7rem);
    }

    .genre {
        font-size: clamp(1.1rem, 4.2vw, 1.3rem);
    }

    .split .quote {
        max-width: min(100%, 22rem);
        font-size: clamp(1.25rem, 5vw, 1.6rem);
        line-height: 1.2;
    }

    .book-modal {
        padding: 1rem;
    }

    .book-modal-dialog,
    .book-modal__dialog {
        max-height: min(84dvh, 40rem);
        padding: 1.2rem 1rem 1rem;
    }

    .book-modal-dialog h2,
    .book-modal__dialog h2 {
        margin-bottom: 0.85rem;
        padding-right: 2.25rem;
    }

    .book-modal-content,
    .book-modal__content {
        font-size: 0.98rem;
        line-height: 1.52;
    }

    .book-modal-close,
    .book-modal__close {
        top: 0.65rem;
        right: 0.65rem;
        width: 2.2rem;
        height: 2.2rem;
        font-size: 1.35rem;
    }

    .cover-frame .actionButton--badge {
        top: -2.2rem;
        left: 0.8rem;
        width: 6.4rem;
        min-width: 6.4rem;
        padding: 0.7rem 0.55rem 0.9rem;
    }

    .cover-frame .actionButton--badge .actionButton__label {
        font-size: 1.2rem;
        letter-spacing: 0.08em;
    }

    .cover-frame .actionButton--badge:hover,
    .cover-frame .actionButton--badge:focus-visible {
        transform: translateY(-0.75rem);
    }

    .info-wrapper .ambientLeuchten {
        width: 120%;
        height: clamp(220px, 78vw, 420px);
        top: 32%;
    }
}

@media (max-width: 540px) {
    main:has(.split) {
        padding-top: 124px;
        padding-bottom: calc(var(--footer-reserved-height) + 4.5rem);
    }

    .split {
        padding-inline: 0.75rem;
    }

    .cover-frame,
    .meta {
        width: min(100%, 23.75rem);
    }

    .cover-frame .actionButton--badge {
        top: -2rem;
        left: 0.65rem;
        width: 6.25rem;
        min-width: 6.25rem;
        padding: 0.7rem 0.5rem 0.86rem;
    }

    .cover-frame .actionButton--badge .actionButton__label {
        font-size: 1.12rem;
        letter-spacing: 0.07em;
        line-height: 1;
    }

    .bookTitle {
        font-size: 1.05rem;
    }

    .meta,
    .bookInfo {
        font-size: 0.88rem;
        letter-spacing: 0.08em;
    }

    .ISBN-13 {
        font-size: 0.74rem;
    }

    .info-col {
        padding: 2.4rem 0.9rem 0;
        font-size: 0.96rem;
    }

    .actions {
        gap: 0.75rem;
    }

    .actions a,
    .actions .actionButton {
        padding: 0.7rem 0.85rem;
        font-size: clamp(1.45rem, 8vw, 1.9rem);
    }

    .split .quote {
        width: min(100%, 23.75rem);
        max-width: min(100%, 23.75rem);
        font-size: clamp(1.28rem, 5.8vw, 1.5rem);
    }

    .book-modal-dialog,
    .book-modal__dialog {
        max-height: min(82dvh, 38rem);
        padding: 1rem 0.9rem 0.9rem;
    }

    .book-modal-content,
    .book-modal__content {
        font-size: 0.94rem;
        line-height: 1.48;
    }

    .book-modal-close,
    .book-modal__close {
        top: 0.55rem;
        right: 0.55rem;
    }
}

@media (min-width: 820px) and (max-width: 1024px) and (min-height: 1050px) and (orientation: portrait) {
    main:has(.split) {
        padding-top: 136px;
        padding-bottom: calc(var(--footer-reserved-height) + 2.5rem);
    }

    .split {
        max-width: min(100%, 37rem);
        padding-inline: 1rem;
    }

    .cover-frame,
    .meta,
    .info-wrapper,
    .actions,
    .quote {
        max-width: 32rem;
    }

    .cover-frame,
    .meta {
        width: min(100%, 20.8rem);
    }

    .info-col {
        padding: 2.4rem 1rem 0;
        font-size: 0.98rem;
    }

    .actions {
        max-width: 20.8rem;
        gap: 0.75rem;
    }

    .actions a,
    .actions .actionButton {
        font-size: clamp(1.5rem, 3.1vw, 1.8rem);
    }

    .split .quote {
        max-width: min(100%, 20.8rem);
        font-size: clamp(1.2rem, 2.6vw, 1.45rem);
    }

    .book-modal-dialog,
    .book-modal__dialog {
        width: min(100%, 46rem);
    }
}

@media (min-width: 1024px) and (max-width: 1400px) and (min-height: 680px) and (max-height: 980px) and (orientation: landscape) {
    main:has(.split) {
        padding-top: 136px;
    }

    .split {
        max-width: 980px;
        gap: 1.15rem;
    }

    .cover-col {
        flex: 0 0 28%;
        max-width: 18rem;
    }

    .cover-frame,
    .meta {
        width: 100%;
    }

    .info-col {
        max-width: 470px;
        font-size: 0.98rem;
    }

    .actions a,
    .actions .actionButton {
        min-width: 11rem;
    }

    .split .quote {
        max-width: 15rem;
        font-size: clamp(1.2rem, 1.3vw, 1.45rem);
    }

    .info-wrapper .ambientLeuchten {
        width: 112%;
        top: 36%;
    }
}

@media (max-width: 1024px) and (orientation: landscape) {
    .split .quote {
        width: 100%;
        max-width: 100%;
        font-size: clamp(0.8rem, 3.6vw, 1.3rem);
        letter-spacing: 0.02em;
        line-height: 1.2;
    }
}


/* ---------------------------------------------------------
   Quote: volle Spaltenbreite in jeder Ansicht, stabile Höhe
   (letzte Regeln der Datei, überschreiben die Breakpoints oben)
   --------------------------------------------------------- */
.split .quote {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  font-size: clamp(1.3rem, 1.2rem + 1.2vw, 2rem);
  overflow-wrap: break-word;
}

@media (max-width: 960px) {
  /* Quote steht im Fluss vor dem Folgecontainer: Höhe für 3 Zeilen reservieren,
     damit Einzeiler den Container darunter nicht verschieben */
  .split .quote {
    min-height: calc(3 * 1.2em);
    text-align: center;
    font-size: clamp(1.15rem, 0.9rem + 3.4vw, 1.7rem);
  }
}

@media (max-width: 960px) and (orientation: landscape) {
  .split .quote {
    font-size: clamp(1rem, 0.7rem + 2.2vw, 1.5rem);
  }
}
