/*
 * buch.css — Buchseite im Cover-Design
 * Palette: Warm Cream #F5F0E8 · Near-Black #1A1A1A · Taupe #B8A07A · Dark #141210
 * Typography: Playfair Display (headlines) · Georgia (body)
 * Mood: Literarisch · Minimalistisch · Editorial
 */

/* ═══════════════════════════════════════
   CUSTOM PROPERTIES
═══════════════════════════════════════ */
.buch-page {
  --buch-cream:    #F5F0E8;
  --buch-cream-2:  #EDE6D8;
  --buch-dark:     #141210;
  --buch-near-black: #1A1A1A;
  --buch-taupe:    #B8A07A;
  --buch-taupe-dark: #8C7355;
  --buch-gray:     #6B6B6B;
  --buch-gray-light: #9A9A9A;
  --buch-warm-white: #FAF7F2;

  background-color: var(--buch-cream);
  color: var(--buch-near-black);
  font-family: Georgia, 'Times New Roman', serif;
}

/* ═══════════════════════════════════════
   DARK MODE OVERRIDES
═══════════════════════════════════════ */
[data-theme="dark"] .buch-page {
  --buch-cream:      #F5F0E8;
  --buch-cream-2:    #2A2724;
  --buch-warm-white: #1A1816;
  --buch-near-black: #F0EBE3;
  --buch-gray:       #9A9A9A;
  --buch-gray-light: #6B6B6B;
  background-color: #141210;
  color: #F0EBE3;
}

/* Hero: cream bg → dark bg in dark mode */
[data-theme="dark"] .buch-hero {
  background: #0e0d0b;
  border-bottom-color: #2A2724;
}

/* Content sections */
[data-theme="dark"] .buch-section--cream {
  background: #141210;
}
[data-theme="dark"] .buch-section--warm {
  background: #1A1816;
  border-top-color: #2A2724;
  border-bottom-color: #2A2724;
}

