/* =========================================================
   Maas Real Estate  |  style.css
   Brand: Poppins, Petrol #013741, Slate #324A6D,
   Teal #7BA7A2, MRE-Gruen #5FC901
   Redesign: grosse Statement-Typografie, viel Weissraum,
   weiche Karten, dunkle Petrol-Bloecke, Gruen als Akzent
   ========================================================= */

:root {
  --teal: #013741;
  --teal-700: #012a32;
  --teal-900: #011f25;
  --slate: #324a6d;
  --accent: #7ba7a2;
  --green: #5fc901;
  --green-deep: #4a9e01;
  --green-tint: #eef9e0;
  --bg: #ffffff;
  --bg-alt: #f9fafa;
  --line: rgba(1, 55, 65, 0.12);
  --white: #ffffff;

  --wrap: 1240px;
  --wrap-narrow: 860px;
  --header-h: 92px;

  --radius-pill: 50px;
  --radius-lg: 28px;
  --radius-md: 18px;
  --shadow-sm: 0 8px 30px rgba(1, 55, 65, 0.08);
  --shadow-md: 0 24px 70px rgba(1, 55, 65, 0.14);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 300;
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--slate);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--teal); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--green-deep); }

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  color: var(--teal);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 0.6em;
}

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

::selection { background: var(--green); color: var(--teal); }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 28px; }
.container.narrow { max-width: var(--wrap-narrow); }

.section { padding: clamp(88px, 12vw, 170px) 0; position: relative; }
.section > .container { position: relative; z-index: 1; }
.section.alt-bg, .alt-bg { background: var(--bg-alt); }

/* Aurora-Blobs: weiche Farbflaechen hinter ausgewaehlten Sektionen */
.services, .contact, .ecosystem, .fcheck { overflow: hidden; }
.services::before,
.ecosystem::before {
  content: "";
  position: absolute; top: -140px; right: -180px; z-index: 0;
  width: 620px; height: 620px; border-radius: 50%;
  background: radial-gradient(circle, rgba(95, 201, 1, 0.14) 0%, transparent 65%);
  animation: blobFloat 16s ease-in-out infinite alternate;
  pointer-events: none;
}
.ecosystem::before { right: auto; left: -200px; top: 30%; }
.contact::before {
  content: "";
  position: absolute; bottom: -220px; left: -160px; z-index: 0;
  width: 560px; height: 560px; border-radius: 50%;
  background: radial-gradient(circle, rgba(123, 167, 162, 0.22) 0%, transparent 65%);
  animation: blobFloat 18s ease-in-out infinite alternate-reverse;
  pointer-events: none;
}
.fcheck::before {
  content: "";
  position: absolute; top: -120px; right: -160px; z-index: 0;
  width: 540px; height: 540px; border-radius: 50%;
  background: radial-gradient(circle, rgba(95, 201, 1, 0.16) 0%, transparent 65%);
  animation: blobFloat 15s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes blobFloat {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-70px, 50px) scale(1.18); }
}

.center { text-align: center; }

.section-title {
  font-size: clamp(2.3rem, 4.6vw, 4rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  margin-bottom: 0.55em;
  max-width: 22ch;
}
.section-title.center { text-align: center; margin-left: auto; margin-right: auto; }

.eyebrow {
  font-size: clamp(1.9rem, 3.4vw, 2.9rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 0.65em;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--green-deep);
  margin: 0 0 1.6em;
}
.section-eyebrow::before {
  content: "";
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green);
  flex: 0 0 auto;
}
.section-eyebrow.center {
  display: flex;
  justify-content: center;
  text-align: center;
}

.lead {
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.55;
  color: var(--teal);
  font-weight: 300;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: inherit;
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.01em;
  padding: 17px 42px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--teal);
  color: var(--teal);
  background: transparent;
  cursor: pointer;
  transition: background 0.28s var(--ease), color 0.28s var(--ease),
              border-color 0.28s var(--ease), transform 0.2s var(--ease),
              box-shadow 0.28s var(--ease);
}
.btn:hover {
  background: var(--teal); color: var(--white);
  transform: translateY(-2px); box-shadow: var(--shadow-sm);
}

.btn-primary {
  background: var(--green); color: var(--teal); border-color: var(--green);
  font-weight: 600;
}
.btn-primary:hover {
  background: var(--teal); border-color: var(--teal); color: var(--white);
  transform: translateY(-2px); box-shadow: 0 14px 40px rgba(1, 55, 65, 0.25);
}

/* Highlight-Marker in Headlines */
mark {
  background: linear-gradient(transparent 58%, rgba(95, 201, 1, 0.38) 58%);
  color: inherit;
  padding: 0 0.06em;
  border-radius: 2px;
}

