/* Blog — /blog/, Beiträge (/blog/<slug>/), Kategorie-/Schlagwort-/Datumsarchive.
   Lädt nach style.css (Handle sh-style) und nutzt nur dessen Tokens.
   Das Theme entfernt wp-block-library, classic-theme-styles und global-styles:
   jeder Block, den ein Beitrag nutzen darf (inc/blog.php, allowed_block_types_all),
   ist hier gestaltet — Absatz, Überschrift, Liste, Bild, Zitat, Tabelle, Trenner, Details. */

/* Kopfzeile: neunter Menüpunkt „Blog“. Zwischen 1181 und 1339px ist die Zeile schon mit acht
   Punkten voll (Marke und Menü schrumpfen nicht): dort 8px statt 12px Innenabstand, damit das
   Menü mit „Blog“ schmaler bleibt als vorher ohne. Nur solange der Link sichtbar ist. */
@media (min-width: 1181px) and (max-width: 1339px) {
	body.sh-has-blog .nav__list > li > a { padding-left: 8px; padding-right: 8px; }
}

/* ---------- Hero ---------- */
.sh-blog-hero .hero__kicker .ico { color: var(--blue); }
.sh-blog-hero--post .hero__title { max-width: 24ch; font-size: clamp(1.9rem, 4.2vw, 2.9rem); }
.sh-blog-hero--post .hero__lead { margin-bottom: 1.1em; }
.sh-blog-hero__title--archive { max-width: 26ch; }
.sh-blog-meta { display: flex; align-items: center; gap: 8px; margin: 0; font-size: .92rem; font-weight: 600; color: var(--muted); }
.sh-blog-meta .ico { color: var(--blue); }

/* ---------- Karten (Übersicht + Archive) ---------- */
.sh-blog-card { position: relative; display: flex; flex-direction: column; overflow: hidden; }
.sh-blog-card__media { margin: -26px -26px 20px; aspect-ratio: 16 / 10; background: var(--blue-tint); }
.sh-blog-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sh-blog-card .sh-blog-meta { margin: 0 0 10px; font-size: .86rem; }
.sh-blog-card__title a { color: var(--ink); }
.sh-blog-card__title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.sh-blog-card__title a:hover { text-decoration: none; }
.sh-blog-card:hover .sh-blog-card__title a { color: var(--blue-deep); }
.sh-blog-card__title a:focus-visible { outline: none; }
.sh-blog-card:focus-within { outline: 3px solid var(--accent); outline-offset: 3px; }
.sh-blog-card .card__link { margin-top: auto; }
@media (max-width: 760px) { .sh-blog-card__media { margin: -22px -20px 18px; } }
@media (max-width: 480px) { .sh-blog-card__media { margin: -20px -18px 16px; } }

/* Leerzustand */
.sh-blog-empty { max-width: 760px; margin: 0; }
.sh-blog-empty__title { font-family: var(--display); font-weight: 700; font-size: 1.2rem; color: var(--ink); margin: 0 0 .4em; }

