/* Abgeleitet aus /root/wallet-vue/src/assets/design.css (Stand 2026-06-24) —
   Tokens + Basis-Klassen kopiert, NICHT neu erfunden. Wallet-spezifische
   Interaktionsmuster (Trust-Pills, Step-Bar, Akkordeon) bewusst weggelassen,
   siehe README.md "Designprinzip". */

:root {
  --bg:         #f8f9fb;
  --bg-card:    #ffffff;
  --border:     #e4e7ec;
  --border-light: #f0f2f5;

  --text:       #111827;
  --text-2:     #374151;
  --text-muted: #6b7280;
  --text-faint: #9ca3af;

  --brand:      #2563eb;
  --brand-dim:  #eff6ff;
  --brand-hover:#1d4ed8;

  --success:    #059669;
  --success-bg: #ecfdf5;
  --warn:       #d97706;
  --warn-bg:    #fffbeb;
  --error:      #dc2626;
  --error-bg:   #fef2f2;
  --info:       #0284c7;
  --info-bg:    #f0f9ff;

  --radius:     10px;
  --radius-sm:  6px;
  --radius-lg:  16px;

  --shadow-sm:  0 1px 3px rgba(0,0,0,.08);
  --shadow-md:  0 4px 12px rgba(0,0,0,.10);

  --font:       'Inter', system-ui, -apple-system, sans-serif;
  --text-xs:    11px;
  --text-sm:    13px;
  --text-base:  15px;
  --text-md:    16px;
  --text-lg:    18px;
  --text-xl:    22px;
  --text-2xl:   28px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font);
  font-size: var(--text-base);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

h1 { font-size: var(--text-2xl); font-weight: 700; line-height: 1.2; }
h2 { font-size: var(--text-xl);  font-weight: 600; line-height: 1.3; }
h3 { font-size: var(--text-lg);  font-weight: 600; line-height: 1.4; }
p  { color: var(--text-2); line-height: 1.7; }

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ─── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  font-size: var(--text-sm);
  font-weight: 600;
  font-family: var(--font);
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all .15s ease;
  white-space: nowrap;
  min-height: 40px;
  text-decoration: none;
}
.btn:disabled { opacity: .5; cursor: not-allowed; }

.btn-primary {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}
.btn-primary:hover:not(:disabled) { background: var(--brand-hover); border-color: var(--brand-hover); text-decoration: none; }

.btn-secondary {
  background: #fff;
  color: var(--text);
  border-color: var(--border);
}
.btn-secondary:hover:not(:disabled) { background: var(--bg); border-color: var(--brand); color: var(--brand); text-decoration: none; }

.btn-lg { padding: 13px 24px; font-size: var(--text-base); min-height: 48px; }
.btn-sm { padding: 6px 12px; font-size: var(--text-xs); min-height: 32px; }

/* ─── Cards ─────────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.card-lg { padding: 28px 32px; }

/* ─── Inputs ────────────────────────────────────────────────── */
.input {
  width: 100%;
  padding: 10px 14px;
  font-size: var(--text-base);
  font-family: var(--font);
  color: var(--text);
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color .15s;
  outline: none;
}
.input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.input::placeholder { color: var(--text-faint); }
textarea.input { resize: vertical; min-height: 90px; line-height: 1.6; }

