/* Nova Peptid — content blocks.
 *
 * Added when the pages were rebuilt from "heading plus cards" into real pages. Every rule here
 * belongs to a block in app/lib/blocks.mjs. The 12 degree cut from the logo is still spent only on
 * things that are not text: the jump nav's marker, a table caption's bar, a reference's number,
 * the bar that grows on a card. Tables and paragraphs stay square.
 *
 * House rule: no em dashes.
 */

/* ---------------------------------------------- the trust row */
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}
.facts__i { background: var(--card); padding: 16px 18px; display: grid; gap: 2px; }
.facts__i b { font-family: var(--mono); font-size: 19px; font-weight: 500; letter-spacing: -0.01em; }
.facts__i span { font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.band--ink .facts { background: color-mix(in srgb, var(--paper) 18%, transparent); border-color: color-mix(in srgb, var(--paper) 18%, transparent); }
.band--ink .facts__i { background: var(--ink); }

/* ---------------------------------------------- "Auf dieser Seite" */
.jump {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  padding: 14px 0;
  border-block: 1px solid var(--line);
}
.jump__t {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 9px;
}
.jump__t::before { content: ''; width: 9px; height: 1em; background: var(--signal); transform: skewX(var(--cut)); }
.jump a { font-size: 14px; font-weight: 600; border-bottom: 2px solid transparent; }
.jump a:hover { border-bottom-color: var(--signal); }

/* ---------------------------------------------- data tables */
.tw { margin-block: 4px 8px; }
table.data {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}
table.data caption {
  text-align: start;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 9px;
}
table.data caption::before {
  content: '';
  width: 9px;
  height: 1em;
  background: var(--signal);
  transform: skewX(var(--cut));
  flex: none;
}
table.data th, table.data td {
  text-align: start;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
  vertical-align: top;
}
table.data thead th {
  background: color-mix(in srgb, var(--ink) 5%, transparent);
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}
table.data tbody th { font-weight: 650; }
table.data td.n, table.data th.n { font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
table.data tbody tr:last-child th, table.data tbody tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover { background: color-mix(in srgb, var(--signal) 4%, transparent); }
table.data a { border-bottom: 1.5px solid var(--signal); }
.tnote { font-size: 13px; color: var(--muted); margin-top: 10px; max-width: 74ch; line-height: 1.55; }
.tnote a { border-bottom: 1px solid var(--signal); }

/* A table of prices on a phone is a table nobody reads sideways, so each row becomes a block and
   the column name is carried on the cell. */
@media (max-width: 620px) {
  table.data thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  table.data tbody tr { display: block; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
  table.data tbody th, table.data tbody td { display: block; border-bottom: 0; padding: 3px 14px; }
  table.data tbody th { padding-top: 14px; font-size: 16px; }
  table.data tbody td::before {
    content: attr(data-l);
    font-family: var(--mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--muted);
    display: block;
  }
}

/* ---------------------------------------------- references */
ol.refs { list-style: none; padding: 0; counter-reset: r; }
ol.refs li {
  counter-increment: r;
  padding: 13px 0 13px 40px;
  border-bottom: 1px solid var(--line);
  position: relative;
  font-size: 14.5px;
  line-height: 1.5;
}
ol.refs li::before {
  content: counter(r);
  position: absolute;
  inset-inline-start: 0;
  top: 13px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--paper);
  background: var(--ink);
  width: 24px;
  height: 22px;
  display: grid;
  place-items: center;
  transform: skewX(var(--cut));
}
.refs__t { font-weight: 600; display: block; }
.refs__m { font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.refs__l { font-family: var(--mono); font-size: 12px; margin-inline-start: 10px; border-bottom: 1px solid var(--signal); white-space: nowrap; }

/* "Was diese Studien nicht zeigen" */
.counter {
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r);
  padding: 16px 18px;
  margin-top: 18px;
  font-size: 14.5px;
  max-width: 78ch;
}
.counter b { display: block; margin-bottom: 6px; }

/* ---------------------------------------------- where to go next */
.rel { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.rel__i {
  display: grid;
  gap: 3px;
  padding: 14px 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  transition: border-color 0.15s;
}
.rel__i:hover { border-color: var(--ink); }
.rel__i b { font-size: 15px; letter-spacing: -0.01em; }
.rel__i span { font-family: var(--mono); font-size: 12px; color: var(--muted); }

/* ---------------------------------------------- A to Z index */
.az { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.az__g h3 {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--signal);
  border-bottom: 1px solid var(--line);
  padding-bottom: 5px;
  margin-bottom: 7px;
}
.az__g a { display: block; font-size: 14.5px; padding: 2px 0; }
.az__g a:hover { color: var(--signal); }

/* ---------------------------------------------- the filter bar */
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 16px 0 6px; }
.filters__chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  font-family: var(--mono);
  font-size: 12.5px;
  padding: 8px 14px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r);
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition: background 0.14s, color 0.14s, border-color 0.14s;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.filters select {
  font-family: var(--mono);
  font-size: 12.5px;
  padding: 8px 12px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r);
  background: var(--card);
}
.filters__n { font-family: var(--mono); font-size: 12.5px; color: var(--muted); margin-inline-start: auto; }
.empty { padding: 40px 0; color: var(--muted); font-size: 15px; }

