/* ==========================================================================
   welp-eichler.de · Blog, Stand 16.11.2026
   Lädt zusätzlich zu main.css und nur auf den Blog-Seiten. Farben, Schriften, Radien, Schatten,
   Knöpfe, Kopf- und Fußzeile kommen aus main.css. Es gelten die Regeln dort, dazu:

   1. Ein Artikel beantwortet eine Frage. Die Antwort steht im Vorspann, jede Zwischenüberschrift ist
      eine Frage oder sagt, was folgt, und der erste Satz darunter beantwortet sie.
   2. Jeder Artikel hat ein Schaubild, das ohne JavaScript vollständig ist. Bewegung zeichnet es beim
      ersten Erscheinen einmal nach und entfällt bei „Bewegung reduzieren".
   3. Zahlen stehen nur mit Quelle im Text. Die Quellen stehen am Ende, mit Datum.
   4. Die Ampelfarben gibt es nur im Schaubild der Ampel, immer zusammen mit einem Wort.
   ========================================================================== */

:root {
  --go: #15803d;        /* Ampel grün, 5,0 : 1 auf Weiß */
  --go-bg: #f0fdf4;
  --wait: #b45309;      /* Ampel gelb als dunkles Bernstein, 5,0 : 1 auf Weiß */
  --wait-bg: #fffbeb;
  --stop-bg: #fef2f2;   /* Ampel rot ist --error aus main.css */
}

/* ---------- Übersicht ---------- */

.blog { overflow-x: clip; padding-block: clamp(2.5rem, 6vw, 4.5rem) var(--section); }
.blog__in { width: min(100% - 2 * var(--gutter), 52rem); margin-inline: auto; }
.blog h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem); line-height: 1.08; }
.blog__lead { max-width: 40rem; margin-top: 1rem; font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem); }

/* Liste der Artikel: Zeilen mit Haarlinie, links ein kleines Bild des Schaubilds aus dem Artikel.
   Die ganze Zeile ist anklickbar (der Link der Überschrift reicht über die Zeile). */
.posts { margin-top: clamp(2rem, 4vw, 3rem); border-top: 1px solid var(--line); }
.teaser { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 clamp(1rem, 3vw, 1.75rem); padding-block: clamp(1.25rem, 3vw, 1.75rem); border-bottom: 1px solid var(--line); }
.teaser__thumb { grid-row: 1 / span 3; display: grid; place-items: center; width: clamp(4rem, 12vw, 6.5rem); aspect-ratio: 1; border-radius: var(--r-m); background: var(--blue-50); color: var(--blue-600); transition: background-color 0.2s ease-out, transform 0.3s var(--ease); }
.teaser__thumb svg { width: 62%; height: 62%; }
.teaser h2 { font-size: clamp(1.1875rem, 1.05rem + 0.7vw, 1.5rem); line-height: 1.2; }
.teaser h2 a { text-decoration: none; }
.teaser h2 a::after { content: ""; position: absolute; inset: 0; }
.teaser p { margin-top: 0.375rem; max-width: 38rem; }
.teaser__meta { font-size: 0.875rem; }
.teaser:hover .teaser__thumb { background: var(--blue-100); transform: scale(1.04); }
.teaser:hover h2 a { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 0.2em; }

/* ---------- Artikel ---------- */

.post { overflow-x: clip; padding-block: clamp(2rem, 5vw, 3.5rem) var(--section); }
.post__in { width: min(100% - 2 * var(--gutter), 44rem); margin-inline: auto; }
.post__crumb { font-size: 0.9375rem; }
.post__crumb a { color: var(--text); font-weight: 600; text-decoration: none; }
.post__crumb a:hover { color: var(--navy); text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 0.3em; }
.post h1 { margin-top: 0.875rem; font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem); line-height: 1.08; }
/* Vorspann: die Antwort auf die Frage der Überschrift */
.post__lead { margin-top: 1.25rem; font-size: clamp(1.125rem, 1.05rem + 0.45vw, 1.3125rem); line-height: 1.55; color: var(--navy); }
.post__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; margin-top: 1.5rem; font-size: 0.9375rem; }
.post__meta .avatar { width: 2.5rem; height: 2.5rem; box-shadow: none; }
.post__meta a { color: var(--navy); font-weight: 600; text-decoration: none; }
.post__meta a:hover { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 0.3em; }
.post__meta time { font-variant-numeric: tabular-nums; }