/* ─── Badge ─────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  font-size: var(--text-xs);
  font-weight: 600;
  border-radius: 100px;
  border: 1.5px solid transparent;
  background: var(--brand-dim);
  color: var(--brand);
  border-color: #bfdbfe;
}

/* ─── Alert ─────────────────────────────────────────────────── */
.alert {
  display: flex;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  border: 1.5px solid;
}
.alert-error { background: var(--error-bg); color: var(--error); border-color: #fecaca; }
.alert-info  { background: var(--info-bg);  color: var(--info);  border-color: #bae6fd; }

/* ─── Spinner ───────────────────────────────────────────────── */
.spinner {
  width: 22px;
  height: 22px;
  border: 2.5px solid var(--border);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Layout ────────────────────────────────────────────────── */
.page-container {
  max-width: 720px;
  margin: 0 auto;
  padding: 28px 24px;
}
.page-header { margin-bottom: 24px; text-align: center; }
.brand-logo { width: 56px; height: 56px; display: block; margin: 0 auto 16px; }
.page-header h1 { margin-bottom: 8px; }
.page-header p  { color: var(--text-muted); font-size: var(--text-base); }

.flex       { display: flex; }
.flex-col   { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.mt-4  { margin-top: 16px; }
.mt-6  { margin-top: 24px; }
.mb-4  { margin-bottom: 16px; }
.text-sm    { font-size: var(--text-sm); }
.text-muted { color: var(--text-muted); }
.hidden     { display: none !important; }

/* ─── Scan-Tool spezifisch ──────────────────────────────────── */
.dropzone {
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s, background .15s;
  background: var(--bg-card);
}
.dropzone:hover, .dropzone.dragover {
  border-color: var(--brand);
  background: var(--brand-dim);
}
.dropzone .dz-icon { font-size: 2.5rem; margin-bottom: 8px; }

.skill-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: 100px;
  font-size: var(--text-sm);
  font-weight: 500;
}
.skill-chip a { color: var(--text-muted); font-size: var(--text-xs); }

.loading-hint {
  color: var(--text-muted);
  font-size: var(--text-sm);
  margin-top: 12px;
  min-height: 20px;
}

.provider-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
}

/* ─── 3-Schritte-Leiste (abgeleitet aus wallet-vue design.css .step-bar) ── */
.step-bar {
  display: flex;
  align-items: center;
  gap: 0;
}
.step-bar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  position: relative;
}
.step-bar-item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 14px;
  left: 50%;
  right: -50%;
  height: 2px;
  background: var(--border);
  z-index: 0;
}
.step-bar-item.done::after { background: var(--brand); }
.step-dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  position: relative;
  z-index: 1;
}
.step-bar-item.done .step-dot   { border-color: var(--brand); background: var(--brand); color: #fff; }
.step-bar-item.active .step-dot { border-color: var(--brand); color: var(--brand); box-shadow: 0 0 0 4px var(--brand-dim); }
.step-label { font-size: 12px; color: var(--text-muted); margin-top: 6px; text-align: center; }
.step-bar-item.active .step-label,
.step-bar-item.done .step-label { color: var(--text-2); font-weight: 600; }

/* ─── Eingeklappte Kompetenzen-Liste ────────────────────────── */
#skills-details summary {
  cursor: pointer;
  font-weight: 600;
  font-size: var(--text-base);
  list-style: none;
}
#skills-details summary::-webkit-details-marker { display: none; }
#skills-details summary::before {
  content: '▸ ';
  color: var(--brand);
}
#skills-details[open] summary::before {
  content: '▾ ';
}

/* ─── Karriereberater-CTA ───────────────────────────────────── */
.karriereberater-cta {
  text-align: center;
  background: linear-gradient(135deg, var(--brand-dim) 0%, #f5f3ff 100%);
  border-color: #c7d2fe;
}
.kb-cta-icon { font-size: 2.25rem; margin-bottom: 8px; }

/* ─── Karriereberater-Chat ──────────────────────────────────── */
.karriere-messages {
  text-align: left;
  max-height: 420px;
  overflow-y: auto;
  margin-bottom: 16px;
}
.karriere-messages:empty { display: none; }
.kb-msg {
  padding: 12px 16px;
  border-radius: var(--radius);
  margin-bottom: 10px;
  font-size: var(--text-sm);
  line-height: 1.6;
  white-space: pre-wrap;
}
.kb-msg-user {
  background: var(--brand);
  color: #fff;
  margin-left: 15%;
}
.kb-msg-assistant {
  background: #fff;
  border: 1.5px solid var(--border);
  color: var(--text-2);
  margin-right: 15%;
}
.kb-msg-loading {
  background: #fff;
  border: 1.5px solid var(--border);
  margin-right: 15%;
  color: var(--text-muted);
  font-style: italic;
}
.kb-msg-assistant p { margin: 0 0 8px; color: var(--text-2); }
.kb-msg-assistant p:last-child { margin-bottom: 0; }
.kb-msg-assistant h4 { font-size: var(--text-base); margin: 12px 0 6px; }
.kb-msg-assistant h5 { font-size: var(--text-sm); margin: 10px 0 4px; color: var(--brand); }
.kb-msg-assistant hr { border: none; border-top: 1px solid var(--border-light); margin: 10px 0; }
.kb-msg-assistant ul { margin: 4px 0 8px 18px; }
.kb-msg-assistant li { margin-bottom: 4px; }
.karriere-input-row {
  display: flex;
  gap: 8px;
}
.karriere-input-row .input { flex: 1; }
@media (max-width: 640px) {
  .kb-msg-user, .kb-msg-assistant, .kb-msg-loading { margin-left: 0; margin-right: 0; }
}

/* ─── Lernkarten-Grid (statt flacher Liste) ────────────────── */
.learn-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}
.learn-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
}
.learn-card-skill { font-weight: 600; margin-bottom: 4px; }
.learn-card-note { flex-grow: 1; }

.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(17,24,39,.5);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  z-index: 50;
}
.modal-box {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px;
  max-width: 440px;
  width: 100%;
  box-shadow: var(--shadow-md);
}

footer.page-footer {
  text-align: center;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
  font-size: var(--text-xs);
  color: var(--text-faint);
}

@media (max-width: 640px) {
  .page-container { padding: 16px; }
  .card { padding: 14px; }
  .dropzone { padding: 32px 16px; }
}
