/* ============================================================
   W&H Holding — V2 Header (Referenz: Topbar hell + Foto-Block
   mit Buffer, Text zentriert auf dem Bild)
   Wird Sektion für Sektion erweitert. Fonts self-hosted.
   ============================================================ */

@font-face {
  font-family: 'Inter';
  font-style: normal; font-weight: 400; font-display: swap;
  src: url('assets/fonts/inter-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal; font-weight: 500; font-display: swap;
  src: url('assets/fonts/inter-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal; font-weight: 600; font-display: swap;
  src: url('assets/fonts/inter-latin-600-normal.woff2') format('woff2');
}

/* ---- Tokens ---- */
:root {
  --ink: #191f26;
  --ink-soft: #4d5866;
  --page: #fbfbfa;                          /* heller Grund wie Referenz */
  --night: #111417;                         /* Ink — Brand-Schwarz (CTA, dunkle Flaechen) */
  --r-lg: 26px;
  --frame: clamp(0.9rem, 1.8vw, 1.6rem);    /* Buffer um den Foto-Block */
}

/* ---- Base ---- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  /* Seitenende ist weiss: hinter dem Footer-Sheet + beim Ueberscrollen
     darf niemals das Grau auftauchen */
  background: var(--page);
}
body {
  margin: 0;
  /* Grau = unterste Ebene; die weissen Sections liegen als Blatt darauf */
  background: #e7e8ea;
  color: var(--ink);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
/* Weisses Blatt: Topbar bis Zahlen-Widgets */
.topbar, .hero, .companies, .founders, .stats { background: var(--page); }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* Sanfte Reveals (main.js setzt .is-visible) */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.8s ease, transform 0.8s ease;
  }
  .js [data-reveal].is-visible { opacity: 1; transform: none; }
}

