/* WizardRP Startseite. Präfix wz-. Hülle und gemeinsame Bausteine: wizard-site.css.
   Zustandsklassen am <html> (wizard-index.js): wz-js (Modul läuft). Keine Pins:
   Bewegung nur als direkter Scrub auf transform und opacity. */

/* ───────────── 1 Hero ───────────── */

.wz-hero {
  align-items: end;
  text-align: center;
}

.wz-hero__push {
  position: absolute;
  inset: 0;
  transform-origin: 50% 60%;
  will-change: transform;
}

.wz-hero__img,
.wz-hero__video {
  object-position: 50% 42%;
}

.wz-hero__video {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .6s var(--ease-in-out);
}

.wz-hero__video.is-live {
  opacity: 1;
}

.wz-hero__shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to top, var(--ink-0) 0%, rgb(7 8 13 / .86) 24%, rgb(7 8 13 / .38) 52%, rgb(7 8 13 / 0) 74%),
    linear-gradient(to bottom, rgb(7 8 13 / .78) 0%, rgb(7 8 13 / 0) 26%),
    radial-gradient(120% 100% at 50% 45%, rgb(7 8 13 / 0) 40%, rgb(7 8 13 / .6) 100%);
}

.wz-hero__content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: var(--s-6);
  padding-bottom: clamp(2.5rem, 7vh, 5rem);
}

.wz-hero__status {
  min-width: 17.5rem;
  justify-content: center;
  background: rgb(7 8 13 / .72);
  animation: wz-rise .6s var(--ease-out) both;
}

.wz-hero__title {
  margin-top: var(--s-5);
  text-wrap: balance;
  animation: wz-rise .6s var(--ease-out) .08s both;
}

.wz-hero__lead {
  max-width: 38rem;
  margin-top: var(--s-5);
  color: var(--text);
  font-size: var(--step-0);
  line-height: 1.6;
  text-wrap: pretty;
  animation: wz-rise .6s var(--ease-out) .16s both;
}

.wz-hero__cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s-4);
  margin-top: var(--s-6);
  animation: wz-rise .6s var(--ease-out) .24s both;
}

@media (max-width: 599px) {
  .wz-hero__title {
    font-size: min(13.5vw, 4rem);
  }

  .wz-hero__cta .tt-btn {
    flex: 1 1 100%;
  }
}

/* ───────────── 2 Manifest ───────────── */

.wz-mani {
  padding-block: clamp(4rem, 3rem + 7vw, 10rem);
  text-align: center;
}

.wz-mani__say {
  max-width: 17em;
  margin: var(--s-7) auto;
  font-family: var(--font-serif);
  font-size: clamp(2.1rem, 1.2rem + 4.2vw, 5.25rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -.012em;
  text-wrap: balance;
}

.wz-mani__say em {
  font-style: italic;
  color: var(--accent);
}

.wz-w {
  display: inline-block;
}

/* ───────────── 3 Vier Säulen ───────────── */

.wz-pillars {
  --arch-h: min(68vh, 38rem);
  padding-block: var(--s-8) var(--section-y);
  background: linear-gradient(to bottom, var(--ink-0), var(--ink-1) 22%, var(--ink-1) 78%, var(--ink-0));
}

.wz-pillars__grid {
  display: grid;
  gap: var(--s-8);
}

.wz-arch {
  position: relative;
  width: min(72vw, 19rem);
  aspect-ratio: 18 / 25;
  margin-inline: auto;
  border-radius: 999px 999px 0 0;
  overflow: hidden;
  overflow: clip;
  background: var(--ink-2);
}

.wz-arch::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgb(7 8 13 / .5) 0%, rgb(7 8 13 / 0) 40%);
  pointer-events: none;
}

.wz-arch::after {
  content: "";
  position: absolute;
  inset: 9px;
  z-index: 1;
  border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent);
  border-radius: inherit;
  pointer-events: none;
}

.wz-arch__frame {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .6s var(--ease-in-out);
}

.wz-arch__frame.is-active {
  opacity: 1;
}

.wz-arch__frame picture,
.wz-arch__frame img {
  display: block;
  width: 100%;
  height: 100%;
}

.wz-arch__frame img {
  object-fit: cover;
}

.wz-pillars__title {
  color: var(--text-2);
  text-align: center;
}

.wz-pillar {
  padding-block: var(--s-7);
  border-bottom: 1px solid var(--line);
}

.wz-pillar:last-child {
  border-bottom: 0;
}

.wz-pillar__name {
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 1.6rem + 4.6vw, 6.25rem);
  font-style: italic;
  font-weight: 500;
  line-height: .98;
  letter-spacing: -.015em;
  hyphens: manual;
}

