
/* ============================================================
   Artikelseite. Nutzt dieselben --pk-* Tokens wie der
   Konfigurator weiter unten, damit die Seite eine Einheit ist.
   ============================================================ */

/* Konfigurator in den Artikelfluss einpassen: er bringt seine eigene
   Innenabstand-Logik mit, die hier von der Artikelspalte kommt. */
.pk { max-width: none; margin: 0; padding: 0; }
.pk-profile { margin-top: 0; }

.ar-top {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--pk-bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--pk-line);
}
.ar-top-in {
  max-width: 960px; margin: 0 auto; padding: 0 20px;
  height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.ar-logo {
  font-family: 'DM Sans', system-ui, sans-serif; font-weight: 700;
  font-size: 1.05rem; letter-spacing: -.03em; text-decoration: none; color: var(--pk-ink);
}
.ar-logo b { color: var(--pk-accent); }
.ar-top-r { display: flex; align-items: center; gap: 14px; }
.ar-back {
  font-size: .87rem; color: var(--pk-muted); text-decoration: none;
}
.ar-back:hover { color: var(--pk-ink); }
.ar-alt {
  font-family: 'DM Sans', system-ui, sans-serif; font-size: .72rem;
  border: 1px solid var(--pk-line); border-radius: 999px; padding: 5px 11px;
  text-decoration: none; color: var(--pk-muted);
}
.ar-alt:hover { border-color: var(--pk-accent); color: var(--pk-accent); }

.ar { max-width: 960px; margin: 0 auto; padding: 0 20px 80px; }
.col { max-width: 700px; margin-inline: auto; }
.wide { max-width: 960px; margin-inline: auto; }

.ar-hero { padding: 54px 0 8px; }
.ar-eyebrow {
  font-family: 'DM Sans', system-ui, sans-serif; font-size: .73rem;
  letter-spacing: .09em; text-transform: uppercase; color: var(--pk-accent);
  display: inline-flex; align-items: center; gap: 8px;
}
.ar-eyebrow i { width: 6px; height: 6px; border-radius: 50%; background: var(--pk-accent); }
.ar h1 {
  font-family: 'DM Sans', system-ui, sans-serif; font-weight: 600;
  font-size: clamp(1.95rem, 4.6vw, 3rem); line-height: 1.1; letter-spacing: -.025em;
  margin-top: 16px; text-wrap: balance;
}
.ar-stand {
  margin-top: 20px; font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: var(--pk-muted); line-height: 1.55;
}
.ar-meta {
  margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--pk-line);
  font-family: 'DM Sans', system-ui, sans-serif; font-size: .75rem;
  color: var(--pk-muted); display: flex; gap: 8px 18px; flex-wrap: wrap;
}

.ar h2 {
  font-family: 'DM Sans', system-ui, sans-serif; font-weight: 600;
  font-size: clamp(1.35rem, 2.5vw, 1.72rem); letter-spacing: -.02em; line-height: 1.2;
  margin-top: 56px; text-wrap: balance;
}
.ar h3 {
  font-family: 'DM Sans', system-ui, sans-serif; font-weight: 600;
  font-size: 1.08rem; letter-spacing: -.015em; margin-top: 34px;
}
.ar p { margin-top: 17px; font-size: 1.045rem; line-height: 1.68; }
.ar p.first { margin-top: 22px; }
.ar strong { font-weight: 600; }
.ar a.inl { color: var(--pk-accent); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }

.ar ul { margin-top: 17px; display: grid; gap: 11px; list-style: none; }
.ar ul li { position: relative; padding-left: 20px; font-size: 1.02rem; line-height: 1.62; }
.ar ul li::before {
  content: ""; position: absolute; left: 2px; top: .68em;
  width: 7px; height: 1px; background: var(--pk-accent);
}

/* Herausgehobener Satz */
.pull {
  margin-top: 34px; padding: 22px 0 22px 24px;
  border-left: 3px solid var(--pk-accent);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: clamp(1.15rem, 2vw, 1.42rem); font-weight: 500;
  line-height: 1.34; letter-spacing: -.015em; text-wrap: balance;
}

