/* checklisten.de – Stylesheet
   Hell, reduziert, ein Akzent: das Limettengrün aus dem Logo. */

:root {
  --bg: #ffffff;
  --bg-soft: #f6f7f2;
  --bg-tint: #f0f5e1;
  --ink: #17191b;
  --ink-2: #464c50;
  --ink-3: #676e72;
  --line: #e4e7de;
  --line-strong: #d3d8cb;
  --brand: #94b91e;          /* Logo-Grün */
  --brand-strong: #73a007;   /* dunkleres Markengrün */
  --brand-ink: #4a6c05;      /* Markengrün für Text auf Weiß (AA) */
  /* Verlauf der alten Seite (Buttons und Rubrik-Icons): hell oben, dunkel unten, dunkler Rand, helle Lichtkante */
  --grad: linear-gradient(to bottom, #c7e044 0%, #73a007 100%);
  --grad-hover: linear-gradient(to bottom, #b6d335 0%, #679005 100%);
  --grad-edge: #74a007;
  --grad-light: inset 0 1px 0 rgba(255, 255, 255, .35);
  --focus: #4a6c05;

  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 14px;
  --radius-sm: 10px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  --step--1: .875rem;
  --step-0: 1rem;
  --step-1: 1.125rem;
  --step-2: clamp(1.25rem, 1.15rem + .4vw, 1.5rem);
  --step-3: clamp(1.6rem, 1.3rem + 1.1vw, 2.25rem);
  --step-4: clamp(2.1rem, 1.5rem + 2.4vw, 3.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 24px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.6;
  font-feature-settings: "ss01" on, "cv11" on;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
button, input { font: inherit; color: inherit; }
::selection { background: var(--bg-tint); }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.i { width: 1.1em; height: 1.1em; flex: none; }

/* ------------------------------------------------------------------ Kopf */

.site-header { background: var(--bg); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.brand { display: inline-flex; flex: none; border-radius: 6px; }
.brand img { width: 122px; height: auto; }

.search { position: relative; display: flex; align-items: center; }
.search input {
  width: 100%;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  border-radius: 999px;
  outline: none;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
  -webkit-appearance: none; appearance: none;
}
.search input::placeholder { color: var(--ink-3); }
.search input:hover { border-color: #bfc6b4; }
.search input:focus { border-color: var(--brand-strong); box-shadow: 0 0 0 4px rgba(148, 185, 30, .18); }
.search input::-webkit-search-cancel-button { -webkit-appearance: none; }

.search--bar { margin-left: auto; width: min(380px, 100%); }
.search--bar input { height: 44px; padding: 0 48px 0 18px; font-size: .9375rem; background: var(--bg-soft); border-color: transparent; }
.search--bar input:focus { background: var(--bg); }
.search--bar button {
  position: absolute; right: 4px; top: 4px; width: 36px; height: 36px;
  display: grid; place-items: center; border: 0; border-radius: 50%;
  background: transparent; color: var(--ink-2); cursor: pointer;
}
.search--bar button:hover { color: var(--ink); background: var(--bg-tint); }

.catnav { border-top: 1px solid var(--line); }
.catnav ul {
  list-style: none; display: flex; gap: 2px;
  overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none;
  margin-inline: -10px; padding: 8px 0;
}
.catnav ul::-webkit-scrollbar { display: none; }
/* Safari staucht Flex-Einträge in einer Scroll-Leiste sonst unter ihre Breite: Abstände verschwinden */
.catnav li { flex: none; }
.catnav a {
  display: flex; align-items: center; gap: 6px; white-space: nowrap; text-decoration: none;
  font-size: .9375rem; color: var(--ink-2);
  padding: 8px; border-radius: 8px;
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.catnav a:hover { color: var(--ink); background: var(--bg-soft); }
.nav-ico { width: 20px; height: 20px; flex: none; }
/* Zwischen Handy und breitem Bildschirm passt die Navigation mit Icons nicht in eine Zeile: ohne Icons und etwas
   enger passt sie ab gut 1.000 px, darunter scrollt sie */
@media (min-width: 721px) and (max-width: 1299px) {
  .nav-ico { display: none; }
  .catnav a { padding-inline: 7px; font-size: .875rem; }
}
.catnav a[aria-current="page"] { color: var(--ink); background: var(--bg-tint); font-weight: 500; }
.catnav li:last-child { margin-left: auto; }
.catnav li:last-child a { color: var(--brand-ink); font-weight: 500; }
/* Scrollt die Leiste, läuft sie randlos bis an den Bildschirmrand, das erste Element bleibt bündig mit dem Logo */
@media (max-width: 1299px) {
  .catnav { position: relative; }
  .catnav ul { margin-inline: calc(-1 * var(--gutter)); padding-inline: calc(var(--gutter) - 8px); }
}
/* Ist sie breiter als der Bildschirm (Klasse setzt site.js), blendet sie rechts aus und lässt am Ende Platz */
.catnav.is-scroll::after {
  content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 40px; pointer-events: none;
  background: linear-gradient(to right, rgba(255,255,255,0), #fff);
  transition: opacity .2s var(--ease);
}
.catnav.is-end::after { opacity: 0; }
.catnav.is-scroll li:last-child { padding-right: 32px; }

@media (max-width: 720px) {
  .bar { flex-wrap: wrap; gap: 12px; padding-block: 14px 12px; min-height: 0; }
  .brand img { width: 110px; }
  .search--bar { width: 100%; margin-left: 0; }
  .catnav ul { gap: 4px; }
}

/* ------------------------------------------------------------------ Typo-Bausteine */

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: var(--step--1); font-weight: 500; color: var(--brand-ink);
  letter-spacing: .01em;
}
.eyebrow .i { width: 18px; height: 18px; color: var(--brand); stroke-width: 2.4; }
.eyebrow-ico { width: 24px; height: 24px; flex: none; }
.card-cat {
  display: inline-block; font-size: .8125rem; font-weight: 500; color: var(--brand-ink);
  text-decoration: none; letter-spacing: .01em;
}
a.card-cat:hover { text-decoration: underline; text-underline-offset: 3px; }
.card-cat--ico { display: inline-flex; align-items: center; gap: 8px; }
.cat-ico { width: 20px; height: 20px; flex: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px; border-radius: 999px;
  font-weight: 500; font-size: .9375rem; text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--primary {
  background: var(--grad); border-color: var(--grad-edge); box-shadow: var(--grad-light);
  /* weiße Schrift wie auf der alten Seite; der dunkelgrüne Schatten hält sie auf dem hellen Teil des Verlaufs lesbar */
  color: #fff; font-weight: 600; text-shadow: 0 1px 1px rgba(46, 70, 0, .55);
}
.btn--primary .i { filter: drop-shadow(0 1px 1px rgba(46, 70, 0, .55)); }
.btn--primary:hover { background: var(--grad-hover); }
.btn--ghost { background: var(--bg); color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--ink-3); }
.btn--block { width: 100%; margin-top: 10px; }

.link-more {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 500; font-size: .9375rem; color: var(--ink); text-decoration: none;
  border-bottom: 1px solid var(--line-strong); padding-bottom: 2px;
  transition: border-color .2s var(--ease), gap .2s var(--ease);
}
.link-more:hover { border-color: var(--ink); gap: 9px; }

/* ------------------------------------------------------------------ Hero */

.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero::before {
  /* feines Raster als ruhiges Hintergrundmotiv */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 85% 40%, #000 0%, transparent 70%);
          mask-image: radial-gradient(ellipse 70% 80% at 85% 40%, #000 0%, transparent 70%);
  opacity: .7;
}
.hero-grid {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  gap: clamp(32px, 6vw, 88px); align-items: center;
  padding-block: clamp(48px, 8vw, 112px);
}
.hero-title { margin-top: 18px; font-size: var(--step-4); letter-spacing: -0.035em; line-height: 1.04; }
.hero-title span { display: block; margin-top: .3em; max-width: 20ch; color: var(--ink-3); font-weight: 500; font-size: .56em; line-height: 1.15; letter-spacing: -0.025em; }
.hero-text { margin-top: 22px; max-width: 56ch; color: var(--ink-2); font-size: var(--step-1); line-height: 1.65; }
.hero-text strong { color: var(--ink); font-weight: 600; }
.search--big { margin-top: 32px; max-width: 560px; gap: 8px; }
.search--big input { height: 56px; padding: 0 140px 0 22px; font-size: 1rem; box-shadow: 0 1px 2px rgba(23, 25, 27, .04); }
.search--big .btn { position: absolute; right: 5px; top: 5px; height: 46px; padding: 0 22px; }
.facts {
  list-style: none; display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 28px;
  color: var(--ink-3); font-size: var(--step--1);
}
.facts strong { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; margin-right: 2px; }
.hero-media { margin: 0; position: relative; }
.hero-media img {
  width: 100%; aspect-ratio: 752 / 500; object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 1px 0 var(--line), 0 30px 60px -30px rgba(23, 25, 27, .25);
}
.hero-media::after {
  /* Haken aus dem Logo als Markenzeichen am Bildrand */
  content: ""; position: absolute; left: -18px; bottom: -18px; width: 64px; height: 64px;
  border-radius: 12px; border: 1px solid var(--grad-edge);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4.5 10.5l3.5 3.5 7.5-8' fill='none' stroke='%23ffffff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 32px no-repeat, var(--grad);
  box-shadow: var(--grad-light), 0 12px 24px -12px rgba(74, 108, 5, .5);
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { max-width: 560px; }
  .hero-media::after { width: 48px; height: 48px; left: 12px; bottom: -16px; border-radius: 10px; background-size: 24px, auto; }
}
@media (max-width: 520px) {
  .search--big input { padding-right: 18px; }
  .search--big { flex-direction: column; align-items: stretch; }
  .search--big .btn { position: static; height: 50px; }
}

/* ------------------------------------------------------------------ Abschnitte */

.block { padding-block: clamp(56px, 8vw, 104px); }
.block + .block { border-top: 1px solid var(--line); }
.block-head {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px clamp(24px, 6vw, 88px); align-items: end;
  margin-bottom: clamp(28px, 4vw, 48px);
}
.block-head--simple { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.block-title { margin-top: 12px; font-size: var(--step-3); letter-spacing: -0.03em; }
.block-head--simple .block-title { margin-top: 0; }
.block-aside { display: grid; gap: 16px; justify-items: start; }
.block-text { color: var(--ink-2); max-width: 60ch; }
@media (max-width: 800px) { .block-head { grid-template-columns: 1fr; } }

/* Themen */
.topics-block { background: var(--bg-soft); }
.topics { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.topic a {
  display: flex; flex-direction: column; gap: 8px; height: 100%;
  padding: 20px 20px 18px; border-radius: var(--radius);
  background: var(--bg); border: 1px solid var(--line); text-decoration: none;
  transition: border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.topic a:hover { border-color: var(--line-strong); transform: translateY(-2px); box-shadow: 0 14px 30px -22px rgba(23, 25, 27, .35); }
.topic-ico { width: 40px; height: 40px; margin-bottom: 4px; }
.topic-name { font-weight: 600; letter-spacing: -0.01em; font-size: 1.0625rem; }
.topic-text {
  color: var(--ink-3); font-size: .875rem; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.topic-meta { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; font-size: .8125rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.topic-meta .i { color: var(--brand-ink); transition: transform .25s var(--ease); }
.topic a:hover .topic-meta .i { transform: translateX(3px); }
@media (max-width: 1100px) { .topics { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .topics { grid-template-columns: 1fr 1fr; gap: 8px; }
  .topic a { padding: 16px; }
  .topic-text { display: none; }
}

/* ------------------------------------------------------------------ Karten */

.card { min-width: 0; }
.card-link { display: flex; flex-direction: column; gap: 16px; height: 100%; text-decoration: none; }
.card-media, .feature-media, .mini-media {
  position: relative; overflow: hidden; border-radius: var(--radius); background: var(--bg-soft);
  isolation: isolate;
}
.card-media::after, .feature-media::after, .mini-media::after, .post-media::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(23, 25, 27, .06);
}
.card-media img, .feature-media img, .mini-media img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  transition: transform .6s var(--ease);
}
.card-link:hover img, .feature-link:hover img, .mini-link:hover img { transform: scale(1.03); }
.card-body { display: grid; gap: 6px; }
.card-title { font-size: 1.125rem; letter-spacing: -0.015em; line-height: 1.3; }
.card-title, .feature-title, .mini-title {
  text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; text-decoration-thickness: 1px;
  transition: text-decoration-color .2s var(--ease);
}
.card-link:hover .card-title, .feature-link:hover .feature-title, .mini-link:hover .mini-title { text-decoration-color: currentColor; }
.card-text {
  color: var(--ink-3); font-size: .9375rem; line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.ph { aspect-ratio: 4 / 3; background: var(--bg-soft); }

/* Reihe auf der Startseite: Raster auf großen, Scroll-Leiste auf kleinen Bildschirmen */
.rail { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
@media (max-width: 1000px) {
  .rail {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(260px, 42%);
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
    margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); padding-bottom: 8px;
    scrollbar-width: thin;
  }
  .rail > * { scroll-snap-align: start; }
}
@media (max-width: 560px) { .rail { grid-auto-columns: 80%; } }

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 3vw, 40px) clamp(16px, 2.4vw, 32px); }
@media (max-width: 960px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }

/* Hervorgehobener Beitrag */
.feature-link { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: center; text-decoration: none; }
.feature-body { display: grid; gap: 12px; justify-items: start; }
.feature-title { font-size: var(--step-3); letter-spacing: -0.03em; line-height: 1.12; }
.feature-text {
  color: var(--ink-2); font-size: var(--step-1); line-height: 1.6; max-width: 52ch;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.cat-block--alt { background: var(--bg-soft); }
.cat-block--alt .mini { border-color: var(--line-strong); }
.cat-block--alt .mag-list { border-color: var(--line-strong); }
.more { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-weight: 500; font-size: .9375rem; }
.more .i { color: var(--brand-ink); transition: transform .25s var(--ease); }
.feature-link:hover .more .i { transform: translateX(3px); }
@media (max-width: 800px) { .feature-link { grid-template-columns: 1fr; } }

/* Magazin: großer Aufmacher + Liste */
.mag-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.mag-grid .feature-link { grid-template-columns: 1fr; align-items: start; }
.mag-grid .feature-title { font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem); }
.mag-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.mini { border-bottom: 1px solid var(--line); }
.mini-link { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 18px; padding-block: 20px; text-decoration: none; align-items: start; }
.mini-media { border-radius: var(--radius-sm); }
.mini-title { font-size: 1.0625rem; line-height: 1.3; letter-spacing: -0.01em; }
.mini-text {
  margin-top: 6px; color: var(--ink-3); font-size: .875rem; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
@media (max-width: 900px) { .mag-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .mini-link { grid-template-columns: 96px minmax(0, 1fr); gap: 14px; } .mini-text { display: none; } }

/* ------------------------------------------------------------------ Seitenkopf / Kategorien */

.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: .8125rem; color: var(--ink-3); }
.crumbs li { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.crumbs li + li::before { content: "/"; color: var(--line-strong); }
.crumbs a { text-decoration: none; color: var(--ink-2); }
.crumbs a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
/* Als Block, damit die Auslassungspunkte greifen (in inline-flex schneidet der Text hart ab) */
.crumbs li[aria-current] { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 36ch; }
.crumbs li[aria-current]::before { margin-right: 8px; }
/* Auf Artikelseiten steht der Titel auf dem Handy direkt darunter als Überschrift: der letzte Krümel bräche sonst um und begänne mit „/“ */
@media (max-width: 720px) { .crumbs li[aria-current]:nth-child(n+3) { display: none; } }

.page-head { padding-top: clamp(28px, 4vw, 44px); padding-bottom: clamp(32px, 5vw, 64px); }
.page-head-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px clamp(24px, 6vw, 88px);
  align-items: end; margin-top: clamp(32px, 5vw, 64px);
}
.page-title { margin-top: 14px; font-size: var(--step-4); letter-spacing: -0.035em; line-height: 1.04; }
.page-head > .page-title { margin-top: clamp(28px, 4vw, 48px); }
.page-text { color: var(--ink-2); font-size: var(--step-1); line-height: 1.65; max-width: 62ch; }
.page-meta { margin-top: 14px; color: var(--ink-3); font-size: var(--step--1); font-variant-numeric: tabular-nums; }
@media (max-width: 800px) { .page-head-grid { grid-template-columns: 1fr; } }

.listing { padding-bottom: clamp(56px, 8vw, 104px); }
.cat-lead { padding-bottom: clamp(36px, 5vw, 56px); margin-bottom: clamp(36px, 5vw, 56px); border-bottom: 1px solid var(--line); }

.pagination { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: clamp(48px, 6vw, 72px); padding-top: 24px; border-top: 1px solid var(--line); }
.pagination ol { list-style: none; display: flex; gap: 4px; }
.pagination ol a {
  display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 8px; border-radius: 999px;
  text-decoration: none; color: var(--ink-2); font-variant-numeric: tabular-nums;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.pagination ol a:hover { background: var(--bg-soft); color: var(--ink); }
.pagination ol a[aria-current] { background: var(--ink); color: #fff; }
.pg-step { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; font-size: .9375rem; text-decoration: none; }
.pg-step:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 640px) {
  .pagination { flex-wrap: wrap; justify-content: center; }
  .pagination ol { order: -1; width: 100%; justify-content: center; }
}

/* ------------------------------------------------------------------ Beitrag */

.post-head { padding-top: clamp(28px, 4vw, 44px); padding-bottom: clamp(36px, 5vw, 64px); }
.post-head-grid {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 32px clamp(32px, 6vw, 88px); align-items: center; margin-top: clamp(28px, 4vw, 52px);
}
.post-head-grid--solo { grid-template-columns: minmax(0, 820px); }
.post-head-copy { display: grid; gap: 16px; justify-items: start; }
.post-title { font-size: var(--step-4); letter-spacing: -0.035em; line-height: 1.05; }
.standfirst { color: var(--ink-2); font-size: var(--step-2); line-height: 1.5; letter-spacing: -0.01em; max-width: 46ch; font-weight: 400; }
.post-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
/* Auf dem Handy passen beide Buttons nicht nebeneinander: dann gleich breit untereinander statt zweier ungleicher Zeilen */
@media (max-width: 520px) { .post-actions .btn { flex: 1 1 100%; justify-content: center; } }
.post-media { margin: 0; position: relative; }
.post-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.post-media::after { bottom: auto; aspect-ratio: 4 / 3; }
.post-media figcaption { margin-top: 10px; font-size: .75rem; color: var(--ink-3); }
@media (max-width: 900px) {
  .post-head-grid { grid-template-columns: 1fr; }
  .post-media { order: -1; }
}

.post-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 360px;
  gap: clamp(40px, 6vw, 96px); align-items: start;
  padding-top: clamp(36px, 5vw, 64px); padding-bottom: clamp(56px, 8vw, 104px);
  border-top: 1px solid var(--line);
}
.post-layout.wrap { border-top: 0; position: relative; }
.post-layout.wrap::before {
  content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); height: 1px; background: var(--line);
}
.post-layout--solo { grid-template-columns: minmax(0, 720px); }
.post-aside-inner { position: sticky; top: 24px; display: grid; gap: 16px; }
@media (max-width: 1000px) {
  .post-layout { grid-template-columns: minmax(0, 1fr); }
  .post-aside-inner { position: static; }
}

/* Fließtext */
.prose { max-width: 68ch; font-size: 1.0625rem; line-height: 1.75; color: var(--ink-2); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 {
  margin-top: 2.2em; color: var(--ink); font-size: var(--step-2); line-height: 1.3; letter-spacing: -0.02em;
  scroll-margin-top: 24px;
}
.prose h3 { margin-top: 1.9em; color: var(--ink); font-size: 1.1875rem; line-height: 1.35; letter-spacing: -0.015em; }
.prose h4 { margin-top: 1.6em; color: var(--ink); font-size: 1.0625rem; }
.prose > :first-child { margin-top: 0; }
.prose h2 + *, .prose h3 + *, .prose h4 + * { margin-top: .6em; }
.prose strong, .prose b { color: var(--ink); font-weight: 600; }
.prose a { color: var(--brand-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: rgba(74, 108, 5, .4); transition: text-decoration-color .2s var(--ease); }
.prose a:hover { text-decoration-color: currentColor; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .45em; }
.prose ul li::marker { color: var(--brand-strong); }
.prose ol li::marker { color: var(--ink-3); font-variant-numeric: tabular-nums; }
.prose img { border-radius: var(--radius-sm); }
.prose blockquote { margin-inline: 0; padding-left: 20px; border-left: 2px solid var(--brand); color: var(--ink); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.prose table { width: 100%; border-collapse: collapse; font-size: .9375rem; line-height: 1.5; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.prose tr:last-child td { border-bottom: 0; }
.prose th { color: var(--ink); background: var(--bg-soft); font-weight: 600; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin-block: 2em; }
.prose code { font-size: .9em; padding: 2px 6px; border-radius: 6px; background: var(--bg-soft); color: var(--ink); }

/* Disclaimer am Ende jedes Artikels */
.post-end { padding-bottom: clamp(56px, 8vw, 104px); }
.disclaimer { max-width: 68ch; padding-top: 1.4em; border-top: 1px solid var(--line); font-size: var(--step--1); line-height: 1.6; color: var(--ink-3); }
.disclaimer > h2 { margin: 0 0 .5em; font-size: var(--step-0); color: var(--ink-2); }
.disclaimer > p { margin: 0; }

/* Häufige Fragen (Artikel aus dem CMS) */
.faq { margin-top: 2.6em; }
.faq > h2 { margin-top: 0; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq > h2 + .faq-item { margin-top: 1em; border-top: 1px solid var(--line); }
.faq-item + .faq-item { margin-top: 0; }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 0; cursor: pointer; list-style: none; color: var(--ink); font-weight: 600; line-height: 1.4;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; flex: none; width: 9px; height: 9px; margin-right: 4px;
  border-right: 2px solid var(--brand-strong); border-bottom: 2px solid var(--brand-strong);
  transform: rotate(45deg); transition: transform .2s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(-135deg); }
.faq-answer { padding-bottom: 18px; }
.faq-answer > * + * { margin-top: .8em; }

/* Vorschau eines Entwurfs im CMS */
.preview-note {
  padding: 10px 14px; border-radius: var(--radius-sm); background: var(--bg-tint);
  color: var(--brand-ink); font-size: var(--step--1); font-weight: 500;
}
.prose--legal { font-size: 1rem; }
.prose--legal h2 { font-size: 1.25rem; }
.prose--legal p, .prose--legal li { overflow-wrap: anywhere; }

/* Seitenleiste */
.box { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: var(--bg); }
.box--checklist { background: var(--bg-soft); border-color: transparent; scroll-margin-top: 24px; }
.box-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: .8125rem; font-weight: 500; color: var(--brand-ink); }
.box-title { margin-top: 8px; font-size: 1.1875rem; line-height: 1.3; letter-spacing: -0.015em; }
.box-title--small { margin-top: 0; font-size: .9375rem; letter-spacing: 0; color: var(--ink); }
.ticks { list-style: none; margin: 18px 0 14px; display: grid; gap: 2px; }
.ticks li {
  display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start;
  padding: 9px 0; border-top: 1px solid var(--line); font-size: .9375rem; line-height: 1.45; color: var(--ink);
}
.ticks li:first-child { border-top: 0; }
.ticks .i {
  width: 22px; height: 22px; padding: 3px; margin-top: -1px; border-radius: 5px;
  background: var(--grad); border: 1px solid var(--grad-edge); box-shadow: var(--grad-light); color: #fff;
}
.links { list-style: none; margin-top: 12px; display: grid; }
.links a {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 10px 0; border-top: 1px solid var(--line); text-decoration: none; font-size: .9375rem; color: var(--ink-2);
  transition: color .2s var(--ease);
}
.links li:first-child a { border-top: 0; }
.links a .i { color: var(--ink-3); transition: transform .25s var(--ease), color .2s var(--ease); }
.links a:hover { color: var(--ink); }
.links a:hover .i { color: var(--brand-ink); transform: translateX(3px); }
.toc { list-style: none; counter-reset: toc; margin-top: 12px; display: grid; }
.toc li { counter-increment: toc; }
.toc a {
  display: grid; grid-template-columns: 24px minmax(0, 1fr); padding: 8px 0; border-top: 1px solid var(--line);
  font-size: .875rem; line-height: 1.45; text-decoration: none; color: var(--ink-2);
}
.toc li:first-child a { border-top: 0; }
.toc a::before { content: counter(toc, decimal-leading-zero); color: var(--ink-3); font-variant-numeric: tabular-nums; font-size: .75rem; padding-top: 2px; }
.toc a:hover, .toc a[aria-current="true"] { color: var(--ink); }
.toc a[aria-current="true"]::before { color: var(--brand-ink); }

.more-block { background: var(--bg-soft); }
.more-block .block-title { font-size: var(--step-2); }

/* ------------------------------------------------------------------ Suche */

.search-results { padding-top: clamp(36px, 5vw, 64px); padding-bottom: clamp(56px, 8vw, 104px); }
.search-results .page-title { font-size: var(--step-3); }
.results-meta { margin: 28px 0 32px; color: var(--ink-3); font-size: var(--step--1); }
.results-empty { padding: 32px; border-radius: var(--radius); background: var(--bg-soft); color: var(--ink-2); }
/* ohne Innenabstand, sonst reißt die Markierung Wörter auseinander („Umzug splaner“); der Schatten gibt etwas Luft ohne Platz zu nehmen */
mark { background: var(--bg-tint); color: inherit; border-radius: 3px; padding: 0; box-shadow: 0 0 0 1px var(--bg-tint); }

.notfound { padding-bottom: clamp(80px, 12vw, 160px); }
.notfound .page-text { margin-top: 16px; }

/* ------------------------------------------------------------------ Fuß */

.site-footer { border-top: 1px solid var(--line); background: var(--bg); }
.foot { display: grid; grid-template-columns: 1.2fr 1.6fr .8fr; gap: 40px; padding-block: 56px 40px; }
.foot-brand p { margin-top: 14px; color: var(--ink-3); font-size: var(--step--1); max-width: 30ch; }
.foot-h { font-size: .8125rem; font-weight: 500; color: var(--ink-3); letter-spacing: .01em; margin-bottom: 14px; }
.foot-nav ul { list-style: none; display: grid; gap: 8px; }
.foot-cols { grid-template-columns: 1fr 1fr; column-gap: 24px; }
.foot-nav a { text-decoration: none; color: var(--ink-2); font-size: .9375rem; }
.foot-nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.foot-base { padding-block: 20px 32px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: .8125rem; }
@media (max-width: 800px) { .foot { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .foot { grid-template-columns: 1fr; } .foot-cols { grid-template-columns: 1fr 1fr; } }

/* ------------------------------------------------------------------ Bewegung */

.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .site-footer, .more-block, .post-actions, .search { display: none !important; }
  .post-layout { display: block; }
  .box { break-inside: avoid; }
}
