/* SCHMIDTWIRKUNG · Ratgeber-Reihe „Fachinformation“ (setzt css/v7.css und css/projekt-v7.css voraus)
   Erzeugt von scrollcraft/builds/schmidtwirkung-v7/gen_fachinfo.py.
   Kurzer roter Kopf wie bei den Rechtstexten, darunter das Blatt mit Abschnitten
   im Beipackzettel-Ton, Markttabelle, FAQ, Autor und roter Schluss. */

/* ---------------------------------------------------------------- Kopf */
.hero--fi .hero__copy { max-width: 60rem; }
.hero--fi .hero__title { font-size: clamp(2.3rem, 1.25rem + 3.6vw, 5rem); max-width: 17ch; text-wrap: balance; }
.hero__meta { margin-top: 1.5rem !important; max-width: 52ch; font-size: 0.95rem; line-height: 1.6; font-weight: 500; color: rgba(255, 255, 255, 0.9); }
.hero__meta a { color: #fff; font-weight: 700; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
.hero__meta a:is(:hover, :focus-visible) { text-decoration-thickness: 2px; }

/* ---------------------------------------------------------- Abschnitte */
.fi-kicker { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--red-ink); }
.fi-kicker .ch__n { font-size: 1rem; letter-spacing: 0; }
.v7 .sc-stack > .fi-kicker + .ch__title { margin-top: 0.55rem; }
.v7 .sc-stack > .fi-kicker + .lede { margin-top: 1.1rem; }
.fi-ch .ch__title { max-width: 24ch; }
.fi-ch p a:not(.btn) { color: var(--red-ink); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.22em; text-decoration-color: color-mix(in oklab, currentColor 45%, transparent); }
.fi-ch p a:not(.btn):is(:hover, :focus-visible) { color: var(--ink); text-decoration-color: currentColor; text-decoration-thickness: 2px; }
.facts__foot { margin-top: 0.7rem !important; padding-top: 0.7rem; border-top: 1px solid var(--rule); font-size: 0.78rem; color: var(--ink-soft); }

/* Aufzählung mit Strich wie in der Preisliste */
.fi-list { list-style: none; margin: 0; padding: 0; max-width: 46rem; }
.fi-list li { position: relative; padding: 0.55rem 0 0.55rem 1.3rem; border-top: 1px solid var(--rule); color: var(--ink-body); }
.fi-list li:last-child { border-bottom: 1px solid var(--rule); }
.fi-list li::before { content: ""; position: absolute; left: 0; top: 1.2rem; width: 0.65rem; height: 2px; background: var(--red); }

/* Kostentreiber: nummeriert, Ziffern in Anton */
.fi-steps { list-style: none; margin: 0.4rem 0 0; padding: 0; counter-reset: fi; max-width: 46rem; }
.fi-steps li { counter-increment: fi; position: relative; padding: 0.95rem 0 0.95rem 2.6rem; border-top: 1px solid var(--rule); color: var(--ink-body); }
.fi-steps li:last-child { border-bottom: 1px solid var(--rule); }
.fi-steps li::before { content: counter(fi); position: absolute; left: 0; top: 0.75rem; font-family: var(--sc-font-display); font-size: 1.6rem; line-height: 1; color: var(--red-ink); }
.fi-steps strong { color: var(--ink); }

.fi-note { font-size: 0.86rem; color: var(--ink-soft); max-width: 70ch !important; }

