/* Schmerz-Finder Hand - Frontend-Stile
   Farben werden ueber CSS-Variablen im HTML gesetzt (Admin-Einstellungen). */
.hcd-finder *,
.hcd-finder *::before,
.hcd-finder *::after { box-sizing: border-box; }

.hcd-finder {
  --hcd-ink: #0f172a;
  --hcd-muted: #475569;
  --hcd-line: #d5dde7;
  --hcd-skin: #f7fafc;
  --hcd-skin-line: #93a3b6;
  max-width: 1080px;
  margin: 8px auto 16px;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--hcd-ink);
  -webkit-text-size-adjust: 100%;
}
.hcd-finder p,
.hcd-finder h3,
.hcd-finder h4,
.hcd-finder ul,
.hcd-finder li { margin: 0; padding: 0; }
.hcd-finder ul { list-style: none; }

/* ---------- Kopfzeile ---------- */
.hcd-head { margin-bottom: 10px; }
.hcd-head h3 {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--hcd-primary);
  margin-bottom: 6px !important;
}
.hcd-head p { font-size: 15px; color: var(--hcd-muted); }

/* ---------- Layout ---------- */
.hcd-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: stretch;
}
.hcd-stage {
  flex: 1 1 460px;
  display: flex;
  flex-direction: column;
  min-width: 300px;
  background: #f4f7fa;
  border: 1px solid var(--hcd-line);
  border-radius: 14px;
  padding: 10px 12px 6px;
  position: relative;
}
.hcd-panel {
  flex: 1 1 360px;
  align-self: stretch;
  min-width: 290px;
  background: #ffffff;
  border: 1px solid var(--hcd-line);
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 6px 22px rgba(15, 23, 42, 0.07);
  display: flex;
  flex-direction: column;
}

