/* =============================================================
   lp.css — Angebotslogik-KI, dunkler One-Pager
   Design: Follow-up-Prompt (Schwarz, Weiß, Sky, Gestura/Geist).
   Ablauf: Eingabe-Karte wie beim Skript-Generator (zwei Sätze -> Generierung
   -> Name + E-Mail -> Handynummer).
   Mobil: Chip -> H1 -> Lede -> Karte -> Bild -> Logo-Band.
   Desktop ab 1040 px: Copy + Karte links, Bild + Band 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; }

.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 (mobil ausgeblendet, Marwen 26.09.)
   ============================================================= */
.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; }
@media (max-width: 759px) {
  .top--desktop-only { display: none; }
  .top--desktop-only + main .hero { padding-top: 14px; }
}

/* =============================================================
   Hero
   ============================================================= */
.hero { position: relative; overflow: clip; padding: 14px 0 44px; }
.hs-view-beacon {
  position: absolute; top: 0; left: 0; z-index: 0;
  width: 1px; height: 1px; overflow: hidden;
  opacity: 0; pointer-events: none;
}
.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"
    "brief"
    "visual";
  text-align: center;
}
.hero__head  { grid-area: head; }
.brief       { grid-area: brief; }
.hero__media { grid-area: visual; min-width: 0; }

.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; }
@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; }
}

.hero__h1 {
  margin: 16px auto 0;
  font-family: var(--shx-font-serif);
  font-weight: 400;
  font-size: clamp(33px, 9vw, 46px);
  line-height: 1.04;
  letter-spacing: -0.05em;
  color: #fff;
  text-wrap: balance;
  max-width: 12em;
}
.hero__h1 .h1__a, .hero__h1 .h1__b { display: block; }
.hero__h1 .ital--sky { 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: weiße 3D-Pille im Ring (Pill im Pill)
   ============================================================= */
.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: 19px 32px;
  min-height: 62px;
  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, 18.5px); 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: 16px 0 0;
  font-size: 13px; letter-spacing: -0.015em;
  color: var(--text-3);
}
.trust__part { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.trust__wa svg { width: 15px; height: 15px; color: var(--wa-green); flex: none; }
.trust__sep { flex: none; width: 4px; height: 4px; border-radius: 50%; background: var(--shx-sky-400); opacity: 0.8; }
@media (max-width: 359.98px) {
  .trust { flex-direction: column; gap: 3px; }
  .trust__sep { display: none; }
}

/* =============================================================
   Eingabe-Karte (dunkles Glas, Ablauf wie Skript-Generator)
   ============================================================= */
.brief {
  position: relative;
  margin: 24px auto 0;
  width: 100%; max-width: 560px;
  padding: 18px 16px 20px;
  text-align: left;
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  background:
    radial-gradient(ellipse 90% 60% at 50% 0%, rgba(23, 150, 201, 0.13), transparent 70%),
    linear-gradient(180deg, rgba(22, 24, 26, 0.94), rgba(14, 15, 16, 0.94));
  box-shadow:
    0 0 0 6px rgba(255, 255, 255, 0.025),
    0 30px 70px -30px rgba(0, 0, 0, 0.9),
    0 40px 90px -50px rgba(23, 150, 201, 0.55);
}


.brief__field { margin-bottom: 16px; }
.brief__ta {
  display: block; width: 100%;
  min-height: 112px;
  padding: 0 0 12px;
  border: 0; border-bottom: 1px solid var(--line-2);
  border-radius: 0;
  background: transparent;
  resize: vertical;
  font-family: var(--shx-font-sans);
  font-size: 16.5px; line-height: 1.5; letter-spacing: -0.02em;
  color: #fff;
  transition: border-color 0.2s;
}
.brief__ta::placeholder { color: rgba(255, 255, 255, 0.4); }
.brief__ta:focus { outline: none; border-bottom-color: var(--shx-sky-500); }
.brief__ta[aria-invalid="true"] { border-bottom-color: #ff8f86; }

/* Generier-Zustand */
.gen { padding: 4px 0 2px; }
.gen__title {
  margin: 0 0 4px;
  font-family: var(--shx-font-serif);
  font-size: 26px; line-height: 1.1; letter-spacing: -0.04em;
  color: #fff;
}
.gen__sub { margin: 0 0 16px; font-size: 14px; color: var(--text-3); }
.gen__steps { list-style: none; margin: 0; padding: 0; }
.gen__steps li {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 0;
  font-size: 15px; letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.5);
  border-bottom: 1px solid var(--line);
  opacity: 0.45;
  transition: opacity 0.35s var(--shx-ease-out), color 0.35s;
}
.gen__steps li:last-child { border-bottom: 0; }
.gen__steps li::before {
  content: "";
  flex: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  transition: border-color 0.3s, background 0.3s;
}
.gen__steps li.is-active { opacity: 1; color: #fff; }
.gen__steps li.is-active::before { border-color: var(--shx-sky-400); border-top-color: transparent; animation: spin 0.75s linear infinite; }
.gen__steps li.is-done { opacity: 1; color: rgba(255, 255, 255, 0.72); }
.gen__steps li.is-done::before {
  border-color: var(--shx-sky-500);
  background: var(--shx-sky-500) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center/11px no-repeat;
  animation: none;
}

/* Kontakt- und Nummern-Schritt */
.brief__back {
  display: inline-flex; align-items: center; gap: 6px;
  margin: -4px 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;
}
.brief__back:hover { color: #fff; }
.brief__back svg { width: 16px; height: 16px; }
.brief__title {
  margin: 0 0 6px;
  font-family: var(--shx-font-serif);
  font-weight: 400;
  font-size: clamp(25px, 6.6vw, 30px);
  line-height: 1.08; letter-spacing: -0.045em;
  color: #fff;
}
.brief__sub {
  margin: 0 0 18px;
  font-size: 14.5px; line-height: 1.45; letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.62);
}
.wa-word { color: #5fd38a; font-weight: 600; }

.brief .field input,
.brief .cc-select select {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.13);
  color: #fff;
}
.brief .field input::placeholder { color: rgba(255, 255, 255, 0.5); }
.brief .field input:focus,
.brief .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);
}
.brief .cc-select::after { border-color: rgba(255, 255, 255, 0.55); }
.brief .cc-select select option { background: #16181a; color: #fff; }
.brief .err { color: #ff8f86; }
.brief .field input[aria-invalid="true"] { border-color: #ff8f86; }
.brief .hint {
  display: block; margin: 8px 0 0; padding: 9px 12px;
  border: 1px solid rgba(243, 197, 92, 0.35); border-radius: 10px;
  background: rgba(243, 197, 92, 0.1);
  font-size: 13px; line-height: 1.4; letter-spacing: -0.01em; color: #f3d48a;
}
.brief .cta--wide { margin-top: 6px; }
.err--form { text-align: center; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.brief__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;
}
.brief__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); } }

