/* ============================================================
   KIONIER "Institut" — Einzelbeitrag und Seiten
   ============================================================ */

/* --- Breadcrumb + Artikelkopf --- */
.crumbs { padding: 1.3rem 0 0; font-size: .78rem; color: var(--muted); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; }
.crumbs li + li::before { content: "›"; margin-right: .35rem; color: var(--faint); }
.crumbs a:hover { color: var(--ocker); text-decoration: underline; text-underline-offset: 3px; }

.ahead { max-width: 820px; padding: 1.6rem 0 0; }
.ahead h1 { font-family: var(--serif); font-size: var(--size-h1); line-height: 1.18; font-weight: 600; letter-spacing: -.008em; margin: .9rem 0 1rem; }
.ahead .deck { font-family: var(--serif); font-size: clamp(1.05rem, 1.5vw, 1.22rem); color: var(--ink-soft); line-height: 1.55; }
.ahead .meta { display: block; margin-top: 1.1rem; padding-bottom: 1.6rem; border-bottom: 1px solid var(--line); }

.ahero { padding: 1.8rem 0 0; margin: 0; }
.ahero img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; border-radius: var(--radius-img); }
.ahero figcaption { font-size: .76rem; color: var(--muted); margin-top: .55rem; line-height: 1.5; }

/* --- Layout: Randspalte + Textspalte --- */
.alayout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(2.5rem, 5vw, 5rem); padding: clamp(2rem, 4vw, 3rem) 0; }
.aside { position: sticky; top: 130px; align-self: start; }
.toc { border-top: 2px solid var(--ink); padding-top: 1rem; }
.toc h2 { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-bottom: .8rem; }
.toc h2::after { content: ""; display: block; width: 44px; height: 3px; background: var(--amber); margin-top: .5rem; }
.toc ol { list-style: none; counter-reset: toc; }
.toc li { counter-increment: toc; border-bottom: 1px solid var(--line); }
.toc a { display: flex; gap: .7rem; font-size: .85rem; color: var(--ink-soft); padding: .55rem 0; line-height: 1.4; }
.toc a::before { content: counter(toc, decimal-leading-zero); font-family: var(--mono); font-size: .72rem; color: var(--ocker); padding-top: .15em; }
.toc a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--amber); text-decoration-thickness: 2px; }
.aside__dl { margin-top: 1.6rem; }
.aside__dl p { font-size: .85rem; color: var(--muted); margin-top: .5rem; line-height: 1.55; }

/* --- Textspalte: Editor-Inhalte --- */
.abody { max-width: 720px; }
.abody > p { font-size: var(--size-body); line-height: 1.75; color: var(--ink-soft); margin-bottom: 1.35rem; overflow-wrap: break-word; }
.abody > h2 { font-family: var(--serif); font-size: var(--size-h2); font-weight: 600; line-height: 1.25; margin: 2.6rem 0 1rem; scroll-margin-top: 140px; }
.abody > h2::after { content: ""; display: block; width: 44px; height: 3px; background: var(--amber); margin-top: .55rem; }
.abody > h3 { font-family: var(--serif); font-size: var(--size-h3); font-weight: 600; line-height: 1.3; margin: 2rem 0 .8rem; scroll-margin-top: 140px; }
.abody a:not(.btn-quiet):not(.btn-solid) { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--amber); text-decoration-thickness: 2px; }
.abody a:not(.btn-quiet):not(.btn-solid):hover { color: var(--ocker); }
.abody > ul, .abody > ol { margin: 0 0 1.35rem 1.3rem; font-size: var(--size-body); line-height: 1.7; color: var(--ink-soft); }
.abody li { margin-bottom: .45rem; }
.abody li::marker { color: var(--ocker); font-weight: 600; }
.abody figure { margin: 1.8rem 0; }
.abody figcaption { font-size: .76rem; color: var(--muted); margin-top: .55rem; line-height: 1.5; }
.abody hr { border: none; border-top: 1px solid var(--line); margin: 2.4rem 0; }

/* Blockquote als Pull-Quote */
.abody blockquote {
  border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line);
  padding: 2rem .2rem; margin: 2.4rem 0;
  font-family: var(--serif); font-size: clamp(1.25rem, 1.9vw, 1.55rem);
  font-weight: 500; line-height: 1.45; color: var(--ink);
}
.abody blockquote em { font-style: italic; color: var(--ocker); }
.abody blockquote p { font: inherit; color: inherit; margin: 0; }
.abody blockquote cite { display: block; font-family: var(--sans); font-style: normal; font-size: .8rem; color: var(--muted); margin-top: 1rem; line-height: 1.6; }

