/* ============================================================
   Eumetabol page styles. Tokens only (theme.css holds the values).
   Layout concept: a pharmacy dispensing label. Precise facts,
   the amber vial, the blue stripe of the Eumetabol label.
   ============================================================ */

:root { --header-height: 68px; }
@media screen and (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@media (min-width: 760px) { :root { --header-height: 80px; } }

/* ── Header ── */
.site-header { background: var(--bg); box-shadow: 0 1px 0 var(--line); }
.header-inner { gap: 16px; }
.brand { display: block; color: var(--ink); margin-right: auto; padding-block: 6px; }
.logo-svg { height: 34px; width: auto; }
.logo-svg [fill="#73C9E4"] { fill: var(--logo-blue); }
@media (min-width: 760px) { .logo-svg { height: 42px; } }

.mainnav { display: none; }
@media (min-width: 1180px) { .mainnav { display: block; } }
.mainnav .nav-links { display: flex; gap: 4px; font-size: 0.9375rem; font-weight: 600; }
.mainnav .nav-links > li { position: relative; }
.mainnav .nav-links > li > a { display: block; padding: 10px 10px; border-radius: var(--radius-sm); color: var(--muted-strong); }
.mainnav .nav-links > li > a:hover,
.mainnav .nav-links > li.is-active > a { color: var(--ink); }
.mainnav .nav-links > li.is-active > a { box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.subnav {
  position: absolute; left: 0; top: 100%; min-width: 260px; padding: 10px;
  background: var(--surface); border-radius: var(--radius-sm);
  box-shadow: 0 1px 0 var(--line), 0 18px 40px -18px var(--shadow-color);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out), visibility 0s linear 180ms;
}
.nav-links > li:hover > .subnav,
.nav-links > li:focus-within > .subnav { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.subnav a { display: block; padding: 9px 12px; border-radius: 6px; text-decoration: none; font-weight: 500; color: var(--muted-strong); }
.subnav a:hover, .subnav a[aria-current] { background: var(--surface-2); color: var(--ink); }

.header-actions { display: flex; align-items: center; gap: 8px; }
.button-small { min-height: 44px; padding: 10px 18px; font-size: 0.9375rem; }
.icon-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-width: 44px; min-height: 44px; padding: 0 10px; border-radius: var(--radius-button);
  border: 1.5px solid var(--line-strong); background: transparent; color: var(--ink); cursor: pointer;
  font-weight: 600; font-size: 0.9375rem;
}
.icon-button:hover { border-color: var(--ink); }
.js .theme-toggle[hidden] { display: inline-flex; }
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }


