.invite-window[hidden] {
  display: none;
}

body.invite-window-open {
  overflow: hidden;
}

/* Kapitel 00–03: Typo hinter Anfrageformular aus (unabhängig vom aktiven Kapitel). */
body.invite-window-open #chapterLabel,
body.invite-window-open #heroChapter,
body.invite-window-open #cover .cover-stack,
body.invite-window-open #cover .cover-enter-slot,
body.invite-window-open #cover .cover-tag,
body.invite-window-open #cover .cover-title,
body.invite-window-open #cover .chapter-intro-wrap,
body.invite-window-open #cover .cover-enter-btn,
body.invite-window-open #cover .cover-entered-action,
body.invite-window-open #cover .cover-title-motion,
body.invite-window-open #cover .cover-logo-word,
body.invite-window-open #cover .chapter-intro-motion,
body.invite-window-open #cover .cover-stage,
body.invite-window-open #ch01 > .sec-num,
body.invite-window-open #ch01 > .sec-title,
body.invite-window-open #ch01 .chapter-intro-wrap,
body.invite-window-open #ch01 .sec-title-motion,
body.invite-window-open #ch01 .chapter-intro-motion,
body.invite-window-open #ch02 > .sec-num,
body.invite-window-open #ch02 > .sec-title,
body.invite-window-open #ch02 .chapter-intro-wrap,
body.invite-window-open #ch02 .sec-title-motion,
body.invite-window-open #ch02 .chapter-intro-motion,
body.invite-window-open #ch03 > .sec-num,
body.invite-window-open #ch03 > .sec-title,
body.invite-window-open #ch03 .chapter-intro-wrap,
body.invite-window-open #ch03 .sec-title-motion,
body.invite-window-open #ch03 .chapter-intro-motion {
  visibility: hidden !important;
  pointer-events: none !important;
}

@media (max-width: 1024px) {
  body.invite-window-open .sidebar-trigger-tab,
  body.invite-window-open .sidebar-edge-tab,
  body.invite-window-open.sidebar-open .sidebar-edge-tab,
  body.invite-window-open.sidebar-plus-mobile-open .sidebar-edge-tab {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
}

.invite-window {
  position: fixed;
  inset: 0;
  z-index: 2200;
}

.invite-window-backdrop {
  position: fixed;
  inset: 0;
  z-index: 238;
  background: transparent;
}

.invite-window-panel {
  --invite-sage-rgb: 134, 169, 144;
  --invite-page-pad: clamp(24px, 5vw, 68px);
  position: fixed;
  z-index: 245;
  inset: 0;
  width: min(58rem, calc(100vw - 2 * var(--invite-page-pad)));
  max-width: 58rem;
  --invite-panel-height: min(calc(100dvh - 2 * var(--invite-page-pad)), 560px);
  height: var(--invite-panel-height);
  min-height: var(--invite-panel-height);
  max-height: var(--invite-panel-height);
  margin: auto;
  transform: none;
  box-sizing: border-box;
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  border: 1px solid rgba(var(--white-rgb), 0.09);
  border-radius: 24px;
  background:
    radial-gradient(circle at 82% 8%, rgba(var(--purple-rgb), 0.1), transparent 44%),
    radial-gradient(circle at 14% 92%, rgba(var(--invite-sage-rgb), 0.035), transparent 48%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.026), rgba(255, 255, 255, 0.006)),
    rgba(18, 16, 24, 0.46);
  padding: clamp(34px, 6vw, 72px);
  text-align: left;
  overflow: hidden;
  transition:
    height 0.32s ease,
    min-height 0.32s ease,
    max-height 0.32s ease;
}

/* Gast- + Mitglieder-Einladung: lila Frost (Rechtliches / Basis-Klasse unberührt). */
#inviteWindowPanel,
#memberInviteWindowPanel {
  --invite-panel-frost-blur: 10px;
  border: 1px solid rgba(var(--purple-rgb), 0.22);
  background:
    radial-gradient(circle at 82% 10%, rgba(var(--purple-rgb), 0.24), transparent 46%),
    radial-gradient(circle at 12% 90%, rgba(var(--purple-rgb), 0.11), transparent 52%),
    linear-gradient(168deg, rgba(var(--white-rgb), 0.17) 0%, rgba(var(--white-rgb), 0.06) 52%),
    linear-gradient(152deg, rgba(var(--purple-rgb), 0.08), rgba(34, 26, 46, 0.2));
  box-shadow:
    inset 0 1px 0 rgba(var(--white-rgb), 0.16),
    inset 0 0 0 1px rgba(var(--purple-rgb), 0.07),
    0 16px 40px rgba(10, 6, 18, 0.14);
  -webkit-backdrop-filter: blur(var(--invite-panel-frost-blur)) saturate(1.12);
  backdrop-filter: blur(var(--invite-panel-frost-blur)) saturate(1.12);
}

/* Aus Story „Einladung anfragen“: Position per JS an #einladung .closing-panel. */
.invite-window-panel.invite-window-panel--story-aligned {
  inset: auto;
  margin: 0;
  transform: none;
  max-width: none;
}

body.invite-window-story-align-pending .invite-window-panel.invite-window-panel--story-aligned {
  transition: none;
}

.invite-window-panel:focus {
  outline: none;
}

.invite-window-panel:focus-visible {
  outline: none;
}

.invite-window-head {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 3;
  margin: 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-height: 0;
  pointer-events: none;
}

.invite-window-head .invite-window-close {
  pointer-events: auto;
}

/* Cover 00 (Gast): „Neu bei oorigin?“ oben rechts — Typo wie Top-Nav „Was ist oorigin?“. */
.top-nav-cover-invite {
  --top-nav-info-link-size: clamp(0.84rem, 3.35vw, 0.92rem);
  display: none;
  margin-left: auto;
  margin-right: 20px;
  align-self: center;
  align-items: center;
  min-height: 40px;
  color: rgba(var(--white-rgb), 0.7);
  font-size: var(--top-nav-info-link-size);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: none;
  flex-shrink: 0;
  pointer-events: auto;
}

.top-nav-cover-invite-link,
.top-nav-cover-invite .top-nav-panel-info-link {
  margin: 0;
  padding: 6px 0;
  border: none;
  background: none;
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  font-weight: 500;
  font-synthesis: weight;
  letter-spacing: inherit;
  text-transform: none;
  color: rgba(var(--white-rgb), 0.7);
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  box-shadow: none;
  transition: color 0.22s ease;
}

@media (hover: hover) {
  .top-nav-cover-invite-link:hover,
  .top-nav-cover-invite .top-nav-panel-info-link:hover {
    color: rgb(var(--white-rgb));
  }
}

.top-nav-cover-invite-link:focus-visible,
.top-nav-cover-invite .top-nav-panel-info-link:focus-visible {
  color: rgb(var(--white-rgb));
  outline: none;
}

@media (min-width: 744px) {
  body.single-cover-bg:not([data-cover-layout="tablet-col"]) .top-nav-cover-invite {
    --top-nav-info-link-size: calc(0.74rem * 1.15);
  }
}

@media (min-width: 1025px) {
  body.single-cover-bg:not([data-cover-layout="tablet-col"]) .top-nav-cover-invite {
    --top-nav-info-link-size: 0.94rem;
    letter-spacing: 0.035em;
  }
}

body.single-cover-bg[data-cover-layout="phone"] .top-nav-cover-invite {
  --top-nav-info-link-size: clamp(0.88rem, 3.55vw, 0.96rem);
  margin-top: 15px;
  margin-right: 10px;
  letter-spacing: 0.035em;
  color: rgba(var(--white-rgb), 0.9);
}

