/* ============================================================
   BDAY18.CSS — ⑤ BDAY 18 Campaign Page
   Page-scoped only. Builds on css/base.css + css/components.css.
   Prefix: .b18-
   ============================================================ */

/* ------------------------------------------------------------
   Page-scoped tokens (do not leak into other pages)
   ------------------------------------------------------------ */
.b18 {
  --b18-white: #f5f4f0;   /* warm "overexposed silver", not clinical white */
  --b18-uv:    #7c2dff;   /* UV-violet — Saturday only */
  --b18-black: #050505;
  --b18-fs-mega: clamp(96px, 20vw, 280px);
}

/* ------------------------------------------------------------
   Shared grain texture (one of the two allowed texture devices)
   Painted as part of each dark scene's own background (cheap:
   no extra compositing layer, no fixed-position recalculation
   across a very tall scrollable page).
   ------------------------------------------------------------ */
.b18-intro,
.b18-night--fr,
.b18-final {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  background-blend-mode: overlay;
}

/* ------------------------------------------------------------
   Small inline ⑤ mark — natural pink, for use inside pink/mono
   labels (eyebrow, route label, address). For white headline
   contexts, reuse the site's own .title-mark (base.css) instead.
   ------------------------------------------------------------ */
.b18-mark-sm {
  display: inline-block;
  height: 0.8em;
  width: auto;
  vertical-align: -0.08em;
  margin-right: 0.1em;
}

.b18-mark-sm--lg {
  height: 1.6em;
  margin-right: 0;
  margin-bottom: var(--space-xs);
}

/* ============================================================
   CAMPAIGN NAV — replaces the site's main .nav on this page only
   ============================================================ */
.b18-nav {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  height: 52px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: var(--container-pad);
  background: rgba(8, 8, 8, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.b18-nav__mark {
  display: block;
  line-height: 0;
}

.b18-nav__mark img {
  height: 28px;
  width: auto;
}

.b18-nav__date {
  color: var(--white-dim);
  letter-spacing: 0.15em;
}

.b18-nav__trigger {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.2em;
  color: var(--white);
  padding: var(--space-xs) var(--space-sm);
  border: 1px solid var(--border-strong);
  transition: border-color var(--dur-mid) var(--ease);
}

.b18-nav__trigger:hover,
.b18-nav__trigger[aria-expanded="true"] {
  border-color: var(--pink);
}

/* ============================================================
   FULLSCREEN MENU
   ============================================================ */
.b18-menu {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: var(--b18-black);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity var(--dur-mid) var(--ease), transform var(--dur-mid) var(--ease), visibility 0s linear var(--dur-mid);
}

.b18-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity var(--dur-mid) var(--ease), transform var(--dur-mid) var(--ease), visibility 0s linear 0s;
}

.b18-menu__link {
  font-family: var(--font-display);
  font-size: clamp(40px, 8vw, 88px);
  text-transform: uppercase;
  color: var(--white);
  display: flex;
  align-items: baseline;
  gap: var(--space-sm);
  transition: color var(--dur-fast) var(--ease);
}

.b18-menu__link:hover,
.b18-menu__link:focus-visible {
  color: var(--pink);
}

.b18-menu__num {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  color: var(--white-dim);
}

.b18-menu__close {
  position: absolute;
  top: var(--space-md);
  right: var(--container-pad);
  width: 40px;
  height: 40px;
}

.b18-menu__close span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 22px;
  height: 1px;
  background: var(--white);
}

.b18-menu__close span:first-child { transform: translate(-50%, -50%) rotate(45deg); }
.b18-menu__close span:last-child  { transform: translate(-50%, -50%) rotate(-45deg); }

/* ============================================================
   SZENE 1 — VOR DER PARTY
   ============================================================ */
.b18-intro {
  height: 100svh;
  background: var(--b18-black);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  overflow: hidden;
}

.b18-intro__mark {
  width: clamp(140px, 30vw, 360px);
  height: auto;
  clip-path: inset(0 0 100% 0);
  opacity: 0;
  animation: b18-mark-in 0.9s var(--ease) 0.2s forwards;
}

.b18-intro__line {
  font-family: var(--font-display);
  font-size: clamp(32px, 6vw, 64px);
  text-transform: uppercase;
  color: var(--white);
  opacity: 0;
  transform: translateY(16px);
  animation: b18-line-in 0.6s var(--ease) 0.9s forwards;
}

@keyframes b18-mark-in {
  0%   { clip-path: inset(0 0 100% 0); opacity: 0; }
  1%   { opacity: 1; }
  100% { clip-path: inset(0 0 0% 0);   opacity: 1; }
}

@keyframes b18-line-in {
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   SZENE 2 — ANKÜNDIGUNG / HERO
   ============================================================ */
.b18-hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg);
}

