/* SIGES Hero Split-Marquee — mwg_019 1:1 Adaption
   Layout/Spacing/Typo wie Demo. Theme-Font Ageo (vom Theme preloaded).
   Farben kommen aus ACF (default Brand).
   Barrierefrei: hoher Kontrast (Default: dark #3a3028 auf cream #f7f5f1 = 11:1).
*/

/* Dekorativer Hintergrund-Text — große Buchstaben hinter dem Hero-Content */
.siges-hero-split__deco {
  /* Reset — kein Theme-/Browser-Heading-Style */
  all: unset;
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;          /* Startposition: unten — GSAP animiert nach oben */
  z-index: 0;         /* hinter allem anderen */
  pointer-events: none;
  user-select: none;
  will-change: transform;
  /* Typo identisch zu .siges-ks__deco */
  font-family: 'Ageo', 'Inter', system-ui, sans-serif;
  font-size: clamp(4rem, 18vw, 22rem);
  font-weight: 800;
  line-height: 0.85;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: currentColor;
  padding-left: clamp(12px, 1.5vw, 24px);
  /* opacity via inline style (ACF-Feld) */
}
/* Word-Spread via globalem .gs-word-reveal (gsap-helpers.css definiert .gs-wr-*) */

/* Full-viewport breakout: durchbricht Elementor-Container-Constraints */
.siges-hero-split {
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  width: 100vw;
  max-width: 100vw;
  display: flex;
  align-items: center;
  /* Mobile-Fix: 100vh ist auf iOS/Android größer als sichtbar (browser
     chrome) → Hero ragt unten raus. 100dvh = echter visible viewport. */
  height: 100vh;
  height: 100dvh;
  min-height: 600px;
  overflow: hidden;
  font-family: 'Ageo', -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
  font-weight:600!important;
  box-sizing: border-box;
  /* Figma: 16px Margin links */
  padding: 0 0 0 16px;
}

/* SVG Background — dekorativ, absolut positioniert hinter allen Inhalten */
.siges-hero-split__svg-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.siges-hero-split__svg-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.7;
  /* Blur wird per GSAP via --map-blur animiert (map-parallax.js) — fadet in der
     Projekte-Section ein. Default 0px = scharf. */
  filter: blur(var(--map-blur, 0px));
  will-change: transform, filter;
  transform-origin: center center;
}

/* Eingeloggte User: Admin-Bar 32px abziehen damit Hero immer den visible viewport füllt.
   Auch hier vh→dvh fallback für Mobile-Address-Bar-Korrektheit. */
body.admin-bar .siges-hero-split {
  height: calc(100vh - 32px);
  height: calc(100dvh - 32px);
}
@media (max-width: 782px) {
  body.admin-bar .siges-hero-split {
    height: calc(100vh - 46px);
    height: calc(100dvh - 46px);
  }
}

/* Hero auf einer UG-Seite = NORMALE Hero-Höhe (100vh, wie überall). KEINE Extra-Höhe.
   Der nahtlose Übergang wird stattdessen erreicht, indem die UG ihren Nav-Tuck
   (margin-top:-section-top) weglässt, wenn ein Hero davor sitzt — siehe
   `body:has(.siges-hero-split) .siges-ug` in unternehmensgruppe.css. So bleibt der
   Hero exakt 100vh und Slide 1 beginnt sauber an der Hero-Unterkante (kein Peek). */

/* Elementor-Widget-Wrapper um Hero nullen — kein extra padding/min-height */
.elementor-widget-shortcode:has(.siges-hero-split),
.elementor-widget-shortcode:has(.siges-hero-split) .elementor-widget-container,
.elementor-widget-shortcode:has(.siges-hero-split) .elementor-shortcode {
  padding: 0 !important;
  margin: 0 !important;
  min-height: 0 !important;
  line-height: 0 !important;
}
/* Elementor-Container des Hero auch */
.e-con:has(> .e-con-inner > .elementor-widget-shortcode .siges-hero-split),
.e-con:has(.elementor-shortcode > .siges-hero-split),
.elementor-element:has(> .elementor-widget-container > .elementor-shortcode > .siges-hero-split) {
  padding: 0 !important;
  margin: 0 !important;
  min-height: 0 !important;
}
.siges-hero-split *,
.siges-hero-split *::before,
.siges-hero-split *::after {
  box-sizing: border-box;
}

