/* ══════════════════════════════════════════════════════════
   BERENTZEN AKTIONAERSSTRUKTUR — Donut-Diagramm + Legende
   (SVG wird in PHP erzeugt, siehe berentzen-shareholders-widget.php)
══════════════════════════════════════════════════════════ */

.shareholder-chart {
  display: grid;
  grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

/* ── Diagramm ── */
.sc-figure { margin: 0; }
.sc-svg    { display: block; width: 100%; height: auto; }

.sc-label {
  font-family: inherit;
  font-weight: 700;
  text-anchor: middle;
  dominant-baseline: central;
  pointer-events: none;
}

.sc-note {
  display: flex; flex-direction: column; gap: 2px;
  margin-top: 14px;
  font-size: 12px; line-height: 1.5;
  color: rgba(78,88,89,0.6);
}

/* ── Legende ── */
.sc-legend {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 28px;
}
.sc-group {
  display: grid; grid-template-columns: 14px minmax(0, 1fr);
  column-gap: 14px;
  margin: 0; padding: 0;
}
.sc-marker {
  width: 14px; height: 14px; margin-top: 6px;
  border-radius: 4px;
  background: var(--sc-color);
  border: 1px solid rgba(78,88,89,0.18); /* damit auch das helle Beige auf Weiss sichtbar bleibt */
  box-sizing: border-box;
}
.sc-group-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  font-size: 18px; line-height: 1.35; color: var(--dark);
}
.sc-group-pct { font-weight: 700; white-space: nowrap; }

.sc-holders {
  list-style: none; margin: 10px 0 0; padding: 0;
  display: flex; flex-direction: column; gap: 6px;
  font-size: 14px; line-height: 1.4; color: rgba(78,88,89,0.8);
}
.sc-holder {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  margin: 0; padding: 0 0 6px;
  border-bottom: 0.5px solid rgba(78,88,89,0.12);
}
.sc-holder:last-child { border-bottom: none; padding-bottom: 0; }
.sc-holder-share { white-space: nowrap; font-weight: 600; }

/* Nur im Elementor-Editor sichtbarer Hinweis */
.sc-editor-note {
  margin: 0 0 12px; padding: 8px 12px;
  background: #fff8f0; border: 1.5px dashed var(--copper); border-radius: 8px;
  font-size: 12.5px; color: #7a3a12;
}

/* ── Einblend-Animation: Ring "zeichnet" sich ──
   Grundzustand = fertig sichtbar (ohne JS / bei reduzierter Bewegung).
   Das JS setzt erst .is-anim (Startzustand), dann beim Sichtbarwerden .is-in. */
.sc-seg {
  stroke-dasharray: var(--dash) var(--rest);
  stroke-dashoffset: var(--off);
}
.shareholder-chart.is-anim .sc-seg {
  stroke-dasharray: 0 var(--circ);
  transition: stroke-dasharray 0.9s cubic-bezier(0.19, 1, 0.22, 1);
  transition-delay: calc(var(--i) * 0.18s);
}
.shareholder-chart.is-anim.is-in .sc-seg {
  stroke-dasharray: var(--dash) var(--rest);
}
.shareholder-chart.is-anim .sc-labels {
  opacity: 0;
  transition: opacity 0.6s ease 0.9s;
}
.shareholder-chart.is-anim.is-in .sc-labels { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .shareholder-chart.is-anim .sc-seg,
  .shareholder-chart.is-anim .sc-labels { transition: none; }
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .shareholder-chart { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .sc-figure { max-width: 360px; margin: 0 auto; width: 100%; }
}
@media (max-width: 600px) {
  .sc-group-head { font-size: 16px; }
  .sc-holders    { font-size: 13px; }
}