/* ===== Leitstellen-Hilfe Modal ===== */

#ls-hilfe-modal.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.38);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2600;
  padding: 1rem;
}

#ls-hilfe-modal .ls-hilfe-content {
  width: min(720px, 95vw);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--page-bg, #f0f0f0);
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,.12);
  box-shadow: 0 12px 40px rgba(0,0,0,.25);
}

#ls-hilfe-modal .modal-header {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(0,0,0,.10);
  background: #fff;
}

#ls-hilfe-modal .modal-body {
  padding: 14px;
  flex: 1 1 auto;
  overflow: auto;
  max-height: calc(90vh - 110px);
}

/* Blöcke */
.ls-block {
  background: #fff;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 12px;
  border: 1px solid rgba(0,0,0,.08);
}

.ls-block h4 {
  margin: 0 0 4px 0;
  font-size: 1rem;
  color: var(--brand, #16255E);
  font-weight: 800;
}

.ls-hint {
  font-size: 0.82rem;
  opacity: 0.6;
  margin: 0 0 10px 0;
}

/* Übergabe-Block: dezenter blauer Akzent */
.ls-uebergabe {
  border-left: 5px solid var(--brand-light, #6084BF);
  background: var(--bg-blue, #eef4fb);
}

/* Begründungen: dezenter oranger Akzent */
.ls-begruendungen {
  border-left: 5px solid #f59e0b;
  background: var(--bg-yellow, #fffbea);
}

/* Gesprächshilfen: neutral */
.ls-gespraech {
  border-left: 5px solid var(--gray-400, #ccc);
}

/* Einzelne Sätze – klickbar zum Kopieren */
.ls-satz {
  padding: 8px 10px;
  margin: 6px 0;
  border-radius: 8px;
  background: rgba(255,255,255,.85);
  border: 1px solid rgba(0,0,0,.06);
  font-size: 0.9rem;
  line-height: 1.45;
  cursor: pointer;
  transition: all 0.15s;
  position: relative;
}

.ls-satz:hover {
  background: #fff;
  border-color: rgba(0,0,0,.12);
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}

.ls-satz.ls-used {
  background: #d1fae5;
  border-color: #16a34a;
  opacity: 0.7;
}

.ls-satz.ls-used::after {
  content: '✓';
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.85rem;
  color: #16a34a;
  font-weight: 600;
}

/* Stufen-Labels */
.ls-stufe-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gray-600, #666);
  margin: 12px 0 4px 0;
  padding: 0;
}

.ls-stufe-label:first-child {
  margin-top: 4px;
}

/* Eskalation – eingeklappt */
.ls-eskalation {
  margin-top: 10px;
  border-top: 1px solid rgba(0,0,0,.06);
  padding-top: 8px;
}

.ls-eskalation-toggle {
  cursor: pointer;
  color: var(--brand-red, #EB003C);
  font-weight: 700;
  font-size: 0.85rem;
  list-style: none;
  padding: 4px 0;
}

.ls-eskalation-toggle::-webkit-details-marker {
  display: none;
}

.ls-eskalation-toggle::before {
  content: '▸ ';
}

.ls-eskalation[open] .ls-eskalation-toggle::before {
  content: '▾ ';
}

.ls-eskalation-body {
  padding-top: 6px;
}

.ls-eskalation-body .ls-satz {
  background: var(--bg-red, #ffecec);
  border-color: rgba(235,0,60,.1);
}

/* Footer */
.ls-hilfe-footer {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-top: 1px solid rgba(0,0,0,.10);
  background: var(--page-bg, #f0f0f0);
}

.ls-footer-hint {
  font-size: 0.8rem;
  opacity: 0.5;
}

.ls-hilfe-footer .btn-schnell {
  border-radius: 12px;
  padding: 8px 14px;
  border: 1px solid rgba(0,0,0,.15);
  background: #fff;
  cursor: pointer;
  color: #111;
}
