/* ========================================================
   Mateeria Blog: Übersicht und Beiträge
   Nur auf Blog-Seiten eingebunden, nach redesign.css.
   Farben, Schriften, Radien und Schatten kommen aus den
   Variablen von styles.css und redesign.css; die wenigen
   eigenen Töne unten sind aus Navy und Muted Blue abgeleitet
   und haben je einen Wert für hell und dunkel.
   Bewegung nur bei prefers-reduced-motion: no-preference.
   ======================================================== */

html { scroll-padding-top: 96px; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

html[data-variant] {
  --ed-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ed-measure: 35em;
  --ed-hover: rgba(15, 44, 71, 0.035);
  --ed-edge: rgba(15, 44, 71, 0.14);
  --ed-accent: var(--brand-dark);
  --ed-i-chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9.5l6 6 6-6'/%3E%3C/svg%3E");
  --ed-i-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
  --ed-i-copy: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9' y='9' width='11' height='11' rx='2.5'/%3E%3Cpath d='M15 9V6.5A2.5 2.5 0 0 0 12.5 4h-6A2.5 2.5 0 0 0 4 6.5v6A2.5 2.5 0 0 0 6.5 15H9'/%3E%3C/svg%3E");
  --ed-i-ring: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='5.75' fill='none' stroke='%23000' stroke-width='1.5'/%3E%3C/svg%3E");
}
html[data-variant][data-theme="dark"] {
  --ed-hover: rgba(255, 255, 255, 0.04);
  --ed-edge: rgba(0, 0, 0, 0.5);
  /* Muted Blue eine Stufe heller: kleine Schrift auf getönten Flächen bleibt über 4,5:1 */
  --ed-accent: #8AAAC7;
}

.vh {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap;
}

/* Icons als Maske: Farbe kommt aus currentColor, passt in hell und dunkel */
:is(.toc summary, .post-body details > summary, .kurz li, .bsp-label, .vorlage-kopieren)::after,
:is(.kurz li, .bsp-label, .vorlage-kopieren)::before { -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center; -webkit-mask-size: contain; mask-size: contain; }

/* ---------- Kopfbereich ---------- */
html[data-variant] section.blog-hero {
  padding-top: clamp(36px, 5.5vw, 80px);
  padding-bottom: clamp(20px, 3vw, 40px);
}
html[data-variant] .blog-hero .crumbs { flex-wrap: wrap; row-gap: 4px; margin-bottom: 22px; color: var(--ink-60); }
html[data-variant] .blog-hero .crumbs a { color: var(--ink-80); text-underline-offset: 3px; border-radius: 4px; transition: color 160ms; }
html[data-variant] .blog-hero .crumbs a:hover { color: var(--brand-dark); text-decoration: underline; }
html[data-variant] .blog-hero .crumbs .sep { opacity: 1; color: var(--ink-25); }
html[data-variant] .blog-hero h1 {
  font-size: clamp(32px, 2.9vw + 20px, 60px);
  line-height: 1.05 !important;
  letter-spacing: -0.028em !important;
  max-width: 19em;
  margin-bottom: 0;
  overflow-wrap: break-word;
  text-wrap: balance;
}
@media (min-width: 900px) { html[data-variant] .blog-hero h1 { letter-spacing: -0.036em !important; } }
@media (max-width: 599px) { html[data-variant] .blog-hero h1 { text-wrap: pretty; } }
html[data-variant] .blog-hero .lede {
  max-width: 54ch;
  margin-top: 20px;
  font-size: clamp(17px, 0.45vw + 15.4px, 20px);
  line-height: 1.55;
  color: var(--ink-60);
}
html[data-variant] section.blog-section {
  padding-top: clamp(8px, 2vw, 24px);
  padding-bottom: clamp(40px, 6vw, 88px);
}

/* ---------- Übersicht: Beitragskarten ----------
   Der neueste Beitrag steht groß und quer, darunter ein Raster.
   Bleibt in der letzten Reihe eine Karte allein, läuft sie quer über die volle Breite. */
.post-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(16px, 2vw, 24px); }
.post-card {
  position: relative;
  isolation: isolate;
  display: flex; flex-direction: column;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  transition: transform 420ms var(--ed-ease), box-shadow 420ms var(--ed-ease), border-color 300ms;
}
.post-card-media { aspect-ratio: 3 / 2; background: var(--bg-warm); overflow: hidden; }
.post-card-media picture, .post-card-media img { display: block; width: 100%; height: 100%; }
.post-card-media img { object-fit: cover; transition: transform 700ms var(--ed-ease); }
.post-card-media-leer { display: grid; place-items: center; color: var(--ink-60); font-size: 14px; }
.post-card-body {
  display: flex; flex-direction: column; gap: 10px;
  flex: 1 1 auto;
  min-width: 0;
  padding: clamp(20px, 2.2vw, 28px);
}
.post-card-kicker { margin: 0; font-size: 13.5px; font-weight: 500; line-height: 1.4; letter-spacing: -0.005em; color: var(--brand-dark); }
html[data-variant] .post-card h2 {
  font-size: clamp(21px, 0.5vw + 18.5px, 25px);
  line-height: 1.2;
  letter-spacing: -0.024em;
  overflow-wrap: break-word;
  text-wrap: balance;
}
.post-card h2 a { color: inherit; text-decoration: none; }
.post-card-text { margin: 0; color: var(--ink-60); font-size: 15.5px; line-height: 1.6; max-width: 60ch; }
.post-card-foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 8px 16px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border-soft);
}
.post-card-meta { display: flex; flex-wrap: wrap; gap: 2px 8px; margin: 0; font-size: 13.5px; color: var(--ink-60); font-variant-numeric: tabular-nums; }
.post-card-meta .sep { color: var(--ink-25); }
.post-card-more {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14.5px; font-weight: 500;
  color: var(--brand-dark); text-decoration: none;
  border-radius: 8px;
}
/* ganze Karte klickbar, ohne verschachtelte Links */
.post-card-more::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.post-card-more .arrow { display: inline-block; transition: transform 260ms var(--ed-ease); }
/* Rasterkarten: Weiterlesen als runder Pfeil, der Text bleibt für Screenreader erhalten */
.post-list > .post-card:not(:first-child) .post-card-more {
  justify-content: center;
  width: 36px; height: 36px; flex: none;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  transition: background-color 200ms, border-color 200ms, color 200ms;
}
.post-list > .post-card:not(:first-child) .post-card-more-text {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
@media (hover: hover) {
  .post-list > .post-card:not(:first-child):hover .post-card-more { background: var(--brand-dark); border-color: var(--brand-dark); color: var(--surface); }
}
.post-card a:focus-visible { outline: 2px solid var(--brand-dark); outline-offset: 3px; }
@supports selector(:has(a)) {
  .post-card:has(a:focus-visible) { outline: 2px solid var(--brand-dark); outline-offset: 3px; }
  .post-card a:focus-visible { outline: none; }
}
@media (hover: hover) {
  .post-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-md); }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .post-card:hover { transform: translateY(-3px); }
  .post-card:hover .post-card-media img { transform: scale(1.025); }
  .post-card:hover .post-card-more .arrow { transform: translateX(3px); }
}
@media (prefers-reduced-motion: no-preference) {
  .post-card:active { transform: translateY(-1px) scale(0.995); transition-duration: 120ms; }
}

