@font-face {
  font-family: Bricolage;
  src: url(assets/bricolage.woff2) format('woff2');
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: DM;
  src: url(assets/dm-regular.woff2) format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: DM;
  src: url(assets/dm-medium.woff2) format('woff2');
  font-weight: 500;
  font-display: swap;
}
:root {
  --beige: #f5f0e4;
  --deep: #202c25;
  --olive: #354333;
  --lemon: #e6ef57;
  --muted: #606a51;
  --sand: #e7e2d6;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}
* {
  box-sizing: border-box;
}
html {
  background: var(--beige);
  scrollbar-color: var(--olive) var(--beige);
}
body {
  margin: 0;
  color: var(--deep);
  font:
    400 16px/1.5 DM,
    sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
p,
figure {
  margin: 0;
}
button,
input {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
button,
input {
  touch-action: manipulation;
}
button {
  border: 0;
}
button:disabled {
  cursor: default;
  opacity: 0.55;
}
svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--olive);
  outline-offset: 4px;
}
h1:focus,
legend:focus {
  outline: none;
}
[hidden] {
  display: none !important;
}
::selection {
  background: var(--lemon);
  color: var(--deep);
}
.screen {
  width: 100%;
}
.screen h1 {
  font:
    450 clamp(50px, 4.6vw, 80px)/1.01 Bricolage,
    sans-serif;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.intro {
  font-size: 16px;
  line-height: 1.55;
  color: var(--olive);
  margin-top: 22px;
  max-width: 380px;
}
.email-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 8px;
}
#waitlist-form {
  margin-top: 30px;
}
input[type="email"],
input[type="text"] {
  width: 100%;
  border: 1px solid #35433366;
  border-radius: 10px;
  background: #fffdf66e;
  height: 56px;
  padding: 0 16px;
  font-size: 16px;
  box-shadow: none;
}
input::placeholder {
  color: #727766;
}
input:user-invalid {
  border-color: #a13e32;
}
.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--muted);
  margin: 16px 0 23px;
  cursor: pointer;
}
.consent input {
  appearance: none;
  flex: none;
  width: 18px;
  height: 18px;
  border: 1px solid #66705e;
  border-radius: 4px;
  margin: 1px 0 0;
  display: grid;
  place-content: center;
  background: transparent;
}
.consent input:checked {
  background: var(--olive);
  border-color: var(--olive);
}
.consent input:checked::after {
  content: "";
  width: 8px;
  height: 4px;
  transform: translateY(-1px) rotate(-45deg);
  border-left: 2px solid var(--beige);
  border-bottom: 2px solid var(--beige);
}
.text-link {
  background: transparent;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: inherit;
  line-height: inherit;
}
.primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  min-height: 56px;
  width: 100%;
  padding: 14px 20px;
  border-radius: 10px;
  background: var(--lemon);
  font-size: 15px;
  font-weight: 500;
  transition: background 0.18s;
}
.primary svg {
  flex: none;
}
.primary:hover {
  background: #dce743;
}
.confirmation-mark {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--lemon);
  margin-bottom: 24px;
}
.confirmation-mark svg {
  width: 30px;
  height: 30px;
}
.screen > .primary {
  margin-top: 30px;
}
.secondary {
  display: block;
  /* Also used on the closing link, which would otherwise take the browser's
     default link colour and stretch across the full width. */
  width: fit-content;
  color: inherit;
  min-height: 44px;
  padding: 10px 12px;
  margin: 10px auto 0;
  background: transparent;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.question-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 10px;
}
.progress {
  display: flex;
  gap: 5px;
  margin-bottom: 25px;
}
.progress span {
  flex: 1;
  height: 3px;
  background: var(--sand);
  border-radius: 3px;
}
.progress span.complete {
  background: var(--olive);
}
fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
legend {
  font:
    450 36px/1.1 Bricolage,
    sans-serif;
  letter-spacing: -0.035em;
  padding: 0;
  width: 100%;
}
.options {
  margin-top: 22px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}