/* Seitennavigation (the_posts_pagination) */
.sh-blog-pagination { margin-top: 44px; }
.sh-blog-pagination .screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.sh-blog-pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.sh-blog-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 46px; min-height: 46px; padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: #fff; color: var(--ink); font-weight: 700; text-decoration: none; }
.sh-blog-pagination a.page-numbers:hover { border-color: var(--blue); color: var(--blue-deep); background: var(--blue-tint); text-decoration: none; }
.sh-blog-pagination .page-numbers.current { background: var(--blue); border-color: var(--blue); color: #fff; }
.sh-blog-pagination .page-numbers.dots { min-width: 0; border: 0; background: none; }

/* ---------- Beitrag ---------- */
.sh-blog-body { padding-top: 56px; }
.sh-blog-aside .sh-blog-aside__title { color: #fff; font-size: 1.15rem; margin: 0 0 .7em; }
.sh-blog-back { margin: 2.2em 0 0; font-weight: 700; }

/* Beitragstext (Gutenberg) */
.sh-blog-prose { max-width: 720px; font-size: 1.06rem; line-height: 1.75; color: var(--ink-soft); }
.sh-blog-prose::after { content: ""; display: table; clear: both; }
.sh-blog-prose > * { margin-top: 0; margin-bottom: 1.15em; }
.sh-blog-prose > :last-child { margin-bottom: 0; }
.sh-blog-prose :is(h2, h3, h4) { color: var(--ink); }
.sh-blog-prose h2 { font-size: clamp(1.45rem, 2.4vw, 1.8rem); margin: 1.7em 0 .55em; }
.sh-blog-prose h3 { font-size: 1.28rem; margin: 1.5em 0 .45em; }
.sh-blog-prose h4 { font-size: 1.1rem; margin: 1.4em 0 .4em; }
.sh-blog-prose > :is(h2, h3, h4):first-child { margin-top: 0; }
.sh-blog-prose strong { color: var(--ink); }
.sh-blog-prose :is(ul, ol) { padding-left: 1.4em; }
.sh-blog-prose li { margin: 0 0 .4em; }
.sh-blog-prose li::marker { color: var(--blue); }
.sh-blog-prose li :is(ul, ol) { margin: .4em 0 0; }
.sh-blog-prose figure { margin: 1.8em 0; }
.sh-blog-prose .wp-block-image img { display: block; height: auto; border-radius: var(--radius); }
.sh-blog-prose :is(figcaption, .wp-element-caption) { margin-top: 10px; font-size: .88rem; line-height: 1.5; color: var(--muted); }
.sh-blog-prose .aligncenter { margin-left: auto; margin-right: auto; text-align: center; }
.sh-blog-prose .aligncenter img { margin-left: auto; margin-right: auto; }
.sh-blog-prose .alignleft { float: left; margin: .3em 1.6em 1em 0; max-width: 50%; }
.sh-blog-prose .alignright { float: right; margin: .3em 0 1em 1.6em; max-width: 50%; }
.sh-blog-prose blockquote { margin: 1.8em 0; padding: 22px 26px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: var(--radius); box-shadow: var(--shadow); color: var(--ink); font-size: 1.1rem; }
.sh-blog-prose blockquote p { margin: 0 0 .6em; }
.sh-blog-prose blockquote p:last-of-type { margin-bottom: 0; }
.sh-blog-prose blockquote cite { display: block; margin-top: .8em; font-size: .88rem; font-style: normal; font-weight: 700; color: var(--muted); }
.sh-blog-prose .wp-block-table { margin: 1.8em 0; overflow-x: auto; }
.sh-blog-prose table { width: 100%; border-collapse: collapse; font-size: .96rem; line-height: 1.5; background: #fff; }
.sh-blog-prose :is(th, td) { border: 1px solid var(--line); padding: 10px 14px; text-align: left; vertical-align: top; }
.sh-blog-prose :is(th, thead td) { background: var(--blue-tint); color: var(--ink); font-weight: 700; }
.sh-blog-prose hr { height: 0; margin: 2.2em 0; border: 0; border-top: 1px solid var(--line-strong); }
.sh-blog-prose details { margin: 1.4em 0; padding: 0 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.sh-blog-prose summary { cursor: pointer; padding: 16px 0; font-family: var(--display); font-weight: 700; color: var(--ink); }
.sh-blog-prose details[open] summary { padding-bottom: 8px; }
.sh-blog-prose details > :not(summary) { margin: 0 0 1em; }
.sh-blog-prose .has-text-align-left { text-align: left; }
.sh-blog-prose .has-text-align-center { text-align: center; }
.sh-blog-prose .has-text-align-right { text-align: right; }
@media (max-width: 600px) {
	.sh-blog-prose :is(.alignleft, .alignright) { float: none; max-width: 100%; margin: 1.8em 0; }
	.sh-blog-prose { font-size: 1rem; }
}
@media (max-width: 760px) { .sh-blog-body { padding-top: 40px; } }
