/* Job Ad Checker — Komponenten auf Basis des Jobspreader Design Systems */
*{box-sizing:border-box}
[hidden]{display:none!important}
body{margin:0;background:var(--surface-app);color:var(--fg-1);font-family:var(--font-sans);-webkit-font-smoothing:antialiased}
a{color:var(--primary-100);text-decoration:none}
a:hover{color:var(--primary-accent);text-decoration:underline}

/* Sandbox-Tag */
.jc-sandbox{display:inline-flex;align-items:center;gap:6px;height:22px;padding:0 9px;border-radius:var(--radius-tag);background:var(--yellow-20);color:var(--yellow-accent);font-weight:800;font-size:11px;letter-spacing:.6px;text-transform:uppercase;white-space:nowrap}
.jc-sandbox i{width:6px;height:6px;border-radius:50%;background:var(--yellow-accent)}
.jc-alpha{font-weight:700;font-size:11px;letter-spacing:.6px;text-transform:uppercase;color:var(--terciary-50);white-space:nowrap}

/* Produktkopf */
.jc-brand{display:flex;align-items:center;gap:12px;min-width:0}
.jc-brand-mark{height:34px;width:auto;flex:none}
.jc-brand-name{font-weight:700;font-size:18px;line-height:22px;color:var(--terciary-100);margin:0;white-space:nowrap}
.jc-brand-meta{display:flex;align-items:center;gap:8px;margin-top:3px}

/* Tabs */
.jc-tabs{display:flex;gap:2px;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;border-bottom:1px solid var(--terciary-20)}
.jc-tabs::-webkit-scrollbar{display:none}
.jc-tab{appearance:none;border:none;background:none;cursor:pointer;white-space:nowrap;font-family:var(--font-sans);font-weight:700;font-size:14px;line-height:20px;color:var(--terciary-60);padding:12px 16px;border-bottom:2px solid transparent;transition:color 120ms ease-out,border-color 120ms ease-out,background 120ms ease-out;border-radius:5px 5px 0 0}
.jc-tab:hover{color:var(--terciary-100);background:var(--primary-5)}
.jc-tab[aria-selected="true"]{color:var(--primary-100);border-bottom-color:var(--primary-100)}

/* Karten */
.jc-card{background:#fff;border:1px solid var(--border-2);border-radius:var(--radius);box-shadow:var(--shadow-03)}
.jc-card-pad{padding:24px}
.jc-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:18px 24px;border-bottom:1px solid var(--border-2)}
.jc-card-title{font-weight:700;font-size:16px;line-height:24px;color:var(--terciary-100);margin:0}
.jc-card-sub{font-weight:400;font-size:12px;line-height:20px;color:var(--terciary-70);margin:2px 0 0}
.jc-stack{display:flex;flex-direction:column;gap:16px}

/* Fragen-Hinweiszeile */
.jc-qbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:10px 14px;border-radius:8px;background:var(--primary-5);border:1px solid var(--primary-20);font-size:12px;line-height:20px;color:var(--terciary-80);margin-bottom:18px}
.jc-qbar>span{flex:1 1 auto;min-width:0}
.jc-qbar b{font-weight:700;color:var(--terciary-100)}
.jc-linkbtn{appearance:none;border:none;background:none;padding:0;cursor:pointer;white-space:nowrap;font-family:var(--font-sans);font-weight:700;font-size:12px;color:var(--primary-100)}
.jc-linkbtn:hover{text-decoration:underline}

