:root {
  --sage: #6B8969;
  --sage-dark: #547054;
  --peach: #F0BE95;
  --peach-deep: #D98F55;
  --cream: #FBF8F2;
  --dark: #2E2A22;
  --text-secondary: #5A5347;
  --text-muted: #8A8172;
  --border: #E7DFD0;
  --sage-line: rgba(251, 248, 242, 0.25);
  --sage-text-light: #DCE6DA;
  --peach-light: #F3D2B4;
  --pad-x: clamp(24px, 5vw, 64px);
  --nav-pad-y: clamp(14px, 1.5vw, 20px);
  --nav-height: calc(var(--nav-pad-y) + var(--nav-pad-y) + 44px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  background: var(--cream);
  scroll-snap-type: y proximity;
  scroll-padding-top: var(--nav-height);
  overflow-x: clip;
}

.hero,
.philosophy,
.modules-section,
.info-section,
.cta {
  position: relative;
}

/* Der Einrastpunkt ist bewusst nur einen Pixel hoch. So bleibt jeder
   Abschnitt frei scrollbar, auch wenn sein Inhalt etwas höher als der
   Bildschirm ist. Der ganze Abschnitt als Snap-Fläche würde in diesem
   Fall eine zusätzliche, scheinbar wirkungslose Scroll-Geste schlucken. */
.section-snap {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  scroll-snap-align: start;
  scroll-snap-stop: normal;
  pointer-events: none;
}

/* AMBIENT-LICHT — weiche Farbfelder hinter allem, fangen keine Klicks */
.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.ambient span {
  position: absolute;
  border-radius: 50%;
  will-change: transform;
}

.ambient .a1 {
  width: 58vw; height: 58vw;
  top: -14vw; right: -12vw;
  background: radial-gradient(circle, rgba(107, 137, 105, 0.13), transparent 68%);
}

.ambient .a2 {
  width: 50vw; height: 50vw;
  top: 36%; left: -16vw;
  background: radial-gradient(circle, rgba(240, 190, 149, 0.17), transparent 68%);
}

.ambient .a3 {
  width: 42vw; height: 42vw;
  bottom: -12vw; right: 6vw;
  background: radial-gradient(circle, rgba(122, 158, 126, 0.11), transparent 70%);
}

/* WACHSTUMS-LINIE — feine Pflanze am linken Rand, wächst beim Scrollen */
#growth-line {
  position: fixed;
  left: clamp(8px, 1.6vw, 28px);
  top: 0;
  height: 100vh;
  width: 44px;
  z-index: 2;
  pointer-events: none;
  opacity: 0.6;
}

#growth-line svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

#growth-stem { stroke: var(--sage); }
#growth-line .leaf { fill: var(--sage); }

@media (max-width: 1100px) {
  #growth-line { display: none; }
}

/* SCROLL REVEAL */
.reveal {
  /* Inhalte bleiben auch sichtbar, wenn main.js nicht geladen werden kann
     (z. B. beim direkten Öffnen der HTML-Datei über file://). */
  opacity: 1;
  transform: none;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

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

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

/* Wenn GSAP übernimmt, sind die CSS-Reveals abgeschaltet */
html.gsap-on .reveal {
  opacity: 1;
  transform: none;
  transition: none;
}

html.gsap-on .module-cell {
  opacity: 1;
  transform: none;
  transition: background 0.4s ease;
}

.module-cell:hover {
  background: #F6F0E5;
}

/* HERO-HEADLINE: Wörter steigen aus einer Maske auf (Split durch main.js) */
.hero h1 .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.12em;
  margin-bottom: -0.12em;
}

.hero h1 .wi {
  display: inline-block;
  will-change: transform;
}

body {
  font-family: 'Instrument Sans', sans-serif;
  background: transparent;
  color: var(--dark);
  line-height: 1.5;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: 'Bricolage Grotesque', sans-serif; }

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

a { text-decoration: none; }