/* Vorfall-Karten */
.inc { margin-top: 26px; display: grid; gap: 14px; }
.inc-card {
  border: 1px solid var(--pk-line); border-radius: 12px;
  background: var(--pk-surface); overflow: hidden;
}
.inc-head {
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
  padding: 13px 16px; background: var(--pk-soft); border-bottom: 1px solid var(--pk-line);
}
.inc-date {
  font-family: 'DM Sans', system-ui, sans-serif; font-size: .73rem;
  color: var(--pk-bad); border: 1px solid var(--pk-bad-br); background: var(--pk-bad-bg);
  padding: 2px 8px; border-radius: 5px; white-space: nowrap;
}
.inc-head b { font-family: 'DM Sans', system-ui, sans-serif; font-weight: 600; font-size: 1rem; }
.inc-body { padding: 15px 16px; display: grid; gap: 12px; }
.inc-body p { margin: 0; font-size: .97rem; line-height: 1.62; }
.inc-fix {
  display: grid; gap: 4px; padding: 12px 14px; border-radius: 8px;
  background: var(--pk-ok-bg); border: 1px solid var(--pk-ok-br);
}
.inc-fix span {
  font-family: 'DM Sans', system-ui, sans-serif; font-size: .68rem;
  letter-spacing: .07em; text-transform: uppercase; color: var(--pk-ok);
}
.inc-fix p { font-size: .95rem; }

/* Datentabelle */
.tbl-wrap { margin-top: 24px; overflow-x: auto; border: 1px solid var(--pk-line); border-radius: 12px; }
table.data { border-collapse: collapse; width: 100%; min-width: 460px; font-size: .93rem; }
table.data th, table.data td { padding: 11px 14px; text-align: left; border-top: 1px solid var(--pk-line-soft); }
table.data thead th {
  border-top: 0; background: var(--pk-soft); color: var(--pk-muted);
  font-family: 'DM Sans', system-ui, sans-serif; font-size: .7rem;
  letter-spacing: .06em; text-transform: uppercase; font-weight: 500;
}
table.data td.num { text-align: right; font-variant-numeric: tabular-nums; font-family: 'DM Sans', system-ui, sans-serif; font-size: .88rem; }
table.data tr.mark td { background: var(--pk-bad-bg); }
table.data tr.mark td:first-child { box-shadow: inset 3px 0 0 var(--pk-bad); }
.tbl-cap { margin-top: 10px; font-size: .84rem; color: var(--pk-muted); }

/* Codeblock */
.code { margin-top: 24px; border: 1px solid var(--pk-line); border-radius: 12px; overflow: hidden; background: var(--pk-surface); }
.code-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 14px; background: var(--pk-soft); border-bottom: 1px solid var(--pk-line);
  font-family: 'DM Sans', system-ui, sans-serif; font-size: .72rem; color: var(--pk-muted);
}
.code-head b { color: var(--pk-ink); font-weight: 500; }
.code pre { margin: 0; padding: 14px; overflow-x: auto; }
.code code {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: .795rem; line-height: 1.72; color: var(--pk-ink); white-space: pre;
}
.code .c { color: var(--pk-muted); }
.code .k { color: var(--pk-accent); }
.code .s { color: var(--pk-ok); }

/* Diagramm */
figure.fig { margin-top: 30px; }
.fig-scroll { overflow-x: auto; border: 1px solid var(--pk-line); border-radius: 12px; background: var(--pk-surface); padding: 20px 16px; }
.fig-scroll svg { display: block; width: 100%; min-width: 860px; height: auto; color: var(--pk-ink); }
figcaption { margin-top: 12px; font-size: .87rem; color: var(--pk-muted); line-height: 1.6; }

/* Abschluss */
.cta-box {
  margin-top: 52px; padding: 30px; border-radius: 16px;
  border: 1px solid var(--pk-accent-br); background: var(--pk-accent-bg);
}
.cta-box h2 { margin-top: 0; }
.cta-box p { color: var(--pk-ink); }
.cta-row { margin-top: 22px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.cta-note { font-size: .87rem; color: var(--pk-muted); }
.ar-btn {
  display: inline-block; text-decoration: none; font-weight: 600; font-size: .96rem;
  padding: 13px 22px; border-radius: 10px; background: var(--pk-accent); color: #fff;
  transition: transform .12s ease, box-shadow .12s ease;
}
:root[data-theme="dark"] .ar-btn { color: #0b1220; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ar-btn { color: #0b1220; } }
.ar-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 26px -10px var(--pk-accent); }

.ar-fine { margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--pk-line); }
.ar-fine p { font-size: .85rem; color: var(--pk-muted); line-height: 1.62; }