body.single-cover-bg[data-cover-layout="phone"] .top-nav-cover-invite-link,
body.single-cover-bg[data-cover-layout="phone"] .top-nav-cover-invite .top-nav-panel-info-link {
  color: rgba(var(--white-rgb), 0.9);
  font-weight: 600;
  font-synthesis: weight;
}

body.single-cover-bg[data-cover-layout="tablet-col"] .top-nav-cover-invite {
  margin-top: var(--cover-top-nav-invite-offset-top, 15px);
  margin-right: 10px;
  color: rgba(var(--white-rgb), 0.9);
}

body.single-cover-bg[data-cover-layout="tablet-col"] .top-nav-cover-invite-link,
body.single-cover-bg[data-cover-layout="tablet-col"] .top-nav-cover-invite .top-nav-panel-info-link {
  color: rgba(var(--white-rgb), 0.9);
}

/* iPad Hochformat: wie „Was ist oorigin?“ im Einladungspanel — flex-start + padding-top (kein translate). */
@media (orientation: portrait) and (min-width: 744px) {
  body.single-cover-bg[data-cover-layout="tablet-col"] .top-nav-cover-invite {
    align-self: flex-start;
    margin-top: 0;
    padding-top: var(--cover-top-nav-invite-offset-top, 15px);
    min-height: 42px;
    box-sizing: border-box;
  }
}

body.single-cover-bg:not([data-cover-layout]) .top-nav-cover-invite {
  position: relative;
  top: -8px;
}

html:not(.menu-open)
  body.oorigin-cover-invite-nav-visible:not(.sidebar-open):not(.sidebar-pinned):not(.info-window-open):not(.invite-window-open):not(.legal-window-open):not(.member-invite-window-open)
  .top-nav-cover-invite {
  display: inline-flex;
}

/* Anfrage offen: „Was ist oorigin?“ in Top-Nav (Größe/Position wie Story-Kopf, dezente Farbe). */
.top-nav-panel-actions {
  --top-nav-info-link-size: clamp(0.84rem, 3.35vw, 0.92rem);
  display: none;
  margin-left: auto;
  align-items: center;
  align-self: center;
  justify-content: flex-end;
  gap: 12px;
  margin-right: 0;
  max-width: none;
  min-height: 40px;
  color: rgba(var(--white-rgb), 0.7);
  font-size: var(--top-nav-info-link-size);
  font-weight: 300;
  letter-spacing: 0.04em;
  text-transform: none;
  flex-shrink: 0;
  pointer-events: auto;
}

.top-nav-panel-actions .top-nav-panel-info-link,
.top-nav-panel-actions .info-window-story-top-link {
  font: inherit;
  font-weight: 500;
  font-synthesis: weight;
  color: rgba(var(--white-rgb), 0.7);
  letter-spacing: inherit;
  text-transform: none;
  white-space: nowrap;
  padding: 6px 0;
  transition: color 0.22s ease;
}

@media (hover: hover) {
  .top-nav-panel-actions .top-nav-panel-info-link:hover,
  .top-nav-panel-actions .info-window-story-top-link:hover {
    color: rgb(var(--white-rgb));
  }
}

.top-nav-panel-actions .top-nav-panel-info-link:focus-visible,
.top-nav-panel-actions .info-window-story-top-link:focus-visible {
  color: rgb(var(--white-rgb));
  outline: none;
}

body.invite-window-open:not(.invite-window-from-story) .top-nav-panel-actions {
  --top-nav-panel-actions-offset-y: -8px;
  display: inline-flex;
  position: relative;
  top: var(--top-nav-panel-actions-offset-y);
}

body.invite-window-open .top-nav {
  z-index: 2301;
  justify-content: flex-start;
  padding-right: calc(max(4px, env(safe-area-inset-right, 0px)) + 30px);
}

body.invite-window-open .top-nav .top-nav-panel-actions,
body.invite-window-open .top-nav .nav-logo,
body.single-cover-bg.invite-window-open .top-nav-panel-actions {
  pointer-events: auto;
}