/* Scroll-Anchor Sentinel — sitzt am unteren Rand der Hero-Section.
   Section-Top bei Viewport Y = nav-height (direkt unter der Nav). */
.siges-hero-split__end-anchor {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
  pointer-events: none;
  scroll-margin-top: var(--siges-section-top, 82px);
}

/* Bottom-Pills — bündig mit globalem --siges-side-pad */
.siges-hero-split__header {
  display: flex;
  align-items: flex-end;
  position: absolute;
  bottom: 28px;
  left: var(--siges-side-pad, 50px);
  z-index: 5;
  line-height: 1;
}

/* Bottom-Left Find-CTA (Desktop) */
.siges-hero-split__pill--find {
  position: absolute;
  bottom: 28px;
  left: var(--siges-side-pad, 50px);
  right: auto;
  z-index: 5;
}

/* Pill Base — beide Pills exakt gleiche Box-Metrics */
.siges-hero-split .siges-hero-split__pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border: 1px solid transparent;
  border-radius: 999px;
  box-sizing: border-box;
  height: 48px;
  font-family: 'Ageo', 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.22s ease, color 0.22s ease, transform 0.18s ease, box-shadow 0.22s ease;
  box-shadow: 0 2px 8px rgba(58, 48, 40, 0.10);
}
.siges-hero-split .siges-hero-split__pill-arrow {
  display: inline-block;
  transition: transform 0.22s ease;
}
.siges-hero-split .siges-hero-split__pill:hover {
  transform: translateY(-2px);
  text-decoration: none;
}
.siges-hero-split .siges-hero-split__pill:hover .siges-hero-split__pill-arrow {
  transform: translateX(3px);
}