.b18-hero__mark {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.1;
  pointer-events: none;
  user-select: none;
}

.b18-hero__mark img {
  width: min(70vw, 70vh);
  height: auto;
}

.b18-hero__content {
  position: relative;
  z-index: 1;
  padding-block: var(--space-xl);
}

.b18-hero__headline {
  font-family: var(--font-display);
  font-size: var(--b18-fs-mega);
  line-height: 0.88;
  text-transform: uppercase;
  color: var(--white);
  word-break: keep-all;
  hyphens: none;
}

.b18-hero__states {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm) var(--space-md);
  margin-top: var(--space-md);
  font-family: var(--font-body);
  font-size: clamp(18px, 2.4vw, 26px);
  font-weight: 500;
}

.b18-hero__state--do { color: var(--white-dim); }
.b18-hero__state--fr { color: var(--b18-white); }
.b18-hero__state--sa { color: var(--pink); }

.b18-hero__date {
  margin-top: var(--space-lg);
  color: var(--white-dim);
  letter-spacing: 0.08em;
}

.b18-hero__cta {
  margin-top: var(--space-md);
}

.b18-hero__scroll {
  position: absolute;
  left: 50%;
  bottom: var(--space-lg);
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
}

.b18-hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--pink), transparent);
}

.b18-hero__scroll-label {
  color: var(--white-dim);
  letter-spacing: 0.3em;
}

/* ============================================================
   SZENE 3 — ZWEI NÄCHTE
   Four panels stack via position:sticky (pure CSS pin, no JS):
   Black card → Black detail → White card → White detail, each
   one sliding over the last as you scroll.
   ============================================================ */
.b18-nights {
  position: relative;
}

.b18-night {
  position: sticky;
  top: 0;
  height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.b18-mark-title {
  display: inline-block;
  height: 0.7em;
  width: auto;
  vertical-align: -0.06em;
  margin-right: 0.12em;
}

.b18-night__inner {
  position: relative;
}

.b18-night__kicker {
  letter-spacing: 0.2em;
  margin-bottom: var(--space-sm);
  opacity: 0.55;
}

.b18-night__eyebrow {
  display: flex;
  align-items: center;
  font-family: var(--font-display);
  font-size: clamp(18px, 2.2vw, 28px);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: var(--space-xs);
}

.b18-night__title {
  font-family: var(--font-display);
  font-size: clamp(64px, 12.5vw, 160px);
  line-height: 0.88;
  text-transform: uppercase;
  word-break: keep-all;
  hyphens: none;
}

.b18-night__title--mega {
  font-size: clamp(72px, 14vw, 180px);
}

.b18-night__title-sub {
  display: block;
  font-size: 0.4em;
  letter-spacing: 0.1em;
  margin-top: 0.08em;
}

.b18-night__sub {
  font-family: var(--font-body);
  font-size: clamp(18px, 2.4vw, 24px);
  margin-top: var(--space-sm);
}

/* Freitag — Black, hard cut, typographic only */
.b18-night--fr {
  background: var(--b18-black);
  color: var(--white);
}

.b18-night--fr .b18-night__title-sub { color: var(--white-dim); }

/* Samstag — White, the climax */
.b18-night--sa {
  background: var(--b18-white);
  color: var(--b18-black);
}

.b18-night--sa .b18-night__title { color: var(--pink); }
.b18-night--sa .b18-night__title-sub { color: var(--b18-black); }

.b18-night.is-active .b18-night__title {
  animation: b18-title-in 0.7s var(--ease) both;
}

@keyframes b18-title-in {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ------------------------------------------------------------
   DETAIL — full-bleed poster: photo + program, directly under
   each night card. Fragments use the shared .reveal-group/.reveal
   pattern (main.js ScrollObserver) instead of bespoke motion CSS.
   ------------------------------------------------------------ */
.b18-detail {
  position: sticky;
  top: 0;
  height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

/* Image + scrim are capped at one viewport height and anchored to
   the top, even though .b18-detail itself can grow taller than
   100svh on mobile (long program lists). Without the cap, cover-fit
   would stretch/zoom the photo to match that taller box. Content
   that runs past the image sits on .b18-detail's own solid
   background, which matches the scrim's endpoint colour. */
.b18-detail__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100svh;
  object-fit: cover;
  filter: contrast(1.08) saturate(0.92);
}

.b18-detail__scrim {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100svh;
}

.b18-detail__content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-block: var(--space-xl) var(--space-lg);
}

.b18-detail__brand {
  display: flex;
  align-items: center;
  font-family: var(--font-display);
  font-size: clamp(56px, 9vw, 120px);
  line-height: 0.9;
  text-transform: uppercase;
}

.b18-detail__brand img {
  height: 0.65em;
  width: auto;
  margin-right: 0.06em;
}

.b18-detail__edition {
  font-family: 'Permanent Marker', cursive;
  font-size: clamp(26px, 4.2vw, 48px);
  line-height: 1;
  margin-top: -0.05em;
  margin-bottom: var(--space-md);
  transform: rotate(-2deg);
  transform-origin: left center;
}

.b18-detail__color { color: var(--pink); }

.b18-detail__date {
  letter-spacing: 0.1em;
  margin-bottom: var(--space-lg);
}

.b18-fragments {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs) var(--space-md);
  max-width: 60ch;
}

