/* ==========================================================================
   transformis® · Über uns – Seitenspezifische Styles
   --------------------------------------------------------------------------
   Sektionen:
   1. Hero            → Component (tm-hero.css)
   2. Intro-QuoteBox + Bild (Bild bis zum Viewport-Rand)
   3. Erfahrung       (Fliesstext, linksbuendig)
   4. Manifest        (Hintergrundbild + blauer Bleed-Balken links)
   5. Strategischer Wandel (Card-Grid, blaue Ziffern)
   6. Team            → Component (tm-team.css) – weisser BG via body-Scope

   Container-Alignment:
   Alle Sektionen orientieren sich an der Hero-Breite
   (max-width: var(--tm-container-wide) / padding: var(--tm-content-padding)).
   ========================================================================== */


/* ==========================================================================
   2. INTRO-QUOTEBOX + BILD
   --------------------------------------------------------------------------
   Quote-Box links (Style wie tm-blue-quote), Bild rechts bis Viewport-Rand.
   Pfeil-Spitze wird per JS (tm-ub-arrow.js) auf die erste Zeile ausgerichtet.
   ========================================================================== */

.tm-ub-intro {
  padding: clamp(60px, 8vw, 120px) 0;
  overflow-x: clip;            /* Bild-Bleed nicht horizontal scrollen */
}

.tm-ub-intro__wrap {
  max-width: var(--tm-container-wide);
  margin: 0 auto;
  padding: 0 var(--tm-content-padding);
}

.tm-ub-intro__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

/* ── Quote-Box (links) ── */
.tm-ub-intro__quote {
  position: relative;
  background: var(--tm-blue);
  padding: 64px;
  z-index: 2;
  margin-right: -60px;          /* horizontale Ueberlappung ueber das Bild */
  overflow: hidden;
  box-sizing: border-box;
}

/* Pfeil: Initial-Position per CSS (-14 %), finale per JS */
.tm-ub-intro__arrow {
  position: absolute;
  left: -40px;
  top: -14%;
  width: clamp(100px, 12vw, 160px);
  height: auto;
  pointer-events: none;
  z-index: 0;
  opacity: 1;
}

.tm-ub-intro__quote-text {
  position: relative;
  z-index: 1;
  margin: 0;
  margin-left: clamp(40px, 8vw, 80px);
  max-width: 460px;
  font-family: var(--tm-font-body);
  font-weight: var(--tm-fw-regular);
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.45;
  color: var(--tm-white-soft);
}

/* ── Bild (rechts, bis Viewport-Rand) ──
   Negative margin-right entspricht tm-edge-padding:
   - schmale Viewports: = tm-content-padding
   - breite Viewports: = (100vw - container-wide) / 2 + tm-content-padding
*/
.tm-ub-intro__image {
  position: relative;
  z-index: 1;
  height: 640px;
  overflow: hidden;
  margin-right: calc(-1 * var(--tm-edge-padding));
}

.tm-ub-intro__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


/* ==========================================================================
   3. ERFAHRUNG (Fliesstext, linksbuendig, kein Top-Padding)
   ========================================================================== */

.tm-ub-erfahrung {
  padding: 0 0 var(--tm-section-py);
}

.tm-ub-erfahrung__wrap {
  max-width: var(--tm-container-wide);
  margin: 0 auto;
  padding: 0 var(--tm-content-padding);
}

.tm-ub-erfahrung__heading {
  font-family: var(--tm-font-heading);
  font-weight: var(--tm-fw-extrabold);
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.2;
  color: var(--tm-blue);
  margin: 0 0 32px;
  max-width: 900px;
}

.tm-ub-erfahrung__text {
  font-family: var(--tm-font-body);
  font-weight: var(--tm-fw-regular);
  font-size: 18px;
  line-height: 1.6;
  color: var(--tm-blue);
  max-width: 900px;
  margin: 0;
}


/* ==========================================================================
   4. MANIFEST
   --------------------------------------------------------------------------
   Vollflaechiges Hintergrundbild (kein Overlay/Filter).
   Zitat sitzt in einem blauen Balken, der links aus der Seite rausragt.
   Blockquote-Styles mit !important, da Parent-Theme-blockquote-Defaults
   ansonsten greifen.
   ========================================================================== */

.tm-ub-manifest {
  position: relative;
  background-image: url('https://www.transformis-consulting.de/wp-content/uploads/2026/04/Dr.-Sina-Haupt-scaled.jpg');
  background-size: cover;
  background-position: center;
  padding: clamp(100px, 15vw, 240px) 0;
  overflow: hidden;             /* verhindert horizontales Scrollen durch Bleed */
}

.tm-ub-manifest__inner {
  position: relative;
  z-index: 1;
  max-width: var(--tm-container-wide);
  margin: 0 auto;
  padding: 0 var(--tm-content-padding);
}