/* mobile menu: a <details>, works without scripts */
.mnav { position: static; }
.mnav > summary { list-style: none; }
.mnav > summary::-webkit-details-marker { display: none; }
.mnav-label { display: none; }
@media (min-width: 560px) { .mnav-label { display: inline; } }
@media (min-width: 1180px) { .mnav { display: none; } }
.mnav-dialog {
  position: fixed; inset: 0; margin: 0; padding: 0; border: 0;
  width: 100%; max-width: none; height: 100vh; height: 100dvh; max-height: none;
  background: var(--bg); color: var(--ink); overflow: hidden;
  opacity: 0; transform: translateY(-12px);
  transition: opacity 260ms var(--ease-out), transform 260ms var(--ease-out);
}
.mnav-dialog.is-open { opacity: 1; transform: none; }
.mnav-dialog::backdrop { background: var(--bg); }
.mnav-panel {
  position: fixed; inset: 0; width: 100%; height: 100vh; height: 100dvh;
  z-index: 1200; background: var(--bg); color: var(--ink);
  display: flex; flex-direction: column; overflow: hidden; text-align: left;
}
.mnav-dialog .mnav-panel { position: absolute; }
.mnav-top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  flex: none; border-bottom: 1px solid var(--line);
  padding: max(18px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) 18px max(20px, env(safe-area-inset-left));
}
.mnav-top h2 { font-family: var(--font-display); font-size: 1.75rem; font-weight: 600; }
.mnav-tools { display: flex; align-items: center; gap: 8px; }
.mnav-tools .lang-switch a { min-width: 44px; min-height: 44px; }
.mnav-scroll {
  flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  padding: 24px max(24px, env(safe-area-inset-right)) max(32px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
}
.mnav-order { margin-bottom: 32px; }
.mnav-links { display: grid; gap: 32px; }
@media (min-width: 700px) { .mnav-links { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 48px; } .mnav-scroll { padding-inline: max(40px, env(safe-area-inset-left)); } }
.mnav-group ul { margin-top: 8px; display: grid; }
.mnav-group a { display: flex; align-items: center; min-height: 52px; padding: 12px 0; text-decoration: none; font-size: 1.25rem; line-height: 1.3; font-weight: 600; border-bottom: 1px solid var(--line); }
.mnav-group a[aria-current] { color: var(--accent-text); }
.mnav-contact { display: grid; gap: 10px; margin-top: 36px; }
.mnav-contact a { display: inline-flex; min-height: 44px; gap: 10px; align-items: center; font-weight: 700; font-size: 1.125rem; text-decoration: none; color: var(--accent-text); overflow-wrap: anywhere; }
.mnav[open] > summary { position: fixed; top: max(18px, env(safe-area-inset-top)); right: max(20px, env(safe-area-inset-right)); z-index: 1300; background: var(--bg); }
.no-js .mnav-tools { padding-right: 48px; }
.no-js .site-header:has(.mnav[open]) { backdrop-filter: none; z-index: 1200; }
.no-js:has(.mnav[open]), .no-js:has(.mnav[open]) body { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .mnav-dialog { transition: none; transform: none; } }
@media print { .mnav-dialog { display: none !important; } }

/* ── Shared type bits ── */
.eyebrow { letter-spacing: var(--tr-eyebrow); }
.crumbs { display: flex; gap: 8px; flex-wrap: wrap; color: var(--muted); }
.crumbs a { color: var(--muted-strong); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.reg { font-size: 0.55em; vertical-align: 0.75em; font-weight: 500; letter-spacing: 0; }
.amber { color: var(--amber); }

/* ── Generated content pages ── */
.page-hero { padding-bottom: clamp(24px, 3vw, 40px); }
.page-title { font-size: clamp(2.1rem, 1.4rem + 3vw, 4.2rem); max-width: 22ch; }
.page-banner { height: clamp(150px, 20vw, 300px); overflow: hidden; background: var(--surface-2); }
.page-banner img { width: 100%; height: 100%; object-fit: cover; }
.article-section { padding-top: clamp(40px, 5vw, 72px); }
@media (min-width: 900px) {
  .article-grid { grid-template-columns: minmax(0, 3.2fr) minmax(0, 8.8fr); gap: clamp(40px, 5vw, 88px); }
}
.article-aside { display: grid; gap: 28px; align-content: start; }
.toc ol, .related ul { margin-top: 10px; display: grid; border-left: 2px solid var(--line); }
.toc a, .related a { display: block; padding: 6px 0 6px 14px; margin-left: -2px; border-left: 2px solid transparent; text-decoration: none; color: var(--muted-strong); font-size: var(--fs-small); line-height: 1.35; }
.toc a:hover, .related a:hover { color: var(--ink); border-left-color: var(--line-strong); }
.toc a.is-current, .related a[aria-current] { color: var(--accent-text); border-left-color: var(--accent); font-weight: 700; }
@media (max-width: 899px) {
  .toc { display: none; }
  .related ul { border-left: 0; display: flex; flex-wrap: wrap; gap: 8px; }
  .related a { border: 1px solid var(--line-strong); border-radius: 999px; padding: 8px 14px; margin: 0; min-height: 40px; display: inline-flex; align-items: center; }
  .related a[aria-current] { border-color: var(--accent); }
  .article-aside { order: 2; }
}

.prose-body { max-width: 74ch; font-size: 1.0625rem; line-height: 1.68; }
.prose-body > * + * { margin-top: 1rem; }
.prose-body h2 { font-family: var(--font-display); font-weight: var(--w-display); font-size: clamp(1.55rem, 1.2rem + 1.4vw, 2.35rem); line-height: 1.12; letter-spacing: var(--tr-h2); margin-top: clamp(2.4rem, 4vw, 3.4rem); text-wrap: balance; }
.prose-body > h2:first-child { margin-top: 0; }
.prose-body h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; line-height: 1.2; margin-top: 2rem; }
.prose-body h4 { font-size: 1.0625rem; font-weight: 700; margin-top: 1.6rem; }
.prose-body .kicker { font-size: var(--fs-micro); font-weight: 700; text-transform: uppercase; letter-spacing: var(--tr-eyebrow); color: var(--accent-text); margin-top: 2.4rem; }
.prose-body .kicker + h2 { margin-top: 0.4rem; }
.prose-body a:not(.text-link) { color: var(--accent-text); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.prose-body ul > li, .teaser-list li ul > li, .tick-list > li { position: relative; padding-left: 1.4em; }
.prose-body ul > li + li, .tick-list > li + li { margin-top: 0.4em; }
.prose-body ul > li::before, .tick-list > li::before { content: ""; position: absolute; left: 0.1em; top: 0.72em; width: 0.7em; height: 2px; background: var(--accent); }
.prose-body ol { counter-reset: n; }
.prose-body ol > li { counter-increment: n; position: relative; padding-left: 2em; }
.prose-body ol > li + li { margin-top: 0.5em; }
.prose-body ol > li::before { content: counter(n) "."; position: absolute; left: 0; font-weight: 700; color: var(--accent-text); font-variant-numeric: tabular-nums; }
.prose-body strong { font-weight: 700; color: var(--ink); }
.prose-body .figure { margin-block: 2rem; }
.prose-body .figure img { border-radius: var(--radius-sm); }
.prose-body .figure-wide img { width: 100%; max-height: 300px; object-fit: cover; }
.prose-body .more { margin-top: 0.6rem; }
.prose-body .faq { margin-top: 1.5rem; }
.prose-body .faq summary { font-size: 1.2rem; }
.prose-body table { width: 100%; border-collapse: collapse; font-size: var(--fs-small); }
.prose-body td, .prose-body th { border-top: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
:root[data-theme="dark"] .prose-body .figure img[src$=".png"],
:root[data-theme="dark"] .prose-body .figure img[src$=".webp"] { background: var(--paper); padding: 8px; }


.teaser-section { border-top: 1px solid var(--line); }
.teaser-list li { gap: 8px; }
.teaser-list p { color: var(--muted-strong); font-size: var(--fs-small); }
.teaser-list .text-link, .service-list .text-link { color: var(--accent-text); font-size: var(--fs-small); margin-top: 4px; }
.service-list p { color: var(--muted-strong); font-size: var(--fs-small); }

/* ── Order strip (ink band) ── */
.order-grid { display: grid; gap: 28px; }
@media (min-width: 900px) { .order-grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: end; } }
.order-grid .lead { margin-top: 16px; }
.order-strip .button-primary { background: var(--logo-blue); color: var(--on-logo-blue); }
.order-strip .button-quiet { color: var(--on-ink); }

/* ── Home hero ── */
.home-hero { min-height: min(86svh, 820px); padding-block: clamp(32px, 6vw, 88px); background: linear-gradient(180deg, var(--bg) 0%, var(--surface-2) 100%); }
.home-hero .hero-inner { align-items: center; }
.home-hero h1 { max-width: 13ch; }
.home-hero h1 .line2 { display: block; color: var(--accent-text); }
.hero-tagline { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.15rem, 1rem + 0.8vw, 1.6rem); color: var(--ink); }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 8px; padding-top: 18px; border-top: 1px solid var(--line-strong); font-size: var(--fs-small); color: var(--muted-strong); }
.hero-facts strong { display: block; font-family: var(--font-display); font-size: 1.25rem; color: var(--ink); font-weight: 600; }
.hero-vials { position: relative; display: grid; place-items: center; min-height: 320px; }
.hero-vials img { position: relative; width: min(100%, 520px); height: auto; aspect-ratio: 3 / 2; object-fit: contain; }

