/* =========================================================================
   Mein Malbuch — Ausmalbilder-Sektion
   Ergänzung zu style.css, NUR von den Seiten unter /ausmalbilder/ geladen.

   Warum eine eigene Datei: Die Seiten dort werden erzeugt
   (scripts/build-ausmalbilder-seiten.mjs). Änderungen daran sollen die
   1.900 Zeilen der Startseite nicht anfassen — und Besucher der Startseite
   laden ihren zwischengespeicherten style.css unverändert weiter.

   Alle Farben, Radien und Schatten kommen aus den Variablen in style.css.
   ========================================================================= */

/* ---------- Brotkrumen --------------------------------------------------- */

.brotkrumen {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  color: var(--tinte-700);
  font-size: 0.85rem;
  font-weight: 700;
}

.brotkrumen a:hover {
  color: var(--beere-600);
}

.brotkrumen span[aria-hidden] {
  opacity: 0.45;
}

.brotkrumen [aria-current] {
  color: var(--tinte-900);
}

/* ---------- Kopfbereich der Sektion -------------------------------------- */

/* Derselbe Abstand zur festen Kopfzeile wie bei den Rechtstexten. */
.mal-kopf {
  padding: 138px 0 0;
}

.mal-kopf h1 {
  max-width: 15ch;
}

.mal-kopf .vorspann {
  max-width: 640px;
  font-size: clamp(1.05rem, 1.5vw, 1.24rem);
}

/* Der lange Einleitungstext. Bewusst schmal: Fließtext über die volle
   Seitenbreite liest sich auf großen Bildschirmen schlecht. */
.seo-text {
  max-width: 720px;
  margin-top: 34px;
}

.seo-text h2 {
  margin-top: 40px;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
}

.seo-text p {
  margin-bottom: 16px;
}

.seo-text strong {
  color: var(--tinte-900);
}

/* ---------- Themen-Übersicht --------------------------------------------- */

.themen-raster {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 22px;
}

.themen-karte {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-m);
  background: #fff;
  box-shadow: var(--schatten-karte);
  transition: transform 0.25s, box-shadow 0.25s;
}

.themen-karte:hover {
  transform: translateY(-5px);
  box-shadow: var(--schatten-weich);
}

.themen-karte-bild {
  display: block;
  padding: 16px;
  /* Quadratisch, obwohl die Vorlagen hochkant sind: So bleibt links und
     rechts etwas farbiger Rand stehen, statt das Bild anzuschneiden. */
  aspect-ratio: 1 / 1;
}

/* Höhe ausdrücklich setzen — mit "max-height: 100%" gewinnt die natürliche
   Bildbreite, und das Hochformat schießt unten aus der Karte heraus. */
.themen-karte-bild img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.themen-karte-text {
  padding: 16px 20px 22px;
}

.themen-karte h3 {
  margin-bottom: 4px;
}

.themen-karte p {
  margin-bottom: 0;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--beere-600);
}

/* ---------- Motive einer Themenseite ------------------------------------- */

.motiv-raster {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.motiv-karte {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 12px;
  border-radius: var(--radius-m);
  background: #fff;
  box-shadow: var(--schatten-karte);
  transition: transform 0.25s;
}

.motiv-karte:hover {
  transform: translateY(-4px) rotate(-0.6deg);
}

.motiv-karte img {
  width: 100%;
  border-radius: 14px;
  /* Die Vorlagen sind reines Schwarz auf Weiß — multiply lässt das Weiß
     verschwinden, damit die Karte nicht wie ein Kasten im Kasten wirkt. */
  mix-blend-mode: multiply;
}

.motiv-karte figcaption {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 12px 4px 4px;
  text-align: center;
}

.motiv-name {
  font-weight: 800;
  color: var(--tinte-900);
  line-height: 1.3;
}

/* Ladeknopf: kleiner als der große .knopf, sonst erschlägt er die Karte. */
.mal-knopf {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding: 9px 18px;
  border-radius: 999px;
  color: var(--tinte-900);
  background: var(--creme-100);
  box-shadow: inset 0 0 0 2px rgba(74, 63, 74, 0.12);
  font-size: 0.88rem;
  font-weight: 800;
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
}

.mal-knopf:hover {
  transform: translateY(-2px);
  background: #fff;
  box-shadow: inset 0 0 0 2px rgba(201, 84, 132, 0.4);
}

.mal-knopf svg {
  flex: none;
}

/* ---------- Alles-auf-einmal-Band ---------------------------------------- */

.sammel-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 26px;
  margin-bottom: 34px;
  padding: 22px 26px;
  border-radius: var(--radius-m);
  background: var(--creme-100);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.9);
}