.btn-light { border-color: rgba(255, 255, 255, 0.85); color: var(--white); background: transparent; }
.btn-light:hover { background: var(--white); color: var(--teal); }

/* ---------- Accessibility ---------- */
.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: absolute; left: 16px; top: -60px; z-index: 2000;
  background: var(--teal); color: #fff; padding: 10px 18px; border-radius: 8px;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; color: #fff; }
.hp { position: absolute; left: -5000px; }

:focus-visible { outline: 2px solid var(--green-deep); outline-offset: 3px; }

/* =========================================================
   Header / Navigation
   ========================================================= */
/* Schwebender Glas-Header (floating pill) */
.site-header {
  position: fixed; top: 14px; left: 0; right: 0; z-index: 1000;
  background: transparent;
  border: 0;
  transition: top 0.3s var(--ease);
}
.header-inner {
  position: relative;
  display: flex; align-items: center; justify-content: space-between;
  min-height: 68px;
  padding: 8px 10px 8px 22px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border: 1px solid rgba(1, 55, 65, 0.08);
  border-radius: var(--radius-pill);
  box-shadow: 0 10px 40px rgba(1, 55, 65, 0.08);
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.site-header.scrolled .header-inner {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 50px rgba(1, 55, 65, 0.14);
}
.brand img { width: auto; height: 42px; }

/* Nicht absolut zentriert: sonst legt sich die Navigation bei acht
   Punkten ueber das Logo. Als normales Flex-Element weicht sie aus. */
.primary-nav {
  position: static;
  transform: none;
  min-width: 0;
}
.primary-nav ul {
  list-style: none; display: flex; gap: 2px; margin: 0; padding: 0;
}
.primary-nav a {
  font-weight: 500; font-size: 0.85rem; color: var(--teal);
  padding: 9px 12px; border-radius: var(--radius-pill);
  white-space: nowrap;
  transition: background 0.22s var(--ease), color 0.22s var(--ease);
}
.primary-nav a:hover { background: rgba(1, 55, 65, 0.06); color: var(--teal); }
.primary-nav a.is-active { background: var(--teal); color: var(--white); }

.header-right { display: flex; align-items: center; gap: 14px; min-width: 0; }
.header-inner > .brand { flex: 0 0 auto; }

.lang-switch {
  display: flex; align-items: center; gap: 2px;
  font-size: 0.82rem; font-weight: 500;
  border: 1px solid var(--line); border-radius: var(--radius-pill);
  padding: 3px;
}
.lang-switch a {
  color: var(--slate); opacity: 0.75; padding: 5px 12px;
  border-radius: var(--radius-pill);
  transition: background 0.2s var(--ease), color 0.2s var(--ease), opacity 0.2s var(--ease);
}
.lang-switch a:hover { opacity: 1; color: var(--teal); }
.lang-switch a.is-active { background: var(--green); color: var(--teal); opacity: 1; font-weight: 600; }
.lang-switch .sep { display: none; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; width: 44px; height: 44px;
  border: 0; background: transparent; cursor: pointer; padding: 10px;
}
.nav-toggle span {
  display: block; height: 2px; width: 100%; background: var(--teal);
  border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex; align-items: flex-end;
  overflow: hidden;
  color: var(--white);
}
.hero-page { min-height: 62vh; background: var(--teal); }
.hero-legal { min-height: 44vh; }

.hero-video,
.hero-page::before {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}
.hero-page::before {
  content: ""; background-image: var(--hero-img); background-size: cover;
  background-position: center;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(1, 31, 37, 0.15) 0%, rgba(1, 31, 37, 0.35) 55%, rgba(1, 31, 37, 0.72) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  padding-bottom: clamp(64px, 9vw, 120px);
  padding-top: clamp(140px, 18vw, 220px);
}
.hero-content h1 {
  color: var(--white);
  font-size: clamp(2.7rem, 6.4vw, 5.4rem);
  font-weight: 600;
  line-height: 1.03;
  letter-spacing: -0.04em;
  max-width: 15ch;
  margin: 0;
  animation: heroRise 1s var(--ease) 0.1s both;
}
@keyframes heroRise {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: none; }
}
.hero-legal .hero-content { padding-top: clamp(100px, 12vw, 150px); }
.hero-legal .hero-content h1 { max-width: none; font-size: clamp(2.2rem, 4.6vw, 3.6rem); }

.hero-sub {
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  max-width: 50ch;
  margin: 26px 0 34px;
  animation: heroRise 1s var(--ease) 0.28s both;
}
.hero-cta {
  display: flex; gap: 14px; flex-wrap: wrap;
  animation: heroRise 1s var(--ease) 0.45s both;
}

