/* =============================================
   Leistungsseite Verkaufstexte & Angebote
   (verkaufstexte-angebote.html)
   Ergänzt css/service.css und css/pv-stage.css. Nur, was es hier gibt:
   - Hero-Titel (drei Zeilen)
   - Bühne: Länge, Schriftgröße der Filmaussagen, HTML-Schlussbild (.vtsec)
     deckungsgleich über der 3D-Sektion (Quer- und Hochformat)
   - Demo „Verkaufstext-Labor“ (.vtlab, js/vt-demo.js)
============================================= */

.page-vt .svc-hero .phero__title {
  font-size: clamp(2.4rem, 12.2vw, 13.5rem);
}

.page-vt .svc-hero .phero__word {
  display: block;
}

.page-vt .svc-statement__line {
  display: block;
}

/* ── Bühne ──
   Laufstrecke 2,5 Bildschirmhöhen (Smartphone 2,3). Etwas kleinere Filmaussagen,
   damit sie neben Satzkarte und Website-Sektion stehen, ohne sie zu berühren. */
.vtstage {
  --pv-len: 2.5;
  --sec: 0;
}

@media (max-width: 760px) {
  .vtstage {
    --pv-len: 2.3;
  }
}

.vtstage .pvstage__line {
  font-size: clamp(2.3rem, 5.2vw, 6rem);
  text-wrap: balance;
}

@media (max-width: 760px) {
  .vtstage .pvstage__line {
    font-size: clamp(2.1rem, 10vw, 3.2rem);
  }
}

.vtstage .pvstage__poster {
  object-position: 70% 50%;
}

.vtstage .pvstage__shade::after {
  background: linear-gradient(0deg, rgba(5, 5, 6, 0.86) 0%, rgba(5, 5, 6, 0.5) 22%, rgba(5, 5, 6, 0) 44%);
}

/* ── Schlussbild als HTML ──
   Maße in Einheiten der 3D-Sektion (js/vt-scene.js: SEC, drawSection,
   drawFinalCardL/P): --u = Sektionsbreite / (Breite in Einheiten × 10).
   Schrift mit Zeilenhöhe 1: Oberkante = Grundlinie − 0,883 × Schriftgröße. */
.vtsec {
  --u: calc(var(--sec-w, 600px) / 104);
  position: absolute;
  left: var(--sec-x, 0);
  top: var(--sec-y, 0);
  width: calc(104 * var(--u));
  height: calc(68.5 * var(--u));
  border-radius: calc(2.8 * var(--u));
  background: var(--c-off-white);
  font-family: var(--font-base);
  letter-spacing: 0;
  line-height: 1;
  white-space: nowrap;
  color: var(--c-black);
  opacity: var(--sec);
  pointer-events: none;
}

.vtstage.is-static .vtsec,
.vtstage:not(.is-ready) .vtsec {
  display: none;
}

.vtsec > *,
.vtsec__card > *,
.vtsec__bar > * {
  position: absolute;
}

.vtsec__bar {
  left: 0;
  top: 0;
  width: 100%;
  height: calc(5 * var(--u));
  border-radius: calc(2.8 * var(--u)) calc(2.8 * var(--u)) 0 0;
  background: #e6e8e8;
}

.vtsec__bar i {
  top: calc(1.9 * var(--u));
  width: calc(1.2 * var(--u));
  height: calc(1.2 * var(--u));
  border-radius: 50%;
  background: #c4c6c6;
}

.vtsec__bar i:nth-child(1) { left: calc(2.8 * var(--u)); }
.vtsec__bar i:nth-child(2) { left: calc(4.8 * var(--u)); }
.vtsec__bar i:nth-child(3) { left: calc(6.8 * var(--u)); }

.vtsec__url {
  left: calc(35 * var(--u));
  top: calc(1 * var(--u));
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(34 * var(--u));
  height: calc(3 * var(--u));
  border-radius: calc(1.5 * var(--u));
  background: var(--c-off-white);
  font-size: calc(1.4 * var(--u));
  font-weight: 500;
  color: var(--c-gray-600);
}

