/* =============================================================
   protokoll-reta-education.css
   Standalone CSS for Compound-Vergleich + Study Numbers + Chart
   Extracted from css/reta-ergebnis.css — 1:1 copy
   Variables: --primary, --gold, --grad-cta, --grad-progress,
              --font-display, --font-main, --surface, --border
              (defined in css/tokens.css)
   ============================================================= */


/* =============================================================
   Study Meta — Dark Green Section with Light Number Cards
   Source: reta-ergebnis.css 2429-2525
   ============================================================= */
.study-meta-section {
  padding: 80px 0;
  margin-top: 64px;
  background: #1a3828;
  position: relative;
  overflow: hidden;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}

.study-meta-section::before {
  content: '';
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(74, 175, 128, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.study-meta-section .chart-headline {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--white);
  text-align: center;
  margin: 0 0 8px;
  line-height: 1.2;
}

.study-meta-section .chart-headline .evergreen {
  color: var(--gold);
}

.study-meta-section .chart-sub {
  font-family: var(--font-main);
  font-size: 0.9rem;
  color: rgba(255,255,255,0.68);
  text-align: center;
  margin: 0 0 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.study-numbers-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

.study-number-card {
  background-color: var(--bg);
  text-align: center;
  border-radius: 24px;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  padding: 28px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
  min-width: 0;
}

.study-number-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.10);
}

.study-number-value {
  font-family: var(--font-main);
  font-size: 42px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--text);
  white-space: nowrap;
}

.counter-num {
  font-variant-numeric: tabular-nums;
}

.study-number-unit {
  font-size: 42px;
  font-weight: 500;
  color: var(--primary);
  margin-left: 2px;
}

.study-number-label {
  font-family: var(--font-main);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}


/* =============================================================
   Study Data Section — Light Background Chart + Attainment
   ============================================================= */
.study-data-section {
  padding: 64px 0;
}

.study-data-section .section-headline {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--text);
  line-height: 1.2;
  text-align: center;
  margin: 0 0 12px;
}

.study-data-section .section-subtitle {
  font-family: var(--font-main);
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: center;
  margin: 0 auto 32px;
  max-width: 640px;
}

.chart-source {
  font-family: var(--font-main);
  font-size: 0.75rem;
  color: var(--text-faint);
  text-align: center;
  margin: 16px 0 0;
}

.chart-source a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

/* ---- Chart + Attainment stacked layout ---- */
.chart-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}

.chart-layout .chart-container {
  max-width: none;
  margin: 0;
}

.chart-layout .attainment-card {
  max-width: none;
  margin: 0;
}

/* ---- Attainment text block BELOW graphics ---- */
.attainment-text-block {
  text-align: center;
  margin: 32px 0 16px;
}

.attainment-text-block .attainment-headline {
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 6px;
}

.attainment-text-block .attainment-sub {
  font-family: var(--font-main);
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0;
}


/* =============================================================
   Compound Comparison — Evolution of Trust (Asymmetric Grid)
   ============================================================= */
.compound-compare {
  margin-top: 56px;
  padding-top: 48px;
}

.compound-headline {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--text);
  margin: 0 0 8px;
  text-align: center;
}

.compound-sub {
  font-family: var(--font-main);
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  margin: 0 auto 32px;
  max-width: 540px;
}

/* ---- Asymmetric Grid: predecessors | gold-connector | dominant ---- */
.compound-grid {
  display: grid;
  grid-template-columns: 1.2fr 60px 1.8fr;
  align-items: center;
  gap: 0;
  max-width: 1000px;
  margin: 0 auto;
}

/* ---- Predecessor group (Gen 1 + Gen 2 stacked) ---- */
.compound-predecessors {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ---- Cards ---- */
.compound-card {
  flex: 1;
  min-width: 0;
  background: var(--surface);
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 24px;
  padding: 28px 18px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
}

.compound-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(26,26,26,0.14);
}

/* ---- Predecessor Cards (Gen 1 & 2) ---- */
.compound-card.predecessor {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 20px 14px 16px;
  opacity: 0.85;
  gap: 10px;
}

