/* Gutscheinseite + Startseiten-Teaser – nutzt die Design-Werte aus assets/styles/src/_variables.scss
   (#AF9778 Hauptfarbe, #5d4037 dunkler Akzent, Playfair Display / Montserrat).
   Eigenes Stylesheet wie consent.css, damit style.css nicht neu kompiliert werden muss. */

.voucher-page,
.voucher-teaser {
  --voucher-cream: #fbf7f1;
  --voucher-sand: #f3ebe0;
  --voucher-brown: #5d4037;
  --voucher-gold: #af9778;
  --voucher-text: #4a3a32;
  --voucher-muted: #6b5a4e;
}

.voucher-eyebrow {
  margin: 0 0 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #7a6346;
}

.voucher-page :is(a, .button):focus-visible,
.voucher-teaser :is(a, .button):focus-visible {
  outline: 3px solid var(--voucher-brown);
  outline-offset: 3px;
}

/* ---------- Hero ---------- */
.voucher-hero {
  position: relative;
  overflow: hidden;
  padding: calc(90px + 4rem) 0 5rem;
  background:
    radial-gradient(circle at 12% 18%, rgba(175, 151, 120, 0.18), transparent 55%),
    radial-gradient(circle at 88% 85%, rgba(93, 64, 55, 0.08), transparent 50%),
    linear-gradient(160deg, var(--voucher-cream) 0%, var(--voucher-sand) 100%);
  color: var(--voucher-text);
}

.voucher-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
}

.voucher-hero__title {
  margin: 0 0 1.5rem;
  font-family: 'Playfair Display', 'Georgia', 'Times New Roman', serif;
  font-size: clamp(2.4rem, 4.6vw, 3.6rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: var(--voucher-brown);
}

.voucher-hero__lead {
  max-width: 34rem;
  margin: 0 0 2.25rem;
  font-size: 1.1rem;
  line-height: 1.85;
  color: var(--voucher-muted);
}

.voucher-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
}

.voucher-hero__link {
  font-weight: 600;
  color: var(--voucher-brown);
  text-decoration: underline;
  text-decoration-color: rgba(175, 151, 120, 0.6);
  text-underline-offset: 0.3em;
}

.voucher-hero__link:hover {
  text-decoration-color: var(--voucher-brown);
}

.voucher-hero__media {
  position: relative;
  justify-self: center;
  width: min(100%, 440px);
}

/* Versetzter Rahmen hinter dem Bild */
.voucher-hero__media::before {
  content: "";
  position: absolute;
  inset: 1.25rem -1.25rem -1.25rem 1.25rem;
  border: 2px solid rgba(175, 151, 120, 0.45);
  border-radius: 28px;
}

.voucher-hero__media img {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: 0 28px 60px rgba(93, 64, 55, 0.18);
}

/* ---------- Gutscheinpräsentation + Kaufbereich ---------- */
.voucher-showcase {
  background: #fff;
}

.voucher-showcase__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 5rem);
}

.voucher-card-wrap {
  margin: 0;
}

.voucher-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  aspect-ratio: 1.6 / 1;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  overflow: hidden;
  border-radius: 22px;
  text-align: center;
  color: var(--voucher-brown);
  background:
    radial-gradient(circle at 85% 10%, rgba(255, 255, 255, 0.7), transparent 45%),
    linear-gradient(135deg, #f7efe4 0%, #ecdfcd 55%, #e2d1b9 100%);
  border: 1px solid rgba(175, 151, 120, 0.35);
  box-shadow:
    0 30px 60px rgba(93, 64, 55, 0.16),
    0 6px 14px rgba(93, 64, 55, 0.08);
  transform: rotate(-2deg);
}

/* Feiner Innenrahmen */
.voucher-card::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(93, 64, 55, 0.22);
  border-radius: 14px;
  pointer-events: none;
}

