/*
 * Book sales pages (template-parts/conversion/book-page.php).
 *
 * The German book pages' layout in the theme's tokens: centred hero over a
 * photo mosaic, numbered sections alternating paper and paper-dim, recipe
 * grid, three-step path, contents and FAQ accordions, one ebook offer card.
 */

.book-page {
  background: var(--color-paper);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: var(--leading-normal);
}
.book-page :where(h1, h2, h3, p, figure, blockquote, ol, ul, figcaption) { margin: 0; }
.book-page :where(h1, h2, h3) {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: var(--leading-tight);
  letter-spacing: -0.02em;
  color: var(--color-ink);
  text-wrap: balance;
}
.book-page h1 { font-size: var(--text-display); line-height: 1.08; }
.book-page h2 { font-size: clamp(1.75rem, 2.8vw, 2.5rem); }
.book-page h3 { font-size: var(--text-lg); line-height: var(--leading-snug); }
.book-page p + p { margin-top: var(--space-4); }
.book-page strong { font-weight: 700; color: var(--color-ink); }
.book-page img { display: block; max-width: 100%; height: auto; }
.book-page a:not(.bp-btn) { text-decoration: underline; color: var(--color-brand); text-underline-offset: 3px; overflow-wrap: anywhere; }
.bp-wrap { width: min(1140px, calc(100% - 4rem)); margin-inline: auto; }

/* Sections and the one recurring device: the numbered mono kicker. */
.bp-section { padding-block: 5rem; }
.bp-section--dim { background: var(--color-paper-dim); }
.bp-kicker {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  color: var(--color-text-subtle);
}
.bp-kicker__rule { width: 40px; height: 1px; background: currentColor; opacity: 0.5; }
.bp-head { max-width: 760px; margin-bottom: var(--space-9); }
.bp-head > p { margin-top: var(--space-4); color: var(--color-text-muted); }
.bp-label,
.bp-recipe figcaption p,
.bp-step__num,
.bp-author__photo figcaption,
.bp-tag,
.book-page cite {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-style: normal;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-subtle);
}

/* Buttons. */
.book-page .bp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: var(--space-3) var(--space-7);
  border-radius: var(--radius-sm);
  background: var(--color-brand);
  color: var(--color-paper);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-md);
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background 180ms ease;
}
.book-page .bp-btn:hover { background: var(--color-brand-hover); color: var(--color-paper); }

/* Hero. */
.bp-hero { padding-top: var(--space-10); }
.bp-hero__copy { max-width: 900px; text-align: center; }
.bp-intro { margin-top: var(--space-5); font-size: var(--text-lg); color: var(--color-text-muted); text-wrap: balance; }
.bp-hero__product { display: flex; justify-content: center; align-items: center; gap: 1.5rem; margin-top: 1.75rem; text-align: left; }
.book-page .bp-hero__cover { width: 90px; height: 125px; object-fit: contain; filter: drop-shadow(3px 5px 7px rgba(0,0,0,.12)); }
.bp-hero__format { font-size: .85rem; margin-bottom: .65rem !important; color: var(--color-text-muted); }
.book-page .bp-sample-link { display: flex; width: fit-content; align-items: center; gap: .5rem; min-height: 44px; font-size: .9rem; font-weight: 600; }
.bp-section-action { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; margin-top: 2rem; }
.bp-section-action > p { font-size: .85rem; color: var(--color-text-muted); }
.book-page :where(a,button,summary):focus-visible { outline: 3px solid var(--color-brand); outline-offset: 5px; }
#book-inside { scroll-margin-top: 6rem; }
.bp-hero__art {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  grid-template-rows: repeat(2, 180px);
  gap: var(--space-2);
  margin-top: var(--space-8);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.bp-hero__art img { width: 100%; height: 100%; min-width: 0; min-height: 0; object-fit: cover; }
.bp-hero__art img:first-child { grid-row: span 2; }

/* Trust bar under the mosaic. */
.bp-trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-3) var(--space-8);
  width: min(1140px, calc(100% - 4rem));
  margin: var(--space-3) auto 0;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  background: var(--color-slate);
  color: var(--color-paper);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
}
.bp-trust strong { color: var(--color-paper); font-weight: 500; }
.bp-stars { color: var(--color-brand-bright); letter-spacing: 0.06em; }
.bp-trust__faces { display: inline-flex; }
.bp-trust__faces img { width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.35); }
.bp-trust__faces img + img { margin-left: -10px; }