.hero-vials { min-height: 0; }

/* audience list on home */
.who-grid { display: grid; gap: clamp(28px, 4vw, 72px); }
@media (min-width: 900px) { .who-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.who-list { counter-reset: w; border-top: 2px solid var(--ink); }
.who-list li { counter-increment: w; display: grid; grid-template-columns: 3rem 1fr; gap: 12px; padding-block: 14px; border-bottom: 1px solid var(--line); font-size: 1.125rem; line-height: 1.45; }
.who-list li::before { content: counter(w, decimal-leading-zero); font-family: var(--font-display); font-weight: 600; color: var(--accent-text); }
.callout-note { margin-top: 28px; }
.callout-note a { color: var(--accent-text); font-weight: 700; }

/* benefit fields */
.benefit-fields .field h3 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); line-height: 1.15; }
.benefit-fields .field ul { display: grid; gap: 8px; }
.benefit-fields .field p { max-width: 52ch; }
.big-num { font-family: var(--font-display); font-weight: 600; font-size: clamp(3.4rem, 2rem + 6vw, 7rem); line-height: 0.9; letter-spacing: -0.02em; }
.field-3 .tick-list > li::before { background: var(--logo-blue); }
.field-img { justify-self: center; max-height: 260px; width: auto; object-fit: contain; }

