/* =============================================================
   lp.css — Follow-up-Prompt (SHX Solutions), dunkler One-Pager
   Basis: tokens.css + base.css aus dem Skript-Generator.
   Mobile first. Reihenfolge mobil (Angebotslogik-Muster):
   Logo -> Chip -> H1 -> Lede -> CTA -> Bild -> Vorteile -> CTA 2 -> Raster
   Desktop ab 1040 px: Copy links, Lead-Liste rechts.
   ============================================================= */

:root {
  --bg: #0a0a0a;
  --panel: #111213;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.13);
  --text-2: rgba(255, 255, 255, 0.68);
  --text-3: rgba(255, 255, 255, 0.5);
}

body.page-dark {
  background: var(--bg);
  color: #fff;
  color-scheme: dark;
}
.page-dark ::selection { background: var(--shx-sky-500); color: #fff; }

/* Punkt-Textur auf Dunkel */
.page-dark .dot-floor {
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.16) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 38%, #000 10%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 55% at 50% 38%, #000 10%, transparent 75%);
  opacity: 0.4;
}

/* =============================================================
   Kopfzeile
   ============================================================= */
.top {
  position: relative; z-index: 3;
  display: flex; justify-content: center;
  padding: 22px 24px 0;
}
.top__brand { display: block; line-height: 0; }
.top__brand img { width: 128px; height: auto; display: block; }

/* LP mobil ohne Logo (Marwen, 26.09.): der erste Bildschirm beginnt direkt mit der
   Pille, Headline, CTA und Bildanfang stehen ohne Scrollen im Blick. */
@media (max-width: 759px) {
  .top--desktop-only { display: none; }
  .top--desktop-only + main .hero { padding-top: 14px; }
}

/* =============================================================
   Hero
   ============================================================= */
.hero {
  position: relative;
  overflow: clip;
  padding: 26px 0 44px;
}
.hero__glow {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 38% at 50% 64%, rgba(23, 150, 201, 0.22), transparent 70%),
    radial-gradient(ellipse 55% 30% at 50% 0%, rgba(144, 207, 232, 0.07), transparent 70%);
}

.hero__grid {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "head"
    "cta"
    "visual"
    "bens"
    "cta2";
  text-align: center;
}
.hero__head   { grid-area: head; }
.hero__cta    { grid-area: cta; }
.hero__media  { grid-area: visual; min-width: 0; }
.bens         { grid-area: bens; }
.hero__cta--2 { grid-area: cta2; }

/* Chip (Eyebrow mit SHX-Zeichen) */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 8px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.04);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.76);
}
.chip img { display: block; width: 16px; height: 16px; flex: none; }
/* Muster aus dem Skript-Generator (Runde 18e): Schrift an die Breite gekoppelt,
   damit die Pille auf jedem Handy einzeilig bleibt. */
@media (max-width: 759px) {
  .chip { white-space: nowrap; max-width: 100%; font-size: min(11px, 2.7vw); letter-spacing: 0.04em; padding: 6px 12px 6px 7px; }
  .chip img { width: min(16px, 3.7vw); height: min(16px, 3.7vw); }
  .cc-select { flex: 0 0 104px; }
  .cc-select select { padding: 17px 26px 17px 12px; }
  .phone-row { gap: 8px; }
}

/* Headline: weisse Gestura, kursiver Sky-Akzent als zweite Zeile */
.hero__h1 {
  margin: 16px auto 0;
  font-family: var(--shx-font-serif);
  font-weight: 400;
  font-size: clamp(34px, 9.4vw, 48px);
  line-height: 1.04;
  letter-spacing: -0.05em;
  color: #fff;
  text-wrap: balance;
  max-width: 11em;
}
.hero__h1 .ital--sky { display: block; padding-bottom: 0.06em; }
.nb { white-space: nowrap; }

.hero__lede {
  margin: 14px auto 0;
  max-width: 34em;
  font-size: clamp(14.5px, 3.9vw, 16px);
  line-height: 1.55;
  letter-spacing: -0.02em;
  color: var(--text-2);
  text-wrap: pretty;
}

/* =============================================================
   CTA auf Dunkel: weisse 3D-Pille im Ring (Pill im Pill)
   ============================================================= */
.hero__cta { margin-top: 22px; }
.hero__cta--2 { margin-top: 26px; }