/* Dezente Perlenkette als Dekoration */
.voucher-card__pearls {
  position: absolute;
  top: 26px;
  right: -20px;
  width: 140px;
  height: 14px;
  background-image: radial-gradient(circle at 7px 7px, #fffaf3 0, #f1e6d6 4px, rgba(175, 151, 120, 0.55) 6px, transparent 7px);
  background-size: 18px 14px;
  transform: rotate(32deg);
  opacity: 0.9;
}

.voucher-card__logo {
  width: clamp(54px, 9vw, 72px);
  height: auto;
  margin-bottom: 0.25rem;
}

.voucher-card__brand {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.voucher-card__title {
  font-family: 'Playfair Display', 'Georgia', 'Times New Roman', serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 500;
  line-height: 1.1;
}

.voucher-card__line {
  width: 64px;
  height: 1px;
  margin: 0.4rem 0;
  background: rgba(93, 64, 55, 0.45);
}

.voucher-card__text {
  font-family: 'Playfair Display', 'Georgia', 'Times New Roman', serif;
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  font-style: italic;
}

.voucher-card__caption {
  margin-top: 1.75rem;
  font-size: 0.875rem;
  line-height: 1.6;
  text-align: center;
  color: var(--voucher-muted);
}

.voucher-showcase__content h2 {
  margin: 0 0 1rem;
  font-family: 'Playfair Display', 'Georgia', 'Times New Roman', serif;
  font-size: clamp(1.9rem, 3.5vw, 2.4rem);
  font-weight: 500;
  line-height: 1.2;
  color: #212121;
}

.voucher-showcase__content > p:not(.voucher-note) {
  margin: 0 0 2rem;
  line-height: 1.8;
  color: var(--voucher-muted);
}

.voucher-note {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 1.1rem 0 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--voucher-muted);
}

.voucher-note svg {
  flex-shrink: 0;
  margin-top: 0.2rem;
  color: #7a6346;
}

.voucher-note--center {
  justify-content: center;
  text-align: center;
}

/* ---------- Schritte ---------- */
.voucher-steps {
  background: linear-gradient(180deg, var(--voucher-cream) 0%, #fff 100%);
}

.voucher-steps__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.voucher-step {
  padding: clamp(1.75rem, 3vw, 2.25rem);
  border: 1px solid rgba(175, 151, 120, 0.2);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(93, 64, 55, 0.07);
  text-align: center;
}

.voucher-step__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: rgba(175, 151, 120, 0.15);
  color: var(--voucher-brown);
}

.voucher-step__number {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #7a6346;
}

.voucher-step h3 {
  margin: 0 0 0.75rem;
  font-family: 'Playfair Display', 'Georgia', 'Times New Roman', serif;
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--voucher-brown);
}

.voucher-step p {
  margin: 0;
  line-height: 1.7;
  color: var(--voucher-muted);
}

/* ---------- Inspiration ---------- */
.voucher-inspiration {
  background: #fff;
}

.voucher-inspiration__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2rem);
}

.voucher-idea {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(175, 151, 120, 0.2);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(93, 64, 55, 0.08);
  color: inherit;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.voucher-idea:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 52px rgba(93, 64, 55, 0.13);
}

.voucher-idea img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.voucher-idea__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.5rem 1.6rem 1.75rem;
  line-height: 1.7;
  color: var(--voucher-muted);
}

.voucher-idea h3 {
  margin: 0;
  font-family: 'Playfair Display', 'Georgia', 'Times New Roman', serif;
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--voucher-brown);
}

.voucher-idea__link {
  margin-top: auto;
  padding-top: 0.5rem;
  font-weight: 600;
  color: var(--voucher-brown);
}

/* ---------- Abschluss ---------- */
.voucher-closing .cta-content h2 {
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
  font-style: italic;
}

/* ---------- Startseiten-Teaser ---------- */
.voucher-teaser {
  padding: 4.5rem 0;
  background: #fff;
}

.voucher-teaser__inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding: clamp(1.75rem, 4vw, 2.75rem) clamp(1.5rem, 4vw, 3rem);
  border: 1px solid rgba(175, 151, 120, 0.25);
  border-radius: 24px;
  background:
    radial-gradient(circle at 8% 20%, rgba(175, 151, 120, 0.16), transparent 50%),
    linear-gradient(135deg, var(--voucher-cream) 0%, var(--voucher-sand) 100%);
  box-shadow: 0 20px 48px rgba(93, 64, 55, 0.08);
}

.voucher-teaser__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #fff;
  color: var(--voucher-brown);
  box-shadow: 0 10px 24px rgba(93, 64, 55, 0.1);
}

.voucher-teaser h2 {
  margin: 0 0 0.5rem;
  font-family: 'Playfair Display', 'Georgia', 'Times New Roman', serif;
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 500;
  color: var(--voucher-brown);
}

.voucher-teaser p {
  margin: 0;
  line-height: 1.75;
  color: var(--voucher-muted);
}

.voucher-teaser .button {
  white-space: nowrap;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .voucher-hero {
    padding: calc(80px + 2.5rem) 0 3.5rem;
  }

  .voucher-hero__grid,
  .voucher-showcase__grid {
    grid-template-columns: 1fr;
  }

  .voucher-hero__media {
    width: min(100% - 1.5rem, 380px);
  }

  .voucher-hero__media img {
    aspect-ratio: 4 / 3;
  }

  .voucher-card-wrap {
    width: min(100%, 460px);
    margin: 0 auto;
  }

  .voucher-steps__list,
  .voucher-inspiration__grid {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
  }

  .voucher-teaser__inner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
}

@media (max-width: 540px) {
  .voucher-hero__actions .button,
  .voucher-showcase__content .button,
  .voucher-teaser .button {
    box-sizing: border-box;
    width: 100%;
    white-space: normal;
  }

  .voucher-hero__actions {
    justify-content: center;
  }

  .voucher-hero__content {
    text-align: center;
  }

  .voucher-hero__lead {
    margin-left: auto;
    margin-right: auto;
  }

  .voucher-card {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .voucher-idea,
  .voucher-idea:hover {
    transition: none;
    transform: none;
  }
}