/* ---------------------------------------------- the compound card */
.ccard {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  transition: border-color 0.15s;
}
.ccard:hover { border-color: var(--line-strong); }
.ccard::after {
  content: '';
  position: absolute;
  top: 0;
  inset-inline-start: 0;
  width: 8px;
  height: 0;
  background: var(--signal);
  transform: skewX(var(--cut));
  transform-origin: top;
  transition: height 0.2s ease;
}
.ccard:hover::after { height: 100%; }
.ccard__img {
  aspect-ratio: 1;
  background: color-mix(in srgb, var(--ink) 4%, transparent);
  display: grid;
  place-items: center;
  padding: 7%;
  position: relative;
}
.ccard__forms { position: absolute; top: 10px; inset-inline-end: 10px; display: flex; gap: 4px; }
.ccard__b { padding: 15px 17px 17px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.ccard__n { font-weight: 700; font-size: 17px; line-height: 1.2; letter-spacing: -0.015em; }
.ccard__c { font-size: 13.5px; color: var(--muted); line-height: 1.4; }
.ccard__s { font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.ccard__f { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; padding-top: 4px; }
.ccard__p b { font-family: var(--mono); font-size: 18px; font-weight: 500; display: block; }
.ccard__p span { font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.ccard__cta { font-size: 13px; font-weight: 700; border-bottom: 2px solid var(--signal); white-space: nowrap; }

/* ---------------------------------------------- the size chooser */
.picker { display: flex; flex-wrap: wrap; gap: 9px; }
.picker a {
  display: grid;
  gap: 1px;
  min-width: 104px;
  padding: 11px 15px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r);
  transition: border-color 0.14s, background 0.14s;
}
.picker a:hover { border-color: var(--ink); background: color-mix(in srgb, var(--ink) 4%, transparent); }
.picker b { font-family: var(--mono); font-size: 15px; font-weight: 500; }
.picker em { font-family: var(--mono); font-size: 11.5px; font-style: normal; color: var(--muted); }

/* ---------------------------------------------- what is in a blend */
.invial { display: flex; height: 34px; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); }
.invial a {
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--paper);
  background: var(--ink);
  border-inline-end: 1px solid var(--paper);
  overflow: hidden;
  white-space: nowrap;
}
.invial a:nth-child(2) { background: var(--signal); }
.invial a:nth-child(3) { background: color-mix(in srgb, var(--ink) 62%, var(--paper)); }
.invial a:last-child { border-inline-end: 0; }

/* ---------------------------------------------- wird oft zusammen gekauft */
.fbt { border: 1px solid var(--line); border-radius: var(--r); background: var(--card); }
.fbt__list { display: grid; }
.fbt__i { display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center;
  padding: 12px 14px; border-bottom: 1px solid var(--line); }
