/* Nolia – Warteliste (Preview-Phase) · 3Designs · v1 (2026-08-16)
   Gemeinsames Wartelisten-Element: Modal (JS-injiziert) + Inline-Sektion (#join).
   Origami-Regeln: Schnittkanten, ein Licht oben links, keine Kreise, kein Blur. */

/* Preview-Chip in der Nav */
.preview-chip {
  display: inline-block;
  font:
    700 11px 'Space Grotesk',
    Inter,
    sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6b5a1e;
  background: var(--sonne, #fff1c9);
  border: 1px solid var(--sonne-mid, #f7dd8f);
  border-radius: 2px;
  padding: 4px 9px;
  white-space: nowrap;
}
@media (max-width: 760px) {
  .preview-chip {
    display: none;
  }
}

/* Formular (Modal + Inline identisch) */
.wl2-form {
  display: grid;
  gap: 16px;
  text-align: left;
}
.wl2-form label.fl {
  display: block;
  font:
    600 13.5px Inter,
    sans-serif;
  color: var(--ink, #1e2b36);
  margin-bottom: 7px;
}
.wl2-form input[type='email'],
.wl2-form select {
  width: 100%;
  border: 1px solid var(--line, #ece9e2);
  border-radius: var(--cut, 3px);
  padding: 13px 14px;
  font:
    500 15px Inter,
    sans-serif;
  color: var(--ink, #1e2b36);
  background: #fff;
}
.wl2-form input:focus,
.wl2-form select:focus {
  outline: 2px solid var(--azur, #3fa9e8);
  outline-offset: 1px;
}
.wl2-form .hint {
  font-size: 12.5px;
  color: var(--muted, #7a828b);
  margin-top: 6px;
  line-height: 1.55;
}
.wl2-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.wl2-chips input[type='radio'],
.wl2-chips input[type='checkbox'] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.wl2-chips label {
  cursor: pointer;
  font:
    600 13px Inter,
    sans-serif;
  color: var(--ink, #1e2b36);
  border: 1.6px solid var(--line, #ece9e2);
  border-radius: var(--cut, 3px);
  padding: 8px 12px;
  background: #fff;
  transition:
    border-color 0.12s ease,
    background 0.12s ease;
}
.wl2-chips input:checked + label {
  border-color: var(--azur, #3fa9e8);
  background: var(--himmel, #e0f2ff);
  color: var(--azur-deep, #2e86bd);
}
.wl2-chips input:focus-visible + label {
  outline: 2px solid var(--azur, #3fa9e8);
  outline-offset: 2px;
}
.wl2-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  color: #38434e;
  line-height: 1.6;
}
.wl2-consent input {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  accent-color: var(--azur, #3fa9e8);
}
.wl2-err {
  display: none;
  font:
    600 13.5px Inter,
    sans-serif;
  color: var(--coral-deep, #e06b3d);
  border: 1px solid var(--peach, #ffdcc7);
  background: #fff7f2;
  border-radius: var(--cut, 3px);
  padding: 10px 12px;
}
.wl2-ok {
  display: none;
  background: var(--mint, #e2f7eb);
  border: 1px solid var(--mint-mid, #b9e4cd);
  border-radius: var(--cut, 3px);
  padding: 26px;
}
.wl2-ok h3 {
  margin: 0 0 8px;
}
.wl2-ok p {
  margin: 0;
  font-size: 15px;
  color: #2c3a45;
}

/* Modal */
.wl2-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(30, 43, 54, 0.5);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 4vh 16px;
  overflow-y: auto;
}
.wl2-overlay[hidden] {
  display: none;
}
.wl2-dialog {
  position: relative;
  background: #fff;
  border: 1px solid var(--line, #ece9e2);
  border-radius: var(--cut, 3px);
  box-shadow:
    0 2px 0 rgba(30, 43, 54, 0.05),
    0 34px 64px -40px rgba(30, 43, 54, 0.42);
  width: min(560px, 100%);
  padding: clamp(24px, 4vw, 36px);
  margin: auto 0;
}
/* Eselsohr der Karte (eine umgeschlagene Ecke, Rückseite dunkler) */
.wl2-dialog::after {
  content: '';
  position: absolute;
  top: -1px;
  right: -1px;
  width: 30px;
  height: 30px;
  background: linear-gradient(
    135deg,
    #fff 0 50%,
    rgba(30, 43, 54, 0.16) 50% 100%
  );
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}
.wl2-close {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 2;
  appearance: none;
  border: none;
  background: transparent;
  cursor: pointer;
  font:
    400 26px/1 'Space Grotesk',
    sans-serif;
  color: var(--muted, #7a828b);
  padding: 6px;
}
.wl2-close:hover {
  color: var(--ink, #1e2b36);
}
.wl2-close:focus-visible {
  outline: 2px solid var(--azur, #3fa9e8);
  outline-offset: 2px;
}
.wl2-eyebrow {
  font:
    700 12.5px 'Space Grotesk',
    sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--azur-deep, #2e86bd);
  margin-bottom: 12px;
}
.wl2-dialog h3 {
  font-family: 'Space Grotesk', Inter, sans-serif;
  font-size: 24px;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.wl2-sub {
  font-size: 15px;
  color: #38434e;
  line-height: 1.6;
  margin: 0 0 18px;
}
body.wl2-open {
  overflow: hidden;
}
@media (prefers-reduced-motion: no-preference) {
  .wl2-dialog {
    transform-origin: top center;
    animation: wl2unfold 0.32s cubic-bezier(0.2, 0.7, 0.2, 1);
  }
  @keyframes wl2unfold {
    from {
      opacity: 0;
      transform: perspective(900px) rotateX(-7deg) translateY(14px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
}

/* Inline-Sektion (#join) */
.wl2-inline {
  background: #fff;
  border: 1px solid var(--line, #ece9e2);
  border-radius: var(--cut, 3px);
  box-shadow:
    0 1px 0 rgba(30, 43, 54, 0.06),
    0 10px 22px -20px rgba(30, 43, 54, 0.25);
  padding: clamp(24px, 4vw, 40px);
  max-width: 640px;
  margin: 0 auto;
}
