/* ══════════════════════════════════════════════════════
   BH HCVO Botanicals-Tool – Styles
   ══════════════════════════════════════════════════════ */

.bh-hcvo-bot {
  --bot-blue: var(--blue, #2563eb);
  --bot-blue-50: var(--blue-50, #eff6ff);
  --bot-blue-100: #dbeafe;
  --bot-blue-700: #1d4ed8;
  --bot-green: #16a34a;
  --bot-green-50: #f0fdf4;
  --bot-yellow: #ca8a04;
  --bot-yellow-50: #fefce8;
  --bot-red: #dc2626;
  --bot-red-50: #fef2f2;
  --bot-orange: #ea580c;
  --bot-orange-50: #fff7ed;
  --bot-emerald: #059669;
  --bot-emerald-50: #ecfdf5;
  --bot-gray-50: #f8fafc;
  --bot-gray-100: #f1f5f9;
  --bot-gray-200: #e2e8f0;
  --bot-gray-300: #cbd5e1;
  --bot-gray-400: #94a3b8;
  --bot-gray-500: #64748b;
  --bot-gray-600: #475569;
  --bot-gray-700: #334155;
  --bot-gray-800: #1e293b;
  --bot-gray-900: #0f172a;
  --bot-radius: 16px;
  --bot-radius-sm: 10px;
  --bot-shadow: 0 1px 3px rgba(0,0,0,.06), 0 6px 24px rgba(0,0,0,.06);
  --bot-shadow-lg: 0 4px 6px rgba(0,0,0,.04), 0 20px 40px rgba(0,0,0,.08);

  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  max-width: 820px;
  margin: 2rem auto;
  background: #fff;
  border-radius: var(--bot-radius);
  box-shadow: var(--bot-shadow-lg);
  overflow: hidden;
  padding: 2rem;
  line-height: 1.65;
  color: var(--bot-gray-700);
}

/* ── Header / Title ────────────────────────────────── */
.bh-bot-titel {
  font-size: 1.5rem; font-weight: 800;
  color: var(--bot-gray-900);
  margin: 0 0 .5rem;
  display: flex; align-items: center; gap: .6rem; line-height: 1.3;
}
.bh-bot-titel svg { width: 28px; height: 28px; color: var(--bot-blue); flex-shrink: 0; }
.bh-bot-subtitle { font-size: .85rem; color: var(--bot-gray-500); margin: 0 0 1.5rem; }

/* ── Step Navigation ───────────────────────────────── */
.bh-bot-nav {
  display: flex; gap: .4rem; margin-bottom: 1.5rem;
  overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.bh-bot-nav::-webkit-scrollbar { display: none; }
.bh-bot-tab {
  display: flex; align-items: center; gap: .45rem;
  padding: .55rem .9rem; border: 2px solid var(--bot-gray-200);
  border-radius: 100px; background: #fff; color: var(--bot-gray-500);
  font-size: .78rem; font-weight: 600; cursor: pointer; white-space: nowrap; transition: all .25s;
}
.bh-bot-tab:hover { border-color: var(--bot-blue); color: var(--bot-blue); }
.bh-bot-tab.active { background: var(--bot-blue); border-color: var(--bot-blue); color: #fff; }
.bh-bot-tab.done { border-color: var(--bot-green); color: var(--bot-green); }
.bh-bot-tab-nr {
  display: flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%; background: var(--bot-gray-100);
  font-size: .7rem; font-weight: 700; flex-shrink: 0;
}
.bh-bot-tab.active .bh-bot-tab-nr { background: rgba(255,255,255,.2); color: #fff; }
.bh-bot-tab.done .bh-bot-tab-nr { background: var(--bot-green-50); color: var(--bot-green); }

/* ── Step Intro ────────────────────────────────────── */
.bh-bot-step-intro { margin-bottom: 1.5rem; }
.bh-bot-step-intro h3 { font-size: 1.15rem; font-weight: 700; color: var(--bot-gray-900); margin: .5rem 0 .75rem; }
.bh-bot-step-intro p { margin: 0 0 .5rem; font-size: .9rem; }
.bh-bot-badge {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .3rem .7rem; background: var(--bot-emerald-50); color: var(--bot-emerald);
  border-radius: 100px; font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em;
}
.bh-bot-badge svg { width: 14px; height: 14px; }

/* ── Package Mockup ────────────────────────────────── */
.bh-bot-package-wrap { display: flex; justify-content: center; margin: 1.5rem 0; }
.bh-bot-package {
  position: relative; border: 2px solid var(--bot-gray-200); border-radius: var(--bot-radius);
  padding: 1.5rem; max-width: 340px; width: 100%;
  background: var(--bot-gray-50); transition: border-color .3s;
}
.bh-bot-front { text-align: center; }
.bh-bot-pkg-badge {
  position: absolute; top: -10px; left: 16px; background: var(--bot-emerald);
  color: #fff; font-size: .65rem; font-weight: 700; padding: .2rem .55rem;
  border-radius: 6px; text-transform: uppercase; letter-spacing: .04em;
}
.bh-bot-pkg-brand { font-size: 1.1rem; font-weight: 800; color: var(--bot-emerald); margin-bottom: .15rem; }
.bh-bot-pkg-subtitle { font-size: .7rem; color: var(--bot-gray-400); margin-bottom: 1rem; }
.bh-bot-pkg-claim {
  font-size: .85rem; font-weight: 700; color: var(--bot-gray-800);
  padding: .6rem .8rem; margin: .5rem 0; line-height: 1.4; position: relative;
}
.bh-bot-pkg-footer {
  font-size: .7rem; color: var(--bot-gray-400); margin-top: .75rem;
  border-top: 1px solid var(--bot-gray-200); padding-top: .5rem;
}

/* On-Hold Highlight */
.bh-bot-highlight-onhold {
  background: var(--bot-orange-50); border: 2px solid var(--bot-orange);
  border-radius: var(--bot-radius-sm); cursor: pointer; transition: transform .2s, box-shadow .2s;
}
.bh-bot-highlight-onhold:hover {
  transform: scale(1.02); box-shadow: 0 4px 16px rgba(234,88,12,.15);
}
.bh-bot-pulse-dot {
  display: inline-block; width: 8px; height: 8px; background: var(--bot-orange);
  border-radius: 50%; margin-right: .4rem; animation: bh-bot-pulse 2s infinite; vertical-align: middle;
}
@keyframes bh-bot-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.6); opacity: .5; }
}

/* ── Info Box ──────────────────────────────────────── */
.bh-bot-infobox {
  max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height .4s cubic-bezier(.22,1,.36,1), opacity .3s, margin .3s;
  margin: 0; background: var(--bot-blue-50); border-radius: var(--bot-radius-sm); padding: 0 1rem;
}
.bh-bot-infobox.visible { max-height: 300px; opacity: 1; padding: 1rem; margin: .5rem 0; }
.bh-bot-infobox-header {
  display: flex; align-items: center; gap: .4rem;
  font-weight: 700; font-size: .85rem; color: var(--bot-blue-700); margin-bottom: .5rem;
}
.bh-bot-infobox-header svg { width: 18px; height: 18px; }
.bh-bot-infobox p { font-size: .82rem; margin: 0 0 .4rem; }

/* ── Claims Table ──────────────────────────────────── */
.bh-bot-claims-table { margin: 1.5rem 0; }
.bh-bot-claims-header {
  font-size: .75rem; font-weight: 700; color: var(--bot-gray-600);
  text-transform: uppercase; letter-spacing: .04em; margin-bottom: .6rem;
  padding-bottom: .35rem; border-bottom: 1px solid var(--bot-gray-200);
}
.bh-bot-claim-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem;
  padding: .6rem .8rem; border: 1px solid var(--bot-gray-200); border-radius: var(--bot-radius-sm);
  margin-bottom: .4rem; cursor: pointer; transition: all .2s;
}
.bh-bot-claim-row:hover { border-color: var(--bot-orange); background: var(--bot-orange-50); }
.bh-bot-claim-stoff {
  display: flex; align-items: center; gap: .3rem;
  font-size: .8rem; font-weight: 700; color: var(--bot-emerald); min-width: 200px;
}
.bh-bot-claim-stoff svg { width: 14px; height: 14px; }
.bh-bot-claim-text { font-size: .78rem; color: var(--bot-gray-600); flex: 1; font-style: italic; }
.bh-bot-claim-status { margin-left: auto; }
.bh-bot-status-badge {
  display: inline-flex; align-items: center; gap: .25rem;
  font-size: .65rem; font-weight: 700; padding: .2rem .5rem; border-radius: 100px;
}
.bh-bot-status-badge svg { width: 12px; height: 12px; }
.bh-bot-status-onhold { background: var(--bot-orange-50); color: var(--bot-orange); border: 1px solid var(--bot-orange); }

/* ── Hint ──────────────────────────────────────────── */
.bh-bot-hint {
  display: flex; align-items: center; gap: .4rem;
  font-size: .78rem; color: var(--bot-gray-400); background: var(--bot-gray-50);
  padding: .6rem .8rem; border-radius: var(--bot-radius-sm); margin-top: 1rem;
}
.bh-bot-hint svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ── Step 2: Ruling Cards ──────────────────────────── */
.bh-bot-rulings { display: flex; flex-direction: column; gap: .6rem; margin-bottom: 1.5rem; }
.bh-bot-ruling-card {
  display: flex; gap: .8rem; padding: 1rem; border-radius: var(--bot-radius-sm); border: 1px solid;
}
.bh-bot-ruling-red { background: var(--bot-red-50); border-color: rgba(220,38,38,.2); }
.bh-bot-ruling-blue { background: var(--bot-blue-50); border-color: rgba(37,99,235,.2); }
.bh-bot-ruling-green { background: var(--bot-green-50); border-color: rgba(22,163,74,.2); }
.bh-bot-ruling-icon svg { width: 24px; height: 24px; flex-shrink: 0; margin-top: 2px; }
.bh-bot-ruling-red .bh-bot-ruling-icon svg { color: var(--bot-red); }
.bh-bot-ruling-blue .bh-bot-ruling-icon svg { color: var(--bot-blue); }
.bh-bot-ruling-green .bh-bot-ruling-icon svg { color: var(--bot-green); }
.bh-bot-ruling-title { font-size: .9rem; font-weight: 700; color: var(--bot-gray-900); margin-bottom: .3rem; }
.bh-bot-ruling-content p { font-size: .82rem; margin: 0; }

/* ── Case Box ──────────────────────────────────────── */
.bh-bot-case-box {
  background: var(--bot-gray-50); border: 1px solid var(--bot-gray-200);
  border-radius: var(--bot-radius-sm); padding: 1.2rem;
}
.bh-bot-case-title {
  display: flex; align-items: center; gap: .4rem;
  font-weight: 700; font-size: .9rem; color: var(--bot-gray-800); margin-bottom: .5rem;
}
.bh-bot-case-title svg { width: 18px; height: 18px; color: var(--bot-blue); }
.bh-bot-case-box p { font-size: .85rem; margin: 0 0 .5rem; }

/* ── Step 3: Timeline ──────────────────────────────── */
.bh-bot-timeline { position: relative; margin: 1.5rem 0; padding-left: 2rem; }
.bh-bot-timeline::before {
  content: ''; position: absolute; left: 14px; top: 0; bottom: 0;
  width: 2px; background: var(--bot-gray-200);
}
.bh-bot-timeline-item { position: relative; margin-bottom: 1.2rem; }
.bh-bot-tl-marker {
  position: absolute; left: -2rem; top: 0;
  width: 30px; height: 30px; border-radius: 50%;
  background: #fff; border: 2px solid var(--bot-gray-300);
  display: flex; align-items: center; justify-content: center;
}
.bh-bot-tl-marker svg { width: 14px; height: 14px; color: var(--bot-gray-500); }
.bh-bot-tl-active .bh-bot-tl-marker { background: var(--bot-red-50); border-color: var(--bot-red); }
.bh-bot-tl-active .bh-bot-tl-marker svg { color: var(--bot-red); }
.bh-bot-tl-content { padding-left: 1rem; }
.bh-bot-tl-date {
  font-size: .72rem; font-weight: 700; color: var(--bot-red);
  text-transform: uppercase; letter-spacing: .04em; margin-bottom: .15rem;
}
.bh-bot-tl-title { font-size: .9rem; font-weight: 700; color: var(--bot-gray-900); margin-bottom: .3rem; }
.bh-bot-tl-content p { font-size: .82rem; margin: 0; }

/* ── Step 4: Questions ─────────────────────────────── */
.bh-bot-question {
  background: var(--bot-gray-50); border: 1px solid var(--bot-gray-200);
  border-radius: var(--bot-radius-sm); padding: 1rem 1.2rem; margin-bottom: .6rem;
}
.bh-bot-q-indent { margin-left: 1.5rem; border-left: 3px solid var(--bot-blue); }
.bh-bot-q-header { display: flex; align-items: flex-start; gap: .6rem; margin-bottom: .75rem; }
.bh-bot-q-nr {
  display: flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%; background: var(--bot-blue);
  color: #fff; font-size: .75rem; font-weight: 800; flex-shrink: 0;
}
.bh-bot-q-text { font-size: .88rem; font-weight: 600; color: var(--bot-gray-800); line-height: 1.45; }
.bh-bot-q-text small { font-weight: 400; color: var(--bot-gray-500); }
.bh-bot-q-buttons { display: flex; gap: .5rem; }
.bh-bot-q-btn {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .5rem 1rem; border: 2px solid var(--bot-gray-200); border-radius: 100px;
  background: #fff; color: var(--bot-gray-600); font-size: .8rem; font-weight: 600;
  cursor: pointer; transition: all .2s;
}
.bh-bot-q-btn svg { width: 16px; height: 16px; }
.bh-bot-q-btn:hover { border-color: var(--bot-blue); color: var(--bot-blue); }
.bh-bot-q-btn.bh-bot-q-yes { background: var(--bot-green); border-color: var(--bot-green); color: #fff; }
.bh-bot-q-btn.bh-bot-q-no { background: var(--bot-red); border-color: var(--bot-red); color: #fff; }

/* ── Result ────────────────────────────────────────── */
.bh-bot-result {
  display: flex; align-items: flex-start; gap: .7rem;
  padding: 1rem 1.2rem; border-radius: var(--bot-radius-sm); margin: 1rem 0 1.5rem;
}
.bh-bot-result-green { background: var(--bot-green-50); border: 1px solid var(--bot-green); }
.bh-bot-result-yellow { background: var(--bot-yellow-50); border: 1px solid var(--bot-yellow); }
.bh-bot-result-red { background: var(--bot-red-50); border: 1px solid var(--bot-red); }
.bh-bot-result-icon svg { width: 24px; height: 24px; flex-shrink: 0; margin-top: 2px; }
.bh-bot-result-green .bh-bot-result-icon svg { color: var(--bot-green); }
.bh-bot-result-yellow .bh-bot-result-icon svg { color: var(--bot-yellow); }
.bh-bot-result-red .bh-bot-result-icon svg { color: var(--bot-red); }
.bh-bot-result-title { font-size: .9rem; font-weight: 700; margin-bottom: .3rem; }
.bh-bot-result-green .bh-bot-result-title { color: var(--bot-green); }
.bh-bot-result-yellow .bh-bot-result-title { color: var(--bot-yellow); }
.bh-bot-result-red .bh-bot-result-title { color: var(--bot-red); }
.bh-bot-result-body p { font-size: .82rem; margin: 0; line-height: 1.5; }

/* ── Summary Box ───────────────────────────────────── */
.bh-bot-summary-box {
  background: var(--bot-blue-50); border: 1px solid var(--bot-blue-100);
  border-radius: var(--bot-radius-sm); padding: 1.2rem; margin-bottom: .5rem;
}
.bh-bot-summary-title {
  display: flex; align-items: center; gap: .4rem;
  font-weight: 700; font-size: .9rem; color: var(--bot-blue-700); margin-bottom: .5rem;
}
.bh-bot-summary-title svg { width: 18px; height: 18px; }
.bh-bot-summary-box p { font-size: .85rem; margin: 0; }
.bh-bot-summary-items { margin-top: .5rem; }
.bh-bot-summary-item {
  font-size: .82rem; color: var(--bot-gray-700); padding: .35rem 0;
  border-bottom: 1px solid rgba(37,99,235,.1); line-height: 1.5;
}
.bh-bot-summary-item:last-child { border-bottom: none; }

/* ── Footer Nav ────────────────────────────────────── */
.bh-bot-footer-nav {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--bot-gray-200);
}
.bh-bot-btn {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .55rem 1.2rem; font-size: .82rem; font-weight: 700;
  border-radius: 100px; border: none; cursor: pointer; text-decoration: none; transition: all .25s;
}
.bh-bot-btn svg { width: 16px; height: 16px; }
.bh-bot-btn-primary { background: var(--bot-blue); color: #fff; }
.bh-bot-btn-primary:hover { background: var(--bot-blue-700); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(37,99,235,.25); }
.bh-bot-btn-outline { background: #fff; color: var(--bot-gray-600); border: 2px solid var(--bot-gray-200); }
.bh-bot-btn-outline:hover { border-color: var(--bot-gray-400); color: var(--bot-gray-800); }

/* ── Source ─────────────────────────────────────────── */
.bh-bot-source { font-size: .7rem; color: var(--bot-gray-400); text-align: center; margin-top: 1rem; margin-bottom: 0; }

/* ══════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════ */
@media (max-width: 640px) {
  .bh-hcvo-bot { padding: 1.2rem; margin: 1rem; }
  .bh-bot-titel { font-size: 1.2rem; }
  .bh-bot-titel svg { width: 22px; height: 22px; }
  .bh-bot-tab-label { display: none; }
  .bh-bot-tab { padding: .45rem .6rem; }
  .bh-bot-claim-stoff { min-width: 0; width: 100%; }
  .bh-bot-claim-row { flex-direction: column; align-items: flex-start; }
  .bh-bot-claim-status { margin-left: 0; }
  .bh-bot-q-indent { margin-left: .5rem; }
  .bh-bot-q-buttons { flex-direction: column; }
  .bh-bot-q-btn { justify-content: center; }
}
