/* ==========================================================================
   Dawood Stories – Startseite (Demo), Version 2
   Aufbau eng am dattelbeere-Nachbau (Header, Produktraster, Über uns,
   Stimmen, Footer). Schriften wie auf Antjes Instagram:
   Quicksand (rund, freundlich), Dancing Script (ihre Zitat-Slides),
   Patrick Hand (Notizen wie auf ihrem Vorstellungsbild).
   Regler: Varianz 5 · Bewegung 4 · Dichte 4. Nur Hellmodus (Papier-Look).
   ========================================================================== */

@import url("../fonts/fonts.css");

:root {
  --paper: #fdfaf3;        /* Logo-Hintergrund */
  --sand: #f6eddd;
  --blush: #fbe6e1;        /* Rosa der Kameldecke, stark aufgehellt */
  --ink: #2b2521;
  --ink-soft: #62574e;
  --rust: #aa5827;         /* Schriftzug „DAWOOD Stories“ */
  --rust-dark: #8e4519;
  --olive: #5f6b33;        /* Grün der Zitat-Slides */
  --rose: #e88e84;
  --line: rgba(170, 88, 39, 0.14);

  --font: "Quicksand", ui-rounded, system-ui, sans-serif;
  --script: "Dancing Script", cursive;
  --hand: "Patrick Hand", "Comic Sans MS", cursive;

  --r-card: 18px;
  --r-arch: 999px 999px 18px 18px;
  --page: 1000px;
  --gutter: clamp(16px, 4vw, 50px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.7; letter-spacing: 0.02em;
  color: var(--ink-soft); background: var(--paper); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, blockquote, figure { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; letter-spacing: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.icon { width: 1em; height: 1em; display: inline-block; flex: none; fill: currentColor; }
.page-width { max-width: calc(var(--page) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--rust); color: #fff; border-radius: 999px; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--rust); outline-offset: 3px; border-radius: 6px; }

/* Typografie wie dattelbeere: große, runde Überschriften in Markenfarbe */
.h1 { font-size: clamp(34px, 4.6vw, 48px); font-weight: 600; line-height: 1.2; letter-spacing: 0.01em; color: var(--rust); }
.h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 600; line-height: 1.2; letter-spacing: 0.01em; color: var(--rust); }
.script { font-family: var(--script); font-weight: 600; letter-spacing: 0; color: var(--olive); }
.hand { font-family: var(--hand); letter-spacing: 0.01em; color: var(--ink); }
.lead { font-size: clamp(17px, 1.6vw, 19px); max-width: 60ch; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 30px; font-weight: 700; font-size: 16px; letter-spacing: 0.04em; white-space: nowrap;
  text-decoration: none; border-radius: 999px; transition: transform 0.2s var(--ease), background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.btn .icon { width: 18px; height: 18px; }
.btn:active { transform: translateY(1px) scale(0.98); }
.btn--primary { background: var(--rust); color: #fff; }
.btn--primary:hover { background: var(--rust-dark); }
.btn--outline { color: var(--rust); box-shadow: inset 0 0 0 1.5px var(--rust); }
.btn--outline:hover { background: var(--rust); color: #fff; }
.btn--light { background: #fff; color: var(--rust-dark); }
.link { color: var(--rust); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
.link:hover { color: var(--rust-dark); }

/* --------------------------------------------------------------------------
   Ankündigung + Header (Aufbau wie dattelbeere: Menü links, Logo mittig, Icons rechts)
   -------------------------------------------------------------------------- */
.announcement { border-bottom: 1px solid var(--line); text-align: center; padding: 10px var(--gutter); font-size: 15px; font-weight: 600; letter-spacing: 0.06em; color: var(--rust); }
.site-header { position: sticky; top: 0; z-index: 30; background: var(--paper); border-bottom: 1px solid var(--line); }
.header { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; column-gap: 20px; min-height: 104px; }
.header__logo img { width: 112px; height: auto; }
.header__nav ul { display: flex; flex-wrap: nowrap; margin-left: -12px; }
.header__nav a { display: block; padding: 12px; white-space: nowrap; font-size: 15px; font-weight: 500; text-decoration: none; color: var(--ink-soft); }
.header__nav a:hover { color: var(--rust); text-decoration: underline; text-underline-offset: 4px; }
.header__icons { display: flex; align-items: center; justify-content: flex-end; margin-right: -10px; }
.icon-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; color: var(--rust); text-decoration: none; border-radius: 999px; }
.icon-btn:hover { background: var(--sand); }
.icon-btn .icon { width: 23px; height: 23px; }
.cart-count {
  position: absolute; right: 2px; bottom: 4px; min-width: 19px; height: 19px; padding: 0 5px;
  font-size: 11px; font-weight: 700; line-height: 19px; text-align: center; color: #fff; background: var(--rust); border-radius: 999px;
}
.cart-count[hidden] { display: none; }
.menu-toggle { display: none; }
.menu-toggle .icon-close { display: none; }
@media (max-width: 899px) {
  .header { grid-template-columns: 44px 1fr 44px; min-height: 84px; column-gap: 8px; }
  .header__nav { display: none; }
  .menu-toggle { display: inline-flex; margin-left: -10px; }
  .header__logo { justify-self: center; }
  .header__logo img { width: 92px; }
  .header__icons .icon-btn--ig { display: none; }
}

/* Mobiles Menü als eigener Layer unter dem Header */
.mobile-menu {
  position: fixed; left: 0; right: 0; bottom: 0; top: var(--menu-top, 124px); z-index: 25;
  display: flex; flex-direction: column; overflow-y: auto;
  padding: 18px var(--gutter) max(28px, env(safe-area-inset-bottom)); background: var(--paper);
  visibility: hidden; opacity: 0; transform: translateY(-8px);
  transition: opacity 0.25s ease, transform 0.3s var(--ease), visibility 0s linear 0.3s;
}
.mobile-menu:focus { outline: none; }
body.menu-open { overflow: hidden; }
body.menu-open .mobile-menu { visibility: visible; opacity: 1; transform: none; transition: opacity 0.25s ease, transform 0.3s var(--ease); }
body.menu-open .menu-toggle .icon-open { display: none; }
body.menu-open .menu-toggle .icon-close { display: block; }
.mobile-menu nav a { display: block; padding: 12px 0; font-size: 22px; font-weight: 600; color: var(--rust); text-decoration: none; border-bottom: 1px solid var(--line); }
.mobile-menu__foot { margin-top: auto; display: grid; gap: 12px; padding-top: 28px; }
.mobile-menu__foot .btn { width: 100%; }
@media (min-width: 900px) { .mobile-menu { display: none; } }

/* --------------------------------------------------------------------------
   Hero: Bogen mittig, Notizen wie auf Antjes Vorstellungsbild
   -------------------------------------------------------------------------- */
.hero { padding: clamp(28px, 4vw, 44px) 0 clamp(48px, 6vw, 72px); text-align: center; overflow: hidden; }
.hero__hello { font-size: clamp(26px, 3vw, 32px); line-height: 1.1; }
.hero .h1 { margin-top: 6px; }
.hero__stage { position: relative; width: min(100%, 880px); margin: clamp(20px, 3vw, 30px) auto 0; }
.hero__arch { position: relative; width: min(400px, 78vw); margin: 0 auto; }
.hero__arch::before { content: ""; position: absolute; inset: 14px -14px -14px 14px; z-index: -1; border-radius: var(--r-arch); background: var(--blush); }
.hero__arch img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--r-arch); box-shadow: 0 26px 50px -34px rgba(120, 72, 30, 0.6); }
.note { position: absolute; font-family: var(--hand); font-size: 23px; line-height: 1.15; color: var(--ink); text-align: center; }
.note svg { position: absolute; width: 74px; height: 50px; overflow: visible; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.note .heart { color: var(--rose); }
.note--tl { left: 0; top: 16%; }
.note--tl svg { left: 58%; top: 100%; transform: rotate(12deg); }
.note--tr { right: 0; top: 10%; }
.note--tr svg { right: 62%; top: 110%; transform: scaleX(-1) rotate(10deg); }
.note--bl { left: 2%; bottom: 14%; }
.note--bl svg { left: 70%; bottom: 90%; transform: scaleY(-1) rotate(8deg); }
.note--br { right: 0; bottom: 20%; }
.note--br svg { right: 72%; bottom: 95%; transform: scale(-1, -1) rotate(6deg); }
.hero__cta { margin-top: clamp(26px, 3.5vw, 36px); }
@media (max-width: 799px) {
  .hero__stage { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 10px; }
  .hero__arch { grid-column: 1 / -1; order: -1; margin-bottom: 18px; }
  .note { position: static; font-size: 19px; padding: 8px 6px; border-bottom: 1.5px dashed rgba(43, 37, 33, 0.25); }
  .note svg { display: none; }
}

/* --------------------------------------------------------------------------
   Bücher: Raster wie „Lieblingsprodukte“ bei dattelbeere
   -------------------------------------------------------------------------- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-title { margin-bottom: clamp(22px, 3vw, 30px); }
.section-title .script { display: block; font-size: clamp(24px, 2.6vw, 30px); line-height: 1.2; margin-bottom: 4px; }
.product-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 36px 12px; }
.product { position: relative; flex: 0 0 calc(33.333% - 8px); display: flex; flex-direction: column; }
.product__media { position: relative; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 12px; background: var(--sand); }
.product__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 0.4s ease, transform 0.6s var(--ease); }
.product__media .img-2 { opacity: 0; }
@media (hover: hover) {
  .product:hover .img-1 { opacity: 0; }
  .product:hover .img-2 { opacity: 1; transform: scale(1.03); }
}
.product__badge {
  position: absolute; left: 12px; top: 12px; z-index: 1; padding: 4px 12px; font-size: 12px; font-weight: 700; letter-spacing: 0.06em;
  color: var(--rust); background: #fff; border: 1px solid var(--line); border-radius: 40px;
}
.product__info { padding-top: 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.product__title { font-size: 16.5px; font-weight: 600; line-height: 1.35; color: var(--rust); }
.product__title a { text-decoration: none; }
.product__title a:hover { text-decoration: underline; text-underline-offset: 3px; }
.product__meta { font-size: 14px; }
.product__price { margin-top: 2px; margin-bottom: 14px; font-size: 16px; font-weight: 600; letter-spacing: 0.06em; color: var(--rust); }
.product__add { margin-top: auto; align-self: flex-start; min-height: 44px; padding: 0 20px; font-size: 14.5px; }
.product__add.is-added { background: var(--olive); box-shadow: none; color: #fff; }
.shop-note { margin-top: 30px; text-align: center; font-size: 14px; }
@media (max-width: 749px) {
  .product-grid { gap: 28px 10px; justify-content: flex-start; }
  .product { flex-basis: calc(50% - 5px); }
  .product__title { font-size: 15px; }
  .product__meta { font-size: 13px; }
  .product__add { align-self: stretch; padding: 0 10px; font-size: 14px; }
}

/* --------------------------------------------------------------------------
   Geschichte, Teil 1: Antjes Worte (rosa wie ihre Slides)
   -------------------------------------------------------------------------- */
.words__grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.words blockquote { font-family: var(--script); font-weight: 600; font-size: clamp(27px, 3.1vw, 36px); line-height: 1.35; color: var(--olive); letter-spacing: 0; }
.words figcaption { margin-top: 18px; font-family: var(--hand); font-size: 21px; color: var(--ink); }
.words__img img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--r-arch); box-shadow: 0 24px 50px -34px rgba(120, 60, 50, 0.55); }
@media (max-width: 799px) { .words__grid { grid-template-columns: 1fr; } .words__img { max-width: 360px; } }

/* --------------------------------------------------------------------------
   Geschichte, Teil 2: So entsteht ein Buch
   -------------------------------------------------------------------------- */
.making .lead { margin-top: 10px; }

/* Bilder-Geschichte: links wachsen die Schritte, rechts fällt pro Schritt
   ein Foto auf den Stapel (Desktop). Mobil: senkrechte Folge, jedes Foto
   fällt beim Hineinscrollen ein. Kein Scroll-Listener, nur IntersectionObserver. */
.story { margin-top: clamp(32px, 5vw, 56px); display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 6vw, 80px); }
.story__stage { order: 2; position: sticky; top: 150px; align-self: start; height: min(620px, calc(100vh - 190px)); }
.story__pile { position: relative; width: 100%; height: 100%; }
.story__steps { order: 1; position: relative; margin: 0; padding: 0 0 0 34px; list-style: none; }
.story__steps::before, .story__steps::after {
  content: ""; position: absolute; left: 9px; top: 10px; bottom: 10px; width: 2px; border-radius: 2px;
}
.story__steps::before { background: repeating-linear-gradient(to bottom, rgba(170, 88, 39, 0.28) 0 6px, transparent 6px 12px); }
.story__steps::after { background: var(--rust); transform-origin: top; transform: scaleY(var(--progress, 0)); transition: transform 0.8s var(--ease); }

.story-step { position: relative; min-height: min(560px, 70vh); display: flex; flex-direction: column; justify-content: center; padding: 24px 0; }
.story-step::before {
  content: ""; position: absolute; left: -34px; top: 50%; width: 20px; height: 20px; margin-top: -10px; z-index: 1;
  border-radius: 50%; background: var(--paper); box-shadow: inset 0 0 0 2px rgba(170, 88, 39, 0.35);
  transition: background-color 0.4s ease, box-shadow 0.4s ease, transform 0.5s var(--ease);
}
.story-step.is-active::before, .story-step.is-past::before { background: var(--rust); box-shadow: 0 0 0 5px rgba(170, 88, 39, 0.16); }
.story-step.is-active::before { transform: scale(1.15); }
.story-step h3 { font-family: var(--hand); font-weight: 400; font-size: clamp(32px, 3.4vw, 42px); line-height: 1.05; color: var(--ink); }
.story-step p { margin-top: 10px; font-size: 18px; max-width: 34ch; }
.story-step h3, .story-step p { transition: opacity 0.5s ease, transform 0.6s var(--ease); }

/* Polaroids */
.polaroid { margin: 0; padding: 12px 12px 0; background: #fff; border-radius: 4px; box-shadow: 0 2px 4px rgba(43, 37, 33, 0.08), 0 26px 50px -30px rgba(90, 50, 20, 0.55); }
.polaroid img { width: 100%; object-fit: cover; border-radius: 2px; }
.polaroid figcaption { padding: 10px 4px 12px; font-family: var(--hand); font-size: 22px; line-height: 1.1; color: var(--ink); text-align: center; }
.story__pile .polaroid { position: absolute; left: 50%; top: 50%; width: min(78%, 380px); --r: 0deg; --x: 0px; --y: 0px; transform: translate(-50%, -50%) translate(var(--x), var(--y)) rotate(var(--r)); }
.story__pile .polaroid img { aspect-ratio: 4 / 4.6; }
.story__pile .polaroid:nth-child(1) { --r: -6deg; --x: -34px; --y: 10px; }
.story__pile .polaroid:nth-child(2) { --r: 5deg;  --x: 30px;  --y: -16px; }
.story__pile .polaroid:nth-child(3) { --r: -2deg; --x: -12px; --y: -4px; }
.story__pile .polaroid:nth-child(4) { --r: 3.5deg; --x: 18px; --y: 12px; }
.polaroid--inline { display: none; }

@media (prefers-reduced-motion: no-preference) {
  .js .story__pile .polaroid {
    opacity: 0; transform: translate(-50%, -50%) translate(var(--x), calc(var(--y) - 70px)) rotate(calc(var(--r) * -2.2)) scale(1.1);
    transition: opacity 0.45s ease, transform 0.9s cubic-bezier(0.2, 1.25, 0.35, 1);
  }
  .js .story__pile .polaroid.is-down { opacity: 1; transform: translate(-50%, -50%) translate(var(--x), var(--y)) rotate(var(--r)); }
  .js .story__pile .polaroid.is-down:not(.is-top) { filter: saturate(0.85) brightness(0.97); }
  .js .story-step:not(.is-active) h3, .js .story-step:not(.is-active) p { opacity: 0.38; }
}
.story__pile .polaroid.is-top { z-index: 5; }

@media (max-width: 799px) {
  .story { grid-template-columns: 1fr; }
  .story__stage { display: none; }
  .story__steps { padding-left: 28px; }
  .story__steps::before, .story__steps::after { left: 6px; }
  .story-step { min-height: 0; padding: 0 0 44px; }
  .story-step::before { left: -28px; top: 18px; margin-top: 0; width: 16px; height: 16px; }
  .polaroid--inline { display: block; margin-bottom: 18px; width: 92%; }
  .story-step:nth-child(odd) .polaroid--inline { transform: rotate(-2deg); }
  .story-step:nth-child(even) .polaroid--inline { transform: rotate(2deg); margin-left: auto; }
  .polaroid--inline img { aspect-ratio: 4 / 4.6; }
  .story-step p { font-size: 17px; }
  @media (prefers-reduced-motion: no-preference) {
    .js .polaroid--inline { opacity: 0; translate: 0 -40px; scale: 1.06; transition: opacity 0.5s ease, translate 0.9s cubic-bezier(0.2, 1.25, 0.35, 1), scale 0.9s var(--ease); }
    .js .story-step.is-seen .polaroid--inline { opacity: 1; translate: 0 0; scale: 1; }
    .js .story-step:not(.is-active) h3, .js .story-step:not(.is-active) p { opacity: 1; }
  }
}

/* --------------------------------------------------------------------------
   Geschichte, Teil 3: Antje stellt sich vor (Kasten wie „Über uns“ bei dattelbeere)
   -------------------------------------------------------------------------- */
.about__box { display: grid; grid-template-columns: 1fr 1fr; background: #fff; border-radius: var(--r-card); overflow: hidden; box-shadow: 0 30px 60px -44px rgba(120, 72, 30, 0.55); }
.about__box { align-items: center; }
.about__img { padding: 18px 0 18px 18px; }
.about__img img { width: 100%; height: auto; border-radius: 12px; }
@media (max-width: 799px) { .about__img { padding: 14px 14px 0; } }
.about__text { padding: clamp(28px, 4.5vw, 52px); align-self: center; }
.about__text .script { font-size: clamp(28px, 3vw, 34px); line-height: 1.1; }
.about__text .h2 { margin-top: 2px; font-size: clamp(28px, 3.4vw, 38px); }
.about__text p { margin-top: 14px; }
.about__quote { margin-top: 22px; padding-left: 18px; border-left: 3px solid var(--rose); font-family: var(--script); font-weight: 600; font-size: clamp(21px, 2vw, 24px); line-height: 1.4; color: var(--olive); letter-spacing: 0; }
.about__text .link { display: inline-block; margin-top: 20px; }
@media (max-width: 799px) { .about__box { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Stimmen (Karten wie der Bewertungs-Slider bei dattelbeere)
   -------------------------------------------------------------------------- */
.voices-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.voice { display: flex; flex-direction: column; padding: 22px 22px 20px; background: #fff; border-radius: 6px; box-shadow: 0 4px 14px rgba(120, 72, 30, 0.12); }
.voice .icon { width: 34px; height: 34px; color: var(--rose); }
.voice blockquote { margin-top: 8px; font-size: 16.5px; line-height: 1.55; color: var(--ink); }
.voice figcaption { margin-top: auto; padding-top: 18px; font-size: 14.5px; font-weight: 700; color: var(--rust); }
@media (max-width: 849px) { .voices-grid { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Instagram
   -------------------------------------------------------------------------- */
.insta__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; margin-bottom: 26px; }
.insta__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.insta__tile { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 10px; background: #eadfcd; }
.insta__tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.insta__tile::after {
  content: ""; position: absolute; inset: 0; background: rgba(43, 37, 33, 0.35) center / 34px no-repeat
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='white'%3E%3Cpath d='M128,80a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,80Zm0,80a32,32,0,1,1,32-32A32,32,0,0,1,128,160ZM176,24H80A56.06,56.06,0,0,0,24,80v96a56.06,56.06,0,0,0,56,56h96a56.06,56.06,0,0,0,56-56V80A56.06,56.06,0,0,0,176,24Zm40,152a40,40,0,0,1-40,40H80a40,40,0,0,1-40-40V80A40,40,0,0,1,80,40h96a40,40,0,0,1,40,40ZM192,76a12,12,0,1,1-12-12A12,12,0,0,1,192,76Z'/%3E%3C/svg%3E");
  opacity: 0; transition: opacity 0.3s ease;
}
.insta__tile:hover img, .insta__tile:focus-visible img { transform: scale(1.04); }
.insta__tile:hover::after, .insta__tile:focus-visible::after { opacity: 1; }
@media (min-width: 900px) { .insta__grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

/* --------------------------------------------------------------------------
   Fragen
   -------------------------------------------------------------------------- */
.faq-list { max-width: 800px; }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 64px; padding: 14px 0; cursor: pointer; list-style: none; font-size: 18px; font-weight: 600; color: var(--ink); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .icon { width: 22px; height: 22px; color: var(--rust); transition: transform 0.3s var(--ease); }
.faq-item[open] summary .icon { transform: rotate(45deg); }
.faq-item p { padding: 0 40px 22px 0; max-width: 65ch; }

/* --------------------------------------------------------------------------
   Abschluss + Footer
   -------------------------------------------------------------------------- */
.closing { padding-top: 0; }
.closing__card { position: relative; overflow: hidden; text-align: center; padding: clamp(36px, 6vw, 64px) clamp(22px, 5vw, 48px); background: var(--rust); color: #fff; border-radius: var(--r-card); }
.closing__card .script { color: #fff; font-size: clamp(34px, 4.4vw, 50px); line-height: 1.15; }
.closing__card p { margin: 12px auto 26px; max-width: 56ch; color: rgba(255, 255, 255, 0.9); }

.footer { padding: 26px 0 30px; font-size: 14px; }
.footer__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.footer__top img { width: 96px; height: auto; }
.footer__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 22px; }
.footer__nav a { text-decoration: none; font-weight: 600; color: var(--rust); }
.footer__nav a:hover { text-decoration: underline; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 22px; padding-top: 22px; font-size: 13px; }
.footer__bottom a { color: inherit; }
.placeholder { background: rgba(232, 142, 132, 0.28); border-radius: 4px; padding: 0 4px; }
@media (max-width: 749px) { .footer__top, .footer__bottom { justify-content: center; text-align: center; } }

/* --------------------------------------------------------------------------
   Warenkorb (eigener Layer rechts)
   -------------------------------------------------------------------------- */
.cart-backdrop { position: fixed; inset: 0; z-index: 60; background: rgba(43, 37, 33, 0.4); opacity: 0; visibility: hidden; transition: opacity 0.25s ease, visibility 0s linear 0.25s; }
.cart {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 61; width: min(420px, 100%);
  display: flex; flex-direction: column; background: var(--paper); box-shadow: -20px 0 50px -30px rgba(43, 37, 33, 0.5);
  transform: translateX(100%); visibility: hidden; transition: transform 0.35s var(--ease), visibility 0s linear 0.35s;
}
body.cart-open { overflow: hidden; }
body.cart-open .cart-backdrop { opacity: 1; visibility: visible; transition: opacity 0.25s ease; }
body.cart-open .cart { transform: none; visibility: visible; transition: transform 0.35s var(--ease); }
.cart:focus { outline: none; }
.cart__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 14px 24px; border-bottom: 1px solid var(--line); }
.cart__head h2, .cart__title { font-size: 22px; font-weight: 700; color: var(--rust); }
.cart__items { flex: 1; overflow-y: auto; padding: 8px 24px; }
.cart__empty { padding: 40px 0; text-align: center; }
.cart__empty p { margin-bottom: 18px; }
.cart-item { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-item img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; }
.cart-item__title { font-weight: 700; font-size: 15px; line-height: 1.35; color: var(--ink); }
.cart-item__price { font-size: 14px; }
.qty { display: inline-flex; align-items: center; margin-top: 6px; border: 1px solid var(--line); border-radius: 999px; }
.qty button { width: 32px; height: 32px; font-size: 18px; line-height: 1; color: var(--rust); border-radius: 999px; }
.qty button:hover { background: var(--sand); }
.qty span { min-width: 22px; text-align: center; font-weight: 700; font-size: 14px; color: var(--ink); }
.cart-item__remove { font-size: 13px; color: var(--ink-soft); text-decoration: underline; text-underline-offset: 3px; align-self: start; padding: 6px 0; }
.cart__foot { padding: 18px 24px max(22px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #fff; }
.cart__total { display: flex; justify-content: space-between; margin-top: 6px; font-size: 18px; font-weight: 700; color: var(--ink); }
.cart__line { display: flex; justify-content: space-between; font-size: 15px; color: var(--ink-soft); }
.cart__legal { margin: 10px 0 0; font-size: 13px; text-align: center; }
.cart__legal a { color: inherit; }
.legal__form { overflow-wrap: anywhere; margin-top: 12px; padding: 16px 20px; border: 1px dashed var(--line); border-radius: 12px; }
.cart__error { margin: 10px 0 0; font-size: 14px; font-weight: 600; color: var(--rust); }
.cart__error[hidden] { display: none; }
.cart__checkout[aria-busy="true"] { opacity: .7; cursor: progress; }
.cart__hint { margin: 4px 0 16px; font-size: 13px; }
.cart__foot .btn { width: 100%; }
.cart__foot[hidden] { display: none; }

.toast {
  position: fixed; left: 50%; bottom: 22px; z-index: 70; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  width: max-content; max-width: calc(100vw - 32px); text-align: center;
  padding: 12px 20px; background: var(--ink); color: #fff; font-weight: 600; font-size: 15px; line-height: 1.4; border-radius: 16px;
  transition: opacity 0.25s ease, transform 0.3s var(--ease);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
body.cart-open .toast { opacity: 0; }

/* --------------------------------------------------------------------------
   Einblendungen (nur mit Bewegungsfreigabe)
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.7s var(--ease), transform 0.8s var(--ease); transition-delay: var(--d, 0ms); }
  .js .reveal.is-in { opacity: 1; transform: none; }
  .hero__arch img { animation: rise 1s var(--ease) both 0.05s; }
  .note { animation: fade 0.9s ease both 0.5s; }
  .note--tr { animation-delay: 0.65s; } .note--bl { animation-delay: 0.8s; } .note--br { animation-delay: 0.95s; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px) scale(0.985); } to { opacity: 1; transform: none; } }
  @keyframes fade { from { opacity: 0; } to { opacity: 1; } }
}
@media (prefers-reduced-motion: reduce) { .cart, .mobile-menu, .toast { transition: none; } }

/* --------------------------------------------------------------------------
   Bilderbuch-Hintergründe: jede Station der Geschichte hat ihre eigene Farbe,
   Übergänge als gemalte Hügelkante, ein paar kleine Doodles.
   -------------------------------------------------------------------------- */
.tone { position: relative; background: var(--bg); }
.tone--paper { --bg: #fdfaf3; }
.tone--hero  { --bg: #f7e9a8; }
.tone--blush { --bg: #fbe3dc; }
.tone--sage  { --bg: #eef0dc; }
.tone--peach { --bg: #fbe9d7; }
.tone--lilac { --bg: #efe8f3; }
.tone--sand  { --bg: #f6ecdb; }
.tone--hero {
  background:
    radial-gradient(42% 52% at 8% 24%, rgba(186, 206, 128, 0.45), transparent 70%),
    radial-gradient(38% 46% at 92% 26%, rgba(170, 200, 140, 0.40), transparent 70%),
    radial-gradient(50% 44% at 50% 100%, rgba(255, 214, 110, 0.55), transparent 72%),
    radial-gradient(34% 34% at 16% 92%, rgba(232, 142, 132, 0.16), transparent 70%),
    var(--bg);
}
.wave::before {
  content: ""; position: absolute; left: 0; right: 0; top: -31px; height: 32px; z-index: 1; pointer-events: none;
  background: var(--bg);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 32' preserveAspectRatio='none'%3E%3Cpath d='M0 32V20C60 6 110 4 170 14s110 22 170 10 120-26 180-18 80 12 80 12v14z'/%3E%3C/svg%3E") 0 0 / 600px 32px repeat-x;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 32' preserveAspectRatio='none'%3E%3Cpath d='M0 32V20C60 6 110 4 170 14s110 22 170 10 120-26 180-18 80 12 80 12v14z'/%3E%3C/svg%3E") 0 0 / 600px 32px repeat-x;
}
.tone--sage.wave::before, .tone--lilac.wave::before { -webkit-mask-position: 180px 0; mask-position: 180px 0; }
.tone--peach.wave::before, .tone--sand.wave::before { -webkit-mask-position: 360px 0; mask-position: 360px 0; }
.tone > .page-width { position: relative; z-index: 2; }

.deco { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.deco span { position: absolute; font-family: var(--font); line-height: 1; opacity: 0.55; }
.deco__star { font-size: 26px; color: #e0a33e; }
.deco__moon { font-size: 40px; color: #e0a33e; }
.deco__dot { font-size: 14px; color: var(--rose); }
.deco__heart { font-size: 26px; color: var(--rose); }
.deco__leaf { font-size: 34px; color: #869a5e; }
.deco__flower { font-size: 34px; color: #a58cc4; }
@media (max-width: 749px) { .deco span { font-size: 20px; opacity: 0.4; } .deco__moon { font-size: 28px; } }
@media (prefers-reduced-motion: no-preference) {
  .deco span { animation: bob 6s ease-in-out infinite; }
  .deco span:nth-child(2) { animation-delay: -2s; animation-duration: 7s; }
  .deco span:nth-child(3) { animation-delay: -4s; }
  @keyframes bob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-8px) rotate(6deg); } }
}
/* Karten und Warenkorb-Buttons bleiben auf farbigem Grund gut lesbar */
.tone .voice { background: #fffdf8; }
.tone--sage .polaroid, .tone--lilac .insta__tile { box-shadow: 0 2px 4px rgba(43, 37, 33, 0.08), 0 22px 44px -30px rgba(60, 50, 30, 0.5); }

.section-lead { margin-top: 12px; }

@media (max-width: 599px) { .announcement__more { display: none; } }
@media (min-width: 800px) {
  .about__box { align-items: start; }
  .about__img { padding-bottom: 18px; }
}

/* Echte Fotos: Ausschnitt so, dass Antjes Story-Notizen sichtbar bleiben */
.polaroid img[src*="prozess-idee"] { object-position: 50% 30%; }
.polaroid img[src*="prozess-scherenschnitt"] { object-position: 50% 45%; }
.polaroid img[src*="prozess-vorlesezeit"] { object-position: 50% 58%; }
.nowrap { white-space: nowrap; }
.about__img img[src*="antje-foto"] { aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; }
@media (max-width: 799px) { .about__img img[src*="antje-foto"] { aspect-ratio: 1 / 1; object-position: 50% 15%; } }
.product__soon { cursor: default; opacity: 0.7; }
.product__soon:hover { background: transparent; color: var(--rust); }
.product__badge { background: var(--rust); color: #fff; border-color: var(--rust); }

/* --------------------------------------------------------------------------
   Buch-Detailseite: links zwei Bilder, rechts Kaufbox, Beschreibung unter den Bildern
   -------------------------------------------------------------------------- */
.pdp { padding-top: clamp(24px, 4vw, 40px); }
.pdp__crumbs { font-size: 14px; margin-bottom: 18px; }
.pdp__crumbs a { color: var(--rust); font-weight: 700; text-decoration: none; }
.pdp__crumbs a:hover { text-decoration: underline; }
.pdp__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); grid-template-areas: "gallery buy" "desc desc"; gap: clamp(28px, 4vw, 44px) clamp(28px, 4vw, 56px); align-items: center; }
.pdp__gallery { grid-area: gallery; display: grid; gap: 10px; }
.pdp__thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.pdp__thumb { padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: var(--sand); cursor: pointer; transition: border-color .2s, opacity .2s; opacity: .75; }
.pdp__thumb:hover, .pdp__thumb[aria-current="true"] { opacity: 1; }
.pdp__thumb[aria-current="true"] { border-color: var(--rust); }
.pdp__thumb:focus-visible { outline: 2px solid var(--rust); outline-offset: 2px; }
.pdp__thumb img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.pdp__img { margin: 0; border-radius: 12px; overflow: hidden; background: var(--sand); }
.pdp__img img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.pdp__buy { grid-area: buy; display: flex; flex-direction: column; gap: 6px; }
.pdp__title { font-size: clamp(26px, 2.8vw, 34px); font-weight: 600; line-height: 1.2; color: var(--rust); }
.pdp__price { margin-top: 8px; font-size: 22px; font-weight: 700; letter-spacing: 0.04em; color: var(--ink); }
.pdp__tax { font-size: 14px; }
.pdp__actions { display: flex; gap: 10px; margin-top: 14px; }
.pdp__actions .btn { flex: 1; }
.pdp__qty { margin-top: 0; height: 50px; }
.pdp__qty button { width: 40px; height: 48px; }
.pdp__qty input { width: 36px; border: 0; background: none; text-align: center; font: inherit; font-weight: 700; color: var(--ink); -moz-appearance: textfield; }
.pdp__qty input::-webkit-outer-spin-button, .pdp__qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pdp__facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.pdp__facts li { padding: 4px 12px; font-size: 14px; font-weight: 600; color: var(--ink-soft); background: var(--sand); border-radius: 999px; }
.pdp__desc { grid-area: desc; max-width: 72ch; padding-top: clamp(20px, 3vw, 32px); border-top: 1px solid var(--line); }
.pdp__desc h2 { margin: 26px 0 8px; font-size: 22px; font-weight: 700; color: var(--rust); }
.pdp__desc h2:first-child { margin-top: 0; }
.pdp__desc p { margin-top: 8px; }
@media (max-width: 899px) {
  .pdp__grid { grid-template-columns: 1fr; grid-template-areas: "gallery" "buy" "desc"; }
  .pdp__buy { position: static; }
  .pdp__thumbs { gap: 8px; }
}

/* Footer: Rechtliches + Vermerk Unternehmenspraxis */
.footer__bottom { align-items: center; }
.footer__legal a { text-decoration: none; }
.footer__legal a:hover { text-decoration: underline; }
.footer__credit { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-soft); text-decoration: none; opacity: 0.85; transition: opacity 0.2s ease; }
.footer__credit:hover { opacity: 1; }
.footer__credit span { font-size: 12px; }
.footer__up { width: 54px; height: auto; color: var(--ink); }

/* Rechtsseiten */
.legal__body { max-width: 820px; }
.legal__body .h1 { margin-bottom: 18px; hyphens: auto; overflow-wrap: break-word; }
.legal__body h2 { margin: 28px 0 6px; font-size: 19px; font-weight: 700; color: var(--rust); }
.legal__body p { margin-top: 6px; }
.legal__body .btn { margin-top: 18px; }
.legal__date { margin-top: 28px; font-size: 14px; }
mark.placeholder { background: rgba(232, 142, 132, 0.3); color: inherit; padding: 0 4px; border-radius: 4px; }

/* Online-Widerruf (§ 356a BGB): Button im Footer + Formular */
.footer__withdraw { display: inline-block; padding: 6px 14px; font-weight: 700; color: var(--rust); text-decoration: none; border: 2px solid var(--rust); border-radius: 999px; background: #fff; }
.footer__withdraw:hover { background: var(--rust); color: #fff; }
.withdraw { display: grid; gap: 16px; max-width: 560px; margin-top: 24px; }
.withdraw label { display: grid; gap: 4px; font-weight: 700; color: var(--ink); }
.withdraw small { font-weight: 400; font-size: 14px; color: var(--ink-soft); }
.withdraw input, .withdraw textarea { width: 100%; padding: 12px 14px; font: inherit; font-weight: 400; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.withdraw input:focus-visible, .withdraw textarea:focus-visible { outline: 2px solid var(--rust); outline-offset: 1px; }
.withdraw [aria-invalid="true"] { border-color: var(--rust); }
.withdraw .btn { justify-self: start; }
.withdraw__trap { position: absolute; left: -9999px; }
.withdraw__error { margin: 0; font-weight: 600; color: var(--rust); }
.withdraw__error[hidden], .withdraw__done[hidden] { display: none; }
.withdraw__done { margin-top: 24px; padding: 20px 24px; border: 2px solid var(--rust); border-radius: 16px; background: #fff; }