/* Login-Sidebar: kein Top-Nav-Doppel-Link (Story-Link sitzt in der Sidebar-Kopfzeile). */
body.sidebar-open:has(#sidebar-panel.is-page-auth) #topNavPanelActions,
body.sidebar-pinned:has(#sidebar-panel.is-page-auth) #topNavPanelActions,
body.sidebar-keep-open:has(#sidebar-panel.is-page-auth) #topNavPanelActions {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* iPad / Tablet (Story-Kopf +15 %) */
@media (min-width: 744px) {
  body.invite-window-open .top-nav-panel-actions {
    --top-nav-info-link-size: calc(0.74rem * 1.15);
    gap: calc(18px * 1.15);
    min-height: 38px;
  }
}

/* Desktop-Browser */
@media (min-width: 1025px) {
  body.invite-window-open .top-nav-panel-actions {
    --top-nav-info-link-size: 0.94rem;
    letter-spacing: 0.035em;
    gap: 20px;
    min-height: 36px;
  }

  body.invite-window-open .top-nav {
    padding-right: calc(max(8px, env(safe-area-inset-right, 0px)) + 34px);
  }
}

/* iPhone Cover: volle Zeile, größere Tap-Fläche, Safe Area */
body.single-cover-bg[data-cover-layout="phone"].invite-window-open .top-nav {
  padding-right: calc(max(14px, env(safe-area-inset-right, 0px)) + 24px);
  padding-left: max(18px, env(safe-area-inset-left, 0px));
}

body.single-cover-bg[data-cover-layout="phone"].invite-window-open .top-nav-panel-actions {
  --top-nav-info-link-size: clamp(0.88rem, 3.55vw, 0.96rem);
  align-self: flex-start;
  padding-top: 15px;
  min-height: calc(44px - env(safe-area-inset-top, 0px));
  letter-spacing: 0.035em;
  box-sizing: border-box;
}

body.single-cover-bg[data-cover-layout="phone"].invite-window-open .top-nav-panel-info-link {
  padding: 8px 0;
}

/* iPad Cover (tablet-col): zwischen Phone und Desktop */
body.single-cover-bg[data-cover-layout="tablet-col"].invite-window-open .top-nav-panel-actions {
  --top-nav-info-link-size: 0.9rem;
  min-height: 42px;
}

body.single-cover-bg[data-cover-layout="tablet-col"].invite-window-open .top-nav {
  padding-right: calc(max(12px, env(safe-area-inset-right, 0px)) + 28px);
}

/* iPad Mini: Einladungspanel — „Was ist oorigin?“ 15px oben, +20 % (Portrait + Querformat). */
@media (orientation: portrait) and (min-width: 744px) and (max-width: 819px),
  (orientation: landscape) and (min-width: 768px) and (max-width: 1180px) and (max-height: 780px) {
  body.single-cover-bg[data-cover-layout="tablet-col"].invite-window-open {
    --invite-top-nav-info-link-size-mini: calc(0.9rem * 1.2);
  }

  body.single-cover-bg[data-cover-layout="tablet-col"].invite-window-open .top-nav-panel-actions {
    --top-nav-panel-actions-offset-y: 0;
    --top-nav-info-link-size: var(--invite-top-nav-info-link-size-mini);
    align-self: flex-start;
    padding-top: 15px;
    top: auto;
    font-size: var(--invite-top-nav-info-link-size-mini);
    letter-spacing: 0.035em;
    box-sizing: border-box;
  }

  body.single-cover-bg[data-cover-layout="tablet-col"].invite-window-open #topNavInfoLink {
    font-size: var(--invite-top-nav-info-link-size-mini);
  }
}

/* iPad Air Portrait: Einladungspanel — „Was ist oorigin?“ 15px oben, +20 % (×2). */
@media (orientation: portrait) and (min-width: 820px) and (max-width: 833px) {
  body.single-cover-bg[data-cover-layout="tablet-col"].invite-window-open {
    --invite-top-nav-info-link-size-air: calc(0.9rem * 1.2 * 1.2);
  }

  body.single-cover-bg[data-cover-layout="tablet-col"].invite-window-open .top-nav-panel-actions {
    --top-nav-panel-actions-offset-y: 0;
    --top-nav-info-link-size: var(--invite-top-nav-info-link-size-air);
    align-self: flex-start;
    padding-top: 15px;
    top: auto;
    font-size: var(--invite-top-nav-info-link-size-air);
    letter-spacing: 0.035em;
    box-sizing: border-box;
  }

  body.single-cover-bg[data-cover-layout="tablet-col"].invite-window-open #topNavInfoLink,
  body.single-cover-bg[data-cover-layout="tablet-col"].invite-window-open .top-nav-panel-info-link {
    font-size: var(--invite-top-nav-info-link-size-air);
  }
}

/* iPad Pro: Einladungspanel — „Was ist oorigin?“ +20 % (Portrait + Querformat). */
@media (orientation: portrait) and (min-width: 834px) {
  body.single-cover-bg[data-cover-layout="tablet-col"].invite-window-open {
    --invite-top-nav-info-link-size-pro: calc(0.9rem * 1.2 * 1.2);
  }

  body.single-cover-bg[data-cover-layout="tablet-col"].invite-window-open .top-nav-panel-actions {
    --top-nav-panel-actions-offset-y: 0;
    --top-nav-info-link-size: var(--invite-top-nav-info-link-size-pro);
    align-self: flex-start;
    padding-top: 15px;
    top: auto;
    font-size: var(--invite-top-nav-info-link-size-pro);
    letter-spacing: 0.035em;
    box-sizing: border-box;
  }

  body.single-cover-bg[data-cover-layout="tablet-col"].invite-window-open #topNavInfoLink,
  body.single-cover-bg[data-cover-layout="tablet-col"].invite-window-open .top-nav-panel-info-link {
    font-size: var(--invite-top-nav-info-link-size-pro);
  }
}

@media (orientation: landscape) and (min-width: 1181px) {
  body.single-cover-bg[data-cover-layout="tablet-col"].invite-window-open {
    --invite-top-nav-info-link-size-pro: calc(0.9rem * 1.2 * 1.2);
  }

  body.single-cover-bg[data-cover-layout="tablet-col"].invite-window-open .top-nav-panel-actions {
    --top-nav-info-link-size: var(--invite-top-nav-info-link-size-pro);
    font-size: var(--invite-top-nav-info-link-size-pro);
    letter-spacing: 0.035em;
  }

  body.single-cover-bg[data-cover-layout="tablet-col"].invite-window-open #topNavInfoLink,
  body.single-cover-bg[data-cover-layout="tablet-col"].invite-window-open .top-nav-panel-info-link {
    font-size: var(--invite-top-nav-info-link-size-pro);
  }
}

/* iPad Air Querformat: +20 %, 20px höher als Portrait-Block (kein padding-top). */
@media (orientation: landscape) and (min-width: 768px) and (max-width: 1180px) and (min-height: 781px) {
  body.single-cover-bg[data-cover-layout="tablet-col"].invite-window-open {
    --invite-top-nav-info-link-size-air: calc(0.9rem * 1.2);
  }

  body.single-cover-bg[data-cover-layout="tablet-col"].invite-window-open .top-nav-panel-actions {
    --top-nav-panel-actions-offset-y: -5px;
    --top-nav-info-link-size: var(--invite-top-nav-info-link-size-air);
    align-self: flex-start;
    padding-top: 0;
    top: var(--top-nav-panel-actions-offset-y);
    font-size: var(--invite-top-nav-info-link-size-air);
    letter-spacing: 0.035em;
    box-sizing: border-box;
  }

  body.single-cover-bg[data-cover-layout="tablet-col"].invite-window-open #topNavInfoLink {
    font-size: var(--invite-top-nav-info-link-size-air);
  }
}

.invite-window-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  background: transparent;
  color: rgba(237, 233, 247, 0.45);
  cursor: pointer;
  transition: color 0.2s ease;
}

.invite-window-close:hover {
  color: rgba(237, 233, 247, 0.92);
}

.invite-window-close svg {
  width: 12px;
  height: 12px;
}

.invite-window-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  padding: 0;
  scrollbar-width: none;
}

.invite-window-body::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.invite-flow-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 0 0 auto;
  width: 100%;
  max-width: 42rem;
  min-height: 5px;
  margin: 0 0 20px;
}

.invite-flow-stage {
  position: relative;
  flex: 0 1 auto;
  width: 100%;
  max-width: 42rem;
  height: min(420px, calc(var(--invite-panel-height, 560px) - 8rem));
  min-height: 260px;
  overflow: hidden;
}

.invite-flow-step {
  display: none;
  flex-direction: column;
  gap: 0;
  box-sizing: border-box;
  position: absolute;
  inset: 0;
  overflow: hidden;
  scrollbar-width: none;
  animation: inviteFlowStepIn 0.45s ease both;
}

.invite-flow-step::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.invite-flow-step.is-active {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
}

#inviteStep0.invite-flow-step {
  animation: none;
}

#inviteStep0.invite-flow-step.is-active,
#inviteStep5.invite-flow-step.is-active {
  align-items: center;
  text-align: center;
}

/* Lead wie Cover: langsam von unten + Deckkraft (gleiche Werte wie chapter-title-intro-fade). */
.invite-flow-intro-lead-motion {
  display: block;
  opacity: 0;
  transform: translateY(12px);
  will-change: opacity, transform;
  transition-property: opacity, transform;
  transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
  transition-duration: 7.2s, 7.2s;
  transition-delay: 0s, 0s;
}

.invite-flow-intro-lead-motion.is-intro-revealed {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.12s, 0.12s;
  transition-duration: 7.2s, 7.2s;
}

/* Zugangspanel: ohne Extra-Delay, sofort weich einblenden. */
#zahlungRegisterTitleMotion.invite-flow-intro-lead-motion.is-intro-revealed {
  transition-delay: 0s, 0s;
}

@media (prefers-reduced-motion: reduce) {
  .invite-flow-intro-lead-motion {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@keyframes inviteFlowStepIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.invite-flow-progress.is-hidden {
  visibility: hidden;
  pointer-events: none;
  flex: 0 0 0;
  min-height: 0;
  margin: 0;
  overflow: hidden;
}

.invite-flow-prog-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--purple) 38%, transparent);
  transition: background 0.3s ease;
}

.invite-flow-prog-dot.is-done {
  background: color-mix(in srgb, var(--purple) 58%, white 28%);
}

.invite-flow-prog-dot.is-current {
  background: color-mix(in srgb, var(--purple) 68%, white 32%);
}

.invite-flow-chapter {
  margin: 0 0 clamp(18px, 3vh, 26px);
  width: 100%;
  max-width: 42rem;
  color: rgba(var(--white-rgb), 0.92);
  font-family: var(--font);
  font-size: clamp(0.88rem, 1.08vw, 1.02rem);
  font-weight: 300;
  line-height: 1.35;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.invite-flow-copy {
  font-family: var(--font);
  font-size: calc(13px * 1.3);
  font-weight: 300;
  letter-spacing: 0.08em;
  color: rgba(var(--white-rgb), 0.58);
  line-height: 1.75;
  max-width: 42rem;
  margin: 0 auto clamp(22px, 3vh, 32px);
}

.invite-flow-intro-lead {
  font-family: var(--font);
  font-size: calc(13px * 1.3);
  font-weight: 300;
  letter-spacing: 0.08em;
  color: rgba(var(--white-rgb), 0.58);
  line-height: 1.75;
  max-width: 42rem;
  margin: 0 auto;
}

.invite-flow-intro-detail {
  font-family: var(--font);
  font-size: calc(13px * 1.3);
  font-weight: 300;
  letter-spacing: 0.08em;
  color: rgba(var(--white-rgb), 0.9);
  line-height: 1.75;
  max-width: 42rem;
  margin: clamp(16px, 2.4vh, 22px) auto clamp(16px, 2vh, 20px);
  padding-top: clamp(18px, 2.8vh, 24px);
  border-top: 0.5px solid rgba(var(--white-rgb), 0.09);
}

.invite-flow-intro-strong {
  font-weight: 400;
  color: rgba(var(--white-rgb), 0.95);
}

#inviteStep0 .invite-flow-nav {
  margin-top: 0;
  padding-top: 28px;
  padding-bottom: 12px;
  justify-content: center;
}

