/* ============================================================
   Sidebar Author Book Box (Inner Sidebar — Slot 1)
   ============================================================
   Kontextuelle Buch-Empfehlung in der inneren Sidebar.
   Variante C: "WENN DIR DIESES REZEPT GEFÄLLT …"
                "Unser Backbuch hat über 100 davon"

   Design-Sprache: passt zu recipe-template.css
   (terracotta on cream, Perfectly Nineties Serif fuer Headlines).

   Wird via functions.php enqueued auf single + archive + page-hub.
   ============================================================ */

.wm-sidebar-book {
  /* Karten-Look wie die anderen Sidebar-Widgets */
  background: var(--surface, #ffffff);
  border: 1px solid var(--bg-alt, #f3ecdf);
  border-radius: 14px;
  padding: 22px 20px 20px;
  margin-bottom: 28px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  font-family: var(--font-sans, "Gilroy", system-ui, sans-serif);
  color: var(--ink, #1a1a1a);
}

/* ---------- Eyebrow + Hook (Variante C) ---------- */
.wm-sidebar-book__eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent, #c2410c);
  margin: 0 0 6px;
  line-height: 1.3;
}

.wm-sidebar-book__hook {
  font-family: var(--font-serif, "Perfectly Nineties", Georgia, serif);
  font-size: 19px;
  line-height: 1.25;
  font-weight: 500;
  color: var(--ink, #1a1a1a);
  margin: 0 0 16px;
}

/* ---------- Cover + Buch-Block ---------- */
.wm-sidebar-book__link {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.18s ease;
}

.wm-sidebar-book__link:hover {
  transform: translateY(-2px);
}

.wm-sidebar-book__cover {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  margin-bottom: 14px;
}

.wm-sidebar-book__body { padding: 0; }

.wm-sidebar-book__title {
  font-family: var(--font-serif, "Perfectly Nineties", Georgia, serif);
  font-size: 17px;
  line-height: 1.25;
  font-weight: 600;
  color: var(--ink, #1a1a1a);
  margin: 0 0 4px;
}

.wm-sidebar-book__subtitle {
  font-size: 13px;
  line-height: 1.4;
  color: #555;
  margin: 0 0 10px;
}

/* ---------- Rating ---------- */
.wm-sidebar-book__rating {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  margin: 0 0 14px;
}

.wm-sidebar-book__stars {
  color: #f5a623;
  letter-spacing: 0.02em;
  font-size: 14px;
}

.wm-sidebar-book__rating-value {
  font-weight: 600;
  color: var(--ink, #1a1a1a);
}

.wm-sidebar-book__reviews {
  color: #777;
  font-size: 12px;
}

/* ---------- CTA-Button ---------- */
.wm-sidebar-book__cta {
  display: block;
  width: 100%;
  padding: 12px 16px;
  background: var(--accent, #c2410c);
  color: #ffffff;
  text-align: center;
  text-decoration: none;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background 0.18s ease, transform 0.18s ease;
}

.wm-sidebar-book__cta:hover,
.wm-sidebar-book__cta:focus-visible {
  background: #8a3f2d;
  color: #ffffff;
  transform: translateY(-1px);
}

.wm-sidebar-book__cta span { display: inline-block; transition: transform 0.18s ease; }
.wm-sidebar-book__cta:hover span { transform: translateX(3px); }

/* ---------- Preis-Anker ---------- */
.wm-sidebar-book__price {
  font-size: 12px;
  color: #777;
  text-align: center;
  margin: 10px 0 0;
  line-height: 1.4;
}

/* ---------- Affiliate-Disclosure (Pflicht laut Amazon-Partner-AGB) ---------- */
.wm-sidebar-book__disclosure {
  font-size: 10px;
  line-height: 1.35;
  color: #999;
  text-align: center;
  margin: 8px 0 0;
  font-style: italic;
}

/* ============================================================
   Mobile (< 992px): Sidebar wird gestackt unter den Content.
   Da der innere Sidebar-Container auf Mobile eh weggeklappt wird
   (siehe recipe-template.css), brauchen wir hier nur kleine Tweaks
   fuer den Fall dass die Box auf engem Viewport landet.
   ============================================================ */
@media (max-width: 600px) {
  .wm-sidebar-book {
    padding: 18px 16px 16px;
    margin-bottom: 20px;
  }
  .wm-sidebar-book__hook { font-size: 17px; }
  .wm-sidebar-book__title { font-size: 16px; }
}

/* ============================================================
   Print: Buch-Box ausblenden (Druck-View braucht keine Werbung)
   ============================================================ */
@media print {
  .wm-sidebar-book { display: none; }
}


/* ============================================================
   SIDEBAR SLOT 2 — "Andere lieben gerade …"
   ============================================================ */

.wm-sidebar-top {
  background: var(--surface, #ffffff);
  border: 1px solid var(--bg-alt, #f3ecdf);
  border-radius: 14px;
  padding: 18px 16px;
  margin-bottom: 28px;
  font-family: var(--font-sans, "Gilroy", system-ui, sans-serif);
}

.wm-sidebar-top__heading {
  margin: 0 0 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.wm-sidebar-top__eyebrow {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent, #c2410c);
  line-height: 1.3;
}

.wm-sidebar-top__title {
  font-family: var(--font-serif, "Perfectly Nineties", Georgia, serif);
  font-size: 17px;
  font-weight: 600;
  color: var(--ink, #1a1a1a);
  line-height: 1.3;
}

.wm-sidebar-top__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wm-sidebar-top__item { margin: 0; }

.wm-sidebar-top__link {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  text-decoration: none;
  color: inherit;
  border-radius: 8px;
  padding: 4px;
  transition: background 0.15s ease;
}

.wm-sidebar-top__link:hover,
.wm-sidebar-top__link:focus-visible {
  background: var(--bg-alt, #f3ecdf);
  outline: none;
}

.wm-sidebar-top__thumb-wrap {
  flex: 0 0 76px;
  width: 76px;
  height: 76px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-alt, #f3ecdf);
  display: block;
}

.wm-sidebar-top__thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.wm-sidebar-top__body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.wm-sidebar-top__name {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--ink, #1a1a1a);
  /* Max 3 Zeilen */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.wm-sidebar-top__meta {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #777;
  flex-wrap: wrap;
}

.wm-sidebar-top__star { color: #f5a623; font-size: 12px; }
.wm-sidebar-top__rating-value { font-weight: 600; color: var(--ink, #1a1a1a); }
.wm-sidebar-top__rating-count { color: #888; }
.wm-sidebar-top__dot { color: #ccc; }
.wm-sidebar-top__time { color: #777; }


/* ============================================================
   SIDEBAR SLOT 3 — Newsletter (Sonntagsrezept)
   ============================================================ */

.wm-sidebar-news {
  background: var(--accent-soft, #fdebe0);
  border: 1px solid rgba(194, 65, 12, 0.15);
  border-radius: 14px;
  padding: 22px 20px 20px;
  margin-bottom: 28px;
  font-family: var(--font-sans, "Gilroy", system-ui, sans-serif);
  text-align: center;
}

.wm-sidebar-news__eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent, #c2410c);
  margin: 0 0 4px;
  line-height: 1.3;
}

.wm-sidebar-news__title {
  font-family: var(--font-serif, "Perfectly Nineties", Georgia, serif);
  font-size: 19px;
  font-weight: 600;
  color: var(--ink, #1a1a1a);
  margin: 0 0 8px;
  line-height: 1.25;
}

.wm-sidebar-news__lead {
  font-size: 13px;
  line-height: 1.45;
  color: #555;
  margin: 0 0 14px;
}

.wm-sidebar-news__form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 12px;
}

.wm-sidebar-news__input {
  width: 100%;
  padding: 11px 14px;
  font-size: 14px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #ffffff;
  color: var(--ink, #1a1a1a);
  font-family: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  box-sizing: border-box;
}

.wm-sidebar-news__input:focus {
  outline: none;
  border-color: var(--accent, #c2410c);
  box-shadow: 0 0 0 3px rgba(194, 65, 12, 0.15);
}

.wm-sidebar-news__submit {
  padding: 11px 16px;
  background: var(--accent, #c2410c);
  color: #ffffff;
  border: none;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.wm-sidebar-news__submit:hover,
.wm-sidebar-news__submit:focus-visible {
  background: #8a3f2d;
  transform: translateY(-1px);
}

.wm-sidebar-news__submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.wm-sidebar-news__ok {
  background: #ffffff;
  color: #2d5a2a;
  font-size: 13px;
  padding: 12px 14px;
  border-radius: 8px;
  margin: 8px 0 12px;
  font-weight: 500;
}

.wm-sidebar-news__trust {
  font-size: 11px;
  color: #777;
  margin: 8px 0 0;
  line-height: 1.5;
}

.wm-sidebar-news__trust strong { color: var(--ink, #1a1a1a); font-weight: 700; }

.wm-sidebar-news__legal {
  display: block;
  font-size: 10px;
  color: #999;
  margin-top: 2px;
}


/* ============================================================
   Mobile (< 600px) — Slot 2 + 3 Tweaks
   ============================================================ */
@media (max-width: 600px) {
  .wm-sidebar-top, .wm-sidebar-news {
    padding: 16px 14px;
    margin-bottom: 20px;
  }
  .wm-sidebar-top__title { font-size: 16px; }
  .wm-sidebar-news__title { font-size: 17px; }
  .wm-sidebar-top__thumb-wrap { flex-basis: 64px; width: 64px; height: 64px; }
}

@media print {
  .wm-sidebar-top, .wm-sidebar-news { display: none; }
}