/* topic index on home */
.topic-index { display: grid; gap: 0 clamp(24px, 4vw, 64px); }
@media (min-width: 900px) { .topic-index { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.topic-index a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 20px; padding-block: 22px; border-top: 1px solid var(--line-strong); text-decoration: none; }
.topic-index a:hover h3 { color: var(--accent-text); }
.topic-index h3 { font-family: var(--font-display); font-size: 1.45rem; font-weight: 600; line-height: 1.2; transition: color 160ms; }
.topic-index p { grid-column: 1 / -1; color: var(--muted-strong); font-size: var(--fs-small); max-width: 60ch; }
.topic-index .go { align-self: center; color: var(--accent-text); font-size: var(--fs-small); font-weight: 700; white-space: nowrap; }

/* ── Comparison (reproduces the client's "Idealtherapie" chart) ── */
.compare-section { background: var(--surface); }
.compare-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: end; gap: clamp(16px, 3vw, 40px); margin-bottom: clamp(28px, 4vw, 48px); }
.compare-head h2 { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.8rem, 1.1rem + 3vw, 3.6rem); line-height: 1.05; letter-spacing: -0.01em; text-align: center; }
.compare-head .compare-sub { text-align: center; font-weight: 700; font-size: clamp(1rem, 0.9rem + 0.5vw, 1.35rem); margin-top: 6px; }
.compare-vial { width: clamp(64px, 9vw, 130px); height: auto; aspect-ratio: 1; object-fit: contain; }
.compare-generic { width: clamp(56px, 8vw, 116px); color: var(--line-strong); }
.compare { width: 100%; border-collapse: separate; border-spacing: 0 12px; }
.compare thead th { padding: 0 0 4px; font-weight: 400; vertical-align: bottom; }
.compare .h-eum, .compare .h-riv { font-family: var(--font-display); font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.3rem); font-weight: 500; }
.compare .h-eum { color: var(--accent-text); text-align: left; }
.compare .h-riv { color: var(--rival); text-align: right; }
.compare .h-row { display: flex; align-items: center; gap: 16px; justify-content: space-between; }
.compare .h-riv .h-row { flex-direction: row-reverse; }
.stars { display: inline-flex; gap: 2px; padding: 3px 8px; border: 1.5px solid currentColor; border-radius: 4px; }
.stars svg { width: 14px; height: 14px; }
.compare .h-crit svg { width: 34px; height: 34px; margin-inline: auto; color: var(--ink); }
.compare td, .compare tbody th { padding: 0; vertical-align: middle; }
.compare tbody th { width: 9.5rem; padding-inline: 18px; text-align: center; font-size: 0.8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; line-height: 1.25; hyphens: manual; }
.bar {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px;
  min-height: 62px; padding: 10px 34px 10px 18px; color: var(--bar-ink); line-height: 1.3; font-size: 1rem;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 50%, calc(100% - 18px) 100%, 0 100%);
  isolation: isolate;
}
.bar::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--bar-from), var(--bar-to)); transform-origin: left; }
.bar strong { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.4rem, 1.1rem + 0.8vw, 1.85rem); white-space: nowrap; color: var(--bar-ink); }
.js .compare.reveal .bar::before { transform: scaleX(0.04); transition: transform 900ms var(--ease-out) var(--d, 0ms); }
.js .compare.reveal.is-visible .bar::before { transform: none; }
.riv { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: stretch; min-height: 62px; }
.riv .q {
  display: grid; place-items: center; width: 92px; color: var(--on-rival); font-size: 1.35rem; font-weight: 500;
  background: linear-gradient(90deg, var(--rival-fill), color-mix(in srgb, var(--rival-fill) 55%, var(--rival-soft)));
  clip-path: polygon(18px 0, 100% 0, 100% 100%, 18px 100%, 0 50%);
}
.riv .t { display: flex; align-items: center; justify-content: flex-end; text-align: right; padding: 10px 18px; background: var(--rival-soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--ink); line-height: 1.3; }
.compare tbody tr { transition: opacity 200ms; }
.compare tbody:hover tr:not(:hover) { opacity: 0.55; }
.compare-foot { text-align: right; margin-top: 8px; }
.compare-note { margin-top: 20px; max-width: 70ch; }
@media (max-width: 859px) {
  .compare-head { grid-template-columns: auto minmax(0, 1fr); }
  .compare-head h2, .compare-head .compare-sub { text-align: left; }
  .compare-generic { display: none; }
  .compare, .compare tbody, .compare tr, .compare td, .compare tbody th { display: block; }
  .compare thead { display: block; }
  .compare thead tr { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .compare thead .h-crit { display: none; }
  .compare .h-row { flex-direction: column; align-items: flex-start; gap: 6px; }
  .compare .h-riv .h-row { flex-direction: column; align-items: flex-end; }
  .compare { border-spacing: 0; }
  .compare tbody tr { display: grid; gap: 6px; padding-block: 16px; border-top: 1px solid var(--line); }
  .compare tbody th { order: -1; width: auto; padding: 0; text-align: left; color: var(--muted); }
  .bar { min-height: 56px; font-size: 0.975rem; }
  .riv { min-height: 52px; }
  .riv .q { width: 60px; font-size: 1.15rem; }
  .riv .t { font-size: 0.975rem; }
}

/* ── Product label cards ── */
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.no-js .filter-bar { display: none; }
.chip { min-height: 44px; padding: 8px 18px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: transparent; font-weight: 600; cursor: pointer; color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.chip .count { font-weight: 400; opacity: 0.7; margin-left: 4px; }
.products { display: grid; gap: clamp(16px, 2vw, 24px); }
@media (min-width: 760px) { .products { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1180px) { .products { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.product { display: grid; grid-template-rows: auto 1fr; border-radius: var(--radius); background: var(--surface); overflow: hidden; box-shadow: 0 1px 0 var(--line), 0 24px 48px -36px var(--shadow-color); transition: transform 240ms var(--ease-out), box-shadow 240ms var(--ease-out); }
.product:hover { transform: translateY(-3px); box-shadow: 0 1px 0 var(--line), 0 30px 60px -34px var(--shadow-color); }
.product[hidden] { display: none; }
.product.is-featured { border-top: 0; }
.product-media { position: relative; display: grid; place-items: center; height: 250px; background: radial-gradient(circle at 50% 60%, var(--field-2), var(--surface-2) 72%); overflow: hidden; }
.product-media img { height: 250px; max-height: 250px; min-height: 0; width: 100%; object-fit: contain; transition: transform 400ms var(--ease-out); }
.product:hover .product-media img { transform: scale(1.04) rotate(-1deg); }
.product-media .typo { font-family: var(--font-display); font-weight: 600; font-size: 3.6rem; line-height: 0.95; color: var(--amber); text-align: center; }
.product-media .typo small { display: block; font-size: 1rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-strong); margin-top: 8px; }
.product-tag { position: absolute; z-index: 2; left: 14px; top: 14px; padding: 4px 10px; border-radius: 999px; background: var(--surface); font-size: var(--fs-micro); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-text); }
.product-label { position: relative; display: grid; align-content: start; gap: 14px; padding: 22px 22px 22px; border-top: 6px solid var(--logo-blue); }
.product-kicker { font-size: var(--fs-micro); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.product h3 { font-family: var(--font-display); font-size: 1.45rem; font-weight: 600; line-height: 1.15; }
.product h3 a { text-decoration: none; }
.product h3 a:hover { text-decoration: underline; }
.product-facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; gap: 4px 12px; padding-block: 12px; border-block: 1px solid var(--line); }
.product-facts dt { font-size: var(--fs-micro); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 700; }
.product-facts dd { font-variant-numeric: tabular-nums; font-weight: 600; }
.product-facts .price { font-family: var(--font-display); font-size: 1.5rem; line-height: 1.1; color: var(--ink); }
.product-facts > div:last-child { text-align: right; }
.product-sum { color: var(--muted-strong); font-size: 0.975rem; }
.uses { display: flex; flex-wrap: wrap; gap: 6px; }
.uses li { padding: 4px 10px; border-radius: 999px; background: var(--accent-soft); font-size: 0.8125rem; color: var(--ink); }
.product details { border-top: 1px solid var(--line); }
.product details:last-of-type { border-bottom: 1px solid var(--line); }
.product summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; padding-block: 12px; font-weight: 700; min-height: 44px; align-items: center; }
.product summary::-webkit-details-marker { display: none; }
.product summary::after { content: "+"; font-weight: 400; font-size: 1.3rem; line-height: 1; transition: transform 200ms var(--ease-out); }
.product details[open] summary::after { transform: rotate(45deg); }
.product details > div { padding-bottom: 14px; font-size: 0.9375rem; color: var(--muted-strong); }
.product details .comp + .comp { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line-strong); }
.product details .comp b { color: var(--ink); display: block; }
.variant { display: flex; flex-wrap: wrap; gap: 6px; }
.variant button { min-height: 40px; padding: 6px 14px; border-radius: var(--radius-sm); border: 1.5px solid var(--line-strong); background: transparent; font-weight: 700; cursor: pointer; color: var(--ink); font-variant-numeric: tabular-nums; }
.variant button[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.buy { display: none; grid-template-columns: auto 1fr; gap: 10px; margin-top: 4px; }
.js .buy { display: grid; }
.qty { display: inline-grid; grid-template-columns: 44px 3ch 44px; align-items: center; border: 1.5px solid var(--line-strong); border-radius: var(--radius-button); }
.qty button { min-height: 44px; border: 0; background: transparent; font-size: 1.25rem; cursor: pointer; color: var(--ink); }
.qty output { text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.buy .button { min-height: 48px; padding-inline: 14px; }
.buy .button.is-added { background: var(--ink); color: var(--bg); }
.order-by-phone { font-size: var(--fs-small); color: var(--muted); }
.js .order-by-phone { display: none; }

/* order list */
.cart { display: grid; gap: 24px; }
@media (min-width: 980px) { .cart { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: start; } }
.cart-table td .remove { border: 0; background: none; color: var(--muted); cursor: pointer; text-decoration: underline; padding: 6px 0; min-height: 36px; font-size: var(--fs-small); }
.cart-table tfoot td { font-weight: 700; font-size: 1.125rem; border-top: 2px solid var(--ink); }
.cart-empty { color: var(--muted); }
.cart-side { display: grid; gap: 16px; }
.cartbar { position: fixed; left: 50%; bottom: 16px; z-index: 40; transform: translate(-50%, 140%); display: flex; align-items: center; gap: 14px; padding: 8px 8px 8px 18px; border-radius: 999px; background: var(--ink); color: var(--bg); box-shadow: 0 20px 40px -18px var(--shadow-color); transition: transform 320ms var(--ease-out); font-weight: 600; white-space: nowrap; }
.cartbar.is-on { transform: translate(-50%, 0); }
.cartbar a { background: var(--logo-blue); color: var(--on-logo-blue); border-radius: 999px; padding: 10px 16px; text-decoration: none; font-weight: 700; }

/* product detail page */
.pd-hero { background: var(--surface-2); padding-block: clamp(32px, 5vw, 72px); }
.pd-hero .hero-inner { align-items: center; }
.pd-hero h1 { font-size: clamp(2.3rem, 1.4rem + 3.8vw, 4.6rem); max-width: 16ch; }
.pd-media { position: relative; display: grid; place-items: center; min-height: 380px; }
.pd-media::before { content: ""; position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, var(--field-2) 0%, transparent 70%); }
.pd-media img { position: relative; max-height: 440px; width: auto; object-fit: contain; }
.spec { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; margin-top: 8px; border-top: 2px solid var(--ink); }
.spec > div { padding-block: 12px; border-bottom: 1px solid var(--line-strong); }
.spec dt { font-size: var(--fs-micro); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.spec dd { font-weight: 600; font-size: 1.0625rem; }
.spec .price { font-family: var(--font-display); font-size: 2rem; line-height: 1.1; }
.mechanism { display: grid; gap: 0; counter-reset: m; }
@media (min-width: 900px) { .mechanism { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; } }
.mechanism li { counter-increment: m; padding-block: 20px; border-top: 2px solid var(--on-ink); display: grid; gap: 10px; align-content: start; }
.mechanism li::before { content: counter(m, decimal-leading-zero); font-family: var(--font-display); font-size: 2.6rem; line-height: 1; color: var(--logo-blue); font-weight: 600; }
.mechanism h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.4rem; }
.mechanism p { color: var(--on-ink-muted); }
.halftime { display: flex; align-items: baseline; gap: 10px; margin-top: 8px; }
.halftime .big-num { color: var(--logo-blue); }
.reasons > li { grid-template-columns: 5.5rem minmax(0, 1fr); }
@media (min-width: 760px) { .reasons > li { grid-template-columns: 5.5rem minmax(0, 0.95fr) minmax(0, 1.25fr); } }
.reasons q { font-family: var(--font-display); font-size: 1.3rem; line-height: 1.3; font-weight: 500; quotes: "„" "“"; }
.reasons p { color: var(--muted-strong); }
.two-col-list { columns: 2 18rem; column-gap: 40px; }
.two-col-list li { break-inside: avoid; }

/* kaufen */
.contact-big a { display: block; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.6rem); line-height: 1.15; text-decoration: none; color: var(--accent-text); }
.contact-big a:hover { text-decoration: underline; }
.doc-list { display: grid; gap: 20px; }
@media (min-width: 700px) { .doc-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.doc-list a { display: grid; gap: 12px; text-decoration: none; }
.doc-list img { border-radius: var(--radius-sm); box-shadow: 0 1px 0 var(--line), 0 18px 30px -24px var(--shadow-color); aspect-ratio: 3 / 4; object-fit: cover; object-position: top; background: var(--paper); }
.doc-list span { font-weight: 700; }
.doc-list small { color: var(--muted); display: block; font-weight: 400; }
.price-board td:first-child { font-variant-numeric: tabular-nums; color: var(--muted); white-space: nowrap; }
.price-board .group th { background: var(--surface-2); font-size: var(--fs-small); text-transform: none; letter-spacing: 0; color: var(--ink); font-weight: 700; }
.price-board td small { display: block; color: var(--muted); }
@media screen and (max-width: 759px) {
  .price-board, .cart-table { display: block; width: 100%; overflow: visible; }
  .price-board thead, .cart-table thead { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .price-board tbody, .cart-table tbody, .cart-table tfoot { display: block; }
  .price-board tr, .cart-table tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: 16px; gap: 8px 16px; border-top: 1px solid var(--line); }
  .price-board td, .price-board th, .cart-table td { display: block; min-width: 0; padding: 0; border: 0; overflow-wrap: anywhere; font-size: 1rem; }
  .price-board td:first-child, .price-board td:nth-child(2), .price-board .group th, .cart-table tbody td:first-child { grid-column: 1 / -1; }
  .price-board td:first-child { font-size: var(--fs-small); white-space: normal; }
  .price-board td:first-child::before { content: attr(data-label) ": "; }
  .price-board td.num-cell, .cart-table td.num-cell { white-space: normal; text-align: left; }
  .price-board td:last-child { text-align: right; font-weight: 700; }
  .price-board td.num-cell::before, .cart-table td[data-label]::before { content: attr(data-label); display: block; color: var(--muted); font-size: var(--fs-micro); font-weight: 600; letter-spacing: var(--tr-eyebrow); text-transform: var(--case-eyebrow); }
  .price-board td small { margin-top: 8px; font-size: 1rem; }
  .price-board tr.group { background: var(--surface-2); }
  .price-board .group th { font-size: 1rem; }
  .cart-table tbody td:last-child:not(:first-child) { grid-column: 1 / -1; }
  .cart-table td.cart-empty { grid-column: 1 / -1; }
  .cart-table td .remove { min-height: 44px; }
  .cart-table tfoot td { border: 0; font-size: 1rem; }
  .cart-table tfoot td:first-child { grid-column: 1 / -1; }
  .cart-table tfoot td:empty { display: none; }
  .cart-table tfoot td[data-cart-total] { grid-column: 2; text-align: right; }
}

/* footer */
.footer-top { display: grid; gap: 20px; padding-bottom: 36px; margin-bottom: 36px; border-bottom: 1px solid var(--line-strong); }
@media (min-width: 900px) { .footer-top { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 56px; } }
.footer-brand { color: var(--ink); }
.footer-brand .logo-svg { height: 46px; }
.footer-claim { max-width: 62ch; color: var(--muted-strong); font-size: 1rem; }
.footer-cols li { line-height: 1.5; }
.footer-legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); }