#inviteStep0 .invite-flow-chapter {
  margin: 0 auto clamp(18px, 3vh, 28px);
  max-width: none;
  color: color-mix(in srgb, var(--purple) 65%, white 35%);
  font-family: var(--font);
  font-size: clamp(calc(0.76rem * 1.1), calc(1.02vw * 1.1), calc(0.88rem * 1.1));
  font-weight: 600 !important;
  font-synthesis: weight;
  letter-spacing: 0.2em;
  line-height: 1.4;
  text-transform: uppercase;
}

#inviteStep0 .invite-flow-intro-lead,
#zahlungInviteStepRegister .invite-flow-intro-lead {
  max-width: 11ch;
  margin: 0 auto;
  color: rgba(var(--white-rgb), 0.9);
  font-family: var(--font);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 200;
  font-style: normal;
  letter-spacing: -0.01em;
  line-height: 1.04;
}

#inviteStep0 .invite-flow-intro-detail {
  margin-left: auto;
  margin-right: auto;
}

.invite-flow-intro-title,
.invite-window h2.invite-flow-question {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 200;
  font-synthesis: none;
  font-size: clamp(28px, 4.5vw, 46px);
  line-height: 1.22;
  color: #ede9f7;
  letter-spacing: 0.01em;
  margin: 0 0 20px;
  max-width: 42rem;
  width: 100%;
}

.invite-window h2.invite-flow-question {
  font-size: clamp(22px, 3.5vw, 34px);
  line-height: 1.3;
  margin-bottom: 8px;
}

.invite-flow-question-sub {
  font-family: var(--font);
  font-size: calc(13px * 1.3);
  font-weight: 300;
  letter-spacing: 0.08em;
  color: rgba(var(--white-rgb), 0.58);
  line-height: 1.75;
  max-width: 42rem;
  width: 100%;
  margin: 0 0 20px;
}

/* Gast-Einladung (#inviteWindow): Kapitel 01–04, Fließtext, Überspringen, Schließen */
#inviteWindow #inviteStep1 .invite-flow-chapter,
#inviteWindow #inviteStep2 .invite-flow-chapter,
#inviteWindow #inviteStep3 .invite-flow-chapter,
#inviteWindow #inviteStep4 .invite-flow-chapter {
  font-weight: 500;
  font-synthesis: weight;
}

#inviteWindow #inviteStep1 .invite-flow-question,
#inviteWindow #inviteStep2 .invite-flow-question,
#inviteWindow #inviteStep3 .invite-flow-question,
#inviteWindow #inviteStep4 .invite-flow-question {
  font-weight: 500;
  font-synthesis: weight;
}

#inviteWindow .invite-flow-question-sub:not(.member-invite-form-error) {
  color: rgba(var(--white-rgb), 1);
  font-size: calc(13px * 1.3 * 1.15);
}

#inviteWindow .invite-flow-nav-right {
  gap: 28px;
}

#inviteWindow .invite-window-close svg path {
  stroke-width: 1.85;
}

#inviteWindow .invite-flow-btn-back-arrow svg polyline {
  stroke-width: 2.75;
}

#inviteWindow .invite-flow-btn-back-arrow svg {
  opacity: 0.95;
}

#inviteWindow .invite-flow-btn-back:hover .invite-flow-btn-back-arrow svg,
#inviteWindow .invite-flow-btn-back:focus-visible .invite-flow-btn-back-arrow svg {
  opacity: 1;
}

body.single-cover-bg[data-cover-layout="phone"] #inviteWindow .invite-flow-btn-next,
body.single-cover-bg[data-cover-layout="tablet-col"] #inviteWindow .invite-flow-btn-next {
  padding: 14px 28px 13px;
  font-size: 0.92rem;
  letter-spacing: 0.1em;
  min-height: 48px;
}

.invite-window .invite-flow-field-wrap,
#zahlungRegisterForm .invite-flow-field-wrap {
  --invite-field-block-h: 48px;
  --invite-field-line-gap: 5px;
  --invite-field-pad-top: 12px;
  position: relative;
  width: 100%;
  max-width: 42rem;
  margin: 0 0 16px;
  display: flex;
  flex-direction: column;
  gap: var(--invite-field-line-gap);
  text-align: left;
}

.invite-window .invite-flow-field-wrap .invite-flow-field-input,
#zahlungRegisterForm .invite-flow-field-wrap .invite-flow-field-input {
  flex: 0 0 auto;
  display: block;
  width: 100%;
  height: var(--invite-field-block-h);
  min-height: var(--invite-field-block-h);
  max-height: var(--invite-field-block-h);
  margin: 0;
  padding: var(--invite-field-pad-top) 0 0;
  overflow-x: hidden;
  overflow-y: auto;
  line-height: 1.35;
  box-sizing: border-box;
  border: 0;
  vertical-align: top;
  field-sizing: fixed;
}

.invite-window .invite-flow-field-wrap textarea.invite-flow-field-input,
#zahlungRegisterForm .invite-flow-field-wrap textarea.invite-flow-field-input {
  min-height: var(--invite-field-block-h);
  max-height: var(--invite-field-block-h);
  line-height: 1.35;
  resize: none;
}

/* Einladung: Satz/Wunsch — auf Phone zwei Zeilen statt Abschneiden. */
.invite-flow-field-wrap--sentence textarea.invite-flow-field-input {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  overflow-x: hidden;
  overflow-y: hidden;
}

body.single-cover-bg[data-cover-layout="phone"] .invite-flow-field-wrap--sentence {
  --invite-field-block-h: 72px;
  --invite-field-pad-top: 10px;
}

/* Einladung Schritt 04 + Mitglieder-Einladung: Name/E-Mail auf Phone untereinander. */
body.single-cover-bg[data-cover-layout="phone"] #inviteStep4 .invite-flow-field-row,
body.single-cover-bg[data-cover-layout="phone"] #memberInviteStepForm .invite-flow-field-row {
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  margin-bottom: 10px;
}

body.single-cover-bg[data-cover-layout="phone"] #inviteStep4 .invite-flow-field-row .invite-flow-field-wrap,
body.single-cover-bg[data-cover-layout="phone"] #memberInviteStepForm .invite-flow-field-row .invite-flow-field-wrap {
  flex: 0 0 auto;
  width: 100%;
  margin-bottom: 10px;
}

body.single-cover-bg[data-cover-layout="phone"] #inviteStep4 .invite-flow-field-row .invite-flow-field-wrap:last-child,
body.single-cover-bg[data-cover-layout="phone"] #memberInviteStepForm .invite-flow-field-row .invite-flow-field-wrap:last-child {
  margin-bottom: 0;
}

.invite-window .invite-flow-field-wrap .invite-flow-field-line,
#zahlungRegisterForm .invite-flow-field-wrap .invite-flow-field-line {
  position: relative;
  flex-shrink: 0;
  width: 100%;
  margin: 0;
}