/* Body text in sections */
[data-theme="dark"] .buch-expose__text p { color: rgba(240,235,227,0.8); }
[data-theme="dark"] .buch-h2 { color: #F0EBE3; }
[data-theme="dark"] .buch-expose__lead { color: #F0EBE3; }

/* Quote */
[data-theme="dark"] .buch-quote { border-left-color: var(--buch-taupe); }
[data-theme="dark"] .buch-quote p { color: #F0EBE3 !important; }
[data-theme="dark"] .buch-quote cite { color: var(--buch-taupe); }

/* Facts sidebar */
[data-theme="dark"] .buch-facts {
  background: #1E1C1A;
  border-top-color: var(--buch-taupe);
}
[data-theme="dark"] .buch-facts__title { color: #F0EBE3; }
[data-theme="dark"] .buch-facts__list > div { border-bottom-color: #2A2724; }
[data-theme="dark"] .buch-facts__list dt { color: rgba(240,235,227,0.5); }
[data-theme="dark"] .buch-facts__list dd { color: #F0EBE3; }

/* Für wen */
[data-theme="dark"] .buch-fuerwen__divider { background: #2A2724; }
[data-theme="dark"] .buch-fuerwen__title { color: #F0EBE3; }
[data-theme="dark"] .buch-list li { border-bottom-color: #2A2724; color: rgba(240,235,227,0.8); }

/* Buttons */
[data-theme="dark"] .buch-btn-primary {
  background: var(--buch-taupe);
  color: #141210;
  border-color: var(--buch-taupe);
}
[data-theme="dark"] .buch-btn-primary:hover {
  background: var(--buch-taupe-dark);
  border-color: var(--buch-taupe-dark);
  color: #141210;
}
[data-theme="dark"] .buch-btn-outline {
  color: #F0EBE3;
  border-color: rgba(240,235,227,0.35);
}
[data-theme="dark"] .buch-btn-outline:hover {
  background: rgba(240,235,227,0.08);
  border-color: rgba(240,235,227,0.6);
  color: #F0EBE3;
}

/* Kaufen section */
[data-theme="dark"] .buch-kaufen__subtitle { color: rgba(240,235,227,0.6); }
[data-theme="dark"] .buch-bod-primary { border-bottom-color: #2A2724; }
[data-theme="dark"] .buch-bod-primary__note { color: rgba(240,235,227,0.45); }

/* BoD widget card */
[data-theme="dark"] .buch-widget-card {
  background: #1E1C1A;
  border-color: #2A2724;
  border-top-color: var(--buch-taupe);
}
[data-theme="dark"] .buch-widget-label { color: rgba(240,235,227,0.65); }

/* Fallback */
[data-theme="dark"] .buch-fallback__note { color: rgba(240,235,227,0.5); }

/* Retailer strip */
[data-theme="dark"] .buch-retailers { border-top-color: #2A2724; }
[data-theme="dark"] .buch-retailers__label { color: rgba(240,235,227,0.4); }
[data-theme="dark"] .buch-retailers__sep { background: #2A2724; }
[data-theme="dark"] .buch-retailer__logo { filter: grayscale(100%) invert(1) contrast(0.7); }
[data-theme="dark"] .buch-retailer:hover .buch-retailer__logo { filter: invert(1); }
[data-theme="dark"] .buch-retailers__footnote { color: rgba(240,235,227,0.35); }

/* Section labels */
[data-theme="dark"] .buch-section-label { color: var(--buch-taupe); }
[data-theme="dark"] .buch-section-label--light { color: var(--buch-taupe); }

/* Hero text */
[data-theme="dark"] .buch-hero__eyebrow { color: var(--buch-taupe); }
[data-theme="dark"] .buch-hero__title { color: #F0EBE3; }
[data-theme="dark"] .buch-hero__subtitle { color: rgba(240,235,227,0.6); }
[data-theme="dark"] .buch-hero__desc { color: rgba(240,235,227,0.7); }
[data-theme="dark"] .buch-hero__meta { color: rgba(240,235,227,0.4); }

/* ═══════════════════════════════════════
   NAVIGATION OVERRIDE
═══════════════════════════════════════ */
.buch-nav {
  background: var(--buch-dark) !important;
  border-bottom: 1px solid rgba(184,160,122,0.2);
}
.buch-nav .nav__logo { color: var(--buch-cream) !important; }
.buch-nav .nav__logo span { color: var(--buch-taupe) !important; }
.buch-nav .nav__links a { color: rgba(245,240,232,0.75) !important; }
.buch-nav .nav__links a:hover,
.buch-nav .nav__links a.active { color: var(--buch-taupe) !important; opacity: 1; }
.buch-nav .nav__toggle span { background: var(--buch-cream) !important; }

/* ═══════════════════════════════════════
   LAYOUT UTILITIES
═══════════════════════════════════════ */
.buch-container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 2rem;
}
.buch-container--narrow {
  max-width: 820px;
}

.buch-section {
  padding: 5.5rem 0;
}
.buch-section--cream {
  background: var(--buch-cream);
}
.buch-section--warm {
  background: var(--buch-warm-white);
  border-top: 1px solid var(--buch-cream-2);
  border-bottom: 1px solid var(--buch-cream-2);
}
.buch-section--dark {
  background: var(--buch-dark);
  color: var(--buch-cream);
}

/* ═══════════════════════════════════════
   TYPOGRAPHY
═══════════════════════════════════════ */
.buch-h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--buch-near-black);
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}
.buch-h2--light {
  color: var(--buch-cream);
}

.buch-section-label {
  font-family: Georgia, serif;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--buch-taupe-dark);
  margin-bottom: 0.75rem;
  display: block;
}
.buch-section-label--light {
  color: var(--buch-taupe);
}

/* ═══════════════════════════════════════
   BUTTONS
═══════════════════════════════════════ */
.buch-btn {
  display: inline-block;
  font-family: Georgia, serif;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  padding: 0.8rem 2rem;
  border: 1.5px solid transparent;
  border-radius: 2px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.buch-btn-primary {
  background: var(--buch-near-black);
  color: var(--buch-cream);
  border-color: var(--buch-near-black);
}
.buch-btn-primary:hover {
  background: #333;
  border-color: #333;
  color: var(--buch-cream);
  text-decoration: none;
}
.buch-btn--large {
  padding: 1rem 2.5rem;
  font-size: 1.05rem;
}
.buch-btn-outline {
  background: transparent;
  color: var(--buch-near-black);
  border-color: var(--buch-near-black);
}
.buch-btn-outline:hover {
  background: var(--buch-near-black);
  color: var(--buch-cream);
  text-decoration: none;
}
.buch-btn-outline-dark {
  background: transparent;
  color: var(--buch-cream);
  border-color: rgba(245,240,232,0.5);
}
.buch-btn-outline-dark:hover {
  background: rgba(245,240,232,0.1);
  border-color: var(--buch-cream);
  color: var(--buch-cream);
  text-decoration: none;
}
.buch-btn-cream {
  background: var(--buch-cream);
  color: var(--buch-near-black);
  border-color: var(--buch-cream);
}
.buch-btn-cream:hover {
  background: var(--buch-cream-2);
  border-color: var(--buch-cream-2);
  color: var(--buch-near-black);
  text-decoration: none;
}

/* Nav button override */
.buch-btn-primary.btn {
  background: var(--buch-taupe);
  border-color: var(--buch-taupe);
  color: var(--buch-dark);
  padding: 0.4rem 1.1rem;
  font-size: 0.85rem;
}
.buch-btn-primary.btn:hover {
  background: var(--buch-taupe-dark);
  border-color: var(--buch-taupe-dark);
}

/* ═══════════════════════════════════════
   HERO
═══════════════════════════════════════ */
.buch-hero {
  background: var(--buch-cream);
  padding: 6rem 0 5rem;
  border-bottom: 1px solid var(--buch-cream-2);
}
.buch-hero__inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 5rem;
  align-items: center;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Cover */
.buch-hero__cover-col {
  display: flex;
  justify-content: center;
}
.buch-hero__cover-wrap {
  position: relative;
  display: inline-block;
}
.buch-hero__cover-img {
  width: 270px;
  height: auto;
  display: block;
  box-shadow:
    4px 4px 0 var(--buch-taupe),
    8px 8px 0 var(--buch-cream-2),
    0 24px 48px rgba(20,18,16,0.18);
}

/* Text column */
.buch-hero__eyebrow {
  font-family: Georgia, serif;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--buch-taupe-dark);
  margin-bottom: 1rem;
}
.buch-hero__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  color: var(--buch-near-black);
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}
.buch-hero__subtitle {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-style: italic;
  color: var(--buch-gray);
  margin: 0 0 1.5rem;
  line-height: 1.5;
}
.buch-hero__desc {
  font-size: 1.05rem;
  color: var(--buch-gray);
  max-width: 52ch;
  line-height: 1.75;
  margin-bottom: 2rem;
}
.buch-hero__ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.buch-hero__meta {
  font-size: 0.8rem;
  color: var(--buch-gray-light);
  letter-spacing: 0.03em;
}
.buch-hero__meta-sep {
  margin: 0 0.5rem;
}

/* ═══════════════════════════════════════
   ÜBER DAS BUCH (Expose)
═══════════════════════════════════════ */
.buch-expose {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 4rem;
  align-items: start;
}
.buch-expose__text p {
  max-width: 64ch;
  color: #2a2a2a;
  line-height: 1.85;
  margin-bottom: 1.25rem;
}
.buch-expose__lead {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.2rem !important;
  font-style: italic;
  color: var(--buch-near-black) !important;
  line-height: 1.65 !important;
}

/* Quote */
.buch-quote {
  border-left: 3px solid var(--buch-taupe);
  padding: 1rem 0 1rem 1.75rem;
  margin: 2rem 0;
}
.buch-quote p {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.15rem;
  font-style: italic;
  color: var(--buch-near-black) !important;
  margin: 0 0 0.5rem !important;
  max-width: none !important;
}
.buch-quote cite {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--buch-taupe-dark);
  font-style: normal;
}

/* Facts sidebar */
.buch-facts {
  background: var(--buch-cream-2);
  padding: 2rem;
  border-top: 3px solid var(--buch-near-black);
}
.buch-facts__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  color: var(--buch-near-black);
}
.buch-facts__list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.buch-facts__list > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(20,18,16,0.1);
}
.buch-facts__list > div:last-child { border-bottom: none; }
.buch-facts__list dt {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--buch-gray);
  flex-shrink: 0;
}
.buch-facts__list dd {
  font-size: 0.9rem;
  color: var(--buch-near-black);
  text-align: right;
}

/* ═══════════════════════════════════════
   DIE 20 REGELN
═══════════════════════════════════════ */
.buch-regeln__intro {
  color: rgba(245,240,232,0.65);
  font-style: italic;
  margin-bottom: 2.5rem;
  max-width: none;
}
.buch-regeln__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5px;
  background: rgba(184,160,122,0.2);
  border: 1.5px solid rgba(184,160,122,0.2);
  margin-bottom: 3rem;
}
.buch-regel {
  background: rgba(20,18,16,0.85);
  padding: 2rem 1.75rem;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  transition: background 0.2s;
}
.buch-regel:hover {
  background: rgba(30,28,26,0.95);
}
.buch-regel__num {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2rem;
  font-weight: 900;
  color: var(--buch-taupe);
  line-height: 1;
  flex-shrink: 0;
  opacity: 0.5;
}
.buch-regel__text {
  font-size: 0.95rem;
  color: rgba(245,240,232,0.85);
  line-height: 1.65;
  margin: 0.2rem 0 0;
  max-width: none;
}
.buch-regeln__hint {
  font-style: italic;
  color: rgba(245,240,232,0.45);
  font-size: 0.9rem;
  margin-bottom: 2rem;
  max-width: none;
}

/* ═══════════════════════════════════════
   FÜR WEN / NICHT FÜR WEN
═══════════════════════════════════════ */
.buch-fuerwen {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 3rem;
  align-items: start;
}
.buch-fuerwen__divider {
  width: 1px;
  background: var(--buch-cream-2);
  align-self: stretch;
}
.buch-fuerwen__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: var(--buch-near-black);
}
.buch-fuerwen__title em { font-style: italic; }

.buch-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.buch-list li {
  padding: 0.6rem 0 0.6rem 1.75rem;
  position: relative;
  border-bottom: 1px solid var(--buch-cream-2);
  font-size: 0.95rem;
  color: #333;
  line-height: 1.55;
}
.buch-list li:last-child { border-bottom: none; }
.buch-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--buch-taupe);
  font-weight: bold;
}
.buch-list--cross li::before {
  content: '×';
  color: var(--buch-gray-light);
}