/* =============================================================
   Bild: das fertige Angebot
   ============================================================= */
.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; }

/* =============================================================
   Logo-Band direkt unter dem Bild (Muster Skript-Generator)
   ============================================================= */
.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;
}
.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; }

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

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

  .hero { padding: 64px 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.08fr) minmax(0, 0.92fr);
    grid-template-rows: 1fr auto auto 1fr;
    grid-template-areas:
      ".     visual"
      "head  visual"
      "brief visual"
      ".     visual";
    column-gap: clamp(44px, 4.5vw, 72px);
    text-align: left;
  }
  .hero__head { justify-self: start; }

  .hero__h1 {
    margin: 20px 0 0;
    max-width: none;
    font-size: clamp(40px, 3.4vw, 50px);
    line-height: 1.06;
  }
  .hero__lede { margin: 18px 0 0; max-width: 31em; font-size: 17px; }

  .brief { margin: 28px 0 0; max-width: 560px; justify-self: start; }
  .trust { justify-content: center; }

  .hero__media {
    justify-self: end; align-self: center;
    margin: 0;
    width: min(100%, calc((100svh - 260px) * 0.8));
    max-width: 520px;
  }
  .logos { margin-top: 22px; }
  .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; }
}

@media (prefers-reduced-motion: reduce) {
  .cta__spin, .gen__steps li.is-active::before { animation-duration: 1.6s; }
}