.b18-fragment {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.03em;
}

.b18-fragment::before {
  content: '· ';
}

.b18-detail__info {
  margin-top: var(--space-lg);
}

.b18-detail__cta {
  margin-top: var(--space-md);
}

/* Freitag detail — dark scrim rising from the bottom, white text */
.b18-detail--fr {
  background: rgba(5, 5, 5, 0.94);
}

.b18-detail--fr .b18-detail__scrim {
  background: linear-gradient(180deg, rgba(5,5,5,0) 0%, rgba(5,5,5,0.55) 45%, rgba(5,5,5,0.94) 100%);
}

.b18-detail--fr .b18-detail__content { color: var(--white); }
.b18-detail--fr .b18-detail__brand { color: var(--white); }
.b18-detail--fr .label,
.b18-detail--fr .b18-detail__date,
.b18-detail--fr .b18-detail__info { color: var(--white-dim); }

/* Samstag detail — light scrim rising from the bottom, dark text */
.b18-detail--sa {
  background: rgba(245, 244, 240, 0.95);
}

.b18-detail--sa .b18-detail__scrim {
  background: linear-gradient(180deg, rgba(245,244,240,0) 0%, rgba(245,244,240,0.6) 45%, rgba(245,244,240,0.95) 100%);
}

.b18-detail--sa .b18-detail__content { color: var(--b18-black); }
.b18-detail--sa .b18-detail__brand { color: var(--b18-black); }
.b18-detail--sa .label,
.b18-detail--sa .b18-detail__date,
.b18-detail--sa .b18-detail__info { color: rgba(5, 5, 5, 0.6); }

/* ============================================================
   SZENE 4 — PARTY-MOMENT
   ============================================================ */
.b18-moment {
  position: relative;
  height: 90svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.b18-moment__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: contrast(1.15) brightness(0.9);
}

.b18-moment__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5,5,5,0.1) 0%, rgba(5,5,5,0.75) 100%);
}

.b18-moment__line {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: var(--space-lg) var(--container-pad);
  font-family: var(--font-display);
  font-size: clamp(32px, 6vw, 68px);
  text-transform: uppercase;
  text-align: center;
  color: var(--white);
}

/* ============================================================
   SZENE 5 — DIE DJANES
   ============================================================ */
.b18-djanes {
  padding-block: var(--space-xl);
  background: var(--b18-black);
}

.b18-djanes__headline {
  font-family: var(--font-display);
  font-size: clamp(48px, 9vw, 110px);
  line-height: 0.92;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: var(--space-lg);
  word-break: keep-all;
  hyphens: none;
}

.b18-djanes__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  max-width: 900px;
  margin-inline: auto;
}

.b18-djane {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.b18-djane__photos {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  margin-bottom: var(--space-md);
}

.b18-djane__photo {
  position: absolute;
  object-fit: cover;
  filter: contrast(1.08) saturate(0.95);
}

.b18-djane__photo--main {
  inset: 0;
  width: 100%;
  height: 100%;
}

.b18-djane__photo--sub {
  width: 42%;
  aspect-ratio: 1 / 1;
  right: -6%;
  bottom: -8%;
  border: 3px solid var(--b18-black);
}

.b18-djane__name {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: var(--space-xs);
}

.b18-djane__bio {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 300;
  color: var(--white-dim);
  line-height: 1.5;
  max-width: 32ch;
  margin-bottom: var(--space-sm);
}

.b18-djane__ig {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.08em;
  color: var(--pink);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--dur-fast) var(--ease);
}

.b18-djane__ig:hover {
  color: var(--white);
}

@media (max-width: 640px) {
  .b18-djanes__grid {
    grid-template-columns: 1fr;
    max-width: 340px;
    gap: var(--space-xl);
  }

  .b18-djane__photo--sub {
    right: -4%;
    bottom: -6%;
  }
}

/* ============================================================
   SZENE 6 — FILL YOUR WALLET
   ============================================================ */
.b18-wallet__headline {
  font-family: var(--font-display);
  font-size: clamp(56px, 10vw, 130px);
  line-height: 0.9;
  color: var(--pink);
  margin-top: var(--space-sm);
}

