/*
 * Woogency steps block — numbered steps as cards.
 *
 * Card look of the Parasol accordion (white, light border, small radius) so
 * steps and FAQ read as one page; the red number and the dashed rule borrow
 * the admission-ticket motif of the discount code block. Theme tokens with
 * their values as fallbacks (editor, templates without main.css).
 */

.block__woogency-steps {
  --woogency-steps-red: var(--red, #c02b3e);
  --woogency-steps-dark-blue: var(--dark-blue, #00364e);
  --woogency-steps-white: var(--white, #fff);
  --woogency-steps-rule: #e2c599;
  --woogency-steps-radius: var(--border-radius-small, 4px);
}

.block__woogency-steps .woogency-steps__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 24px;
  inline-size: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.block__woogency-steps .woogency-steps__item {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 28px 28px 32px;
  border: 1px solid #ccc;
  border-radius: var(--woogency-steps-radius);
  background: var(--woogency-steps-white);
  box-shadow: 0 16px 34px rgba(0, 54, 78, .08);
}

.block__woogency-steps .woogency-steps__number {
  padding-block-end: 14px;
  border-block-end: 2px dashed var(--woogency-steps-rule);
  color: var(--woogency-steps-red);
  font-family: var(--font-headline, "Arial Black", sans-serif);
  font-size: clamp(3rem, 5vw, 4rem);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  line-height: .9;
}

.block__woogency-steps .woogency-steps__title {
  margin: 0;
  color: var(--woogency-steps-dark-blue);
  text-transform: uppercase;
}

.block__woogency-steps .woogency-steps__text {
  margin: 0;
  line-height: 1.6;
}

/* Phone: number beside the text, rule turned upright like the ticket's stub —
   a card per step stays about half as tall. */
@media (max-width: 640px) {
  .block__woogency-steps .woogency-steps__item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 6px 18px;
    padding: 20px;
  }

  .block__woogency-steps .woogency-steps__number {
    grid-row: 1 / span 2;
    padding-block-end: 0;
    padding-inline-end: 18px;
    border-block-end: 0;
    border-inline-end: 2px dashed var(--woogency-steps-rule);
    font-size: 2.75rem;
    /* Equal width per card, so the upright rule lines up across cards. */
    min-inline-size: 1.2ch;
    text-align: center;
  }
}

/* Erlebnis: the cards rise in one after another as they scroll into view.
   Scroll-driven CSS only — without support or with „Bewegung reduzieren“
   they are simply there; nothing waits for the animation. */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .block__woogency-steps .woogency-steps__item {
      animation: woogency-steps-in linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 50%;
    }

    .block__woogency-steps .woogency-steps__item:nth-child(2) {
      animation-range: entry 10% entry 60%;
    }

    .block__woogency-steps .woogency-steps__item:nth-child(3) {
      animation-range: entry 20% entry 70%;
    }
  }
}

@keyframes woogency-steps-in {
  from {
    opacity: 0;
    transform: translateY(32px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
