@charset "UTF-8";

/* ================================================
   WUNSCHBAUM (content/wunschbaum.inc.php)
   One grey box laid out like the campaign flyer.
   Colours taken from the flyer.
   ================================================ */

:root {
  --wb-olive: #4f5a2e;   /* script logo green */
  --wb-red:   #c8414f;   /* ornament / "Wunschzettel" red */
  --wb-grey:  #d8d7da;   /* flyer background */
  --wb-gold:  #e2a93b;   /* ornament cap */
  --wb-ink:   #111;      /* all text on the page */
}

/* ---------- The box ---------- */
.wb-flyer {
  max-width: 980px;
  margin: 1rem auto 4rem;
  padding: 2.5rem 3rem 2rem;
  border-radius: 24px;
  /* flat flyer grey behind the graphic, then lighter towards the bottom */
  background: linear-gradient(to bottom, var(--wb-grey) 0, var(--wb-grey) 380px, #f3f2f4 100%);
  color: var(--wb-ink);
}

@media (max-width: 767.98px) {
  .wb-flyer { padding: 1.5rem 1.25rem 1.5rem; border-radius: 18px; }
}

/* ---------- Snow ----------
   One layer (div.wb-snow) between the branch graphic and the text, so flakes
   also fall in front of the branch. Three flake sizes with unrelated tile
   sizes (151 / 233 / 377 px) and irregular dot positions, so no grid shows.
   In one 30 s loop each layer moves by whole tiles (seamless), at different
   speeds: tiny 2 tiles, small 3 tiles, large 5 tiles down. */
.wb-flyer {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.wb-flyer > * {
  position: relative;
  z-index: 3;
}

/* only the branch graphic sits below the snow; text stays above it */
.wb-flyer > .wb-flyer__art {
  z-index: 1;
}

.wb-flyer > .wb-snow {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background-image:
    /* tiny */
    radial-gradient(circle at 17% 23%, rgba(255,255,255,.8) 0 1px, transparent 1.6px),
    radial-gradient(circle at 63% 41%, rgba(255,255,255,.8) 0 1.1px, transparent 1.7px),
    radial-gradient(circle at 39% 79%, rgba(255,255,255,.7) 0 1px, transparent 1.6px),
    radial-gradient(circle at 88% 91%, rgba(255,255,255,.8) 0 1.2px, transparent 1.8px),
    /* small */
    radial-gradient(circle at 9% 14%,  rgba(255,255,255,.9) 0 1.6px, transparent 2.2px),
    radial-gradient(circle at 47% 6%,  rgba(255,255,255,.9) 0 1.3px, transparent 1.9px),
    radial-gradient(circle at 81% 33%, rgba(255,255,255,.9) 0 1.8px, transparent 2.4px),
    radial-gradient(circle at 28% 52%, rgba(255,255,255,.9) 0 1.4px, transparent 2px),
    radial-gradient(circle at 66% 61%, rgba(255,255,255,.9) 0 1.7px, transparent 2.3px),
    radial-gradient(circle at 14% 87%, rgba(255,255,255,.9) 0 1.3px, transparent 1.9px),
    radial-gradient(circle at 93% 78%, rgba(255,255,255,.9) 0 1.5px, transparent 2.1px),
    /* large */
    radial-gradient(circle at 21% 27%, rgba(255,255,255,.75) 0 2.8px, transparent 3.8px),
    radial-gradient(circle at 74% 9%,  rgba(255,255,255,.7) 0 2.4px, transparent 3.4px),
    radial-gradient(circle at 57% 68%, rgba(255,255,255,.7) 0 3.2px, transparent 4.2px),
    radial-gradient(circle at 6% 83%,  rgba(255,255,255,.65) 0 2.5px, transparent 3.5px),
    radial-gradient(circle at 89% 51%, rgba(255,255,255,.7) 0 2.7px, transparent 3.7px);
  background-size:
    151px 151px, 151px 151px, 151px 151px, 151px 151px,
    233px 233px, 233px 233px, 233px 233px, 233px 233px, 233px 233px, 233px 233px, 233px 233px,
    377px 377px, 377px 377px, 377px 377px, 377px 377px, 377px 377px;
  animation: wb-snow 30s linear infinite;
}

@keyframes wb-snow {
  from {
    background-position: 0 0, 0 0, 0 0, 0 0,
      0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0,
      0 0, 0 0, 0 0, 0 0, 0 0;
  }
  to {
    background-position:
      151px 302px, 151px 302px, 151px 302px, 151px 302px,
      -233px 699px, -233px 699px, -233px 699px, -233px 699px, -233px 699px, -233px 699px, -233px 699px,
      0 1885px, 0 1885px, 0 1885px, 0 1885px, 0 1885px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wb-flyer > .wb-snow { animation: none; }
}

/* ---------- Head: centred branch, logo underneath ---------- */
.wb-flyer__head {
  text-align: center;
  color: var(--wb-ink);
}

.wb-flyer__art {
  display: block;
  width: min(360px, 80%);
  height: auto;
  margin: 0 auto;
  /* soft oval fade into the box; the left part fades further because the
     branch is cut off at the picture's left edge */
  -webkit-mask-image:
    radial-gradient(ellipse 56% 58% at 54% 50%, #000 62%, transparent 100%),
    linear-gradient(to right, transparent 0, #000 24%);
  -webkit-mask-composite: source-in;
          mask-image:
    radial-gradient(ellipse 56% 58% at 54% 50%, #000 62%, transparent 100%),
    linear-gradient(to right, transparent 0, #000 24%);
          mask-composite: intersect;
}

.wb-flyer__eyebrow {
  margin: 1rem 0 .25rem;
  font-family: var(--brand-font-body, 'Red Hat Text', sans-serif);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.wb-flyer__title {
  margin: 0;
}

.wb-flyer__title img {
  display: block;
  width: min(540px, 95%);
  height: auto;
  margin: .25rem auto 0;
  transform: rotate(-5deg);
}

/* ---------- Intro ---------- */
.wb-flyer__intro {
  max-width: 720px;
  margin: 2.25rem auto 3rem;
  font-size: 1.1rem;
  line-height: 1.7;
}

.wb-flyer__intro h2 {
  text-align: center;
  color: var(--wb-ink);
  margin-bottom: 1.25rem;
}

/* ---------- Steps (three ornaments) ---------- */
.wb-steps h2 {
  text-align: center;
  /* extra room: the ornaments stick out 28px above the cards */
  margin-bottom: 4.25rem;
}

.wb-steps__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.75rem 1.25rem;
}

@media (max-width: 991.98px) {
  .wb-steps__list { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
}

.wb-step {
  position: relative;
  padding: 3rem 1.25rem 1.75rem;
  border-radius: 16px;
  background: rgba(255,255,255,.6);
  text-align: center;
}

/* Ornament with a gold cap */
.wb-step__ball {
  position: absolute;
  top: -28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ef8a93 0%, var(--wb-red) 45%, #9e2a37 100%);
  color: #fff;
  font-family: var(--brand-font-heading, 'Cardo', serif);
  font-size: 1.5rem;
  font-weight: 700;
  box-shadow: 0 6px 14px rgba(158,42,55,.3);
}

.wb-step__ball::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  width: 14px;
  height: 7px;
  transform: translateX(-50%);
  border-radius: 3px 3px 0 0;
  background: var(--wb-gold);
}

.wb-step__date {
  margin: 0 0 .4rem;
  color: var(--wb-red);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.wb-step__title {
  font-size: 1.3rem;
  margin: 0 0 .5rem;
  color: var(--wb-ink);
}

.wb-step__text {
  margin: 0;
  color: var(--wb-ink);
}

/* ---------- Note: plain small print, as on the flyer ---------- */
.wb-flyer__note {
  max-width: 720px;
  margin: 2.5rem auto 0;
  text-align: center;
  font-size: 1.1rem;
  line-height: 1.7;
}

/* ---------- Download: a small, friendly card at the bottom ---------- */
.wb-flyer__download {
  display: flex;
  justify-content: center;
  margin-top: 2.5rem;
}

.wb-pdf {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  max-width: 460px;
  padding: 1rem 1.5rem 1rem 1.1rem;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(79,90,46,.12);
  color: var(--wb-ink);
  text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease;
}

.wb-pdf__thumb {
  flex: 0 0 auto;
  width: 64px;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0,0,0,.18);
  transform: rotate(-4deg);
  transition: transform .25s ease;
}

.wb-pdf__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .15rem;
}

.wb-pdf__title {
  font-family: var(--brand-font-heading, 'Cardo', serif);
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.2;
  color: var(--wb-ink);
}

.wb-pdf__meta {
  font-size: .85rem;
  color: #333;
}

.wb-pdf__btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-top: .55rem;
  padding: .4rem .95rem;
  border-radius: 999px;
  background: var(--wb-red);
  color: #fff;
  font-family: var(--brand-font-body, 'Red Hat Text', sans-serif);
  font-weight: 600;
  font-size: .85rem;
  transition: background-color .2s ease;
}

.wb-pdf:hover {
  color: var(--wb-ink);
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(79,90,46,.18);
}

.wb-pdf:hover .wb-pdf__thumb { transform: rotate(0deg) scale(1.04); }
.wb-pdf:hover .wb-pdf__btn   { background: #a8323f; }

.wb-pdf:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--primary);
}

@media (prefers-reduced-motion: reduce) {
  .wb-pdf,
  .wb-pdf__thumb { transition: none; }
  .wb-pdf:hover,
  .wb-pdf:hover .wb-pdf__thumb { transform: none; }
}