.vtsec__eyebrow {
  left: calc(5.5 * var(--u));
  top: calc(9.964 * var(--u));
  font-size: calc(1.4 * var(--u));
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-gray-600);
}

.vtsec__label {
  right: calc(5.5 * var(--u));
  top: calc(9.964 * var(--u));
  font-size: calc(1.4 * var(--u));
  font-weight: 600;
  color: var(--c-gray-600);
}

.vtsec__h {
  left: calc(5.5 * var(--u));
  top: calc(12.785 * var(--u));
  font-size: calc(5 * var(--u));
  font-weight: 700;
  letter-spacing: -0.03em;
}

.vtsec__sub {
  left: calc(5.5 * var(--u));
  top: calc(19.434 * var(--u));
  font-size: calc(2 * var(--u));
  font-weight: 500;
  color: var(--c-gray-600);
}

.vtsec__card {
  top: calc(24.5 * var(--u));
  width: calc(29 * var(--u));
  height: calc(33 * var(--u));
  overflow: hidden;
  border-radius: calc(1.6 * var(--u));
  background: var(--c-white);
  box-shadow: inset 0 0 0 calc(0.1 * var(--u)) var(--c-line-light);
}

.vtsec__card--1 { left: calc(5.5 * var(--u)); }
.vtsec__card--2 { left: calc(37.5 * var(--u)); }
.vtsec__card--3 { left: calc(69.5 * var(--u)); }

.vtsec__card.is-focus::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: calc(0.6 * var(--u));
  background: var(--avio-green);
}

.vtsec__name {
  left: calc(2.6 * var(--u));
  top: calc(3.852 * var(--u));
  font-size: calc(1.3 * var(--u));
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--c-gray-600);
}

.vtsec__price {
  left: calc(2.6 * var(--u));
  top: calc(8.468 * var(--u));
  font-size: calc(4 * var(--u));
  font-weight: 800;
  letter-spacing: -0.02em;
}

.vtsec__note {
  left: calc(2.6 * var(--u));
  top: calc(14.14 * var(--u));
  font-size: calc(1.2 * var(--u));
  font-weight: 500;
  color: var(--c-gray-600);
}

.vtsec__rule {
  left: calc(2.6 * var(--u));
  right: calc(2.6 * var(--u));
  top: calc(18.2 * var(--u));
  height: calc(0.1 * var(--u));
  background: var(--c-line-light);
}

.vtsec__l1,
.vtsec__l2 {
  left: calc(2.6 * var(--u));
  top: calc(21.411 * var(--u));
  font-size: calc(1.8 * var(--u));
  font-weight: 600;
}

.vtsec__l2 {
  top: calc(24.011 * var(--u));
}

.vtsec__more {
  left: calc(2.6 * var(--u));
  top: calc(28.852 * var(--u));
  font-size: calc(1.3 * var(--u));
  font-weight: 600;
}

.vtsec__one {
  display: none;
}

.vtsec__cta {
  left: calc(40 * var(--u));
  top: calc(60 * var(--u));
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(24 * var(--u));
  height: calc(4.6 * var(--u));
  border-radius: calc(2.3 * var(--u));
  background: var(--c-black);
  font-size: calc(1.7 * var(--u));
  font-weight: 600;
  color: var(--c-white);
}

/* Hochformat (gleiche Grenze wie js/vt-scene.js: Seitenverhältnis unter 1,05):
   Sektion 4,4 × 7,45 Einheiten, Angebote als Zeilen untereinander */