/* Klingt gut? — Accent-Farbe des Hero-Owners (--accent via ACF rh_split_accent) */
.siges-hero-split .siges-hero-split__pill--talk {
  background: var(--rh-btn-bg, var(--accent, #d6d1be));
  color: var(--rh-btn-text, var(--siges-text, #2C2825));
  border-color: transparent;
}
.siges-hero-split .siges-hero-split__pill--talk:hover {
  background: var(--rh-btn-bg, var(--accent, #d6d1be));
  filter: brightness(0.93);
  color: var(--rh-btn-text, var(--siges-text, #2C2825));
  box-shadow: 0 6px 18px rgba(58, 48, 40, 0.14);
}

/* Immobilien finden — Forest-Green, weiße Schrift */
.siges-hero-split .siges-hero-split__pill--find {
  background: var(--siges-forest-green, #58886D);
  color: var(--siges-bg, #F7F5F1);
  box-shadow: 0 2px 10px rgba(88, 136, 109, 0.32);
}
.siges-hero-split .siges-hero-split__pill--find:hover {
  background: var(--siges-forest-green, #58886D);
  filter: brightness(0.85);
  color: var(--siges-bg, #F7F5F1);
  box-shadow: 0 6px 20px rgba(88, 136, 109, 0.42);
}

/* Mobile: Pills bleiben, Side-Padding 14px (einheitlich mit Nav + Hero-Content) */
@media (max-width: 1024px) {
  /* Desktop-Offset (Figma x=192 → margin-left:176px) ab Tablet aufheben — Hero ist
     hier gestackt (Bild unten), Content soll full-width/links statt schwebend-mittig. */
  .siges-hero-split__card {
    margin-left: 0 !important;
    max-width: 100% !important;
  }
  .siges-hero-split__header {
    left: var(--siges-side-pad, 24px);
    bottom: 14px;
  }
  /* Mobile: Find-CTA horizontal zentriert */
  .siges-hero-split__pill--find {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    bottom: 14px;
  }
  .siges-hero-split .siges-hero-split__pill--find:hover {
    transform: translateX(-50%) translateY(-2px);
  }
  .siges-hero-split .siges-hero-split__pill {
    padding: 0.7rem 1.15rem;
    font-size: 0.85rem;
    height: 42px;
  }
}
@media (max-width: 480px) {
  .siges-hero-split__header {
    left: 12px;
    bottom: 12px;
  }
  .siges-hero-split__pill--find {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    bottom: 12px;
  }
}

/* Text-Wrapper: bleibt flex:1 / stretch damit Marquee-Container nicht bricht */
.siges-hero-split__text {
  position: relative;  /* eigener Stacking-Level über der absolut positionierten Deco-Typo */
  z-index: 2;          /* > .siges-hero-split__deco (z-index:0) → Card liegt VOR der Deko */
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-self: stretch;
  padding: 0;
}

/* Inner Card — umschließt Eyebrow + Big-Title */
.siges-hero-split__card {
  /* Figma: x=192 (176px offset), w=448, h=448 — quadratisch */
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
  flex-shrink: 0;
  margin-left: 176px;
  width: clamp(311px, 36vw, 571px);
  height: clamp(311px, 36vw, 571px);
  overflow: hidden; /* Card wächst nie über Square hinaus */
  /* --rh-card-bg via ACF siges_brand_color_field → siges_hex_to_rgba */
  background: var(--rh-card-bg, rgba(255, 255, 255, 0.96));
  color: var(--rh-card-text, inherit);
  border-radius: 20px;
  padding: 1.75rem 2rem;
  box-shadow: 0 4px 24px rgba(44, 40, 37, 0.10), 0 1px 4px rgba(44, 40, 37, 0.06);
  backdrop-filter: saturate(130%) blur(4px);
  -webkit-backdrop-filter: saturate(130%) blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.7);
}

/* Effekte ein/aus per ACF-Toggle — für reinen Text bzw. Card ohne Effekte.
   Blur-aus entfernt auch den Glas-Rand (gehört zum Glas-Effekt). */
.siges-hero-split__card--no-blur {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-color: transparent !important;
}
/* Drop-Shadow aus → auch Eyebrow-Pill (__h1) + CTA-Button (__pill) flach. */
.siges-hero-split__card--no-shadow,
.siges-hero-split__card--no-shadow .siges-hero-split__h1,
.siges-hero-split__card--no-shadow .siges-hero-split__pill {
  box-shadow: none !important;
}

/* Card mit aktiven Roll-Buchstaben (große Sonder-Buchstaben) braucht auf Desktop mehr
   Breite/Höhe, damit lange Roll-Wörter (z.B. „Greenbuilding") nicht umbrechen oder
   abgeschnitten werden. Greift nur wenn ein .roll im Card-Heading vorhanden ist. */
@media (min-width: 1025px) {
  .siges-hero-split__card:has(.siges-hero-split__roll) {
    width: clamp(311px, 48vw, 880px);
    height: clamp(311px, 48vw, 880px);
  }
}

/* Title IN der Card — Font/Weight/Spacing auf ALLE Title-Nachfahren (`*`), damit JEDER
   Buchstabe die Größe erbt (auch statischer Text vor dem Roll, z.B. „Nur" im <b>-Tag).
   --rh-title-lh steuert die line-height — auch für den Roll-Slot (Baseline-Flucht). */

/* DEFAULT (alle Heros AUSSER Homepage) = Topic-Header-Größe. */
.siges-hero-split .siges-hero-split__card {
  --rh-title-lh: 1.1;
}
.siges-hero-split .siges-hero-split__card .siges-hero-split__title,
.siges-hero-split .siges-hero-split__card .siges-hero-split__title * {
  font-size: var(--sg-font-hero, clamp(1.75rem, 2.8vw, 3.2rem)) !important;
  font-weight: var(--sg-fw-hero, 700) !important;
  letter-spacing: var(--sg-ls-hero, -0.02em) !important;
}
.siges-hero-split .siges-hero-split__card .siges-hero-split__title,
.siges-hero-split .siges-hero-split__card .siges-hero-split__title *:not(.siges-hero-split__roll):not(.siges-hero-split__roll-word) {
  line-height: var(--rh-title-lh, 1.1) !important;
}

/* HOMEPAGE: extra-große Sonder-Buchstaben (mobil 2.6vw, Desktop 4vw), line-height 1.3. */
body.home .siges-hero-split .siges-hero-split__card {
  --rh-title-lh: 1.3;
}
body.home .siges-hero-split .siges-hero-split__card .siges-hero-split__title,
body.home .siges-hero-split .siges-hero-split__card .siges-hero-split__title * {
  font-size: clamp(1rem, 2.6vw, 3.1rem) !important;
  font-weight: 600 !important;
  letter-spacing: -0.01em !important;
}
@media (min-width: 1025px) {
  body.home .siges-hero-split .siges-hero-split__card .siges-hero-split__title,
  body.home .siges-hero-split .siges-hero-split__card .siges-hero-split__title * {
    font-size: clamp(2rem, 4vw, 7rem) !important;
  }
}

/* „Klingt gut?" CTA in der Card — inline, kein absolute */
.siges-hero-split__pill--in-card {
  position: static;
  display: inline-flex;
  align-self: flex-start;
  margin-top: 1.5rem;
}

/* Head-Gruppe: Eyebrow + Big-Title + Subline. Füllt den Raum über der Pill und
   zentriert seinen Inhalt vertikal → Heading mittig statt oben (space-between der
   Card hätte die Gruppe sonst an den oberen Rand gedrückt). Pill bleibt unten. */
.siges-hero-split__head {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Subline / Lead-Text (ACF rh_subline) — kurzer Lead unter dem Big-Title. */
.siges-hero-split__lead {
  margin: 0.9rem 0 0;
  font-family: 'Ageo', Inter, system-ui, sans-serif;
  font-size: clamp(14px, 1vw, 17px);
  line-height: 1.5;
  font-weight: 800;
  letter-spacing: 0.02em;
  max-width: 46ch;
  color: var(--rh-card-text, inherit);
  opacity: 0.82;
}

/* H1 sitzt direkt ÜBER den Big-Letters — Card übernimmt Padding */
.siges-hero-split__h1 {
  /* White Pill — Brand Design Rules */
  display: inline-block !important;
  /* Card ist Flex-Column (align-items:stretch) → Pill würde sonst auf volle Breite gezogen.
     align-self:flex-start lässt sie auf Inhaltsbreite schrumpfen (Bubble endet am Text). */
  align-self: flex-start !important;
  width: auto !important;
  max-width: 100% !important;
  /* Kein Umbruch — Pill ist eine einzeilige Kapsel. Auf Mobile wird die Schrift
     kleiner statt die Pille zu brechen. */
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  background: #ffffff !important;
  border-radius: 999px !important;
  padding: 6px 16px !important;
  box-shadow: 0 2px 8px rgba(44, 40, 37, 0.08) !important;
  font-family: 'Courier Prime', 'Courier New', Courier, monospace !important;
  font-size: clamp(9px, 1.6vw, 14px) !important;
  font-weight: 700 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  color: var(--siges-gold, #BE9B53) !important;
  line-height: 1.3 !important;
  margin: 0 0 1.25rem 0 !important;
}

/* Titel nicht mehr flex:1 (würde Eyebrow nach oben + CTA nach unten drücken) → Inhaltshöhe.
   Eyebrow + Titel bilden so eine Gruppe; CTA wird per margin-top:auto nach unten gepinnt. */
.siges-hero-split .siges-hero-split__card .siges-hero-split__title {
  flex: 0 1 auto !important;
}
.siges-hero-split__card .siges-hero-split__pill--in-card {
  margin-top: auto !important;
  /* Größerer CTA in der Card (nur in-card, Header-Pills unverändert) */
  height: auto;
  padding: 1.05rem 2.2rem;
  font-size: 1.15rem;
  gap: 0.6rem;
}
.siges-hero-split__card .siges-hero-split__pill--in-card .siges-hero-split__pill-arrow {
  font-size: 1.3em;
}

/* Innerhalb Text-Wrapper: Title nicht mehr flex:1 (Wrapper übernimmt das),
   Title-Top-Padding raus (H1 ist jetzt visuell der Top-Anker) */
.siges-hero-split__text .siges-hero-split__title {
  flex: 0 0 auto !important;
  padding-top: 0 !important;
}

/* Legacy 600px-Block entfernt — wird vom 1024px mobile-hero Block abgedeckt */

/* GIANT Title (dekorativ, kein semantischer H1).
   Demo: font: 500 normal 10vw / 0.8, letter-spacing -0.05em
   Theme-Font Ageo, fallback Inter/system. Override-Hardening. */
.siges-hero-split .siges-hero-split__title,
.siges-hero-split .siges-hero-split__title {
  font-family: 'Ageo', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-size: var(--sg-font-display, clamp(28px, 3.6vw, 84px)) !important;
  line-height: var(--sg-lh-display, 1.02) !important;
  letter-spacing: var(--sg-ls-display, 0.1px) !important;
  font-weight: var(--sg-fw-display, 700) !important;
  flex: 1;
  padding: 0 !important;
  margin: 0;
  color: currentColor;
  word-break: break-word;
  hyphens: auto;
  -webkit-hyphens: auto;
  min-width: 0;
  text-transform: none;
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.siges-hero-split__title br {
  display: block;
}

/* Inline-Highlights im Title:
   <em>     = Gold          --siges-gold
   <b>      = Forest-Green  --siges-forest-green
   <i>      = Orange        --siges-highlight-orange
   <strong> = Brown         --siges-brown              */
.siges-hero-split__title em {
  font-style: normal;
  color: var(--siges-gold, #BE9B53);
}
.siges-hero-split__title b {
  font-weight: inherit;
  color: var(--siges-forest-green, #58886D);
}
.siges-hero-split__title i {
  font-style: normal;
  color: var(--siges-highlight-orange, #FF8D5F);
}
.siges-hero-split__title strong {
  font-weight: inherit;
  color: var(--siges-text, #2C2825);
}

/* Asymmetrische Lines (mwg_019-Style) */
.siges-hero-split__line {
  display: block;
  width: 100%;
}
.siges-hero-split__line--left {
  text-align: left;
}
.siges-hero-split__line--indent {
  padding-left: 10vw;
}
.siges-hero-split__line--right {
  text-align: right;
}
.siges-hero-split__line--center {
  text-align: center;
}
.siges-hero-split__line--spread {
  display: flex;
  justify-content: space-between;
  padding-left: 6vw;
}
.siges-hero-split__line--spread .siges-hero-split__word {
  display: inline-block;
}

@media (max-width: 600px) {
  .siges-hero-split__line--indent {
    padding-left: 0;
  }
  .siges-hero-split__line--spread {
    display: block;
    padding-left: 0;
  }
  .siges-hero-split__line--spread .siges-hero-split__word + .siges-hero-split__word {
    margin-left: 0.4em;
  }
}

/* Sphere-Container: 40vw breite rechte Spalte, volle Hero-Höhe.
   KEIN overflow:hidden hier — killt preserve-3d auf Sphere-Children.
   Clipping übernimmt das äußere .siges-hero-split {overflow:hidden}. */
.siges-hero-split__container {
  width: 40vw;
  align-self: stretch !important;
  height: 100% !important;
  min-height: 100%;
  margin: 0;
  overflow: visible;
  position: relative;
  flex-shrink: 0;
}

/* Sphere-Wrap: perspective-origin für 3D-Tiefensortierung.
   Fade-in via CSS — funktioniert auch ohne GSAP. */
.siges-hero-split__sphere-wrap {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  animation: siges-sphere-fadein 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
}

@keyframes siges-sphere-fadein {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}

/* Sphere-Root: kein position — Images sind absolut zum Container */
.siges-hero-split__sphere {
  width: 0;
  height: 0;
}

/* Sphere-Bilder — stärkerer Selektor (0,2,0) schlägt .elementor img (0,1,1) */
.siges-hero-split .siges-hero-split__sphere-img {
  position: absolute;
  width: 9vw;
  height: 9vw;
  max-width: none;
  max-height: none;
  object-fit: cover;
  transform-style: preserve-3d;
  left: 50%;
  top: 50%;
  margin-left: -4.5vw;
  margin-top: -4.5vw;
  border-radius: 0.5vw;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.siges-hero-split__content {
  display: flex;
  flex-direction: column;
  row-gap: 25px;
  height: max-content;
  width: 100%;
  margin: 0;
  padding: 0;
  will-change: transform;
}

/* Demo: aspect-ratio 1.7, border-radius 0.4em */
.siges-hero-split__media {
  aspect-ratio: 1.7;
  border-radius: 0.4em;
  overflow: hidden;
  pointer-events: none;
}

.siges-hero-split__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* =============================================================================
   Mobile (≤768px) — Layout-Switch:
   Heading-Block (Eyebrow + Giant Title) OBEN, darunter EIN Bild mit
   vertikaler Fade-Rotation. Pills bleiben absolute bottom-left/right.
   ============================================================================= */
@media (max-width: 1024px) {
  .siges-hero-split {
    flex-direction: column !important;
    height: 100dvh;
    min-height: 100dvh;
    align-items: stretch;
    padding: 0 !important;
    overflow: hidden;
  }

  /* Text-Block TOP (Eyebrow + Giant Title) — mehr Atem oben und unten.
     Side-Padding 14px — einheitlich mit Nav-Outer und Pills.
     padding-top = Nav-Höhe (--nav-h wechselt per Media-Query 80→64px) +
     kleiner Atemraum, damit Card-Oberkante bündig mit Nav-Unterkante sitzt.
     flex: 1 1 auto → Text wächst und füllt den Raum ÜBER dem Bild,
     damit das Bild zuverlässig am unteren Rand sitzt. */
  .siges-hero-split__text {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    width: 100% !important;
    padding: calc(var(--nav-h, 64px) + 12px) 14px 24px !important;
    justify-content: flex-start !important;
    order: 1;
  }
  /* Card: feste Höhe + overflow:hidden clippt die Eyebrow-Pille auf Mobile → aufheben */
  .siges-hero-split__card {
    height: auto !important;
    min-height: 0 !important;
    justify-content: flex-start !important;
    gap: 0.75rem !important;
    width: 100% !important;
  }
  /* Eyebrow-Pille */
  .siges-hero-split__h1 {
    margin: 0 0 0.5rem 0 !important;
    font-size: clamp(9px, 2vw, 11px) !important;
    letter-spacing: 0.1em !important;
    padding: 5px 14px !important;
  }
  /* Heading — Mobile-Größe so kalibriert dass die längste Zeile
     ("Kein Greenwashing." 17 chars) auf 375px-Viewport-Width noch in EINE
     Zeile passt (= kein Umbruch). Ageo-Bold char-width ≈ 0.55 × font-size:
     17 × 0.55 × 36 ≈ 337px, passt in 359px (375 - 16 padding).
     Previously: calc(clamp(36px, 9vw, 60px) + 8px) → ~44px auf 375px viewport
     → "Greenwashing." brach. Jetzt: clamp(30px, 8.5vw, 52px) → ~32-36px. */
  .siges-hero-split .siges-hero-split__title,
  body.home .siges-hero-split .siges-hero-split__card .siges-hero-split__title,
  body.home .siges-hero-split .siges-hero-split__card .siges-hero-split__title * {
    padding: 0 !important;
    font-size: clamp(30px, 8.5vw, 52px) !important;
    line-height: 1.17 !important;
    font-weight: 700 !important;
  }
  /* CTA: auf Mobile etwas kleiner — kompakter als Desktop-Version */
  .siges-hero-split__card .siges-hero-split__pill--in-card {
    margin-top: 1rem !important;
    font-size: 0.875rem !important;
    padding: 0.65rem 1.3rem !important;
    height: auto !important;
    gap: 0.4rem !important;
  }
  /* Asymmetrische Lines auf Mobile: kein Indent / Spread, alles links */
  .siges-hero-split__line--indent,
  .siges-hero-split__line--spread {
    padding-left: 0 !important;
    justify-content: flex-start !important;
    display: block !important;
  }
  .siges-hero-split__line--spread .siges-hero-split__word + .siges-hero-split__word {
    margin-left: 0.3em !important;
  }

  /* Image-Container: Landscape-Aspect 16/10 — wide statt square.
     Side-Padding 14px (= 28px Subtraktion). margin-top: 0 weil der
     Text-Block (flex:1) den Raum darüber füllt → Container sitzt
     automatisch am unteren Ende. margin-bottom: 96px = Platz für Pills. */
  .siges-hero-split__container {
    flex: 0 0 auto !important;
    width: calc(100% - 28px) !important;
    max-width: 560px;
    margin: 0 auto 96px !important;
    aspect-ratio: 16 / 10;
    height: auto !important;
    min-height: 0;
    overflow: hidden;
    padding: 0 !important;
    order: 2;
    position: relative;
    border-radius: 1.2em;
  }

  /* Content (Track) — Stage für gestapelte Images */
  .siges-hero-split__content {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    transform: none !important; /* GSAP-Marquee Reset */
    padding: 0 !important;
  }

  /* Alle Media-Boxen absolut gestapelt — nur .is-active sichtbar */
  .siges-hero-split__media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    border-radius: 1.2em;
    opacity: 0;
    transition: opacity 0.9s cubic-bezier(0.32, 0.72, 0, 1);
  }
  .siges-hero-split__media.is-active {
    opacity: 1;
  }
  .siges-hero-split__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
}

/* Sehr schmale Bildschirme: Pills + Heading-Padding minimal kompakter */
@media (max-width: 480px) {
  .siges-hero-split__text {
    padding: calc(var(--nav-h, 64px) + 8px) 12px 20px !important;
  }
  .siges-hero-split .siges-hero-split__title,
  .siges-hero-split .siges-hero-split__title {
    font-size: clamp(26px, 8.2vw, 42px) !important;
  }
  /* Lange Zusammensetzungen dürfen notfalls trennen statt zu overflowen */
  .siges-hero-split__line { overflow-wrap: anywhere; word-break: normal; }
  .siges-hero-split__container {
    width: calc(100% - 24px) !important;
  }
  /* Card padding enger auf sehr kleinen Screens */
  .siges-hero-split__card {
    padding: 2rem 0.5rem 1.25rem !important;
    max-width: 100% !important;
    border-radius: 14px !important;
  }
}

/* ── Mobile Sphere: Bilder füllen den Container (fade-rotation via JS) ── */
@media (max-width: 768px) {
  .siges-hero-split__sphere-wrap {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    perspective: none !important;
  }
  .siges-hero-split__sphere {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    transform-style: flat !important;
  }
  /* Alle Sphere-Bilder füllen den Container, sichtbar via GSAP autoAlpha */
  .siges-hero-split .siges-hero-split__sphere-img {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    left: 0 !important;
    top: 0 !important;
    transform: none !important;
    object-fit: cover !important;
    border-radius: 1.2em !important;
    opacity: 0;
  }
  /* Erstes Bild sichtbar bis GSAP initialisiert */
  .siges-hero-split .siges-hero-split__sphere-img:first-child {
    opacity: 1;
  }
}

/* Reduced-Motion respektieren */
@media (prefers-reduced-motion: reduce) {
  .siges-hero-split__content {
    transform: none !important;
  }
}

/* ===== Meeting Popup ===== */
.siges-hero-split__word--meeting {
  position: relative;
}
.siges-hero-split__word--meeting em {
  cursor: pointer;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-decoration-color: var(--siges-gold, #BE9B53);
  text-underline-offset: 6px;
}

.siges-hero-meeting-popup {
  display: block;
  position: absolute;
  bottom: calc(100% + 14px);
  left: 0;
  width: 260px;
  background: var(--siges-bg, #F7F5F1);
  border-radius: 14px;
  padding: 20px 22px;
  box-shadow: 0 12px 48px rgba(44, 40, 37, 0.16), 0 2px 8px rgba(44, 40, 37, 0.06);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 200;
  white-space: normal;
  line-height: 1.4;
  letter-spacing: normal;
  font-weight: 400;
  font-size: 16px;
}
/* Caret */
.siges-hero-meeting-popup::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 28px;
  border: 7px solid transparent;
  border-top-color: var(--siges-bg, #F7F5F1);
}
.siges-hero-meeting-popup.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.siges-hero-meeting-popup__head,
.siges-hero-meeting-popup__sub {
  display: block;
}
.siges-hero-meeting-popup__head {
  font-family: 'Ageo', 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--siges-text, #2C2825);
  margin: 0 0 0.25rem;
  letter-spacing: -0.01em;
}
.siges-hero-meeting-popup__sub {
  font-family: 'Ageo', 'Inter', sans-serif;
  font-size: 0.875rem;
  color: var(--siges-text-muted, #6b6357);
  margin: 0 0 1rem;
  font-weight: 400;
}
.siges-hero-meeting-popup__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--siges-highlight-orange, #FF8D5F);
  color: var(--siges-bg, #F7F5F1);
  border-radius: 999px;
  padding: 0.55rem 1.15rem;
  font-family: 'Ageo', 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, gap 0.2s ease;
  white-space: nowrap;
  letter-spacing: 0;
}
.siges-hero-meeting-popup__cta:hover {
  background: var(--siges-highlight-orange, #FF8D5F);
  filter: brightness(0.88);
  gap: 0.65rem;
  text-decoration: none;
  color: var(--siges-bg, #F7F5F1);
}

/* ─── Word-Roll Animation ──────────────────────────────────────────────
   Inline-Element das mehrere Wörter durchrolliert (Slot-Machine-Style).
   PHP-Syntax in ACF-Text: {Greenbuilding|Greenthinking|Greenliving}
   JS: hero-split.js setzt eine GSAP-Loop drauf wenn im Viewport.
*/
.siges-hero-split__roll {
  display: inline-block;
  vertical-align: top;
  overflow: hidden;
  /* Slot-Höhe = .roll-word Höhe (JS steppt um word.getBoundingClientRect().height) UND
     = Title-line-height (--rh-title-lh) → Baseline des Roll-Worts fluchtet mit „Nur". */
  height: calc(1em * var(--rh-title-lh, 1.3));
  line-height: var(--rh-title-lh, 1.3);
  position: relative;
}
.siges-hero-split__roll-track {
  display: flex;
  flex-direction: column;
  /* Initial: track sitzt so dass das erste Wort sichtbar ist */
  transform: translateY(0);
  will-change: transform;
}
.siges-hero-split__roll-word {
  display: block;
  height: calc(1em * var(--rh-title-lh, 1.3)); /* = Slot-Höhe = Title-line-height → Baseline-Flucht */
  line-height: var(--rh-title-lh, 1.3);
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  .siges-hero-split__roll-track {
    transform: none !important;
    transition: none !important;
  }
  /* Statisch: nur das erste Wort zeigen */
  .siges-hero-split__roll-word:not(:first-child) { display: none; }
}