.invite-window .invite-flow-field-row,
#zahlungRegisterForm .invite-flow-field-row {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: flex-end;
  align-self: stretch;
  gap: clamp(10px, 3vw, 28px);
  width: 100%;
  max-width: 42rem;
  margin: 0 0 16px;
  box-sizing: border-box;
}

#zahlungRegisterForm .invite-flow-field-row {
  align-self: center;
  margin-left: auto;
  margin-right: auto;
}

.invite-window .invite-flow-field-row .invite-flow-field-wrap,
#zahlungRegisterForm .invite-flow-field-row .invite-flow-field-wrap {
  flex: 1 1 0;
  min-width: 0;
  width: 0;
  max-width: none;
  margin-bottom: 0;
}

.invite-flow-field-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: none;
  padding: 12px 0;
  font-size: 16px;
  letter-spacing: 0.04em;
  color: #ede9f7;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 300;
  outline: none;
  transition: color 0.3s ease;
  resize: none;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
  box-shadow: none;
}

.invite-flow-field-input::placeholder {
  color: rgba(237, 233, 247, 0.43);
  font-style: italic;
  opacity: 1;
}

.invite-flow-field-input:focus {
  outline: none;
}

.invite-flow-field-input.is-invalid ~ .invite-flow-field-line {
  background: rgba(200, 100, 100, 0.6);
}

textarea.invite-flow-field-input {
  min-height: 72px;
  line-height: 1.6;
}

.invite-window textarea.invite-flow-field-input,
#zahlungRegisterForm textarea.invite-flow-field-input {
  min-height: 0;
  line-height: 1.35;
}

.invite-flow-field-line {
  position: relative;
  display: block;
  width: 100%;
  height: 0.5px;
  background: rgba(237, 233, 247, 0.07);
  pointer-events: none;
  flex-shrink: 0;
  overflow: hidden;
}

.invite-flow-field-line::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 100%;
  background: #7a5fa0;
  transition: width 0.4s ease;
}

.invite-flow-field-input:focus ~ .invite-flow-field-line {
  background: transparent;
}

.invite-flow-field-input:focus ~ .invite-flow-field-line::after {
  width: 100%;
}

.invite-flow-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  max-width: 42rem;
  margin-top: 20px;
  padding-top: clamp(20px, 4vh, 36px);
  padding-bottom: 12px;
  flex-shrink: 0;
  box-sizing: border-box;
}

#inviteStep1 .invite-flow-nav,
#inviteStep2 .invite-flow-nav,
#inviteStep3 .invite-flow-nav,
#inviteStep4 .invite-flow-nav {
  padding-top: 14px;
  padding-bottom: 20px;
}

.invite-flow-nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.invite-flow-btn-next {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px 11px;
  border: 1px solid rgba(var(--purple-rgb), 0.22);
  border-radius: 999px;
  background:
    radial-gradient(ellipse at 70% 110%, rgba(var(--purple-rgb), 0.14) 0%, rgba(var(--purple-rgb), 0.05) 55%, transparent 100%),
    rgba(8, 7, 12, 0.18);
  box-shadow: inset 0 0 0 1px rgba(var(--purple-rgb), 0.04);
  color: rgba(var(--purple-rgb), 0.82);
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.2s ease, box-shadow 0.25s ease;
}

.invite-flow-btn-next:hover:not(:disabled) {
  border-color: rgba(var(--purple-rgb), 0.34);
  background:
    radial-gradient(ellipse at 70% 110%, rgba(var(--purple-rgb), 0.2) 0%, rgba(var(--purple-rgb), 0.08) 55%, transparent 100%),
    rgba(8, 7, 12, 0.26);
  color: rgba(var(--white-rgb), 0.88);
}

/* Gast-Einladung + Info-Embed #zahlung: frostig-lila CTAs (ohne backdrop-filter am Button — iOS). */
.invite-window .invite-flow-btn-next,
html.is-embed #zahlungInviteOk .invite-flow-btn-next,
html.is-embed #zahlungInviteInvalid .invite-flow-btn-next,
html.is-embed #zahlungInviteOk .closing-action .primary-cta,
html.is-embed #zahlungInviteInvalid .closing-action .primary-cta {
  border-color: rgba(var(--purple-rgb), 0.42);
  background:
    radial-gradient(ellipse at 72% 118%, rgba(var(--purple-rgb), 0.3) 0%, rgba(var(--purple-rgb), 0.11) 54%, transparent 100%),
    linear-gradient(168deg, rgba(var(--white-rgb), 0.14) 0%, rgba(var(--white-rgb), 0.05) 52%),
    linear-gradient(152deg, rgba(var(--purple-rgb), 0.14), rgba(24, 18, 34, 0.26));
  box-shadow:
    inset 0 1px 0 rgba(var(--white-rgb), 0.15),
    inset 0 0 0 1px rgba(var(--purple-rgb), 0.11);
  color: rgba(206, 188, 228, 0.98);
  transition: border-color 0.25s ease, color 0.2s ease, box-shadow 0.25s ease;
}

.invite-window .invite-flow-btn-next:hover:not(:disabled),
html.is-embed #zahlungInviteOk .invite-flow-btn-next:hover:not(:disabled),
html.is-embed #zahlungInviteInvalid .invite-flow-btn-next:hover:not(:disabled),
html.is-embed #zahlungInviteOk .closing-action .primary-cta:hover:not(:disabled),
html.is-embed #zahlungInviteInvalid .closing-action .primary-cta:hover:not(:disabled) {
  border-color: rgba(var(--purple-rgb), 0.56);
  background:
    radial-gradient(ellipse at 72% 118%, rgba(var(--purple-rgb), 0.38) 0%, rgba(var(--purple-rgb), 0.15) 54%, transparent 100%),
    linear-gradient(168deg, rgba(var(--white-rgb), 0.18) 0%, rgba(var(--white-rgb), 0.07) 52%),
    linear-gradient(152deg, rgba(var(--purple-rgb), 0.2), rgba(24, 18, 34, 0.32));
  color: rgba(var(--white-rgb), 0.92);
}

.invite-window .invite-flow-btn-next:focus-visible,
html.is-embed #zahlungInviteOk .invite-flow-btn-next:focus-visible,
html.is-embed #zahlungInviteInvalid .invite-flow-btn-next:focus-visible,
html.is-embed #zahlungInviteOk .closing-action .primary-cta:focus-visible,
html.is-embed #zahlungInviteInvalid .closing-action .primary-cta:focus-visible {
  box-shadow:
    inset 0 1px 0 rgba(var(--white-rgb), 0.15),
    inset 0 0 0 1px rgba(var(--purple-rgb), 0.11),
    0 0 0 2px rgba(var(--purple-rgb), 0.32);
}

.invite-flow-btn-next:disabled {
  opacity: 0.35;
  cursor: default;
}

.invite-flow-btn-next:focus {
  outline: none;
}

.invite-flow-btn-next:focus-visible {
  box-shadow:
    inset 0 0 0 1px rgba(var(--purple-rgb), 0.04),
    0 0 0 2px rgba(var(--purple-rgb), 0.28);
}

.invite-flow-btn-back,
.invite-flow-skip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
  font-size: 0.86rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(var(--white-rgb), 0.96);
  background: none;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.2s ease;
}

.invite-flow-btn-back-arrow {
  display: none;
  line-height: 0;
}

.invite-flow-btn-back-arrow svg {
  display: block;
  width: 9px;
  height: 17px;
  opacity: 0.9;
  transition: opacity 0.2s ease;
}

.invite-flow-btn-back:hover .invite-flow-btn-back-arrow svg,
.invite-flow-btn-back:focus-visible .invite-flow-btn-back-arrow svg {
  opacity: 0.92;
}

