/* Hallmark · v2.0.0 · brand: Pure & Body (marken/pure-and-body.md) · theme: brand (by brand-spec) · genre: editorial · scope: section in existing Elementor page · job: buy · signature: die Gutscheinkarte, deren Betrag dem gewählten folgt · deal: manual */
/* critique: eine Seite, eine Handlung (Betrag wählen); Pfirsich nur als Fläche der beliebten Kachel; „Beliebt“ und Schritt-Nummern wie der Knopf (Weiß auf Burned Orange), Text immer dunkel oder weiß auf Burned Orange */
/* Hallmark · waive 7b · marken/pure-and-body.md surface #FFFFFF, Weiß auf #C34A31 4,83:1 · Weiß ist offizielle Markenfläche und Buttonschrift */
/* answered: Schriften kommen aus dem Elementor-Kit der Website (Playfair Display, Montserrat), hier nur referenziert */

:root {
  --pbg-peach: #F39465;
  --pbg-peach-soft: #FCD7C2;
  --pbg-action: #C34A31;
  --pbg-action-press: #A93E28;
  --pbg-cream: #FAF6F1;
  --pbg-cotton: #F4F3F2;
  --pbg-beige: #EADED1;
  --pbg-white: #FFFFFF;
  --pbg-ink: #2A2118;
  --pbg-ink-2: #5A4A42;
  --pbg-line: rgba(42, 33, 24, .14);
  --pbg-shadow: rgba(42, 33, 24, .12);
  --pbg-gold: #D9A95B;
  --pbg-bark: #3E2A1F;
  --pbg-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --pbg-sans: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --pbg-r: 18px;
  --pbg-r-sm: 12px;
  --pbg-max: 1120px;
  --pbg-gap: clamp(16px, 3vw, 28px);
  --pbg-ease: cubic-bezier(.2, .8, .2, 1);
}

html, body { overflow-x: clip; }

.pbg {
  box-sizing: border-box;
  max-width: var(--pbg-max);
  margin: 0 auto;
  padding: clamp(24px, 5vw, 64px) clamp(16px, 4vw, 32px) clamp(40px, 6vw, 80px);
  color: var(--pbg-ink);
  font-family: var(--pbg-sans);
  font-size: 16px;
  line-height: 1.6;
  container-type: inline-size;
}
.pbg *, .pbg *::before, .pbg *::after { box-sizing: border-box; }
.pbg a { color: var(--pbg-ink); text-decoration: underline; text-underline-offset: 3px; }
.pbg a.pbg-btn, .pbg a.pbg-tile { text-decoration: none; }
.pbg a:focus-visible, .pbg .pbg-btn:focus-visible, .pbg .pbg-tile:focus-visible {
  outline: 3px solid var(--pbg-ink);
  outline-offset: 3px;
  transition: none;
}

/* ---------- Hero ---------- */
.pbg-hero {
  display: grid;
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
}
.pbg-title {
  margin: 0 0 16px;
  font-family: var(--pbg-serif);
  font-weight: 500;
  font-size: clamp(34px, 6.4vw, 60px);
  line-height: 1.08;
  color: var(--pbg-ink);
  overflow-wrap: break-word;
  min-width: 0;
  text-wrap: balance;
}
.pbg-lead {
  margin: 0 0 28px;
  max-width: 34ch;
  font-size: clamp(17px, 1.6vw, 19px);
  color: var(--pbg-ink-2);
}
.pbg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 32px;
  border-radius: 999px;
  background: var(--pbg-action);
  color: var(--pbg-white) !important;
  font-family: var(--pbg-sans);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: transform .18s var(--pbg-ease), background-color .18s var(--pbg-ease);
}
.pbg-btn:hover { background: var(--pbg-action-press); }
.pbg-btn:active { transform: scale(.97); }

/* Die Karte: das echte Gutscheinbild (wie im PDF), der Betrag liegt als Text darüber und folgt der Auswahl.
   Positionen in cqw = Punkte aus gutschein-design.php geteilt durch 5,9528 (A5 quer, 595,28 pt breit). */