/* ------------------------------------------------------- Markttabelle */
.fi-table-wrap { margin-top: 1.6rem !important; max-width: 60rem; }
.fi-table { width: 100%; border-collapse: collapse; font-size: 0.97rem; }
.fi-table th, .fi-table td { text-align: left; vertical-align: top; padding: 0.95rem 1.2rem 0.95rem 0; border-bottom: 1px solid var(--rule); }
.fi-table thead th { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); border-bottom: 2px solid var(--ink); padding-top: 0; }
.fi-table tbody th { width: 24%; color: var(--ink); font-weight: 700; }
.fi-table td { color: var(--ink-body); }
.fi-table td:last-child { width: 27%; padding-right: 0; font-weight: 700; color: var(--ink); }
.fi-table__me th, .fi-table__me td { background: var(--paper-hi); border-top: 2px solid var(--red); border-bottom: 2px solid var(--red); }
.fi-table__me th { padding-left: 0.9rem; color: var(--red-ink) !important; }
.fi-table__me td:last-child { color: var(--red-ink); padding-right: 0.9rem; }
/* Rechentabelle: nur Zahlen, rechtsbündig mit Ziffern gleicher Breite */
.fi-table--num tbody th { width: auto; }
.fi-table--num th[scope="col"]:not(:first-child), .fi-table--num td { width: 17% !important; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fi-table--num td:last-child { padding-left: 1.2rem; }
@media (max-width: 760px) {
  .fi-table--num td { display: flex !important; justify-content: space-between; gap: 1rem; text-align: left; margin-top: 0.2rem; }
  .fi-table.fi-table--num td::before { content: attr(data-label); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); font-weight: 700; align-self: center; }
  .fi-table.fi-table--num td:last-child::before { content: attr(data-label); }
  .fi-table.fi-table--num td:last-child { padding-left: 0; margin-top: 0.2rem; }
  .fi-table, .fi-table tbody, .fi-table tr, .fi-table th, .fi-table td { display: block; width: auto !important; }
  .fi-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .fi-table tr { padding: 1rem 0; border-top: 1px solid var(--rule); }
  .fi-table tbody tr:first-child { border-top: 2px solid var(--ink); }
  .fi-table th, .fi-table td { padding: 0.15rem 0; border: 0; background: none; }
  .fi-table tbody th { font-size: 1.05rem; }
  .fi-table td:last-child { margin-top: 0.45rem; }
  .fi-table td:last-child::before { content: attr(data-label) ": "; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); font-weight: 700; }
  .fi-table__me { background: var(--paper-hi); border: 2px solid var(--red) !important; padding: 1rem 0.9rem !important; border-radius: 0.3rem; margin-top: 0.5rem; }
  .fi-table__me th, .fi-table__me td { border: 0 !important; padding-left: 0 !important; padding-right: 0 !important; }
}

/* --------------------------------------------------------------- Autor */
.fi-author {
  margin-top: clamp(2.5rem, 5vw, 4rem); max-width: 48rem;
  background: var(--paper-hi); border: 1px solid var(--rule-strong); border-radius: 0.45rem; padding: 1.3rem 1.4rem 1.2rem;
  box-shadow: 0 1px 2px rgba(40, 10, 0, 0.06), 0 18px 34px -26px rgba(40, 10, 0, 0.35);
}
.fi-author__head { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }
.fi-author__name { margin-top: 0.2rem !important; font-family: var(--sc-font-display); text-transform: uppercase; font-size: 1.6rem; line-height: var(--lh-anton-s); }
.fi-ch p.fi-author__name a { color: var(--red-ink); text-decoration: none; }
.fi-ch p.fi-author__name a:is(:hover, :focus-visible) { color: var(--ink); }
.fi-author p + p { margin-top: 0.6rem; }
.fi-author__date { font-size: 0.85rem; color: var(--ink-soft); }

/* ----------------------------------------------------- Übersicht /fachinformation/ */
.fi-index { list-style: none; margin: clamp(2.5rem, 5vw, 4rem) 0 0; padding: 0; display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); max-width: 56rem; }
.fi-index__item { display: grid; gap: 0.6rem; padding-top: 1.3rem; border-top: 3px solid var(--ink); text-decoration: none; color: var(--ink); }
.fi-index__nr { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--red-ink); }
.fi-index__title { font-family: var(--sc-font-display); text-transform: uppercase; font-size: clamp(1.7rem, 1rem + 2.2vw, 3rem); line-height: var(--lh-anton); max-width: 22ch; text-wrap: balance; transition: color 200ms var(--ease); }
.fi-index__teaser { color: var(--ink-body); max-width: 60ch; }
.fi-index__date { font-size: 0.85rem; color: var(--ink-soft); }
@media (hover: hover) and (pointer: fine) { .fi-index__item:hover .fi-index__title { color: var(--red-ink); } }
.fi-index__item:focus-visible { outline: 2px solid var(--red-ink); outline-offset: 6px; }