/* „Kurz gesagt": die drei bis vier Kernaussagen, für eilige Leser und zum Zitieren */
.short { margin-top: 2rem; padding: 1.25rem 1.5rem 1.375rem; border-radius: var(--r-m); background: var(--blue-50); }
.short h2 { font-size: 1.0625rem; line-height: 1.3; letter-spacing: 0; }
.short ul { display: grid; gap: 0.5rem; margin-top: 0.75rem; }
.short li { position: relative; padding-left: 1.5rem; color: var(--navy); }
.short li::before { content: ""; position: absolute; left: 0; top: 0.75em; width: 0.875rem; height: 2px; border-radius: 1px; background: var(--orange); }

.post__body { margin-top: 0.5rem; font-size: 1.0625rem; line-height: 1.7; }
.post__body > * + * { margin-top: 1rem; }
.post__body h2 { margin-top: 2.75rem; font-size: clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem); line-height: 1.2; scroll-margin-top: calc(var(--header-h) + 1rem); }
.post__body h3 { margin-top: 1.75rem; font-size: 1.1875rem; line-height: 1.3; }
.post__body strong { color: var(--navy); }
.post__body p a, .post__body li a, .sources a { color: var(--navy); font-weight: 600; text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 0.3em; overflow-wrap: anywhere; }
.post__body p a:hover, .post__body li a:hover, .sources a:hover { text-decoration-thickness: 3px; }
.post__body ul:not([class]), .post__body ol:not([class]) { display: grid; gap: 0.5rem; padding-left: 1.375rem; }
.post__body ul:not([class]) { list-style: disc; }
.post__body ol:not([class]) { list-style: decimal; }
.post__body li::marker { color: var(--navy); font-weight: 600; }
/* Quellenziffern: line-height 0, damit die Zeile mit der Ziffer nicht höher wird als die anderen */
.post__body sup { line-height: 0; }
.post__body sup a { padding-inline: 0.125rem; font-size: 0.8125rem; text-decoration: none; }

/* Abhakliste */
.checks { display: grid; gap: 0.625rem; }
.checks li { position: relative; padding-left: 1.875rem; }
.checks li::before { content: ""; position: absolute; left: 0.25rem; top: 0.45em; width: 0.5rem; height: 0.875rem; border: solid var(--blue-600); border-width: 0 2px 2px 0; transform: rotate(40deg); transform-origin: 50% 60%; }

/* Tabelle: scrollt auf schmalen Bildschirmen in ihrem eigenen Rahmen */
.table { overflow-x: auto; margin-top: 1.5rem; border: 1px solid var(--line); border-radius: var(--r-s); }
.table table { width: 100%; min-width: 32rem; border-collapse: collapse; font-size: 0.9375rem; line-height: 1.5; }
.table caption { padding: 0.875rem 1rem 0; font-weight: 600; text-align: left; color: var(--navy); }
.table th, .table td { padding: 0.75rem 1rem; text-align: left; vertical-align: top; }
.table thead th { font-weight: 600; color: var(--navy); border-bottom: 1px solid var(--line); }
.table tbody th { font-weight: 600; color: var(--navy); }
.table tbody tr + tr > * { border-top: 1px solid var(--line); }

/* Hinweis im Text (zum Beispiel: kein Rechtsrat) */
.note { padding: 1rem 1.25rem; border-radius: var(--r-s); background: var(--surface); font-size: 0.9375rem; line-height: 1.6; }

/* ---------- Schaubilder ---------- */

.fig { margin-block: 2rem; padding: clamp(1.125rem, 3vw, 1.75rem); border: 1px solid var(--line); border-radius: var(--r-m); background: var(--white); box-shadow: var(--shadow); }
.fig figcaption { margin-top: 1.25rem; font-size: 0.9375rem; line-height: 1.55; }
.fig figcaption strong { display: block; color: var(--navy); }
/* Breite Schaubilder ragen über die Textspalte hinaus */
@media (min-width: 56rem) {
  .fig--wide { width: min(100vw - 2 * var(--gutter), 58rem); margin-inline: calc((100% - min(100vw - 2 * var(--gutter), 58rem)) / 2); }
}

