/* Weihnachtsaktion 2026: Bühne (Banner + Gutschein-Kopf), Gutscheinkarte, Auswahl.
   Alle Motive unter img/generated/ sind KI-generiert und am Bild gekennzeichnet. */
.xmas-stage {
  --xmas-night: #060302;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 40rem;
  background: var(--xmas-night);
  color: var(--gw-cream);
}
.xmas-stage picture { display: block; position: relative; width: 82%; margin-left: auto; }
.xmas-stage picture img { display: block; width: 100%; height: auto; }
/* Blendet die Bildkanten in den Nachthimmel */
.xmas-stage picture::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--xmas-night), transparent 30%),
    linear-gradient(180deg, var(--xmas-night), transparent 22%);
}
.xmas-copy {
  position: absolute; inset: 0; z-index: 3;
  max-width: 83rem;
  margin: 0 auto;
  padding: 6rem 1.5rem 3rem;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
}
.xmas-copy > * { max-width: 29rem; }
.xmas-copy h1, .xmas-copy h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 300;
  font-size: clamp(2.9rem, 5.4vw, 5.25rem);
  line-height: 1;
  margin: 1.25rem 0;
}
.xmas-copy h1, .xmas-copy h2 { max-width: none; }
.xmas-copy em { display: block; white-space: nowrap; color: var(--gw-gold); font-style: italic; }
.xmas-copy p { font-size: 1.1rem; line-height: 1.65; color: rgba(245, 240, 230, 0.9); margin: 0 0 1.9rem; }
.xmas-copy .cta-buttons { justify-content: flex-start; margin: 0; }
.xmas-copy .breadcrumbs { font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(245, 240, 230, 0.7); margin-bottom: 1.5rem; }
.xmas-copy .breadcrumbs a { color: inherit; text-decoration: none; }
.xmas-copy .breadcrumbs span { margin: 0 0.5rem; }

/* Der Stern aus dem Glanzwerk-Logo als Weihnachtsstern */
.xmas-star { width: 2.75rem; height: 2.75rem; fill: var(--gw-gold-bright); filter: drop-shadow(0 0 14px rgba(217, 185, 133, 0.85)); animation: xmas-glint 5s ease-in-out infinite; }
@keyframes xmas-glint { 0%, 80%, 100% { transform: scale(1) rotate(0); } 90% { transform: scale(1.22) rotate(45deg); } }