@media (max-aspect-ratio: 21/20) {
  .vtsec {
    --u: calc(var(--sec-w, 340px) / 44);
    width: calc(44 * var(--u));
    height: calc(74.5 * var(--u));
  }
  .vtsec__bar { height: calc(4 * var(--u)); }
  .vtsec__bar i { top: calc(1.5 * var(--u)); width: calc(1 * var(--u)); height: calc(1 * var(--u)); }
  .vtsec__bar i:nth-child(1) { left: calc(2.1 * var(--u)); }
  .vtsec__bar i:nth-child(2) { left: calc(3.7 * var(--u)); }
  .vtsec__bar i:nth-child(3) { left: calc(5.3 * var(--u)); }
  .vtsec__url {
    left: calc(11.5 * var(--u));
    top: calc(0.7 * var(--u));
    width: calc(26 * var(--u));
    height: calc(2.6 * var(--u));
    font-size: calc(1.1 * var(--u));
  }
  .vtsec__eyebrow { left: calc(3 * var(--u)); top: calc(7.44 * var(--u)); font-size: calc(1.2 * var(--u)); }
  .vtsec__label { left: 0; right: 0; top: calc(69.94 * var(--u)); font-size: calc(1.2 * var(--u)); text-align: center; }
  .vtsec__h { left: calc(3 * var(--u)); top: calc(9.598 * var(--u)); font-size: calc(3.4 * var(--u)); line-height: calc(4.2 * var(--u)); }
  .vtsec__h span { display: block; }
  .vtsec__sub { left: calc(3 * var(--u)); top: calc(19.087 * var(--u)); font-size: calc(1.6 * var(--u)); }
  .vtsec__card { left: calc(2.5 * var(--u)) !important; width: calc(39 * var(--u)); height: calc(12 * var(--u)); border-radius: calc(1.4 * var(--u)); }
  .vtsec__card--1 { top: calc(23.5 * var(--u)); }
  .vtsec__card--2 { top: calc(36.5 * var(--u)); }
  .vtsec__card--3 { top: calc(49.5 * var(--u)); }
  .vtsec__card.is-focus::before { width: calc(0.5 * var(--u)); height: 100%; }
  .vtsec__name { left: calc(2.5 * var(--u)); top: calc(3.029 * var(--u)); font-size: calc(1.1 * var(--u)); }
  .vtsec__price { left: auto; right: calc(2.5 * var(--u)); top: calc(3.174 * var(--u)); font-size: calc(3.2 * var(--u)); }
  .vtsec__one { display: block; left: calc(2.5 * var(--u)); top: calc(7.699 * var(--u)); font-size: calc(1.7 * var(--u)); font-weight: 600; }
  .vtsec__note, .vtsec__rule, .vtsec__l1, .vtsec__l2, .vtsec__more { display: none; }
  .vtsec__cta { left: calc(11 * var(--u)); top: calc(63 * var(--u)); width: calc(22 * var(--u)); height: calc(4.2 * var(--u)); border-radius: calc(2.1 * var(--u)); font-size: calc(1.5 * var(--u)); }
}

/* ---------------------------------------------
   Demo: Verkaufstext-Labor
--------------------------------------------- */
.vtlab {
  padding: clamp(5rem, 10vw, 9rem) 0 clamp(4rem, 8vw, 7rem);
}

.vtlab__panel {
  margin-top: clamp(2.5rem, 5vw, 4.5rem);
  padding: clamp(1.1rem, 2.6vw, 2.25rem);
  border-radius: var(--radius-xl);
  background: var(--c-white);
  box-shadow:
    0 0 0 1px rgba(10, 10, 11, 0.06),
    0 40px 80px -56px rgba(10, 10, 11, 0.35);
}

.vtlab__controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem 1.5rem;
  padding-bottom: clamp(1.1rem, 2.2vw, 1.75rem);
  border-bottom: 1px solid var(--c-line-light);
}