/* ═══════════════════════════════════════
   KAUFEN — Kaufsektion
═══════════════════════════════════════ */
.buch-kaufen__subtitle {
  color: var(--buch-gray);
  font-size: 1rem;
  margin-bottom: 2.5rem;
  font-style: italic;
  max-width: none;
}

/* BoD Primary CTA */
.buch-bod-primary {
  text-align: center;
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--buch-cream-2);
}
.buch-bod-primary__note {
  font-size: 0.8rem;
  color: var(--buch-gray-light);
  margin: 0.75rem auto 0;
  font-style: italic;
  max-width: none;
}

/* BoD Widgets */
.buch-widgets {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.buch-widget-card {
  background: var(--buch-cream);
  border: 1px solid var(--buch-cream-2);
  border-top: 3px solid var(--buch-near-black);
  padding: 1.5rem;
  flex: 1;
  min-width: 280px;
  max-width: 400px;
}
.buch-widget-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--buch-taupe-dark);
  font-weight: bold;
  margin-bottom: 1.25rem;
}
.bodShopWidget {
  background: transparent !important;
}

/* Fallback */
.buch-fallback {
  display: none;
  text-align: center;
  padding: 2rem;
  margin-bottom: 2rem;
}
.buch-fallback--visible { display: block; }
.buch-fallback__note {
  font-size: 0.85rem;
  color: var(--buch-gray);
  margin-bottom: 1.25rem;
  font-style: italic;
  max-width: none;
}
.buch-fallback__links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ═══════════════════════════════════════
   RETAILER STRIP