a:focus-visible {
  outline: 3px solid var(--peach-deep);
  outline-offset: 3px;
  border-radius: 2px;
}

/* NAV */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 248, 242, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1920px;
  margin: 0 auto;
  padding: var(--nav-pad-y) var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: 20px;
  color: var(--sage);
  letter-spacing: 0.2px;
}

.nav-logo { width: 32px; height: 32px; object-fit: contain; }

/* BUTTONS */
.btn {
  display: inline-block;
  font-weight: 700;
  font-size: 15px;
  padding: 15px 28px;
  transition: opacity 0.25s ease, box-shadow 0.3s ease;
  will-change: transform;
}

.btn:hover {
  opacity: 0.88;
  box-shadow: 0 10px 28px rgba(46, 42, 34, 0.16);
}

.btn-small {
  min-height: 44px;
  padding: 10px 20px;
  font-size: 14px;
  background: var(--sage);
  color: var(--cream);
}

.btn-primary {
  background: var(--sage);
  color: var(--cream);
}

.btn-dark {
  background: var(--dark);
  color: var(--cream);
  font-size: clamp(15px, 0.9vw, 19px);
  padding: clamp(17px, 1.2vw, 24px) clamp(32px, 2.2vw, 46px);
}

/* HERO */
.hero {
  max-width: 1920px;
  min-height: calc(100vh - var(--nav-height));
  min-height: calc(100svh - var(--nav-height));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 44px;
  align-items: center;
  padding: 56px var(--pad-x);
}

.hero h1 {
  font-weight: 800;
  font-size: clamp(56px, 6vw, 128px);
  line-height: 1.02;
  color: var(--dark);
  margin-bottom: 26px;
  letter-spacing: -1.5px;
}

.hero-sub {
  font-size: clamp(17px, 1.1vw, 24px);
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 34em;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-actions .btn {
  font-size: clamp(15px, 0.9vw, 19px);
  padding: clamp(15px, 1.1vw, 22px) clamp(28px, 2vw, 42px);
}

.hero-visual {
  position: relative;
}

/* 3D-Emblem (Canvas via emblem3d.js): Schatten wandert gegenläufig zur Neigung */
.hero-emblem {
  position: relative;
  --shadow-x: 0px;
  --shadow-y: 18px;
  filter: drop-shadow(var(--shadow-x) var(--shadow-y) 28px rgba(46, 42, 34, 0.22));
}

/* Weicher, warmer Schein hinter dem Logo */
.hero-visual::before {
  content: '';
  position: absolute;
  inset: -10%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 190, 149, 0.3), transparent 64%);
  z-index: 0;
}

.hero-visual img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* PHILOSOPHY */
.philosophy {
  background: var(--sage);
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 88px var(--pad-x);
}

.philosophy-columns {
  max-width: 1920px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto repeat(3, auto);
  gap: 32px 72px;
}

.philosophy-col {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: 1 / -1;
  gap: inherit;
}

.eyebrow {
  display: block;
  font-size: clamp(12px, 0.75vw, 16px);
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.eyebrow-peach { color: var(--peach-light); }
.eyebrow-orange { color: var(--peach-deep); }
.eyebrow-sage { color: var(--sage); }

.philosophy-intro h2 {
  font-weight: 800;
  font-size: clamp(28px, 2.1vw, 42px);
  line-height: 1.15;
  color: var(--cream);
}

.philosophy-item {
  border-top: 1px solid var(--sage-line);
  padding-top: 20px;
  align-self: start;
}

.philosophy-item-last {
  border-bottom: 1px solid var(--sage-line);
  padding-bottom: 20px;
}

.philosophy-item h3 {
  font-family: 'Instrument Sans', sans-serif;
  font-weight: 600;
  font-size: clamp(18px, 1.2vw, 26px);
  color: var(--cream);
  margin-bottom: 8px;
}

.philosophy-item p {
  font-size: clamp(15px, 1vw, 20px);
  line-height: 1.55;
  color: var(--sage-text-light);
}

/* MODULES */
.modules-section {
  max-width: 1920px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0 auto;
  padding: 88px var(--pad-x);
}

.modules-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}