.page-dark .cta {
  border: 1px solid rgba(255, 255, 255, 0.92);
  background: linear-gradient(180deg, #ffffff 0%, #f1f1f1 55%, #e4e4e4 100%);
  color: #0a0a0a;
  padding: 20px 40px;
  min-height: 64px;
  box-shadow:
    0 0 0 5px rgba(255, 255, 255, 0.06),
    0 0 0 6px rgba(255, 255, 255, 0.1),
    inset 0 1px 0 #fff,
    inset 0 -3px 8px rgba(0, 0, 0, 0.12),
    0 3px 8px rgba(0, 0, 0, 0.45),
    0 22px 50px -14px rgba(23, 150, 201, 0.6);
}
.page-dark .cta__layer { font-size: clamp(16px, 4.3vw, 19px); letter-spacing: -0.04em; }
.cta__mark { display: block; width: 18px; height: 18px; flex: none; }
@media (hover: hover) and (pointer: fine) {
  .page-dark .cta:hover {
    box-shadow:
      0 0 0 5px rgba(255, 255, 255, 0.08),
      0 0 0 6px rgba(144, 207, 232, 0.28),
      inset 0 1px 0 #fff,
      inset 0 -3px 8px rgba(0, 0, 0, 0.12),
      0 6px 14px rgba(0, 0, 0, 0.45),
      0 28px 64px -12px rgba(23, 150, 201, 0.75);
  }
}
.page-dark .cta:active {
  box-shadow:
    0 0 0 5px rgba(255, 255, 255, 0.06),
    0 0 0 6px rgba(255, 255, 255, 0.1),
    inset 0 2px 6px rgba(0, 0, 0, 0.2),
    0 8px 22px -10px rgba(23, 150, 201, 0.55);
}
.page-dark .cta:focus-visible { outline: 2px solid var(--shx-sky-300); outline-offset: 9px; }
.page-dark .cta.is-busy { opacity: 0.8; }

.trust {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin: 18px 0 0;
  font-size: 13px; letter-spacing: -0.015em;
  color: var(--text-3);
}
.trust__part { white-space: nowrap; }
.trust__sep { flex: none; width: 4px; height: 4px; border-radius: 50%; background: var(--shx-sky-400); opacity: 0.8; }
/* Passen beide Teile nicht in eine Zeile (schmale Handys), stehen sie sauber
   untereinander statt mitten im Satz umzubrechen. */
@media (max-width: 359.98px) {
  .trust { flex-direction: column; gap: 3px; }
  .trust__sep { display: none; }
}

/* =============================================================
   Bild: die Lead-Liste
   ============================================================= */
.hero__media {
  position: relative;
  margin: 30px auto 0;
  width: 100%; max-width: 480px;
}
.hero__visual {
  position: relative;
  margin: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #050505;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 40px 90px -38px rgba(23, 150, 201, 0.6),
    0 30px 60px -30px rgba(0, 0, 0, 0.85);
}
.hero__visual img {
  display: block; width: 100%; height: auto;
  aspect-ratio: 4 / 5; object-fit: cover;
}
/* Gold-Varianten: waermerer Schein statt Sky */
.is-gold .hero__visual {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 40px 90px -38px rgba(217, 181, 106, 0.38),
    0 30px 60px -30px rgba(0, 0, 0, 0.85);
}

/* =============================================================
   Vorteile
   ============================================================= */
.bens {
  list-style: none;
  margin: 28px auto 0; padding: 0;
  max-width: 440px;
  display: grid; gap: 14px;
  text-align: left;
}
.bens li { display: flex; align-items: center; gap: 14px; }
.bens__ic { flex: none; line-height: 0; }
.bens__ic img { width: 40px; height: 40px; display: block; }
.bens__t {
  font-size: 15.5px; line-height: 1.4; letter-spacing: -0.025em;
  color: rgba(255, 255, 255, 0.86);
  text-wrap: pretty;
}

/* =============================================================
   CRM-Partner: Raster als Laufband direkt unter dem Bild
   (Muster Skript-Generator). Zwei identische Saetze im Track,
   base.css verschiebt um -50 % -> nahtlose Schleife.
   ============================================================= */
.logos { margin-top: 22px; text-align: center; }
.logos__label {
  margin: 0 0 12px;
  font-size: min(12px, 3.1vw); font-weight: 500;
  letter-spacing: 0.07em; text-transform: uppercase;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.46);
}
.logos__band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.logos__track { list-style: none; margin: 0; padding: 0; }
.logos__track li {
  flex: none;
  display: flex; align-items: center; justify-content: center;
  width: 136px; height: 62px; padding: 0 12px;
  border-left: 1px solid var(--line);
}
.logos__track img {
  display: block;
  max-width: 100%; max-height: 22px; width: auto; height: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.55;
}
/* Optisch gleiche Flaeche: die PNGs liegen auf einer 300x96-Buehne mit Rand
   (aus prep_logos.py), die vier SVGs von saleshax.de sind randlos. */