.option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 13px 12px;
  min-height: 54px;
  border: 1px solid #35433345;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.3;
  cursor: pointer;
}
.option:has(input:checked) {
  background: var(--lemon);
  border-color: var(--olive);
}
.option:has(input:focus-visible) {
  outline: 3px solid var(--olive);
  outline-offset: 3px;
}
.option input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--olive);
  flex: none;
}
.option input:focus-visible {
  outline: none;
}
.option:hover {
  border-color: var(--olive);
}
#other-interest {
  margin-top: 14px;
}
#preferences-form > .primary {
  margin-top: 24px;
}
.question-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  font-size: 12px;
}
.question-actions button {
  min-height: 40px;
  padding: 0 3px;
}
.restart {
  margin: 24px 0 0;
  padding-left: 0;
}
.form-error {
  /* Deep red on the beige ground: measured 7.4:1, well past the 4.5:1 needed. */
  color: #8c2b1c;
  font-size: 14px;
  line-height: 1.5;
  margin-top: 14px;
}
.no-script {
  font-size: 13px;
  margin-top: 15px;
}
dialog {
  width: calc(100% - 32px);
  max-width: 450px;
  border: 1px solid #35433345;
  background: var(--beige);
  color: var(--deep);
  border-radius: 22px;
  padding: 28px;
}
dialog::backdrop {
  background: #202c2566;
  backdrop-filter: blur(5px);
}
dialog h2 {
  font:
    450 30px/1.1 Bricolage,
    sans-serif;
  letter-spacing: -0.03em;
}
dialog p {
  font-size: 14px;
  margin: 18px 0;
}
dialog .primary {
  margin-top: 24px;
}