/* Scroll-Indikator auf Video-Heroes */
.hero-home::after {
  content: "";
  position: absolute; bottom: 34px; left: calc(50% - 7px); z-index: 2;
  width: 14px; height: 14px;
  border-right: 2px solid rgba(255, 255, 255, 0.85);
  border-bottom: 2px solid rgba(255, 255, 255, 0.85);
  transform: rotate(45deg);
  animation: scrollHint 2.2s var(--ease) infinite;
}
@keyframes scrollHint {
  0%, 100% { transform: rotate(45deg) translate(0, 0); opacity: 0.9; }
  50%      { transform: rotate(45deg) translate(7px, 7px); opacity: 0.35; }
}

/* =========================================================
   Known from (press marquee)
   ========================================================= */
.known-from { padding: 60px 0 64px; border-bottom: 1px solid var(--line); overflow: hidden; }
.known-from-title {
  text-align: center; text-transform: uppercase; letter-spacing: 0.26em;
  font-size: 0.76rem; font-weight: 600; color: var(--green-deep); margin: 0 0 4px;
}
.known-from-sub {
  text-align: center; color: var(--slate); font-size: 0.9rem;
  margin: 0 0 clamp(84px, 9vw, 132px);
}
.press-marquee {
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}
.press-track {
  display: flex; align-items: center; gap: 56px;
  width: max-content;
  animation: pressScroll 36s linear infinite;
  padding-right: 56px;
}
.press-marquee:hover .press-track { animation-play-state: paused; }
@keyframes pressScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
/* Fallback ohne Marquee-Wrapper */
.press-row {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 40px 56px;
}
/* Buehne pro Logo. Grundmass 190 x 64, feinjustiert ueber --s aus
   site.json (Feld "scale"), weil Wortmarken sonst optisch sehr
   unterschiedlich gross wirken: eine breite, flache Marke braucht mehr
   Platz als eine kompakte, um gleich stark zu lesen. */
.press-item {
  flex: 0 0 auto;
  width: calc(190px * var(--s, 1));
  height: calc(64px * var(--s, 1));
  display: flex; align-items: center; justify-content: center;
}
.press-item img {
  max-width: 100%; max-height: 100%;
  width: auto; height: auto; object-fit: contain;
  filter: grayscale(1); opacity: 0.55;
  transition: filter 0.3s var(--ease), opacity 0.3s var(--ease);
}
.press-item img:hover { filter: grayscale(0); opacity: 1; }

/* =========================================================
   Services grid (home) – nummerierte Karten
   ========================================================= */
.service-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 64px;
  counter-reset: service;
}
.service-card {
  position: relative;
  background: var(--bg); border: 0; border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md), 0 0 0 2px var(--green);
}
.service-card::before {
  counter-increment: service;
  content: "0" counter(service);
  position: absolute; top: 18px; left: 20px; z-index: 2;
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.08em;
  color: var(--teal);
  background: var(--green);
  border-radius: var(--radius-pill);
  padding: 5px 14px;
}
.service-media { display: block; aspect-ratio: 4 / 3; overflow: hidden; }
.service-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.service-card:hover .service-media img { transform: scale(1.06); }
.service-body { padding: 30px 30px 34px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.service-body h3 { font-size: 1.5rem; margin: 0; }
.service-body h3 a { color: var(--teal); }
.service-body p { color: var(--slate); margin: 0; flex: 1; }
.service-body .btn { align-self: flex-start; margin-top: 6px; padding: 13px 32px; font-size: 0.94rem; }

/* ---------- Split (image + text, two column) ---------- */
.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(48px, 6vw, 88px); align-items: center;
}
.split-media img {
  width: 100%; border-radius: var(--radius-lg); object-fit: cover; box-shadow: var(--shadow-sm);
}
.split-text p { color: var(--slate); }
.split-text .lead { color: var(--teal); }
.approach p, .whatwedo p { color: var(--slate); }

/* ---------- Full-width image band ---------- */
.image-band { line-height: 0; }
.image-band img { width: 100%; height: auto; object-fit: cover; }