/* ============================================================
   Top-Bar — hell, schlicht, wie Referenz
   ============================================================ */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: clamp(0.9rem, 2vw, 1.25rem) clamp(1.25rem, 3vw, 2.5rem);
  /* fixed overlay: liegt UEBER dem Hero, schiebt nichts im Flow.
     So kann der Hero dahinter wachsen, ohne dass sich etwas verschiebt. */
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  width: 100%;
  margin-inline: auto;
  /* transform bewusst NICHT animieren: translateX(-50%) muss beim Verwandeln
     sofort sitzen, sonst ruckelt/verschiebt sich die Zentrierung. Das Auto-Hide
     laeuft ueber 'top' (wird hier animiert). */
  transition: width 0.35s ease, top 0.35s ease, border-radius 0.35s ease,
              box-shadow 0.35s ease, background-color 0.35s ease, padding 0.35s ease;
}
/* Beim Scrollen: lange Pille, dauerhaft am oberen Rand */
.topbar.is-floating {
  top: 12px;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  width: min(calc(100% - 2 * var(--frame)), 1080px);
  border-radius: 999px;
  background: rgba(251, 251, 250, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 32px rgba(25, 31, 38, 0.12);
  padding: 0.6rem 1.4rem;
}
/* Auto-Hide: beim Runterscrollen gleitet die Pille per 'top' nach oben aus dem
   Bild, beim Hochscrollen kommt sie zurueck. transform (X-Zentrierung) bleibt
   unangetastet -> kein horizontaler Versatz, kein Ueberlauf. */
.topbar.is-floating.is-hidden {
  top: -80px;
}
.wordmark {
  display: inline-flex;
  align-items: center;
}
/* Offizielles Brand-Lockup (W&H | Holding) als Vektor.
   Hoehe an die alte Wortmarken-Optik angeglichen; skaliert mit der Topbar. */
.wordmark__logo {
  height: clamp(20px, 2.4vw, 26px);
  width: auto;
  display: block;
}
/* Normalzustand: volles Lockup sichtbar, Kurzform aus */
.wordmark__logo--short { display: none; }
/* Floating Pille: nur "W&H" (ohne "Holding"), etwas kompakter */
.topbar.is-floating .wordmark__logo--full { display: none; }
.topbar.is-floating .wordmark__logo--short {
  display: block;
  height: clamp(18px, 2.2vw, 22px);
}
.topbar__nav {
  display: flex;
  align-items: center;
  gap: clamp(1.1rem, 2.5vw, 2rem);
}
.topbar__nav a {
  font-size: 0.94rem;
  color: var(--ink);
  transition: opacity 0.2s ease;
}
.topbar__nav a:hover { opacity: 0.65; }
/* Rechtliche Links: dezent, sekundaer, mit feinem Trenner davor */
.topbar__legal {
  font-size: 0.86rem !important;
  color: var(--ink-soft) !important;
}
.topbar__legal:first-of-type::before {
  content: '';
  display: inline-block;
  width: 1px;
  height: 0.9em;
  background: var(--ink-soft);
  opacity: 0.3;
  margin-right: clamp(1.1rem, 2.5vw, 2rem);
  vertical-align: -0.05em;
}
.topbar__cta {
  background: var(--night);
  color: #fff !important;
  font-weight: 500;
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  transition: background 0.2s ease;
}
.topbar__cta:hover { background: #2a3037; opacity: 1 !important; }
@media (max-width: 700px) {
  .topbar__nav a:not(.topbar__cta) { display: none; }
}

/* ============================================================
   Hero — großer Foto-Block, abgerundet, mit Buffer
   ============================================================ */
.hero {
  /* Scrollweg gestaffelt: (1) gerahmtes Bild, (2) Wachsen auf Fullscreen,
     (3) das Sheet gleitet ueber die noch gepinnte Hero.
     Hoehe muss genug Sticky-Puffer bieten, damit das Sheet (100vh Ueberlappung)
     komplett drueberfliesst, bevor die Hero wegscrollt. */
  height: 240vh;
}
.hero__sticky {
  position: sticky;
  top: 0;
  height: 100svh;   /* fuellt IMMER den Viewport; nichts verschiebt sich */
  /* Initial: Ränder rundum. Oben Platz fuer die Topbar, damit das Bild
     vollstaendig UNTER ihr sichtbar ist. Beim Wachsen geht alles auf 0. */
  padding: var(--topbar-h, 72px) var(--frame) var(--frame);
}
/* Transition erst NACH dem ersten Frame freischalten (main.js setzt
   body.hero-ready). Sonst animiert der Hero beim initialen Laden / bei
   wiederhergestellter Scrollposition sichtbar in den is-full-Zustand. */
.hero-ready .hero__sticky {
  transition: padding 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}
/* Fullscreen: Raender verschwinden, Bild waechst an Ort und Stelle */
.hero__sticky.is-full { padding: 0; }
.hero__sticky.is-full .hero__frame { border-radius: 0; }
.hero__frame {
  position: relative;
  height: 100%;
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(rgba(12, 20, 28, 0.28), rgba(12, 20, 28, 0.28)),
    url('images/hero.jpg') center / cover no-repeat;
}
.hero-ready .hero__frame {
  transition: border-radius 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.hero__content {
  position: relative;
  text-align: center;
  color: #fff;
  padding: 2rem clamp(1.25rem, 4vw, 3rem);
  max-width: 60rem;
}
.hero__eyebrow {
  display: block;
  font-size: clamp(0.85rem, 1.2vw, 0.98rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 1rem;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.25);
}
.hero__title {
  margin: 0;
  font-size: clamp(2.6rem, 6.5vw, 5rem);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.03em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.3);
}
.hero__cta {
  display: inline-block;
  margin-top: clamp(1.5rem, 3.5vw, 2.25rem);
  background: #fff;
  color: var(--ink);
  font-weight: 500;
  font-size: 1rem;
  padding: 0.85rem 1.9rem;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hero__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.24);
}

/* ============================================================
   Die Unternehmen — Expander-Karten
   (aktive Karte wächst, verdrängt die Nachbarn; Logo oben links,
   Pfeil-Button oben rechts, Text unten nur im aktiven Zustand)
   ============================================================ */
.companies {
  padding: clamp(3.5rem, 7vw, 5.5rem) var(--frame) var(--frame);
  /* Bottom-Sheet: kommt mit runden Ecken von unten ueber den
     fullscreen-gepinnten Hero */
  position: relative;
  z-index: 2;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  /* Sheet gleitet ueber die NOCH gepinnte Hero: Ueberlappung = volle
     Viewport-Hoehe, damit das Sheet komplett drueberfliesst, bevor der
     Sticky-Puffer der Hero endet. */
  margin-top: -100vh;
}
.companies__head {
  text-align: center;
  margin-bottom: clamp(2rem, 4.5vw, 3rem);
}
.companies__eyebrow {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.18em;   /* Brand-Label-Tracking */
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.9rem;
}
.companies__title {
  margin: 0;
  font-size: clamp(1.9rem, 3.8vw, 2.9rem);
  font-weight: 600;
  letter-spacing: -0.025em;
}

.xcards {
  display: flex;
  gap: clamp(0.6rem, 1.2vw, 1rem);
  height: clamp(440px, 64vh, 620px);
}
.xcard {
  position: relative;
  flex: 1;
  border-radius: var(--r-lg);
  overflow: hidden;
  cursor: pointer;
  outline: none;
  background-position: center;
  background-size: cover;
  transition: flex 0.65s cubic-bezier(0.32, 0.72, 0.24, 1);
}
.xcard.is-active { flex: 2.4; cursor: pointer; }  /* ganze aktive Karte ist Link zur Firmen-Website */
.xcard:focus-visible { box-shadow: 0 0 0 3px rgba(51, 166, 255, 0.65); }
/* Brand-Farben als Vollton (statt Foto) */
.xcard--masetec { background-color: #1961AC; }   /* masetec-Blau  RGB 25/97/172  */
.xcard--ids     { background-color: #EA5B37; }   /* IDS/one Korallen-Orange RGB 234/91/55 */
.xcard--hlm     { background-color: #016085; }   /* hlm-elektronik-Blau RGB 1/96/133 */

/* Blende: nur dezente Abdunklung unten fuer die Textlesbarkeit auf dem Vollton */
.xcard::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 40%,
    rgba(0, 0, 0, 0.28) 100%
  );
  opacity: 0;
  transition: opacity 0.5s ease;
}
.xcard.is-active::after { opacity: 1; }   /* Text erscheint nur im aktiven Zustand */

/* Kleines Logo oben links: NUR im expandierten (aktiven) Zustand sichtbar */
.xcard__logo {
  position: absolute;
  top: clamp(1.1rem, 2vw, 1.5rem);
  left: clamp(1.1rem, 2vw, 1.5rem);
  height: clamp(24px, 2.6vw, 32px);
  width: auto;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.xcard.is-active .xcard__logo { opacity: 1; }

/* Mittiges Logo: zentral auf der Karte, verschwindet wenn die Karte aktiv wird
   (dann uebernehmen kleines Logo oben links + Textblock unten) */
.xcard__center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(56%, 220px);
  height: auto;
  z-index: 2;
  opacity: 1;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.xcard.is-active .xcard__center { opacity: 0; }
.xcard__go {
  position: absolute;
  top: clamp(0.9rem, 1.8vw, 1.25rem);
  right: clamp(0.9rem, 1.8vw, 1.25rem);
  z-index: 3;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.35s ease 0.15s, transform 0.35s ease 0.15s, background 0.2s ease;
}
.xcard.is-active .xcard__go { opacity: 1; transform: none; }
.xcard__go:hover { background: #e9edf0; }

.xcard__body {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  padding: clamp(1.25rem, 2.5vw, 2rem);
  width: clamp(300px, 34vw, 520px);   /* feste Breite: kein Umbruch-Zappeln beim Aufziehen */
  color: #fff;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.45s ease 0.18s, transform 0.45s ease 0.18s;
}
.xcard.is-active .xcard__body { opacity: 1; transform: none; }
.xcard__tag {
  display: block;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.18em;   /* Brand-Label-Tracking */
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 0.45rem;
}
.xcard__name {
  margin: 0 0 0.6rem;
  font-size: clamp(1.4rem, 2.2vw, 1.8rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.xcard__text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.85);
}
.xcard__for {
  margin: 0.85rem 0 0;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  padding-left: 0.9rem;
  border-left: 2px solid rgba(255, 255, 255, 0.55);
}

.companies__hint {
  margin: clamp(1.25rem, 3vw, 1.75rem) auto 0;
  text-align: center;
  font-size: 0.94rem;
  color: var(--ink-soft);
}
.companies__hint a {
  color: var(--ink);
  font-weight: 600;
  border-bottom: 1px solid rgba(25, 31, 38, 0.3);
}
.companies__hint a:hover { border-color: var(--ink); }

/* Mobil: vertikaler Stapel, aktive Karte wächst in der Höhe */
@media (max-width: 860px) {
  .xcards { flex-direction: column; height: auto; }
  .xcard {
    flex: none;
    height: 140px;
    transition: height 0.55s cubic-bezier(0.32, 0.72, 0.24, 1);
  }
  .xcard.is-active { height: 430px; }
  .xcard__body { width: auto; right: 0; }
}

/* ============================================================
   Die Gesellschafter — gerahmtes Sticky-Panel
   (Scroll wechselt Morris -> Markus, dann laeuft die Seite weiter.
   Referenz-Prinzip: Studio-Foto samt Hintergrund fuellt das Panel.)
   ============================================================ */
.founders {
  height: 270vh;   /* mehr Scrollweg: rein -> Fullscreen -> Wechsel -> raus */
  /* letzte weisse Section: das Blatt endet hier gerundet uebers Grau.
     Gleicher Stacking-Kontext wie .companies/.stats (durchgehendes Blatt). */
  position: relative;
  z-index: 2;
  border-radius: 0 0 var(--r-lg) var(--r-lg);
}
.founders__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: var(--frame);
  transition: padding 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
/* Voll in der Section: Panel geht smooth in Fullscreen (kein weisser Rand) */
.founders__sticky.is-full { padding: 0; }
.founders__sticky.is-full .founders__panel {
  border-radius: 0;
  border-color: transparent;
}
.founders__panel {
  position: relative;
  height: 100%;
  border: 1px solid rgba(25, 31, 38, 0.18);   /* der duenne Rahmen */
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #b7b2a8;                        /* warmes Greige (Wandton) */
  transition: border-radius 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.5s ease;
}
.founders__photo {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 0.55s ease;
}
.founders__photo.is-current { opacity: 1; }
.founders__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 2%;   /* mehr Kopffreiheit: oberer Bildrand bleibt sichtbar */
}

.founders__copy {
  position: absolute;
  /* tief genug, dass die schwebende Topbar-Pille den Text nie ueberlagert */
  top: clamp(5.5rem, 11vh, 8rem);
  left: clamp(1.5rem, 3.5vw, 3rem);
  z-index: 2;
  width: min(46ch, 44%);
}
.founders__copy h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2.6vw, 2.2rem);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: #fff;
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.35);
}
.founders__copy p {
  margin: 0.9rem 0 0;
  font-size: clamp(0.9rem, 1.15vw, 1rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.3);
  max-width: 38ch;
}

