/*
 * DOM-Leitmodus (Index): nur mit body.ct24-index-dom-guide — Schalter ct24-index-dom-guide.js
 * (Gast-Chat: „0ein“ / „0aus“). Beschriftungen als Overlay mit Linien (nicht mehr ::after auf Knoten).
 */
#ct24IndexDomGuideBanner {
  position: fixed;
  left: env(safe-area-inset-left, 0px);
  right: env(safe-area-inset-right, 0px);
  bottom: calc(max(12px, env(safe-area-inset-bottom, 0px)) + var(--ct24-fahrgast-nav-dock-px, 72px) + 10px);
  z-index: 300050;
  max-width: min(560px, 100vw - 24px);
  margin-left: auto;
  margin-right: auto;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.92);
  color: #f1f5f9;
  font: 600 12px/1.35 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  pointer-events: none;
  letter-spacing: -0.02em;
}
#ct24IndexDomGuideBanner[hidden] {
  display: none !important;
}
#ct24IndexDomGuideBanner .ct24-index-dom-guide__k {
  display: block;
  font-weight: 700;
  color: #7dd3fc;
  margin-bottom: 6px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
#ct24IndexDomGuideBanner .ct24-index-dom-guide__p {
  margin: 0;
  font-weight: 500;
  color: #e2e8f0;
}
#ct24IndexDomGuideBanner .ct24-index-dom-guide__mono {
  font: 700 11px/1.3 ui-monospace, 'Cascadia Code', Consolas, monospace;
  color: #bae6fd;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(30, 41, 59, 0.95);
}

/* Bereiche — nur grobe Orientierung */
body.ct24-index-dom-guide #indexAppHeaderBar {
  outline: 2px dashed rgba(34, 211, 238, 0.55);
  outline-offset: -2px;
}
body.ct24-index-dom-guide #indexUiStack {
  outline: 2px dashed rgba(168, 85, 247, 0.45);
  outline-offset: -2px;
}
body.ct24-index-dom-guide #indexBottomChromeStack {
  outline: 2px dashed rgba(250, 204, 21, 0.45);
  outline-offset: -2px;
}
body.ct24-index-dom-guide #ct24IndexChatSheetRoot {
  outline: 2px dashed rgba(52, 211, 153, 0.55);
  outline-offset: -2px;
}

/* Overlay: SVG-Linien + HTML-Karten neben dem UI */
#ct24DomGuideOverlay {
  position: fixed;
  inset: 0;
  z-index: 299900;
  pointer-events: none;
  overflow: visible;
}
#ct24DomGuideOverlay .ct24-dom-guide-svg {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
#ct24DomGuideOverlay .ct24-dom-guide-lines path {
  fill: none;
  stroke: rgba(125, 211, 252, 0.82);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#ct24DomGuideOverlay .ct24-dom-guide-anchor {
  fill: #22d3ee;
  stroke: rgba(255, 255, 255, 0.92);
  stroke-width: 1.5;
}
#ct24DomGuideOverlay .ct24-dom-guide-labelwrap {
  position: absolute;
  box-sizing: border-box;
  max-width: min(184px, 42vw);
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.94);
  border: 1px solid rgba(56, 189, 248, 0.45);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
  font: 700 11px/1.25 ui-monospace, 'Cascadia Code', Consolas, monospace;
  color: #e0f2fe;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transform: translateY(-50%);
}
