/* Ivy Models Funnel-Seiten. Dunkles Efeu-Grün, Creme-Schrift, Blattgrün als Markenfarbe.
   Rosé (--pop) nur dort, wo geklickt werden soll: Button, Play-Knopf, Unterstrich.
   Headlines in einer Serifenschrift, weil das Logo eine Serifenschrift ist. Bewusst schlicht:
   keine Glow-Effekte, keine Pillen, kleine Radien. */
:root {
  --bg: #0F2A1C;
  --bg-glow: #1C3D2A;
  --surface: #17382A;
  --field: #12301F;
  --ink: #F1EDE3;
  --muted: #A9B6AA;
  --acc: #93D18A;
  --acc-ink: #0C2116;
  --acc-soft: rgba(147, 209, 138, .14);
  --pop: #F2A3B6;
  --pop-ink: #2A0F17;
  --line: rgba(241, 237, 227, .10);
  --line-strong: rgba(241, 237, 227, .22);
  --placeholder: #7F8E82;
  --error: #FF9C8A;
  --shadow: 0 30px 70px -30px rgba(0, 0, 0, .7);
  --display: "DM Serif Display", Georgia, serif;
  --sans: "Schibsted Grotesk", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(.32, .72, 0, 1);
  --r: 14px;
  --gutter: 18px;
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

/* Saubere Zeilenumbrüche überall: Überschriften und kurze Texte gleichmäßig, längere ohne einzelnes Wort am Ende */
h1, h2, h3, .eyebrow, .sub, .apply-sub, .trust, .faq-sub, .section-sub { text-wrap: balance; }
p, li, figcaption, .proof-label { text-wrap: pretty; }
.af-q, .thumb-title { text-wrap: pretty; }
.af-label, .af-end-text { text-wrap: balance; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--bg); }

body {
  background:
    radial-gradient(90% 55% at 50% 0%, rgba(147, 209, 138, .13), transparent 70%),
    var(--bg);
  background-repeat: no-repeat;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
}

.page {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 16px var(--gutter) 120px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: center;
}

/* Logo per Filter in Creme, damit keine neue Datei nötig ist */
.brand img { display: block; margin: 0 auto; width: 58px; height: auto; filter: brightness(0) invert(.93) sepia(.12); }

.hero { margin-top: 16px; }
.thanks-hero { margin-top: 24px; }

.eyebrow {
  color: var(--acc);
  font-size: 15px;
  font-weight: 500;
}

.headline {
  margin-top: 8px;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(29px, 7.7vw, 52px);
  line-height: 1.1;
  letter-spacing: -.01em;
  text-wrap: balance;
}
.hl {
  color: var(--acc);
  font-style: italic;
  /* handgezeichneter Doppelstrich statt gerader Linie, zeichnet sich beim Laden von links nach rechts */
  padding-bottom: .16em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 24' preserveAspectRatio='none'%3E%3Cpath d='M3 15 C 40 7, 95 5, 140 9 S 186 15, 197 7' fill='none' stroke='%23F2A3B6' stroke-width='3.2' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3Cpath d='M18 20 C 60 14, 120 13, 178 16' fill='none' stroke='%23F2A3B6' stroke-width='1.8' stroke-linecap='round' opacity='.6' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") no-repeat left bottom / 100% .38em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
@media (prefers-reduced-motion: no-preference) {
  .hl { animation: draw-underline .9s var(--ease) .75s both; }
  @keyframes draw-underline {
    from { background-size: 0% .38em; }
    to { background-size: 100% .38em; }
  }
}

.sub {
  margin: 12px auto 0;
  max-width: 36ch;
  color: var(--muted);
  font-size: 16px;
}

/* Double-Bezel */
.bezel { width: 100%; }
.bezel-core {
  border-radius: var(--r);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  overflow: hidden;
}

.video { width: 100%; margin-top: 20px; }

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0A1711;
  color: var(--ink);
}
.video-frame iframe, .faq-frame iframe,
.video-frame video, .faq-frame video { display: block; width: 100%; height: 100%; border: 0; object-fit: cover; background: #0A1711; }

/* Vorschaubild (Thumbnail) mit Play-Knopf. Klick lädt das Wistia-Video mit Ton. */
.thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  border: 0;
  padding: 0;
  background: #142C20;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
  overflow: hidden;
}
.thumb-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Das Foto ist links schon abgedunkelt (Platz für den Text), hier nur noch ein leichter Schleier unten */
.thumb-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 23, 17, 0) 55%, rgba(10, 23, 17, .45) 100%); }