/* 01 Recipes. */
.bp-recipes { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--space-7); align-items: start; }
.bp-recipes__companions { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-7) var(--space-6); }
.bp-recipe__image { aspect-ratio: 1; overflow: hidden; border-radius: var(--radius-sm); background: var(--color-paper-dim); }
.bp-recipe__image img { width: 100%; height: 100%; object-fit: cover; }
.bp-recipe figcaption { padding-top: var(--space-3); }
.bp-recipe--lead h3 { font-size: var(--text-xl); }
.bp-recipe figcaption p { margin-top: 2px; }
.bp-more { margin-top: var(--space-9); padding-top: var(--space-6); border-top: 1px solid var(--color-hairline); }
.bp-more__list { margin-top: var(--space-3) !important; max-width: 900px; color: var(--color-text-muted); }

/* 02 Path. */
.bp-steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-7); }
.bp-step,
.bp-card {
  display: flex;
  flex-direction: column;
  padding: var(--space-6);
  background: var(--color-paper);
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-sm);
}
.bp-step__num { color: var(--color-brand); }
.bp-step h3 { margin-top: var(--space-3); }
.bp-step > p:not(.bp-step__num) { margin-top: var(--space-3); color: var(--color-text-muted); }
.bp-step__art { padding-top: var(--space-6); }
.bp-step__art img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: center bottom; border-radius: var(--radius-sm); }
.bp-step__art img.bp-book-page { aspect-ratio: auto; object-fit: contain; border: 1px solid var(--color-hairline); border-radius: 0; }
.bp-mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.bp-step__art figcaption { margin-top: var(--space-2); font-size: var(--text-sm); line-height: 1.4; color: var(--color-text-muted); }
.bp-quote { max-width: 800px; margin-top: var(--space-9); padding-left: var(--space-6); border-left: 3px solid var(--color-brand); }
.bp-quote p { font-size: var(--text-lg); line-height: 1.5; }
.bp-quote footer,
.bp-testimonial footer { display: flex; align-items: center; gap: var(--space-3); margin-top: var(--space-5); }
.book-page footer cite { color: var(--color-ink); }
.bp-face { width: 56px; height: 56px; border-radius: 50%; flex-shrink: 0; }

/* Accordions: contents and FAQ. */
.book-page details { border-top: 1px solid var(--color-hairline); border-bottom: 1px solid var(--color-hairline); }
.book-page details + details { border-top: 0; }
.book-page summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  padding-block: var(--space-5);
  cursor: pointer;
  list-style: none;
  font-family: var(--font-heading);
  font-size: var(--text-md);
  font-weight: 700;
  line-height: var(--leading-snug);
  color: var(--color-ink);
}
.book-page summary::-webkit-details-marker { display: none; }
.bp-plus { flex-shrink: 0; font-size: 1.6rem; font-weight: 400; color: var(--color-brand); transition: transform 180ms ease; }
.book-page details[open] > summary .bp-plus { transform: rotate(45deg); }
.bp-toc { margin-top: var(--space-9); }
.bp-toc__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-7) 3.5rem; padding-bottom: var(--space-8); }
.bp-toc__grid h3 { font-size: var(--text-md); margin-bottom: var(--space-2); }
.bp-toc__grid ul { padding-left: var(--space-5); font-size: var(--text-base); color: var(--color-text-muted); }
.bp-toc__grid li { margin-bottom: 6px; }

/* 03 Testimonials. */
.bp-testimonials { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: var(--space-6); }
.bp-testimonial footer { margin-top: auto; padding-top: var(--space-5); }

/* 04 Author. */
.bp-author { display: grid; grid-template-columns: 340px 1fr; gap: 3.5rem; align-items: start; }
.bp-author__photo img { width: 100%; border-radius: var(--radius-sm); }
.bp-author__photo figcaption { margin-top: var(--space-3); }
.bp-author__copy h2 { margin-bottom: var(--space-5); }
.bp-author__copy p { color: var(--color-text-muted); }
.book-page .bp-signature { margin-top: var(--space-5); font-family: var(--font-heading); font-weight: 700; color: var(--color-ink); }