@media (prefers-reduced-motion: reduce) {
  .product:hover, .product:hover .product-media img { transform: none; }
  .js .compare.reveal .bar::before { transform: none; }
}
@media print {
  .filter-bar, .buy, .cartbar, .theme-toggle, .mnav { display: none !important; }
}

/* ── Language switcher ── */
.lang-switch { display: inline-flex; border: 1.5px solid var(--line-strong); border-radius: var(--radius-button); overflow: hidden; }
.lang-switch a { display: inline-grid; place-items: center; min-width: 44px; min-height: 41px; padding: 0 8px; text-decoration: none; font-weight: 700; font-size: 0.8125rem; letter-spacing: 0.06em; color: var(--muted-strong); }
.lang-switch a + a { border-left: 1.5px solid var(--line-strong); }
.lang-switch a[aria-current] { background: var(--ink); color: var(--bg); }
.lang-switch a:not([aria-current]):hover { color: var(--ink); background: var(--surface-2); }
@media (max-width: 400px) { .lang-switch a { min-width: 38px; padding: 0 4px; } .header-actions { gap: 6px; } .button-small { padding-inline: 12px; } }
.lang-note { width: var(--shell); margin: 12px auto 0; color: var(--muted); }

/* ── Success line (from the client's "Therapieerfolge" graphic) ── */
.success-line { display: grid; gap: 16px 40px; align-items: center; }
@media (min-width: 900px) { .success-line { grid-template-columns: auto auto minmax(0, 1fr); } }
.success-in { display: grid; gap: 4px; font-weight: 600; color: var(--on-ink-muted); }
.success-in li { display: flex; gap: 10px; align-items: center; }
.success-in li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--logo-blue); }
.success-num .big-num { color: var(--logo-blue); }
.success-num { display: flex; align-items: center; gap: 24px; }
.success-num::after { content: ""; width: 0; height: 0; border-block: 22px solid transparent; border-left: 26px solid var(--logo-blue); }
.success-out { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.5rem); line-height: 1.15; color: var(--on-ink); }