/* Linke Spalte: kurzer Satz, darunter Play-Knopf mit Name und Länge. Skaliert mit der Breite des Videos. */
.video-frame { container-type: inline-size; }
.thumb-copy {
  position: absolute;
  left: 5.5%;
  top: 50%;
  transform: translateY(-50%);
  width: 38%;
  display: grid;
  gap: 5cqw;
  justify-items: start;
  text-align: left;
}
.thumb-title {
  font-family: var(--display);
  font-size: 7.4cqw;
  line-height: 1.04;
  color: var(--ink);
  text-shadow: 0 2px 18px rgba(0, 0, 0, .35);
}
.thumb-row { display: flex; align-items: center; gap: 3cqw; }
.thumb-play {
  flex: none;
  width: 12cqw;
  height: 12cqw;
  min-width: 40px;
  min-height: 40px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  padding-left: 3px;
  background: var(--pop);
  color: var(--pop-ink);
  transition: transform .4s var(--ease);
}
.thumb-play svg { width: 42%; height: 42%; }
.thumb:hover .thumb-play { transform: scale(1.06); }
.thumb:active .thumb-play { transform: scale(.96); }
.thumb-meta { font-size: clamp(10.5px, 2.9cqw, 14px); line-height: 1.3; color: var(--muted); white-space: nowrap; }
.thumb-meta b { display: block; color: var(--ink); font-weight: 600; }

@media (prefers-reduced-motion: no-preference) {
  .thumb-img { animation: thumb-in 1.4s var(--ease) both; }
  @keyframes thumb-in { from { transform: scale(1.06); } to { transform: none; } }
}

/* Platzhalter (FAQ- und Danke-Videos) */
.placeholder {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 16px;
}
.play {
  flex: none;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--pop);
  color: var(--pop-ink);
  margin-bottom: 4px;
  padding-left: 3px;
}
.ph-label { font-weight: 600; font-size: 15px; }
.ph-note { font-size: 13px; color: var(--muted); max-width: 30ch; }

/* Fehlender Config-Wert: sichtbarer gelber Hinweis */
.ph-key {
  padding: 3px 9px;
  border-radius: 999px;
  background: #F2D46B;
  color: #132A1E;
  font: 600 11.5px var(--sans);
  white-space: nowrap;
}
.ph-key:empty { display: none; }
.fill {
  background: #F2D46B;
  color: #132A1E;
  border-radius: 6px;
  padding: 0 .2em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* Haupt-Button: Glas-Optik (halbtransparent, heller Rand oben, Lichtreflex beim Laden und Hover) */
.cta {
  position: relative;
  overflow: hidden;
  margin-top: 16px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 24px;
  min-height: 58px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(249, 200, 211, .98) 0%, rgba(242, 163, 182, .93) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .55),
    inset 0 0 0 1px rgba(255, 255, 255, .22),
    inset 0 -10px 18px -10px rgba(42, 15, 23, .2),
    0 14px 34px -14px rgba(242, 163, 182, .5);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  color: var(--pop-ink);
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .3s var(--ease), background-color .3s var(--ease), box-shadow .3s var(--ease);
}
.cta::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -60%;
  width: 45%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .45), transparent);
  transform: skewX(-18deg);
  pointer-events: none;
  opacity: 0;
}
.cta-icon { font-size: 18px; color: inherit; transition: transform .3s var(--ease); }
.cta:hover {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .65),
    inset 0 0 0 1px rgba(255, 255, 255, .3),
    inset 0 -10px 18px -10px rgba(42, 15, 23, .2),
    0 18px 40px -14px rgba(242, 163, 182, .65);
}
.cta:hover .cta-icon { transform: translateY(2px); }
.cta:active { transform: scale(.98); }
@media (prefers-reduced-motion: no-preference) {
  .cta::after { animation: sheen 1.1s var(--ease) 1.2s 1 both; }
  .cta:hover::after { animation: sheen .9s var(--ease) 0s 1 both; }
  @keyframes sheen {
    0% { left: -60%; opacity: 0; }
    20% { opacity: 1; }
    100% { left: 120%; opacity: 0; }
  }
}
@media (prefers-reduced-transparency: reduce) {
  .cta { background: var(--pop); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
.cta:focus-visible, .draft button:focus-visible, .thumb:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; }

/* Vertrauens-Zeilen unter dem Button */
.trust {
  margin: 12px auto 0;
  max-width: 36ch;
  text-wrap: balance;
  color: var(--muted);
  font-size: 14px;
}

/* Beweise: große Zahl, ein Satz, darunter der echte Screenshot */
.proof { margin-top: 64px; }
.section-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(28px, 7.4vw, 40px);
  line-height: 1.1;
  text-wrap: balance;
}
.proof-item { padding: 28px 0; border-bottom: 1px solid var(--line); }
.proof-item:first-of-type { margin-top: 20px; border-top: 1px solid var(--line); }
.proof-num {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(38px, 10.5vw, 56px);
  line-height: 1.02;
  font-variant-numeric: lining-nums tabular-nums;
}
.proof-num .arrow { color: var(--acc); padding: 0 .1em; font-family: var(--sans); font-size: .62em; vertical-align: .1em; }
.proof-label { margin: 8px auto 0; max-width: 38ch; color: var(--muted); font-size: 15px; line-height: 1.5; }
.proof-shot { margin-top: 20px; }
.proof-shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 0 0 1px var(--line);
}
.proof-shot-phone img { margin: 0 auto; width: 62%; max-width: 260px; border-radius: 0; box-shadow: none; }
.proof-shot figcaption { margin: 10px auto 0; color: var(--muted); font-size: 13px; line-height: 1.45; max-width: 44ch; }