.wz-pillar__line {
  display: block;
  width: min(100%, 22rem);
  height: 1px;
  margin-block: var(--s-5) var(--s-4);
  background: linear-gradient(to right, var(--accent), color-mix(in srgb, var(--accent) 0%, transparent));
  transform-origin: left;
  transition: transform .6s var(--ease-out);
}

.wz-pillar__text {
  max-width: 26rem;
}

@media (min-width: 900px) {
  .wz-pillars__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(3rem, 7vw, 8rem);
    align-items: start;
  }

  .wz-pillars__fig {
    position: sticky;
    top: max(calc(var(--nav-h) + var(--s-5)), calc(50vh - var(--arch-h) / 2));
  }

  .wz-arch {
    width: auto;
    height: var(--arch-h);
    margin-inline: auto 0;
  }

  .wz-pillars__title {
    text-align: left;
  }

  .wz-pillar {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 46vh;
    padding-block: var(--s-6);
    border-bottom: 0;
    transition: opacity .6s var(--ease-out);
  }

  .wz-js .wz-pillar:not(.is-active) {
    opacity: .42;
  }

  .wz-js .wz-pillar:not(.is-active) .wz-pillar__line {
    transform: scaleX(.18);
  }

  [data-fx="off"] .wz-pillar:not(.is-active) {
    opacity: 1;
  }

  [data-fx="off"] .wz-pillar:not(.is-active) .wz-pillar__line {
    transform: none;
  }
}

/* ───────────── 4 Trailer ───────────── */

.wz-trailer {
  position: relative;
  isolation: isolate;
  padding-block: clamp(3rem, 8vw, 7rem) clamp(2.5rem, 6vw, 5rem);
  border-block: 1px solid var(--line);
  background:
    radial-gradient(45% 70% at 50% 60%, rgb(255 154 60 / .13) 0%, rgb(255 154 60 / 0) 70%),
    var(--ink-1);
  overflow: hidden;
  overflow: clip;
}

.wz-trailer__word {
  display: flex;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: clamp(7.5rem, 31vw, 34rem);
  font-style: italic;
  font-weight: 500;
  line-height: .78;
  letter-spacing: -.03em;
  white-space: nowrap;
}

.wz-trailer__word span {
  display: block;
  padding: 0 .08em .12em;
  color: transparent;
  background: linear-gradient(to bottom, var(--accent) 0%, color-mix(in srgb, var(--accent) 58%, transparent) 45%, color-mix(in srgb, var(--accent) 8%, transparent) 88%);
  -webkit-background-clip: text;
  background-clip: text;
  will-change: transform;
}

.wz-trailer__foot {
  position: relative;
  display: flex;
  justify-content: center;
  margin-top: var(--s-5);
}

.wz-trailer__line {
  max-width: 24rem;
  padding-top: var(--s-4);
  border-top: 1px solid var(--accent);
  font-size: var(--step-0);
  color: var(--text);
  text-align: center;
}

.wz-trailer__line em {
  display: block;
  font-family: var(--font-serif);
  font-size: var(--step-2);
  font-style: italic;
  line-height: 1.15;
  color: var(--accent);
}

/* ───────────── 5 Abschluss ───────────── */

.wz-close {
  position: relative;
  isolation: isolate;
  padding-block: clamp(5rem, 10vw, 9rem) clamp(5rem, 12vw, 10rem);
  overflow: hidden;
  overflow: clip;
  text-align: center;
  background: radial-gradient(55% 70% at 50% 108%, rgb(255 154 60 / .22) 0%, rgb(242 198 109 / .07) 45%, rgb(255 154 60 / 0) 72%);
}

.wz-close__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.wz-close__title {
  max-width: 12em;
  margin-top: var(--s-6);
  text-wrap: balance;
}

.wz-close__count {
  min-height: 2.2em;
  margin-top: var(--s-6);
  color: var(--text-2);
  font-size: var(--step-1);
}

.wz-close__count b {
  color: var(--accent);
  font-family: var(--font-serif);
  font-size: 1.3em;
  font-weight: 600;
  font-variant-numeric: lining-nums tabular-nums;
}

.wz-close__cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--s-4) var(--s-6);
  margin-top: var(--s-7);
}

@media (prefers-reduced-motion: reduce) {
  .wz-hero__status,
  .wz-hero__title,
  .wz-hero__lead,
  .wz-hero__cta {
    animation: none;
  }

  .wz-arch__frame,
  .wz-pillar,
  .wz-pillar__line,
  .wz-hero__video {
    transition-duration: .01s;
  }
}