.founders__bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: clamp(1rem, 2.2vw, 1.5rem) clamp(1.5rem, 3.5vw, 3rem);
  background: linear-gradient(180deg, transparent, rgba(173, 168, 158, 0.6));
}
.founders__thumbs { display: flex; gap: 0.5rem; }
.founders__thumb {
  width: 52px;
  height: 52px;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.65);
  border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
  background: none;
  opacity: 0.55;
  transition: opacity 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.founders__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.founders__thumb.is-current {
  opacity: 1;
  border-color: #fff;
  transform: scale(1.06);
}
.founders__thumb:hover { opacity: 1; }
.founders__meta { position: relative; min-height: 2.6rem; flex: 1; }
.founders__id {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  opacity: 0;
  transition: opacity 0.45s ease;
}
/* Nicht-aktive Person: unsichtbar UND nicht klickbar */
.founders__id { pointer-events: none; }
.founders__id.is-current { opacity: 1; pointer-events: auto; }
/* Name/Rolle unten: weiss, mit Schatten fuer Lesbarkeit auf den Fotos */
.founders__id strong {
  font-size: 1.05rem; font-weight: 600; letter-spacing: -0.01em;
  color: #fff; text-shadow: 0 1px 10px rgba(0, 0, 0, 0.4);
}
.founders__id span {
  font-size: 0.85rem; color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.4);
}