.pbg-card {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin: 0;
  justify-self: center;
  container-type: inline-size;
  border-radius: var(--pbg-r-sm);
  box-shadow: 0 24px 48px -24px var(--pbg-shadow);
  clip-path: inset(0 round var(--pbg-r-sm));
  transform: rotate(-2deg);
}
.pbg-card__img { display: block; width: 100%; height: auto; }
.pbg-card__amount,
.pbg-card__fuer {
  position: absolute;
  transform: translateX(-50%);
  color: var(--pbg-ink);
  line-height: 1;
  white-space: nowrap;
}
.pbg-card__amount {
  font-family: var(--pbg-serif);
  font-weight: 400;
  transition: opacity .2s var(--pbg-ease), transform .2s var(--pbg-ease);
}
.pbg-card__amount.is-swap { opacity: 0; transform: translate(-50%, 6px); }
.pbg-card__fuer { font-family: var(--pbg-sans); color: var(--pbg-ink-2); font-size: 2.2cqw; }
.pbg-card--xmas .pbg-card__amount { left: 69.21cqw; top: 24.96cqw; font-size: 9.41cqw; font-weight: 700; }
.pbg-card--xmas .pbg-card__fuer { left: 69.21cqw; top: 36.4cqw; font-family: var(--pbg-serif); font-style: italic; font-size: 3.19cqw; color: var(--pbg-ink); }
.pbg-card--neutral .pbg-card__amount { left: 36.12cqw; top: 30.22cqw; font-size: 7.73cqw; }
.pbg-card--neutral .pbg-card__fuer { left: 36.12cqw; top: 40.3cqw; }

/* ---------- Beträge ---------- */
.pbg-amounts { margin-top: clamp(48px, 8vw, 96px); scroll-margin-top: 110px; }
.pbg-h2 {
  margin: 0 0 24px;
  font-family: var(--pbg-serif);
  font-weight: 500;
  font-size: clamp(26px, 3.6vw, 38px);
  line-height: 1.15;
  color: var(--pbg-ink);
  overflow-wrap: break-word;
  min-width: 0;
}
.pbg-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.pbg-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  min-height: 132px;
  padding: 20px;
  border: 1px solid var(--pbg-line);
  border-radius: var(--pbg-r-sm);
  background: var(--pbg-cream);
  text-decoration: none;
  color: var(--pbg-ink);
  transition: transform .18s var(--pbg-ease), border-color .18s var(--pbg-ease), background-color .18s var(--pbg-ease);
  -webkit-tap-highlight-color: transparent;
}
.pbg-tile:hover { border-color: var(--pbg-ink); background: var(--pbg-white); }
.pbg-tile:active { transform: scale(.97); }
.pbg-tile--hi { background: var(--pbg-peach-soft); border-color: var(--pbg-action); }
.pbg-tile--hi:hover { background: var(--pbg-peach-soft); }
.pbg-tile__tag {
  align-self: flex-start;
  margin-bottom: auto;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--pbg-action);
  color: var(--pbg-white);
  font-size: 13px;
  font-weight: 600;
}
.pbg-tile__amount {
  white-space: nowrap;
  font-family: var(--pbg-serif);
  font-size: clamp(32px, 5vw, 42px);
  line-height: 1;
}
.pbg-tile__cta { font-size: 15px; color: var(--pbg-ink-2); }
.pbg-tile--wish {
  grid-column: 1 / -1;
  min-height: 0;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
  background: var(--pbg-white);
}
.pbg-tile--wish .pbg-tile__amount { font-size: clamp(24px, 3.4vw, 30px); }
.pbg-note { margin: 20px 0 0; font-size: 15px; color: var(--pbg-ink-2); }
.pbg-note a { color: var(--pbg-ink-2); }

/* ---------- Ablauf ---------- */
.pbg-steps { margin-top: clamp(48px, 8vw, 96px); }
.pbg-steps__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.pbg-steps__list li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-content: start;
  column-gap: 16px;
  padding: 20px;
  border-radius: var(--pbg-r-sm);
  background: var(--pbg-cotton);
}
.pbg-steps__n {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--pbg-action);
  color: var(--pbg-white);
  font-family: var(--pbg-serif);
  font-size: 20px;
}
.pbg-steps__list h3 {
  margin: 0 0 4px;
  font-family: var(--pbg-sans);
  font-weight: 600;
  font-size: 17px;
  line-height: 1.3;
  color: var(--pbg-ink);
}
.pbg-steps__list p { margin: 0; color: var(--pbg-ink-2); }

/* ---------- Kontakt ---------- */
.pbg-contact {
  margin-top: clamp(32px, 5vw, 56px);
  padding-top: 24px;
  border-top: 1px solid var(--pbg-line);
}
.pbg-contact p { margin: 0; max-width: 60ch; }
.pbg-contact a { font-weight: 600; white-space: nowrap; }

/* ---------- ab Tablet ---------- */
@container (min-width: 720px) {
  .pbg-hero { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
  .pbg-grid { gap: 16px; }
  .pbg-tile { min-height: 168px; padding: 24px; }
  .pbg-tile--wish { min-height: 0; }
  .pbg-steps__list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .pbg-steps__list li { grid-template-columns: minmax(0, 1fr); row-gap: 12px; padding: 24px; }
  .pbg-steps__n { grid-row: auto; }
}

@container (min-width: 860px) {
  .pbg-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  .pbg-btn, .pbg-tile, .pbg-card__amount { transition: none; }
  .pbg-btn:active, .pbg-tile:active { transform: none; }
  .pbg-card__amount.is-swap { opacity: 1; transform: translateX(-50%); }
}