/* <p> inherits max-width:68ch from base.css's global reset, which
   shrinks the box and defeats text-align:center (it left-aligns the
   whole shrunk box instead). margin-inline:auto re-centers the box
   itself so the text-align can center within it. */
#b18-wallet .eyebrow,
.b18-wallet__free,
.b18-wallet__amount-label {
  margin-inline: auto;
}

.b18-wallet__free {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.25em;
  color: var(--white-dim);
  margin-top: var(--space-md);
}

.b18-wallet__visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  margin-top: var(--space-lg);
}

.b18-wallet__amount {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.8vw, 32px);
  line-height: 1;
  color: var(--pink);
}

.b18-wallet__amount-label {
  font-family: var(--font-mono);
  font-size: clamp(14px, 1.6vw, 18px);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white-dim);
}

.b18-wallet__labels {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-md) var(--space-xl);
  margin-top: var(--space-xl);
  font-family: var(--font-display);
  font-size: clamp(22px, 3.2vw, 38px);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--white);
}

.b18-wallet__explainer {
  max-width: 56ch;
  margin: var(--space-xl) auto 0;
  color: var(--white-dim);
  font-weight: 300;
}

/* ============================================================
   SZENE 6 — ANKOMMEN
   ============================================================ */
.b18-route__line {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin: var(--space-lg) 0;
}

.b18-route__from,
.b18-route__to {
  color: var(--white-dim);
  letter-spacing: 0.15em;
  white-space: nowrap;
}

.b18-route__track {
  position: relative;
  flex: 1;
  height: 1px;
  background: var(--border-strong);
}

.b18-route__dot {
  position: absolute;
  top: 50%;
  left: 0;
  width: 8px;
  height: 8px;
  background: var(--pink);
  transform: translate(-50%, -50%);
}

.b18-route__line.is-visible .b18-route__dot {
  animation: b18-route-move 1.4s var(--ease) forwards;
}

@keyframes b18-route-move {
  to { left: 100%; }
}

.b18-route__address {
  font-family: var(--font-body);
  font-size: clamp(20px, 2.6vw, 28px);
  font-style: normal;
  line-height: 1.4;
  margin-bottom: var(--space-lg);
}

.b18-route__facts {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  margin-bottom: var(--space-lg);
  color: var(--white-dim);
  font-family: var(--font-body);
  font-size: var(--fs-body);
}

/* ============================================================
   SZENE 7 — FINAL / SAVE THE DATE
   ============================================================ */
.b18-final {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--b18-black);
  text-align: center;
}

.b18-final__content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.b18-final__mark {
  width: clamp(60px, 10vw, 120px);
  height: auto;
}

.b18-final__title {
  font-family: var(--font-display);
  font-size: var(--b18-fs-mega);
  line-height: 0.9;
  text-transform: uppercase;
  margin-top: var(--space-sm);
}

.b18-final__dates {
  margin-top: var(--space-lg);
  color: var(--white-dim);
  letter-spacing: 0.1em;
  line-height: 1.8;
}

.b18-final__save {
  margin-top: var(--space-md);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.3em;
  color: var(--pink);
}

.b18-final__ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-xl);
}

/* ============================================================
   MOBILE — own composition, no pinning
   ============================================================ */
@media (max-width: 768px) {
  .b18-night {
    position: static;
    height: auto;
    min-height: 100svh;
    padding-block: var(--space-xl) var(--space-lg);
    scroll-snap-align: start;
  }

  .b18-nights {
    scroll-snap-type: y proximity;
  }

  .b18-hero__headline,
  .b18-night__title,
  .b18-final__title {
    font-size: clamp(64px, 18vw, 140px);
  }

  .b18-moment {
    height: 70svh;
  }

  .b18-detail {
    position: relative;
    height: auto;
    min-height: 100svh;
    scroll-snap-align: start;
  }
}

/* ============================================================
   REDUCED MOTION — instant, static states, no pinning
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .b18-night {
    position: static;
    height: auto;
    min-height: 100svh;
  }

  .b18-detail {
    position: relative;
    height: auto;
  }

  .b18-intro__mark,
  .b18-intro__line {
    animation: none;
    opacity: 1;
    clip-path: none;
    transform: none;
  }

  .b18-night.is-active .b18-night__title {
    animation: none;
  }


  .b18-route__dot {
    animation: none !important;
    left: 100%;
  }
}

/* ============================================================
   FLOATING WHATSAPP CTA
   ============================================================ */
.b18-float-wa {
  position: fixed;
  right: var(--space-md);
  bottom: var(--space-md);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--pink);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  transition: transform var(--dur-fast) var(--ease);
}

.b18-float-wa:hover {
  transform: scale(1.08);
}

@media (max-width: 768px) {
  .b18-float-wa {
    right: var(--space-sm);
    bottom: var(--space-sm);
    width: 50px;
    height: 50px;
  }
}
