/* Lead-Magnet Hero + Modal-Formular – Wilmesmeyer & Cie. */
:root {
  --lm-green: #70b080;
  --lm-green-600: #5a9a6b;
  --lm-green-dark: #2e5e41;
  --lm-green-deep: #1d4a33;
  --lm-lime: #d8f5bd;
  --lm-green-050: #eef6f0;
  --lm-ink: #1d1d1b;
  --lm-ink-2: #4a4a46;
  --lm-ink-3: #77776f;
  --lm-line: #e4e2dc;
  --lm-sand: #f4f2ee;
  --lm-white: #ffffff;
  --lm-error: #c0392b;
  --lm-radius: 8px;
  --lm-font: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* ---------- Hero (Optik wie die Ads) ---------- */
.lm-hero {
  position: relative;
  font-family: var(--lm-font);
  color: #fff;
  padding: 72px 20px 84px;
  overflow: hidden;
  background:
    radial-gradient(70% 90% at 85% 10%, rgba(94, 160, 118, .35), transparent 60%),
    radial-gradient(60% 80% at 0% 100%, rgba(10, 40, 24, .55), transparent 60%),
    linear-gradient(135deg, #1d4a33 0%, #235a3e 45%, #1b4430 100%);
}
.lm-hero *, .lm-modal * { box-sizing: border-box; }
.lm-hero__inner {
  max-width: 1250px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  grid-template-areas: "copy visual";
  gap: 48px;
  align-items: center;
}
.lm-hero__copy { grid-area: copy; }
.lm-hero__visual { grid-area: visual; }

.lm-tag {
  display: block;
  color: rgba(255, 255, 255, .8);
  font-size: 20px;
  line-height: 1.3;
  margin: 0 0 14px;
}
.lm-hero h1 {
  font-family: var(--lm-font);
  font-size: clamp(38px, 4.7vw, 66px);
  line-height: 1.06;
  font-weight: 700;
  letter-spacing: -.01em;
  margin: 0 0 20px;
  color: #fff;
}
.lm-hero h1 .lm-hl { color: var(--lm-lime); }
.lm-lead strong { color: #fff; font-weight: 700; }
.lm-lead {
  font-size: 22px;
  line-height: 1.45;
  color: rgba(255, 255, 255, .86);
  margin: 0 0 30px;
  max-width: 600px;
}
.lm-benefits { list-style: none; margin: 0 0 36px; padding: 0; display: grid; gap: 16px; max-width: 580px; }
.lm-benefits li {
  display: grid; grid-template-columns: 36px 1fr; gap: 16px; align-items: center;
  font-size: 19px; line-height: 1.35; font-weight: 600; color: #fff;
}
.lm-tick {
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--lm-lime); color: var(--lm-green-deep);
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .5);
}
.lm-tick svg { width: 18px; height: 18px; }

.lm-cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.lm-btn {
  -webkit-appearance: none; appearance: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  font-family: var(--lm-font);
  font-size: 18px; font-weight: 600; line-height: 1.2;
  border-radius: 6px;
  padding: 17px 28px;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.lm-btn .lm-arrow { transition: transform .2s ease; }
.lm-btn:hover .lm-arrow { transform: translateX(3px); }
.lm-btn--lime {
  background: var(--lm-lime); color: var(--lm-green-deep);
  font-size: 21px; font-weight: 700; padding: 20px 34px; border-radius: 12px;
  box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .6);
}
.lm-btn--lime:hover { background: #e6fbd2; transform: translateY(-1px); }
.lm-btn--primary { background: var(--lm-green); color: #fff; box-shadow: 0 8px 22px -10px rgba(46, 94, 65, .55); }
.lm-btn--primary:hover { background: var(--lm-green-600); transform: translateY(-1px); }
.lm-btn--deep { background: var(--lm-green-deep); color: #fff; border-radius: 12px; font-size: 19px; font-weight: 700; padding: 19px 30px; }
.lm-btn--deep:hover { background: #163a29; transform: translateY(-1px); }
.lm-btn--dark { background: var(--lm-ink); color: #fff; }
.lm-btn--dark:hover { background: #000; }
.lm-btn--block { width: 100%; }
.lm-btn[disabled] { opacity: .6; cursor: progress; }
.lm-btn svg { flex: none; }
.lm-btn:focus-visible, .lm-field input:focus-visible, .lm-field select:focus-visible, .lm-x:focus-visible, .lm-back:focus-visible, .lm-stage:focus-visible {
  outline: 3px solid rgba(112, 176, 128, .55); outline-offset: 2px;
}
.lm-micro {
  margin: 16px 0 0;
  font-size: 14px;
  color: rgba(255, 255, 255, .72);
  display: flex; flex-wrap: wrap; gap: 4px 16px;
}
.lm-micro span { display: inline-flex; align-items: center; gap: 7px; }
.lm-micro span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--lm-lime); }

/* Mockup */
.lm-stage {
  position: relative;
  display: block; width: 100%;
  border: 0; padding: 0; margin: 0;
  background: none;
  cursor: pointer;
  aspect-ratio: 1 / 0.92;
}
.lm-page {
  position: absolute;
  aspect-ratio: 595 / 842;
  border-radius: 3px;
  background: #fff center / cover no-repeat;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .12), 0 26px 50px -22px rgba(0, 0, 0, .65);
  transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}
.lm-page--cover { width: 54%; left: 6%; top: 8%; z-index: 3; background-image: url('/assets/leadmagnet/cover.webp'); }
.lm-page--back1 { width: 50%; left: 26%; top: 4%; z-index: 2; transform: rotate(4deg); background-image: url('/assets/leadmagnet/page-inhalt.webp'); }
.lm-page--back2 { width: 48%; left: 44%; top: 2%; z-index: 1; transform: rotate(8deg); background-image: url('/assets/leadmagnet/page-checkliste.webp'); }
.lm-stage:hover .lm-page--back1 { transform: rotate(6deg) translateX(8px); }
.lm-stage:hover .lm-page--back2 { transform: rotate(11deg) translateX(16px); }
.lm-seal {
  position: absolute; z-index: 4;
  left: 50%; bottom: 6%;
  width: 136px; height: 136px; border-radius: 50%;
  background: #fff; color: var(--lm-green-deep);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; line-height: 1;
  box-shadow: 0 16px 34px -14px rgba(0, 0, 0, .55);
  transform: rotate(-8deg);
  font-family: var(--lm-font);
}
.lm-seal b { font-size: 46px; font-weight: 700; }
.lm-seal span { font-size: 15px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-top: 6px; }

@media (prefers-reduced-motion: no-preference) {
  .lm-hero__copy > * { animation: lm-up .7s cubic-bezier(.2, .7, .2, 1) both; }
  .lm-hero__copy > *:nth-child(2) { animation-delay: .06s; }
  .lm-hero__copy > *:nth-child(3) { animation-delay: .12s; }
  .lm-hero__copy > *:nth-child(4) { animation-delay: .18s; }
  .lm-hero__copy > *:nth-child(5) { animation-delay: .24s; }
  .lm-hero__visual { animation: lm-up .9s .15s cubic-bezier(.2, .7, .2, 1) both; }
}
@keyframes lm-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

@media (max-width: 1023px) {
  .lm-hero { padding: 48px 20px 60px; }
  .lm-hero__inner { grid-template-columns: 1fr; grid-template-areas: "copy" "visual"; gap: 28px; }
  .lm-stage { max-width: 560px; margin: 0 auto; }
}
@media (max-width: 640px) {
  .lm-hero { padding: 30px 16px 44px; }
  .lm-tag { font-size: 16px; margin-bottom: 10px; }
  .lm-lead { font-size: 18px; margin-bottom: 22px; }
  .lm-benefits { gap: 12px; margin-bottom: 26px; }
  .lm-benefits li { grid-template-columns: 30px 1fr; gap: 12px; font-size: 16px; }
  .lm-tick { width: 30px; height: 30px; }
  .lm-cta-row .lm-btn { width: 100%; }
  .lm-btn--lime { font-size: 18px; padding: 18px 20px; }
  .lm-micro { font-size: 13px; }
  /* Mockup direkt unter die Headline */
  .lm-hero__inner { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .lm-hero__copy { display: contents; }
  .lm-tag { order: 1; align-self: flex-start; }
  .lm-hero h1 { order: 2; }
  .lm-hero__visual { order: 3; width: 100%; margin: 0 0 18px; animation: none; }
  .lm-lead { order: 4; }
  .lm-benefits { order: 5; }
  .lm-cta-row { order: 6; }
  .lm-micro { order: 7; }
  .lm-stage { aspect-ratio: 1 / 0.8; }
  .lm-page--cover { width: 46%; left: 10%; }
  .lm-page--back1 { width: 42%; left: 28%; }
  .lm-page--back2 { width: 40%; left: 46%; }
  .lm-seal { width: 92px; height: 92px; left: 58%; bottom: 8%; }
  .lm-seal b { font-size: 32px; }
  .lm-seal span { font-size: 11px; }
}

/* ---------- Modal ---------- */
.lm-modal {
  position: fixed; inset: 0; z-index: 2147483000;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  font-family: var(--lm-font);
  color: var(--lm-ink);
}
.lm-modal[hidden] { display: none; }
.lm-modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(20, 24, 21, .62);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  animation: lm-fade .25s ease both;
}
.lm-modal__panel {
  position: relative;
  width: 100%; max-width: 920px;
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 330px 1fr;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .55);
  animation: lm-pop .35s cubic-bezier(.2, .8, .2, 1) both;
}
@keyframes lm-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes lm-pop { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }

.lm-x {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%;
  border: 0; background: var(--lm-sand); color: var(--lm-ink);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.lm-x:hover { background: var(--lm-line); }

.lm-aside {
  background: var(--lm-green-dark);
  color: #fff;
  padding: 36px 30px;
  display: flex; flex-direction: column; gap: 22px;
}
.lm-aside__cover {
  width: 62%;
  aspect-ratio: 595 / 842;
  background: #fff url('/assets/leadmagnet/cover.webp') center / cover no-repeat;
  border-radius: 3px;
  box-shadow: 0 22px 40px -18px rgba(0, 0, 0, .7);
  transform: rotate(-3deg);
  margin: 4px 0 6px 6px;
}
.lm-aside h3 { font-family: var(--lm-font); font-size: 22px; line-height: 1.2; font-weight: 700; margin: 0; color: #fff; }
.lm-aside ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.lm-aside li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; font-size: 15px; line-height: 1.35; color: rgba(255, 255, 255, .88); }
.lm-aside .lm-check { width: 20px; height: 20px; background: rgba(255, 255, 255, .14); color: #fff; }
.lm-aside__foot { margin-top: auto; font-size: 13px; line-height: 1.4; color: rgba(255, 255, 255, .7); }

.lm-main {
  padding: 34px 40px 30px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.lm-progress { display: flex; align-items: center; gap: 12px; margin: 0 48px 22px 0; font-size: 14px; color: var(--lm-ink-3); }
.lm-progress[hidden] { display: none; }
.lm-progress__bar { flex: 1; height: 6px; border-radius: 6px; background: var(--lm-sand); overflow: hidden; }
.lm-progress__bar i { display: block; height: 100%; width: 50%; background: var(--lm-green); border-radius: 6px; transition: width .4s ease; }

.lm-step[hidden] { display: none; }
.lm-step { animation: lm-in .35s ease both; }
@keyframes lm-in { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.lm-step h2 {
  font-family: var(--lm-font);
  font-size: 28px; line-height: 1.15; font-weight: 700;
  margin: 0 0 6px; color: var(--lm-ink);
}
.lm-step .lm-sub { font-size: 16px; line-height: 1.45; color: var(--lm-ink-2); margin: 0 0 22px; }

.lm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.lm-grid .lm-span2 { grid-column: 1 / -1; }
.lm-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.lm-field label { font-size: 15px; font-weight: 600; color: var(--lm-ink); }
.lm-field label .lm-opt { font-weight: 400; color: var(--lm-ink-3); }
.lm-field input, .lm-field select {
  -webkit-appearance: none; appearance: none;
  width: 100%;
  font-family: var(--lm-font);
  font-size: 16px;
  color: var(--lm-ink);
  background: #fff;
  border: 1px solid var(--lm-line);
  border-radius: var(--lm-radius);
  padding: 14px 14px;
  min-height: 52px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.lm-field input::placeholder { color: #a9a8a1; }
.lm-field input:focus, .lm-field select:focus { outline: none; border-color: var(--lm-green); box-shadow: 0 0 0 3px rgba(112, 176, 128, .2); }
.lm-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%231d1d1b' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
  padding-right: 42px;
}
.lm-field select:invalid { color: #a9a8a1; }
.lm-field select option { color: var(--lm-ink); }
.lm-field.is-invalid input, .lm-field.is-invalid select { border-color: var(--lm-error); }
.lm-err { font-size: 13px; color: var(--lm-error); min-height: 0; }
.lm-err:empty { display: none; }

.lm-phone { display: grid; grid-template-columns: 112px 1fr; gap: 8px; }

.lm-actions { margin-top: 22px; display: flex; flex-direction: column; gap: 12px; }
.lm-back {
  align-self: flex-start;
  background: none; border: 0; padding: 4px 0;
  font-family: var(--lm-font); font-size: 15px; color: var(--lm-ink-3);
  cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
}
.lm-back:hover { color: var(--lm-ink); }
.lm-legal { font-size: 13px; line-height: 1.45; color: var(--lm-ink-3); margin: 14px 0 0; }
.lm-legal a { color: inherit; }
.lm-trust { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--lm-ink-3); margin-top: 4px; }
.lm-trust span { display: inline-flex; align-items: center; gap: 6px; }
.lm-trust svg { color: var(--lm-green); }
.lm-alert {
  margin-top: 14px; padding: 12px 14px; border-radius: var(--lm-radius);
  background: #fbeeec; color: #8a2a1f; font-size: 14px; line-height: 1.45;
}
.lm-alert a { color: inherit; font-weight: 600; }
.lm-alert[hidden] { display: none; }

.lm-success { text-align: left; }
.lm-success__icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--lm-green-050); color: var(--lm-green-dark);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.lm-success .lm-btn { margin-top: 6px; }
.lm-next {
  margin-top: 24px; padding: 18px; border-radius: 10px; background: var(--lm-sand);
  display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center;
}
.lm-next p { margin: 0; font-size: 15px; line-height: 1.4; color: var(--lm-ink-2); }
.lm-next strong { color: var(--lm-ink); display: block; font-size: 16px; }
.lm-next a { white-space: nowrap; color: var(--lm-green-dark); font-weight: 600; text-decoration: none; font-size: 16px; }

html.lm-lock, html.lm-lock body { overflow: hidden !important; }

@media (max-width: 820px) {
  .lm-modal { padding: 0; align-items: flex-end; }
  .lm-modal__panel {
    grid-template-columns: 1fr;
    max-width: none;
    max-height: 94vh; max-height: 94dvh;
    border-radius: 16px 16px 0 0;
    animation-name: lm-sheet;
  }
  @keyframes lm-sheet { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
  .lm-aside { display: none; }
  .lm-main { padding: 24px 20px calc(24px + env(safe-area-inset-bottom)); }
  .lm-step h2 { font-size: 24px; }
  .lm-step .lm-sub { font-size: 15px; margin-bottom: 18px; }
  .lm-mini { display: flex !important; }
}
@media (max-width: 480px) {
  .lm-grid { grid-template-columns: 1fr; gap: 14px; }
  .lm-phone { grid-template-columns: 116px 1fr; }
  .lm-phone select { padding-left: 12px; padding-right: 34px; background-position: right 12px center; }
  .lm-next { grid-template-columns: 1fr; }
}
.lm-mini {
  display: none;
  align-items: center; gap: 12px;
  margin: 0 48px 16px 0;
}
.lm-mini i {
  width: 38px; aspect-ratio: 595 / 842; flex: none; border-radius: 2px;
  background: #fff url('/assets/leadmagnet/cover.webp') center / cover no-repeat;
  box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .45);
}
.lm-mini span { font-size: 14px; line-height: 1.3; color: var(--lm-ink-2); }
.lm-mini b { display: block; color: var(--lm-ink); font-size: 15px; }

/* Spam-Schutz (Honeypot) – für Menschen unsichtbar */
.lm-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