.logos__track img[src$=".png"] { max-height: 44px; }
.logos__track img[src*="autosecure"] { max-height: 16px; }
.logos__track img[src*="krueger"] { max-height: 19px; }
.logos__track img[src*="highoffice"] { max-height: 22px; }
.logos__track img[src*="brodax"] { max-height: 23px; }

/* =============================================================
   Footer
   ============================================================= */
.foot {
  border-top: 1px solid var(--line);
  padding: 26px 24px calc(26px + env(safe-area-inset-bottom));
  font-size: 13.5px; letter-spacing: -0.015em;
  color: rgba(255, 255, 255, 0.42);
}
.foot__row {
  max-width: 1240px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  text-align: center;
}
.foot a { color: rgba(255, 255, 255, 0.55); text-decoration: none; transition: color 0.16s; }
.foot a:hover { color: #fff; }
.foot__mid { display: inline-flex; gap: 20px; }

/* =============================================================
   Opt-in-Modal
   ============================================================= */
html.is-locked, html.is-locked body { overflow: hidden; }

.optin {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: end center;
  color-scheme: dark;
}
.optin__backdrop {
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0.7);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; transition: opacity 0.28s var(--shx-ease-out);
}
.optin__panel {
  position: relative;
  width: 100%; max-width: 480px;
  max-height: calc(100dvh - 16px); overflow: auto;
  padding: 30px 20px calc(22px + env(safe-area-inset-bottom));
  background:
    radial-gradient(ellipse 80% 40% at 50% 0%, rgba(23, 150, 201, 0.14), transparent 70%),
    var(--panel);
  border: 1px solid var(--line-2);
  border-bottom: 0;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  box-shadow: 0 -24px 70px rgba(0, 0, 0, 0.65);
  text-align: left;
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.32s var(--shx-ease-out), transform 0.42s var(--shx-ease-out);
}
.optin__panel:focus { outline: none; }
.optin.is-open .optin__backdrop { opacity: 1; }
.optin.is-open .optin__panel { opacity: 1; transform: none; }

.optin__x {
  position: absolute; top: 14px; right: 14px;
  display: grid; place-items: center;
  width: 36px; height: 36px; padding: 0;
  border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}
.optin__x:hover { background: rgba(255, 255, 255, 0.13); color: #fff; }
.optin__x svg { width: 18px; height: 18px; }

.optin__kicker {
  margin: 0 0 10px;
  font-size: 11.5px; font-weight: 600;
  letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--shx-sky-200);
}
.optin__title {
  margin: 0 0 6px; padding-right: 36px;
  font-family: var(--shx-font-serif);
  font-weight: 400;
  font-size: clamp(26px, 7vw, 32px);
  line-height: 1.08; letter-spacing: -0.045em;
  color: #fff;
}
.optin__sub {
  margin: 0 0 20px;
  font-size: 14.5px; line-height: 1.45; letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.62);
}

/* Schritt 1: CRM-Auswahl */
.crm { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.crm__opt { position: relative; display: block; }
.crm__opt input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.crm__opt span {
  display: flex; align-items: center; justify-content: center;
  height: 56px; padding: 0 12px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.035);
  font-size: 15.5px; font-weight: 500; letter-spacing: -0.03em;
  color: #fff;
  transition: border-color 0.2s, background 0.2s, transform 0.12s var(--shx-ease-out);
  pointer-events: none;
}
@media (hover: hover) {
  .crm__opt:hover span { border-color: rgba(144, 207, 232, 0.55); background: rgba(23, 150, 201, 0.08); }
}
.crm__opt input:checked + span { border-color: var(--shx-sky-500); background: rgba(23, 150, 201, 0.18); }
.crm__opt input:focus-visible + span { outline: 2px solid var(--shx-sky-400); outline-offset: 2px; }
.crm__opt:active span { transform: scale(0.98); }