/* LinkedIn als Button unter dem grossen Text; wechselt mit der Person.
   Beide liegen gestapelt am selben Ort, nur der aktive ist sichtbar. */
.founders__links { position: relative; margin-top: 1.5rem; min-height: 2.75rem; }
.founders__linkedin {
  position: absolute;
  left: 0;
  top: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.4s ease, transform 0.4s ease, background 0.2s ease;
}
.founders__linkedin.is-current {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}
.founders__linkedin svg { width: 18px; height: 18px; }
.founders__linkedin:hover { background: #e9edf0; }

@media (max-width: 860px) {
  .founders { height: 250vh; }
  .founders__copy { width: min(90%, 30rem); }
}

/* ============================================================
   Die Gruppe in Zahlen — Widget-Karten (hell / Foto / dunkel)
   ============================================================ */
.stats {
  /* liegt jetzt VOR der Gesellschafter-Section im weissen Blatt.
     Gleicher Stacking-Kontext wie .companies, damit das weisse Blatt
     durchgehend UEBER der Hero liegt und dahinter nichts durchscheint. */
  position: relative;
  z-index: 2;
  padding: clamp(2.5rem, 5vw, 4rem) var(--frame) clamp(1.5rem, 3vw, 2.5rem);
}
.stats__row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.75rem, 1.5vw, 1.1rem);
}
.sw {
  position: relative;
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 2.8vw, 2.1rem);
  min-height: clamp(150px, 18vw, 200px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}