═══════════════════════════════════════ */
.buch-retailers {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--buch-cream-2);
  text-align: center;
}
.buch-retailers__label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--buch-gray-light);
  margin-bottom: 1.5rem;
  max-width: none;
}
.buch-retailers__strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}
.buch-retailers__sep {
  width: 1px;
  height: 28px;
  background: var(--buch-cream-2);
  display: block;
}
.buch-retailer {
  display: flex;
  align-items: center;
  opacity: 0.45;
  transition: opacity 0.2s;
  text-decoration: none;
}
.buch-retailer:hover {
  opacity: 1;
}
.buch-retailer__logo {
  height: 28px;
  width: auto;
  max-width: 140px;
  display: block;
  /* force monochrome */
  filter: grayscale(100%) contrast(0.8);
  color: var(--buch-near-black);
}
.buch-retailer:hover .buch-retailer__logo {
  filter: none;
}
.buch-retailers__footnote {
  font-size: 0.78rem;
  color: var(--buch-gray-light);
  font-style: italic;
  margin: 0;
  max-width: none;
}

/* ═══════════════════════════════════════
   AUTHOR CTA BAND
═══════════════════════════════════════ */
.buch-cta-band {
  background: var(--buch-near-black);
  padding: 4.5rem 0;
}
.buch-cta-band__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
}
.buch-cta-band__desc {
  color: rgba(245,240,232,0.7);
  font-size: 1rem;
  margin: 0;
  max-width: 55ch;
}
.buch-cta-band__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════ */
@media (max-width: 900px) {
  .buch-hero__inner {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  .buch-hero__cover-img { width: 220px; }
  .buch-hero__ctas { justify-content: center; }
  .buch-hero__desc { margin-left: auto; margin-right: auto; }

  .buch-expose {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .buch-fuerwen {
    grid-template-columns: 1fr;
  }
  .buch-fuerwen__divider { display: none; }

  .buch-cta-band__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .buch-cta-band__actions {
    flex-direction: row;
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .buch-hero { padding: 4rem 0 3.5rem; }
  .buch-section { padding: 4rem 0; }
  .buch-hero__title { font-size: 2.25rem; }
  .buch-regeln__grid { grid-template-columns: 1fr; }
  .buch-retailers__strip { gap: 1.5rem; }
  .buch-retailers__sep { display: none; }
}