/* ---------- Claim-Marquee (grosses Laufband) ---------- */
.claim-marquee {
  overflow: hidden;
  padding: clamp(36px, 5vw, 60px) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.claim-track {
  display: flex; align-items: center; gap: clamp(32px, 4vw, 64px);
  width: max-content;
  white-space: nowrap;
  animation: claimScroll 32s linear infinite;
  padding-right: clamp(32px, 4vw, 64px);
  font-size: clamp(2.4rem, 5.5vw, 4.6rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1;
}
.claim-track span {
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(1, 55, 65, 0.85);
}
.claim-track span.dot {
  color: var(--green);
  -webkit-text-stroke: 0;
}
/* jedes zweite Wort gefuellt in Gruen */
.claim-track span:nth-child(4n+3):not(.dot) {
  color: var(--green-deep);
  -webkit-text-stroke: 0;
}
@supports not (-webkit-text-stroke: 1px black) {
  .claim-track span { color: var(--teal); }
}
.claim-marquee:hover .claim-track { animation-play-state: paused; }
@keyframes claimScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- Mission: dunkler Petrol-Block ---------- */
.mission { background: var(--teal); }
.mission .eyebrow { color: var(--white); }
.mission .lead { color: rgba(255, 255, 255, 0.88); font-weight: 300; }
.mission .split-media img { box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35); }

/* =========================================================
   Ecosystem
   ========================================================= */
/* 360 Service: grosser zentrierter Intro-Block, 4 Karten darunter */
.eco-lead {
  text-align: center;
  max-width: 880px;
  margin: 0 auto;
}
.eco-lead h2 { font-size: clamp(2.8rem, 6vw, 5rem); margin-bottom: 0.45em; letter-spacing: -0.04em; }
.eco-lead p { color: var(--slate); max-width: 70ch; margin-left: auto; margin-right: auto; }
.eco-slogan { font-size: clamp(1.3rem, 2vw, 1.6rem); font-weight: 500; color: var(--teal) !important; margin: 22px auto 30px; }
.eco-lead .btn { margin-top: 4px; }

/* ---------- 360 Grad Puzzlerad (5 Stuecke, Text auf Hover) ---------- */
.eco-360 {
  margin-top: clamp(48px, 6vw, 80px);
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  gap: clamp(24px, 3.5vw, 56px);
  align-items: center;
}

.eco-wheel {
  position: relative;
  width: 100%;
  max-width: 680px;
  margin-inline: auto;
  aspect-ratio: 920 / 850;
}
.eco-wheel-svg { width: 100%; height: 100%; overflow: visible; }

/* Puzzlestuecke */
.eco-piece {
  cursor: pointer;
  /* Skalierung um die eigene Mitte: das Stueck waechst in alle Richtungen
     gleich und schiebt sich dadurch nicht unter das Logo */
  transform-box: fill-box;
  transform-origin: 50% 50%;
  transition: transform 0.45s var(--ease), opacity 0.35s var(--ease), filter 0.45s var(--ease);
}
.eco-shape { fill: var(--teal); }
.eco-piece[data-eco="consulting"]  .eco-shape { fill: #5fc901; }
.eco-piece[data-eco="architecture"] .eco-shape { fill: #b01b22; }
.eco-piece[data-eco="development"] .eco-shape { fill: #4a9e01; }
.eco-piece[data-eco="ai"]          .eco-shape { fill: #2e353b; }
.eco-piece[data-eco="investment"]  .eco-shape { fill: #013741; }
.eco-icon path {
  fill: none; stroke: var(--white); stroke-width: 1.9;
  stroke-linecap: round; stroke-linejoin: round;
}
.eco-icon { opacity: 0.9; }

.eco-360.is-active .eco-piece {
  opacity: 0.2;
  transform: scale(0.96);
}
.eco-360.is-active .eco-piece.is-active {
  opacity: 1;
  transform: translate(calc(var(--tx) * 1px), calc(var(--ty) * 1px)) scale(1.24);
  filter: drop-shadow(0 16px 34px rgba(1, 55, 65, 0.32));
}
/* Das aktive Stueck wird per JS ans Ende der Gruppe gehaengt und liegt
   damit ueber den Nachbarn (SVG kennt kein z-index) */

/* Nabe */
.eco-hub { pointer-events: none; }
.eco-hub-ring { fill: var(--bg); }
.eco-hub-text {
  font-family: "Poppins", sans-serif; font-weight: 600; font-size: 44px;
  fill: var(--teal); letter-spacing: -0.02em;
}

/* Logo-Labels um das Rad */
.eco-label {
  position: absolute;
  text-decoration: none;
  /* --ax / --ay kommen inline aus dem Include und richten jedes Label
     vom Rad weg aus, damit die Logos nicht auf den Puzzlestuecken liegen */
  transform: translate(var(--ax, -50%), var(--ay, -50%));
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  width: max-content; max-width: 140px;
  padding: 6px 8px; border: 0; background: transparent;
  font-family: inherit; text-align: center; cursor: pointer;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.eco-label-logo { height: 32px; width: auto; object-fit: contain; }
.eco-label-sub {
  font-size: 0.72rem; font-weight: 500; line-height: 1.3;
  letter-spacing: 0.07em; text-transform: uppercase; color: var(--teal);
}
.eco-label:hover, .eco-label.is-active {
  transform: translate(var(--ax, -50%), var(--ay, -50%)) scale(1.22);
}
.eco-360.is-active .eco-label { opacity: 0.3; }
.eco-360.is-active .eco-label.is-active { opacity: 1; }
.eco-label:focus-visible { outline: 2px solid var(--green-deep); outline-offset: 4px; border-radius: 14px; }

/* Textpanel */
.eco-panel {
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 3.2vw, 44px);
}
/* Fallback ohne JS, das Skript setzt die exakte Hoehe der laengsten Karte */
.eco-panel-stack { position: relative; min-height: 480px; }
.eco-card {
  position: absolute; inset: 0;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
}
.eco-card.is-active { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
.eco-card-logo { height: 28px; margin-bottom: 16px; }
.eco-card-logo img { height: 100%; width: auto; object-fit: contain; }
.eco-card h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin: 0 0 12px; }
.eco-card p { color: var(--slate); margin: 0 0 18px; font-size: 0.97rem; }
.eco-card--hint p { max-width: 46ch; }
/* Hinweis, wohin der Klick auf das Puzzlestueck fuehrt (kein Link) */
.eco-card-cue {
  font-size: 0.78rem !important; font-weight: 500;
  letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--green-deep) !important; margin: 0 !important;
}
.eco-card-cue::after { content: " \2192"; }
.eco-link { font-weight: 500; position: relative; color: var(--green-deep); }
.eco-link::after { content: " \2192"; transition: transform 0.2s var(--ease); display: inline-block; }
.eco-link:hover::after { transform: translateX(4px); }

/* =========================================================
   Board + modals
   ========================================================= */
.board-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 64px; }
.board-card {
  background: transparent; border: 0; cursor: pointer; padding: 0;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px;
  font-family: inherit;
}
.board-card img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--radius-lg);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease); background: var(--bg-alt);
}
.board-card:hover img { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.board-name { font-weight: 600; color: var(--teal); font-size: 1.25rem; margin-top: 14px; }
.board-role { font-size: 0.9rem; color: var(--slate); line-height: 1.45; }

.modal {
  position: fixed; inset: 0; z-index: 2000;
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(1, 31, 37, 0.65); backdrop-filter: blur(6px); }
.modal-panel {
  position: relative; z-index: 1; background: var(--bg); border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 48px); max-width: 580px; width: 100%;
  max-height: 88vh; overflow-y: auto; box-shadow: var(--shadow-md);
  animation: modalIn 0.3s var(--ease);
}
@keyframes modalIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.modal-panel img { width: 120px; height: 120px; border-radius: 18px; object-fit: cover; margin-bottom: 16px; }
.modal-panel h3 { font-size: 1.7rem; margin: 0 0 4px; }
.modal-role { color: var(--green-deep); font-weight: 500; margin: 0 0 18px; }
.modal-panel ul { margin: 0; padding-left: 1.1em; color: var(--slate); }
.modal-panel li { margin-bottom: 8px; }
.modal-close {
  position: absolute; top: 14px; right: 16px; border: 0; background: transparent;
  font-size: 2rem; line-height: 1; color: var(--teal); cursor: pointer;
}
.modal-close:hover { color: var(--green-deep); }
body.modal-open { overflow: hidden; }

/* =========================================================
   CTA band – dunkler Statement-Block
   ========================================================= */
.cta-band {
  background: var(--teal);
  text-align: center;
  padding: clamp(96px, 13vw, 180px) 0;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute; inset: auto -20% -60% -20%; height: 120%;
  background: radial-gradient(ellipse at center, rgba(95, 201, 1, 0.12) 0%, transparent 60%);
  pointer-events: none;
}
.cta-band h2 {
  color: var(--white);
  font-size: clamp(2.3rem, 5vw, 4.2rem);
  letter-spacing: -0.035em;
  max-width: 18ch; margin-inline: auto;
}
.cta-band p { color: rgba(255, 255, 255, 0.75); margin-bottom: 36px; font-size: 1.05rem; }
.cta-band .btn,
.cta-band .btn-primary {
  background: var(--green); border-color: var(--green); color: var(--teal);
  font-weight: 600;
}
.cta-band .btn:hover,
.cta-band .btn-primary:hover {
  background: var(--white); border-color: var(--white); color: var(--teal);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.3);
}

