/**
 * peptide-info.css — Layout-Ergänzungen für die Peptid-Info-Seiten (/peptide/[slug]/).
 * NUTZT die echten globalen Klassen aus protokoll.css (.quick-fact-card, .fact-badge,
 * .fact-icon, .fact-desc, .fact-cta, .quick-facts-grid, .dose-table, .dose-pill,
 * .section-intro, .text-green) — hier stehen nur Dinge, die diese nicht abdecken.
 * Via PeptideLayout `extraCss` global geladen (Dev == Build).
 */

/* Section-Rhythmus (spiegelt .quick-facts-section, dichter) */
.pinfo-sec { padding: clamp(1.75rem, 3.5vw, 2.75rem) clamp(16px, 4vw, 24px); }
.pinfo-sec:nth-of-type(even) { background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%); }
.pinfo-inner { max-width: 900px; margin: 0 auto; }
/* display:block überschreibt globales `main h2 {display:flex}` — sonst greift text-align:center nicht. */
.pinfo-sec > .pinfo-inner > h2 { display: block; font-family: var(--font-display); font-weight: 400; font-size: clamp(1.5rem, 3.2vw, 1.9rem); color: var(--text); text-align: center; margin: 0 0 8px; }
.pinfo-sec .section-intro { text-align: center; max-width: none; margin: 0 auto 24px; font-size: 0.98rem; line-height: 1.6; color: var(--text-muted); }

/* Tail-Sektionen (FAQ + Quellen aus protokoll.css) sind sonst linksbündig →
   auf zentriert angleichen wie die übrigen Section-Header. peptide-info.css lädt nur auf Peptid-Info-Seiten. */
.section-faq h2, .section-sources h2 { text-align: center; }
.section-faq .section-intro, .section-sources .section-intro { text-align: center; margin-left: auto; margin-right: auto; }

/* On-page E-E-A-T-Byline (Redaktion + Prüfdatum) */
.pinfo-byline { text-align: center; margin: -10px auto 0; font-family: var(--font-main); font-size: 0.8rem; color: var(--text-faint); }
.pinfo-byline strong { color: var(--text-muted); font-weight: 600; }

/* Cards: sichtbarer Rahmen + leichter Ruhe-Schatten (Definition auf flachem BG) */
.pinfo-sec .quick-fact-card { border: 1px solid var(--border); box-shadow: 0 1px 2px rgba(20, 45, 30, 0.04), 0 8px 22px rgba(20, 45, 30, 0.05); }
.pinfo-banner h2 { display: block; }

/* Text-/Listen-Inhalte immer in einer Card (nie nackt im Leerraum) */
.pinfo-textcard { max-width: none; }
.pinfo-cardlist { margin: 0; padding-left: 18px; font-family: var(--font-main); font-size: 0.9rem; line-height: 1.65; color: var(--text-muted); }
.pinfo-cardlist li { margin-bottom: 6px; }
.pinfo-cardlist li:last-child { margin-bottom: 0; }

/* Vial-Karten: .quick-fact-card + .dose-table */
.pinfo-vialfacts { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 7px; }
.pinfo-vialfacts li { display: flex; justify-content: space-between; font-size: 0.85rem; color: var(--text-muted); border-bottom: 1px dashed var(--border); padding-bottom: 6px; }
.pinfo-vialfacts li:last-child { border-bottom: none; }
.pinfo-vialfacts b { color: var(--text); font-weight: 600; }
.pinfo-vialfacts .pinfo-conc { color: var(--primary); font-weight: 600; }

/* Standalone-Tabellen: Rahmen liegt auf dem WRAPPER (bei border-collapse greift Table-Border/Radius nicht zuverlässig) */
.pinfo-tablewrap { margin: 0 auto 8px; overflow-x: auto; border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 1px 2px rgba(20, 45, 30, 0.04), 0 8px 22px rgba(20, 45, 30, 0.05); }
.pinfo-facts-table th[scope='row'] { color: var(--text); font-weight: 600; }
/* Globale Zebra (.dose-table ... td) trifft nur td → Zeilenkopf-th mitstreifen, sonst halb grau */
.pinfo-facts-table tbody tr:nth-child(even) th[scope='row'] { background: #FAFBFA; }
/* Zeilenkopf-th erbt sonst die 2px-Header-Trennlinie (.dose-table th) → auf 1px wie die td angleichen */
.pinfo-facts-table tbody th[scope='row'] { border-bottom: 1px solid var(--border); }
.pinfo-facts-table tbody tr:last-child th[scope='row'] { border-bottom: none; }
/* .dose-table selbst rahmenlos — Rahmen kommt vom Wrapper (Standalone) bzw. von der Vial-Karte (kein Tabelle-in-Tabelle) */
.pinfo-sec .dose-table { border: none; box-shadow: none; border-radius: 0; }
.pinfo-sec .dose-table td strong { color: var(--text); font-weight: 600; }
.pinfo-vialmeta { font-size: 0.8rem; color: var(--text-muted); margin: 0 0 14px; }

/* Sub-Überschrift innerhalb einer Sektion (z.B. „Titrations-Schema") */
.pinfo-subhead { text-align: center; font-family: var(--font-main); font-weight: 600; font-size: 0.95rem; color: var(--text); margin: 26px 0 12px; }

/* Material-Kacheln (Benötigtes Material) — Produktbild + Name + Link */
.pinfo-mat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-top: 4px; }
.pinfo-mat-tile { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; text-decoration: none; box-shadow: 0 1px 2px rgba(20, 45, 30, 0.04), 0 8px 22px rgba(20, 45, 30, 0.05); transition: transform 0.18s ease, box-shadow 0.18s ease; }
.pinfo-mat-tile:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(20, 45, 30, 0.10); }
.pinfo-mat-img { background: transparent; padding: 16px; display: flex; align-items: center; justify-content: center; height: 160px; }
.pinfo-mat-img img { max-width: 100%; max-height: 128px; object-fit: contain; display: block; }
.pinfo-mat-body { padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; border-top: 1px solid var(--border); }
.pinfo-mat-name { font-family: var(--font-main); font-weight: 600; font-size: 0.9rem; color: var(--text); line-height: 1.3; }
.pinfo-mat-cta { font-family: var(--font-main); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--primary); }

