/* Shared by all pages: tokens, type, header, menu, buttons, FAQ, footer. */
@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;
  --gutter: clamp(24px, 5vw, 80px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}
* {
  box-sizing: border-box;
}
html {
  background: var(--beige);
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
  scrollbar-color: var(--olive) var(--beige);
}
body {
  margin: 0;
  background: var(--beige);
  color: var(--deep);
  font:
    400 16px/1.55 DM,
    sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3,
p,
figure {
  margin: 0;
}
h1,
h2,
h3 {
  font-family: Bricolage, sans-serif;
  font-weight: 450;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
h2 {
  font-size: clamp(40px, 4.8vw, 64px);
  line-height: 1.06;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
button,
input,
select {
  font: inherit;
  color: inherit;
}
button,
a,
input,
select,
summary {
  touch-action: manipulation;
}
button,
summary {
  cursor: pointer;
}
fieldset {
  border: 0;
  padding: 0;
  margin: 0;
}
button {
  border: 0;
}
svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
::selection {
  background: var(--lemon);
  color: var(--deep);
}
:focus-visible {
  outline: 3px solid var(--olive);
  outline-offset: 5px;
}
input {
  caret-color: var(--olive);
}
[hidden] {
  display: none !important;
}
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  z-index: 30;
  background: var(--lemon);
  padding: 14px;
  top: 10px;
  left: 10px;
  transform: translateY(-160%);
}
.skip-link:focus {
  transform: none;
}
.site-header {
  position: fixed;
  top: 18px;
  left: 0;
  right: 0;
  z-index: 20;
  pointer-events: none;
  padding-inline: var(--gutter);
}
.site-header > nav {
  max-width: 1280px;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}
.site-header nav > a,
.site-header nav > button {
  pointer-events: auto;
}
.brand {
  position: relative;
  display: block;
  width: 115px;
  min-height: 46px;
}
.brand::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--deep);
  mask: url(assets/logo-beige.svg) center/96px auto no-repeat;
  pointer-events: none;
}
.site-header .brand {
  margin-right: auto;
  background: var(--beige);
  border-radius: 12px;
}
.header-invite,
.menu-trigger,
.nav-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 46px;
  padding: 10px 19px;
  border: 0;
  border-radius: 30px;
  font-size: 14px;
  background: var(--beige);
  transition: background 0.2s;
}
.header-invite {
  background: var(--lemon);
}
.header-invite:hover {
  background: #dce743;
}
.menu-trigger:hover,
.nav-fallback:hover {
  background: var(--sand);
}
/* The menu unfolds from its trigger; the page stays in place behind it. */
body.menu-open {
  overflow: hidden;
}
body.menu-open > .footer-curtain,
body.menu-open > main,
body.menu-open > .site-header,
body.menu-open > .site-footer {
  filter: blur(5px);
}
#navigation-panel {
  position: fixed;
  inset: 18px max(24px, calc((var(--page-vw) - 1280px) / 2)) auto auto;
  width: 460px;
  height: min(560px, calc(var(--page-vh) - 36px));
  max-width: calc(var(--page-vw) - 48px);
  max-height: calc(var(--page-vh) - 36px);
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--beige);
  color: var(--deep);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 18px 65px rgb(32 44 37 / 13%);
}
#navigation-panel::backdrop {
  background: rgb(32 44 37 / 12%);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}