.invite-flow-btn-back:hover,
.invite-flow-skip:hover {
  color: rgba(var(--white-rgb), 1);
}

.invite-flow-step.invite-flow-step-end.is-active {
  justify-content: center;
  align-items: center;
  text-align: center;
}

.invite-flow-question-sub.member-invite-form-error {
  color: rgba(220, 140, 150, 0.92);
  margin-top: 4px;
  margin-bottom: 0;
  letter-spacing: 0.04em;
}

#memberInviteFormSubline {
  min-height: 0;
  margin-bottom: 33px;
  color: rgba(var(--white-rgb), 0.84);
}

#memberInviteStepForm .invite-flow-field-row .invite-flow-field-input {
  font-size: 18px;
  letter-spacing: 0.03em;
}

#memberInviteStepForm .invite-flow-field-row .invite-flow-field-input::placeholder {
  font-size: 18px;
  letter-spacing: 0.02em;
}

/* Safari/iOS: Kontakt-AutoFill-Icons (Kopf) in Gast- und Mitglieder-Einladung (Name + E-Mail). */
#inviteFieldDisplayName::-webkit-contacts-auto-fill-button,
#inviteFieldDisplayName::-webkit-credentials-auto-fill-button,
#inviteFieldEmail::-webkit-contacts-auto-fill-button,
#inviteFieldEmail::-webkit-credentials-auto-fill-button,
#memberInviteFieldName::-webkit-contacts-auto-fill-button,
#memberInviteFieldName::-webkit-credentials-auto-fill-button,
#memberInviteFieldEmail::-webkit-contacts-auto-fill-button,
#memberInviteFieldEmail::-webkit-credentials-auto-fill-button {
  opacity: 0;
  visibility: hidden;
  display: none !important;
  pointer-events: none;
  position: absolute;
  right: 0;
  width: 0;
  height: 0;
  margin: 0;
}

body.single-cover-bg[data-cover-layout="phone"].member-invite-window-open #memberInviteWindowPanel:has(#memberInviteStepForm.is-active) {
  padding-bottom: clamp(32px, 6vw, 40px);
}

body.single-cover-bg[data-cover-layout="phone"] #memberInviteStepForm .invite-flow-nav {
  margin-top: 38px;
  padding-top: 8px;
  padding-bottom: 38px;
}

body.single-cover-bg[data-cover-layout="phone"] #memberInviteBtnSend.invite-flow-btn-next {
  padding: 13px 20px 12px;
}

#memberInviteFormSubline.is-error {
  color: rgba(220, 140, 150, 0.92);
  letter-spacing: 0.04em;
}

body.member-invite-window-open .invite-window:not(#memberInviteWindow) {
  visibility: hidden;
  pointer-events: none;
}

/* iPhone: Sidebar hinter Mitglieder-Einladung / Rechtliches wie Info-Panel. */
body.single-cover-bg[data-cover-layout="phone"].member-invite-window-open #sidebar-panel,
body.single-cover-bg[data-cover-layout="phone"].member-invite-window-open #sidebar-overlay,
body.single-cover-bg[data-cover-layout="phone"].legal-window-open #sidebar-panel,
body.single-cover-bg[data-cover-layout="phone"].legal-window-open #sidebar-overlay {
  visibility: hidden !important;
  pointer-events: none !important;
}

body.single-cover-bg[data-cover-layout="phone"].member-invite-window-open #sidebar-panel,
body.single-cover-bg[data-cover-layout="phone"].member-invite-window-open.sidebar-open #sidebar-panel,
body.single-cover-bg[data-cover-layout="phone"].member-invite-window-open.sidebar-pinned #sidebar-panel,
body.single-cover-bg[data-cover-layout="phone"].legal-window-open #sidebar-panel,
body.single-cover-bg[data-cover-layout="phone"].legal-window-open.sidebar-open #sidebar-panel,
body.single-cover-bg[data-cover-layout="phone"].legal-window-open.sidebar-pinned #sidebar-panel {
  transform: translateX(100%) !important;
}

body.single-cover-bg[data-cover-layout="phone"].member-invite-window-open #sidebar-overlay,
body.single-cover-bg[data-cover-layout="phone"].legal-window-open #sidebar-overlay {
  display: none !important;
}

/* Mitglieder-Einladung Formular: Standard-Panelhöhe, Stage nutzt Innenraum (kein Scroll). */
#memberInviteWindowPanel:has(#memberInviteStepForm.is-active) {
  --invite-panel-height: min(calc(100dvh - 2 * var(--invite-page-pad)), 580px);
  height: var(--invite-panel-height);
  min-height: var(--invite-panel-height);
  max-height: var(--invite-panel-height);
  padding-bottom: clamp(40px, 6.5vw, 72px);
}

#memberInviteWindow .invite-window-body {
  justify-content: flex-start;
  overflow: hidden;
}

#memberInviteWindow .invite-flow-stage {
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
  max-height: 100%;
  overflow: visible;
}

#memberInviteStepForm.invite-flow-step.is-active {
  justify-content: flex-start;
  height: 100%;
  min-height: 100%;
  overflow: visible;
}

#inviteStep4ContactForm,
#memberInviteForm {
  width: 100%;
  max-width: 42rem;
  align-self: stretch;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0;
}

#memberInviteForm {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}

#memberInviteStepForm .invite-flow-chapter {
  color: color-mix(in srgb, var(--purple) 65%, white 35%);
  font-weight: 500;
  font-synthesis: weight;
  text-align: left;
  margin-left: 0;
  margin-right: auto;
  margin-bottom: clamp(14px, 2.4vh, 20px);
}

#memberInviteStepForm .invite-flow-chapter,
#memberInviteStepForm .invite-flow-question,
#memberInviteFormSubline,
#memberInviteStepForm .invite-flow-field-row,
#memberInviteStepForm .invite-flow-field-wrap {
  width: 100%;
  max-width: 42rem;
  align-self: stretch;
  box-sizing: border-box;
}

#memberInviteStepForm .invite-flow-nav {
  width: 100%;
  max-width: 42rem;
  align-self: stretch;
  box-sizing: border-box;
  justify-content: center;
  margin-top: 32px;
  padding-top: 14px;
  padding-bottom: 40px;
  position: relative;
  z-index: 4;
  flex-shrink: 0;
  isolation: isolate;
}

#memberInviteStepForm .invite-flow-nav > span:empty {
  display: none;
}

#memberInviteBtnSend.invite-flow-btn-next {
  position: relative;
  z-index: 1;
  margin-top: -10px;
  padding: 16px 22px 15px;
}

#memberInviteBtnSend.invite-flow-btn-next:hover:not(:disabled) {
  border-color: rgba(var(--purple-rgb), 0.58);
}

#memberInviteBtnSend.invite-flow-btn-next:focus-visible {
  box-shadow:
    inset 0 1px 0 rgba(var(--white-rgb), 0.15),
    inset 0 0 0 1px rgba(var(--purple-rgb), 0.11),
    0 0 0 2px rgba(var(--purple-rgb), 0.34);
}

#memberInviteStepForm .invite-flow-question,
#memberInviteStepForm #memberInviteFormSubline {
  text-align: left;
  margin-left: 0;
  margin-right: auto;
}

#memberInviteStepForm .invite-flow-question {
  margin-bottom: 30px;
  font-weight: 500;
  font-synthesis: weight;
}

#memberInviteStepForm #memberInviteFormSubline:not(.is-error) {
  color: rgba(var(--white-rgb), 1);
  font-weight: 300;
}

#memberInviteWindow .invite-window-close svg path {
  stroke-width: 1.85;
}

