/*
 * Nischen-Landings auf dem Handy (Befund Nischentest 15.10.: Median-Scroll
 * unter einem Bildschirm, 85-98 % In-App-Browser): feste CTA-Leiste unten,
 * im Instagram-/Facebook-In-App-Browser WhatsApp bzw. Rueckruf zuerst.
 * Eigene Fallback-Farben, damit Kit- und tm-alt-Seiten gleich aussehen.
 */
.nm-bar, .nm-sheet-wrap { display: none; }
@media (max-width: 760px) {
  .nm-bar {
    display: flex; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 900;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, .96); border-top: 1px solid rgba(0, 0, 0, .08);
    box-shadow: 0 -8px 20px rgba(0, 0, 0, .08);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    font-family: var(--pl-sans, "TM Sans", "Segoe UI", system-ui, -apple-system, sans-serif);
  }
  html[data-tm-chrome="dark"] .nm-bar { background: rgba(10, 14, 16, .94); border-top-color: rgba(255, 255, 255, .1); }
  body.has-nm-bar { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
  .nm-btn {
    flex: 1 1 0; display: flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 50px; padding: 0 12px; border: 0; border-radius: 999px; cursor: pointer;
    font-family: inherit; font-weight: 700; font-size: 15px; line-height: 1.15; text-decoration: none; text-align: center; white-space: nowrap;
  }
  .nm-btn svg { flex: none; }
  .nm-btn--wa { background: #157A3E; color: #fff; } /* weiß auf Grün >= 4.5:1 (Formular-Check 24.10.) */
  .nm-btn--main { background: #ED6A3D; color: #111; }
  .nm-btn--ghost { background: transparent; color: #14191C; box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .14); }
  html[data-tm-chrome="dark"] .nm-btn--ghost { color: #ECEDEE; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .22); }
  .nm-btn:focus-visible { outline: 3px solid #ED6A3D; outline-offset: 2px; }
  /* Reihenfolge: im In-App-Browser der "ohne Anmeldung"-Weg zuerst */
  .nm-bar .nm-inapp-first { order: 2; }
  .tm-inapp .nm-bar .nm-inapp-first { order: 0; }

  /* Rueckruf-Formular als Blatt von unten (Mockup, sendet nichts) */
  .nm-sheet-wrap.is-open { display: flex; position: fixed; inset: 0; z-index: 1000; align-items: flex-end; background: rgba(0, 0, 0, .45); }
  .nm-sheet {
    width: 100%; max-height: 92vh; overflow: auto; padding: 20px 18px calc(18px + env(safe-area-inset-bottom, 0px));
    border-radius: 20px 20px 0 0; background: #fff; color: #14191C;
    font-family: var(--pl-sans, "TM Sans", "Segoe UI", system-ui, -apple-system, sans-serif);
  }
  .nm-sheet h2 { margin: 0 0 4px; font-size: 20px; }
  .nm-sheet p { margin: 0 0 14px; font-size: 15px; color: #55606A; }
  .nm-sheet label { display: block; margin: 10px 0 4px; font-size: 14px; font-weight: 600; }
  .nm-sheet input, .nm-sheet select { width: 100%; min-height: 46px; padding: 0 12px; border: 1px solid #C9D0D5; border-radius: 12px; font: inherit; font-size: 16px; background: #fff; color: inherit; box-sizing: border-box; }
  .nm-sheet .nm-check { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; font-weight: 400; font-size: 13px; color: #55606A; }
  .nm-sheet .nm-check input { width: 20px; min-height: 20px; margin-top: 2px; }
  .nm-sheet .nm-actions { display: flex; gap: 8px; margin-top: 16px; }
  .nm-sheet .nm-mock { margin: 10px 0 0; padding: 8px 10px; border-radius: 10px; background: #FFF3E8; color: #8A3B12; font-size: 12px; }
}