/* ── Blauer Balken, links aus dem Viewport herausragend ── */
.tm-ub-manifest__quote {
  position: relative !important;
  margin: 0 !important;
  padding: clamp(36px, 4vw, 56px) clamp(32px, 3vw, 48px) clamp(36px, 4vw, 56px) 0 !important;
  border: none !important;
  background: none !important;
  max-width: 860px !important;
  quotes: none !important;
}

.tm-ub-manifest__quote::before {
  content: "" !important;
  position: absolute !important;
  top: 0;
  bottom: 0;
  right: 0;
  /* Nach links ueber den Content- und Viewport-Rand hinaus ausdehnen */
  left: calc(-1 * var(--tm-edge-padding) - 40px) !important;
  background: var(--tm-blue) !important;
  z-index: -1 !important;
  pointer-events: none;
}

.tm-ub-manifest__quote::after {
  content: none !important;
}

.tm-ub-manifest__quote p {
  position: relative;
  margin: 0 0 10px !important;
  padding: 0 !important;
  font-family: var(--tm-font-heading) !important;
  font-weight: var(--tm-fw-light) !important;
  font-style: normal !important;
  font-size: clamp(22px, 3vw, 38px) !important;
  line-height: 1.3 !important;
  color: var(--tm-white) !important;
  text-transform: none !important;
  text-wrap: balance;                    /* verhindert Orphans ("Oberflächlichkeit.") */
}

.tm-ub-manifest__quote p:last-child {
  margin-bottom: 0 !important;
}


/* ==========================================================================
   5. STRATEGISCHER WANDEL (Card-Grid)
   --------------------------------------------------------------------------
   Graue Section, weisse Cards, blaue Ziffern (kein Green-Top-Border).
   ========================================================================== */

.tm-ub-wandel {
  background: var(--tm-gray-light);
  padding: var(--tm-section-py) 0;
}

.tm-ub-wandel__wrap {
  max-width: var(--tm-container-wide);
  margin: 0 auto;
  padding: 0 var(--tm-content-padding);
}

.tm-ub-wandel__heading {
  font-family: var(--tm-font-heading);
  font-weight: var(--tm-fw-extrabold);
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.2;
  color: var(--tm-blue);
  margin: 0 0 clamp(32px, 4vw, 56px);
  max-width: 900px;
}

.tm-ub-wandel__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 2.5vw, 40px);
}

.tm-ub-wandel__card {
  position: relative;
  background: var(--tm-white);
  padding: clamp(28px, 3vw, 44px);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tm-ub-wandel__num {
  font-family: var(--tm-font-heading);
  font-weight: var(--tm-fw-extrabold);
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1;
  color: var(--tm-blue);
  letter-spacing: -0.02em;
}

.tm-ub-wandel__card-title {
  margin: 0;
  font-family: var(--tm-font-heading);
  font-weight: var(--tm-fw-extrabold);
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.3;
  color: var(--tm-blue);
}

.tm-ub-wandel__card-text {
  margin: 0;
  font-family: var(--tm-font-body);
  font-weight: var(--tm-fw-regular);
  font-size: 16px;
  line-height: 1.65;
  color: var(--tm-blue);
}


/* ==========================================================================
   6. TEAM-SECTION – Ueberschreibung nur auf Ueber-uns
   --------------------------------------------------------------------------
   Auf der Ueber-uns-Seite soll die Team-Section weissen Hintergrund haben
   (Startseite behaelt Grau).
   ========================================================================== */

body.tm-template-ueber-uns .tm-team {
  background: var(--tm-white);
}


/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1024px) {
  .tm-ub-intro__layout {
    grid-template-columns: 1fr;
  }

  .tm-ub-intro__quote {
    margin-right: 0;
    margin-bottom: -40px;        /* Ueberlappung jetzt vertikal */
  }

  .tm-ub-intro__image {
    height: 420px;
  }
}

@media (max-width: 900px) {
  .tm-ub-wandel__grid {
    grid-template-columns: 1fr;
  }

  .tm-ub-intro__quote {
    padding: 48px 32px;
  }

  .tm-ub-intro__quote-text {
    margin-left: clamp(40px, 8vw, 80px);
    font-size: 22px;
  }

  .tm-ub-intro__arrow {
    width: clamp(70px, 10vw, 120px);
    left: -30px;
  }
}

@media (max-width: 640px) {
  .tm-ub-intro__quote {
    padding: 40px 24px;
  }

  .tm-ub-intro__quote-text {
    margin-left: 0;
    font-size: 18px;
  }

  .tm-ub-intro__arrow {
    left: -10px;
    top: 0 !important;           /* JS ueberschreibt sonst */
    width: 40px;
  }

  .tm-ub-intro__image {
    height: 280px;
  }

  .tm-ub-manifest__quote {
    padding-right: 20px !important;
  }
}