/* ---------- SVG ---------- */
.hcd-svg { display: block; width: 100%; height: auto; overflow: visible; }
.hcd-outline { fill: var(--hcd-skin-line, #93a3b6); stroke: var(--hcd-skin-line, #93a3b6); stroke-width: 7; stroke-linejoin: round; }
.hcd-fill { fill: var(--hcd-skin, #f7fafc); }
.hcd-detail { fill: none; stroke: #b9c6d6; stroke-width: 2.2; stroke-linecap: round; }
.hcd-nail { fill: #dde8f2; stroke: #a2b5c9; stroke-width: 2.1; }
.hcd-nail-moon { fill: none; stroke: #a2b5c9; stroke-width: 1.5; stroke-linecap: round; }
.hcd-caption { font-size: 14px; font-weight: 700; fill: #64748b; }
.hcd-side-note { font-size: 11.5px; fill: #94a3b8; }

/* ---------- Hotspots ---------- */
.hcd-spot { cursor: pointer; outline: none; }
.hcd-spot .halo { fill: rgba(2, 132, 199, 0.20); transition: opacity .18s ease; opacity: 0; }
.hcd-spot .dot  { fill: var(--hcd-accent); stroke: #ffffff; stroke-width: 2.5; transition: fill .18s ease; }
.hcd-spot .num  { font-size: 12px; font-weight: 700; fill: #ffffff; pointer-events: none; }
.hcd-spot:hover .halo,
.hcd-spot:focus-visible .halo,
.hcd-spot.is-active .halo { opacity: 1; }
.hcd-spot:hover .dot,
.hcd-spot:focus-visible .dot,
.hcd-spot.is-active .dot { fill: var(--hcd-active); }
.hcd-spot.is-active .halo { fill: rgba(209, 73, 91, 0.28); }
.hcd-spot:focus-visible .dot { stroke: var(--hcd-ink); }
@keyframes hcd-breathe { 0%,100% { transform: scale(1); } 50% { transform: scale(1.35); } }
.hcd-spot .ping {
  fill: rgba(2, 132, 199, 0.28);
  transform-origin: center;
  transform-box: fill-box;
  animation: hcd-breathe 2.6s ease-in-out infinite;
}
.hcd-finder.hcd-touched .hcd-spot .ping { animation: none; opacity: 0; }
@media (prefers-reduced-motion: reduce) { .hcd-spot .ping { animation: none; } }

/* ---------- Tooltip ---------- */
.hcd-tip {
  position: absolute;
  z-index: 5;
  pointer-events: none;
  background: var(--hcd-ink);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.3;
  padding: 6px 10px;
  border-radius: 6px;
  white-space: nowrap;
  transform: translate(-50%, -140%);
  opacity: 0;
  transition: opacity .15s ease;
}
.hcd-tip.is-on { opacity: 1; }

/* ---------- Infopanel ---------- */
.hcd-intro { margin: auto 0; text-align: center; color: var(--hcd-muted); }
.hcd-intro .ico { font-size: 40px; line-height: 1; margin-bottom: 10px; }
.hcd-intro h4 { font-size: 19px; color: var(--hcd-ink); margin-bottom: 8px !important; }
.hcd-intro p { font-size: 14.5px; }

.hcd-card { display: none; }
.hcd-card.is-on { display: block; }
.hcd-badge {
  display: inline-block;
  background: #e2f1fb;
  color: #04628f;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .6px;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 4px;
  margin-bottom: 8px;
}
.hcd-card h4 { font-size: 20px; line-height: 1.3; color: var(--hcd-ink); margin-bottom: 8px !important; }
.hcd-desc { font-size: 14.5px; color: #334155; margin-bottom: 12px !important; }
.hcd-block {
  border-radius: 8px;
  padding: 11px 14px;
  margin-bottom: 10px;
  font-size: 14px;
  border: 1px solid;
}
.hcd-block b { display: block; font-size: 12.5px; letter-spacing: .3px; margin-bottom: 5px; }
.hcd-block li { position: relative; padding-left: 15px; margin-top: 3px; }
.hcd-block li::before { content: "\2022"; position: absolute; left: 2px; }
.hcd-sym  { background: #fdf6ec; border-color: #f2ddbe; color: #7c4a12; }
.hcd-sym b { color: #93540f; }
.hcd-kons { background: #f0faf3; border-color: #c3e8d0; color: #14603a; }
.hcd-kons b { color: #15803d; }
.hcd-oper { background: #eef5fd; border-color: #c6dcf5; color: #1c4b86; }
.hcd-oper b { color: #1d4ed8; }

.hcd-cta {
  display: block;
  margin-top: auto;
  text-align: center;
  background: var(--hcd-primary);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none !important;
  padding: 13px 14px;
  border-radius: 8px;
  border: none;
  transition: background .18s ease;
}
.hcd-cta:hover, .hcd-cta:focus { background: #00406f; color: #fff !important; text-decoration: none !important; }

/* ---------- Legende ---------- */
.hcd-legend {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 8px 16px;
}
.hcd-legend-col h5 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .7px;
  color: #64748b;
  margin: 0 0 6px;
  font-weight: 700;
}
.hcd-legend button {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  text-align: left;
  background: #fff;
  border: 1px solid var(--hcd-line);
  border-radius: 8px;
  padding: 7px 10px;
  margin-bottom: 6px;
  font: inherit;
  font-size: 13.5px;
  color: var(--hcd-ink);
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.hcd-legend button:hover,
.hcd-legend button:focus-visible { border-color: var(--hcd-accent); background: #f4fbff; }
.hcd-legend button.is-active { border-color: var(--hcd-active); background: #fdf2f4; }
.hcd-legend .pin {
  flex: 0 0 auto;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--hcd-accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.hcd-legend button.is-active .pin { background: var(--hcd-active); }

.hcd-note {
  margin-top: 12px;
  font-size: 12.5px;
  line-height: 1.5;
  color: #64748b;
  border-top: 1px solid var(--hcd-line);
  padding-top: 10px;
}

@media (max-width: 640px) {
  .hcd-finder { font-size: 15px; }
  .hcd-head h3 { font-size: 19px; }
  .hcd-panel { padding: 18px; }
  .hcd-tip { display: none; }
}

/* ---------- Praxislogo ---------- */
.hcd-canvas { position: relative; }
.hcd-canvas > svg { position: relative; z-index: 1; }
.hcd-wasserzeichen {
  position: absolute;
  top: 4px; right: 4px; bottom: 4px; left: 4px;
  background-repeat: no-repeat;
  pointer-events: none;
  /* ueber der Grafik, damit die Logoform als Ganzes erkennbar bleibt */
  z-index: 2;
}
/* zwischen den beiden Haenden - stoert die Zeichnung nicht */
.hcd-wz-mitte  { background-position: 50% 24%; background-size: 19% auto; }
/* gross ueber der gesamten Grafik */
.hcd-wz-gross  { background-position: 50% 50%; background-size: 62% auto; }
/* dezent in der unteren rechten Ecke */
.hcd-wz-ecke   { background-position: 99% 96%; background-size: 15% auto; }

.hcd-head { display: flex; align-items: center; gap: 18px; }
.hcd-head-text { flex: 1 1 auto; min-width: 0; }
.hcd-logo-ecke {
  flex: 0 0 auto;
  display: block;
  height: 58px;
  width: auto;
  max-width: 40%;
  margin: 0 0 0 auto;
  border: 0;
  box-shadow: none;
}
@media (max-width: 640px) {
  .hcd-head { gap: 12px; }
  .hcd-logo-ecke { height: 42px; }
  .hcd-wz-mitte { background-size: 26% auto; }
  .hcd-wz-gross { background-size: 74% auto; }
  .hcd-wz-ecke { background-size: 20% auto; }
}

/* ---------- Seitenleisten-Widget ---------- */
.hcd-teaser {
  --hcd-line: #d5dde7;
  --hcd-skin: #f7fafc;
  --hcd-skin-line: #93a3b6;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #0f172a;
  line-height: 1.5;
}
.hcd-teaser * { box-sizing: border-box; }
.hcd-teaser-logo { display: block; height: 54px; width: auto; margin: 0 auto 12px; }
.hcd-teaser-bild {
  display: block;
  position: relative;
  background: #f4f7fa;
  border: 1px solid var(--hcd-line);
  border-radius: 12px;
  padding: 12px 10px 8px;
  text-decoration: none !important;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.hcd-teaser-bild:hover,
.hcd-teaser-bild:focus { border-color: var(--hcd-accent); box-shadow: 0 5px 16px rgba(2, 132, 199, 0.16); }
.hcd-teaser-svg {
  display: block;
  width: 78%;
  max-width: 190px;
  height: auto;
  margin: 0 auto;
}
.hcd-teaser-hinweis {
  display: block;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: #64748b;
  padding: 2px 0 4px;
}
.hcd-teaser-bild:hover .hcd-teaser-hinweis { color: var(--hcd-primary); }
.hcd-tspot .dot { fill: var(--hcd-accent); stroke: #ffffff; stroke-width: 2.5; }
.hcd-tspot .halo { fill: rgba(2, 132, 199, 0.18); }
.hcd-tspot .num { font-size: 12px; font-weight: 700; fill: #ffffff; }
.hcd-teaser-bild:hover .hcd-tspot .dot { fill: var(--hcd-active); }
.hcd-teaser-bild:hover .hcd-tspot .halo { fill: rgba(209, 73, 91, 0.22); }
.hcd-teaser-text { font-size: 13.5px; color: #475569; margin: 10px 0 0 !important; }
.hcd-teaser-btn {
  display: block;
  text-align: center;
  margin-top: 10px;
  background: var(--hcd-primary);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 14px;
  padding: 11px 12px;
  border-radius: 8px;
  text-decoration: none !important;
  transition: background .18s ease;
}
.hcd-teaser-btn:hover, .hcd-teaser-btn:focus { background: #00406f; color: #fff !important; }