/* Formular */
.apply { margin-top: 64px; scroll-margin-top: 12px; }
.apply-sub { margin: 8px auto 18px; color: var(--muted); max-width: 36ch; }

.foot {
  margin-top: 56px;
  color: var(--muted);
  font-size: 13px;
  display: grid;
  gap: 8px;
}
.foot a { color: inherit; margin: 0 8px; }
.disclaimer { margin: 0 auto; max-width: 46ch; font-size: 12px; opacity: .8; }

/* Formular als Pop-up: schwebendes Fenster in der Mitte, Seite dahinter abgedunkelt */
html.sheet-open { overflow: hidden; }
.sheet {
  width: calc(100% - 24px);
  max-width: 540px;
  max-height: 88dvh;
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 20px;
  background: var(--bg);
  color: var(--ink);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .7), inset 0 0 0 1px rgba(241, 237, 227, .1), inset 0 1px 0 rgba(255, 255, 255, .08);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.sheet::backdrop {
  background: rgba(4, 13, 8, .66);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.sheet-handle { display: none; }
.sheet-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(241, 237, 227, .07);
  color: var(--muted);
  cursor: pointer;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.sheet-close:hover { background: rgba(241, 237, 227, .14); color: var(--ink); }
.sheet-close:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.sheet-body { padding: 26px 18px 22px; text-align: center; }
.sheet .apply { margin-top: 0; }
.sheet .section-title { font-size: clamp(26px, 7vw, 34px); padding: 0 34px; }
.sheet .form-frame { background: transparent; box-shadow: none; border-radius: 0; }
.sheet .af { min-height: 0; }
.sheet .af-q { font-size: clamp(23px, 6.1vw, 28px); }
.sheet .af-stage { padding: 6px 2px 4px; }
.sheet .apply-sub { margin-bottom: 8px; }
@media (prefers-reduced-motion: no-preference) {
  .sheet[open] { animation: sheet-up .45s var(--ease) both; }
  .sheet[open]::backdrop { animation: backdrop-in .4s ease both; }
  .sheet.closing { animation: sheet-down .28s var(--ease) both; }
  .sheet.closing::backdrop { animation: backdrop-out .28s ease both; }
  @keyframes sheet-up { from { opacity: 0; transform: translateY(10px) scale(.94); } to { opacity: 1; transform: none; } }
  @keyframes sheet-down { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(8px) scale(.96); } }
  @keyframes backdrop-in { from { opacity: 0; } to { opacity: 1; } }
  @keyframes backdrop-out { from { opacity: 1; } to { opacity: 0; } }
}
@media (min-width: 768px) {
  .sheet-body { padding: 32px 32px 30px; }
}

