/* ==========================================================================
   Booyah Books & Beats — digital shop
   Loaded on coloring-books.html, the cutie-*.html pages and download.php
   ========================================================================== */

/* ---------- Buy block on a book page ---------- */
.buy-block {
  border: 1px solid var(--line);
  border-top: 3px solid var(--amber);
  border-radius: 12px;
  background: var(--paper);
  padding: clamp(1.4rem, 3vw, 2rem);
  max-width: 34rem;
  margin: clamp(2rem, 4vw, 3rem) auto 0;
  text-align: center;
}
.buy-block h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); margin: 0 0 0.5rem; }
.buy-price {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.9rem, 4vw, 2.4rem);
  color: var(--forest);
  line-height: 1;
  margin: 0.6rem 0 0.2rem;
}
.buy-price small { font-size: 0.9rem; font-family: inherit; color: var(--sage); display: block; margin-top: 0.4rem; font-weight: 400; }
.buy-facts { list-style: none; margin: 1.1rem 0 1.4rem; padding: 0; font-size: 0.95rem; color: var(--forest-soft); }
.buy-facts li { margin-bottom: 0.4rem; }
.buy-facts li::before { content: "✓"; color: var(--sage); font-weight: 700; margin-right: 0.5rem; }
.buy-hint { font-size: 0.85rem; color: var(--sage); margin-top: 0.9rem; }

/* ---------- Bundle highlight ---------- */
.bundle-card {
  border: 1px solid var(--sage);
  border-top: 3px solid var(--clay);
  background: var(--sage-pale);
  max-width: 40rem;
}
.bundle-save {
  display: inline-block;
  background: var(--clay);
  color: #fff;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.28rem 0.85rem;
  margin-bottom: 0.7rem;
}

/* ---------- Grid of single books ---------- */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1.25rem;
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
}
.shop-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  padding: 1.1rem;
  text-align: center;
}
.shop-item h4 { font-size: 1.05rem; margin: 0 0 0.3rem; }
.shop-item .p { color: var(--sage); font-size: 0.95rem; margin: 0 0 0.9rem; }
.shop-item .btn { width: 100%; }
.shop-item[data-soon] { opacity: 0.55; }

/* ---------- The gate ---------- */
.gate-backdrop {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(46, 61, 47, 0.55);
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
}
.gate-backdrop[hidden] { display: none; }
.gate {
  background: var(--paper);
  border-radius: 14px;
  max-width: 30rem; width: 100%;
  max-height: 90vh; overflow-y: auto;
  padding: clamp(1.4rem, 3vw, 2rem);
  box-shadow: 0 30px 70px -30px rgba(46, 61, 47, 0.7);
}
.gate h2 { font-size: 1.35rem; margin: 0 0 0.3rem; }
.gate .gate-item { color: var(--sage); font-size: 0.95rem; margin: 0 0 1.3rem; }
.gate label.field { display: block; font-size: 0.9rem; font-weight: 600; color: var(--forest); margin-bottom: 0.4rem; }
.gate select {
  width: 100%; padding: 0.6rem 0.7rem; font: inherit; font-size: 0.97rem;
  border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--forest);
  margin-bottom: 1.2rem;
}
.gate-check { display: flex; gap: 0.6rem; align-items: flex-start; margin-bottom: 1rem; font-size: 0.9rem; line-height: 1.5; color: var(--forest-soft); }
.gate-check input { margin-top: 0.25rem; flex: none; width: 1.05rem; height: 1.05rem; }
.gate-actions { display: flex; gap: 0.7rem; margin-top: 1.4rem; }
.gate-actions .btn { flex: 1; }
.gate-msg {
  background: #FBEDE4; border-left: 3px solid var(--clay);
  padding: 0.85rem 1rem; border-radius: 8px;
  font-size: 0.92rem; color: var(--forest); margin-bottom: 1rem;
}
.gate-msg[hidden] { display: none; }
.gate-legal { font-size: 0.8rem; color: var(--sage); margin-top: 1.1rem; }

/* ---------- Download page ---------- */
.download-list { list-style: none; padding: 0; margin: 0; }
.download-list li {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  border: 1px solid var(--line); border-radius: 10px;
  padding: 0.9rem 1.1rem; margin-bottom: 0.7rem; background: var(--paper);
}
.download-list span { font-family: "Fraunces", Georgia, serif; font-size: 1.05rem; color: var(--forest); }
.download-note { font-size: 0.9rem; color: var(--forest-soft); margin-top: 1.5rem; text-align: center; }

@media (max-width: 480px) {
  .gate-actions { flex-direction: column; }
  .download-list li { flex-direction: column; align-items: stretch; text-align: center; }
}

.download-used { font-size: 0.9rem; color: var(--sage); }

/* Der Paket-Hinweis im Kaufkasten: abgesetzt, aber kein zweiter Kasten. */
.buy-bundle {
  margin-top: 1.4rem;
  padding-top: 1.3rem;
  border-top: 1px dashed var(--line);
}
.buy-bundle p {
  font-size: 0.95rem;
  color: var(--forest-soft);
  margin: 0 0 0.9rem;
}
.buy-bundle strong { color: var(--forest); }

/* Das Paket-Band im Buchraster: volle Breite, trennt verfuegbar von kommend. */
.bundle-band {
  grid-column: 1 / -1;
  background: var(--sage-pale);
  border: 1px solid var(--sage-light);
  border-radius: 12px;
  padding: clamp(1.2rem, 2.5vw, 1.8rem);
  margin: clamp(0.5rem, 1.5vw, 1rem) 0;
  text-align: center;
}
.bundle-band__line {
  font-size: 1rem;
  color: var(--forest-soft);
  margin: 0 0 1rem;
  max-width: 46ch;
  margin-inline: auto;
}
.bundle-band__line strong { color: var(--forest); }

/* --- Laendersuche im Kauftor ---------------------------------------------
   Das <select> bleibt im Markup und ist nur versteckt; ohne JavaScript ist
   es sichtbar und das Suchfeld nicht. */
.laendersuche { position: relative; }
.laendersuche input {
  width: 100%;
  padding: .6rem .7rem;
  font: inherit;
  border: 1px solid var(--line, #cfd6cf);
  border-radius: 6px;
  background: #fff;
}
.laendersuche input:focus-visible { outline: 2px solid var(--green, #2f4a35); outline-offset: 1px; }
.laender-treffer {
  position: absolute;
  z-index: 5;
  left: 0; right: 0; top: calc(100% + 2px);
  max-height: 15rem;
  overflow-y: auto;
  margin: 0;
  padding: .25rem;
  list-style: none;
  background: #fff;
  border: 1px solid var(--line, #cfd6cf);
  border-radius: 6px;
  box-shadow: 0 6px 20px rgba(0,0,0,.14);
}
.laender-treffer li {
  padding: .4rem .55rem;
  border-radius: 4px;
  cursor: pointer;
}
.laender-treffer li.an,
.laender-treffer li:hover { background: var(--green, #2f4a35); color: #fff; }
.laender-treffer li.laender-leer { cursor: default; color: var(--muted, #6b7a6e); }
.laender-treffer li.laender-leer:hover { background: transparent; color: var(--muted, #6b7a6e); }
