/* =====================================================
   SuppTree — Shared Help-Center Styles (Welle 11)
   =====================================================
   Stile für window.SUPPTREE_HELP_CENTER. Klassen-Präfix
   `sthc-*` (für „SuppTree Help-Center"). Drawer rechts-
   slidend (mobile: unten), z-index 9100 (über der Bell).
   ===================================================== */

/* ----------------------------------------------------- */
/* Modal-Overlay                                          */
/* ----------------------------------------------------- */
.sthc-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  z-index: 9100;
  display: flex;
  justify-content: flex-end;
  animation: sthcFadeIn 0.12s ease-out;
}

@keyframes sthcFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.sthc-drawer {
  width: 420px;
  max-width: 100vw;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  box-shadow: -16px 0 48px rgba(0, 0, 0, 0.2);
  animation: sthcSlideIn 0.18s ease-out;
  color: #111827;
}

@keyframes sthcSlideIn {
  from { transform: translateX(20px); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}

/* Inline-Modus (mount in einen Host) */
.sthc-inline {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 10px;
  background: #ffffff;
  overflow: hidden;
  color: #111827;
}

/* ----------------------------------------------------- */
/* Head                                                  */
/* ----------------------------------------------------- */
.sthc-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--cream, #f8f9fa);
  border-bottom: 1px solid var(--border, #e5e7eb);
}
.sthc-head-title {
  flex: 1;
  font-weight: 700;
  font-size: 15px;
}
.sthc-close {
  background: transparent;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: inherit;
  padding: 4px 8px;
  border-radius: 4px;
}
.sthc-close:hover { background: rgba(0,0,0,0.06); }

/* ----------------------------------------------------- */
/* Suche                                                 */
/* ----------------------------------------------------- */
.sthc-search-wrap {
  padding: 10px 16px 6px;
  border-bottom: 1px solid var(--border, #e5e7eb);
}
.sthc-search {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 12px;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 7px;
  font-size: 13px;
  font-family: inherit;
  outline: none;
  color: inherit;
  background: #ffffff;
}
.sthc-search:focus {
  border-color: var(--green-accent, #00A67E);
}

/* ----------------------------------------------------- */
/* Quick-Actions                                          */
/* ----------------------------------------------------- */
.sthc-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 16px;
  border-bottom: 1px solid var(--border, #e5e7eb);
  background: #ffffff;
}
.sthc-quick-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--green-light, #E8F5E9);
  color: var(--green-dark, #1a5a3a);
  border: 1px solid var(--green-light, #E8F5E9);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
}
.sthc-quick-btn:hover {
  filter: brightness(0.95);
}
.sthc-quick-ic { font-size: 13px; }

/* ----------------------------------------------------- */
/* Body / Sections / Items                                */
/* ----------------------------------------------------- */
.sthc-body {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
}

.sthc-section {
  padding: 6px 0 10px;
  border-bottom: 1px solid var(--border, #e5e7eb);
}
.sthc-section:last-child { border-bottom: none; }

.sthc-section-h {
  padding: 8px 16px 4px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #6b7280;
}

.sthc-item {
  padding: 8px 16px 10px;
  border-left: 3px solid transparent;
}
.sthc-item + .sthc-item {
  border-top: 1px dashed var(--border, #e5e7eb);
}
.sthc-item:hover {
  border-left-color: var(--green-accent, #00A67E);
  background: var(--cream, #f8f9fa);
}

.sthc-q {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--green-dark, #1a5a3a);
}
.sthc-a {
  font-size: 12px;
  line-height: 1.5;
  color: #374151;
  margin-top: 4px;
}
.sthc-item-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: #6b7280;
  margin-top: 6px;
  background: var(--cream, #f8f9fa);
  padding: 2px 7px;
  border-radius: 999px;
}

.sthc-empty {
  padding: 24px 16px;
  text-align: center;
  color: #6b7280;
  font-size: 13px;
}

/* ----------------------------------------------------- */
/* Footer (Honesty-Marker)                                */
/* ----------------------------------------------------- */
.sthc-footer {
  padding: 10px 16px;
  background: var(--cream, #f8f9fa);
  border-top: 1px solid var(--border, #e5e7eb);
  font-size: 10px;
  color: #6b7280;
  line-height: 1.4;
}

/* ----------------------------------------------------- */
/* Mobile                                                 */
/* ----------------------------------------------------- */
@media (max-width: 600px) {
  .sthc-overlay { align-items: flex-end; justify-content: stretch; }
  .sthc-drawer {
    width: 100%;
    max-height: 92vh;
    border-radius: 14px 14px 0 0;
    animation: sthcSlideUp 0.18s ease-out;
  }
  @keyframes sthcSlideUp {
    from { transform: translateY(20px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
  }
}