@media (min-width: 760px) {
  .post-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .post-list > .post-card:first-child { grid-column: 1 / -1; }
  html[data-variant] .post-list > .post-card:first-child h2 { font-size: clamp(26px, 1.6vw + 16px, 38px); line-height: 1.1; letter-spacing: -0.03em; }
  .post-list > .post-card:first-child .post-card-text { font-size: clamp(16px, 0.3vw + 14.5px, 17.5px); }
  .post-list > .post-card:first-child .post-card-foot { margin-top: 18px; }
}
/* Tablet: grosse Karten stehen hochkant mit breitem Bild, damit der Text Platz hat */
@media (min-width: 760px) and (max-width: 1099.98px) {
  .post-list > .post-card:first-child .post-card-media,
  .post-list > .post-card:nth-child(even):last-child .post-card-media { aspect-ratio: 2 / 1; }
  .post-list > .post-card:first-child .post-card-body { padding: clamp(24px, 3.4vw, 36px); }
  .post-list > .post-card:nth-child(even):last-child { grid-column: 1 / -1; }
}
/* breite Bildschirme: neuester Beitrag quer; bleibt in der letzten Reihe eine Karte allein, läuft sie ebenfalls quer */
@media (min-width: 1100px) {
  .post-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .post-list > .post-card:first-child,
  .post-list > .post-card:nth-child(3n+2):last-child { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .post-list > .post-card:first-child .post-card-media,
  .post-list > .post-card:nth-child(3n+2):last-child .post-card-media { aspect-ratio: auto; min-height: 100%; }
  .post-list > .post-card:first-child .post-card-body,
  .post-list > .post-card:nth-child(3n+2):last-child .post-card-body { justify-content: center; padding: clamp(32px, 3.4vw, 48px); }
  .post-list > .post-card:first-child .post-card-media-leer { aspect-ratio: 3 / 2; }
  .post-list > .post-card:nth-child(3n):last-child { grid-column: span 2; }
}

/* ---------- Beitrag: Kopf ---------- */
.post-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px;
  margin: 22px 0 0;
  font-size: 15px; line-height: 1.5;
  color: var(--ink-60);
  font-variant-numeric: tabular-nums;
}
.post-meta .post-author { color: var(--ink); font-weight: 500; }
.post-meta .sep { color: var(--ink-25); }
.post-cover { margin: clamp(28px, 4vw, 48px) 0 0; }
.post-cover picture, .post-cover img { display: block; width: 100%; height: auto; }
.post-cover img { border-radius: 24px; background: var(--bg-warm); outline: 1px solid var(--border-soft); outline-offset: -1px; }
@media (min-width: 1100px) { .post-cover img { aspect-ratio: 2 / 1; object-fit: cover; } }