.sammel-band p {
  flex: 1 1 260px;
  margin-bottom: 0;
}

.sammel-band strong {
  display: block;
  color: var(--tinte-900);
  font-family: var(--schrift-display);
  font-size: 1.2rem;
  font-weight: 600;
}

/* ---------- Wusstest du? ------------------------------------------------- */

.wissen {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.wissen li {
  padding: 20px 22px;
  border-radius: var(--radius-s);
  background: rgba(255, 255, 255, 0.75);
  box-shadow: var(--schatten-karte);
  color: var(--tinte-700);
  font-size: 0.95rem;
}

/* ---------- Druck-Hinweise ----------------------------------------------- */

.drucktipps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
}

.drucktipps div {
  padding: 0;
}

.drucktipps dt {
  margin-bottom: 6px;
  color: var(--tinte-900);
  font-family: var(--schrift-display);
  font-size: 1.05rem;
  font-weight: 600;
}

.drucktipps dd {
  margin: 0;
  color: var(--tinte-700);
  font-size: 0.94rem;
}

/* ---------- Weitere Themen ----------------------------------------------- */

.weitere-themen {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.weitere-themen a {
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: inset 0 0 0 2px rgba(74, 63, 74, 0.1);
  font-size: 0.9rem;
  font-weight: 800;
  transition: box-shadow 0.2s, background 0.2s;
}

.weitere-themen a:hover {
  background: #fff;
  box-shadow: inset 0 0 0 2px rgba(201, 84, 132, 0.4);
}

/* ---------- Gedruckte Malbücher (/malbuecher.html) ----------------------- */

.buch-liste {
  display: grid;
  gap: 26px;
}

.buch-karte {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 30px;
  align-items: start;
  padding: 26px;
  border-radius: var(--radius-l);
  background: #fff;
  box-shadow: var(--schatten-karte);
}

/* Kein festes Seitenverhältnis: Das Cover bringt seins selbst mit, und ein
   erzwungenes Maß würde oben oder unten etwas abschneiden — bei einem
   Buchcover ausgerechnet den Titel. */
.buch-cover {
  overflow: hidden;
  border-radius: var(--radius-s);
  box-shadow: 0 12px 30px rgba(74, 63, 74, 0.16);
}

.buch-cover img {
  width: 100%;
  height: auto;
}

/* Ersatzkarte, solange das Coverbild fehlt — damit die Seite auch ohne
   Bilddateien fertig aussieht statt kaputt. */
.buch-cover--ersatz {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  aspect-ratio: 4 / 5;
  padding: 24px 22px;
}

.buch-cover-titel {
  color: var(--tinte-900);
  font-family: var(--schrift-display);
  font-size: 1.32rem;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.buch-cover-zahl {
  color: var(--tinte-700);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.buch-reihe {
  display: inline-block;
  margin-bottom: 10px;
  padding: 5px 13px;
  border-radius: 999px;
  background: var(--creme-100);
  color: var(--beere-600);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.buch-text h3 {
  margin-bottom: 4px;
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
}

.buch-untertitel {
  margin-bottom: 14px;
  color: var(--beere-600);
  font-weight: 700;
}

.buch-punkte {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.buch-punkte li {
  position: relative;
  margin-bottom: 6px;
  padding-left: 26px;
  color: var(--tinte-700);
  font-size: 0.95rem;
}

.buch-punkte li::before {
  content: "";
  position: absolute;
  top: 0.55em;
  left: 4px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--pfirsich-400);
}

.buch-daten {
  margin-bottom: 18px;
  color: var(--tinte-700);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.buch-daten span {
  opacity: 0.4;
}

.buch-karte .knopf svg {
  margin-left: 2px;
}

.buch-hinweis {
  max-width: 720px;
  margin: 30px auto 0;
  color: var(--tinte-700);
  font-size: 0.86rem;
  text-align: center;
}

/* ---------- Mobil -------------------------------------------------------- */

@media (max-width: 700px) {
  .mal-kopf {
    padding-top: 112px;
  }

  .motiv-raster,
  .themen-raster {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 14px;
  }

  .sammel-band {
    padding: 20px;
  }

  /* Cover über den Text statt daneben, sonst bleibt für beides zu wenig. */
  .buch-karte {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px;
  }

  .buch-cover {
    max-width: 200px;
  }
}

/* ---------- Drucken ------------------------------------------------------ */

/* Wer versehentlich die Seite statt des PDFs druckt, soll wenigstens kein
   Menü und keine Knöpfe auf dem Papier haben. */
@media print {
  .kopfzeile,
  .fusszeile,
  .sammel-band,
  .mal-knopf,
  .weitere-themen,
  .schluss {
    display: none !important;
  }
}
