/* ============================================================
   Gut Wohnen Stäfa — Design System
   Warm, calm, neighbourly. Sage / lake-blue / cream / blue-green.
   ============================================================ */

:root {
  /* Ink — dark blue-green */
  --ink:        #28393F;
  --ink-soft:   #3C535B;
  --ink-faint:  #5C737A;

  /* Sage / olive greens */
  --sage:       #8E9B73;
  --sage-deep:  #6F875E;
  --sage-dark:  #5A7050;
  --sage-light: #A8B28C;

  /* Lake blue */
  --lake:       #6D9FAA;
  --lake-deep:  #517E89;

  /* Creams & papers */
  --cream:      #F4F0E0;   /* page background */
  --cream-deep: #ECE6CF;
  --paper:      #FBFAF1;   /* cards / lifted surfaces */
  --white:      #FFFFFF;

  /* Soft tints for section backgrounds */
  --mist:       #C7CCB8;
  --mist-soft:  #DCDDC6;
  --sage-wash:  #E4E7D3;
  --lake-wash:  #DCE7E6;
  --cream-card: #F7F3E4;

  /* Lines */
  --line:       #DBD6BF;
  --line-soft:  #E7E3D2;

  --maxw: 1180px;
  --radius: 22px;
  --radius-lg: 34px;
  --shadow: 0 18px 50px -28px rgba(40,57,63,.32);
  --shadow-soft: 0 10px 30px -22px rgba(40,57,63,.30);

  --serif: "Spectral", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  font-size: 19px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 .5em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.4rem, 2.4vw, 1.85rem); }

p { margin: 0 0 1.1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--lake-deep); text-decoration: none; }
a:hover { color: var(--ink); }

.lead {
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  line-height: 1.6;
  color: var(--ink-soft);
}

.eyebrow {
  font-family: var(--sans);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--sage-deep);
  margin: 0 0 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--sage-deep);
  border-radius: 2px;
}