.compound-card.predecessor:hover {
  opacity: 1;
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(26,26,26,0.08);
}

.compound-card.predecessor .compound-name {
  font-size: 1rem;
}

.compound-card.predecessor .compound-bar {
  height: 6px;
}

.compound-card.predecessor .compound-receptors .cr-dot {
  width: 8px;
  height: 8px;
}

/* ---- Dominant Card (Gen 3) — Animated Gold Border ---- */
.dominant-border-wrap {
  position: relative;
  border-radius: 27px;
  padding: 3px;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(201, 169, 110, 0.15);
}

.dominant-border-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 27px;
  padding: 3px;
  background-image: radial-gradient(
    transparent,
    transparent,
    #C9A96E,
    #F9DE90,
    #FFF4D6,
    #F9DE90,
    #C9A96E,
    transparent,
    transparent
  );
  background-size: 300% 300%;
  animation: border-shine 15s infinite linear;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
  z-index: 0;
}

@keyframes border-shine {
  0% { background-position: 0% 0%; }
  50% { background-position: 100% 100%; }
  100% { background-position: 0% 0%; }
}

.compound-card.dominant {
  background: var(--surface);
  border: none;
  box-shadow: 0 0 28px rgba(201,169,110,0.10), 0 8px 24px rgba(26,26,26,0.06);
  padding: 36px 28px 28px;
  min-height: 380px;
  justify-content: center;
  position: relative;
  z-index: 1;
  border-radius: 24px;
}

.compound-card.dominant::before {
  content: '';
  position: absolute;
  inset: -40px;
  background: radial-gradient(ellipse 60% 50% at 50% 30%, rgba(201,169,110,0.06) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

.compound-card.dominant:hover {
  box-shadow: 0 0 36px rgba(201,169,110,0.15), 0 20px 40px rgba(26,26,26,0.12);
  transform: translateY(-6px);
}

.compound-card.dominant .compound-name {
  font-size: 1.6rem;
  color: var(--primary);
}

.compound-card.dominant .compound-receptors .cr-dot {
  width: 14px;
  height: 14px;
}

.compound-card.dominant .compound-bar {
  height: 12px;
  background: rgba(42,107,68,0.10);
}

.compound-card.dominant .compound-bar-num {
  font-size: 1.3rem;
  color: var(--primary);
}

/* ---- Gen Tag ---- */
.compound-gen-tag {
  font-family: var(--font-main);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 3px 12px;
  background: var(--bg);
  border-radius: 100px;
}

.compound-gen-tag.dom-tag {
  background: var(--accent-soft);
  color: var(--primary);
}

/* ---- "Durchbruch" Badge ---- */
.compound-badge {
  position: absolute;
  top: 12px;
  right: 16px;
  font-family: var(--font-main);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
  background: var(--gold);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(201,169,110,0.35);
  z-index: 2;
}

/* ---- Receptor Dots ---- */
.compound-receptors {
  display: flex;
  gap: 8px;
  align-items: center;
}

.cr-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  border: 1px solid rgba(0,0,0,0.08);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.cr-dot.active {
  background: var(--primary);
  border-color: var(--primary);
}

.cr-dot.active.glow {
  box-shadow: 0 0 8px rgba(42,107,68,0.35);
  animation: dot-pulse 2.5s ease-in-out infinite;
}

@keyframes dot-pulse {
  0%, 100% { box-shadow: 0 0 6px rgba(42,107,68,0.25); }
  50%      { box-shadow: 0 0 14px rgba(42,107,68,0.50); }
}

/* ---- Name & Brand ---- */
.compound-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--text);
  margin: 0;
  line-height: 1.2;
}

.compound-brand {
  font-family: var(--font-main);
  font-size: 0.7rem;
  color: var(--text-faint);
  margin: -4px 0 0;
}

.compound-brand.dom-brand {
  color: var(--primary);
  font-weight: 500;
}

/* ---- Weight Loss Bar ---- */
.compound-bar-wrap {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 4px;
}

.compound-bar {
  flex: 1;
  height: 8px;
  background: var(--border);
  border-radius: 100px;
  overflow: hidden;
}

