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

.grg-wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

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

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

/* Datei-Dropzone */
.grg-drop { border: 2px dashed rgba(51,129,246,.35); border-radius: 16px; padding: 32px 20px; text-align: center;
  cursor: pointer; background: rgba(51,129,246,.04); transition: background .16s ease, border-color .16s ease; }
.grg-drop:hover, .grg-drop.is-drag { background: rgba(51,129,246,.10); border-color: var(--brand-primary, #3381F6); }
.grg-drop-ic { width: 44px; height: 44px; margin: 0 auto 12px; color: var(--brand-primary, #3381F6); }
.grg-drop-title { font-weight: 700; color: var(--brand-ink, #0b1220); font-size: 15px; }
.grg-drop-sub { font-size: 12.5px; color: var(--brand-muted, #6b7591); margin-top: 5px; }
.grg-file-chip { display: none; align-items: center; gap: 10px; margin-top: 12px; padding: 10px 14px;
  background: rgba(52,168,83,.10); border: 1px solid rgba(52,168,83,.3); border-radius: 11px;
  font-size: 13.5px; color: #15803d; font-weight: 600; }
.grg-file-chip.is-shown { display: flex; }
.grg-file-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.grg-file-x { margin-left: auto; cursor: pointer; color: #15803d; opacity: .7; font-weight: 700; border: 0; background: none; font-size: 16px; }

/* Domain-Feld */
.grg-domain-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; }
.grg-domain-input:focus { border-color: var(--brand-primary, #3381F6); box-shadow: 0 0 0 4px rgba(51,129,246,.13); }
.grg-domain-input::placeholder { color: #9aa3bd; }

/* Aktionen */
.grg-actions { margin-top: 24px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.grg-btn { font-size: 15px !important; padding: 13px 26px !important; border: 0; cursor: pointer; }
.grg-btn[disabled] { opacity: .55; cursor: not-allowed; }
.grg-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: grg-spin .7s linear infinite; }
.grg-btn.is-loading .grg-btn-spin { display: inline-block; }
.grg-btn.is-loading .grg-btn-label { opacity: .85; }
@keyframes grg-spin { to { transform: rotate(360deg); } }
.grg-privacy { font-size: 12px; color: var(--brand-muted, #6b7591); }

/* Hinweis: Dauer */
.grg-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); }
.grg-wait-hint svg { flex-shrink: 0; margin-top: 1px; }
.grg-wait-hint b { color: var(--brand-ink, #0b1220); }
.grg-input-card.is-working .grg-wait-hint { color: var(--brand-primary, #3381F6); font-weight: 600; }
.grg-input-card.is-working .grg-wait-hint b { color: var(--brand-primary, #3381F6); }

/* Fehler */
.grg-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; }
.grg-error.is-shown { display: block; }

/* "So funktioniert's" Mini-Steps */
.grg-how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 16px; }
@media (max-width: 700px) { .grg-how { grid-template-columns: 1fr; } }
.grg-how-step { display: flex; gap: 11px; align-items: flex-start; }
.grg-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; }
.grg-how-t { font-size: 13.5px; line-height: 1.5; color: var(--brand-text, #475172); }
.grg-how-t b { color: var(--brand-ink, #0b1220); }

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

.grg-result-head { display: flex; gap: 18px; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; margin-bottom: 16px; }
.grg-result-eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-primary, #3381F6); }
.grg-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; }
.grg-result-meta { font-size: 13.5px; color: var(--brand-muted, #6b7591); margin-top: 4px; }
.grg-result-meta b { color: var(--brand-ink, #0b1220); }
.grg-result-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.grg-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; }
.grg-ghost:hover { background: rgba(51,129,246,.07); border-color: rgba(51,129,246,.3); }

/* Vorschau-Rahmen (Browser-Chrome-Optik) */
.grg-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; }
.grg-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); }
.grg-dot { width: 11px; height: 11px; border-radius: 50%; background: #cfd6e2; }
.grg-dot:nth-child(1) { background: #ff5f57; } .grg-dot:nth-child(2) { background: #febc2e; } .grg-dot:nth-child(3) { background: #28c840; }
.grg-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; }
.grg-iframe { width: 100%; height: 760px; border: 0; display: block; background: #fff; }
@media (max-width: 640px) { .grg-iframe { height: 600px; } }

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

/* ── Erklär-Dropdowns (How-it-works + Einbetten) ─────────────────────────── */
.grg-info { margin-top: 22px; background: rgba(255,255,255,.66); border: 1px solid rgba(51,129,246,.18);
  border-radius: 16px; overflow: hidden; }
.grg-info + .grg-info { margin-top: 14px; }
.grg-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; }
.grg-info.grg-info-sm > summary { padding: 16px 20px; font-size: 15px; }
.grg-info > summary::-webkit-details-marker { display: none; }
.grg-info > summary:hover { background: rgba(51,129,246,.05); }
.grg-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)); }
.grg-info.grg-info-sm .grg-info-ic { width: 30px; height: 30px; }
.grg-info-ic svg { width: 18px; height: 18px; }
.grg-info-title { flex: 1; }
.grg-info-chev { width: 20px; height: 20px; color: var(--brand-muted, #6b7591); transition: transform .25s ease; flex-shrink: 0; }
.grg-info[open] > summary .grg-info-chev { transform: rotate(180deg); }
.grg-info-body { padding: 4px 22px 24px; color: var(--brand-text, #475172); font-size: 14.5px; line-height: 1.65; }
.grg-info.grg-info-sm .grg-info-body { padding: 2px 20px 22px; font-size: 14px; }
.grg-info-body h4 { font-size: 14px; font-weight: 800; color: var(--brand-ink, #0b1220); margin: 18px 0 7px; letter-spacing: -.01em; }
.grg-info-body h4:first-child { margin-top: 6px; }
.grg-info-body p { margin: 0 0 10px; }
.grg-info-body b { color: var(--brand-ink, #0b1220); }
.grg-info-steps, .grg-info-list { margin: 0 0 10px; padding-left: 0; list-style: none; display: grid; gap: 9px; }
.grg-info-steps { counter-reset: grg-step; }
.grg-info-steps li { position: relative; padding-left: 38px; }
.grg-info-steps li::before { counter-increment: grg-step; content: counter(grg-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; }
.grg-info-list li { position: relative; padding-left: 22px; }
.grg-info-list li::before { content: ""; position: absolute; left: 6px; top: 9px; width: 6px; height: 6px;
  border-radius: 50%; background: var(--brand-primary, #3381F6); }
.grg-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); }
.grg-info-tag { font-size: 11px; font-weight: 700; vertical-align: middle; margin-left: 8px; padding: 3px 9px;
  border-radius: 9999px; background: rgba(52,168,83,.12); color: #15803d; border: 1px solid rgba(52,168,83,.28); }
.grg-code { background: var(--brand-ink, #0b1220); color: #e6edf7; border-radius: 11px; padding: 14px 16px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; line-height: 1.55;
  overflow-x: auto; white-space: pre; margin: 4px 0 10px; }
.grg-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; }
.grg-code code { background: none; color: inherit; padding: 0; }