/* Stufenplan: nummerierte Schritte an einer Linie. Schmal untereinander, breit nebeneinander. */
.steps { display: grid; counter-reset: schritt; }
.steps li { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 0.875rem; padding-bottom: 1.25rem; counter-increment: schritt; }
.steps li:last-child { padding-bottom: 0; }
.steps li::before { content: counter(schritt); position: relative; z-index: 1; grid-row: 1 / span 2; display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border: 2px solid var(--blue); border-radius: 50%; background: var(--white); font-weight: 800; font-variant-numeric: tabular-nums; color: var(--navy); }
.steps li::after { content: ""; position: absolute; left: calc(1.25rem - 1px); top: 2.5rem; bottom: 0; width: 2px; background: var(--blue-200); transform-origin: 50% 0; }
.steps li:last-child::after { content: none; }
.steps strong { align-self: end; line-height: 1.3; color: var(--navy); }
.steps span { grid-column: 2; font-size: 0.9375rem; line-height: 1.5; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
@media (min-width: 52rem) {
  .steps { grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); gap: 0 1rem; }
  .steps li { display: block; padding: 0 0 0 0; text-align: left; }
  .steps li::before { margin-bottom: 0.875rem; }
  .steps li::after { left: 2.5rem; right: -1rem; top: calc(1.25rem - 1px); bottom: auto; width: auto; height: 2px; transform-origin: 0 50%; }
  .steps strong { display: block; }
  .steps span { display: block; margin-top: 0.25rem; }
}

/* Wollen, Können, Dürfen: drei Kreise, die sich überschneiden */
.venn { display: block; width: min(100%, 26rem); height: auto; margin-inline: auto; overflow: visible; }
.venn circle { fill: var(--blue-100); stroke: var(--blue); stroke-width: 2; mix-blend-mode: multiply; transform-box: fill-box; transform-origin: 50% 50%; }
.venn .venn__warm { fill: var(--tint-warm); stroke: var(--orange); }
.venn text { font: 800 15px/1 var(--font); fill: var(--navy); text-anchor: middle; }
.venn .venn__small { font-weight: 400; font-size: 11.5px; fill: var(--text); }
.venn .venn__core { font-size: 13px; }

/* Zeitleiste: Stichtage untereinander an einer Linie. Schmal steht das Datum über dem Text, breiter
   links daneben. Gefüllt heißt: gilt bereits, offen: folgt noch, orange: die Stichtage zum Thema
   des Artikels. Die Bedeutung steht immer auch in der Bildunterschrift. */
.timeline { display: grid; }
.timeline li { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 0.875rem; padding-bottom: 1.25rem; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: relative; z-index: 1; grid-column: 1; grid-row: 1 / span 3; width: 1rem; height: 1rem; margin: 0.25rem 0.25rem 0; border: 2px solid var(--blue); border-radius: 50%; background: var(--white); }
.timeline li::after { content: ""; position: absolute; left: calc(0.75rem - 1px); top: 1.25rem; bottom: -0.25rem; width: 2px; background: var(--blue-200); transform-origin: 50% 0; }
.timeline li:last-child::after { content: none; }
.timeline li.is-past::before { border-color: var(--navy); background: var(--navy); }
.timeline li.is-key::before { border-color: var(--orange); background: var(--orange); }
.timeline time { grid-column: 2; font-weight: 800; line-height: 1.3; color: var(--navy); font-variant-numeric: tabular-nums; }
.timeline strong { grid-column: 2; line-height: 1.35; color: var(--navy); }
.timeline span { grid-column: 2; font-size: 0.9375rem; line-height: 1.5; }
@media (min-width: 40rem) {
  .timeline li { grid-template-columns: 10rem auto minmax(0, 1fr); }
  .timeline li::before { grid-column: 2; }
  .timeline li::after { left: calc(10rem + 0.875rem + 0.75rem - 1px); }
  .timeline time { grid-column: 1; grid-row: 1 / span 2; text-align: right; white-space: nowrap; }
  .timeline strong, .timeline span { grid-column: 3; }
}

/* Gesetzestext im Wortlaut, mit Fundstelle darunter */
.law { padding: 1.25rem 1.5rem; border-radius: var(--r-m); background: var(--surface); }
.post__body > .law { margin-block: 1.5rem; }
.law blockquote { margin: 0; }
.law blockquote p { font-size: 1rem; line-height: 1.65; color: var(--navy); }
.law figcaption { margin-top: 0.75rem; font-size: 0.875rem; line-height: 1.5; }

/* Ampel: drei Stufen dafür, was in welches Werkzeug darf. Farbe steht nie allein, jede Stufe hat ein Wort. */
.ampel { display: grid; gap: 0.75rem; }
.ampel li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.25rem 1rem; padding: 1rem 1.125rem; border-radius: var(--r-s); background: var(--go-bg); }
.ampel li::before { content: ""; grid-row: 1 / span 3; width: 1.5rem; height: 1.5rem; margin-top: 0.125rem; border-radius: 50%; background: var(--go); }
.ampel li.is-wait { background: var(--wait-bg); }
.ampel li.is-wait::before { background: var(--wait); }
.ampel li.is-stop { background: var(--stop-bg); }
.ampel li.is-stop::before { background: var(--error); }
.ampel strong { line-height: 1.3; color: var(--go); }
.ampel li.is-wait strong { color: var(--wait); }
.ampel li.is-stop strong { color: var(--error); }
.ampel span { grid-column: 2; font-size: 0.9375rem; line-height: 1.55; color: var(--navy); }
.ampel span b { font-weight: 600; }