/* Tabellen */
.abody table { width: 100%; border-collapse: collapse; font-size: .92rem; margin: 1.8rem 0 2.2rem; }
.abody caption { caption-side: bottom; text-align: left; font-family: var(--mono); font-size: .7rem; color: var(--muted); padding-top: .8rem; line-height: 1.6; }
.abody th { font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); text-align: left; padding: .65rem .9rem .65rem 0; border-bottom: 2px solid var(--ink); }
.abody td { padding: .8rem .9rem .8rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.abody td:first-child { font-weight: 600; }

/* --- Redaktionelle Bausteine --- */
.answer { background: var(--paper-2); border-left: 3px solid var(--amber); padding: 1.5rem 1.7rem; margin-bottom: 2.2rem; scroll-margin-top: 140px; }
.answer h2 { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-bottom: .7rem; }
.answer p { font-family: var(--serif); font-size: 1.12rem; line-height: 1.6; color: var(--ink); }

.keyfacts { border: 1px solid var(--line); padding: 1.5rem 1.7rem; margin-bottom: 2.4rem; }
.keyfacts h2 { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1rem; }
.keyfacts h2::after { content: ""; display: block; width: 44px; height: 3px; background: var(--amber); margin-top: .5rem; }
.keyfacts ul { list-style: none; margin: 0; }
.keyfacts li { position: relative; padding: .55rem 0 .55rem 1.6rem; font-size: .96rem; color: var(--ink-soft); line-height: 1.55; border-bottom: 1px solid var(--line); }
.keyfacts li:last-child { border-bottom: none; }
.keyfacts li::before { content: "—"; position: absolute; left: 0; color: var(--amber); font-weight: 700; }

.insight { display: grid; grid-template-columns: auto 1fr; gap: 1.4rem; align-items: start; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); padding: 1.4rem .2rem; margin: 2.2rem 0; }
.insight b { font-family: var(--serif); font-size: 2.6rem; font-weight: 700; line-height: 1; }
.insight b::after { content: ""; display: block; width: 34px; height: 3px; background: var(--amber); margin-top: .45rem; }
.insight p { font-size: .94rem; color: var(--ink-soft); line-height: 1.6; margin: 0; }
.insight .meta { display: block; margin-top: .5rem; font-family: var(--mono); font-size: .7rem; }

.check { background: var(--paper-2); padding: 1.5rem 1.7rem; margin: 2.2rem 0; }
.check h3 { font-family: var(--serif); font-size: 1.15rem; font-weight: 600; margin: 0 0 1rem; }
.check ul { list-style: none; margin: 0; }
.check li { position: relative; padding: .5rem 0 .5rem 1.9rem; font-size: .94rem; color: var(--ink-soft); line-height: 1.55; margin: 0; }
.check li::before { content: ""; position: absolute; left: 0; top: .72rem; width: 14px; height: 14px; border: 1.5px solid var(--ocker); border-radius: 2px; }

.dl { display: flex; gap: 1.2rem; align-items: flex-start; border: 1px solid var(--line-strong); padding: 1.3rem 1.5rem; margin: 2.2rem 0; }
.dl .tag { font-family: var(--mono); font-size: .68rem; font-weight: 600; color: var(--ocker); border: 1px solid var(--ocker); padding: .3rem .5rem; border-radius: 2px; flex: none; margin-top: .15rem; }
.dl p { font-size: .9rem; color: var(--muted); line-height: 1.6; margin: 0; }
.dl p strong { display: block; color: var(--ink); font-size: 1rem; margin-bottom: .25rem; }

.voice { border-left: 3px solid var(--navy); padding: .3rem 0 .3rem 1.5rem; margin: 2.2rem 0; }
.voice h3 { font-family: var(--serif); font-size: 1.15rem; font-weight: 600; margin: 0 0 .7rem; }
.voice p { font-size: .98rem; color: var(--ink-soft); line-height: 1.7; margin: 0; }
.voice .meta { display: block; margin-top: .7rem; }

.limits { background: var(--paper-2); padding: 1.4rem 1.6rem; margin: 2.2rem 0; }
.limits h3 { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 .7rem; }
.limits p { font-size: .94rem; color: var(--ink-soft); line-height: 1.65; margin: 0; }

/* --- Endmatter --- */
.endm { border-top: 2px solid var(--ink); margin-top: 3rem; padding-top: 1.8rem; }
.endm h2 { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; margin: 1.8rem 0 .9rem; scroll-margin-top: 140px; }
.endm h2:first-child { margin-top: 0; }
.sources { list-style: none; counter-reset: src; margin: 0; }
.sources li { counter-increment: src; position: relative; padding: .6rem 0 .6rem 2.2rem; border-bottom: 1px solid var(--line); font-size: .92rem; line-height: 1.55; margin: 0; }
.sources li::before { content: counter(src, decimal-leading-zero); position: absolute; left: 0; top: .75rem; font-family: var(--mono); font-size: .72rem; color: var(--ocker); }
.sources .meta { display: block; margin-top: .15rem; }
.method p { font-size: .92rem; color: var(--muted); line-height: 1.65; margin-bottom: .9rem; }
.rev { list-style: none; margin: 0; }
.rev li { font-size: .9rem; color: var(--muted); padding: .4rem 0; border-bottom: 1px solid var(--line); margin: 0; }
.rev time { font-family: var(--mono); font-size: .78rem; color: var(--ink-soft); margin-right: .7rem; }

/* --- Weiterführend --- */
.rel { border-top: 1px solid var(--line); padding: clamp(2.4rem, 4.5vw, 3.5rem) 0; }
.rel__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.rel__grid article { display: flex; flex-direction: column; }
.rel__grid .lab { font-size: .66rem; color: var(--ocker); }
.rel__grid h3 { font-family: var(--serif); font-size: 1.18rem; font-weight: 600; line-height: 1.32; margin: .55rem 0 .45rem; }
.rel__grid p { font-size: .85rem; color: var(--muted); margin-bottom: 1rem; }
.rel__grid .btn-quiet { margin-top: auto; }

/* --- Statische Seiten --- */
.pagebody { max-width: 780px; padding: 1.6rem 0 clamp(2.4rem, 4.5vw, 3.5rem); }
.pagebody h1 { font-family: var(--serif); font-size: var(--size-h1); line-height: 1.18; font-weight: 600; margin: .9rem 0 1.6rem; }

@media (max-width: 960px) {
  .alayout { grid-template-columns: 1fr; gap: 2rem; }
  .aside { position: static; }
  .rel__grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .insight { grid-template-columns: 1fr; gap: .8rem; }
}