/* ---------- Layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.wrap-narrow { max-width: 840px; margin: 0 auto; padding: 0 28px; }

section { position: relative; }
.section { padding: clamp(70px, 9vw, 130px) 0; }
.section-tight { padding: clamp(48px, 6vw, 80px) 0; }

.bg-cream  { background: var(--cream); }
.bg-paper  { background: var(--paper); }
.bg-sage   { background: var(--sage-wash); }
.bg-lake   { background: var(--lake-wash); }
.bg-mist   { background: var(--mist-soft); }
.bg-ink    { background: var(--ink); color: var(--cream); }
.bg-ink h1,.bg-ink h2,.bg-ink h3 { color: var(--cream); }
.bg-ink .eyebrow { color: var(--sage-light); }
.bg-ink .eyebrow::before { background: var(--sage-light); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.04rem;
  line-height: 1;
  padding: 1rem 1.6rem;
  border-radius: 100px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn .arr { transition: transform .2s ease; }
.btn:hover .arr { transform: translateX(3px); }

.btn-primary { background: var(--ink); color: var(--cream); }
.btn-primary:hover { background: #1f2e33; color: var(--white); }

.btn-sage { background: var(--sage-deep); color: #fbfbf3; }
.btn-sage:hover { background: var(--sage-dark); color: #fff; }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--cream); }

.btn-cream { background: var(--cream); color: var(--ink); border-color: var(--line); }
.btn-cream:hover { background: var(--white); border-color: var(--sage); }

.btn-lg { padding: 1.15rem 2rem; font-size: 1.12rem; }

/* ---------- Cards ---------- */
.card {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-soft);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(244,240,224,.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 18px 28px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px;
  transition: padding 0.35s ease;
}
.site-header.scrolled .header-inner {
  padding-top: 10px;
  padding-bottom: 10px;
}
.brand { display: flex; align-items: flex-end; gap: 14px; text-decoration: none; }
.brand-text {
  height: var(--logo-text-h, 44px);
  width: auto;
  flex-shrink: 0;
}
.brand-emblem {
  height: calc(var(--logo-text-h, 44px) * 3);
  width: auto;
  flex-shrink: 0;
  transition: height 0.35s ease;
  min-height: var(--logo-text-h, 44px);
}
.site-header.scrolled .brand-emblem {
  height: calc(var(--logo-text-h, 44px) * 1.6);
}
.site-header.scrolled .brand-text {
  height: calc(var(--logo-text-h, 44px) * 0.9);
}
.nav { display: flex; align-items: center; gap: 4px; }
.nav-item { position: relative; display: flex; align-items: center; }
.nav-link {
  display: inline-flex; align-items: center; gap: .25rem;
  font-weight: 600; font-size: 1.02rem; color: var(--ink-soft);
  padding: .6rem .85rem; border-radius: 100px; white-space: nowrap;
  transition: background .15s, color .15s;
}
.nav-link:hover { color: var(--ink); background: rgba(142,155,115,.16); }
.nav-link.active { color: var(--ink); background: rgba(142,155,115,.22); }
.nav .nav-cta {
  background: var(--ink); color: var(--cream); margin-left: 6px; margin-right: 12px;
}
.nav .nav-cta:hover { background: #1f2e33; color: #fff; }
.nav .nav-cta.active { background: var(--sage-deep); color: #fff; }

/* chevron button inside link */
.sub-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  background: none; border: 0; padding: 2px; margin: -2px -4px -2px 0;
  color: inherit; cursor: pointer; border-radius: 50%;
}
.sub-toggle svg { transition: transform .25s ease; }
.nav-item.sub-open > .nav-link .sub-toggle svg { transform: rotate(180deg); }

/* desktop dropdown */
.submenu {
  position: absolute; top: calc(100% + 8px); left: 0;
  width: max-content; min-width: 210px; max-width: 320px;
  background: var(--paper); border: 1px solid var(--line-soft);
  border-radius: 18px; box-shadow: var(--shadow);
  padding: 8px; display: flex; flex-direction: column; gap: 2px;
  opacity: 0; transform: translateY(-8px); pointer-events: none;
  transition: opacity .2s ease, transform .2s ease; z-index: 70;
}
.submenu::before { /* hover bridge so the gap doesn't close the menu */
  content: ""; position: absolute; top: -10px; left: 0; right: 0; height: 10px;
}
.nav-item.sub-open > .submenu { opacity: 1; transform: none; pointer-events: auto; }
.submenu-link {
  font-weight: 600; font-size: .98rem; color: var(--ink-soft);
  padding: .65rem .9rem; border-radius: 12px; white-space: nowrap;
  display: flex; align-items: center; gap: .55rem; transition: background .14s, color .14s;
}
.submenu-link:hover { background: var(--sage-wash); color: var(--ink); }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 46px; height: 46px; border-radius: 12px; padding: 11px;
}
.nav-toggle span { display: block; height: 2.5px; background: var(--ink); border-radius: 3px; margin: 5px 0; transition: .25s; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 76px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--cream); padding: 16px 22px 26px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    transform: translateY(-130%); transition: transform .3s ease;
    max-height: calc(100vh - 76px); overflow-y: auto;
  }
  .nav.open { transform: translateY(0); }
  .nav-item { flex-wrap: wrap; }
  .nav-link { flex: 1; padding: .9rem 1rem; font-size: 1.15rem; }
  .nav .nav-cta { margin: 8px 0 0; justify-content: center; }
  .sub-toggle {
    width: 44px; height: 44px; margin: 0; border-radius: 12px;
    background: rgba(142,155,115,.14);
  }
  /* mobile accordion */
  .submenu {
    position: static; opacity: 1; transform: none; pointer-events: auto;
    box-shadow: none; border: 0; background: transparent; padding: 0 0 0 14px;
    width: 100%; max-width: none; max-height: 0; overflow: hidden; transition: max-height .3s ease;
    border-left: 2px solid var(--line);
    margin: 0 0 2px 8px;
  }
  .submenu::before { display: none; }
  .nav-item.sub-open > .submenu { max-height: 420px; }
  .submenu-link { padding: .8rem .9rem; font-size: 1.05rem; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #C9D2CB; padding: 70px 0 38px; }
.site-footer h4 { color: var(--cream); font-family: var(--sans); font-weight: 700; font-size: .95rem; letter-spacing: .04em; margin-bottom: 1.1rem; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; font-size: .95rem; }
.site-footer a { color: #C9D2CB; }
.site-footer a:hover { color: var(--white); }
.footer-links { display: flex; flex-direction: column; gap: .6rem; }
.footer-brand img { height: 64px; opacity: .94; margin-bottom: 14px; }
.footer-mini-form { display: flex; gap: 8px; margin-top: 10px; }
.footer-mini-form input {
  flex: 1; min-width: 0; border: 1px solid #4a5f66; background: #314449; color: #fff;
  border-radius: 100px; padding: .7rem 1rem; font-family: var(--sans); font-size: .95rem;
}
.footer-mini-form input::placeholder { color: #8fa1a6; }
.footer-bottom {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid #3a4f55;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: .9rem; color: #8fa1a6;
}
.agenda-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .82rem; color: #aebcb0; border: 1px solid #41565c;
  padding: .35rem .8rem; border-radius: 100px;
}
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Organic blobs ---------- */
.blob {
  position: absolute; border-radius: 48% 52% 56% 44% / 52% 44% 56% 48%;
  filter: blur(2px); opacity: .55; z-index: 0; pointer-events: none;
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Utility ---------- */
.grid { display: grid; gap: 28px; }
.center { text-align: center; }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }
.muted { color: var(--ink-faint); }
.pill-tag {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--sage-wash); color: var(--sage-dark);
  font-weight: 600; font-size: .85rem; letter-spacing: .02em;
  padding: .4rem .9rem; border-radius: 100px;
}

/* ---------- Inner page hero ---------- */
.page-hero { padding: clamp(56px, 7vw, 96px) 0 clamp(40px, 5vw, 64px); position: relative; overflow: hidden; }
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero .eyebrow { margin-bottom: 1.2rem; }
.page-hero h1 { max-width: 16ch; }
.page-hero .lead { max-width: 60ch; margin-top: 1rem; }
.page-hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.page-hero-art { display: flex; justify-content: center; position: relative; }
.page-hero-art .disc { position: absolute; inset: 0; margin: auto; width: min(420px,92%); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 50% 45%, var(--lake-wash), var(--sage-wash)); }
.page-hero-art img { position: relative; z-index: 1; width: min(380px, 86%); }
@media (max-width: 900px){ .page-hero-grid { grid-template-columns: 1fr; } .page-hero-art { order:-1; } }

/* ---------- Prose ---------- */
.prose p { font-size: 1.18rem; line-height: 1.7; color: var(--ink-soft); }
.prose p strong { color: var(--ink); font-weight: 600; }

/* ---------- Fact / stat cards ---------- */
.fact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 22px; }
.fact-card {
  background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 1.8rem; box-shadow: var(--shadow-soft);
}
.fact-num { font-family: var(--serif); font-size: 2.9rem; font-weight: 500; line-height: 1; color: var(--sage-dark); }
.fact-card.lake .fact-num { color: var(--lake-deep); }
.fact-card.ink .fact-num { color: var(--ink); }
.fact-label { font-weight: 700; color: var(--ink); margin: .6rem 0 .3rem; font-size: 1.02rem; }
.fact-sub { color: var(--ink-faint); font-size: .96rem; margin: 0; }

/* section header helper */
.sec-head { max-width: 620px; }
.sec-head.center { margin: 0 auto 3rem; }