.menu-surface {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 22px;
  position: relative;
}
.menu-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: var(--olive);
  color: var(--beige);
  border-radius: 50%;
  z-index: 2;
}
.menu-close:hover {
  background: var(--deep);
}
.menu-close:focus-visible {
  outline-offset: 4px;
}
.menu-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-top: 100px;
  padding-bottom: 24px;
}
.menu-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.menu-link {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 68px;
  gap: 12px;
  padding: 7px 14px;
  background: transparent;
  border-radius: 12px;
  text-align: left;
  transition:
    background-color 0.22s ease,
    color 0.22s ease;
}
.menu-link-window {
  display: block;
  font:
    450 40px/1.25 Bricolage,
    sans-serif;
  letter-spacing: -0.035em;
  white-space: nowrap;
  transition: transform 0.28s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.menu-link > svg {
  margin-left: auto;
  flex: none;
  opacity: 0;
  transform: translateX(-6px);
  transition:
    opacity 0.2s ease,
    transform 0.28s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.menu-link[aria-current="page"] {
  color: var(--olive);
  background: var(--sand);
}
.menu-link:focus-visible {
  background: var(--sand);
  color: var(--olive);
  outline-offset: -2px;
}
.menu-link:focus-visible .menu-link-window {
  transform: translateX(5px);
}
.menu-link:focus-visible > svg {
  opacity: 1;
  transform: translateX(0);
}
@media (hover: hover) and (pointer: fine) {
  .menu-link:hover {
    background: var(--sand);
    color: var(--olive);
  }
  .menu-link:hover .menu-link-window {
    transform: translateX(5px);
  }
  .menu-link:hover > svg {
    opacity: 1;
    transform: translateX(0);
  }
}
.menu-join {
  flex-shrink: 0;
  width: 100%;
  justify-content: space-between;
  min-height: 54px;
}
.menu-trigger svg {
  transition: rotate 0.25s;
}
.menu-trigger[aria-expanded="true"] svg {
  rotate: 45deg;
}
.opening {
  padding: 151px var(--gutter) 0;
  max-width: 1600px;
  margin: auto;
}
.opening h1 {
  font-size: clamp(56px, 6.5vw, 88px);
  line-height: 1.01;
}
.opening h1 span {
  display: block;
}
.primary-action {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  min-height: 52px;
  padding: 14px 23px;
  border: 0;
  border-radius: 12px;
  background: var(--lemon);
  font-weight: 500;
  font-size: 15px;
  transition: background 0.2s;
}
.primary-action:hover {
  background: #dce743;
}
.faq-list details[data-expanded="false"] .toggle-icon {
  transform: rotate(0);
}
.faq-list details[data-expanded="true"] .toggle-icon {
  transform: rotate(45deg);
}
.toggle-icon {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  background:
    linear-gradient(currentColor, currentColor) center/14px 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center/1.5px 14px no-repeat;
  transition: transform 0.25s;
}
details[open] > summary .toggle-icon {
  transform: rotate(45deg);
}
.faq-list {
  display: grid;
  gap: 8px;
}
.faq-list details {
  background: var(--sand);
  border-radius: 12px;
}
.faq-list summary {
  padding: 20px 23px;
  min-height: 68px;
}
.faq-list summary:hover {
  color: var(--olive);
}
.faq-list summary:focus-visible {
  outline-offset: -4px;
}
summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 70px;
  padding: 21px 0;
  font-size: 17px;
  line-height: 1.4;
}
summary::-webkit-details-marker {
  display: none;
}
.faq-list p {
  font-size: 15px;
  max-width: 65ch;
  padding: 0 58px 24px 23px;
  color: var(--olive);
}
.site-footer {
  max-width: 1280px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  padding: 24px var(--gutter);
}
.site-footer p {
  font-size: 14px;
}
.site-footer > a:not(.brand) {
  font-size: 13px;
  padding: 15px 0;
  text-decoration: underline;
  text-underline-offset: 5px;
}

@media (max-width: 760px) {
  :root {
    --gutter: 24px;
  }
  .site-header {
    top: 12px;
    padding-inline: 12px;
  }
  .site-header nav {
    gap: 6px;
  }
  .header-invite,
  .menu-trigger,
  .nav-fallback {
    padding-inline: 14px;
    font-size: 12px;
  }
  .brand {
    width: 90px;
  }
  .brand::after {
    mask-size: 78px auto;
  }
  #navigation-panel {
    inset: 12px 12px auto auto;
    width: calc(100vw - 24px);
    max-width: none;
    height: calc(100dvh - 24px);
    max-height: calc(100dvh - 24px);
    border-radius: 20px;
  }
  .menu-surface {
    padding: 18px;
  }
  .menu-scroll {
    padding-top: 100px;
  }
  .menu-link-window {
    font-size: clamp(28px, 8.4vw, 40px);
  }
  .menu-link {
    padding-inline: 12px;
  }
  .menu-close {
    top: 12px;
    right: 12px;
  }
  .opening {
    padding-top: 133px;
  }
  .opening h1 {
    font-size: clamp(43px, 8.4vw, 62px);
    line-height: 1.06;
  }
  .faq-list summary {
    font-size: 16px;
    padding: 18px;
    gap: 18px;
  }
  .faq-list p {
    padding: 0 42px 22px 18px;
  }
  .site-footer {
    flex-wrap: wrap;
    gap: 12px;
  }
  .site-footer p {
    order: 3;
    width: 100%;
    font-size: 13px;
  }
}
@media (max-width: 370px) {
  .site-header .brand {
    width: 76px;
  }
  .header-invite,
  .menu-trigger {
    padding-inline: 12px;
  }
  .nav-fallback {
    font-size: 11px;
    padding-inline: 8px;
  }
  .opening h1 {
    font-size: 39px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-height: 600px) {
  .menu-scroll {
    padding-top: 52px;
  }
  .menu-link {
    min-height: 48px;
  }
  .menu-link-window {
    font-size: 30px;
  }
}
@media (prefers-reduced-motion: reduce) {
  body.menu-open > .footer-curtain,
  body.menu-open > main,
  body.menu-open > .site-header,
  body.menu-open > .site-footer {
    filter: none;
  }
  #navigation-panel::backdrop {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .menu-link,
  .menu-link-window,
  .menu-link > svg {
    transition: none;
  }
  .menu-link-window,
  .menu-link > svg {
    transform: none !important;
  }
}

/* Typographic directory: navigation is the visual identity of the page ending. */
.site-footer.footer-directory {
  display: block;
  max-width: none;
  margin: 0;
  padding: 30px var(--gutter) 24px;
  background: var(--olive);
  color: var(--beige);
}
.footer-inner {
  max-width: 1288px;
  margin: auto;
}
.footer-return {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  min-height: 44px;
  white-space: nowrap;
}
.footer-pages {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr 1.5fr 1.1fr;
}
.footer-pages a {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
  min-height: 88px;
  padding: 16px 24px;
  font:
    450 clamp(27px, 3vw, 40px)/1.12 Bricolage,
    sans-serif;
  letter-spacing: -0.045em;
}
.footer-pages a:first-child {
  padding-left: 0;
}
.footer-pages a:last-child {
  padding-right: 0;
}
.footer-pages a > span {
  position: relative;
  white-space: nowrap;
}
/* A curved stroke is drawn left to right, matching the house selector. */
.footer-underline {
  position: absolute;
  z-index: -1;
  left: -2px;
  bottom: -0.08em;
  width: calc(100% + 5px);
  height: 0.24em;
  overflow: visible;
  pointer-events: none;
}
.footer-underline path {
  fill: none;
  stroke: var(--lemon);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  opacity: 0;
  transition: opacity 0.14s ease;
}
.footer-pages a > svg {
  width: 20px;
  height: 20px;
  flex: none;
  opacity: 0.65;
  transition:
    transform 0.28s cubic-bezier(0.2, 0.7, 0.2, 1),
    opacity 0.2s ease;
}
.footer-pages a[aria-current="page"] .footer-underline path,
.footer-pages a:focus-visible .footer-underline path {
  stroke-dashoffset: 0;
  opacity: 1;
  transition: stroke-dashoffset 0.42s cubic-bezier(0.3, 0.1, 0.4, 1), opacity 0.1s;
}
.footer-pages a:focus-visible > svg {
  opacity: 1;
  transform: translate(2px, -2px);
}
.footer-contact {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-top: 22px;
  padding-bottom: 12px;
}
.footer-utilities {
  display: flex;
  align-items: center;
  gap: 32px;
}
.footer-email {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-size: 17px;
  text-decoration: underline;
  text-decoration-color: rgb(245 240 228 / 40%);
  text-underline-offset: 5px;
}
.footer-socials {
  display: flex;
  gap: 4px;
}
.footer-socials a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  transition: background-color 0.2s ease;
}
.footer-socials svg {
  width: 21px;
  height: 21px;
}
.footer-socials .social-filled,
.footer-socials .social-dot {
  fill: currentColor;
  stroke: none;
}
.footer-socials a:is(:hover, :focus-visible) {
  background: rgb(245 240 228 / 12%);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px 24px;
}
.footer-directory .footer-bottom p {
  margin: 0;
  width: auto;
  order: 0;
  flex: none;
  color: #d7dbd0;
  font-size: 13px;
}
.footer-legal {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0 22px;
}
.footer-legal a {
  display: flex;
  align-items: center;
  min-height: 40px;
  font-size: 13px;
  color: #d7dbd0;
}
.footer-email:is(:hover, :focus-visible),
.footer-legal a:is(:hover, :focus-visible) {
  text-decoration: underline;
  text-decoration-color: currentColor;
  text-underline-offset: 4px;
}
.footer-directory a:focus-visible {
  outline: 2px solid var(--lemon);
  outline-offset: 4px;
}
.footer-pages a:focus-visible {
  outline-offset: -5px;
}
.footer-return:focus-visible svg {
  transform: translateY(-3px);
}
@media (hover: hover) and (pointer: fine) {
  .footer-pages a:hover .footer-underline path {
    stroke-dashoffset: 0;
    opacity: 1;
    transition: stroke-dashoffset 0.42s cubic-bezier(0.3, 0.1, 0.4, 1), opacity 0.1s;
  }
  .footer-pages a:hover > svg {
    opacity: 1;
    transform: translate(2px, -2px);
  }
  .footer-return:hover svg {
    transform: translateY(-3px);
  }
}
@media (max-width: 1100px) and (min-width: 761px) {
  .footer-pages a {
    padding-inline: 18px;
    font-size: clamp(23px, 3vw, 33px);
    gap: 12px;
  }
  .footer-pages a > svg {
    width: 16px;
  }
}
@media (max-width: 760px) {
  .site-footer.footer-directory {
    padding: 24px 24px;
  }
  .footer-pages {
    grid-template-columns: 1fr 1fr;
  }
  .footer-pages a {
    font-size: clamp(23px, 6.4vw, 38px);
    min-height: 72px;
    padding: 18px 0;
    gap: 10px;
  }
  .footer-pages a:nth-child(even) {
    padding-left: 20px;
  }
  .footer-pages a:nth-child(odd) {
    padding-right: 20px;
  }
  .footer-pages a > svg {
    width: 17px;
    height: 17px;
  }
  .footer-pages a:nth-child(3) {
    font-size: clamp(20px, 5.5vw, 32px);
  }
  .footer-contact {
    display: block;
    padding-top: 18px;
    padding-bottom: 14px;
  }
  .footer-email {
    font-size: 16px;
  }
  .footer-utilities {
    justify-content: space-between;
    gap: 16px;
    margin-top: 8px;
  }
  .footer-socials {
    margin-left: -11px;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .footer-legal {
    order: -1;
    justify-content: flex-start;
    gap: 0 18px;
  }
  .footer-legal a {
    min-height: 36px;
  }
}
@media (max-width: 360px) {
  .site-footer.footer-directory {
    padding-inline: 20px;
  }
  .footer-pages a {
    font-size: 25px;
    gap: 6px;
  }
  .footer-pages a:nth-child(3) {
    font-size: 20px;
  }
  .footer-pages a:nth-child(even) {
    padding-left: 14px;
  }
  .footer-pages a:nth-child(odd) {
    padding-right: 14px;
  }
  .footer-pages a > svg {
    width: 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .footer-pages a .footer-underline path,
  .footer-pages a:is([aria-current="page"], :hover, :focus-visible) .footer-underline path,
  .footer-pages a > svg,
  .footer-socials a {
    transition: none;
  }
  .footer-pages a > svg {
    transform: none !important;
  }
}

/* Scroll down to read; a small upward movement brings navigation back. */
.site-header.header-scroll-ready {
  transition:
    transform 0.26s var(--ease),
    opacity 0.2s ease;
  transform: translateY(0);
  opacity: 1;
}
.site-header.header-scroll-ready.header-away {
  transform: translateY(calc(-100% - 28px));
  opacity: 0;
}
.site-header.header-away nav > a,
.site-header.header-away nav > button {
  pointer-events: none;
}
.site-header.header-scroll-ready:has(:focus-visible) {
  transform: translateY(0);
  opacity: 1;
}
.site-header.header-scroll-ready:has(:focus-visible) nav > a,
.site-header.header-scroll-ready:has(:focus-visible) nav > button {
  pointer-events: auto;
}
@media (prefers-reduced-motion: reduce) {
  .site-header.header-scroll-ready {
    transition: none;
  }
}

/* The wordmark belongs to the page opening; only the controls return on scroll. */
.site-header.header-scroll-ready.header-past-top nav > .brand {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}
:root {
  --gutter: clamp(24px, 4.8vw, 76px);
}
.opening {
  max-width: 1440px;
  padding-top: 154px;
}
.opening h1 {
  font-size: clamp(62px, 6.9vw, 100px);
  letter-spacing: -0.055em;
  line-height: 1;
}
.faq-list {
  gap: 0;
}
.faq-list details {
  border-radius: 0;
  background: none;
  border-bottom: 1px solid #35433330;
}
.faq-list summary {
  padding: 22px 0;
}
.faq-list p {
  padding: 0 32px 22px 0;
}
.faq-list summary:focus-visible {
  outline-offset: 3px;
}
@media (max-width: 1000px) {
  .opening h1 {
    font-size: clamp(52px, 6.6vw, 72px);
  }
}
@media (max-width: 760px) {
  .opening {
    padding-top: 122px;
  }
  .opening h1 {
    font-size: clamp(44px, 9.8vw, 66px);
  }
  .faq-list summary {
    font-size: 16px;
    min-height: 70px;
  }
  .faq-list p {
    font-size: 15px;
  }
}
@media (max-width: 370px) {
  .opening h1 {
    font-size: 42px;
  }
}

/* The existing footer sits behind a full-width page surface, revealed by native scroll. */
/* The olive behind the footer lives on the lower half of the page canvas only. Painting it on
   <body> made iOS Safari tint the status bar and the bounce area above the header olive. */
html:has(body.footer-reveal-ready) {
  background: linear-gradient(var(--beige) 0 50%, var(--olive) 50% 100%) var(--beige);
}
body.footer-reveal-ready {
  isolation: isolate;
  background: transparent;
}
.footer-reveal-ready .footer-curtain {
  position: relative;
  z-index: 1;
  display: flow-root;
  overflow: clip;
  min-height: var(--page-vh);
  background: var(--beige);
  border-radius: 0 0 32px 32px;
  box-shadow: 0 14px 28px -22px rgb(0 0 0 / 28%);
}
.footer-reveal-ready .site-footer.footer-directory {
  position: sticky;
  bottom: 0;
  z-index: 0;
}
@media (max-width: 760px) {
  .footer-reveal-ready .footer-curtain {
    border-radius: 0 0 22px 22px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .footer-reveal-ready .site-footer.footer-directory {
    position: relative;
  }
  .footer-reveal-ready .footer-curtain {
    border-radius: 0;
    box-shadow: none;
  }
}

.site-footer .footer-return {
  padding: 10px 16px;
  border-radius: 24px;
  background: var(--lemon);
  color: var(--deep);
}
/* --- Desktop-Skalierung (page-scale.js). Mobil unverändert: Faktor bleibt 1. --- */
: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; }

/* Launch pill (How it works, Houses): a short fact instead of a sentence under the headline. */
:is(.joining-intro, .houses-intro) > p.launch-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  max-width: 100%;
  margin: 0;
  padding: 8px 15px;
  border-radius: 999px;
  background: var(--sand);
  color: var(--deep);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
}
