/* TinLine Hero Toggle — Frontend Styles */

/* Wrapper der injizierten Overlays */
.tlh-wrap {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

/* Obere Zone: Fallback-Farbe */
.tlh-zone-top {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 65%;
  background: var(--tlh-top, #2e2e2e);
  z-index: 1;
}

/* Untere Zone: überlagert Divi-Hintergrund dauerhaft */
.tlh-zone-bottom {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 35%;
  background: var(--tlh-bottom, #f5f5f7);
  z-index: 1;
}

/* Dark-Canvas SVG */
.tlh-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 2;
}

/* Toggle-Pill */
.tlh-toggle {
  position: absolute;
  top: 65%;
  left: 67%;
  transform: translateY(-50%);
  width: 24%;
  z-index: 5;
}

.tlh-toggle svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}

/* Headline */
.tlh-headline {
  position: absolute;
  top: 12%;
  left: 10%;
  z-index: 10;
}

.tlh-headline h1 {
  font-family: 'Jost', 'Helvetica Neue', Arial, sans-serif;
  font-size: clamp(44px, 6.5vw, 96px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.0;
  white-space: nowrap;
  margin: 0;
}

/* Divi: bestehende Section-Inhalte über dem Overlay halten */
.tlh-hero > *:not(.tlh-wrap) {
  position: relative;
  z-index: 10;
}

@media (max-width: 768px) {
  .tlh-toggle {
    width: 30%;
    left: 62%;
  }
  .tlh-headline {
    top: 8%;
    left: 6%;
  }
  .tlh-headline h1 {
    white-space: normal;
  }
}