/* Matrix Nutzen und Aufwand: Punkte mit Nummern, die Liste daneben erklärt sie.
   Ein Klick auf einen Punkt oder einen Eintrag hebt beide hervor. */
.matrix { display: grid; gap: 1.5rem; }
.matrix__plot { position: relative; aspect-ratio: 1; width: min(100%, 24rem); margin: 0 auto 1.5rem; padding: 0; border: 1px solid var(--line); border-radius: var(--r-s); background:
  linear-gradient(var(--line), var(--line)) 50% 0 / 1px 100% no-repeat,
  linear-gradient(var(--line), var(--line)) 0 50% / 100% 1px no-repeat,
  linear-gradient(135deg, var(--blue-50), var(--white)); }
.matrix__q { position: absolute; padding: 0.5rem 0.625rem; font-weight: 600; font-size: 0.8125rem; line-height: 1.2; color: var(--navy); }
.matrix__q--a { left: 0; top: 0; }
.matrix__q--b { right: 0; top: 0; text-align: right; }
.matrix__q--c { left: 0; bottom: 0; }
.matrix__q--d { right: 0; bottom: 0; text-align: right; }
.matrix__axis { position: absolute; font-size: 0.8125rem; line-height: 1; white-space: nowrap; }
.matrix__axis--x { left: 50%; bottom: -1.375rem; transform: translateX(-50%); }
.matrix__axis--y { left: -1.375rem; top: 50%; transform: translate(-50%, -50%) rotate(-90deg); }
.dot { position: absolute; left: var(--x); bottom: var(--y); display: grid; place-items: center; width: 1.875rem; height: 1.875rem; margin: 0 0 -0.9375rem -0.9375rem; padding: 0; border: 2px solid var(--white); border-radius: 50%; background: var(--navy); color: var(--white); font-weight: 800; font-size: 0.8125rem; font-variant-numeric: tabular-nums; cursor: pointer; transition: transform 0.2s var(--ease), background-color 0.2s ease-out, color 0.2s ease-out; }
.dot::after { content: ""; position: absolute; inset: -0.5rem; }
.dot:hover, .dot[aria-pressed="true"] { background: var(--orange); color: var(--navy); transform: scale(1.18); }
.dot--1 { --x: 17%; --y: 76%; }
.dot--2 { --x: 31%; --y: 66%; }
.dot--3 { --x: 40%; --y: 84%; }
.dot--4 { --x: 22%; --y: 36%; }
.dot--5 { --x: 39%; --y: 24%; }
.dot--6 { --x: 66%; --y: 72%; }
.dot--7 { --x: 78%; --y: 86%; }
.dot--8 { --x: 84%; --y: 22%; }
html:not(.js) .dot { cursor: default; }
.matrix__list { display: grid; gap: 0.25rem; counter-reset: punkt; }
.matrix__list li { position: relative; padding: 0.5rem 0.75rem 0.5rem 2.75rem; border-radius: var(--r-s); font-size: 0.9375rem; line-height: 1.5; counter-increment: punkt; transition: background-color 0.2s ease-out; }
.matrix__list li::before { content: counter(punkt); position: absolute; left: 0.625rem; top: 0.5rem; display: grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--navy); color: var(--white); font-weight: 800; font-size: 0.75rem; font-variant-numeric: tabular-nums; transition: background-color 0.2s ease-out, color 0.2s ease-out; }
.matrix__list li.is-on { background: var(--blue-50); }
.matrix__list li.is-on::before { background: var(--orange); color: var(--navy); }
.matrix__list strong { color: var(--navy); }
@media (min-width: 52rem) {
  .matrix { grid-template-columns: minmax(0, 24rem) minmax(0, 1fr); gap: 2.5rem; align-items: start; padding-left: 1.5rem; }
  .matrix__plot { margin: 0 0 1.5rem; }
}

/* Bewegung: Schaubilder zeichnen sich beim ersten Erscheinen einmal nach (blog.js setzt is-armed und
   tauscht es gegen is-in). Ohne JavaScript und bei „Bewegung reduzieren" stehen sie einfach da. */