/* =========================================================
   Join the team
   ========================================================= */
.join-inner { align-items: center; }
.join-text h2 { font-size: clamp(1.9rem, 3.4vw, 3rem); max-width: 16ch; margin: 0; }
.join-roles {
  list-style: none; padding: 0; margin: 0 0 28px; display: flex; flex-wrap: wrap;
  gap: 12px 14px;
}
.join-roles li {
  border: 1px solid var(--line); border-radius: var(--radius-pill);
  padding: 10px 24px; color: var(--teal); font-weight: 500; font-size: 0.95rem;
  background: var(--bg);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.join-roles li:hover { border-color: var(--green); background: var(--green-tint); }

/* =========================================================
   Contact
   ========================================================= */
.contact { padding: clamp(88px, 12vw, 170px) 0; background: var(--bg-alt); position: relative; }
.contact .container { position: relative; z-index: 1; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(48px, 6vw, 80px); align-items: start; }
.contact-intro h2 { font-size: clamp(2.3rem, 4vw, 3.6rem); letter-spacing: -0.035em; }
.contact-intro > p { color: var(--slate); }
.contact-details { list-style: none; padding: 0; margin: 28px 0; display: flex; flex-direction: column; gap: 8px; }
.contact-details a { font-weight: 500; font-size: 1.05rem; }
.contact-loc { display: block; margin-top: 16px; color: var(--slate); }
.contact-loc strong { display: block; color: var(--teal); }

.contact-form {
  display: flex; flex-direction: column; gap: 16px;
  background: var(--bg); border-radius: var(--radius-lg);
  padding: clamp(28px, 3.5vw, 44px);
  box-shadow: var(--shadow-sm);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: block; }
.contact-form input,
.contact-form textarea {
  width: 100%; font-family: inherit; font-size: 1rem; color: var(--teal);
  padding: 16px 20px; border: 1.5px solid var(--line); border-radius: 14px;
  background: var(--bg-alt); transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: #9aa7b4; }
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none; border-color: var(--green);
  background: var(--bg);
  box-shadow: 0 0 0 4px rgba(95, 201, 1, 0.14);
}
.contact-form .btn { align-self: flex-start; margin-top: 6px; }

/* =========================================================
   Footer – dunkel, mit grossem Claim
   ========================================================= */
.site-footer { background: var(--teal-900); color: rgba(255, 255, 255, 0.78); padding: 0; }

.footer-claim {
  position: relative;
  text-align: center;
  padding: clamp(96px, 13vw, 180px) 0 clamp(64px, 8vw, 110px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
}
.footer-claim::before {
  content: "";
  position: absolute; inset: auto -20% -70% -20%; height: 140%;
  background: radial-gradient(ellipse at center, rgba(95, 201, 1, 0.14) 0%, transparent 60%);
  pointer-events: none;
}
.footer-claim h2 {
  position: relative;
  color: var(--white);
  font-size: clamp(2.4rem, 5.4vw, 4.6rem);
  letter-spacing: -0.04em;
  max-width: 18ch;
  margin: 0 auto 40px;
}
.footer-claim .btn { position: relative; }
.footer-claim h2 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--green), var(--accent), var(--green));
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradShift 5s linear infinite;
}
@keyframes gradShift { to { background-position: 220% center; } }
.footer-claim .btn {
  background: var(--green); border-color: var(--green); color: var(--teal); font-weight: 600;
}
.footer-claim .btn:hover { background: var(--white); border-color: var(--white); color: var(--teal); }