.compound-bar-fill {
  height: 100%;
  border-radius: 100px;
  width: 0;
  background: var(--grad-progress);
}

.compound-card.dominant .compound-bar-fill {
  background: var(--grad-cta);
  box-shadow: 0 0 8px rgba(42,107,68,0.25);
}

.compound-bar-num {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
  min-width: 44px;
  text-align: right;
  flex-shrink: 0;
}

/* ---- Specs ---- */
.compound-specs {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 2px;
}

.spec-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-main);
  font-size: 0.73rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.spec-icon {
  flex-shrink: 0;
  width: 18px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.spec-icon svg {
  width: 16px;
  height: 16px;
  display: block;
}

.spec-row.exclusive {
  color: var(--primary);
  font-weight: 500;
}

.spec-row.exclusive .spec-icon svg {
  stroke: var(--gold);
}

/* ---- CTA ---- */
.compound-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 100px;
  background: var(--grad-cta);
  color: var(--white);
  font-family: var(--font-main);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  margin-top: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.compound-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(42,107,68,0.30);
}

/* ---- Gold Connection Line (desktop) ---- */
.compound-connector-gold {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--border) 0%, var(--gold) 50%, var(--border) 100%);
  position: relative;
  justify-self: center;
}

.compound-connector-gold::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 8px solid var(--gold);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}

/* ---- Vertical Connector (between Gen 1 & Gen 2) ---- */
.compound-connector-vertical {
  width: 2px;
  height: 24px;
  background: linear-gradient(180deg, var(--border) 0%, var(--gold) 100%);
  margin: 0 auto;
}

/* ---- Staggered entrance animations ---- */
.reta-section.is-visible .compound-predecessors {
  animation: fadeSlideUp 0.6s cubic-bezier(0.16,1,0.3,1) forwards;
}

.reta-section.is-visible .compound-connector-gold {
  animation: fadeSlideUp 0.6s 0.25s cubic-bezier(0.16,1,0.3,1) forwards;
  opacity: 0;
}

.reta-section.is-visible .compound-card.dominant {
  animation: fadeSlideUp 0.7s 0.45s cubic-bezier(0.16,1,0.3,1) forwards;
  opacity: 0;
}

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Peptid-Kontext: kein eigenes Compound-Reveal-JS — Zahlen statisch sichtbar.
   (Original: opacity:0, von reta-lp.js::animateCompoundBars eingeblendet.) */
.compound-bar-num.num-gen1,
.compound-bar-num.num-gen2,
.compound-bar-num.num-gen3 {
  opacity: 1;
}

/* ---- Bar fill widths (animated via JS) ---- */
.c-bar-52 { width: 52%; }
.c-bar-73 { width: 73%; }
.c-bar-100 { width: 100%; }


/* =============================================================
   Toggle Row + Buttons (Dosis / Untergruppe)
   ============================================================= */
.toggle-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 16px 0;
  flex-wrap: wrap;
}

.toggle-row + .toggle-row {
  margin-top: 8px;
}

.toggle-label {
  font-family: var(--font-main);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  min-width: 110px;
}

.chart-toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.toggle-btn {
  font-family: var(--font-main);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.toggle-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.toggle-btn.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}


/* =============================================================
   Chart Container + SVG
   ============================================================= */
.chart-container {
  position: relative;
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
}

#studyChartSvg {
  width: 100%;
  height: auto;
  display: block;
}

#studyChartSvg .chart-axis {
  stroke: var(--border);
  stroke-width: 1;
}

#studyChartSvg .chart-grid-line {
  stroke: rgba(0,0,0,0.06);
  stroke-width: 1;
}

#studyChartSvg .chart-axis-label {
  font-family: var(--font-main);
  font-size: 14px;
  fill: var(--text);
  opacity: 0.7;
}

#studyChartSvg .chart-curve {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: opacity 0.3s ease, stroke-width 0.3s ease;
}

#studyChartSvg .chart-curve.dimmed {
  opacity: 0.18;
}

#studyChartSvg .chart-curve.highlight {
  stroke-width: 4px;
  opacity: 1;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.12));
}