.fbt__i:last-child { border-bottom: 0; }
.fbt__im { background: color-mix(in srgb, var(--ink) 4%, transparent); border-radius: var(--r); padding: 4px; }
.fbt__t b { font-size: 14.5px; font-weight: 650; display: block; line-height: 1.25; }
.fbt__t a:hover b { color: var(--signal); }
.fbt__t span { font-size: 12.5px; color: var(--muted); line-height: 1.35; display: block; margin-top: 2px; }
.fbt__a { display: grid; gap: 6px; justify-items: end; }
.fbt__a .mono { font-size: 14px; white-space: nowrap; }
.fbt__b { padding: 7px 14px; font-size: 12.5px; }
.fbt__b::after { inset-inline-end: -7px; width: 4px; }
.fbt__b:hover::after { width: 8px; inset-inline-end: -11px; }

/* ---------------------------------------------- the reconstitution calculator */
.calc { display: grid; gap: 22px; grid-template-columns: minmax(0,0.95fr) minmax(0,1.05fr); align-items: start; }
@media (max-width: 820px) { .calc { grid-template-columns: 1fr; } }
.calc__in { display: grid; gap: 14px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r); padding: 20px; }
.calc__f { display: grid; gap: 5px; }
.calc__f label { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted); }
.calc__r { display: flex; gap: 8px; }
.calc__in input, .calc__in select { width: 100%; font-family: var(--mono); font-size: 16px;
  padding: 11px 13px; border: 1.5px solid var(--line-strong); border-radius: var(--r);
  background: var(--paper); color: var(--ink); }
.calc__in input:focus-visible, .calc__in select:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; border-color: var(--ink); }
.calc__in select { width: auto; flex: none; }
.calc__hint { font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.calc__out { display: grid; gap: 14px; }
.calc__big { background: var(--ink); color: var(--paper); border-radius: var(--r); padding: 22px 24px; position: relative; overflow: hidden; }
.calc__big::before { content: ""; position: absolute; top: 0; inset-inline-end: -14px; width: 26px;
  height: 100%; background: var(--signal); transform: skewX(var(--cut)); }
.calc__big span { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.1em;
  text-transform: uppercase; color: color-mix(in srgb, var(--paper) 62%, transparent); display: block; }
.calc__big b { font-family: var(--mono); font-size: clamp(30px, 5vw, 44px); font-weight: 500;
  letter-spacing: -0.02em; display: block; margin-top: 4px; }
.calc__big em { font-family: var(--mono); font-style: normal; font-size: 13px;
  color: color-mix(in srgb, var(--paper) 70%, transparent); display: block; margin-top: 6px; }
.calc__err { color: #c62828; font-size: 13.5px; }
@media (prefers-color-scheme: dark) { .calc__err { color: #ff8a80; } }

/* ---------------------------------------------- a call to action that is not a footnote */
/* An inline link inside a grey note is the easiest thing on a page to miss. Anything the visitor
   actually wants (the calculator, the certificate) gets a band with a button instead. */
.cta-band { display: flex; gap: 18px; align-items: center; justify-content: space-between;
  flex-wrap: wrap; margin-top: 16px; padding: 18px 20px; border: 1.5px solid var(--ink);
  border-radius: var(--r); background: color-mix(in srgb, var(--signal) 7%, transparent); }
.cta-band b { display: block; font-size: 16.5px; letter-spacing: -0.01em; }
.cta-band span { display: block; font-size: 13.5px; color: var(--muted); max-width: 62ch;
  margin-top: 3px; line-height: 1.45; }
.cta-band .btn { flex: none; }

/* Prose and note links were a hairline. A link a reader is meant to follow has to look like one. */
.prose a, .tnote a, .faq__a a, .counter a {
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid var(--signal);
  transition: background 0.14s, border-color 0.14s;
}
.prose a:hover, .tnote a:hover, .faq__a a:hover, .counter a:hover {
  background: color-mix(in srgb, var(--signal) 18%, transparent);
  border-bottom-color: var(--ink);
}