/* iPhone: Name + E-Mail untereinander, kompaktere Abstände. */
body.single-cover-bg[data-cover-layout="phone"] #memberInviteFormSubline:not(.is-error) {
  min-height: 0;
  margin-bottom: 25px;
}

body.single-cover-bg[data-cover-layout="phone"] #memberInviteStepForm .invite-flow-field-wrap {
  margin-bottom: 10px;
}

body.single-cover-bg[data-cover-layout="phone"] #memberInviteStepForm .invite-flow-chapter {
  margin-bottom: clamp(10px, 2vh, 16px);
}

body.single-cover-bg[data-cover-layout="phone"] #memberInviteStepForm .invite-flow-question {
  margin-bottom: 30px;
  font-size: clamp(28px, 6.4vw, 40px);
  line-height: 1.26;
}

body.single-cover-bg[data-cover-layout="phone"] #inviteWindow :is(#inviteStep1, #inviteStep2, #inviteStep3, #inviteStep4) .invite-flow-question {
  margin-bottom: 8px;
  font-size: clamp(28px, 6.4vw, 40px);
  line-height: 1.26;
}

/* iPhone/iPad: Gast-Einladung Schritte 01–04 — Inhalt oben, Panel scrollt statt abschneiden. */
body.single-cover-bg[data-cover-layout="phone"] #inviteWindow:has(#inviteStep1.is-active, #inviteStep2.is-active, #inviteStep3.is-active, #inviteStep4.is-active) .invite-window-body,
body.single-cover-bg[data-cover-layout="tablet-col"] #inviteWindow:has(#inviteStep1.is-active, #inviteStep2.is-active, #inviteStep3.is-active, #inviteStep4.is-active) .invite-window-body {
  justify-content: flex-start;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-top: clamp(6px, 1.5vh, 14px);
}

body.single-cover-bg[data-cover-layout="phone"] #inviteWindow:has(#inviteStep1.is-active, #inviteStep2.is-active, #inviteStep3.is-active, #inviteStep4.is-active) .invite-flow-stage,
body.single-cover-bg[data-cover-layout="tablet-col"] #inviteWindow:has(#inviteStep1.is-active, #inviteStep2.is-active, #inviteStep3.is-active, #inviteStep4.is-active) .invite-flow-stage {
  height: auto;
  min-height: 0;
  max-height: none;
  flex: 0 0 auto;
  overflow: visible;
}

body.single-cover-bg[data-cover-layout="phone"] #inviteWindow #inviteStep1.invite-flow-step.is-active,
body.single-cover-bg[data-cover-layout="phone"] #inviteWindow #inviteStep2.invite-flow-step.is-active,
body.single-cover-bg[data-cover-layout="phone"] #inviteWindow #inviteStep3.invite-flow-step.is-active,
body.single-cover-bg[data-cover-layout="phone"] #inviteWindow #inviteStep4.invite-flow-step.is-active,
body.single-cover-bg[data-cover-layout="tablet-col"] #inviteWindow #inviteStep1.invite-flow-step.is-active,
body.single-cover-bg[data-cover-layout="tablet-col"] #inviteWindow #inviteStep2.invite-flow-step.is-active,
body.single-cover-bg[data-cover-layout="tablet-col"] #inviteWindow #inviteStep3.invite-flow-step.is-active,
body.single-cover-bg[data-cover-layout="tablet-col"] #inviteWindow #inviteStep4.invite-flow-step.is-active {
  position: relative;
  inset: auto;
  width: 100%;
  height: auto;
  min-height: 0;
  overflow: visible;
  justify-content: flex-start;
}

#memberInviteStepSuccess.invite-flow-step.is-active {
  justify-content: center;
}

.invite-flow-step-end {
  text-align: center;
  padding: 0 0 8px;
  width: 100%;
  box-sizing: border-box;
}

.invite-flow-end-icon {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--purple);
  border: 1px solid var(--purple);
  margin: 0 auto 9px;
}

.invite-window h2.invite-flow-end-title,
.invite-flow-end-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 200;
  font-synthesis: none;
  font-size: clamp(24px, 4vw, 36px);
  line-height: 1.35;
  color: #ede9f7;
  letter-spacing: 0.01em;
  margin: 0 0 18px;
}

.invite-flow-end-body {
  font-family: var(--font);
  font-size: calc(13px * 1.3);
  font-weight: 300;
  letter-spacing: 0.08em;
  color: rgba(var(--white-rgb), 0.9);
  line-height: 1.75;
  max-width: 42rem;
  width: 100%;
  margin: 0 auto 12px;
}

.invite-flow-end-body + .invite-flow-end-signoff {
  margin-top: 20px;
}

.invite-flow-end-signoff {
  font-family: var(--font);
  font-size: calc(12px * 1.3 * 1.2);
  font-weight: 200;
  letter-spacing: 0.08em;
  color: var(--white);
  line-height: 1.35;
  margin-bottom: 0;
}

.invite-flow-end-signoff .ri {
  color: rgba(var(--purple-rgb), 0.9);
  font-style: italic;
  font-weight: var(--logo-ri-weight, 400);
  font-synthesis: weight;
}

.invite-flow-end-signoff .logo-mark {
  color: var(--purple);
}

@media (max-width: 600px) {
  .invite-window-panel {
    --invite-page-pad: clamp(20px, 5vw, 32px);
    --invite-panel-height: min(calc(100dvh - 2 * var(--invite-page-pad)), 560px);
  }

  .invite-flow-btn-back-text {
    display: none;
  }

  .invite-flow-btn-back-arrow {
    display: block;
  }

  .invite-flow-nav:has(.invite-flow-nav-right) {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    column-gap: 8px;
    row-gap: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    flex-wrap: nowrap;
  }

  .invite-flow-nav:has(.invite-flow-nav-right) .invite-flow-nav-right {
    display: flex;
    grid-column: 2;
    grid-row: 1;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    min-width: 0;
    flex-wrap: nowrap;
  }

  .invite-flow-nav:has(.invite-flow-nav-right) .invite-flow-btn-back {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    flex-shrink: 0;
    min-width: 0;
    min-height: 44px;
    padding: 10px 4px 10px 0;
  }

  .invite-flow-nav:has(.invite-flow-nav-right) .invite-flow-skip {
    grid-column: auto;
    justify-self: auto;
    flex: 0 1 auto;
    min-width: 0;
    max-width: none;
    min-height: 44px;
    padding: 10px 0;
    white-space: nowrap;
    text-align: center;
  }

  #inviteWindow .invite-flow-nav:has(.invite-flow-nav-right) .invite-flow-nav-right {
    gap: 22px;
  }

  #inviteWindow .invite-flow-nav:has(.invite-flow-nav-right) .invite-flow-skip {
    padding: 10px 12px 10px 0;
  }

  .invite-flow-nav:has(.invite-flow-nav-right) .invite-flow-btn-next {
    grid-column: auto;
    justify-self: auto;
    flex: 0 0 auto;
    min-width: 0;
    max-width: none;
    box-sizing: border-box;
    padding: 11px 18px 10px;
    font-size: 0.748rem;
    letter-spacing: 0.06em;
    white-space: nowrap;
  }

  body.single-cover-bg[data-cover-layout="phone"] #inviteWindow .invite-flow-btn-next,
  body.single-cover-bg[data-cover-layout="tablet-col"] #inviteWindow .invite-flow-btn-next {
    padding: 14px 28px 13px;
    font-size: 0.92rem;
    letter-spacing: 0.1em;
    min-height: 48px;
  }

  .invite-flow-nav:not(:has(.invite-flow-nav-right)) {
    flex-wrap: nowrap;
  }

  #inviteStep4 .invite-flow-field-row,
  #memberInviteStepForm .invite-flow-field-row {
    gap: 8px;
  }

  #inviteStep4 .invite-flow-field-row .invite-flow-field-input {
    font-size: 15px;
    letter-spacing: 0.03em;
  }

  #inviteStep4 .invite-flow-field-row .invite-flow-field-input::placeholder {
    font-size: 13px;
    letter-spacing: 0.02em;
  }

  #inviteStep4 .invite-flow-nav {
    gap: 12px;
  }

  #inviteStep4 .invite-flow-btn-back {
    flex-shrink: 0;
    padding: 10px 4px 10px 0;
  }

  #inviteStep4 #inviteBtnSend.invite-flow-btn-next {
    flex: 0 0 auto;
    margin-left: auto;
    max-width: none;
    white-space: nowrap;
    padding: 11px 16px 10px;
    font-size: 0.748rem;
  }

  body.single-cover-bg[data-cover-layout="phone"] #inviteWindow #inviteBtnSend.invite-flow-btn-next,
  body.single-cover-bg[data-cover-layout="tablet-col"] #inviteWindow #inviteBtnSend.invite-flow-btn-next {
    padding: 14px 24px 13px;
    font-size: 0.92rem;
    letter-spacing: 0.1em;
    min-height: 48px;
  }
}

