:root {
  --olive-950: #172019;
  --olive-900: #202d22;
  --olive-800: #2b3b2d;
  --olive-700: #425442;
  --olive-600: #64745d;
  --sage-300: #bdc8b6;
  --sage-200: #d8dfd2;
  --sage-100: #edf0e9;
  --cream: #f7f6f0;
  --paper: #fcfcf8;
  --gold: #d9b870;
  --ink: #172019;
  --muted: #657065;
  --line: rgba(32, 45, 34, 0.14);
  --radius-lg: 36px;
  --radius-md: 24px;
  --shadow: 0 24px 70px rgba(25, 36, 27, 0.1);
  --shell: min(1180px, calc(100% - 48px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

svg {
  display: block;
}

.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;
}

.skip-link {
  position: fixed;
  z-index: 200;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  border-radius: 12px;
  color: var(--paper);
  background: var(--olive-950);
  transform: translateY(-150%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

.site-header {
  position: fixed;
  z-index: 100;
  top: 18px;
  left: 50%;
  display: flex;
  width: var(--shell);
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 22px;
  color: #fff;
  background: rgba(25, 34, 26, 0.22);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transform: translateX(-50%);
  transition: color 240ms ease, background 240ms ease, border-color 240ms ease, box-shadow 240ms ease;
}

.site-header.is-scrolled,
.site-header.menu-active {
  color: var(--ink);
  border-color: rgba(32, 45, 34, 0.1);
  background: rgba(252, 252, 248, 0.9);
  box-shadow: 0 12px 34px rgba(20, 31, 22, 0.1);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  padding: 9px 12px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  transition: color 180ms ease, background 180ms ease;
}

.site-nav a:hover,
.site-nav a[aria-current="true"] {
  background: rgba(255, 255, 255, 0.14);
}

.site-header.is-scrolled .site-nav a:hover,
.site-header.is-scrolled .site-nav a[aria-current="true"],
.site-header.menu-active .site-nav a:hover {
  background: var(--sage-100);
}

.site-nav .nav-contact {
  margin-left: 5px;
  padding-inline: 16px;
  color: var(--paper);
  background: var(--olive-800);
}

.site-nav .nav-contact:hover {
  color: #fff;
  background: var(--olive-700);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  color: inherit;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span:not(.sr-only) {
  display: block;
  width: 20px;
  height: 1.5px;
  margin: 5px auto;
  background: currentColor;
  transition: transform 220ms ease;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background-color: var(--olive-950);
  background-image: url("assets/kaiserstuhl-olivenbaum.jpg");
  background-position: center;
  background-size: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 23, 16, 0.78) 0%, rgba(20, 29, 20, 0.55) 43%, rgba(20, 28, 20, 0.08) 75%),
    linear-gradient(0deg, rgba(12, 18, 13, 0.42) 0%, transparent 45%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: var(--shell);
  padding: 150px 0 100px;
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 19px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow-dark {
  color: var(--olive-600);
}

.hero h1,
.section-heading h2,
.membership-card h2 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.hero h1 {
  max-width: 920px;
  font-size: clamp(54px, 7.7vw, 112px);
  text-wrap: balance;
}

.hero-copy {
  max-width: 620px;
  margin: 34px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(19px, 2.2vw, 25px);
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 44px;
}

.button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  padding: 0 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  transition: transform 180ms ease, color 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-light {
  color: var(--olive-950);
  background: #fff;
}

.button-light:hover {
  background: var(--sage-100);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--olive-800);
  font-size: 15px;
  font-weight: 700;
}

.text-link span {
  font-size: 20px;
  transition: transform 180ms ease;
}

.text-link:hover span {
  transform: translateX(4px);
}

.text-link-light {
  color: #fff;
}

.scroll-cue {
  position: absolute;
  z-index: 1;
  bottom: 32px;
  left: 50%;
  display: grid;
  justify-items: center;
  gap: 3px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.scroll-cue svg {
  width: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  animation: float 1.8s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

.section {
  padding: 132px 0;
}

.section-shell {
  width: var(--shell);
  margin: 0 auto;
}

.section-heading h2 {
  font-size: clamp(45px, 5.5vw, 76px);
}

.section-heading > p:last-child {
  max-width: 620px;
  margin: 27px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.centered {
  display: grid;
  justify-items: center;
  text-align: center;
}

.intro-section {
  background: var(--paper);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 9vw;
  align-items: start;
}

.intro-copy {
  padding-top: 39px;
}

.intro-copy p {
  color: var(--muted);
}

.intro-copy .lead {
  margin-top: 0;
  color: var(--ink);
  font-size: clamp(23px, 2.4vw, 31px);
  line-height: 1.42;
  letter-spacing: -0.025em;
}

.place-note {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding-top: 25px;
  margin-top: 30px;
  border-top: 1px solid var(--line);
  color: var(--olive-700);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.5;
}

.place-note svg {
  flex: 0 0 24px;
  width: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

.goals-section {
  background: var(--sage-100);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 68px;
}

.goal-card {
  position: relative;
  min-height: 350px;
  padding: 32px 28px;
  overflow: hidden;
  border: 1px solid rgba(50, 66, 51, 0.07);
  border-radius: var(--radius-md);
  background: rgba(252, 252, 248, 0.82);
  box-shadow: 0 10px 35px rgba(40, 54, 41, 0.04);
  transition: transform 240ms ease, box-shadow 240ms ease, background 240ms ease;
}

.goal-card:hover {
  background: #fff;
  box-shadow: 0 20px 45px rgba(40, 54, 41, 0.09);
  transform: translateY(-7px);
}

.goal-card > svg {
  width: 38px;
  height: 38px;
  margin-top: 69px;
  fill: none;
  stroke: var(--olive-700);
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card-number {
  position: absolute;
  top: 27px;
  right: 28px;
  color: var(--sage-300);
  font-size: 13px;
  font-weight: 700;
}

.goal-card h3 {
  margin: 30px 0 10px;
  font-size: 22px;
  letter-spacing: -0.025em;
}

.goal-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.62;
}

.activities-section {
  background: var(--paper);
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 9vw;
  align-items: center;
}

.activity-visual {
  position: relative;
  min-height: 690px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(26, 40, 28, 0.05), rgba(20, 31, 22, 0.55)),
    url("assets/kaiserstuhl-olivenbaum.jpg") 73% center / auto 100%;
  box-shadow: var(--shadow);
}

.visual-quote {
  position: absolute;
  right: 25px;
  bottom: 25px;
  left: 25px;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 22px;
  color: #fff;
  background: rgba(24, 35, 25, 0.5);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.visual-quote span {
  display: block;
  margin-bottom: 9px;
  color: var(--sage-200);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.visual-quote p {
  max-width: 380px;
  margin: 0;
  font-size: 22px;
  line-height: 1.4;
  letter-spacing: -0.02em;
}

.activity-list {
  margin-top: 52px;
  border-top: 1px solid var(--line);
}

.activity-item {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 20px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.activity-item > span {
  color: var(--olive-600);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.activity-item h3 {
  margin: -5px 0 5px;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.activity-item p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.membership-section {
  padding-top: 0;
}

.membership-card {
  display: flex;
  min-height: 390px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 60px;
  padding: 65px;
  border-radius: var(--radius-lg);
  color: #fff;
  background:
    radial-gradient(circle at 75% 10%, rgba(198, 213, 189, 0.22), transparent 32%),
    linear-gradient(135deg, var(--olive-700), var(--olive-950));
  box-shadow: var(--shadow);
}

.membership-card > div {
  max-width: 730px;
}

.membership-card h2 {
  font-size: clamp(42px, 5.4vw, 72px);
}

.membership-card p:not(.eyebrow) {
  max-width: 650px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.72);
}

.membership-card .button {
  flex: 0 0 auto;
}

.contact-section {
  background: var(--cream);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.75fr);
  gap: 10vw;
  align-items: center;
}

.contact-card {
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper);
  box-shadow: 0 18px 50px rgba(33, 47, 35, 0.07);
}

.contact-card > a:first-of-type {
  display: inline-block;
  font-size: clamp(19px, 2vw, 25px);
  font-weight: 650;
  letter-spacing: -0.025em;
}

.contact-label {
  margin: 0 0 8px;
  color: var(--olive-600);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact-card > p:not(.contact-label) {
  color: var(--muted);
}

.contact-divider {
  height: 1px;
  margin: 31px 0;
  background: var(--line);
}

.contact-card .text-link {
  margin-top: 20px;
}

.site-footer {
  padding: 72px max(24px, calc((100% - 1180px) / 2)) 32px;
  color: var(--sage-200);
  background: var(--olive-950);
}

.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 50px;
  padding-bottom: 58px;
}

.footer-brand {
  display: flex;
  gap: 14px;
  align-items: center;
}

.footer-brand .brand-mark {
  width: 42px;
  height: 42px;
}

.footer-brand div {
  display: grid;
}

.footer-brand strong {
  color: #fff;
  font-size: 17px;
}

.footer-brand span {
  color: var(--sage-300);
  font-size: 12px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 24px;
  font-size: 14px;
  font-weight: 650;
}

.footer-nav a,
.footer-bottom a {
  transition: color 180ms ease;
}

.footer-nav a:hover,
.footer-bottom a:hover {
  color: #fff;
}

.legal-area {
  border-top: 1px solid rgba(216, 223, 210, 0.14);
}

.legal-panel {
  border-bottom: 1px solid rgba(216, 223, 210, 0.14);
}

.legal-panel summary {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #fff;
  font-size: 18px;
  font-weight: 650;
  cursor: pointer;
  list-style: none;
}

.legal-panel summary::-webkit-details-marker {
  display: none;
}

.legal-panel summary svg {
  width: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  transition: transform 200ms ease;
}

.legal-panel[open] summary svg {
  transform: rotate(180deg);
}

.legal-content {
  max-width: 840px;
  padding: 12px 0 54px;
  color: var(--sage-300);
  font-size: 14px;
  line-height: 1.75;
}

.legal-content h2 {
  margin: 0 0 34px;
  color: #fff;
  font-size: 30px;
}

.legal-content h3 {
  margin: 30px 0 6px;
  color: var(--sage-100);
  font-size: 16px;
}

.legal-content p {
  margin: 6px 0 14px;
}

.legal-content a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding-top: 31px;
  color: var(--sage-300);
  font-size: 12px;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom div {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 700ms cubic-bezier(0.22, 1, 0.36, 1), transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1040px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .goal-card {
    min-height: 310px;
  }

  .activity-visual {
    min-height: 610px;
  }
}

@media (max-width: 860px) {
  :root {
    --shell: min(100% - 32px, 680px);
  }

  .site-header {
    top: 12px;
  }

  .js .menu-toggle {
    display: block;
  }

  .js .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    display: grid;
    gap: 2px;
    padding: 12px;
    visibility: hidden;
    border: 1px solid var(--line);
    border-radius: 20px;
    color: var(--ink);
    background: rgba(252, 252, 248, 0.97);
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
  }

  .js .site-header.menu-active .site-nav {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }

  .site-nav a {
    padding: 13px 14px;
  }

  .site-nav .nav-contact {
    margin: 4px 0 0;
    text-align: center;
  }

  .menu-active .menu-toggle span:not(.sr-only):nth-child(2) {
    transform: translateY(3.25px) rotate(45deg);
  }

  .menu-active .menu-toggle span:not(.sr-only):nth-child(3) {
    transform: translateY(-3.25px) rotate(-45deg);
  }

  .hero {
    min-height: 820px;
    background-position: 62% center;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(15, 23, 16, 0.8), rgba(20, 29, 20, 0.32)),
      linear-gradient(0deg, rgba(12, 18, 13, 0.55), transparent 55%);
  }

  .hero-content {
    padding-top: 130px;
  }

  .section {
    padding: 100px 0;
  }

  .intro-grid,
  .split-layout,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 58px;
  }

  .intro-copy {
    padding-top: 0;
  }

  .activity-visual {
    min-height: 620px;
  }

  .membership-card {
    min-height: 460px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: flex-end;
    padding: 48px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-nav {
    justify-content: flex-start;
  }
}

@media (max-width: 600px) {
  :root {
    --shell: calc(100% - 28px);
    --radius-lg: 28px;
  }

  body {
    font-size: 16px;
  }

  .site-header {
    padding-left: 14px;
    border-radius: 18px;
  }

  .brand span {
    font-size: 14px;
  }

  .brand-mark {
    width: 29px;
    height: 29px;
  }

  .hero {
    min-height: 760px;
    background-position: 67% center;
  }

  .hero-content {
    padding-top: 120px;
  }

  .hero h1 {
    font-size: clamp(45px, 14vw, 66px);
  }

  .hero-copy {
    font-size: 18px;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 22px;
    margin-top: 34px;
  }

  .scroll-cue {
    display: none;
  }

  .section {
    padding: 82px 0;
  }

  .section-heading h2 {
    font-size: 44px;
  }

  .card-grid {
    grid-template-columns: 1fr;
    margin-top: 48px;
  }

  .goal-card {
    min-height: 285px;
  }

  .goal-card > svg {
    margin-top: 48px;
  }

  .activity-visual {
    min-height: 510px;
  }

  .visual-quote {
    right: 16px;
    bottom: 16px;
    left: 16px;
  }

  .membership-section {
    padding-top: 0;
  }

  .membership-card {
    min-height: 520px;
    padding: 38px 30px;
  }

  .membership-card .button {
    width: 100%;
  }

  .contact-card {
    padding: 31px 25px;
  }

  .site-footer {
    padding-top: 56px;
  }

  .footer-nav {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
