/* =============================================================================
   charlottenburg-schloss24.de — blog: /blog/, single posts, category / tag / date / author archives.
   Loaded after theme.css (handle cw-theme) on every page (inc/blog.php). Theme tokens only —
   no new colour, font, radius or shadow; the signal orange stays on the call actions.
   Heads, cards, notes and closing bands are the theme's own classes (.hero--plain / .hero--split,
   .card, .hinweis, .ctaband); this file adds the date lines, the page plates of the pagination and
   the post body. The post body sits in .prose (headings, lists, tables come from theme.css); every
   other block a post may contain (image, quote, separator, details, alignments) is styled here.
   ========================================================================== */

/* ── header: room for the extra menu item ─────────────────────────────────── */
/* "Blog" makes the inline menu ~60px wider. Between 901 and 1040px the lock-up would then run into
   "Leistungen" (measured in Segoe UI: up to ~115px at 901px), so there the header takes the theme's own
   tablet form — burger + drawer, which lists Blog too — exactly as theme.css does at ≤900px.
   Scoped with :has() to the Blog item: inert while no posts page is published (no Blog item). */
@media (min-width:901px) and (max-width:1040px){
  .hdr:has(.cw-blog-nav) .mainnav{display:none}
  .hdr:has(.cw-blog-nav) .burger{display:inline-flex}
  .hdr:has(.cw-blog-nav) .hdr__call{margin-left:auto}
  .no-js .hdr:has(.cw-blog-nav) .menulink{display:inline-flex;align-items:center;min-height:var(--tap);padding:0 6px}
}

/* ── head ─────────────────────────────────────────────────────────────────── */
/* a post title is longer than a page title: one step below the page H1 on the plain head */
.cw-blog-hero--post.hero--plain .hero__h{--h1:clamp(2rem,1.35rem + 2vw,2.75rem)}
.cw-blog-meta{display:flex;flex-wrap:wrap;gap:2px 18px;margin-top:var(--s4);font-size:var(--fs-small);line-height:1.5;color:var(--muted)}
.cw-blog-meta time{font-weight:var(--fw-b);color:var(--ink);font-variant-numeric:tabular-nums}
.cw-blog-meta+.hero__cta{margin-top:var(--s6)}

/* ── cards (theme .card markup) ───────────────────────────────────────────── */
.cw-blog-card__date{margin-bottom:10px;font-size:var(--fs-micro);font-weight:var(--fw-b);letter-spacing:.04em;line-height:1.3;color:var(--muted);font-variant-numeric:tabular-nums}
@media (max-width:560px){.cw-blog-card.card--photo .cw-blog-card__date{margin-bottom:4px}}

