/* Beitrag "Aspect Carb Lab im Coaching" – Layout-Baender (wie Spectra-Container im Original)
   + Widgets "pcard-demo" (animierte Produktkarte) und "alp-benefit" (Vorteils-Karten), 1:1 portiert.
   Bootstrap-Icons (CDN) des Originals sind durch lokale Inline-SVGs ersetzt. */

/* ---------- Baender: brechen aus der schmalen Lesespalte auf max. 1340px aus ---------- */
.prose .cbl-band {
  --bw: min(1340px, calc(100vw - 2 * var(--gutter)));
  width: var(--bw);
  margin: clamp(100px, 90px + 3vw, 138px) 0 0 calc(50% - var(--bw) / 2);
  position: relative;
}
.prose .cbl-band:first-child { margin-top: 0; }
.prose .cbl-band--navy, .prose .cbl-band--dark, .prose .cbl-band--white {
  padding: 100px 0 clamp(50px, 30px + 5vw, 100px);
}
.prose .cbl-band--navy { background: var(--navy-800); }
.prose .cbl-band--dark { background: var(--navy-900); padding-bottom: clamp(60px, 40px + 5vw, 120px); }
.prose .cbl-band--white { background: #fff; margin-top: 19px; padding: clamp(20px, 5vw, 100px) 0 80px; }

.cbl-inner { width: min(90%, 1080px); margin-inline: auto; }
.cbl-narrow { width: min(100% - 30px, 640px); margin-inline: auto; }

/* Fliesstext in dunklen Baendern (Original: 14-18px, Weiss 78 %) */
.cbl-band--navy p {
  margin: 0; padding-bottom: 40px;
  color: rgba(255, 255, 255, .78);
  font-size: clamp(14px, .875rem + ((1vw - 3.2px) * .392), 18px);
  line-height: 1.55;
}
.cbl-eco p { padding-bottom: 20px; }
.prose .cbl-band--navy a:not(.cbl-btn) { color: rgba(255, 255, 255, .9); font-weight: 400; text-decoration: underline; }
.prose .cbl-band--navy a:not(.cbl-btn):hover { color: #fff; }

/* Fliesstext hell (Original: 22px/1.4, mobil ca. 18px) */
.cbl-copy p { margin: 0 0 44px; font-size: clamp(18px, 16.5px + .4vw, 22px); line-height: 1.4; color: var(--ink); }
.cbl-copy p:last-child { margin-bottom: 0; }
.cbl-solution-band .cbl-lead { margin: 0; color: #fff; font-size: clamp(18px, 16.5px + .4vw, 22px); line-height: 1.4; }

/* Ueberschriften */
.prose .cbl-eyebrow {
  margin: 0; padding: 50px 0 24px;
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 13px; font-weight: 600; line-height: 1; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent);
}
.prose .cbl-eyebrow--dark { color: var(--accent-dark); }
.prose .cbl-title {
  margin: 0 0 24px; color: #fff;
  font-size: clamp(28px, 24px + 1.1vw, 40px); font-weight: 800; line-height: 1.1; letter-spacing: -.01em;
}
.prose .cbl-title--xl { font-size: clamp(30px, 18px + 2.6vw, 56px); }
.prose .cbl-title--md { color: var(--ink); font-size: clamp(28px, 26.5px + .4vw, 32px); line-height: 1.125; margin-bottom: 49px; }
.prose .cbl-solution-band .cbl-title { margin-bottom: 46px; }

/* Buttons (Original: Pille, Akzentfarbe) */
.prose .cbl-btn-row { padding: 0; margin: 0; text-align: center; }
.prose .cbl-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  padding: 18px 26px; border-radius: 50px; background: var(--accent); color: var(--ink);
  font-size: 16px; font-weight: 700; line-height: 1.4; text-decoration: none;
  transition: background-color .2s, transform .2s var(--ease);
}
.prose .cbl-btn--wide { padding-inline: 40px; }
.prose .cbl-btn:hover { background: #e8a73f; color: var(--ink); transform: translateY(-2px); }

/* Hero: Text links, Produktkarte rechts */
.cbl-hero__cols { display: grid; gap: 0; }
.cbl-hero__text, .cbl-hero__demo { padding-inline: 20px; }
.cbl-hero__demo { display: flex; align-items: center; justify-content: center; padding-block: 20px 50px; }
.cbl-hero .cbl-eyebrow { padding-top: 50px; }
.prose .cbl-hero .cbl-title { margin-bottom: 24px; }
@media (min-width: 782px) {
  .cbl-hero__cols { grid-template-columns: 1fr 1fr; column-gap: 50px; padding-bottom: 40px; }
  .cbl-hero__demo { padding-block: 50px; justify-content: flex-start; }
}
@media (max-width: 781px) { .prose .cbl-hero { padding-top: 0; } .cbl-hero__text, .cbl-hero__demo { padding-inline: 0; } }

/* Bild/Text-Bereiche */
.prose .cbl-split { display: grid; gap: 30px; align-items: start; }
.cbl-split__media img { width: 100%; height: auto; }
@media (min-width: 900px) {
  .prose .cbl-split { width: min(var(--bw), 1200px); margin-left: calc(50% - min(var(--bw), 1200px) / 2); }
  .prose .cbl-split--media-left { grid-template-columns: minmax(0, 524px) minmax(0, 524px); column-gap: clamp(40px, 9vw, 123px); }
  .prose .cbl-split--media-left .cbl-split__text { padding-top: 26px; }
  .prose .cbl-split--media-right { grid-template-columns: minmax(0, 560px) minmax(0, 560px); column-gap: clamp(40px, 6vw, 81px); }
  .prose .cbl-split--media-right .cbl-split__text { padding-top: 27px; }
}
@media (max-width: 899px) {
  .cbl-split--media-right .cbl-split__media { order: 2; }
  .cbl-split .cbl-split__text { padding-right: 30px; }
}

/* Spalten im Oekosystem-Band */
.cbl-cols { display: grid; gap: 20px 50px; align-items: center; }
.cbl-cols__media img { width: 100%; height: auto; margin-inline: auto; border-radius: 0; }
@media (min-width: 782px) { .cbl-cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 781px) { .prose .cbl-eco { padding-inline: 0; } }

/* Weisses Abschluss-Band */
.cbl-center { text-align: center; }
.prose .cbl-center .cbl-title { color: #1b2226; text-align: center; }
.cbl-center p:not(.cbl-eyebrow):not(.cbl-btn-row) {
  margin: 20px 0; padding-bottom: 20px; color: #1b2226;
  font-size: clamp(14px, .875rem + ((1vw - 3.2px) * .392), 18px); line-height: 1.55;
}
.prose .cbl-center p a:not(.cbl-btn) { color: #1b2226; font-weight: 400; text-decoration: underline; }
.prose .cbl-center p a:not(.cbl-btn):hover { color: var(--accent-dark); }

/* Sticky-Box "Aspect Carb Lab" (Original: Akzent-Button) */
.cbl-sticky .sticky-cta__button { background: var(--accent); color: var(--navy-800); border-radius: 18px; }
.cbl-sticky .sticky-cta__button:hover { background: #e8a73f; color: var(--navy-800); }

/* ======================================================================
   Widget: animierte Produktkarte (Original-CSS des Betreibers)
   ====================================================================== */
.nutrition-hub-container {
  --nut-primary: #222831; --nut-secondary: #393E46; --nut-accent: #285180; --nut-warning: #e3ad3b;
  --nut-white: #ffffff; --nut-bg: #f8f9fa; --nut-surface: #ffffff; --nut-surface-alt: #f3f5f8;
  --nut-surface-soft: #eceef2; --nut-border: #d0d4db; --nut-border-soft: #e0e3e8; --nut-border-strong: #b0b5bf;
  --nut-text: #222831; --nut-muted: #6c757d; --nut-danger: #dc3545;
  width: 100%; max-width: 420px; line-height: 1.5; font-size: 16px;
}
.nutrition-hub-container svg { display: inline-block; }
.pcard {
  position: relative; overflow: hidden;
  display: flex; flex-wrap: wrap; align-items: flex-start; column-gap: .75rem; row-gap: 0;
  background: linear-gradient(180deg, var(--nut-bg) 0%, var(--nut-surface-alt) 100%);
  border: 1px solid var(--nut-border-soft); border-radius: 10px; padding: .55rem .75rem;
  transition: box-shadow .2s, border-color .2s;
}
.pcard.pcard-actions-open { border-color: #8f97a5; box-shadow: 0 10px 24px rgba(34, 40, 49, .14); }
.pcard-img { position: relative; width: 80px; height: 80px; flex-shrink: 0; border-radius: 6px; background: var(--nut-surface-soft); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.prose .pcard-img img { width: auto; height: 80px; border-radius: 6px; object-fit: cover; }
.pcard--lg .pcard-img { width: 110px; height: 110px; }
.prose .pcard--lg .pcard-img img { height: 110px; }
.pcard-body { flex: 1; min-width: 0; }
.pcard-name { font-weight: 600; font-size: 18px; color: var(--nut-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 22px; }
.pcard-badges { display: flex; flex-wrap: wrap; gap: .2rem; margin-top: .18rem; }
.prose .pcard-badge { height: 20px; width: auto; border-radius: 0; }
.pcard-stats { font-size: .8rem; color: #555; margin-top: .2rem; display: flex; flex-wrap: wrap; gap: .35rem; font-weight: 400; }
.pcard-stats strong { font-weight: 700; }
.pcard-bolt { width: .75rem; height: .75rem; fill: #e6a817; vertical-align: -1px; }
.pcard-expand-hint {
  position: absolute; top: .4rem; right: .45rem; width: 20px; height: 20px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(34, 40, 49, .08); color: #5b6472; z-index: 3; pointer-events: none;
}
.pcard-expand-hint svg { width: 12px; height: 12px; transition: transform .2s ease; }
.pcard.note-open .pcard-expand-hint svg { transform: rotate(180deg); }
.athlete-note-box {
  display: none; flex: 0 0 100%; width: 100%; box-sizing: border-box;
  margin-top: .55rem; padding: .6rem .7rem; border-radius: 12px;
  background: rgba(255, 255, 255, .72); border: 1px solid var(--nut-border-soft);
}
.pcard.note-open .athlete-note-box { display: block; }
.athlete-note-head { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; margin-bottom: .35rem; }
.athlete-note-label { display: block; margin-bottom: 0; font-weight: 600; font-size: 16px; color: var(--nut-text); }
.athlete-rating-wrap { margin-bottom: .5rem; }
.athlete-rating { display: inline-flex; align-items: center; gap: .2rem; }
.athlete-rating-star { display: inline-flex; color: #c5cbd5; line-height: 1; }
.athlete-rating-star svg { width: 1.02rem; height: 1.02rem; fill: none; stroke: currentColor; stroke-width: 1.1; stroke-linejoin: round; }
.athlete-rating-star.is-active { color: var(--nut-warning); }
.athlete-rating-star.is-active svg { fill: currentColor; }
.athlete-note-input {
  display: block; width: 95%; box-sizing: border-box; resize: none; min-height: 60px;
  background: #f6f8fb; border: 1px solid #c9d1dc; color: #1f2937; border-radius: 8px;
  padding: .45rem .55rem; font: inherit; font-size: .8rem; line-height: 1.3;
}
.athlete-note-actions { display: flex; align-items: center; gap: .4rem; margin-top: .35rem; }
.athlete-note-save {
  display: inline-block; padding: .4rem .7rem; font-size: .78rem; font-weight: 500; line-height: 1.5;
  border-radius: 999px; background: var(--nut-primary); border: 1px solid var(--nut-primary); color: var(--nut-white);
}
.pcard-actions {
  width: calc(100% + 1.5rem); margin: 0 -.75rem -.55rem; padding: 0 .7rem; border-top: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, .25) 0%, rgba(225, 231, 240, .72) 100%);
  display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .38rem;
  opacity: 0; max-height: 0; overflow: hidden; transform: translateY(-8px); pointer-events: none;
  transition: opacity .2s ease, transform .2s ease, max-height .2s ease, padding .2s ease, margin .2s ease;
}
.pcard.pcard-actions-open .pcard-actions {
  margin: .45rem -.75rem -.55rem; padding: .42rem .7rem .48rem; border-top: 1px solid #dde2ea;
  opacity: 1; max-height: 120px; transform: translateY(0);
}
.pcard-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 30px; flex-shrink: 0;
  border-radius: 9px; border: 1px solid #cfd5df; background: rgba(255, 255, 255, .92); color: #495365;
}
.pcard-btn svg { width: 14px; height: 14px; }
.pcard-btn--remove { border-color: var(--nut-danger); color: var(--nut-danger); }
.pcard-demo-stage { position: relative; display: block; width: 100%; max-width: 420px; pointer-events: none; }
.pcd-fake-cursor {
  position: absolute; width: 20px; height: 20px; left: -40px; top: -40px; background: #1f2937;
  clip-path: polygon(0 0, 0 100%, 28% 68%, 52% 100%, 68% 90%, 44% 60%, 100% 58%);
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .35));
  transition: left .55s cubic-bezier(.65, 0, .35, 1), top .55s cubic-bezier(.65, 0, .35, 1);
  z-index: 50; pointer-events: none; opacity: 0;
}
.pcard-demo-stage.is-running .pcd-fake-cursor { opacity: 1; }
.pcd-fake-click-ring {
  position: absolute; width: 24px; height: 24px; left: -40px; top: -40px;
  border: 2px solid var(--nut-accent, #285180); border-radius: 50%;
  transform: scale(.3); opacity: 0; pointer-events: none; z-index: 49;
}
.pcd-fake-click-ring.play { animation: pcdClickPulse .5s ease-out; }
@keyframes pcdClickPulse { 0% { transform: scale(.3); opacity: .9; } 100% { transform: scale(1.7); opacity: 0; } }
.pcd-fake-toast {
  position: absolute; bottom: 10px; right: 10px; background: var(--nut-primary, #222831); color: #fff;
  font-size: .72rem; font-weight: 600; padding: .4rem .8rem; border-radius: 999px; line-height: 1.4;
  opacity: 0; transform: translateY(6px); transition: opacity .25s ease, transform .25s ease;
  z-index: 60; pointer-events: none; display: flex; align-items: center; gap: .3rem;
}
.pcd-fake-toast svg { width: 12px; height: 12px; }
.pcd-fake-toast.show { opacity: 1; transform: translateY(0); }
.athlete-rating-star.pcd-star-pop { animation: pcdStarPop .35s ease; }
@keyframes pcdStarPop { 0% { transform: scale(1); } 45% { transform: scale(1.4); } 100% { transform: scale(1); } }
.athlete-note-input.pcd-fake-focus { outline: none; border-color: #8ca2c0; box-shadow: 0 0 0 .2rem rgba(78, 115, 163, .2); }

/* ======================================================================
   Widget: Vorteils-Karten mit gezeichneten Icons (Original-CSS des Betreibers)
   ====================================================================== */
.alp-page {
  --amber: #dd9a2e; --radius-m: 16px; --sp-2: 16px; --sp-3: 24px; --sp-5: 64px;
  margin: 22px 0; line-height: 1.55;
}
.alp-page, .alp-page *, .alp-page *::before, .alp-page *::after { box-sizing: border-box; }
.alp-container { max-width: 1120px; margin: 0 auto; padding: 0 var(--sp-3); }
.alp-benefits { display: grid; grid-template-columns: 1fr; gap: var(--sp-3); margin-top: var(--sp-5); }
.alp-benefit {
  background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius-m); padding: var(--sp-3); color: #fff;
}
.js .alp-benefit {
  opacity: 0; transform: translateY(22px);
  transition: opacity .65s cubic-bezier(.22, 1, .36, 1), transform .65s cubic-bezier(.22, 1, .36, 1);
}
.js .alp-benefit.is-visible { opacity: 1; transform: translateY(0); }
.alp-benefit svg { display: block; width: 30px; height: 30px; color: var(--amber); margin-bottom: var(--sp-2); overflow: visible; }
.cbl-band .alp-benefit p { margin: 0; padding: 0; color: #ffffffb8; font-size: 15px; font-weight: 300; line-height: 1.55; }
.prose .alp-benefit h3 {
  margin: 0 0 6px; padding-bottom: 10px; position: relative;
  color: #fff; font-size: 18px; font-weight: 700; line-height: 1.125; letter-spacing: 0;
}
.alp-benefit h3::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 28px; background: var(--amber);
}
.js .alp-benefit h3::after { width: 0; transition: width 1.45s cubic-bezier(.22, 1, .36, 1) 1.95s; }
.js .alp-benefit.is-visible h3::after { width: 28px; }
.alp-benefit svg.is-ready path, .alp-benefit svg.is-ready circle, .alp-benefit svg.is-ready line {
  stroke-dasharray: var(--len); stroke-dashoffset: var(--len);
  transition: stroke-dashoffset .85s cubic-bezier(.65, 0, .35, 1) .25s;
}
.alp-benefit.is-visible svg.is-ready path, .alp-benefit.is-visible svg.is-ready circle, .alp-benefit.is-visible svg.is-ready line { stroke-dashoffset: 0; }
@media (min-width: 860px) { .alp-benefits { grid-template-columns: repeat(4, 1fr); } }
@media (prefers-reduced-motion: reduce) {
  .js .alp-benefit { opacity: 1; transform: none; transition: none; }
  .alp-benefit svg.is-ready path, .alp-benefit svg.is-ready circle, .alp-benefit svg.is-ready line { stroke-dashoffset: 0 !important; transition: none !important; }
  .js .alp-benefit h3::after { width: 28px !important; transition: none !important; }
}