@media (prefers-reduced-motion: no-preference) {
  .fig.is-armed .steps li::before, .fig.is-armed .timeline li::before, .fig.is-armed .dot { opacity: 0; transform: scale(0.6); }
  .fig.is-armed .steps li::after, .fig.is-armed .timeline li::after { transform: scaleY(0); }
  .fig.is-armed .ampel li { opacity: 0; transform: translate3d(0, 0.5rem, 0); }
  .fig.is-armed .venn circle { opacity: 0; transform: scale(0.82); }
  .fig.is-armed .venn text { opacity: 0; }
  .fig.is-in .steps li::before, .fig.is-in .timeline li::before, .fig.is-in .dot { transition: opacity 0.3s ease-out calc(var(--i, 0) * 0.12s), transform 0.45s var(--ease) calc(var(--i, 0) * 0.12s); }
  .fig.is-in .steps li::after, .fig.is-in .timeline li::after { transition: transform 0.25s ease-out calc(var(--i, 0) * 0.12s + 0.1s); }
  .fig.is-in .ampel li { transition: opacity 0.35s ease-out calc(var(--i, 0) * 0.18s), transform 0.5s var(--ease) calc(var(--i, 0) * 0.18s); }
  .fig.is-in .venn circle { transition: opacity 0.4s ease-out calc(var(--i, 0) * 0.15s), transform 0.7s var(--ease) calc(var(--i, 0) * 0.15s); }
  .fig.is-in .venn text { transition: opacity 0.4s ease-out 0.55s; }
  .fig li:nth-child(2), .fig .dot--2, .venn circle:nth-of-type(2) { --i: 1; }
  .fig li:nth-child(3), .fig .dot--3, .venn circle:nth-of-type(3) { --i: 2; }
  .fig li:nth-child(4), .fig .dot--4 { --i: 3; }
  .fig li:nth-child(5), .fig .dot--5 { --i: 4; }
  .fig li:nth-child(6), .fig .dot--6 { --i: 5; }
  .fig li:nth-child(7), .fig .dot--7 { --i: 6; }
  .fig .dot--8 { --i: 7; }
}
@media (prefers-reduced-motion: no-preference) and (min-width: 52rem) {
  /* Breit liegt nur der Stufenplan waagerecht, die Zeitleiste bleibt senkrecht */
  .fig.is-armed .steps li::after { transform: scaleX(0); }
}

/* ---------- Fragen, Aufruf, Autor, Quellen, weitere Artikel ---------- */

.post .faq__list { max-width: none; margin-top: 1.25rem; }
.post .faq__a { font-size: 1rem; line-height: 1.65; }

.post__cta { margin-top: 3rem; padding: clamp(1.5rem, 4vw, 2.25rem); border-radius: var(--r-l); background: var(--navy); color: var(--blue-200); }
.post__cta h2 { font-size: clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem); line-height: 1.2; color: var(--white); }
.post__cta p { margin-top: 0.625rem; max-width: 34rem; }
.post__cta .btns { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.25rem; }
.post__cta .btn--ghost { background: transparent; color: var(--white); box-shadow: inset 0 0 0 1px var(--line-navy); }
.post__cta .btn--ghost:hover { background: var(--navy-2); }
/* Verweis auf die Leistung, die zum Artikel passt */
.post__cta p.post__related { margin-top: 1.25rem; font-size: 0.9375rem; }
.post__related a { display: inline-block; padding-block: 0.25rem; font-weight: 600; color: var(--white); text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 0.3em; }
.post__related a:hover { text-decoration-thickness: 3px; }

.author { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.25rem 1.125rem; align-items: start; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); font-size: 0.9375rem; line-height: 1.6; }
.author .avatar { grid-row: 1 / span 3; width: 4.5rem; height: 4.5rem; box-shadow: none; }
.author strong { font-size: 1.0625rem; color: var(--navy); }
.author .link { display: inline-block; margin-top: 0.25rem; padding-block: 0.125rem; }

.sources { margin-top: 2.5rem; font-size: 0.9375rem; line-height: 1.6; }
.sources h2 { font-size: 1.0625rem; letter-spacing: 0; }
.sources ol { display: grid; gap: 0.5rem; margin-top: 0.75rem; padding-left: 1.375rem; list-style: decimal; }
.sources li { scroll-margin-top: calc(var(--header-h) + 1rem); }

.more { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.more h2 { font-size: 1.0625rem; letter-spacing: 0; }
.more ul { display: grid; gap: 0.125rem; margin-top: 0.5rem; }
.more a { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.75rem; font-weight: 600; color: var(--navy); text-decoration: none; }
.more a svg { flex: none; width: 1.125rem; height: 1.125rem; color: var(--orange); transition: transform 0.2s var(--ease); }
.more a:hover { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 0.3em; }
.more a:hover svg { transform: translateX(3px); }