/* Schneefall: nur transform, Kacheln teilen den Weg 660px glatt */
.xmas-snow {
  position: absolute; left: 0; right: 0; top: -660px; bottom: 0; z-index: 2;
  pointer-events: none; opacity: 0.55;
  background-image:
    radial-gradient(1.6px 1.6px at 30px 40px, #fff8ec 50%, transparent),
    radial-gradient(1px 1px at 140px 120px, #fff8ec 50%, transparent),
    radial-gradient(2.2px 2.2px at 90px 250px, rgba(255, 248, 236, 0.7) 50%, transparent),
    radial-gradient(1.2px 1.2px at 210px 90px, rgba(255, 248, 236, 0.8) 50%, transparent),
    radial-gradient(0.9px 0.9px at 60px 100px, #fff8ec 50%, transparent),
    radial-gradient(1.4px 1.4px at 300px 30px, rgba(255, 248, 236, 0.75) 50%, transparent);
  background-size: 190px 220px, 230px 330px, 310px 660px, 270px 220px, 157px 132px, 397px 165px;
  animation: xmas-fall 24s linear infinite;
}
@keyframes xmas-fall { to { transform: translate3d(0, 660px, 0); } }
.xmas-stage > .gw-ki-tag { z-index: 4; left: auto; right: 0.75rem; top: auto; }

@media (max-width: 1100px) {
  .xmas-stage { min-height: 0; justify-content: flex-start; }
  .xmas-copy { position: relative; inset: auto; width: 100%; padding: 4rem 1.5rem 0; justify-content: flex-start; }
  .xmas-stage picture { width: 100%; margin-top: -2vw; }
  .xmas-stage picture::after { background: linear-gradient(180deg, var(--xmas-night), transparent 25%); }
  .xmas-stage--hero .xmas-copy { padding-top: 7.5rem; }
}
@media (max-width: 600px) {
  .xmas-stage picture { margin-top: -68vw; }
  .xmas-stage picture::after { background: linear-gradient(180deg, var(--xmas-night) 12%, transparent 45%); }
  .xmas-copy .cta-buttons { width: 100%; }
  .xmas-stage > .gw-ki-tag { right: auto; left: 0.5rem; }
}

/* ===== Gutschein gestalten (ohne JavaScript: :has + normales GET-Formular) ===== */
.gs { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 3.5rem; align-items: start; }
.gs-preview { position: sticky; top: 7rem; }
.gs-card {
  position: relative;
  container-type: inline-size;
  aspect-ratio: 1.55;
  border-radius: 22px;
  overflow: hidden;
  background:
    radial-gradient(90% 80% at 12% 0%, rgba(217, 185, 133, 0.22), transparent 60%),
    linear-gradient(145deg, #2f271f, #120e0a 70%);
  color: #f5f0e6;
  box-shadow: 0 40px 70px -30px rgba(24, 20, 15, 0.75);
}
.gs-card > * { position: absolute; }
.gs-frame { inset: 3cqi; border: 1px solid rgba(217, 185, 133, 0.6); border-radius: 13px; }
.gs-band { top: 0; bottom: 0; right: 17cqi; width: 5.5cqi; background: linear-gradient(90deg, #52121a, #8f2833 45%, #52121a); box-shadow: 0 0 18px rgba(0, 0, 0, 0.45); }
.gs-bow { right: 5.25cqi; top: 22cqi; width: 29cqi; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.5)); }
.gs-brand { left: 8cqi; top: 7.5cqi; display: flex; align-items: center; gap: 2cqi; font-size: max(11px, 3.1cqi); font-weight: 600; letter-spacing: 0.34em; }
.gs-brand svg { width: 5cqi; height: 5cqi; fill: var(--gw-gold-bright); }
.gs-name { left: 8cqi; top: 19cqi; font-family: 'Fraunces', Georgia, serif; font-style: italic; font-weight: 300; font-size: 6.4cqi; color: var(--gw-gold-bright); }
.gs-wert { left: 8cqi; top: 29cqi; width: 55cqi; font-family: 'Fraunces', Georgia, serif; font-weight: 300; line-height: 1.08; font-size: 8cqi; }
.gs-wert::before { content: "Ihr Wunschbetrag"; }
.gs-meta { left: 8cqi; bottom: 7.5cqi; font-size: max(10px, 2.6cqi); line-height: 1.6; color: rgba(245, 240, 230, 0.8); }
.gs:has(#gs50:checked) .gs-wert::before { content: "50 €"; font-size: 15cqi; }
.gs:has(#gs100:checked) .gs-wert::before { content: "100 €"; font-size: 15cqi; }
.gs:has(#gs150:checked) .gs-wert::before { content: "150 €"; font-size: 15cqi; }
.gs:has(#gsexpress:checked) .gs-wert::before { content: "Express-Aufbereitung"; }
.gs:has(#gspremium:checked) .gs-wert::before { content: "Premium-Aufbereitung"; }
.gs:has(#gskomplett:checked) .gs-wert::before { content: "Komplett-Aufbereitung"; }
.gs:has(#gsozon:checked) .gs-wert::before { content: "Ozon-Frische"; }
.gs:has(#gssitze:checked) .gs-wert::before { content: "Polster- & Lederpflege"; }
.gs-note { margin-top: 1rem; font-size: 0.85rem; color: var(--gw-taupe-mid); text-align: center; }

.gs-form fieldset { border: 0; padding: 0; margin: 0 0 1.5rem; min-width: 0; }
.gs-form legend { font-family: 'Fraunces', Georgia, serif; font-size: 1.3rem; margin-bottom: 0.75rem; color: var(--gw-taupe-deep); }
.gs-chips { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.gs-chips label { position: relative; cursor: pointer; }
.gs-chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.gs-chips span {
  display: flex; flex-direction: column; justify-content: center;
  min-height: 3.1rem; padding: 0.5rem 1.15rem;
  border: 1.5px solid rgba(106, 91, 72, 0.35); border-radius: 14px;
  background: #fffdf8; color: var(--gw-taupe-deep);
  font-weight: 600; line-height: 1.25;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.gs-chips small { font-weight: 500; font-size: 0.78rem; opacity: 0.8; }
.gs-chips label:hover span { border-color: var(--gw-gold-ink); }
.gs-chips input:checked + span { background: var(--gw-taupe-deep); border-color: var(--gw-taupe-deep); color: var(--gw-cream); }
.gs-chips input:focus-visible + span { outline: 3px solid var(--gw-gold-ink); outline-offset: 2px; }
.gs-form .btn-cream { background: var(--gw-taupe-deep); border-color: var(--gw-taupe-deep); color: var(--gw-cream); cursor: pointer; font: inherit; font-weight: 600; }
.gs-form .btn-cream:hover, .gs-form .btn-cream:focus-visible { color: var(--gw-taupe-deep); background: var(--gw-gold); border-color: var(--gw-gold); }

/* ===== Bild + Ablauf ===== */
.xmas-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3.5rem; align-items: center; }
.xmas-figure { position: relative; margin: 0; border-radius: 22px; overflow: hidden; background: #120c08; }
.xmas-figure img { display: block; width: 100%; height: auto; }
.xmas-steps { list-style: none; padding: 0; margin: 1.5rem 0 0; counter-reset: s; }
.xmas-steps li { counter-increment: s; display: grid; grid-template-columns: 3rem 1fr; gap: 0 1rem; padding: 1.1rem 0; border-top: 1px solid rgba(106, 91, 72, 0.25); }
.xmas-steps li::before { content: counter(s); grid-row: span 2; font-family: 'Fraunces', Georgia, serif; font-size: 2rem; line-height: 1; color: var(--gw-gold-ink); }
.xmas-steps h3 { margin: 0 0 0.25rem; font-family: 'Fraunces', Georgia, serif; font-weight: 400; font-size: 1.25rem; }
.xmas-steps p { margin: 0; line-height: 1.6; }

/* Bild im Ratgeber und in der Beitragskarte */
.article-body .xmas-figure { margin: 0 0 2rem; }
.blog-card .xmas-figure { margin: -2rem -1.75rem 1.5rem; border-radius: 19px 19px 0 0; }
.blog-card .xmas-figure img { aspect-ratio: 16 / 9; object-fit: cover; }

@media (max-width: 400px) { .xmas-copy em { white-space: normal; } }
@media (max-width: 420px) { .gs-card { aspect-ratio: 1.4; } .gs-wert { top: 31cqi; } }
@media (max-width: 900px) {
  .gs, .xmas-split { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .gs-preview { position: static; }
}
@media (prefers-reduced-motion: reduce) { .xmas-snow, .xmas-star { animation: none; } }