/* 05 Offer. */
.bp-offer { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: var(--space-7); align-items: start; max-width: 980px; }
.bp-format { display: flex; flex-direction: column; padding: var(--space-6); border: 2px solid var(--color-brand); border-radius: var(--radius-sm); }
.bp-tag { align-self: flex-start; padding: 5px 10px; border-radius: var(--radius-sm); background: var(--color-brand); color: var(--color-paper); }
.bp-format__cover { width: auto; height: 230px; margin: var(--space-6) auto; object-fit: contain; }
.bp-format h3 { font-size: var(--text-xl); }
.bp-price { margin: var(--space-3) 0 var(--space-5) !important; }
.bp-price strong { display: block; font-family: var(--font-heading); font-size: 2.1rem; line-height: 1.1; }
.bp-price span { display: block; margin-top: var(--space-1); font-size: var(--text-sm); color: var(--color-text-muted); }
.bp-format .bp-btn { width: 100%; }
.bp-format__delivery { margin-top: var(--space-4) !important; font-size: var(--text-sm); line-height: 1.45; color: var(--color-text-muted); }
.bp-guarantee { padding: var(--space-6) var(--space-7); border: 1px solid var(--color-hairline-strong); border-radius: var(--radius-sm); background: var(--color-paper-dim); }
.bp-guarantee p { margin-top: var(--space-3); font-size: var(--text-base); color: var(--color-text-muted); }

/* 06 FAQ + close. */
.bp-faq { max-width: 860px; }
.bp-faq details > p { padding: 0 2.5rem var(--space-6) 0; color: var(--color-text-muted); }
.bp-close { padding-block: 4.5rem; text-align: center; background: var(--color-paper-dim); border-top: 1px solid var(--color-hairline); }
.bp-close p {
  margin-bottom: var(--space-6);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.2;
  color: var(--color-ink);
  text-wrap: balance;
}

@media (max-width: 1000px) {
  .bp-wrap { width: calc(100% - 3rem); }
  .bp-steps { grid-template-columns: 1fr; gap: var(--space-5); }
  .bp-author { grid-template-columns: 260px 1fr; gap: 2.25rem; }
}
@media (max-width: 760px) {
  .book-page { font-size: 1.0625rem; }
  .bp-wrap { width: calc(100% - 2rem); }
  .bp-section { padding-block: 3.5rem; }
  .bp-hero { padding-top: 1.75rem; }
  .book-page h1 { font-size: clamp(2.15rem,8.5vw,2.75rem); }
  .bp-hero__copy { text-align: left; }
  .bp-intro { margin-top: 1rem; }
  .bp-hero__product { justify-content: flex-start; gap: 1rem; margin-top: 1.25rem; }
  .book-page .bp-hero__cover { width: 72px; height: 100px; }
  .bp-hero__product > div { min-width: 0; }
  .bp-hero__product .bp-btn { padding-inline: 1rem; font-size: .95rem; }
  .bp-hero__product .bp-sample-link { font-size: .8rem; }
  .bp-hero__format { font-size: .8rem; }
  .bp-steps .bp-step { padding: 1.25rem; }
  .bp-intro { font-size: var(--text-md); }
  .bp-hero__art { width: 100%; margin-top: var(--space-6); border-radius: 0; }
  .bp-trust { width: 100%; margin-top: 0; border-radius: 0; gap: var(--space-2) var(--space-5); }
  .bp-head { margin-bottom: var(--space-7); }
  .bp-recipes { grid-template-columns: 1fr; gap: var(--space-6); }
  .bp-recipes__companions { gap: var(--space-5) var(--space-4); }
  .bp-recipe h3 { overflow-wrap: anywhere; }
  .bp-quote p { font-size: var(--text-md); }
  .bp-toc__grid { grid-template-columns: 1fr; }
  .bp-author { grid-template-columns: 1fr; gap: var(--space-6); }
  .bp-author__photo { max-width: 300px; }
  .bp-offer { grid-template-columns: 1fr; }
  .bp-guarantee { padding: var(--space-5); }
  .bp-faq details > p { padding-right: 0; }
  .bp-close { padding-block: 3.25rem; }
}
@media (max-width: 700px) {
  .bp-hero__art { grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: repeat(2,100px); }
  .bp-hero__art img:first-child { grid-row: span 2; }
}