/* Felder */
.jc-field{display:flex;flex-direction:column;gap:6px;margin-bottom:18px}
.jc-label{font-weight:700;font-size:12px;line-height:16px;color:var(--terciary-80)}
.jc-hint{font-weight:600;font-size:11px;line-height:16px;color:var(--terciary-60)}
.jc-input,.jc-textarea,.jc-select{width:100%;font-family:var(--font-sans);font-size:14px;color:var(--terciary-100);background:#fff;border:1px solid var(--border-1);border-radius:5px;outline:none;transition:border-color 120ms ease-out,box-shadow 120ms ease-out}
.jc-input,.jc-select{height:40px;padding:0 12px}
.jc-textarea{min-height:120px;padding:10px 12px;line-height:22px;resize:vertical}
.jc-input:focus,.jc-textarea:focus,.jc-select:focus{border-color:var(--primary-100);box-shadow:var(--shadow-inset)}
.jc-input::placeholder,.jc-textarea::placeholder{color:var(--terciary-40)}
.jc-input.is-error,.jc-textarea.is-error{border-color:var(--red-100)}
.jc-select{appearance:none;background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'><path d='M4 6l4 4 4-4' fill='none' stroke='%23606C76' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/></svg>");background-repeat:no-repeat;background-position:right 12px center;padding-right:36px}
.jc-err{display:flex;align-items:flex-start;gap:8px;margin-top:10px;font-size:13px;line-height:20px;color:var(--red-accent)}
.jc-err svg{flex:none;margin-top:2px}

/* Datei-Feld */
.jc-file{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:12px 14px;border:1px dashed var(--terciary-20);border-radius:8px;background:var(--bg-2)}
.jc-file-name{font-size:13px;color:var(--terciary-80)}
.jc-file-name.is-empty{color:var(--terciary-50)}

/* Beispiel-Chips */
.jc-examples{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:20px}
.jc-examples .js-chip{height:32px;white-space:nowrap;display:inline-flex;align-items:center}
.jc-examples-label{font-weight:800;font-size:10px;letter-spacing:1px;text-transform:uppercase;color:var(--terciary-50);align-self:center;margin-right:2px}

/* Aktionen */
.jc-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.jc-actions .js-btn,.jc-card-head .js-btn{white-space:nowrap}

/* Ergebnis */
.jc-verdict{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:20px}
.jc-pill{display:inline-flex;align-items:center;gap:7px;height:28px;padding:0 12px;border-radius:var(--radius-pill);font-weight:800;font-size:12px;letter-spacing:.8px;text-transform:uppercase}
.jc-pill i{width:7px;height:7px;border-radius:50%}
.jc-pill.ok{background:var(--green-10);color:var(--green-accent)}
.jc-pill.ok i{background:var(--green-100)}
.jc-pill.bad{background:var(--red-10);color:var(--red-accent)}
.jc-pill.bad i{background:var(--red-100)}
.jc-verdict-note{font-size:13px;line-height:20px;color:var(--terciary-70)}

.jc-metric{margin-bottom:18px}
.jc-metric-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px}
.jc-metric-label{font-weight:700;font-size:12px;letter-spacing:1px;text-transform:uppercase;color:var(--terciary-50)}
.jc-metric-value{font-family:var(--font-mono);font-weight:700;font-size:20px;line-height:24px;color:var(--terciary-100);font-variant-numeric:tabular-nums}
.jc-track{height:8px;border-radius:4px;background:var(--terciary-10);overflow:hidden;margin-top:8px}
.jc-fill{height:100%;border-radius:4px;background:var(--primary-100)}
.jc-fill.ok{background:var(--green-100)}
.jc-fill.bad{background:var(--red-100)}
.jc-scale{display:flex;justify-content:space-between;margin-top:4px;font-family:var(--font-mono);font-size:10px;color:var(--terciary-50)}

.jc-rows{border-top:1px solid var(--border-2)}
.jc-row{display:flex;align-items:baseline;justify-content:space-between;gap:16px;padding:11px 0;border-bottom:1px solid var(--border-2)}
.jc-row:last-child{border-bottom:none}
.jc-row-k{font-size:13px;color:var(--terciary-70)}
.jc-row-v{font-weight:700;font-size:13px;color:var(--terciary-100);text-align:right}
.jc-code{font-family:var(--font-mono);font-size:12px;background:var(--terciary-5);border:1px solid var(--border-2);border-radius:3px;padding:1px 6px;color:var(--terciary-90)}
.jc-section-label{font-weight:700;font-size:14px;letter-spacing:1px;text-transform:uppercase;color:var(--terciary-50);margin:0 0 12px}

/* Skeleton / Laden */
.jc-skel{border-radius:4px;background:linear-gradient(90deg,var(--terciary-10) 0%,var(--terciary-5) 50%,var(--terciary-10) 100%);background-size:200% 100%;animation:jc-shimmer 1.4s linear infinite}
@keyframes jc-shimmer{from{background-position:200% 0}to{background-position:-200% 0}}
.jc-spin{width:15px;height:15px;border-radius:50%;border:2px solid rgba(255,255,255,.35);border-top-color:#fff;animation:jc-spin .7s linear infinite}
@keyframes jc-spin{to{transform:rotate(360deg)}}
.jc-progress{display:flex;align-items:center;gap:10px;font-size:13px;color:var(--terciary-70)}

/* Balkendiagramm (Massenprüfung) */
.jc-bars{display:flex;flex-direction:column;gap:2px}
.jc-bar{display:grid;grid-template-columns:minmax(120px,190px) 1fr 40px;align-items:center;gap:12px;padding:8px 10px;border-radius:8px;border:1px solid transparent;cursor:pointer;text-align:left;background:none;font-family:var(--font-sans);transition:background 120ms ease-out}
.jc-bar:hover{background:var(--primary-5)}
.jc-bar.is-on{background:var(--primary-10);border-color:var(--primary-30)}
.jc-bar-label{font-weight:700;font-size:13px;color:var(--terciary-100);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.jc-bar.is-on .jc-bar-label{color:var(--primary-accent)}
.jc-bar-track{display:block;height:18px;border-radius:3px;background:var(--terciary-5);overflow:hidden}
.jc-bar-fill{display:block;height:100%;border-radius:3px;background:var(--primary-100)}
.jc-bar-fill.bad{background:var(--red-100)}
.jc-bar-fill.ok{background:var(--green-100)}
.jc-bar-count{font-family:var(--font-mono);font-weight:600;font-size:13px;color:var(--terciary-70);text-align:right;font-variant-numeric:tabular-nums}

/* Tabelle */
.jc-tablewrap{overflow-x:auto}
.jc-table{width:100%;border-collapse:collapse;font-size:13px}
.jc-table th{text-align:left;padding:10px 16px;font-weight:800;font-size:10px;letter-spacing:1px;text-transform:uppercase;color:var(--terciary-50);border-bottom:1px solid var(--border-2);white-space:nowrap}
.jc-table td{padding:13px 16px;border-bottom:1px solid var(--border-2);color:var(--terciary-100);vertical-align:top;line-height:20px}
.jc-table tbody tr:last-child td{border-bottom:none}
.jc-table tbody tr:hover td{background:var(--primary-5)}
.jc-table .num{text-align:right;font-family:var(--font-mono);font-variant-numeric:tabular-nums;white-space:nowrap}
.jc-table-desc{color:var(--terciary-70)}
.jc-reason{display:flex;flex-direction:column;gap:3px;font-size:12px;color:var(--terciary-80)}

/* Einstellungen / Fragen-Editor */
.jc-qblock{padding:20px 0;border-bottom:1px solid var(--border-2)}
.jc-qblock:first-child{padding-top:0}
.jc-qblock:last-of-type{border-bottom:none}
.jc-qhead{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 10px;margin-bottom:14px}
.jc-qnum,.jc-qtype{white-space:nowrap}
.jc-qtype{font-family:var(--font-mono)}
.jc-qnum{font-weight:700;font-size:14px;color:var(--terciary-100)}
.jc-qtype{font-size:12px;color:var(--terciary-50)}
.jc-crit{display:grid;grid-template-columns:minmax(120px,170px) 1fr 36px;gap:8px;align-items:start;margin-bottom:8px}
.jc-crit .jc-textarea{min-height:64px}
.jc-iconbtn{width:36px;height:36px;border-radius:5px;border:1px solid var(--border-1);background:#fff;color:var(--terciary-60);cursor:pointer;display:inline-flex;align-items:center;justify-content:center;transition:all 120ms ease-out}
.jc-iconbtn:hover{border-color:var(--red-100);color:var(--red-accent);background:var(--red-10)}

/* Leerzustand */
.jc-empty{background:var(--grad-soft-blue);border:1px dashed var(--terciary-20);border-radius:var(--radius);padding:36px 28px;text-align:center}
.jc-empty-ico{width:44px;height:44px;margin:0 auto 14px;border-radius:12px;background:#fff;border:1px solid var(--border-2);display:flex;align-items:center;justify-content:center}
.jc-empty-title{font-weight:700;font-size:16px;color:var(--terciary-100);margin:0 0 4px}
.jc-empty-body{font-size:13px;line-height:22px;color:var(--terciary-70);margin:0 auto;max-width:44ch}

/* Footer */
.jc-footer{border-top:1px solid var(--terciary-20);padding:22px 0 8px;display:flex;flex-wrap:wrap;gap:16px;align-items:center;justify-content:space-between}
.jc-footer-links{display:flex;flex-wrap:wrap;gap:18px;align-items:center}
.jc-footer-links a{font-size:13px;color:var(--terciary-70)}
.jc-footer-links a:hover{color:var(--primary-100)}
.jc-social{display:flex;gap:8px;align-items:center}
.jc-social a{width:30px;height:30px;border-radius:5px;border:1px solid var(--border-2);background:#fff;display:flex;align-items:center;justify-content:center;color:var(--terciary-70)}
.jc-social a:hover{color:var(--primary-100);border-color:var(--primary-40)}
.jc-copy{font-size:12px;line-height:20px;color:var(--terciary-60)}
.jc-footer-note{font-size:12px;line-height:20px;color:var(--terciary-60);padding-bottom:24px}