.footer-grid {
  display: grid; grid-template-columns: 1.2fr 1.4fr 1fr 1fr; gap: 40px;
  padding: clamp(48px, 6vw, 72px) 0 0;
}
.footer-brand img { height: 60px; width: auto; }
.footer-loc { margin-bottom: 18px; line-height: 1.5; }
.footer-loc .loc-name { color: var(--white); font-weight: 500; margin: 0 0 2px; }
.footer-loc p { margin: 0; font-size: 0.92rem; }
.footer-contact p { margin: 0 0 8px; }
.footer-contact a { color: rgba(255, 255, 255, 0.82); }
.footer-contact a:hover { color: var(--green); }
.footer-links h6 { color: var(--white); text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.76rem; margin: 0 0 16px; }
.footer-links ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: rgba(255, 255, 255, 0.78); font-size: 0.94rem; }
.footer-links a:hover { color: var(--green); }
.footer-bottom {
  margin-top: 56px; padding: 26px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem; color: rgba(255, 255, 255, 0.5);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.footer-bottom p { margin: 0; }
.back-to-top { color: rgba(255, 255, 255, 0.7); font-size: 0.85rem; }
.back-to-top:hover { color: var(--green); }

/* =========================================================
   Investment Management page
   ========================================================= */
/* Hohe Spezifitaet, damit .alt-bg den dunklen Hintergrund nicht ueberschreibt */
.quote-band,
.section.quote-band,
.section.quote-band.alt-bg {
  position: relative;
  background: linear-gradient(160deg, var(--teal) 0%, var(--teal-900) 100%);
  padding: clamp(80px, 10vw, 140px) 0;
  overflow: hidden;
}
.quote-band::before {
  content: "\201C";
  position: absolute; top: -0.12em; left: 4%;
  font-size: clamp(12rem, 26vw, 24rem);
  font-weight: 600; line-height: 1;
  color: rgba(95, 201, 1, 0.14);
  pointer-events: none;
}
.pull-quote { margin: 0; padding: 0; position: relative; }
.pull-quote p {
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  font-style: normal;
  color: var(--white);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -0.02em;
}
.pull-quote cite { display: block; margin-top: 22px; font-style: normal; font-weight: 500; color: var(--green); }

.commit-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; margin-top: 56px; }
.commit-card {
  position: relative;
  background: var(--bg); border: 0; border-radius: var(--radius-lg);
  padding: clamp(32px, 3.5vw, 46px);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.commit-card::after {
  content: "";
  position: absolute; top: 0; left: 0; height: 5px; width: 0;
  background: linear-gradient(90deg, var(--green), var(--accent));
  transition: width 0.45s var(--ease);
}
.commit-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.commit-card:hover::after { width: 100%; }
.commit-card h3 { font-size: 1.4rem; margin-bottom: 12px; }
.commit-card p { color: var(--slate); margin: 0; font-size: 0.97rem; }

.acquisition .split-text p { color: var(--slate); }
.acquisition .split-text .btn { margin-top: 12px; }

/* =========================================================
   Consulting page
   ========================================================= */
.numbers-inner { align-items: center; }
.numbers-headline {
  font-size: clamp(1.4rem, 2.6vw, 2rem); color: var(--teal); font-weight: 300;
  max-width: 26ch; margin: 20px 0 0; line-height: 1.45;
}
.big-figure { font-weight: 600; color: var(--green-deep); font-size: 1.2em; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin-top: 60px; }
.stats-2x2 { grid-template-columns: 1fr 1fr; gap: 48px 30px; margin-top: 0; }
.stat { text-align: center; }
.stat-num {
  display: block;
  font-size: clamp(3rem, 6vw, 4.6rem);
  font-weight: 600; color: var(--green-deep); line-height: 1; letter-spacing: -0.04em;
}
.stat-label { display: block; margin-top: 12px; color: var(--slate); font-size: 0.95rem; }

.dept-split { margin-top: 56px; }
.dept-split .split-text h3 { font-size: 1.8rem; }
.dept-split .split-text p { color: var(--slate); }

/* =========================================================
   Development page
   ========================================================= */
.development-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(48px, 6vw, 80px); align-items: center; }
.development-text p { color: var(--slate); }
.dev-slogan { font-size: 1.45rem; font-weight: 500; color: var(--green-deep) !important; margin-top: 22px; }
.development-media img { border-radius: var(--radius-lg); width: 100%; object-fit: cover; box-shadow: var(--shadow-sm); }
.sustainability .section-title { max-width: 22ch; margin-inline: auto; }
.sustainability-media { margin-top: 56px; }
.sustainability-media img { margin-inline: auto; border-radius: var(--radius-lg); }