#studyChartSvg .chart-legend-text {
  font-family: var(--font-main);
  font-size: 11px;
  font-weight: 600;
}

/* ---- Legend below chart ---- */
.chart-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 16px;
}

.chart-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-main);
  font-size: 0.82rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.chart-legend-item:hover {
  opacity: 0.7;
}

.chart-legend-item .legend-swatch {
  width: 14px;
  height: 3px;
  border-radius: 2px;
}

.chart-legend-item.active {
  color: var(--text);
  font-weight: 600;
}

/* ---- Tooltip ---- */
.chart-tooltip {
  position: absolute;
  background: var(--text);
  color: var(--white);
  font-family: var(--font-main);
  font-size: 0.82rem;
  padding: 12px 16px;
  border-radius: 12px;
  pointer-events: none;
  z-index: 10;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.15s ease;
  line-height: 1.5;
}

.chart-tooltip strong {
  display: block;
  margin-bottom: 6px;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  padding-bottom: 4px;
}

.chart-tooltip .tooltip-kg {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.7);
  margin-left: 4px;
}

.chart-tooltip.visible {
  opacity: 1;
}


/* =============================================================
   Attainment Card + Bars
   ============================================================= */
.attainment-card {
  max-width: 980px;
  margin: 32px auto 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px 28px;
}

.attainment-section {
  max-width: 600px;
  margin: 0 auto;
}

.attainment-header {
  text-align: center;
  margin-bottom: 20px;
}

.attainment-sub {
  font-family: var(--font-main);
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 6px 0 0;
}

.attainment-insight {
  margin-top: 24px;
  padding: 16px 20px;
  background: rgba(201,169,110,0.08);
  border-left: 3px solid var(--gold);
  border-radius: 0 12px 12px 0;
  font-family: var(--font-main);
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.5;
}

.attainment-insight strong {
  color: var(--primary);
  font-weight: 600;
}

.attainment-headline {
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
  text-align: center;
}

.attainment-bars {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.attainment-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.attainment-label {
  font-family: var(--font-main);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  width: 50px;
  text-align: right;
  flex-shrink: 0;
}

.attainment-track {
  flex: 1;
  height: 24px;
  background: var(--border);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}

.attainment-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 6px;
  transition: width 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 8px;
}

.attainment-fill span {
  font-family: var(--font-main);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--white);
}