.vtlab__branches {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.vtlab__chip,
.vtlab__toggle {
  min-height: 44px;
  padding: 0 1.1rem;
  border: 1px solid var(--c-line-light);
  border-radius: var(--radius-pill);
  background: transparent;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--c-black);
  cursor: pointer;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.vtlab__chip.is-on {
  border-color: var(--c-black);
  background: var(--c-black);
  color: var(--c-white);
}

.vtlab__switch {
  display: none;
  gap: 0.25rem;
  padding: 0.25rem;
  border-radius: var(--radius-pill);
  background: var(--c-paper);
}

.vtlab__toggle {
  min-height: 40px;
  border-color: transparent;
  color: var(--c-gray-600);
}

.vtlab__toggle.is-on {
  background: var(--c-white);
  color: var(--c-black);
  box-shadow: 0 1px 2px rgba(10, 10, 11, 0.08), 0 6px 16px -10px rgba(10, 10, 11, 0.35);
}

.vtlab__chip:focus-visible,
.vtlab__toggle:focus-visible {
  outline: 2px solid var(--c-black);
  outline-offset: 2px;
}

@media (hover: hover) and (pointer: fine) {
  .vtlab__chip:not(.is-on):hover {
    border-color: var(--c-black);
  }
}

.vtlab__compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
  padding-top: clamp(1.25rem, 2.6vw, 2rem);
}

.vtlab__side {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: clamp(1.25rem, 2.6vw, 2.25rem);
  border-radius: var(--radius-lg);
  background: var(--c-off-white);
}

.vtlab__side--after {
  background: var(--c-white);
  box-shadow:
    0 0 0 1px rgba(10, 10, 11, 0.08),
    0 22px 44px -32px rgba(10, 10, 11, 0.35);
}

.vtlab__label {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1.25rem;
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--c-gray-600);
}

.vtlab__label i {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--c-gray-300);
}

.vtlab__side--after .vtlab__label i {
  background: var(--avio-green);
}

.vtlab__site {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  padding-bottom: 0.85rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--c-line-light);
  font-size: 0.88rem;
}

.vtlab__brand {
  font-weight: 700;
}

.vtlab__branch {
  color: var(--c-gray-600);
}

.vtlab__text {
  flex: 1;
  margin: 0;
  font-size: clamp(1.35rem, 2.1vw, 2rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
  transition: opacity 0.17s var(--ease), transform 0.17s var(--ease);
}

.vtlab__side.is-swap .vtlab__text,
.vtlab__side.is-swap .vtlab__branch {
  opacity: 0;
  transform: translate3d(0, 4px, 0);
}

.vtlab__side--before .vtlab__text {
  color: var(--c-gray-700, #48484c);
}

.vtlab__vague {
  background: none;
  color: inherit;
  text-decoration: underline dashed var(--c-gray-500, #8e8e93);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}

.vtlab__tag {
  display: inline-flex;
  align-items: center;
  margin-right: 0.45rem;
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-pill);
  background: rgba(30, 163, 54, 0.1);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  vertical-align: 0.3em;
  color: var(--avio-green-text);
}

.vtlab__segtext {
  box-shadow: inset 0 -0.14em 0 rgba(30, 163, 54, 0.22);
}

.vtlab__hint {
  margin-top: 1.5rem;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--c-gray-600);
}

.vtlab__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  margin-top: clamp(1.25rem, 2.6vw, 2rem);
}

.vtlab__note {
  max-width: 40em;
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--c-gray-600);
}

.vtlab__note strong {
  font-weight: 700;
  color: var(--c-black);
}

@media (max-width: 900px) {
  .vtlab__switch {
    display: inline-flex;
  }
  .vtlab__compare {
    grid-template-columns: minmax(0, 1fr);
  }
  .vtlab__panel[data-view="after"] .vtlab__side--before,
  .vtlab__panel[data-view="before"] .vtlab__side--after {
    display: none;
  }
}

@media (max-width: 560px) {
  .vtlab__panel {
    padding: 0.85rem;
    border-radius: var(--radius-lg);
  }
  .vtlab__controls {
    align-items: stretch;
  }
  .vtlab__chip {
    padding: 0 0.85rem;
    font-size: 0.86rem;
  }
  .vtlab__switch {
    width: 100%;
  }
  .vtlab__toggle {
    flex: 1;
  }
  .vtlab__side {
    padding: 1.1rem;
  }
  .vtlab__cta {
    width: 100%;
    justify-content: space-between;
    padding: 0 1.4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vtlab__text {
    transition: none;
  }
}