/* Callout (Mechanismus, Injektion) — linker Akzentstreifen */
.pinfo-callout { background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--primary); border-radius: 4px 14px 14px 4px; padding: 22px 26px; box-shadow: 0 1px 2px rgba(20, 45, 30, 0.04), 0 8px 22px rgba(20, 45, 30, 0.05); }
.pinfo-callout-label { display: block; font-family: var(--font-main); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--primary); margin-bottom: 10px; }
.pinfo-callout-text { margin: 0; font-family: var(--font-main); font-size: 0.93rem; line-height: 1.7; color: var(--text-muted); }

/* Material-Chips */
.pinfo-materials { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: center; margin: 20px auto 0; }
.pinfo-materials-label { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-faint); }
.pinfo-mat { display: inline-flex; align-items: center; gap: 5px; font-family: var(--font-main); font-size: 0.85rem; font-weight: 600; text-decoration: none; color: var(--primary); background: var(--accent-soft); border: 1px solid var(--border); border-radius: 100px; padding: 7px 15px; transition: transform 0.15s ease; }
.pinfo-mat:hover { transform: translateY(-1px); }

/* Bild-Link-Karten (Rekonstitutions-Guide + Dosisrechner) — Technik wie „Rechner & Ratgeber" */
.pinfo-linkcards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin-top: 28px; }
/* Einzelne Link-Karte = horizontaler Banner über die volle Sektionsbreite (gleiche Kante) */
.pinfo-linkcards--single { grid-template-columns: 1fr; }
.pinfo-linkcards--single .pinfo-linkcard { flex-direction: row; align-items: stretch; }
.pinfo-linkcards--single .pinfo-linkcard-img { width: 240px; height: auto; flex: none; }
.pinfo-linkcards--single .pinfo-linkcard-body { display: flex; flex-direction: column; justify-content: center; }
/* Badge im Flex-Column-Body nicht auf volle Breite ziehen — nur so breit wie das Wort */
.pinfo-linkcards--single .pinfo-linkcard-badge { align-self: flex-start; }
@media (max-width: 560px) {
  .pinfo-linkcards--single .pinfo-linkcard { flex-direction: column; }
  .pinfo-linkcards--single .pinfo-linkcard-img { width: 100%; height: 160px; }
}
.pinfo-linkcard { display: flex; flex-direction: column; text-decoration: none; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; box-shadow: 0 1px 2px rgba(20, 45, 30, 0.04), 0 8px 22px rgba(20, 45, 30, 0.05); transition: transform 0.18s ease, box-shadow 0.18s ease; }
.pinfo-linkcard:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(20, 45, 30, 0.13); }
.pinfo-linkcard-img { height: 160px; overflow: hidden; }
.pinfo-linkcard-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Orale Kapsel-Produktkachel: hochformatige Packungen sollen nicht verzerrt/cropped wirken */
.pinfo-linkcard--oral .pinfo-linkcard-img { background: var(--surface); }
.pinfo-linkcards--single .pinfo-linkcard--oral .pinfo-linkcard-img { width: 220px; }
.pinfo-linkcard--oral .pinfo-linkcard-img img { object-fit: contain; padding: 10px 16px; }
@media (max-width: 560px) {
  .pinfo-linkcards--single .pinfo-linkcard--oral .pinfo-linkcard-img { width: 100%; height: 180px; }
}
.pinfo-linkcard-body { padding: 18px 20px; }
.pinfo-linkcard-badge { display: inline-block; font-family: var(--font-main); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; border-radius: 999px; padding: 3px 10px; margin-bottom: 10px; color: var(--primary); background: var(--accent-soft); }
.pinfo-linkcard-badge--tools { color: #6A4E12; background: #F6EEDC; }
.pinfo-linkcard-body h4 { font-family: var(--font-main); font-size: 1.05rem; font-weight: 600; color: var(--text); margin: 0 0 6px; }
.pinfo-linkcard-body p { font-family: var(--font-main); font-size: 0.88rem; line-height: 1.55; color: var(--text-muted); margin: 0 0 12px; }
.pinfo-linkcard-cta { font-family: var(--font-main); font-size: 0.82rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--primary); }

