/* ==========================================================================
   transformis® · Kampagnen-Landingpage
   --------------------------------------------------------------------------
   Eigener Header (nur Logo + Scroll-CTA), Hero mit Deko-Pfeilen,
   Titelbild das ueber den blauen Bereich ragt, Gutenberg-Content.
   ========================================================================== */


/* ==========================================================================
   1. HEADER – LP-Variante (kein Menue)
   ========================================================================== */

/* Variante MIT Navigation (Aufruf ohne Kampagnen-Parameter):
   Der volle Header hat ab 961px zusaetzlich die Topbar mit dem
   Sprachumschalter (13,5px Padding + 16,8px Zeile ≈ 30px). Darunter ist die
   Topbar ohnehin ausgeblendet – dort sind beide Varianten gleich hoch. */
@media (min-width: 961px) {
  body.tm-lp-has-nav .tm-lp-hero {
    padding-top: 126px; /* 96px Basis + 30px Topbar */
  }
}

/* Nav, Lupe, Burger, Topbar, Search Overlay, Mobile Nav ausblenden */
.tm-header--lp .tm-header__topbar,
.tm-header--lp .tm-header__nav,
.tm-header--lp .tm-header__search,
.tm-header--lp .tm-header__burger,
.tm-header--lp ~ .tm-header__search-overlay,
.tm-header--lp ~ .tm-mobile-nav {
  display: none !important;
}

/* Spacer drueckt CTA nach rechts */
.tm-header__spacer {
  flex: 1;
}

/* ── Desktop CTA Button ── */
.tm-lp-header-cta--desktop {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  white-space: nowrap;
}

.tm-lp-header-cta--desktop.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  aria-hidden: false;
}

/* ── Mobile CTA Button (Chat-Icon) ── */
.tm-lp-header-cta--mobile {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--tm-green);
  color: var(--tm-blue);
  text-decoration: none;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.tm-lp-header-cta--mobile.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.tm-lp-header-cta--mobile:hover {
  background: color-mix(in srgb, var(--tm-green), black 10%);
  color: var(--tm-blue);
}

.tm-lp-header-cta--mobile:active,
.tm-lp-header-cta--mobile:focus,
.tm-lp-header-cta--mobile:visited {
  background: var(--tm-green);
  color: var(--tm-blue);
}

.tm-lp-header-cta--mobile svg {
  width: 22px;
  height: 22px;
}


/* ==========================================================================
   2. HERO – Above the Fold
   ========================================================================== */

.tm-lp-hero {
  position: relative;
  z-index: 2;
  background: transparent;
  padding-top: 96px; /* Header-Hoehe */
  padding-bottom: 0;
  overflow-x: clip;
}

/* Blauer Hintergrund: endet 50px vor dem unteren Rand */
.tm-lp-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  bottom: 104px;
  background: var(--tm-blue);
  z-index: 0;
}

/* ── Deko-Pfeil links (Outline) ── */
.tm-lp-hero__arrow-left {
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: none;
  z-index: 1;
  /* Breite + Position wird per JS gesetzt, Fallback: */
  width: clamp(40px, 10vw, 305px);
}

.tm-lp-hero__arrow-left svg {
  display: block;
  width: 100%;
  height: auto;
}

/* ── Text-Content ── */
.tm-lp-hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: calc(900px + 2 * var(--tm-content-padding));
  margin: 0 auto;
  padding: 60px var(--tm-content-padding) 0;
}

/* Subline */
.tm-lp-hero__subline {
  font-family: var(--tm-font-body);
  font-weight: var(--tm-fw-light);
  font-size: 32px;
  line-height: 1.3;
  color: var(--tm-white);
  margin: 0 0 12px;
}

/* H1 */
.tm-lp-hero__title {
  font-family: var(--tm-font-heading) !important;
  font-weight: var(--tm-fw-light) !important;
  font-size: 60px !important;
  line-height: 1.15 !important;
  color: var(--tm-green) !important;
  margin: 0 !important;
  max-width: 900px;
}

/* Buttons */
.tm-lp-hero__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 40px;
}

/* Outline-Button auf dunklem Hintergrund: weisser Rand + weisser Text */
.tm-lp-hero__btn-outline {
  background: transparent;
  border-color: var(--tm-white);
  color: var(--tm-white);
}

.tm-lp-hero__btn-outline:hover {
  background: var(--tm-green);
  border-color: var(--tm-green);
  color: var(--tm-blue);
}

/* ── Titelbild ── */
/* Bild: im Hero, Content darunter ueberlappt um 50px */
.tm-lp-hero__image-wrap {
  position: relative;
  z-index: 2;
  max-width: 1136px;
  margin: 60px auto 0;
  padding: 0 var(--tm-content-padding);
}

.tm-lp-hero__image-container {
  position: relative;
}

.tm-lp-hero__image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1136 / 514;
  object-fit: cover;
}

/* ── Deko-Pfeil rechts am Bild (filled) ── */
.tm-lp-hero__arrow-right {
  position: absolute;
  right: clamp(-130px, -6vw, -10px);
  top: 50%;
  transform: translateY(-50%);
  width: clamp(80px, 10vw, 171px);
  pointer-events: none;
  z-index: 3;
}

.tm-lp-hero__arrow-right svg {
  display: block;
  width: 100%;
  height: auto;
}


/* ==========================================================================
   3. GUTENBERG CONTENT
   ========================================================================== */

.tm-lp-content {
  padding: calc(var(--tm-section-py) / 2) var(--tm-content-padding) 0;
  overflow-x: clip;
}

.tm-lp-content__inner {
  max-width: 900px;
  margin: 0 auto;
}