/* Danke-Seiten */
.thanks-hero .headline { font-size: clamp(30px, 8.2vw, 48px); }
.wa {
  margin-top: 20px;
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  color: var(--acc);
  font-weight: 600;
  text-decoration: none;
  transition: box-shadow .3s var(--ease);
}
.wa:hover { box-shadow: inset 0 0 0 1.5px var(--acc); }
.wa:active { transform: scale(.98); }
.wa[hidden] { display: none; }

.faq { margin-top: 64px; }
.faq h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(27px, 7vw, 36px);
  line-height: 1.12;
}
.faq-sub { color: var(--muted); margin: 8px auto 24px; max-width: 36ch; }
.faq-list { list-style: none; display: grid; gap: 28px; }
.faq-item h3 {
  font-weight: 600;
  font-size: 18px;
  line-height: 1.3;
  margin: 0 2px 10px;
}
.faq-frame { aspect-ratio: 16 / 9; background: #142C20; }
.faq-frame .placeholder { gap: 4px; text-align: center; }
.faq-frame .play { width: 44px; height: 44px; margin-bottom: 2px; }
.video-frame.is-live, .faq-frame.is-live { background: #0A1711; }
/* Lokale Videos: Play-Knopf mittig über dem Vorschaubild */
.file-player { position: relative; width: 100%; height: 100%; }
.file-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  padding: 0;
  background: linear-gradient(180deg, rgba(10, 23, 17, 0) 40%, rgba(10, 23, 17, .35) 100%);
  cursor: pointer;
}
.file-play .play { width: 64px; height: 64px; margin: 0; box-shadow: 0 6px 24px rgba(0, 0, 0, .35); transition: transform .4s var(--ease); }
.file-play .play svg { width: 26px; height: 26px; }
.faq-frame .file-play .play { width: 54px; height: 54px; }
.file-play:hover .play { transform: scale(1.08); }
.file-play:active .play { transform: scale(.95); }

/* Entwurfs-Umschalter (verschwindet, sobald headlineChoice gesetzt ist) */
.draft {
  position: fixed;
  left: 50%;
  bottom: calc(14px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px 5px 5px 14px;
  border-radius: 999px;
  background: rgba(241, 237, 227, .92);
  color: #132A1E;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .6);
  font-size: 12px;
}
.draft-label { margin-right: 6px; letter-spacing: .08em; text-transform: uppercase; opacity: .7; font-weight: 600; }
.draft button {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font: 600 14px var(--display);
  cursor: pointer;
  transition: background-color .4s var(--ease);
}
.draft button[aria-pressed="true"] { background: #132A1E; color: #F1EDE3; }

/* Bewegung, bewusst sparsam: Hero blendet beim Laden ein, Beweise und Formular beim Reinscrollen, Zahlen zählen einmal hoch */
@media (prefers-reduced-motion: no-preference) {
  .reveal { animation: rise .8s var(--ease) both; }
  .hero .eyebrow { animation-delay: .05s; }
  .hero .headline { animation-delay: .1s; }
  .video { animation-delay: .18s; }
  .cta { animation-delay: .26s; }
  .trust { animation-delay: .3s; }
  @keyframes rise {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: none; }
  }
  .js .on-scroll { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
  .js .on-scroll.in { opacity: 1; transform: none; }
  .proof-shot img { transition: transform .9s var(--ease); }
  .js .on-scroll:not(.in) .proof-shot img { transform: scale(.97); }
  .cta-icon { animation: nudge 2.4s var(--ease) 1.4s 2; }
  @keyframes nudge { 0%, 100% { transform: none; } 50% { transform: translateY(3px); } }
}

@media (min-width: 768px) {
  :root { --gutter: 32px; --r: 32px; }
  .page { padding-top: 28px; }
  .brand img { width: 88px; }
  .hero { margin-top: 28px; }
  .video { margin-top: 28px; }
  .proof, .apply, .faq { margin-top: 96px; }
  .proof-shot img { max-width: 480px; margin: 0 auto; }
}
