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

.jao-wrap { max-width: 980px; margin: 0 auto; padding: 0 20px; }

/* ── Eingabe-Karte ───────────────────────────────────────────────────────── */
.jao-input-card { padding: 28px 26px 30px; }
.jao-tabs { display: flex; gap: 6px; background: rgba(51,129,246,.07); border: 1px solid rgba(51,129,246,.16);
  padding: 5px; border-radius: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.jao-tab { flex: 1 1 0; min-width: 120px; border: 0; background: transparent; cursor: pointer;
  font: inherit; font-weight: 600; font-size: 14px; color: var(--brand-muted, #6b7591);
  padding: 10px 12px; border-radius: 10px; display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: background .18s ease, color .18s ease, box-shadow .18s ease; }
.jao-tab.is-active { background: #fff; color: var(--brand-ink, #0b1220);
  box-shadow: 0 4px 14px rgba(11,18,32,.08); }
.jao-tab svg { width: 17px; height: 17px; }

.jao-panel { display: none; }
.jao-panel.is-active { display: block; }

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

.jao-textarea, .jao-url-input, .jao-context-input, .jao-select {
  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; }
.jao-textarea { min-height: 190px; resize: vertical; line-height: 1.55; }
.jao-textarea:focus, .jao-url-input:focus, .jao-context-input:focus, .jao-select:focus {
  border-color: var(--brand-primary, #3381F6); box-shadow: 0 0 0 4px rgba(51,129,246,.13); }
.jao-textarea::placeholder, .jao-url-input::placeholder, .jao-context-input::placeholder { color: #9aa3bd; }

/* Datei-Dropzone */
.jao-drop { border: 2px dashed rgba(51,129,246,.35); border-radius: 16px; padding: 34px 20px; text-align: center;
  cursor: pointer; background: rgba(51,129,246,.04); transition: background .16s ease, border-color .16s ease; }
.jao-drop:hover, .jao-drop.is-drag { background: rgba(51,129,246,.10); border-color: var(--brand-primary, #3381F6); }
.jao-drop-ic { width: 44px; height: 44px; margin: 0 auto 12px; color: var(--brand-primary, #3381F6); }
.jao-drop-title { font-weight: 700; color: var(--brand-ink, #0b1220); font-size: 15px; }
.jao-drop-sub { font-size: 12.5px; color: var(--brand-muted, #6b7591); margin-top: 5px; }
.jao-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; }
.jao-file-chip.is-shown { display: flex; }
.jao-file-x { margin-left: auto; cursor: pointer; color: #15803d; opacity: .7; font-weight: 700; border: 0; background: none; font-size: 16px; }

/* Optionen-Reihe */
.jao-options { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; }
@media (max-width: 600px) { .jao-options { grid-template-columns: 1fr; } }

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

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

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

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

/* Score-Header */
.jao-score-card { padding: 28px 28px; display: flex; gap: 28px; align-items: center; }
@media (max-width: 640px) { .jao-score-card { flex-direction: column; text-align: center; gap: 18px; } }
.jao-ring { position: relative; width: 132px; height: 132px; flex-shrink: 0; }
.jao-ring svg { transform: rotate(-90deg); width: 132px; height: 132px; }
.jao-ring-bg { stroke: rgba(51,129,246,.14); }
.jao-ring-fg { stroke-linecap: round; transition: stroke-dashoffset 1.1s cubic-bezier(.22,.61,.36,1); }
.jao-ring-val { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.jao-ring-num { font-size: 38px; font-weight: 800; color: var(--brand-ink, #0b1220); line-height: 1; letter-spacing: -.03em; }
.jao-ring-max { font-size: 12px; font-weight: 600; color: var(--brand-muted, #6b7591); margin-top: 3px; }
.jao-score-meta { flex: 1; }
.jao-score-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.jao-tag { font-size: 12px; font-weight: 700; padding: 4px 11px; border-radius: 9999px;
  background: rgba(51,129,246,.1); color: var(--brand-primary, #3381F6); border: 1px solid rgba(51,129,246,.22); }
.jao-score-verdict { font-size: 16.5px; line-height: 1.55; color: var(--brand-ink, #0b1220); font-weight: 500; }

/* Kategorie-Balken */
.jao-section-h { font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  color: var(--brand-muted, #6b7591); margin: 30px 0 14px; }
.jao-cats { display: grid; gap: 12px; }
.jao-cat { display: grid; grid-template-columns: 200px 1fr auto; align-items: center; gap: 14px; }
@media (max-width: 640px) { .jao-cat { grid-template-columns: 1fr auto; } .jao-cat-bar-wrap { grid-column: 1 / -1; order: 3; } }
.jao-cat-name { font-size: 14px; font-weight: 600; color: var(--brand-ink, #0b1220); }
.jao-cat-name span { font-size: 11.5px; font-weight: 600; color: #9aa3bd; }
.jao-cat-bar-wrap { height: 9px; background: rgba(11,18,32,.07); border-radius: 9999px; overflow: hidden; }
.jao-cat-bar { height: 100%; border-radius: 9999px; width: 0; transition: width 1s cubic-bezier(.22,.61,.36,1); }
.jao-cat-score { font-size: 14px; font-weight: 800; min-width: 34px; text-align: right; }
.jao-cat.detail { display: block; margin-top: 4px; }
.jao-cat-befund { font-size: 13px; color: var(--brand-text, #475172); line-height: 1.5; margin-top: 4px; }
.jao-cat-tipp { font-size: 13px; color: var(--brand-ink, #0b1220); line-height: 1.5; margin-top: 3px; }
.jao-cat-tipp b { color: var(--brand-primary, #3381F6); }

/* Status-Farben */
.is-gut    { color: #16a34a; } .bar-gut    { background: linear-gradient(90deg,#22c55e,#16a34a); }
.is-mittel { color: #d97706; } .bar-mittel { background: linear-gradient(90deg,#fbbf24,#f59e0b); }
.is-schwach{ color: #dc2626; } .bar-schwach{ background: linear-gradient(90deg,#f87171,#ef4444); }

/* Quick Wins */
.jao-quickwins { display: grid; gap: 10px; margin-top: 6px; }
.jao-qw { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 13px;
  background: rgba(255,106,61,.07); border: 1px solid rgba(255,106,61,.22); }
.jao-qw-n { flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--brand-orange, #ff6a3d);
  color: #fff; font-size: 13px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.jao-qw-t { font-size: 14.5px; line-height: 1.5; color: var(--brand-ink, #0b1220); }

/* Vorschlags-Karten */
.jao-grid { display: grid; gap: 16px; }
.jao-sugg { padding: 22px 22px; }
.jao-sugg-h { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 700;
  color: var(--brand-ink, #0b1220); margin-bottom: 12px; }
.jao-sugg-h .jao-sugg-ic { 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)); flex-shrink: 0; }
.jao-sugg-h .jao-sugg-ic svg { width: 18px; height: 18px; }

.jao-titellist { display: grid; gap: 9px; }
.jao-titel-opt { display: flex; gap: 11px; align-items: flex-start; padding: 12px 14px; border-radius: 11px;
  background: rgba(51,129,246,.05); border: 1px solid rgba(51,129,246,.16); }
.jao-titel-opt:before { content: "✍"; }
.jao-titel-txt { font-size: 14.5px; line-height: 1.5; color: var(--brand-ink, #0b1220); font-weight: 500; }

.jao-copybox { position: relative; background: rgba(11,18,32,.03); border: 1px solid rgba(11,18,32,.1);
  border-radius: 12px; padding: 15px 16px; font-size: 14.5px; line-height: 1.6; color: var(--brand-ink, #0b1220); }
.jao-copy { position: absolute; top: 10px; right: 10px; font-size: 12px; font-weight: 700; cursor: pointer;
  border: 1px solid rgba(51,129,246,.3); background: #fff; color: var(--brand-primary, #3381F6);
  padding: 5px 11px; border-radius: 8px; transition: background .15s ease; }
.jao-copy:hover { background: rgba(51,129,246,.08); }
.jao-copy.is-done { color: #16a34a; border-color: rgba(22,163,74,.4); }

.jao-media { display: flex; gap: 13px; align-items: flex-start; }
.jao-media-badge { flex-shrink: 0; font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 9999px; white-space: nowrap; }
.badge-keine_bilder { background: rgba(239,68,68,.1); color: #dc2626; border: 1px solid rgba(239,68,68,.25); }
.badge-hat_bilder   { background: rgba(245,158,11,.12); color: #d97706; border: 1px solid rgba(245,158,11,.3); }
.badge-hat_video    { background: rgba(22,163,74,.1); color: #16a34a; border: 1px solid rgba(22,163,74,.3); }
.jao-media-txt { font-size: 14.5px; line-height: 1.55; color: var(--brand-text, #475172); }

.jao-more { display: grid; gap: 12px; }
.jao-more-item { padding: 13px 15px; border-radius: 12px; background: rgba(255,255,255,.6); border: 1px solid rgba(11,18,32,.07); }
.jao-more-t { font-size: 14.5px; font-weight: 700; color: var(--brand-ink, #0b1220); }
.jao-more-why { font-size: 13px; color: var(--brand-muted, #6b7591); margin-top: 3px; line-height: 1.5; }
.jao-more-how { font-size: 13.5px; color: var(--brand-text, #475172); margin-top: 5px; line-height: 1.55; }
.jao-more-how b { color: var(--brand-ink, #0b1220); }

/* Abschluss-CTA */
.jao-cta-card { padding: 28px 28px; text-align: center; margin-top: 18px; }
.jao-cta-card h3 { font-family: 'Manrope', system-ui, sans-serif; font-size: 22px; font-weight: 800;
  color: #fff; margin-bottom: 8px; letter-spacing: -.02em; }
.jao-cta-card p { color: rgba(255,255,255,.78); font-size: 15px; line-height: 1.55; max-width: 52ch; margin: 0 auto 18px; }

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