/* ── Typografie im Gutenberg-Content (head-l-light) ── */
.tm-lp-content__inner h1 {
  font-family: var(--tm-font-heading);
  font-weight: var(--tm-fw-light);
  font-size: 40px;
  line-height: 1.3;
  color: var(--tm-blue);
  margin: 0 0 32px;
}

.tm-lp-content__inner h2 {
  font-family: var(--tm-font-heading);
  font-weight: var(--tm-fw-light);
  font-size: clamp(28px, 3.5vw, 40px);
  line-height: 1.3;
  color: var(--tm-blue);
  margin: 48px 0 24px;
}

.tm-lp-content__inner h3 {
  font-family: var(--tm-font-heading);
  font-weight: var(--tm-fw-light);
  font-size: clamp(22px, 3vw, 28px);
  line-height: 1.3;
  color: var(--tm-blue);
  margin: 40px 0 16px;
}

.tm-lp-content__inner h4 {
  font-family: var(--tm-font-heading);
  font-weight: var(--tm-fw-light);
  font-size: 20px;
  line-height: 1.3;
  color: var(--tm-blue);
  margin: 32px 0 12px;
}

.tm-lp-content__inner > h1:first-child,
.tm-lp-content__inner > h2:first-child,
.tm-lp-content__inner > h3:first-child,
.tm-lp-content__inner > h4:first-child {
  margin-top: 0;
}

.tm-lp-content__inner p {
  font-family: var(--tm-font-body);
  font-weight: var(--tm-fw-regular);
  font-size: 18px;
  line-height: 1.6;
  color: var(--tm-black);
  margin: 0 0 24px;
}

.tm-lp-content__inner a {
  color: var(--tm-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity var(--tm-transition);
}

.tm-lp-content__inner a:hover {
  opacity: 0.7;
}

.tm-lp-content__inner strong,
.tm-lp-content__inner b {
  font-weight: var(--tm-fw-bold);
}

/* ── Listen mit gruenen Pfeilen ── */
.tm-lp-content__inner ul {
  list-style: none;
  padding-left: 0;
  margin: 60px 0;
}

.tm-lp-content__inner ul li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 8px;
  font-family: var(--tm-font-body);
  font-weight: var(--tm-fw-regular);
  font-size: 21px;
  line-height: 1.6;
  color: var(--tm-black);
}

.tm-lp-content__inner ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 10px solid var(--tm-green);
}

/* ── Gutenberg Button Block ── */
.tm-lp-content__inner .wp-block-button {
  margin: 0;
}

.tm-lp-content__inner .wp-block-button__link {
  display: inline-block;
  padding: 12px 17px;
  background: var(--tm-green);
  color: var(--tm-blue);
  text-decoration: none;
  text-transform: none;
  font-family: var(--tm-font-body);
  font-weight: var(--tm-fw-bold);
  font-size: 18px;
  line-height: 1.6;
  border: 1px solid var(--tm-green);
  border-radius: 0;
  cursor: pointer;
  transition: background var(--tm-transition),
              color var(--tm-transition),
              border-color var(--tm-transition);
}

.tm-lp-content__inner .wp-block-button__link:hover {
  background: color-mix(in srgb, var(--tm-green), black 10%) !important;
  border-color: color-mix(in srgb, var(--tm-green), black 10%) !important;
  color: var(--tm-blue) !important;
  text-decoration: none !important;
  opacity: 1 !important;
}

.tm-lp-content__inner .wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent;
  color: var(--tm-blue);
  border-color: var(--tm-blue);
}

.tm-lp-content__inner .wp-block-button.is-style-outline .wp-block-button__link:hover {
  background: var(--tm-green);
  border-color: var(--tm-green);
  color: var(--tm-blue);
}

/* ── Bilder ── */
.tm-lp-content__inner img,
.tm-lp-content__inner figure,
.tm-lp-content__inner .wp-block-image {
  margin-top: 48px;
}


/* ==========================================================================
   4. RESPONSIVE
   ========================================================================== */

/* ── Tablet ── */
@media (max-width: 960px) {

  .tm-lp-header-cta--desktop {
    display: none !important;
  }

  .tm-lp-header-cta--mobile {
    display: flex;
  }

  .tm-lp-hero {
    padding-top: 120px;
    padding-bottom: 60px;
  }

  .tm-lp-hero__content {
    padding-top: 40px;
  }

  .tm-lp-hero__subline {
    font-size: 24px;
  }

  .tm-lp-hero__title {
    font-size: 40px !important;
  }

  .tm-lp-hero__image-wrap {
    margin-top: 60px;
  }

  .tm-lp-hero__arrow-left path {
    vector-effect: non-scaling-stroke;
    stroke-width: 2.5px;
  }
}

/* ── Mobile ── */
@media (max-width: 600px) {

  .tm-lp-hero {
    padding-top: 80px;
    padding-bottom: 40px;
  }

  .tm-lp-hero__content {
    padding: 24px 32px 0;
  }

  .tm-lp-hero__subline {
    font-size: 20px;
  }

  .tm-lp-hero__title {
    font-size: 32px !important;
  }

  .tm-lp-hero__buttons {
    flex-direction: column;
    gap: 12px;
  }

  .tm-lp-hero__buttons .tm-btn {
    text-align: center;
  }

  .tm-lp-hero__image-wrap {
    margin-top: 40px;
  }

  .tm-lp-hero__image {
    aspect-ratio: auto;
    height: 310px;
  }

  .tm-lp-hero__arrow-right {
    right: 15px;
    top: auto;
    bottom: 15px;
    transform: none;
    width: clamp(60px, 15vw, 90px);
  }

  .tm-lp-hero__arrow-left path {
    vector-effect: non-scaling-stroke;
    stroke-width: 2px;
  }
}


/* Footer-LP: Styles ausgelagert in assets/css/components/tm-footer-lp.css
   (global geladen via $components in functions.php). */