/* Interner Guide-Link (→ Grundlagen-Tiefenguide) unter einer Sektion */
.pinfo-guide-link { display: block; width: fit-content; margin: 20px auto 0; font-family: var(--font-main); font-size: 0.9rem; font-weight: 600; color: var(--primary); text-decoration: none; }
.pinfo-guide-link:hover { text-decoration: underline; }

/* Dosisrechner-CTA direkt in der Rekonstitutions-Sektion (dort wird er gebraucht) */
.pinfo-calc-cta { text-align: center; margin-top: 26px; }
.pinfo-calc-btn { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-main); font-weight: 600; font-size: 0.98rem; text-decoration: none; color: #fff; background: var(--grad-cta, linear-gradient(135deg, #2a6b44, #1f5235)); padding: 0.9rem 1.8rem; border-radius: 100px; box-shadow: var(--shadow-sm, 0 4px 14px rgba(0,0,0,0.15)); transition: transform 0.18s ease, box-shadow 0.18s ease; }
.pinfo-calc-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md, 0 8px 24px rgba(0,0,0,0.18)); }

/* Grüne CTA-Banner (BIONIX + Dosisrechner) */
.pinfo-banner { max-width: 900px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: clamp(20px, 3vw, 40px); flex-wrap: wrap; background: var(--grad-cta, linear-gradient(135deg, #2a6b44, #1f5235)); border-radius: var(--radius-lg, 18px); padding: clamp(24px, 4vw, 36px); box-shadow: var(--shadow-md, 0 8px 28px rgba(0,0,0,0.12)); }
.pinfo-banner-body { flex: 1 1 320px; }
.pinfo-banner-label { display: inline-block; font-family: var(--font-main); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: rgba(255,255,255,0.82); margin-bottom: 8px; }
.pinfo-banner h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.35rem, 3vw, 1.8rem); line-height: 1.15; color: #fff; text-align: left; margin: 0 0 8px; }
.pinfo-banner p { font-family: var(--font-main); font-size: 0.94rem; line-height: 1.55; color: rgba(255,255,255,0.9); margin: 0; }
.pinfo-banner p strong { color: #fff; }
.pinfo-banner-actions { flex: none; display: flex; flex-direction: column; gap: 10px; }
.pinfo-btn { flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--font-main); font-size: 0.98rem; font-weight: 600; text-decoration: none; color: var(--primary, #2a6b44); background: #fff; padding: 0.9rem 1.6rem; border-radius: 100px; border: 1.5px solid #fff; box-shadow: var(--shadow-sm, 0 4px 14px rgba(0,0,0,0.15)); transition: transform 0.18s ease, background 0.18s ease; }
.pinfo-btn:hover { transform: translateY(-2px); }
.pinfo-btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.55); box-shadow: none; }
.pinfo-btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }
.pinfo-disclosure { max-width: 900px; margin: 12px auto 0; font-size: 0.76rem; line-height: 1.5; color: var(--text-faint); text-align: center; }

@media (max-width: 720px) {
  .pinfo-banner h2 { text-align: center; }
  .pinfo-banner-body { flex-basis: 100%; text-align: center; }
}

/* ---------- Lifestyle-Split (2/3 Text · 1/3 Bild) ---------- */
.pinfo-lifestyle-split {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: clamp(1rem, 3vw, 2rem);
  align-items: stretch;
}
.pinfo-lifestyle-text { margin: 0; }
.pinfo-lifestyle-visual {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-md, 0 10px 30px rgba(0,0,0,0.09));
  background: linear-gradient(135deg, var(--surface, #f7faf6), var(--bg, #fff));
}
.pinfo-lifestyle-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.06) contrast(1.02);
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.pinfo-lifestyle-visual:hover img { transform: scale(1.04); }
@media (max-width: 720px) {
  .pinfo-lifestyle-split { grid-template-columns: 1fr; }
  .pinfo-lifestyle-visual { aspect-ratio: 3/4; max-height: 360px; }
}

/* Hervorgehobene Begriffe für besseres Skimming — LEVION Waldgrün #2A6B44 */
.pinfo-sec strong,
.section-faq summary strong,
.section-faq .answer strong,
.section-sources strong,
.peptide-hero-intro strong,
.pinfo-banner strong {
  color: var(--primary, #2A6B44);
  font-weight: 700;
}

/* Anker-Sprung: Überschrift nicht unter die sticky Nav rutschen lassen */
.pinfo-sec[id],
.section-faq h2[id],
.section-sources h2[id] { scroll-margin-top: 70px; }
