/* ════════════════════════════════════════════════════════════════════════════
   CarePulz — KI-Landingpage-Generator (Tool-Seite)
   Scoped unter .lpg-* — nutzt CarePulz-Brand-Tokens (--brand-*), Glass-Cards und
   btn-primary aus styles.css / carepulz.css. Lädt NACH carepulz.css.
   ──────────────────────────────────────────────────────────────────────────── */

.lpg-wrap { max-width: 1060px; margin: 0 auto; padding: 0 20px; }

/* ── Eingabe-Karte ───────────────────────────────────────────────────────── */
.lpg-input-card { padding: 28px 26px 30px; }
.lpg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
@media (max-width: 760px) { .lpg-grid { grid-template-columns: 1fr; } }

.lpg-label { display: block; font-size: 13px; font-weight: 700; color: var(--brand-ink, #0b1220);
  margin: 0 0 7px; letter-spacing: -.01em; }
.lpg-mt { margin-top: 20px; }
.lpg-opt { font-weight: 500; color: var(--brand-muted, #6b7591); }
.lpg-hint { font-size: 12.5px; color: var(--brand-muted, #6b7591); margin: 6px 0 0; line-height: 1.5; }

.lpg-input { width: 100%; font: inherit; font-size: 15px; color: var(--brand-ink, #0b1220);
  background: rgba(255,255,255,.75); border: 1.5px solid rgba(51,129,246,.22);
  border-radius: 13px; padding: 13px 15px; outline: none; transition: border-color .16s ease, box-shadow .16s ease; }
.lpg-input:focus { border-color: var(--brand-primary, #3381F6); box-shadow: 0 0 0 4px rgba(51,129,246,.13); }
.lpg-input::placeholder { color: #9aa3bd; }
.lpg-textarea { resize: vertical; line-height: 1.55; min-height: 78px; }
.lpg-mt-sm { margin-top: 10px; }
.lpg-req { font-size: 10.5px; font-weight: 800; vertical-align: middle; margin-left: 6px; padding: 2px 8px;
  border-radius: 9999px; background: rgba(255,106,61,.12); color: #c2410c; border: 1px solid rgba(255,106,61,.28); letter-spacing: .02em; }

.lpg-block { margin-top: 20px; }
.lpg-grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
@media (max-width: 640px) { .lpg-grid3 { grid-template-columns: 1fr; } }

.lpg-segment { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.lpg-seg { font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; padding: 10px 16px; border-radius: 11px;
  background: rgba(255,255,255,.7); border: 1.5px solid rgba(51,129,246,.22); color: var(--brand-text, #475172);
  transition: border-color .15s, background .15s, color .15s; }
.lpg-seg:hover { border-color: rgba(51,129,246,.45); }
.lpg-seg.is-active { background: var(--brand-primary, #3381F6); border-color: var(--brand-primary, #3381F6); color: #fff; }

.lpg-logo-row { display: flex; align-items: center; gap: 14px; margin-top: 8px; flex-wrap: wrap; }
.lpg-logo-pick { display: inline-flex; align-items: center; gap: 8px; font: inherit; font-size: 13.5px; font-weight: 700;
  cursor: pointer; padding: 10px 16px; border-radius: 11px; background: #fff; color: var(--brand-ink, #0b1220);
  border: 1.5px solid rgba(51,129,246,.25); transition: border-color .15s, background .15s; }
.lpg-logo-pick:hover { border-color: var(--brand-primary, #3381F6); background: rgba(51,129,246,.05); }
.lpg-logo-prev:empty { display: none; }
.lpg-logo-prev { display: inline-flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 11px;
  background: rgba(52,168,83,.1); border: 1px solid rgba(52,168,83,.28); }
.lpg-logo-prev img { max-height: 34px; max-width: 130px; width: auto; display: block; }
.lpg-logo-x { cursor: pointer; border: 0; background: none; color: #15803d; font-size: 15px; font-weight: 700; line-height: 1; }

/* ── Foto-Upload ─────────────────────────────────────────────────────────── */
.lpg-photos { margin-top: 24px; padding-top: 22px; border-top: 1px solid rgba(11,18,32,.08); }
.lpg-photos-head { margin-bottom: 14px; }
.lpg-cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 820px) { .lpg-cat-grid { grid-template-columns: 1fr; } }

.lpg-cat { border: 1px solid rgba(11,18,32,.1); border-radius: 15px; background: rgba(255,255,255,.55);
  padding: 14px; display: flex; flex-direction: column; transition: border-color .16s ease, box-shadow .16s ease; }
.lpg-cat.is-met { border-color: rgba(52,168,83,.45); box-shadow: 0 0 0 3px rgba(52,168,83,.08); }
.lpg-cat-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.lpg-cat-title { font-size: 13.5px; font-weight: 700; color: var(--brand-ink, #0b1220); display: flex; align-items: center; gap: 7px; }
.lpg-cat-title svg { width: 16px; height: 16px; color: var(--brand-primary, #3381F6); flex: none; }
.lpg-cat-count { font-size: 11.5px; font-weight: 800; padding: 3px 9px; border-radius: 9999px; white-space: nowrap;
  background: rgba(239,68,68,.1); color: #b91c1c; border: 1px solid rgba(239,68,68,.25); }
.lpg-cat-count.is-met { background: rgba(52,168,83,.12); color: #15803d; border-color: rgba(52,168,83,.3); }
.lpg-cat-hint { font-size: 11.5px; color: var(--brand-muted, #6b7591); line-height: 1.45; margin: 0 0 11px; }

.lpg-cat-drop { border: 2px dashed rgba(51,129,246,.32); border-radius: 12px; padding: 16px 10px; text-align: center;
  cursor: pointer; background: rgba(51,129,246,.04); transition: background .15s, border-color .15s; }
.lpg-cat-drop:hover, .lpg-cat-drop.is-drag { background: rgba(51,129,246,.1); border-color: var(--brand-primary, #3381F6); }
.lpg-cat-drop svg { width: 24px; height: 24px; color: var(--brand-primary, #3381F6); margin: 0 auto 5px; display: block; }
.lpg-cat-drop-t { font-size: 12.5px; font-weight: 600; color: var(--brand-ink, #0b1220); }

.lpg-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-top: 11px; }
.lpg-thumbs:empty { display: none; }
.lpg-thumb { position: relative; aspect-ratio: 1/1; border-radius: 9px; overflow: hidden; background: #eef2f8; border: 1px solid rgba(11,18,32,.08); }
.lpg-thumb img { width: 100%; height: 100%; object-fit: cover; }
.lpg-thumb-x { position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: rgba(11,18,32,.72); color: #fff; border: 0; cursor: pointer; font-size: 12px; line-height: 1;
  display: flex; align-items: center; justify-content: center; }
.lpg-thumb-x:hover { background: #ef4444; }

/* ── Checkliste ──────────────────────────────────────────────────────────── */
.lpg-checklist { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px 16px; }
.lpg-check { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: var(--brand-muted, #6b7591); }
.lpg-check-box { width: 18px; height: 18px; border-radius: 6px; border: 1.5px solid rgba(11,18,32,.2);
  display: flex; align-items: center; justify-content: center; flex: none; transition: .15s; }
.lpg-check-box svg { width: 12px; height: 12px; color: #fff; opacity: 0; }
.lpg-check.is-ok { color: var(--brand-ink, #0b1220); }
.lpg-check.is-ok .lpg-check-box { background: var(--brand-success, #34a853); border-color: var(--brand-success, #34a853); }
.lpg-check.is-ok .lpg-check-box svg { opacity: 1; }

/* ── Aktionen / Button / Hinweise (wie grg) ──────────────────────────────── */
.lpg-actions { margin-top: 22px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.lpg-btn { font-size: 15px !important; padding: 13px 26px !important; border: 0; cursor: pointer; }
.lpg-btn[disabled] { opacity: .5; cursor: not-allowed; }
.lpg-btn-spin { display: none; width: 17px; height: 17px; border: 2.5px solid rgba(255,255,255,.4);
  border-top-color: #fff; border-radius: 50%; animation: lpg-spin .7s linear infinite; }
.lpg-btn.is-loading .lpg-btn-spin { display: inline-block; }
@keyframes lpg-spin { to { transform: rotate(360deg); } }
.lpg-privacy { font-size: 12px; color: var(--brand-muted, #6b7591); max-width: 360px; }

.lpg-wait-hint { margin-top: 14px; display: flex; gap: 8px; align-items: flex-start;
  font-size: 13px; line-height: 1.5; color: var(--brand-muted, #6b7591); }
.lpg-wait-hint svg { flex-shrink: 0; margin-top: 1px; }
.lpg-wait-hint b { color: var(--brand-ink, #0b1220); }
.lpg-input-card.is-working .lpg-wait-hint { color: var(--brand-primary, #3381F6); font-weight: 600; }
.lpg-input-card.is-working .lpg-wait-hint b { color: var(--brand-primary, #3381F6); }

.lpg-error { display: none; margin-top: 18px; padding: 14px 16px; border-radius: 13px;
  background: rgba(239,68,68,.08); border: 1px solid rgba(239,68,68,.3); color: #b91c1c; font-size: 14px; line-height: 1.5; }
.lpg-error.is-shown { display: block; }

/* ── So funktioniert's ───────────────────────────────────────────────────── */
.lpg-how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 16px; }
@media (max-width: 700px) { .lpg-how { grid-template-columns: 1fr; } }
.lpg-how-step { display: flex; gap: 11px; align-items: flex-start; }
.lpg-how-n { flex-shrink: 0; width: 26px; height: 26px; border-radius: 8px; background: rgba(51,129,246,.12);
  color: var(--brand-primary, #3381F6); font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.lpg-how-t { font-size: 13.5px; line-height: 1.5; color: var(--brand-text, #475172); }
.lpg-how-t b { color: var(--brand-ink, #0b1220); }

/* ── Ergebnis ────────────────────────────────────────────────────────────── */
.lpg-result { display: none; margin-top: 30px; }
.lpg-result.is-shown { display: block; animation: lpg-fade .5s ease both; }
@keyframes lpg-fade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.lpg-result-head { display: flex; gap: 18px; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; margin-bottom: 16px; }
.lpg-result-eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-primary, #3381F6); }
.lpg-result-title { font-family: 'Manrope', system-ui, sans-serif; font-size: 24px; font-weight: 800;
  color: var(--brand-ink, #0b1220); letter-spacing: -.02em; margin-top: 3px; }
.lpg-result-meta { font-size: 13.5px; color: var(--brand-muted, #6b7591); margin-top: 4px; }
.lpg-result-meta b { color: var(--brand-ink, #0b1220); }
.lpg-result-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.lpg-ghost { font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; padding: 11px 18px; border-radius: 9999px;
  background: #fff; color: var(--brand-ink, #0b1220); border: 1.5px solid rgba(11,18,32,.14); transition: background .15s ease, border-color .15s ease; }
.lpg-ghost:hover { background: rgba(51,129,246,.07); border-color: rgba(51,129,246,.3); }

/* Stil-Umschalter */
.lpg-styles { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 16px;
  font-size: 12.5px; color: var(--brand-muted, #6b7591); }
.lpg-style-chip { font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; padding: 7px 14px;
  border-radius: 9999px; border: 1.5px solid rgba(11,18,32,.12); background: #fff; color: var(--brand-text, #475172); transition: .15s; }
.lpg-style-chip:hover { border-color: rgba(51,129,246,.4); }
.lpg-style-chip.is-active { background: var(--brand-primary, #3381F6); border-color: var(--brand-primary, #3381F6); color: #fff; }

/* Vorschau-Rahmen */
.lpg-preview-frame { border: 1px solid rgba(11,18,32,.12); border-radius: 16px; overflow: hidden;
  box-shadow: 0 18px 50px rgba(11,18,32,.14); background: #fff; }
.lpg-browser-bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px;
  background: linear-gradient(180deg, #f3f5f9, #e9edf4); border-bottom: 1px solid rgba(11,18,32,.08); }
.lpg-dot { width: 11px; height: 11px; border-radius: 50%; background: #cfd6e2; }
.lpg-dot:nth-child(1) { background: #ff5f57; } .lpg-dot:nth-child(2) { background: #febc2e; } .lpg-dot:nth-child(3) { background: #28c840; }
.lpg-url { margin-left: 12px; font-size: 12.5px; color: var(--brand-muted, #6b7591); background: #fff;
  border: 1px solid rgba(11,18,32,.08); border-radius: 7px; padding: 4px 12px; flex: 1; max-width: 420px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lpg-viewport-btns { display: flex; gap: 4px; }
.lpg-vp-btn { width: 30px; height: 26px; border-radius: 7px; border: 1px solid rgba(11,18,32,.1); background: #fff;
  cursor: pointer; color: var(--brand-muted, #6b7591); display: flex; align-items: center; justify-content: center; }
.lpg-vp-btn.is-active { background: rgba(51,129,246,.12); color: var(--brand-primary, #3381F6); border-color: rgba(51,129,246,.35); }
.lpg-vp-btn svg { width: 15px; height: 15px; }
.lpg-iframe-shell { background: #eef1f6; display: flex; justify-content: center; }
.lpg-iframe { width: 100%; height: 760px; border: 0; display: block; background: #fff; transition: max-width .25s ease; }
.lpg-iframe-shell.is-mobile .lpg-iframe { max-width: 390px; box-shadow: 0 0 0 1px rgba(11,18,32,.08); }
@media (max-width: 640px) { .lpg-iframe { height: 560px; } }

/* ── Deploy-Panel ────────────────────────────────────────────────────────── */
.lpg-deploy { margin-top: 16px; border: 1px solid rgba(51,129,246,.22); border-radius: 16px; overflow: hidden;
  background: linear-gradient(180deg, rgba(51,129,246,.05), rgba(51,129,246,.02)); }
.lpg-deploy-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 18px 20px; }
.lpg-deploy-ic { width: 38px; height: 38px; border-radius: 10px; flex: none; display: flex; align-items: center; justify-content: center;
  color: #fff; background: linear-gradient(135deg, var(--brand-primary, #3381F6), var(--brand-accent, #0062F4)); }
.lpg-deploy-ic svg { width: 20px; height: 20px; }
.lpg-deploy-txt { flex: 1 1 220px; }
.lpg-deploy-txt b { color: var(--brand-ink, #0b1220); font-size: 14.5px; }
.lpg-deploy-txt span { display: block; font-size: 12.5px; color: var(--brand-muted, #6b7591); }
.lpg-subdomain { display: inline-flex; align-items: center; background: #fff; border: 1.5px solid rgba(51,129,246,.25);
  border-radius: 10px; overflow: hidden; font-size: 14px; }
.lpg-subdomain input { font: inherit; border: 0; outline: none; padding: 10px 6px 10px 12px; width: 150px; text-align: right; color: var(--brand-ink, #0b1220); }
.lpg-subdomain .suffix { padding: 10px 12px 10px 0; color: var(--brand-muted, #6b7591); background: #fff; }
.lpg-deploy-btn { font-size: 14px !important; padding: 12px 22px !important; border: 0; cursor: pointer; }
.lpg-deploy-btn[disabled] { opacity: .55; cursor: not-allowed; }
.lpg-deploy-state { padding: 0 20px 18px; font-size: 13.5px; display: none; }
.lpg-deploy-state.is-shown { display: block; }
.lpg-deploy-live { display: flex; align-items: center; gap: 10px; padding: 13px 16px; border-radius: 12px;
  background: rgba(52,168,83,.1); border: 1px solid rgba(52,168,83,.3); color: #15803d; font-weight: 600; }
.lpg-deploy-live a { color: #15803d; font-weight: 800; text-decoration: underline; word-break: break-all; }
.lpg-deploy-confirm p { font-size: 13.5px; line-height: 1.55; color: var(--brand-text, #475172); margin: 0 0 12px; }
.lpg-deploy-confirm b { color: var(--brand-ink, #0b1220); }
.lpg-confirm-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.lpg-confirm-yes { font-size: 14px !important; padding: 11px 20px !important; border: 0; cursor: pointer; }
.lpg-deploy-pending { display: flex; align-items: center; gap: 10px; color: var(--brand-primary, #3381F6); font-weight: 600; }
.lpg-deploy-pending .lpg-btn-spin { display: inline-block; border-color: rgba(51,129,246,.35); border-top-color: var(--brand-primary,#3381F6); }

/* ── Änderungs-Chat ──────────────────────────────────────────────────────── */
.lpg-chat { margin-top: 16px; border: 1px solid rgba(11,18,32,.1); border-radius: 16px; background: rgba(255,255,255,.7); overflow: hidden; }
.lpg-chat-head { display: flex; align-items: center; gap: 10px; padding: 15px 18px; border-bottom: 1px solid rgba(11,18,32,.07); }
.lpg-chat-head svg { width: 18px; height: 18px; color: var(--brand-primary, #3381F6); }
.lpg-chat-head b { font-size: 14.5px; color: var(--brand-ink, #0b1220); }
.lpg-chat-head span { font-size: 12.5px; color: var(--brand-muted, #6b7591); }
.lpg-chat-log { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px; max-height: 260px; overflow-y: auto; }
.lpg-chat-log:empty { display: none; }
.lpg-msg { max-width: 84%; padding: 10px 14px; border-radius: 14px; font-size: 13.5px; line-height: 1.5; }
.lpg-msg-user { align-self: flex-end; background: var(--brand-primary, #3381F6); color: #fff; border-bottom-right-radius: 5px; }
.lpg-msg-bot { align-self: flex-start; background: #eef2f8; color: var(--brand-ink, #0b1220); border-bottom-left-radius: 5px; }
.lpg-msg-bot.is-thinking { color: var(--brand-muted, #6b7591); font-style: italic; }
.lpg-chat-input { display: flex; gap: 10px; padding: 14px 18px; border-top: 1px solid rgba(11,18,32,.07); }
.lpg-chat-input input { flex: 1; font: inherit; font-size: 14px; border: 1.5px solid rgba(51,129,246,.22);
  border-radius: 11px; padding: 11px 14px; outline: none; }
.lpg-chat-input input:focus { border-color: var(--brand-primary, #3381F6); box-shadow: 0 0 0 4px rgba(51,129,246,.12); }
.lpg-chat-send { font: inherit; font-size: 14px; font-weight: 700; border: 0; cursor: pointer; border-radius: 11px;
  padding: 11px 18px; background: var(--brand-ink, #0b1220); color: #fff; }
.lpg-chat-send:hover { background: var(--brand-primary, #3381F6); }
.lpg-chat-ex { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 18px 14px; }
.lpg-chat-ex button { font: inherit; font-size: 11.5px; cursor: pointer; border-radius: 9999px; padding: 5px 12px;
  border: 1px solid rgba(11,18,32,.12); background: #fff; color: var(--brand-muted, #6b7591); }
.lpg-chat-ex button:hover { border-color: rgba(51,129,246,.4); color: var(--brand-primary, #3381F6); }

.lpg-result-hint { font-size: 13px; color: var(--brand-muted, #6b7591); line-height: 1.6; margin-top: 14px; }
.lpg-result-hint b { color: var(--brand-ink, #0b1220); }

/* ── Erklär-Dropdowns ────────────────────────────────────────────────────── */
.lpg-info { margin-top: 22px; background: rgba(255,255,255,.66); border: 1px solid rgba(51,129,246,.18);
  border-radius: 16px; overflow: hidden; }
.lpg-info + .lpg-info { margin-top: 14px; }
.lpg-info > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 13px;
  padding: 20px 22px; font-weight: 700; color: var(--brand-ink, #0b1220); font-size: 17px; transition: background .15s ease; }
.lpg-info.lpg-info-sm > summary { padding: 16px 20px; font-size: 15px; }
.lpg-info > summary::-webkit-details-marker { display: none; }
.lpg-info > summary:hover { background: rgba(51,129,246,.05); }
.lpg-info-ic { flex-shrink: 0; width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center;
  justify-content: center; color: #fff; background: linear-gradient(135deg, var(--brand-primary, #3381F6), var(--brand-accent, #0062F4)); }
.lpg-info.lpg-info-sm .lpg-info-ic { width: 30px; height: 30px; }
.lpg-info-ic svg { width: 18px; height: 18px; }
.lpg-info-title { flex: 1; }
.lpg-info-chev { width: 20px; height: 20px; color: var(--brand-muted, #6b7591); transition: transform .25s ease; flex-shrink: 0; }
.lpg-info[open] > summary .lpg-info-chev { transform: rotate(180deg); }
.lpg-info-body { padding: 4px 22px 24px; color: var(--brand-text, #475172); font-size: 14.5px; line-height: 1.65; }
.lpg-info.lpg-info-sm .lpg-info-body { padding: 2px 20px 22px; font-size: 14px; }
.lpg-info-body h4 { font-size: 14px; font-weight: 800; color: var(--brand-ink, #0b1220); margin: 18px 0 7px; letter-spacing: -.01em; }
.lpg-info-body p { margin: 0 0 10px; }
.lpg-info-body b { color: var(--brand-ink, #0b1220); }
.lpg-info-steps, .lpg-info-list { margin: 0 0 10px; padding-left: 0; list-style: none; display: grid; gap: 9px; }
.lpg-info-steps { counter-reset: lpg-step; }
.lpg-info-steps li { position: relative; padding-left: 38px; }
.lpg-info-steps li::before { counter-increment: lpg-step; content: counter(lpg-step); position: absolute; left: 0; top: -1px;
  width: 26px; height: 26px; border-radius: 8px; background: rgba(51,129,246,.12); color: var(--brand-primary, #3381F6);
  font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.lpg-info-list li { position: relative; padding-left: 22px; }
.lpg-info-list li::before { content: ""; position: absolute; left: 6px; top: 9px; width: 6px; height: 6px;
  border-radius: 50%; background: var(--brand-primary, #3381F6); }
.lpg-info-note { margin-top: 14px; padding: 12px 14px; background: rgba(255,106,61,.07);
  border: 1px solid rgba(255,106,61,.2); border-radius: 11px; font-size: 13px; color: var(--brand-text, #475172); }
.lpg-info-body code { background: rgba(51,129,246,.1); color: var(--brand-accent, #0062F4); padding: 2px 6px;
  border-radius: 6px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; }