.sw strong {
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1;
}
.sw span {
  margin-top: 0.5rem;
  font-size: 0.92rem;
}
.sw--light { background: #f2f1ec; color: var(--ink); }
.sw--light span { color: var(--ink-soft); }
.sw__avatars {
  position: absolute;
  top: clamp(1.1rem, 2vw, 1.5rem);
  right: clamp(1.1rem, 2vw, 1.5rem);
  display: flex;
}
.sw__avatars img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 3px solid #f2f1ec;
  object-fit: cover;
}
.sw__avatars img + img { margin-left: -12px; }
.sw--photo {
  background: #1961AC;   /* masetec-Blau, statt Foto — konsistent mit den Karten */
  color: #fff;
}
.sw--photo span { color: rgba(255, 255, 255, 0.85); }
.sw--dark { background: var(--night); color: #fff; }
.sw--dark span { color: rgba(255, 255, 255, 0.72); }
.sw__ghost {
  position: absolute;
  right: clamp(1rem, 2vw, 1.75rem);
  top: 50%;
  transform: translateY(-50%);
  font-style: normal;
  font-weight: 600;
  font-size: clamp(3.5rem, 7vw, 5.5rem);
  letter-spacing: -0.04em;
  color: rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

/* ============================================================
   International — grauer Vollbreite-Block mit gerundeter
   Oberkante (weisses Blatt endet), Header gross, Stat-Chips,
   Europa-Karte direkt auf dem Grau
   ============================================================ */
.world {
  /* transparent: das Grau der Seite IST der Hintergrund.
     Extra-Hoehe = Sticky-Puffer, damit der World-Inhalt gepinnt stehen bleibt,
     waehrend der kurze Footer sich mit ~1/3 (-33vh) drueberschiebt. */
  height: 200vh;
  /* liegt UNTER dem Footer (.closing z-index:2): das Sheet schiebt sich
     drueber, statt die Section wegzudruecken. */
  position: relative;
  z-index: 1;
}
.world__sticky {
  position: sticky;
  top: 0;
  min-height: 100svh;
  /* Inhalt naeher an die Oberkante der Section (vorher vertikal zentriert) */
  padding: clamp(4.5rem, 9vw, 7rem) var(--frame) 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  /* skalierter Globus ragt seitlich raus -> horizontal clippen (clip statt
     hidden: erzeugt keinen Scroll-Container, stoert Sticky nicht) */
  overflow-x: clip;
}
.world__title {
  margin: 0 0 clamp(1.75rem, 3.5vw, 2.5rem);
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.08;
  position: relative;
  z-index: 1;
}
.world__chips {
  list-style: none;
  margin: 0 0 clamp(1.5rem, 3vw, 2rem);
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(0.6rem, 1.2vw, 1rem);
  position: relative;
  z-index: 1;   /* Widgets liegen AUF dem Globus */
}
.chip {
  background: #fbfbfa;
  border-radius: 16px;
  padding: clamp(1rem, 2vw, 1.4rem) clamp(1.1rem, 2.2vw, 1.6rem);
}
.chip span {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;   /* Brand-Label-Tracking */
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.5rem;
}
.chip strong {
  font-size: clamp(1.6rem, 2.8vw, 2.3rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  color: var(--ink);
  line-height: 1;
}

.world__legend {
  position: relative;
  z-index: 1;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1.4rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.world__legend span { display: inline-flex; align-items: center; gap: 0.5rem; }
.world__legend small { font-size: 0.78rem; }
.world__legend-note { margin-left: auto; }
.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--night);
  flex: none;
  display: inline-block;
}
.dot--hq { background: #fff; border: 2.5px solid var(--night); }

/* Globus: komplette Kugel im Bild, ragt oben HINTER Chips + Legende
   (negativer Top-Margin, Chips/Legende haben z-index) und taucht unten
   hinter dem weissen Schluss-Blatt ab (negativer Bottom-Margin) */
.world__globe {
  display: block;
  width: min(100%, 1250px);
  /* zieht hoch hinter Chips/Legende; unten bewusst grosszuegig,
     damit die Kuppel hinter das gleitende Footer-Sheet reicht */
  margin: calc(-1 * clamp(5rem, 12vw, 10rem)) auto calc(-1 * clamp(3rem, 8vw, 7rem));
  /* naeher an Europa: hervorgehobene Laender liegen bei ~58%/42% im SVG.
     Zoom auf diesen Punkt, damit DE/AT/CH/IT/TR gross und mittig sitzen. */
  transform: scale(1.9);
  transform-origin: 58% 42%;
}

/* ============================================================
   Schluss + Footer — weisses Blatt schiebt sich gerundet
   ueber das Grau, kompakt, traegt den Abschluss + Footer
   ============================================================ */
.closing {
  /* Bottom-Sheet: faehrt als eigenes Blatt komplett UEBER die International-
     Section, genau wie .companies ueber die Hero. Voller Viewport-Overlap
     (-100vh), damit sich das Sheet drueberschiebt statt die Section
     wegzudruecken. Die sichtbare Footer-Laenge (Inhalt) bleibt unveraendert —
     nur die Blattflaeche fuellt den Overlap (siehe .closing__inner min-height). */
  background: var(--page);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  position: relative;
  z-index: 2;   /* liegt UEBER der World (z-index:1) -> schiebt sich drueber */
  /* Kurzer Footer, der sich mit ~1/3 ueber die vorherige Section schiebt. */
  margin-top: -33vh;
  box-shadow: 0 -18px 44px rgba(25, 31, 38, 0.1);
}
.closing__inner {
  min-height: 33vh;   /* kompakter Schluss: CTA oben, Footer darunter */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2.5rem;
  padding: clamp(2.5rem, 5vw, 4rem) var(--frame) 1.5rem;
}
/* CTA links, großes Logo rechts — füllt den leeren Raum im Bottom-Sheet. */
.closing__main {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
}
.closing__logo {
  justify-self: end;
  width: clamp(220px, 34vw, 480px);
  height: auto;
  opacity: 0.9;
  /* dezent: das Logo füllt, drängt sich aber nicht auf */
}
@media (max-width: 860px) {
  .closing__logo { display: none; }
}
.closing__cta-block h2 {
  margin: 0;
  font-size: clamp(1.9rem, 3.8vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.03em;
}
.closing__cta-block p {
  margin: 0.9rem 0 0;
  max-width: 44ch;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink-soft);
}
.closing__cta {
  display: inline-block;
  margin-top: 1.75rem;
  background: var(--night);
  color: #fff;
  font-weight: 500;
  font-size: 1rem;
  padding: 0.9rem 1.9rem;
  border-radius: 999px;
  transition: background 0.2s ease, transform 0.2s ease;
}
.closing__cta:hover { background: #2a3037; transform: translateY(-1px); }
.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(25, 31, 38, 0.1);
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.footer__nav { display: flex; gap: 1.5rem; }
.footer__nav a:hover { color: var(--ink); }

@media (max-width: 860px) {
  .stats__row { grid-template-columns: 1fr; }
  .sw { min-height: 130px; }
  .world__chips { grid-template-columns: repeat(2, 1fr); }
  .world__panel {
    position: static;
    max-width: none;
    margin-top: 0.75rem;
    background: #fbfbfa;
  }
}

/* ============================================================
   MOBILE (<=768px) — eigenes, statisches Layout.
   Alle Desktop-Scroll-Choreografien sind hier abgeschaltet (JS via isMobile()
   + CSS-Overrides). Aendert NICHTS an der Desktop-Ansicht.
   ============================================================ */
@media (max-width: 768px) {

  /* --- HERO: kein Expand, bleibt eingerahmt --- */
  .hero {
    height: auto;                 /* kein extra Scrollweg fuer die Expand-Animation */
  }
  .hero__sticky {
    position: static;             /* nicht mehr sticky/gepinnt */
    height: 78svh;                /* schoen grosses, gerahmtes Bild */
    padding: calc(var(--topbar-h, 64px) + 0.5rem) var(--frame) var(--frame);
    transition: none;
  }
  .hero__frame { border-radius: var(--r-lg); }   /* immer gerundet, nie fullscreen */

  /* --- TOPBAR: bleibt normal & sichtbar, nie Pille, nie versteckt --- */
  .topbar.is-floating {
    top: 0; left: 0; right: 0;
    transform: none;
    width: 100%;
    border-radius: 0;
    background: var(--page);
    box-shadow: none;
    padding: clamp(0.9rem, 2vw, 1.25rem) var(--frame);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .topbar.is-hidden { top: 0; }   /* Sicherheitsnetz: nie nach oben wegschieben */
  /* In der Topbar auf Mobile immer das volle Lockup zeigen (kein Kurz-W&H) */
  .wordmark__logo--full { display: block; }
  .wordmark__logo--short { display: none; }

  /* --- COMPANIES: Sheet nicht ueber Hero ziehen (Hero ist ja statisch) --- */
  .companies {
    margin-top: 0;
    border-radius: 0;
  }

  /* --- FOOTER: kein Sheet-Overlap mobil (keine Choreografie). Kompakter
     Schluss statt 100vh-Blatt, sonst klafft eine grosse Mittelluecke. --- */
  .closing { margin-top: 0; }
  .closing__inner { min-height: auto; justify-content: flex-start; }

  /* --- FIRMEN-KARTEN: simpel untereinander, volle Groesse, kein Expander --- */
  .xcards { flex-direction: column; height: auto; gap: 1rem; }
  .xcard,
  .xcard.is-active {              /* auch die aktive Karte: kein flex-Wachstum */
    flex: none;
    height: 340px;                /* volle, gleich grosse Karten */
    cursor: pointer;
    transition: none;            /* keine Expand-Animation */
  }
  /* Mobile = immer "expandiert": kleines Logo oben links + Text sichtbar,
     mittiges Logo aus, Textblock + Pfeil dauerhaft sichtbar */
  .xcard::after { opacity: 1; }
  .xcard__logo { opacity: 1; }
  .xcard__center { opacity: 0; }
  .xcard__go { opacity: 1; transform: none; }
  .xcard__body {
    opacity: 1;
    transform: none;
    width: auto;
    right: 0;
  }

  /* --- WIDGETS: nebeneinander als kleine Widgets --- */
  .stats__row { grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
  .sw { min-height: 120px; padding: 1rem 0.85rem; }
  .sw strong { font-size: clamp(1.4rem, 6vw, 2rem); }
  .sw span { font-size: 0.72rem; }
  .sw__avatars { display: none; }        /* zu eng fuer die Avatare im schmalen Widget */
  .sw__ghost { display: none; }

  /* --- UEBER UNS: Text mittig statt oben --- */
  .founders__copy {
    top: 50%;
    transform: translateY(-50%);
    left: clamp(1.25rem, 5vw, 2rem);
    right: clamp(1.25rem, 5vw, 2rem);
    width: auto;
  }

  /* --- INTERNATIONAL: Globus staerker auf Europa, unten nicht abschneiden --- */
  .world {
    height: auto;   /* kein Desktop-Scrollweg mobil (sticky ist hier aus) */
  }
  .world__globe {
    transform: scale(2.1);
    transform-origin: 58% 40%;
    /* weniger negativer Bottom-Margin, damit die Kuppel unten nicht abgehackt wird */
    margin: calc(-1 * clamp(2rem, 8vw, 5rem)) auto 0;
  }
  .world__sticky { overflow: clip; }     /* auch vertikalen Ueberhang sauber clippen */
}

/* ============================================================
   Kontakt-Popup — Gesellschafter direkt kontaktieren
   ============================================================ */
.contact[hidden] { display: none; }
.contact {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(1rem, 4vw, 2rem);
}
.contact__backdrop {
  position: absolute; inset: 0;
  background: rgba(10, 14, 18, 0.55);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  animation: contactFade 0.25s ease;
}
.contact__dialog {
  position: relative;
  width: min(560px, 100%);
  background: var(--page);
  border-radius: var(--r-lg);
  padding: clamp(1.75rem, 4vw, 2.5rem);
  box-shadow: 0 30px 80px rgba(10, 14, 18, 0.35);
  animation: contactPop 0.3s cubic-bezier(0.32, 0.72, 0.24, 1);
}
@keyframes contactFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes contactPop {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .contact__backdrop, .contact__dialog { animation: none; }
}
.contact__x {
  position: absolute; top: clamp(0.9rem, 2vw, 1.25rem); right: clamp(0.9rem, 2vw, 1.25rem);
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.contact__x:hover { background: var(--mist, #f1f2f4); border-color: var(--ink); }

.contact__head { text-align: center; margin-bottom: clamp(1.25rem, 3vw, 1.75rem); }
.contact__eyebrow {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-soft);
}
.contact__head h2 {
  margin: 0.6rem 0 0.4rem;
  font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 600; letter-spacing: -0.025em;
}
.contact__head p { margin: 0; color: var(--ink-soft); font-size: 0.98rem; max-width: 40ch; margin-inline: auto; }

.contact__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
@media (max-width: 520px) { .contact__cards { grid-template-columns: 1fr; } }

.pcard {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 1.4rem 1.25rem; text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.pcard__img {
  width: 76px; height: 76px; border-radius: 50%; object-fit: cover;
  border: 3px solid #fff; box-shadow: 0 0 0 1px var(--line); margin-bottom: 0.9rem;
}
.pcard__name { font-weight: 600; font-size: 1.05rem; letter-spacing: -0.01em; }
.pcard__role { font-size: 0.85rem; color: var(--ink-soft); margin-top: 0.15rem; }
.pcard__actions { margin-top: 1.1rem; display: flex; flex-direction: column; gap: 0.5rem; width: 100%; }
.pbtn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.65rem 1rem; border-radius: 999px; font-size: 0.9rem; font-weight: 500;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.pbtn:hover { transform: translateY(-1px); }
.pbtn svg { width: 17px; height: 17px; flex: none; }
.pbtn--primary { background: var(--night); color: #fff; }
.pbtn--primary:hover { background: #2a3037; }
.pbtn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.pbtn--ghost:hover { border-color: var(--ink); }

/* Wenn nur EIN Button (Markus): vertikal zentrieren, damit Karten gleich wirken */
.pcard__actions:has(.pbtn--wide) { justify-content: center; height: 100%; }