/* Independent studies from ISO Meet, Telescope, yope and Superlist references. */
.wordmark {
  display: block;
  width: 118px;
  height: 46px;
  background: var(--deep);
  mask: url(assets/logo-beige.svg) center/contain no-repeat;
}
.study-header {
  position: relative;
  z-index: 5;
}
.screen {
  width: 100%;
}
.form-side {
  position: relative;
  z-index: 4;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.art-photo {
  position: absolute;
  overflow: hidden;
  box-shadow: 0 18px 50px #20382922;
  border-radius: 7px;
}
.art-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.art-surf img {
  object-position: center 68%;
}
.art-villa img {
  object-position: center 48%;
}
.art-friends img {
  object-position: center 42%;
}

/* 05 — a travel memory wall and a compact signup dock. */
/* 06 — an invitation on a physical stack, with a photo carousel. */
.invitation {
  width: min(640px, 100%);
  position: relative;
  z-index: 3;
  margin: auto;
  background: #fffdf5;
  border-radius: 20px;
  box-shadow: 0 28px 70px #24382b26;
  overflow: hidden;
}
[data-deck-prev] svg {
  transform: rotate(180deg);
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .art-photo {
    transition:
      translate 0.6s var(--ease),
      rotate 0.6s var(--ease),
      scale 0.6s var(--ease);
  }
}
@media (max-width: 760px) {
  .wordmark {
    width: 98px;
    height: 38px;
  }
  .screen h1 {
    font-size: 42px;
    line-height: 1.03;
  }
  .intro {
    font-size: 14px;
    line-height: 1.5;
  }
  .primary {
    min-height: 53px;
    font-size: 14px;
  }
  .email-label {
    font-size: 12px;
  }
  input[type="email"] {
    height: 53px;
  }
  .consent {
    font-size: 11px;
    margin: 14px 0 19px;
  }
  legend {
    font-size: 31px;
  }
  .option {
    font-size: 12px;
    padding: 11px;
    min-height: 50px;
  }
  .options {
    gap: 8px;
  }
}
@media (max-width: 360px) {
  .screen h1 {
    font-size: 37px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* 04 — responsive photographic composition; the centre stays clear. */
.waitlist-page .waitlist-box {
  position: relative;
  isolation: isolate;
  min-height: max(740px, var(--page-vh));
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 28px 48px;
  overflow: hidden;
}
.waitlist-page .study-header {
  display: flex;
  justify-content: center;
  flex: none;
  margin: 0 0 44px;
}
.waitlist-page .form-side {
  width: min(520px, 100%);
  margin: auto;
  text-align: center;
}
.waitlist-page .screen h1 {
  font-size: clamp(54px, 4.5vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.05em;
}
.waitlist-page .intro {
  max-width: 380px;
  margin: 22px auto 0;
}
.waitlist-page #waitlist-form {
  max-width: 370px;
  margin: 28px auto 0;
  text-align: left;
}
.waitlist-page .primary {
  border-radius: 999px;
}
.waitlist-page input[type="email"] {
  border-radius: 999px;
  background: #fffdf5;
}
.waitlist-page .screen:not(#signup-screen) {
  max-width: 460px;
  margin: auto;
  text-align: left;
}
.waitlist-page .screen:not(#signup-screen) .intro {
  margin-left: 0;
}
.orbit-art {
  position: absolute;
  inset: 0;
  max-width: 1680px;
  margin: auto;
  pointer-events: none;
  z-index: -1;
}
.orbit-art .art-photo {
  pointer-events: auto;
}
.orbit-art .art-surf {
  width: clamp(200px, 19vw, 305px);
  height: clamp(260px, 25vw, 390px);
  left: 2%;
  top: 30%;
  transform: rotate(-8deg);
  z-index: 4;
}
.orbit-art .art-villa {
  width: clamp(170px, 15vw, 240px);
  height: clamp(220px, 20vw, 310px);
  right: 4%;
  top: 7%;
  transform: rotate(7deg);
}
.orbit-art .art-friends {
  width: clamp(160px, 14vw, 210px);
  height: clamp(170px, 15vw, 225px);
  right: 2%;
  top: 46%;
  transform: rotate(-6deg);
  z-index: 2;
}
.orbit-art .art-hike {
  width: clamp(150px, 13vw, 195px);
  height: clamp(175px, 16vw, 230px);
  left: 12%;
  bottom: 4%;
  transform: rotate(6deg);
  z-index: 2;
}
.orbit-art .art-lunch {
  width: clamp(160px, 14vw, 215px);
  height: clamp(120px, 10vw, 160px);
  left: 11%;
  top: 7%;
  transform: rotate(-5deg);
}
.orbit-art .art-dinner {
  width: clamp(180px, 16vw, 245px);
  height: clamp(135px, 12vw, 180px);
  right: 11%;
  bottom: 4%;
  transform: rotate(5deg);
  z-index: 3;
}
.orbit-art .art-hike img {
  object-position: center 62%;
}
.orbit-art .art-dinner img {
  object-position: center 48%;
}
@media (min-width: 1180px) and (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .orbit-art .art-photo:hover {
    translate: 0 -10px;
    rotate: 2deg;
    scale: 1.035;
  }
}
/* Compact desktop composition for larger tablets; no intermediate collage. */
@media (min-width: 811px) and (max-width: 1179px) {
  .waitlist-page .waitlist-box {
    padding: 28px 24px 40px;
  }
  .waitlist-page .wordmark {
    width: 108px;
    height: 42px;
  }
  .waitlist-page .form-side {
    width: min(440px, calc(100% - 300px));
  }
  .waitlist-page .screen h1 {
    font-size: clamp(42px, 5vw, 56px);
    line-height: 1.04;
  }
  .waitlist-page #waitlist-form {
    max-width: 330px;
  }
  .orbit-art .art-surf {
    left: 1.5%;
    top: 31%;
    width: clamp(140px, 17vw, 195px);
    height: clamp(185px, 23vw, 265px);
  }
  .orbit-art .art-villa {
    right: 4%;
    top: 9%;
    width: clamp(140px, 16vw, 180px);
    height: clamp(185px, 21vw, 240px);
  }
  .orbit-art .art-friends {
    right: 1.5%;
    top: 46%;
    width: clamp(130px, 15vw, 170px);
    height: clamp(145px, 17vw, 195px);
  }
  .orbit-art .art-hike {
    left: 9%;
    bottom: 7%;
    width: clamp(125px, 14vw, 155px);
    height: clamp(155px, 18vw, 205px);
  }
  .orbit-art .art-lunch {
    left: 8%;
    top: 8%;
    width: clamp(130px, 15vw, 175px);
    height: clamp(100px, 11vw, 130px);
  }
  .orbit-art .art-dinner {
    right: 7%;
    bottom: 6%;
    width: clamp(145px, 16vw, 185px);
    height: clamp(110px, 12vw, 140px);
  }
}

/* Phones and smaller tablets use the villa hero, including touch landscape. */
@media (max-width: 810px),
  (max-width: 1180px) and (max-height: 810px) and (pointer: coarse) {
  .waitlist-page .waitlist-box {
    display: block;
    min-height: var(--page-vh);
    padding: 0;
    overflow: hidden;
  }
  .waitlist-page .study-header {
    position: absolute;
    inset: 0 0 auto;
    z-index: 5;
    justify-content: flex-start;
    margin: 0;
    padding: max(24px, env(safe-area-inset-top))
      max(24px, env(safe-area-inset-right)) 0
      max(24px, env(safe-area-inset-left));
    pointer-events: none;
  }
  .waitlist-page .wordmark {
    width: 102px;
    height: 40px;
    background: var(--beige);
  }
  .waitlist-page .orbit-art {
    position: relative;
    inset: auto;
    width: 100%;
    max-width: none;
    height: clamp(230px, 46svh, 460px);
    margin: 0;
    z-index: 0;
    overflow: hidden;
    border-radius: 0 0 20px 20px;
  }
  .waitlist-page .orbit-art .art-photo {
    display: none;
  }
  .waitlist-page .orbit-art .art-villa {
    display: block;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: none;
    translate: none;
    rotate: none;
    scale: none;
    border-radius: 0;
    box-shadow: none;
    pointer-events: none;
  }
  .waitlist-page .orbit-art .art-villa img {
    object-position: center 48%;
  }
  .waitlist-page .orbit-art::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, #0d231d40, transparent 40%);
  }
  .waitlist-page .form-side {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    padding: 28px max(24px, env(safe-area-inset-right))
      max(32px, env(safe-area-inset-bottom))
      max(24px, env(safe-area-inset-left));
    text-align: left;
  }
  .waitlist-page .screen h1 {
    font-size: clamp(33px, 9.3vw, 46px);
    line-height: 1.04;
    letter-spacing: -0.045em;
  }
  .waitlist-page .intro {
    font-size: 14px;
    line-height: 1.5;
    margin: 16px 0 0;
    max-width: 390px;
  }
  .waitlist-page #waitlist-form {
    max-width: none;
    margin: 22px 0 0;
  }
  .waitlist-page .email-label {
    font-size: 12px;
    margin-bottom: 8px;
  }
  .waitlist-page input[type="email"] {
    height: 54px;
    font-size: 16px;
  }
  .waitlist-page .consent {
    font-size: 12px;
    line-height: 1.5;
    gap: 10px;
    margin: 15px 0 20px;
  }
  .waitlist-page .primary {
    min-height: 54px;
    font-size: 14px;
  }
  .waitlist-page legend {
    font-size: 30px;
  }
  .waitlist-page .option {
    font-size: 13px;
    min-height: 52px;
  }
  .waitlist-page .waitlist-box:has(#signup-screen[hidden]) {
    display: block;
  }
  .waitlist-page .waitlist-box:has(#signup-screen[hidden]) .orbit-art {
    display: none;
  }
  .waitlist-page .waitlist-box:has(#signup-screen[hidden]) .study-header {
    position: relative;
    padding-bottom: 0;
  }
  .waitlist-page .waitlist-box:has(#signup-screen[hidden]) .wordmark {
    background: var(--deep);
  }
  .waitlist-page .waitlist-box:has(#signup-screen[hidden]) .form-side {
    margin: 0 auto;
  }
}
@media (max-width: 360px) {
  .waitlist-page .form-side {
    padding: 24px 20px 28px;
  }
  .waitlist-page .study-header {
    padding: 20px 20px 0;
  }
  .waitlist-page .wordmark {
    width: 94px;
    height: 37px;
  }
}

.return-link {
  pointer-events: auto;
  position: fixed;
  right: 24px;
  left: auto;
  top: 24px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: var(--beige);
  color: var(--deep);
  border-radius: 50%;
  z-index: 10;
}
.return-link svg {
  transform: rotate(180deg);
}
.return-link:focus-visible {
  outline: 3px solid var(--olive);
  outline-offset: 3px;
}

/* --- Desktop-Skalierung (page-scale.js). Mobil unverändert. --- */
:root {
  --page-vw: 100vw;
  --page-vh: 100svh;
}
@media (min-width: 1471px) {
  :root {
    --page-vw: var(--vw-js, 100vw);
    --page-vh: var(--vh-js, 100svh);
  }
  body {
    zoom: var(--page-scale, 1);
  }
}

/* Native format selection without changing the existing image layout. */
picture.responsive-image { display: contents; }

.waitlist-legal {
  display: flex;
  justify-content: center;
  gap: 24px;
  padding: 28px var(--gutter, 24px) 32px;
  font-size: 13px;
  color: var(--muted);
}
.waitlist-legal a {
  color: inherit;
  min-height: 44px;
  display: flex;
  align-items: center;
  text-decoration: underline;
  text-underline-offset: 4px;
}