/* ── pagination (get_the_posts_pagination) — the plates of the related-page chips ── */
.cw-blog-pagination{margin-top:clamp(2rem,1.6rem + 1.6vw,3rem)}
.cw-blog-pagination .screen-reader-text{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.cw-blog-pagination .nav-links{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.cw-blog-pagination .page-numbers{display:inline-flex;align-items:center;justify-content:center;min-width:var(--tap);min-height:var(--tap);padding:8px 14px;border-radius:var(--r-sm);background:var(--surface);border:1px solid var(--line-strong);color:var(--primary);font-weight:var(--fw-b);font-size:1rem;line-height:1.25;text-decoration:none;font-variant-numeric:tabular-nums;transition:background-color var(--dur),border-color var(--dur),color var(--dur)}
.cw-blog-pagination a.page-numbers:hover{background:var(--alt);border-color:var(--brand);color:var(--brand);text-decoration:none}
.cw-blog-pagination .page-numbers.current{background:var(--brand);border-color:var(--brand);color:#fff}
.cw-blog-pagination .page-numbers.dots{min-width:0;padding-inline:2px;border-color:transparent;background:none;color:var(--muted)}

/* ── post body ────────────────────────────────────────────────────────────── */
/* theme.json sets blockGap 0 (the flow layout zeroes block margins): the .prose rhythm of theme.css,
   restated at a specificity that does not depend on the order of the style sheets */
.cw-blog-body .cw-blog-prose>*+*{margin-top:1em}
.cw-blog-body .cw-blog-prose>h2{margin-top:1.8em}
.cw-blog-body .cw-blog-prose>h3{margin-top:1.5em}
.cw-blog-body .cw-blog-prose>h4{margin-top:1.3em}
.cw-blog-body .cw-blog-prose>:is(figure,blockquote,hr,details){margin-block:1.6em}
.cw-blog-body .cw-blog-prose>details+details{margin-top:0}
.cw-blog-body .cw-blog-prose>:first-child{margin-top:0}
.cw-blog-body .cw-blog-prose>:last-child{margin-bottom:0}
.cw-blog-prose::after{content:"";display:table;clear:both}
.cw-blog-prose li>:is(ul,ol){margin-top:.35em}
.cw-blog-prose strong{color:var(--head)}
.cw-blog-prose code{padding:.1em .35em;border-radius:var(--r-xs);background:var(--alt);font-family:ui-monospace,Consolas,"Liberation Mono",monospace;font-size:.9em}
.cw-blog-prose .has-text-align-left{text-align:left}
.cw-blog-prose .has-text-align-center{text-align:center}
.cw-blog-prose .has-text-align-right{text-align:right}

/* images — Media Library only (the CSP allows no foreign image host) */
.cw-blog-prose img{height:auto;max-width:100%;border-radius:var(--r-sm)}
.cw-blog-prose :is(figcaption,.wp-element-caption){margin:var(--s3) 0 0;font-family:var(--font-head);font-style:italic;font-size:var(--fs-small);line-height:1.5;color:var(--muted);text-align:left}
.cw-blog-prose .aligncenter{margin-inline:auto}
.cw-blog-prose .aligncenter :is(figcaption,.wp-element-caption){text-align:center}
.cw-blog-body .cw-blog-prose>.alignleft{float:left;max-width:50%;margin:.35em 1.5em 1em 0}
.cw-blog-body .cw-blog-prose>.alignright{float:right;max-width:50%;margin:.35em 0 1em 1.5em}

/* quote — the burnt rule of the eyebrows, serif italic */
.cw-blog-prose blockquote{margin-inline:0;padding:.15em 0 .15em 1.25em;border-left:3px solid var(--accent);font-family:var(--font-head);font-size:var(--fs-lead);font-style:italic;line-height:1.5;color:var(--head)}
.cw-blog-prose blockquote>*+*{margin-top:.6em}
.cw-blog-prose blockquote cite{display:block;margin-top:.6em;font-family:var(--font);font-size:var(--fs-small);font-style:normal;font-weight:var(--fw-b);color:var(--muted)}

/* table — the grid itself is .prose table (theme.css) */
.cw-blog-prose .wp-block-table{overflow-x:auto}
.cw-blog-prose .wp-block-table table{margin:0}
.cw-blog-prose .wp-block-table thead{border-bottom:2px solid var(--line-strong)}
.cw-blog-prose .wp-block-table tfoot{border-top:2px solid var(--line-strong)}
.cw-blog-prose .wp-block-table.is-style-stripes{border-bottom:0}
.cw-blog-prose .wp-block-table.is-style-stripes tbody tr:nth-child(odd){background:var(--zebra)}

/* separator */
.cw-blog-prose hr{height:0;border:0;border-top:1px solid var(--line);opacity:1}

/* details — the ruled ledger of the FAQ */
.cw-blog-prose details{padding-block:var(--s4);border-block:1px solid var(--line)}
.cw-blog-prose details+details{border-top:0}
.cw-blog-prose summary{cursor:pointer;font-family:var(--font-head);font-size:var(--fs-h3);font-weight:var(--fw-h);line-height:1.3;color:var(--head)}
.cw-blog-prose summary:hover{color:var(--primary)}
.cw-blog-prose details>*+*{margin-top:.75em}

@media (max-width:760px){
  .cw-blog-body .cw-blog-prose>:is(.alignleft,.alignright){float:none;max-width:100%;margin:1.6em 0}
}
