/* =============================================================
   Skript-Generator LP — seitenspezifische Styles
   Baut auf website.css + colors_and_type.css auf
   ============================================================= */

html { scrollbar-gutter: stable; }

.nav-link, .lnk, .logo { text-decoration: none; }
.nav { -webkit-backdrop-filter: blur(12px); }

/* ---------- Hero (zentriert, Generator als Herzstück) ---------- */
.hero-stack {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
}
.hero-stack .h1 { max-width: 900px; }
.lead.centered { margin-left: auto; margin-right: auto; }

/* ---------- Generator-Panel ---------- */
.gen-panel {
  width: 100%; max-width: 760px;
  margin-top: 48px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 18px;
  padding: 32px;
  text-align: left;
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.4), 0 4px 9.8px rgba(144,207,232,0.2);
}
.gen-label {
  display: block;
  font-family: var(--shx-font-sans);
  font-size: 15px; font-weight: 500; letter-spacing: -0.03em;
  color: var(--shx-black);
  margin-bottom: 12px;
}
.gen-textarea {
  width: 100%;
  resize: vertical;
  min-height: 120px;
  font-family: var(--shx-font-sans);
  font-size: 16px; line-height: 1.55; letter-spacing: -0.02em;
  color: var(--shx-black);
  background: var(--shx-bg-warm);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  padding: 16px 18px;
  transition: border-color 240ms var(--shx-ease-out), background 240ms var(--shx-ease-out);
}
.gen-textarea::placeholder { color: var(--shx-grey-350); }
.gen-textarea:focus {
  outline: none;
  border-color: var(--shx-sky-500);
  background: #fff;
}
.gen-textarea.invalid { border-color: rgba(0,0,0,0.55); }

.gen-error, .field-error {
  font-family: var(--shx-font-sans);
  font-size: 14px; letter-spacing: -0.02em;
  color: rgba(0,0,0,0.75);
  margin: 10px 0 0;
}
.field-error { font-size: 13px; margin: 6px 0 0; }
.field-hint {
  font-size: 13px;
  margin: 6px 0 0;
}

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.chip {
  font-family: var(--shx-font-sans);
  font-size: 13px; letter-spacing: -0.02em;
  color: rgba(0,0,0,0.6);
  background: transparent;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 100px;
  padding: 8px 16px;
  cursor: pointer;
  transition: color 160ms, border-color 160ms, background 160ms;
}
.chip:hover { color: var(--shx-black); border-color: rgba(0,0,0,0.25); background: var(--shx-bg-warm); }

.gen-cta {
  margin-top: 24px;
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.gen-cta .btn[disabled] { cursor: default; }
.gen-cta .btn[disabled] .btn-inner { background: linear-gradient(#3a3a3a 0%, #8a8a8a 100%); }

/* ---------- Skript-Vorschau ---------- */
.script-preview {
  width: 100%; max-width: 760px;
  margin: 28px 0 0;
  text-align: left;
}
.script-preview figcaption { margin-bottom: 10px; }
.script-lines {
  position: relative;
  background: var(--shx-bg-warm);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 14px;
  padding: 24px 28px 8px;
  overflow: hidden;
}
.script-lines p {
  font-family: var(--shx-font-serif);
  font-size: 19px; line-height: 1.45; letter-spacing: -0.03em;
  color: rgba(0,0,0,0.8);
  margin: 0 0 16px;
}
.script-lines p:last-child {
  margin-bottom: 0;
  padding-bottom: 20px;
  mask-image: linear-gradient(180deg, #000 30%, transparent 95%);
  -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 95%);
}
.script-note { margin-top: 10px; }

/* ---------- Stats-Strip ---------- */
.stat .n { font-size: clamp(36px, 4vw, 52px); white-space: nowrap; }

/* ---------- Anwendungsfälle 2×2 ---------- */
.num-grid.two-col { grid-template-columns: repeat(2, 1fr); }

/* ---------- Dark-Bridge ---------- */
.bridge-grid {
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  gap: 48px; align-items: center;
}
.bridge-visual { display: flex; justify-content: center; }
.eyebrow-caps {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 13px;
}

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 860px; }
.faq-list { margin-top: 48px; border-top: 1px solid rgba(0,0,0,0.1); }
.faq-item { border-bottom: 1px solid rgba(0,0,0,0.1); }
.faq-item summary {
  list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  cursor: pointer;
  padding: 24px 4px;
  font-family: var(--shx-font-serif);
  font-size: 22px; letter-spacing: -0.03em;
  color: var(--shx-black);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--shx-font-serif);
  font-size: 26px;
  color: var(--shx-grey-350);
  flex-shrink: 0;
  transition: transform 240ms var(--shx-ease-out);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
  font-family: var(--shx-font-sans);
  font-size: 16px; line-height: 1.6; letter-spacing: -0.02em;
  color: rgba(0,0,0,0.7);
  margin: 0 0 24px;
  max-width: 680px;
  padding: 0 4px;
}

/* ---------- Modal (2-Step-Optin) ---------- */
.modal-overlay[hidden] { display: none; }
.modal-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(10,10,10,0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.modal {
  position: relative;
  width: 100%; max-width: 480px;
  background: #fff;
  border-radius: 18px;
  padding: 40px;
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
}
.modal-close {
  position: absolute; top: 18px; right: 18px;
  background: none; border: none; cursor: pointer;
  color: var(--shx-grey-350);
  padding: 4px;
  display: flex;
  transition: color 160ms;
}
.modal-close:hover { color: var(--shx-black); }

.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-family: var(--shx-font-sans);
  font-size: 13px; font-weight: 500; letter-spacing: -0.02em;
  color: var(--shx-grey-600);
  margin-bottom: 6px;
}
.field input {
  width: 100%;
  font-family: var(--shx-font-sans);
  font-size: 16px; letter-spacing: -0.02em;
  color: var(--shx-black);
  background: var(--shx-bg-warm);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 10px;
  padding: 13px 16px;
  transition: border-color 240ms var(--shx-ease-out), background 240ms var(--shx-ease-out);
}
.field input::placeholder { color: var(--shx-grey-350); }
.field input:focus { outline: none; border-color: var(--shx-sky-500); background: #fff; }
.field input.invalid { border-color: rgba(0,0,0,0.55); }

.modal-submit { margin-top: 8px; width: 100%; }
.modal-submit .btn-inner { width: 100%; justify-content: center; }
.consent { margin-top: 16px; }
.consent a { color: inherit; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .bridge-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .hero-stack .h1 { font-size: 42px; }
  .lead.centered { font-size: 17px; }
  .nav-inner { gap: 12px; }
  .nav .logo img { height: 14px !important; }
  .nav .btn.sm .btn-inner { padding: 9px 16px; font-size: 12px; letter-spacing: -0.04em; }
  .gen-panel { padding: 22px 18px; margin-top: 36px; }
  .gen-cta { flex-direction: column; align-items: stretch; text-align: center; }
  .gen-cta .btn { justify-content: center; }
  .gen-cta .btn-inner { width: 100%; justify-content: center; }
  .script-lines { padding: 18px 18px 8px; }
  .script-lines p { font-size: 17px; }
  .num-grid.two-col { grid-template-columns: 1fr; }
  .faq-item summary { font-size: 19px; }
  .modal { padding: 32px 22px; }
  .stat .n { white-space: normal; }
}