@media (max-width: 480px) {
  .invite-flow-nav:has(.invite-flow-nav-right) {
    column-gap: 6px;
  }

  .invite-flow-nav:has(.invite-flow-nav-right) .invite-flow-nav-right {
    gap: 8px;
  }

  .invite-flow-nav:has(.invite-flow-nav-right) .invite-flow-skip {
    padding: 10px 0;
  }

  #inviteWindow .invite-flow-nav:has(.invite-flow-nav-right) .invite-flow-nav-right {
    gap: 18px;
  }

  #inviteWindow .invite-flow-nav:has(.invite-flow-nav-right) .invite-flow-skip {
    padding-right: 10px;
  }

  .invite-flow-nav:has(.invite-flow-nav-right) .invite-flow-btn-next {
    padding: 11px 16px 10px;
    font-size: 0.726rem;
    letter-spacing: 0.05em;
  }

  #inviteStep4 #inviteBtnSend.invite-flow-btn-next {
    padding: 11px 14px 10px;
    font-size: 0.726rem;
    letter-spacing: 0.06em;
  }

  body.single-cover-bg[data-cover-layout="phone"] #inviteWindow .invite-flow-btn-next,
  body.single-cover-bg[data-cover-layout="tablet-col"] #inviteWindow .invite-flow-btn-next {
    padding: 14px 24px 13px;
    font-size: 0.92rem;
    letter-spacing: 0.1em;
    min-height: 48px;
  }
}

body.single-cover-bg[data-cover-layout="phone"] #inviteWindow #inviteStep4 .invite-flow-field-row .invite-flow-field-input,
body.single-cover-bg[data-cover-layout="tablet-col"] #inviteWindow #inviteStep4 .invite-flow-field-row .invite-flow-field-input {
  font-size: 18px;
  letter-spacing: 0.03em;
}

body.single-cover-bg[data-cover-layout="phone"] #inviteWindow #inviteStep4 .invite-flow-field-row .invite-flow-field-input::placeholder,
body.single-cover-bg[data-cover-layout="tablet-col"] #inviteWindow #inviteStep4 .invite-flow-field-row .invite-flow-field-input::placeholder {
  font-size: 18px;
  letter-spacing: 0.02em;
}

/* Zahlung Schritt 1: kein Extra-Abstand Fehler-Slot → „Weiter“ (Abstand nur über Fehler-Slot). */
#zahlungRegisterForm .zahlung-register-nav-gap {
  display: block;
  height: 0;
  min-height: 0;
  max-height: 0;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  flex: 0 0 0;
  overflow: hidden;
  pointer-events: none;
}

#zahlungRegisterForm .invite-flow-nav.zahlung-register-nav {
  margin-top: 0;
  padding-top: 0;
}

/* Info-Embed #zahlung: Panel wie #inviteWindowPanel (nur Optik). */
html.is-embed #zahlungInviteOk.closing-panel,
html.is-embed #zahlungInviteInvalid.closing-panel {
  --invite-panel-frost-blur: 10px;
  border: 1px solid rgba(var(--purple-rgb), 0.22);
  background:
    radial-gradient(circle at 82% 10%, rgba(var(--purple-rgb), 0.24), transparent 46%),
    radial-gradient(circle at 12% 90%, rgba(var(--purple-rgb), 0.11), transparent 52%),
    linear-gradient(168deg, rgba(var(--white-rgb), 0.17) 0%, rgba(var(--white-rgb), 0.06) 52%),
    linear-gradient(152deg, rgba(var(--purple-rgb), 0.08), rgba(34, 26, 46, 0.2));
  box-shadow:
    inset 0 1px 0 rgba(var(--white-rgb), 0.16),
    inset 0 0 0 1px rgba(var(--purple-rgb), 0.07),
    0 16px 40px rgba(10, 6, 18, 0.14);
  -webkit-backdrop-filter: blur(var(--invite-panel-frost-blur)) saturate(1.12);
  backdrop-filter: blur(var(--invite-panel-frost-blur)) saturate(1.12);
}

html.is-embed #zahlungInviteOk .zahlung-invite-step-eyebrow.eyebrow {
  color: color-mix(in srgb, var(--purple) 65%, white 35%) !important;
  font-weight: 500 !important;
  font-synthesis: weight;
  letter-spacing: 0.2em;
  text-shadow: none !important;
}

html.is-embed #zahlungInviteOk .closing-copy {
  color: rgba(var(--white-rgb), 0.9);
  font-family: var(--font);
  font-size: calc(13px * 1.3);
  font-weight: 300;
  letter-spacing: 0.08em;
  line-height: 1.75;
}

html.is-embed #zahlungInviteOk .zahlung-register-email.closing-copy {
  color: rgba(var(--white-rgb), 0.9);
}

html.is-embed #zahlungInviteOk .zahlung-checkout-message {
  color: rgba(var(--white-rgb), 0.9);
}

html.is-embed #zahlungInviteOk .closing-action .primary-cta {
  min-height: 44px;
  padding: 12px 28px 11px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

html.is-embed #zahlungInviteOk .closing-action .primary-cta::before {
  display: none;
}

html.is-embed #zahlungInviteInvalid .closing-action .primary-cta {
  min-height: 44px;
  padding: 12px 28px 11px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

html.is-embed #zahlungInviteInvalid .closing-action .primary-cta::before {
  display: none;
}

html.is-embed.is-parent-phone #zahlungRegisterForm .invite-flow-field-row,
html.is-embed.is-parent-phone #zahlungRegisterForm .invite-flow-field-row .invite-flow-field-input,
html.is-embed.is-parent-phone #zahlungRegisterForm .invite-flow-field-row .invite-flow-field-input::placeholder {
  font-size: 18px;
  letter-spacing: 0.03em;
}

html.is-embed.is-parent-phone #zahlungRegisterForm .invite-flow-field-row {
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  margin-bottom: 10px;
}

html.is-embed.is-parent-phone #zahlungRegisterForm .invite-flow-field-row .invite-flow-field-wrap {
  flex: 0 0 auto;
  width: 100%;
  margin-bottom: 10px;
}

html.is-embed.is-parent-phone #zahlungRegisterForm .invite-flow-field-row .invite-flow-field-wrap:last-child {
  margin-bottom: 0;
}

html.is-embed.is-parent-phone #zahlungInviteOk .invite-flow-btn-next,
html.is-embed.is-parent-tablet-col #zahlungInviteOk .invite-flow-btn-next {
  padding: 14px 28px 13px;
  font-size: 0.92rem;
  letter-spacing: 0.1em;
  min-height: 48px;
}