/* =========================================================
   Legal / imprint
   ========================================================= */
.legal h3 { font-size: 1.25rem; margin: 34px 0 10px; }
.legal .legal-block { color: var(--slate); }
.legal p { color: var(--slate); }
.legal .eyebrow { margin-top: 1.6em; }

/* =========================================================
   Reveal on scroll + interaktive Module
   ========================================================= */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* Scroll-Fortschrittsleiste */
#scroll-progress {
  position: fixed; top: 0; left: 0; z-index: 3000;
  height: 3px; width: 0;
  background: linear-gradient(90deg, var(--green), var(--accent));
  border-radius: 0 3px 3px 0;
  pointer-events: none;
}

/* Wortweise animierte Headlines */
.words .w {
  display: inline-block; overflow: hidden; vertical-align: top;
  padding-bottom: 0.14em; margin-bottom: -0.14em;
}
.words .w > span {
  display: inline-block;
  transform: translateY(115%);
  transition: transform 0.75s var(--ease);
}
.words.words-in .w > span { transform: none; }

/* Gestaffelte Karten-Einblendung */
.reveal-item {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal-item.is-visible { opacity: 1; transform: none; }

/* Parallax-Medien: weiche Bewegung */
.hero-video { will-change: transform; }
.split-media img, .image-band img, .development-media img {
  will-change: transform;
  transition: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-item { opacity: 1; transform: none; transition: none; }
  .words .w > span { transform: none; transition: none; }
  .press-track, .claim-track { animation: none; }
  .hero-content h1, .hero-sub, .hero-cta { animation: none; }
  .services::before, .ecosystem::before, .contact::before, .fcheck::before,
  .hero-home::after, .footer-claim h2 em { animation: none; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1200px) {
  .primary-nav a { padding: 8px 9px; font-size: 0.8rem; }
  .header-right { gap: 10px; }
}

/* 360 Grad Puzzlerad: erst einspaltig, dann Labels als Reihe unter dem Rad */
@media (max-width: 1140px) {
  .eco-360 { grid-template-columns: 1fr; gap: clamp(28px, 5vw, 48px); }
  .eco-wheel { max-width: 620px; }
  .eco-panel-stack { min-height: 440px; }
}
@media (max-width: 620px) {
  .eco-wheel {
    aspect-ratio: auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px 8px;
    max-width: 420px;
    align-items: start;
  }
  .eco-wheel-svg { grid-column: 1 / -1; }
  .eco-label {
    position: static;
    transform: none;
    width: auto; max-width: 100%;
    padding: 8px 4px;
    border-radius: 14px;
    background: var(--bg-alt);
  }
  .eco-label:hover, .eco-label.is-active { transform: none; }
  .eco-label.is-active { background: var(--green-tint); }
  .eco-label-logo { height: 24px; max-width: 100%; }
  .eco-label-sub { font-size: 0.6rem; letter-spacing: 0.05em; }

  /* Auf kleinen Screens keine feste Reserve, sondern nur die aktive Karte */
  .eco-panel-stack { min-height: 0; }
  .eco-card {
    position: static; display: none;
    opacity: 1; visibility: visible; transform: none;
  }
  .eco-card.is-active { display: block; }
}

@media (max-width: 960px) {
  .service-grid, .board-grid, .commit-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .split, .join-inner,
  .acquisition-inner, .dept-inner, .development-inner, .contact-grid {
    grid-template-columns: 1fr; gap: 40px;
  }
  .dept-inner .dept-media { order: 2; }
  /* Keep image above text when stacking image-right layouts */
  .whatwedo .split-media { order: -1; }
}

@media (max-width: 1060px) {
  :root { --header-h: 76px; }
  .brand img { height: 38px; }

  .nav-toggle { display: flex; }
  .primary-nav {
    position: fixed; inset: calc(14px + 68px + 10px) 14px auto 14px;
    left: 14px; top: calc(14px + 68px + 10px); transform: none;
    background: var(--white); border: 1px solid var(--line);
    border-radius: 22px;
    transform: translateY(-130%); transition: transform 0.35s var(--ease), opacity 0.3s var(--ease);
    opacity: 0; pointer-events: none;
    box-shadow: var(--shadow-md); max-height: calc(100vh - 120px); overflow-y: auto;
  }
  .primary-nav.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .primary-nav ul { flex-direction: column; gap: 0; padding: 8px 0; }
  .primary-nav li { border-bottom: 1px solid var(--line); }
  .primary-nav li:last-child { border-bottom: 0; }
  .primary-nav a { display: block; padding: 16px 24px; font-size: 1.05rem; border-radius: 0; }
  .primary-nav a.is-active { background: var(--green-tint); color: var(--teal); }
}

@media (max-width: 720px) {
  .service-grid, .eco-grid, .board-grid, .commit-grid, .stats-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .field-row { grid-template-columns: 1fr; }
  .hero { min-height: 78vh; }
  .lang-switch a { padding: 5px 10px; }
}

/* =========================================================
   Track Record: Projekt-Grid
   ========================================================= */
.track-intro { padding-top: clamp(120px, 14vw, 190px); }
.track-intro p { color: var(--slate); }

.track-grid-section { padding-top: clamp(60px, 8vw, 100px); }

.track-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}

.track-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.track-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

.track-card-media { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: var(--bg-alt); }
.track-card-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.track-card:hover .track-card-media img { transform: scale(1.05); }

.track-card-body { padding: 18px 20px 22px; }
.track-card-body h3 {
  font-size: 1.02rem;
  margin: 0 0 4px;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.track-card-body p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--accent);
  font-weight: 400;
}

.track-numbers .stats-grid { margin-top: 56px; }

@media (max-width: 1060px) {
  .track-grid { grid-template-columns: repeat(3, 1fr); gap: 22px; }
}

@media (max-width: 780px) {
  .track-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
}

@media (max-width: 480px) {
  .track-grid { grid-template-columns: 1fr; }
}