.modules-header h2 {
  font-weight: 800;
  font-size: clamp(36px, 2.8vw, 56px);
  color: var(--dark);
  max-width: 22em;
}

.modules-lead {
  font-size: clamp(15px, 1vw, 20px);
  line-height: 1.55;
  color: var(--text-secondary);
  max-width: 20em;
}

.modules-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--border);
}

.module-cell {
  background: var(--cream);
  padding: clamp(36px, 2.8vw, 56px);
  /* GSAP setzt seinen Startzustand selbst. Ohne JavaScript bleibt die
     Karte sichtbar, statt dauerhaft transparent zu sein. */
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Zellen erscheinen nacheinander, sobald das Grid sichtbar wird */
.modules-grid.is-visible .module-cell {
  opacity: 1;
  transform: translateY(0);
}

.modules-grid.is-visible .module-cell:nth-child(2) { transition-delay: 0.15s; }
.modules-grid.is-visible .module-cell:nth-child(3) { transition-delay: 0.3s; }
.modules-grid.is-visible .module-cell:nth-child(4) { transition-delay: 0.45s; }

@media (prefers-reduced-motion: reduce) {
  .module-cell {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.module-num {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: clamp(32px, 2.4vw, 48px);
  color: var(--border);
  margin-bottom: 12px;
}

.module-cell h3 {
  font-family: 'Instrument Sans', sans-serif;
  font-weight: 700;
  font-size: clamp(18px, 1.3vw, 26px);
  color: var(--dark);
  margin-bottom: 8px;
}

.module-cell p {
  font-size: clamp(14.5px, 1vw, 19px);
  line-height: 1.55;
  color: var(--text-secondary);
}

/* GESPRÄCHSTAGEBUCH (shares .philosophy section) */
.brain-intro h2 {
  font-weight: 800;
  font-size: clamp(28px, 2.1vw, 42px);
  line-height: 1.15;
  color: var(--cream);
  margin-bottom: 18px;
}

.brain-lead {
  font-size: clamp(15px, 1vw, 20px);
  line-height: 1.55;
  color: var(--sage-text-light);
  max-width: 26em;
}

.brain-item {
  border-top: 1px solid var(--sage-line);
  padding-top: 20px;
  align-self: start;
}

.brain-item-last {
  border-bottom: 1px solid var(--sage-line);
  padding-bottom: 20px;
}

.brain-item h3 {
  font-family: 'Instrument Sans', sans-serif;
  font-weight: 600;
  font-size: clamp(18px, 1.2vw, 26px);
  color: var(--cream);
  margin-bottom: 8px;
}

.brain-item p {
  font-size: clamp(15px, 1vw, 20px);
  line-height: 1.55;
  color: var(--sage-text-light);
}

/* PDF EXPORT + FÜR WEN */
.info-section {
  max-width: 1920px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0 auto;
  padding: 88px var(--pad-x);
  border-top: 2px solid var(--dark);
}

.info-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 72px;
}

.pdf-text h2,
.fuer-wen h2 {
  font-weight: 800;
  font-size: clamp(30px, 2.4vw, 48px);
  color: var(--dark);
  margin: 0 0 18px;
  max-width: 20em;
}

.pdf-text p,
.fuer-wen p {
  font-size: clamp(16px, 1.15vw, 22px);
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 32em;
}

/* CTA */
.cta {
  max-width: 1920px;
  min-height: 100vh;
  margin: 0 auto;
  background: var(--sage);
  padding: clamp(56px, 7vw, 112px) var(--pad-x) 32px;
  display: grid;
  grid-template-rows: auto auto auto;
  gap: clamp(40px, 6vh, 72px);
  overflow: hidden;
}

.cta-main {
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: clamp(48px, 7vw, 120px);
}

.cta-visual {
  position: relative;
  min-height: clamp(300px, 34vw, 520px);
  display: grid;
  place-items: center;
  padding-right: clamp(32px, 5vw, 80px);
}

.cta-visual::before {
  content: '';
  position: absolute;
  width: min(32vw, 460px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(251, 248, 242, 0.13), transparent 68%);
  pointer-events: none;
}

.cta-logo {
  position: relative;
  z-index: 1;
  width: clamp(220px, 24vw, 420px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 14px rgba(46, 42, 34, 0.28));
}

.cta-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  max-width: 760px;
}

.cta-text h2 {
  font-weight: 800;
  font-size: clamp(48px, 5.4vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  color: var(--cream);
  max-width: 10em;
}

.cta-text p {
  max-width: 30em;
  font-size: clamp(17px, 1.25vw, 22px);
  line-height: 1.6;
  color: rgba(251, 248, 242, 0.78);
}

.cta-text .btn {
  margin-top: 8px;
}

/* COMMUNITY CTA */
.community-cta {
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
  padding: clamp(28px, 3vw, 44px) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  align-items: end;
  gap: clamp(36px, 6vw, 96px);
}

.community-copy .eyebrow {
  margin-bottom: 12px;
}

.community-copy h3 {
  max-width: 16em;
  margin-bottom: 12px;
  font-size: clamp(28px, 2.5vw, 46px);
  line-height: 1.08;
  color: var(--cream);
}

.community-copy p {
  max-width: 46em;
  font-size: clamp(15px, 1vw, 18px);
  line-height: 1.6;
  color: rgba(251, 248, 242, 0.72);
}

.community-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.community-channel {
  min-height: 72px;
  padding: 18px 20px;
  border: 1px solid rgba(251, 248, 242, 0.38);
  background: rgba(251, 248, 242, 0.06);
  color: var(--cream);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
}

.community-channel > span {
  font-weight: 700;
  font-size: 17px;
}

/* CTA FOOTER (innerhalb der sage-green Section) */
.cta-footer {
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 24px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px 32px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
}

.cta-footer-copy { white-space: nowrap; }

.cta-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.cta-footer-social { justify-self: center; }
.cta-footer-legal { justify-self: end; }

.cta-footer a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: color 0.2s ease;
}
.cta-footer a:hover { color: var(--cream); }

@media (max-width: 640px) {
  .cta-footer {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
  .cta-footer-social,
  .cta-footer-legal { justify-self: center; }
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding: 40px var(--pad-x) 64px; gap: 32px; }
  .hero h1 { font-size: clamp(38px, 10.5vw, 62px); letter-spacing: -0.5px; }
  .hero-visual { order: -1; max-width: min(220px, 55vw); margin: 0 auto; }
  .philosophy { min-height: auto; padding: 56px var(--pad-x); }
  .philosophy-columns { grid-template-columns: 1fr; grid-template-rows: none; gap: 48px; }
  .philosophy-col { grid-template-rows: none; grid-row: auto; display: flex; flex-direction: column; gap: 28px; }
  .modules-section { min-height: auto; padding: 56px var(--pad-x); }
  .info-section { min-height: auto; padding: 56px var(--pad-x); }
  .info-columns { grid-template-columns: 1fr; gap: 48px; }
  .cta { min-height: auto; padding: 56px var(--pad-x) 28px; text-align: center; }
  .cta-main { grid-template-columns: 1fr; gap: 40px; }
  .cta-visual {
    min-height: 260px;
    padding: 0 0 40px;
  }
  .cta-visual::before { width: min(76vw, 360px); }
  .cta-logo { width: min(64vw, 300px); }
  .cta-text { align-items: center; text-align: center; margin: 0 auto; }
  .cta-text h2 { font-size: clamp(44px, 13vw, 68px); }
  .community-cta { grid-template-columns: 1fr; text-align: left; gap: 28px; }
}

/* Modul-Raster: erst auf schmalen Screens einspaltig */
@media (max-width: 640px) {
  .modules-grid { grid-template-columns: 1fr; }
  .community-actions { grid-template-columns: 1fr; }
}