.attainment-fill.animate-in {
  animation: attainmentGrow 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes attainmentGrow {
  from { width: 0%; }
}


/* =============================================================
   Section + Reveal helpers (for .reta-section.is-visible)
   ============================================================= */
.reta-section {
  padding: 64px 24px;
  max-width: 1280px;
  margin: 0 auto;
}

.reta-section.is-visible {
  opacity: 1;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.section-content {
  max-width: 1200px;
  margin: 0 auto;
}

.evergreen {
  color: var(--gold);
}

.text-green {
  color: var(--primary);
}


/* =============================================================
   Compound Comparison — Responsive
   ============================================================= */
@media (max-width: 991px) {
  .compound-card { padding: 20px 12px 18px; gap: 10px; border-radius: 20px; }
  .compound-card.predecessor { padding: 16px 10px 12px; }
  .compound-card.dominant { padding: 24px 18px 18px; min-height: auto; }
  .compound-name { font-size: 1rem; }
  .compound-card.dominant .compound-name { font-size: 1.2rem; }
  .compound-card.dominant .compound-receptors .cr-dot { width: 10px; height: 10px; }
  .cr-dot { width: 8px; height: 8px; }
  .compound-receptors { gap: 6px; }
  .compound-gen-tag { font-size: 0.6rem; }
  .spec-row { font-size: 0.68rem; }
  .compound-bar-num { font-size: 0.78rem; min-width: 36px; }
  .compound-bar-num.dom-num { font-size: 0.95rem; }
  .compound-badge { font-size: 0.62rem; padding: 4px 10px; right: 8px; }
  .compound-connector-gold { width: 48px; }
  .compound-cta { padding: 12px 24px; font-size: 0.82rem; }

  .study-numbers-grid { grid-template-columns: repeat(3, 1fr); }
  .study-number-value { font-size: 36px; }
  .study-number-unit { font-size: 36px; }
}

@media (max-width: 768px) {
  .compound-compare { margin-top: 40px; padding-top: 36px; }
  .compound-headline { font-size: 1.3rem; }

  .compound-grid {
    grid-template-columns: 1fr;
    gap: 0;
    max-width: 420px;
  }

  .compound-predecessors {
    flex-direction: row;
    gap: 12px;
  }

  .compound-card {
    flex-direction: column;
    text-align: center;
    gap: 8px;
    padding: 18px;
  }

  .compound-card.predecessor {
    flex: 1;
    min-width: 0;
    padding: 14px 10px 12px;
  }

  .compound-card.dominant {
    min-height: auto;
    padding: 24px 18px 20px;
  }

  .compound-card.dominant::before { display: none; }

  .compound-receptors { width: auto; }
  .compound-brand { width: 100%; margin-top: -4px; }
  .compound-bar-wrap { width: 100%; }
  .compound-specs { width: 100%; }
  .compound-cta { width: 100%; text-align: center; }

  .compound-connector-gold {
    width: 2px;
    height: 40px;
    margin: 8px auto;
    background: linear-gradient(180deg, var(--border) 0%, var(--gold) 100%);
  }

  .compound-connector-gold::after {
    right: 50%;
    top: auto;
    bottom: -6px;
    transform: translateX(50%) rotate(90deg);
  }

  .study-meta-section { padding: 48px 0; margin-top: 32px; }
  .study-meta-section .chart-headline { font-size: 1.4rem; }
  .study-meta-section .chart-sub { font-size: 0.8rem; margin-bottom: 24px; }
  .study-numbers-grid { grid-template-columns: repeat(2, 1fr); }
  .study-number-card { padding: 24px 12px; }
  .study-number-value { font-size: 32px; }
  .study-number-unit { font-size: 32px; }
  .study-number-label { font-size: 0.7rem; }

  .study-data-section { padding: 48px 0; }
  .study-data-section .section-headline { font-size: 1.4rem; }
  .study-data-section .section-subtitle { font-size: 0.82rem; }

  .toggle-row { gap: 10px; }
  .toggle-label { min-width: auto; flex-basis: 100%; }
  .toggle-btn { font-size: 0.75rem; padding: 6px 12px; }

  .chart-container { padding: 16px; border-radius: 16px; }
  .chart-legend { gap: 10px; }
  .chart-legend-item { font-size: 0.72rem; }
  .attainment-card { padding: 20px 16px; border-radius: 16px; }
  .attainment-label { font-size: 0.72rem; width: 44px; }
}

@media (max-width: 480px) {
  .study-numbers-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .study-number-card { padding: 22px 10px; }
  .study-number-value { font-size: 28px; }
  .study-number-unit { font-size: 28px; }
}

/* =============================================================
   Heading-Harmonisierung (13.06.) — einheitlich mit den übrigen
   Peptid-Sektionen. Compound + Study-Data (hell): links, gleiche Größe.
   Study-Meta (dunkles Band): bewusst ZENTRIERT (User 13.06.).
   ============================================================= */
.compound-headline,
.study-data-section .section-headline {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.18;
  letter-spacing: -0.01em;
  text-align: left;
}
.compound-sub,
.study-data-section .section-subtitle {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}
/* Study-Meta-Heading nur Größe angleichen, Ausrichtung bleibt zentriert (Band-Look). */
.study-meta-section .chart-headline {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.18;
  letter-spacing: -0.01em;
  text-align: center;
}
.study-meta-section .chart-sub { text-align: center; }

/* Education-Inhaltsbreite an den Standard-Container (.reveal = 1100px) angleichen,
   damit die Headings mit den übrigen Sektionen fluchten (vorher 1200px → sprang links raus). */
.reta-section.compound-compare { max-width: none; padding-left: 0; padding-right: 0; }
.compound-compare .section-content,
.study-data-section .section-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 48px);
}