/* Schritt 2: Kontakt */
.optin__back {
  display: inline-flex; align-items: center; gap: 6px;
  margin: -6px 0 12px -6px; padding: 6px;
  border: 0; background: none; cursor: pointer;
  font-size: 14px; letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.18s;
}
.optin__back:hover { color: #fff; }
.optin__back svg { width: 16px; height: 16px; }

.optin .field input,
.optin .cc-select select {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.13);
  color: #fff;
}
.optin .field input::placeholder { color: rgba(255, 255, 255, 0.52); }
.optin .field input:focus,
.optin .cc-select select:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--shx-sky-500);
  box-shadow: 0 0 0 4px rgba(23, 150, 201, 0.2);
}
.optin .cc-select::after { border-color: rgba(255, 255, 255, 0.55); }
.optin .cc-select select option { background: #16181a; color: #fff; }
.optin .err { color: #ff8f86; }
.optin .field input[aria-invalid="true"] { border-color: #ff8f86; }

.optin .cta--wide { margin-top: 8px; }
.err--form { text-align: center; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.optin__consent {
  margin: 14px 0 0;
  font-size: 12px; line-height: 1.45; letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.46);
  text-align: center;
}
.optin__consent a { color: rgba(255, 255, 255, 0.66); text-underline-offset: 2px; }

.cta__spin {
  display: inline-block; width: 15px; height: 15px;
  border: 2px solid rgba(0, 0, 0, 0.2);
  border-top-color: #0a0a0a; border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* =============================================================
   Ab 640 px: Modal als zentrierte Karte
   ============================================================= */
@media (min-width: 640px) {
  .optin { place-items: center; padding: 24px; }
  .optin__panel {
    border-bottom: 1px solid var(--line-2);
    border-radius: var(--r-lg);
    padding: 36px 32px 28px;
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.8), 0 30px 80px -40px rgba(23, 150, 201, 0.45);
  }
  .crm__opt span { height: 58px; }
}

/* =============================================================
   Ab 760 px
   ============================================================= */
@media (min-width: 760px) {
  .top { padding-top: 28px; }
  .top__brand img { width: 140px; }
  .hero { padding-top: 34px; }
  .hero__h1 { font-size: clamp(44px, 6.4vw, 58px); max-width: 15ch; }
  .hero__lede { font-size: 17px; max-width: 36em; }
  .hero__media { max-width: 520px; }
  .logos__track li { width: 150px; height: 68px; padding: 0 14px; }
}

/* =============================================================
   Ab 1040 px: Copy links, Lead-Liste rechts
   ============================================================= */
@media (min-width: 1040px) {
  .top { justify-content: flex-start; max-width: 1240px; margin: 0 auto; padding: 30px 24px 0; }

  .hero { padding: 18px 0 56px; }
  .hero .wrap { max-width: 1240px; }
  .hero__glow {
    background:
      radial-gradient(ellipse 34% 46% at 74% 48%, rgba(23, 150, 201, 0.24), transparent 72%),
      radial-gradient(ellipse 40% 30% at 20% 10%, rgba(144, 207, 232, 0.06), transparent 70%);
  }
  .page-dark .dot-floor {
    -webkit-mask-image: radial-gradient(ellipse 46% 60% at 72% 46%, #000 10%, transparent 76%);
            mask-image: radial-gradient(ellipse 46% 60% at 72% 46%, #000 10%, transparent 76%);
  }

  .hero__grid {
    grid-template-columns: minmax(0, 1.14fr) minmax(0, 0.86fr);
    grid-template-rows: 1fr auto auto auto 1fr;
    grid-template-areas:
      ".    visual"
      "head visual"
      "bens visual"
      "cta  visual"
      ".    visual";
    column-gap: clamp(44px, 4.5vw, 72px);
    text-align: left;
  }
  .hero__head, .bens, .hero__cta { justify-self: start; }

  /* Jeder Satz eine Zeile: bei 1440 px misst Satz 1 ~618 px, die Spalte ~642 px.
     Schmaler (1040-1300) balanciert der Browser sauber auf 2 + 2 Zeilen. */
  .hero__h1 {
    margin: 22px 0 0;
    max-width: none;
    font-size: clamp(42px, 3.6vw, 52px);
    line-height: 1.06;
    text-wrap: balance;
  }
  .hero__lede { margin: 20px 0 0; max-width: 31em; font-size: 17.5px; }

  .bens { margin: 30px 0 0; max-width: 480px; gap: 16px; }
  .bens__t { font-size: 16px; }

  .hero__cta { margin-top: 36px; }
  .trust { justify-content: flex-start; }
  .hero__cta--2 { display: none; }

  /* Bild + Laufband passen zusammen in den ersten Bildschirm */
  .hero__media {
    justify-self: end; align-self: center;
    margin: 0;
    width: min(100%, calc((100svh - 280px) * 0.8));
    max-width: 520px;
  }
  .logos { margin-top: 24px; }
  .logos__label { font-size: 11.5px; }

  .foot__row { flex-direction: row; justify-content: space-between; }
  .foot__row > * { width: 33%; }
  .foot__row > :first-child { text-align: left; }
  .foot__row > :last-child { text-align: right; }
  .foot__mid { justify-content: center; }
}

@media (min-width: 1600px) {
  .hero__media { max-width: 540px; }
}

/* =============================================================
   Reduced Motion
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .optin__backdrop, .optin__panel { transition: none; }
  .optin__panel { transform: none; }
  .cta__spin { animation-duration: 1.6s; }
}