.ar-foot {
  border-top: 1px solid var(--pk-line); margin-top: 60px;
  padding: 26px 20px 40px; text-align: center;
}
.ar-foot p { font-size: .84rem; color: var(--pk-muted); }
.ar-foot a { color: var(--pk-muted); }

@media (max-width: 720px) {
  .ar { padding: 0 16px 60px; }
  .ar-hero { padding: 34px 0 4px; }
  .cta-box { padding: 22px; }
  .pull { padding-left: 16px; margin-top: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Querverweis auf den jeweils anderen Artikel */
.nextread { margin-top: 40px; display: grid; gap: 10px; }
.nextread > span {
  font-family: 'DM Sans', system-ui, sans-serif; font-size: .72rem;
  letter-spacing: .08em; text-transform: uppercase; color: var(--pk-muted);
}
.nextread a {
  display: grid; gap: 5px; text-decoration: none; color: inherit;
  border: 1px solid var(--pk-line); border-radius: 12px; padding: 18px 20px;
  background: var(--pk-surface);
  transition: border-color .18s ease, transform .12s ease;
}
.nextread a:hover { border-color: var(--pk-accent); transform: translateY(-1px); }
.nextread a b {
  font-family: 'DM Sans', system-ui, sans-serif; font-weight: 600;
  font-size: 1.08rem; color: var(--pk-accent);
}
.nextread a em { font-style: normal; font-size: .93rem; color: var(--pk-muted); line-height: 1.55; }

/* Kurzfassung fuer Leser, die nicht den ganzen Text lesen */
.tldr {
  margin-top: 30px; padding: 20px 22px; border-radius: 12px;
  border: 1px solid var(--pk-line); background: var(--pk-soft);
  display: grid; gap: 10px;
}
.tldr > span {
  font-family: 'DM Sans', system-ui, sans-serif; font-size: .72rem;
  letter-spacing: .08em; text-transform: uppercase; color: var(--pk-muted);
}
.tldr ol { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.tldr li { font-size: .98rem; line-height: 1.55; }
.tldr li::marker { color: var(--pk-accent); font-weight: 600; }

/* Entwarnung ueber technischen Bloecken */
.skipnote {
  margin-top: 22px; padding: 12px 16px; border-radius: 10px;
  border: 1px dashed var(--pk-line); background: var(--pk-soft);
  font-size: .92rem; color: var(--pk-muted); line-height: 1.6;
}

/* Blog-Uebersicht */
.postlist { display: grid; gap: 16px; margin-top: 32px; }
.post {
  display: grid; gap: 8px; text-decoration: none; color: inherit;
  border: 1px solid var(--pk-line); border-radius: 14px; padding: 22px 24px;
  background: var(--pk-surface);
  transition: border-color .18s ease, transform .12s ease;
}
.post:hover { border-color: var(--pk-accent); transform: translateY(-1px); }
.post-meta {
  font-family: 'DM Sans', system-ui, sans-serif; font-size: .72rem;
  letter-spacing: .07em; text-transform: uppercase; color: var(--pk-muted);
  display: flex; gap: 8px 16px; flex-wrap: wrap;
}
.post-meta em { font-style: normal; color: var(--pk-accent); }
.post h2 {
  font-family: 'DM Sans', system-ui, sans-serif; font-weight: 600;
  font-size: clamp(1.15rem, 2.2vw, 1.4rem); letter-spacing: -.02em; line-height: 1.22;
  margin-top: 2px; text-wrap: balance; color: var(--pk-ink);
}
.post p { margin-top: 2px; font-size: .97rem; line-height: 1.6; color: var(--pk-muted); }
.post-alt { font-size: .84rem; color: var(--pk-muted); margin-top: 4px; }
.post-alt b { color: var(--pk-accent); font-weight: 500; }