/* ── Section variants ── */
.adv-list > li { gap: 8px; }
.adv-list p { font-size: 1.0625rem; font-weight: 600; line-height: 1.4; color: var(--ink); }
.adv-list .label { color: var(--accent-text); }
.nutzen-list { display: grid; gap: 0; }
.nutzen-list > li { padding-block: 12px 12px; padding-left: 1.6em; border-top: 1px solid var(--line-strong); }
.nutzen-list > li + li { margin-top: 0; }
.nutzen-list > li::before { top: 1.45em; }
.nutzen-list a { color: var(--accent-text); }
.products-mini { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.product-mini .product-media { height: 210px; }
.product-mini .product-media img { height: 210px; max-height: 210px; }
.product-mini h3 { font-size: 1.25rem; }
.chart-figure { background: var(--paper); padding: 12px; }
.chart-figure figcaption { padding: 0 4px 2px; color: var(--muted-on-paper); }
.buy-steps > li { grid-template-columns: 4rem minmax(0, 1fr); }
@media (min-width: 760px) { .buy-steps > li { grid-template-columns: 4rem minmax(0, 0.6fr) minmax(0, 1.4fr); } }
.tick-list > li { position: relative; padding-left: 1.4em; }

/* review fixes */
.product-tag { z-index: 2; }
.product-media img { position: relative; z-index: 1; }
.product-facts dd { white-space: nowrap; }
.product-mini .product-facts { grid-template-columns: auto auto; }
.product-mini .product-facts > div:last-child { grid-column: 1 / -1; text-align: left; display: flex; justify-content: space-between; align-items: baseline; padding-top: 6px; border-top: 1px dashed var(--line); }
#effektiv-title, #meilenstein-title, #sortiment-title { font-size: clamp(1.8rem, 1.2rem + 1.9vw, 2.9rem); }
.product-label { display: flex; flex-direction: column; gap: 14px; }
.product-label > .buy { margin-top: auto; padding-top: 6px; }
.product-label > .text-link { color: var(--accent-text); font-size: var(--fs-small); }
.chart-figure img { height: auto; object-fit: contain; }
.reasons q:lang(en) { quotes: "“" "”"; }
@media (max-width: 699px) { .adv-list > li { padding-block: 14px 16px; } }

/* Brief brand introduction. Inactive unless the head script opts in. */
.site-intro { display: none; }
@media screen {
  .intro-loading .site-intro {
    display: grid; place-items: center; position: fixed; inset: 0; z-index: 1000;
    padding: 24px; background: var(--bg); color: var(--ink); pointer-events: none;
    transition: opacity 900ms var(--ease-out);
    animation: intro-safety 6500ms step-end forwards;
  }
  .intro-brand { text-align: center; width: min(100%, 340px); }
  .intro-brand .logo-svg { width: 100%; height: auto; }
  .intro-brand p { margin: 24px 0 28px; font-size: 1.125rem; color: var(--muted-strong); }
  .intro-line { display: block; margin: auto; width: 48px; height: 2px; background: var(--logo-blue); transform-origin: center; animation: intro-breathe 1100ms ease-in-out 2; }
  .intro-leaving .site-intro { opacity: 0; }
}
@keyframes intro-breathe { 0%, 100% { transform: scaleX(.55); opacity: .5; } 50% { transform: scaleX(1); opacity: 1; } }
@keyframes intro-safety { to { visibility: hidden; } }
@media (prefers-reduced-motion: reduce) {
  .intro-loading .site-intro { transition: none; }
  .intro-line { animation: none; }
}

/* A generated counter is a grid item too. Stack numbered prose on phones
   so later paragraphs cannot auto-place into a narrow counter track. */
@media (max-width: 759px) {
  .index-list > li, .who-list > li { grid-template-columns: minmax(0, 1fr); }
  .index-list > li > *, .index-list > li::before,
  .who-list > li > *, .who-list > li::before { grid-column: 1 / -1; min-width: 0; }
}

/* Proposed hero ingredient card (replaces .hero-note). Tokens from theme.css. */
.ingredient-card { position: relative; justify-self: end; margin-top: -20px; width: min(22rem, 100%);
  display: grid; gap: 6px; padding: 18px 20px 16px 24px; color: var(--ink);
  background: color-mix(in srgb, var(--surface) 80%, transparent); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border: 1px solid color-mix(in srgb, var(--ink) 8%, transparent); border-radius: var(--radius);
  box-shadow: 0 24px 48px -28px var(--shadow-color); transition: transform .25s ease, box-shadow .25s ease; }
.ingredient-card::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 3px; border-radius: 0 3px 3px 0; background: var(--logo-blue); transition: top .25s ease, bottom .25s ease; }
.ingredient-card > p { margin: 0; }
.ic-kicker { font-size: .8125rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-text); }
.ic-title { font-family: var(--font-display); font-weight: 600; font-size: 1.625rem; line-height: 1.05; letter-spacing: -.01em; }
.ic-origin { font-size: .9375rem; color: var(--muted); }
.ingredient-card .ic-body { margin-top: 6px; padding-top: 10px; border-top: 1px solid color-mix(in srgb, var(--ink) 12%, transparent); font-size: 1rem; line-height: 1.4; }
.ic-link { justify-self: start; margin-top: 4px; min-height: 44px; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--accent-text); text-decoration: none; }
.ic-link span { transition: transform .25s ease; }
.ingredient-card:hover, .ingredient-card:focus-within, .ingredient-card.is-hover { transform: translateY(-4px); box-shadow: 0 32px 60px -28px var(--shadow-color); }
.ingredient-card:hover::before, .ingredient-card:focus-within::before, .ingredient-card.is-hover::before { top: 0; bottom: 0; }
.ingredient-card:hover .ic-link span, .ingredient-card:focus-within .ic-link span, .ingredient-card.is-hover .ic-link span { transform: translateX(4px); }
@media (prefers-reduced-motion: reduce) { .ingredient-card, .ingredient-card::before, .ic-link span { transition: none; } .ingredient-card:hover, .ingredient-card:focus-within, .ingredient-card.is-hover, .ingredient-card:hover .ic-link span, .ingredient-card:focus-within .ic-link span { transform: none; } }
@media (max-width: 899px) { .ingredient-card { position: relative; width: auto; margin: -20px 0 0; width: min(22rem, 100%); } }