/* ---------- Beitrag: Layout mit Inhaltsverzeichnis ---------- */
.post-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.toc { font-size: 15px; min-width: 0; }
.toc details { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; }
.toc summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 18px;
  border-radius: 17px;
  font-family: var(--sans); font-size: 15px; font-weight: 600; color: var(--ink);
  transition: background-color 160ms;
}
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after {
  content: ""; flex: none; width: 18px; height: 18px;
  background-color: var(--ink-60);
  -webkit-mask-image: var(--ed-i-chev); mask-image: var(--ed-i-chev);
  transition: transform 280ms var(--ed-ease);
}
.toc details[open] > summary::after { transform: rotate(180deg); }
.toc summary:hover { background: var(--ed-hover); }
.toc summary:focus-visible { outline: 2px solid var(--brand-dark); outline-offset: -2px; }
.toc ol { list-style: none; counter-reset: toc; margin: 0; padding: 0 8px 10px; display: grid; gap: 2px; }
.toc li { counter-increment: toc; }
.toc a {
  display: grid; grid-template-columns: 2em minmax(0, 1fr); gap: 4px;
  padding: 9px 10px;
  border-radius: 10px;
  color: var(--ink-60); text-decoration: none;
  line-height: 1.4; overflow-wrap: break-word;
  transition: background-color 160ms, color 160ms, border-color 200ms;
}
.toc a::before { content: counter(toc, decimal-leading-zero); color: var(--ink-60); font-size: 0.86em; padding-top: 0.12em; font-variant-numeric: tabular-nums; }
.toc a:hover { color: var(--ink); background: var(--ed-hover); }
.toc a[aria-current] { color: var(--ink); }
.toc a:focus-visible { outline: 2px solid var(--brand-dark); outline-offset: 1px; }
@media (min-width: 1100px) {
  .post-layout { grid-template-columns: 232px minmax(0, 1fr); column-gap: clamp(48px, 5.5vw, 88px); align-items: start; }
  .toc { position: sticky; top: 104px; max-height: calc(100vh - 136px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
  .toc details { background: transparent; border: 0; border-radius: 0; }
  .toc summary { pointer-events: none; cursor: default; padding: 0 0 12px; font-size: 13px; color: var(--ink-60); }
  .toc summary::after, .toc details[open] > summary::after { content: none; }
  .toc ol { padding: 0; gap: 0; border-left: 1px solid var(--border); }
  .toc a { display: block; margin-left: -1px; padding: 7px 0 7px 16px; border-left: 2px solid transparent; border-radius: 0; font-size: 14.5px; }
  .toc a::before { content: none; }
  .toc a:hover { background: transparent; border-left-color: var(--border-strong); }
  .toc a[aria-current] { border-left-color: var(--brand-dark); }
}

/* ---------- Beitrag: Fließtext ---------- */
.post-body {
  --measure: var(--ed-measure);
  font-family: var(--sans);
  font-size: clamp(17px, 0.3vw + 16px, 19px);
  line-height: 1.72;
  letter-spacing: -0.003em;
  color: var(--ink-80);
  max-width: 46rem;
  min-width: 0;
  overflow-wrap: break-word;
}
.post-body > * { margin-top: 0; margin-bottom: 0; }
.post-body > * + * { margin-top: 1.2em; }
.post-body > :is(p, ul, ol, blockquote, h2, h3, h4) { max-width: var(--measure); }
.post-body > p:first-child { font-size: 1.12em; line-height: 1.6; letter-spacing: -0.01em; color: var(--ink); }
.post-body strong { color: var(--ink); font-weight: 600; }
.post-body a {
  color: var(--brand-dark);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  text-decoration-color: color-mix(in srgb, currentColor 45%, transparent);
  border-radius: 3px;
  transition: text-decoration-color 160ms;
}
.post-body a:hover { text-decoration-color: currentColor; }
.post-body a:focus-visible { outline: 2px solid var(--brand-dark); outline-offset: 2px; }
html[data-variant] .post-body section { padding: 0; }
html[data-variant] .post-body :is(h2, h3, h4) { color: var(--ink); text-wrap: balance; }
/* Silbentrennung in Überschriften nur auf schmalen Bildschirmen, wo lange Wörter sonst überlaufen */
@media (max-width: 599px) {
  html[data-variant] :is(.blog-hero h1, .post-card h2, .post-body :is(h2, h3, h4)) { hyphens: auto; -webkit-hyphens: auto; hyphenate-limit-chars: 10 4 4; }
  .post-meta .post-author { flex-basis: 100%; }
  .post-meta .post-author + .sep { display: none; }
  .post-card-meta { font-size: 13px; }
  .post-card-foot { gap: 8px 12px; }
}
html[data-variant] .post-body h2 {
  font-size: clamp(27px, 1.4vw + 21px, 38px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-top: 2.3em;
  padding-top: 0.85em;
  border-top: 1px solid var(--border);
}
html[data-variant] .post-body h3 {
  font-size: clamp(19px, 0.4vw + 17.5px, 22px);
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.016em;
  margin-top: 2em;
}
html[data-variant] .post-body h4 { font-size: 17px; line-height: 1.35; margin-top: 1.8em; }
.post-body :is(h2, h3, h4) + :not(h2, h3, h4) { margin-top: 0.75em; }
.post-body [id] { scroll-margin-top: 8px; }
.post-body :is(ul, ol) { padding-left: 1.3em; }
.post-body li + li { margin-top: 0.45em; }
.post-body li > :is(ul, ol) { margin-top: 0.45em; }
.post-body li::marker { color: var(--brand-dark); }
.post-body ol > li::marker { font-weight: 600; font-variant-numeric: tabular-nums; }
.post-body blockquote { margin-left: 0; margin-right: 0; padding: 2px 0 2px 1.1em; border-left: 2px solid var(--brand-dark); color: var(--ink); }
.post-body hr { border: 0; border-top: 1px solid var(--border); margin: 2.4em 0; }
.post-body code { font-family: var(--mono); font-size: 0.92em; background: var(--surface-2); border: 1px solid var(--border-soft); border-radius: 6px; padding: 0.08em 0.38em; }

/* Bilder im Text: weiche Rundung, Haarlinie gegen gleichfarbigen Grund */
.post-body figure { margin: 2.4em 0; }
.post-body figure picture, .post-body figure img { display: block; width: 100%; height: auto; }
.post-body figure img { border-radius: 20px; background: var(--bg-warm); outline: 1px solid var(--border-soft); outline-offset: -1px; }
.post-body figcaption { margin-top: 0.8em; max-width: var(--measure); font-size: 0.8em; line-height: 1.5; color: var(--ink-60); }
.post-body h3 + figure { margin-top: 0.9em; margin-bottom: 1.4em; }

/* ---------- Das Wichtigste in Kürze ---------- */
.kurz {
  padding: clamp(20px, 3vw, 28px) clamp(20px, 3.2vw, 32px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  font-size: 0.94em;
  line-height: 1.62;
  color: var(--ink-80);
}
.kurz > * { margin: 0; }
.kurz > * + * { margin-top: 0.7em; }
.kurz > :is(p, ul, ol) { max-width: var(--measure); }
.kurz-titel { display: flex; align-items: center; gap: 10px; margin-bottom: 0.9em !important; font-family: var(--sans); font-size: 0.82em; font-weight: 600; line-height: 1.3; letter-spacing: 0.005em; color: var(--brand-dark); }
.kurz-titel::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.kurz ul { list-style: none; padding: 0; display: grid; gap: 0.6em; }
.kurz li { position: relative; padding-left: 1.75em; }
.kurz li + li { margin-top: 0; }
.kurz li::before { content: ""; position: absolute; left: 0; top: 0.32em; width: 1.05em; height: 1.05em; background-color: var(--brand-dark); -webkit-mask-image: var(--ed-i-check); mask-image: var(--ed-i-check); }
.kurz ol { padding-left: 1.3em; }

/* ---------- Zahlen-Kasten ---------- */
aside.hinweis {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 12px 28px;
  padding: clamp(22px, 3vw, 30px) clamp(22px, 3.2vw, 32px);
  background: radial-gradient(130% 160% at 0% 0%, var(--navy-soft), transparent 62%), var(--surface);
  border: 1px solid var(--navy-line);
  border-radius: 20px;
  font-size: 0.92em;
  line-height: 1.6;
  color: var(--ink-80);
}
aside.hinweis > * { flex: 1 1 16rem; min-width: 0; margin: 0; }
aside.hinweis > :is(.zahl, .hinweis-zahl, .hinweis-gross) {
  flex: none;
  font-family: var(--serif);
  font-size: clamp(44px, 4.6vw + 22px, 66px);
  font-weight: 600; line-height: 0.95; letter-spacing: -0.04em;
  color: var(--brand-dark);
  font-variant-numeric: tabular-nums lining-nums;
  white-space: nowrap;
}
aside.hinweis a { color: var(--ed-accent); }
@media (min-width: 700px) {
  aside.hinweis { flex-wrap: nowrap; }
  aside.hinweis > :is(.zahl, .hinweis-zahl, .hinweis-gross) { align-self: stretch; display: flex; align-items: center; padding-right: 28px; border-right: 1px solid var(--navy-line); }
}

/* ---------- Beispiele: schwach gegen stark ---------- */
.bsp { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; align-items: start; }
.bsp-schwach, .bsp-stark {
  min-width: 0;
  padding: 20px 22px 22px;
  border-radius: 20px;
  font-size: 0.9em;
  line-height: 1.64;
  overflow-wrap: break-word;
}
.bsp-schwach { background: transparent; border: 1px dashed var(--border-strong); color: var(--ink-60); }
.bsp-stark { background: var(--surface); border: 1px solid var(--navy-line); box-shadow: var(--shadow-md); color: var(--ink-80); }
.bsp-schwach > *, .bsp-stark > * { margin: 0; }
.bsp-schwach > * + *, .bsp-stark > * + * { margin-top: 0.8em; }
.bsp :is(ul, ol) { padding-left: 1.2em; }
.bsp li + li { margin-top: 0.35em; }
.bsp-label {
  display: flex; align-items: center; gap: 7px;
  width: max-content;
  padding: 3px 11px 3px 8px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 12.5px; font-weight: 600; line-height: 1.5; letter-spacing: 0.01em;
}
.bsp-label::before { content: ""; width: 13px; height: 13px; flex: none; background-color: currentColor; }
.bsp-schwach .bsp-label { color: var(--ink-60); border: 1px solid var(--border-strong); }
.bsp-schwach .bsp-label::before { -webkit-mask-image: var(--ed-i-ring); mask-image: var(--ed-i-ring); }
.bsp-stark .bsp-label { color: var(--ed-accent); background: var(--navy-soft); border: 1px solid var(--navy-line); }
.bsp-stark .bsp-label::before { -webkit-mask-image: var(--ed-i-check); mask-image: var(--ed-i-check); }
.bsp-schwach > .bsp-label + *, .bsp-stark > .bsp-label + * { margin-top: 14px; }
@media (min-width: 760px) { .bsp { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } }

/* Was den Unterschied macht */
.post-body ul.bsp-warum {
  list-style: none;
  max-width: none;
  padding: 2px 0 2px 18px;
  border-left: 2px solid var(--navy-line);
  font-size: 0.9em;
  line-height: 1.58;
  color: var(--ink-80);
}
.post-body ul.bsp-warum::before {
  content: "Was den Unterschied macht";
  display: block;
  margin-bottom: 0.5em;
  font-size: 0.86em; font-weight: 600; letter-spacing: 0.005em;
  color: var(--brand-dark);
}
.post-body ul.bsp-warum li { position: relative; padding-left: 1.1em; }
.post-body ul.bsp-warum li + li { margin-top: 0.3em; }
.post-body ul.bsp-warum li::before { content: ""; position: absolute; left: 0; top: 0.68em; width: 5px; height: 5px; border-radius: 50%; background: var(--brand-dark); }
.bsp + ul.bsp-warum { margin-top: 1em; }
.bsp > ul.bsp-warum { grid-column: 1 / -1; }

/* ---------- Vorlage zum Kopieren ---------- */
.vorlage {
  padding: clamp(20px, 3vw, 28px) clamp(20px, 3.2vw, 30px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  font-size: 0.92em;
  line-height: 1.68;
  color: var(--ink);
  overflow-wrap: break-word;
}
.vorlage > * { margin: 0; }
.vorlage > * + * { margin-top: 0.8em; }
.vorlage :is(h3, h4, .vorlage-titel) { font-family: var(--serif-text); font-size: 1.05em; font-weight: 600; line-height: 1.3; margin-top: 0; margin-bottom: 0.6em; }
.vorlage pre { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; margin: 0; user-select: all; -webkit-user-select: all; }
.vorlage :is(ul, ol) { padding-left: 1.3em; }
.vorlage li + li { margin-top: 0.35em; }
.vorlage .ph-leer { white-space: nowrap; }
.vorlage .ph { padding: 0.05em 0.3em; border-radius: 6px; background: var(--navy-soft); color: var(--ed-accent); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
/* Kopier-Knopf, per Skript eingesetzt */
.vorlage-kopf { display: flex; justify-content: flex-end; margin: -6px -8px 6px 0 !important; }
.vorlage-kopf + * { margin-top: 0 !important; }
.vorlage-kopieren {
  display: inline-flex; align-items: center; gap: 7px;
  min-height: 36px; padding: 0 14px 0 12px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font: 500 13.5px/1 var(--sans);
  cursor: pointer;
  transition: background-color 160ms, border-color 160ms, color 160ms, transform 120ms var(--ed-ease);
}
.vorlage-kopieren::before { content: ""; width: 15px; height: 15px; flex: none; background-color: currentColor; -webkit-mask-image: var(--ed-i-copy); mask-image: var(--ed-i-copy); }
.vorlage-kopieren:hover { border-color: var(--ink-40); background: var(--ed-hover); }
.vorlage-kopieren:focus-visible { outline: 2px solid var(--brand-dark); outline-offset: 2px; }
.vorlage-kopieren[data-state="ok"] { color: var(--ed-accent); background: var(--navy-soft); border-color: var(--navy-line); }
.vorlage-kopieren[data-state="ok"]::before { -webkit-mask-image: var(--ed-i-check); mask-image: var(--ed-i-check); }
@media (prefers-reduced-motion: no-preference) { .vorlage-kopieren:active { transform: scale(0.97); } }

/* ---------- Tabellen: Haarlinien, Schatten an der Scroll-Kante ---------- */
.table-wrap {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border);
  border-radius: 18px;
  background:
    linear-gradient(to right, var(--surface) 30%, transparent) left center / 32px 100% no-repeat local,
    linear-gradient(to left, var(--surface) 30%, transparent) right center / 32px 100% no-repeat local,
    radial-gradient(farthest-side at 0 50%, var(--ed-edge), transparent) left center / 12px 100% no-repeat scroll,
    radial-gradient(farthest-side at 100% 50%, var(--ed-edge), transparent) right center / 12px 100% no-repeat scroll,
    var(--surface);
}
.table-wrap:focus-visible { outline: 2px solid var(--brand-dark); outline-offset: 3px; }
.table-wrap table { width: 100%; min-width: 540px; border-collapse: collapse; font-size: 0.86em; line-height: 1.52; }
.table-wrap :is(th, td) { padding: 13px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border-soft); }
.table-wrap thead th { background: var(--surface-2); }
.table-wrap th { color: var(--ink); font-weight: 600; font-size: 0.94em; white-space: nowrap; }
.table-wrap tbody td:first-child { color: var(--ink); font-weight: 500; }
.table-wrap tbody tr { transition: background-color 160ms; }
.table-wrap tbody tr:hover { background: var(--ed-hover); }
.table-wrap tr:last-child > :is(td, th) { border-bottom: 0; }
.table-wrap caption { caption-side: top; text-align: left; padding: 14px 16px 4px; color: var(--ink-60); font-size: 0.9em; }

/* ---------- Häufige Fragen: eine ruhige Liste mit Trennlinien ---------- */
.post-body details:not(.quellen) {
  max-width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
}
.post-body details:not(.quellen) + details:not(.quellen) { margin-top: 10px; }
.post-body #faq > details { border-radius: 0; border-top-width: 0; margin-top: 0; }
.post-body #faq > h2 + details { border-top-width: 1px; border-radius: 18px 18px 0 0; margin-top: 0.9em; }
.post-body #faq > details:last-child { border-radius: 0 0 18px 18px; }
.post-body #faq > h2 + details:last-child { border-radius: 18px; }
.post-body details > summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding: 18px 22px;
  border-radius: inherit;
  font-family: var(--serif-text);
  font-size: 1em; font-weight: 600; line-height: 1.42; letter-spacing: -0.012em;
  color: var(--ink);
  transition: background-color 160ms;
}
.post-body details > summary::-webkit-details-marker { display: none; }
.post-body details > summary::after {
  content: ""; flex: none; width: 20px; height: 20px; margin-top: 0.1em;
  background-color: var(--ink-60);
  -webkit-mask-image: var(--ed-i-chev); mask-image: var(--ed-i-chev);
  transition: transform 280ms var(--ed-ease);
}
.post-body details[open] > summary::after { transform: rotate(180deg); }
.post-body details:not(.quellen) > summary:hover { background: var(--ed-hover); }
.post-body details > summary:focus-visible { outline: 2px solid var(--brand-dark); outline-offset: -2px; }
.post-body details:not(.quellen) > :not(summary) { margin: 0; padding-inline: 22px; max-width: none; color: var(--ink-80); font-size: 0.94em; line-height: 1.66; }
.post-body details:not(.quellen) > :not(summary) + :not(summary) { margin-top: 0.7em; }
.post-body details:not(.quellen) > :not(summary):last-child { padding-bottom: 20px; }
.post-body details:not(.quellen) > :is(p, ul, ol) { max-width: calc(var(--measure) + 44px); }
@media (prefers-reduced-motion: no-preference) {
  .post-body { interpolate-size: allow-keywords; }
  .post-body details::details-content { height: 0; overflow: clip; transition: height 300ms var(--ed-ease), content-visibility 300ms allow-discrete; }
  .post-body details[open]::details-content { height: auto; }
}

/* ---------- Quellen: zugeklappt, kleine Schrift ---------- */
.post-body details.quellen {
  max-width: var(--measure);
  margin-top: 3em;
  padding-top: 1.1em;
  border-top: 1px solid var(--border);
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-60);
}
.post-body details.quellen > summary {
  display: inline-flex; gap: 8px; align-items: center;
  padding: 4px 8px 4px 0;
  border-radius: 8px;
  font-family: var(--sans); font-size: 14.5px; font-weight: 600; letter-spacing: 0;
  color: var(--ink-60);
}
.post-body details.quellen > summary::after { width: 16px; height: 16px; margin-top: 0; }
.post-body details.quellen > summary:hover { color: var(--ink); }
.post-body details.quellen[open] > summary { margin-bottom: 10px; }
.post-body details.quellen > :is(ol, ul) { margin: 0; padding-left: 1.3em; font-size: 1em; line-height: 1.55; }
.post-body details.quellen li { overflow-wrap: anywhere; }
.post-body details.quellen li + li { margin-top: 0.45em; }
.post-body details.quellen a { color: var(--ink-60); }
.post-body details.quellen a:hover { color: var(--brand-dark); }

/* ---------- Abschluss-Kasten ---------- */
html[data-variant] section.blog-section-cta {
  padding-top: clamp(16px, 3vw, 40px);
  padding-bottom: clamp(8px, 2vw, 24px);
}
html[data-variant] .blog-cta.page-cta {
  margin-top: 0;
  padding: clamp(36px, 6vw, 72px) clamp(22px, 5vw, 64px);
  border-radius: 32px;
  border: 1px solid var(--border);
  background: radial-gradient(90% 130% at 50% 0%, var(--navy-soft), transparent 70%), var(--surface);
  box-shadow: var(--shadow-sm);
}
html[data-variant] .blog-cta.page-cta h2 {
  font-size: clamp(26px, 2vw + 18px, 42px);
  line-height: 1.08;
  letter-spacing: -0.032em;
  max-width: 22ch;
  margin-left: auto; margin-right: auto;
  overflow-wrap: break-word;
  text-wrap: balance;
}
html[data-variant] .blog-cta.page-cta p { max-width: 52ch; margin: 16px auto 28px; font-size: clamp(16px, 0.3vw + 15px, 18px); line-height: 1.6; }
.blog-cta.page-cta .btns .btn { white-space: normal; text-align: center; justify-content: center; }

/* ---------- Weniger Bewegung: nur Farbe und Deckkraft ändern sich ---------- */
@media (prefers-reduced-motion: reduce) {
  :is(.post-card, .post-card-media img, .post-card-more .arrow, .toc summary::after, .post-body details > summary::after) { transition: none; }
}

/* ---------- Mehr Kontrast, erzwungene Farben ---------- */
@media (prefers-contrast: more) {
  :is(.post-card, .toc details, .kurz, aside.hinweis, .bsp-stark, .vorlage, .table-wrap, .post-body details:not(.quellen)) { border-color: var(--ink-60); }
  .bsp-schwach { border-color: var(--ink-60); }
}
@media (forced-colors: active) {
  :is(.toc summary, .post-body details > summary)::after,
  :is(.kurz li, .bsp-label, .vorlage-kopieren)::before { background-color: CanvasText; forced-color-adjust: none; }
}
