/**
 * WOODPLAN – Blog & Editorial
 * Swiss-Modernism layout discipline on the WOODPLAN brand tokens.
 * Loaded only on blog index, archives and single posts (see functions.php).
 *
 * Motion philosophy: enter = ease-out, < 300ms, transform/opacity only,
 * one or two animated elements per view, fully reduced-motion aware.
 */

.blog-page,
.wp-article {
	/* Strong custom easings — the built-in CSS curves are too weak. */
	--ease-out: cubic-bezier(0.23, 1, 0.32, 1);
	--ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

	/* Neutral scale derived from the brand stone tokens. */
	--blog-ink: #1B2026;          /* --wp-stone-900 */
	--blog-soft-ink: #51596340;
	--blog-muted: #5B6571;        /* AA on white */
	--blog-line: #E6E8EC;
	--blog-line-strong: #D2D7DE;
	--blog-bg-soft: #F8F9FB;
	--blog-azure: var(--wp-azure-400, #2D6A9F);
	--blog-azure-dark: var(--wp-azure-500, #1B4F78);
	--blog-gold: var(--wp-gold-300, #F9B700);
}

/* ───────────────────────────────────────────────
   Page shell — give the blog room to breathe
   ─────────────────────────────────────────────── */
.blog-page {
	max-width: 1180px;
}

/* The eyebrow: small, tracked-out, gold-ruled — the editorial signature. */
.blog-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: .55rem;
	font-size: .75rem;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--blog-azure-dark);
}
.blog-eyebrow::before {
	content: "";
	width: 1.75rem;
	height: 2px;
	background: var(--blog-gold);
	border-radius: 2px;
}

/* ───────────────────────────────────────────────
   Blog masthead (listing header)
   ─────────────────────────────────────────────── */
.blog-masthead {
	padding: .5rem 0 2.25rem;
	border-bottom: 1px solid var(--blog-line);
	margin-bottom: 2.75rem;
}
.blog-masthead__title {
	font-size: clamp(2.1rem, 1.4rem + 2.6vw, 3.25rem);
	font-weight: 800;
	letter-spacing: -0.025em;
	line-height: 1.04;
	margin: .85rem 0 .65rem;
	color: var(--blog-ink);
}
.blog-masthead__lead {
	font-size: 1.125rem;
	line-height: 1.6;
	color: var(--blog-muted);
	max-width: 46ch;
	margin: 0;
}

/* ───────────────────────────────────────────────
   Featured (first) post — the lead story
   ─────────────────────────────────────────────── */
.blog-featured {
	display: grid;
	grid-template-columns: 1.15fr 1fr;
	gap: 2.5rem;
	align-items: center;
	padding-bottom: 2.75rem;
	margin-bottom: 2.75rem;
	border-bottom: 1px solid var(--blog-line);
}
.blog-featured__media {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: 14px;
	aspect-ratio: 16 / 10;
	background: var(--blog-bg-soft);
}
.blog-featured__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 600ms var(--ease-out);
}
.blog-featured:hover .blog-featured__media img {
	transform: scale(1.03);
}
.blog-featured__title {
	font-size: clamp(1.6rem, 1.1rem + 1.8vw, 2.35rem);
	font-weight: 800;
	letter-spacing: -0.022em;
	line-height: 1.1;
	margin: .9rem 0 .7rem;
}
.blog-featured__title a { color: var(--blog-ink); text-decoration: none; }
.blog-featured__excerpt {
	font-size: 1.06rem;
	line-height: 1.65;
	color: var(--blog-muted);
	margin-bottom: 1.25rem;
}

/* No featured image? Keep the lead story full-width and elegant. */
.blog-featured--noimg {
	grid-template-columns: 1fr;
	max-width: 62ch;
}

/* ───────────────────────────────────────────────
   Card grid
   ─────────────────────────────────────────────── */
.blog-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2rem 1.75rem;
}

.post-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--blog-line);
	border-radius: 14px;
	overflow: hidden;
	transition: transform 220ms var(--ease-out), box-shadow 220ms var(--ease-out), border-color 220ms var(--ease-out);
	will-change: transform;
}
.post-card__media {
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--blog-bg-soft);
}
.post-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 500ms var(--ease-out);
}
/* Placeholder when a post has no thumbnail — initial on brand wash. */
.post-card__media--placeholder {
	display: grid;
	place-items: center;
	background:
		radial-gradient(120% 120% at 0% 0%, rgba(45,106,159,.10), transparent 60%),
		var(--blog-bg-soft);
}
.post-card__placeholder-mark {
	font-size: 2.4rem;
	font-weight: 800;
	letter-spacing: -0.04em;
	color: var(--blog-azure);
	opacity: .45;
}
.post-card__body {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	padding: 1.4rem 1.4rem 1.5rem;
}
.post-card__cat {
	font-size: .7rem;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--blog-azure-dark);
	margin-bottom: .55rem;
}
.post-card__title {
	font-size: 1.22rem;
	font-weight: 700;
	letter-spacing: -0.015em;
	line-height: 1.28;
	margin: 0 0 .55rem;
}
.post-card__title a {
	color: var(--blog-ink);
	text-decoration: none;
	/* Make the whole card clickable via a stretched link, accessibly. */
}
.post-card__title a::after {
	content: "";
	position: absolute;
	inset: 0;
}
.post-card__excerpt {
	font-size: .95rem;
	line-height: 1.6;
	color: var(--blog-muted);
	margin: 0 0 1.1rem;
	/* Clamp to keep the grid tidy. */
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.post-card__meta {
	margin-top: auto;
	display: flex;
	align-items: center;
	gap: .5rem;
	font-size: .8rem;
	color: var(--blog-muted);
}
.post-card__meta .dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .5; }

/* Positioning context for the stretched link. */
.post-card { position: relative; }
.post-card__title { position: static; }

/* Hover lift — gated to fine pointers so taps don't trigger it. */
@media (hover: hover) and (pointer: fine) {
	.post-card:hover {
		transform: translateY(-4px);
		box-shadow: 0 18px 40px -22px rgba(27, 32, 38, .35);
		border-color: var(--blog-line-strong);
	}
	.post-card:hover .post-card__media img { transform: scale(1.04); }
	.blog-featured__title a:hover,
	.post-card__title a:hover { color: var(--blog-azure-dark); }
}
/* Keyboard focus must be just as obvious as hover. */
.post-card:focus-within {
	border-color: var(--blog-azure);
	box-shadow: 0 0 0 3px rgba(45, 106, 159, .25);
}
.post-card__title a:focus-visible { outline: none; }

/* ───────────────────────────────────────────────
   Read-more link (featured + listings)
   ─────────────────────────────────────────────── */
.blog-readmore {
	display: inline-flex;
	align-items: center;
	gap: .45rem;
	font-weight: 600;
	font-size: .95rem;
	color: var(--blog-azure-dark);
	text-decoration: none;
}
.blog-readmore .arrow { transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
	.blog-readmore:hover { color: var(--blog-azure); }
	.blog-readmore:hover .arrow { transform: translateX(4px); }
}

/* ───────────────────────────────────────────────
   Stagger-in on first paint (decorative, reduced-motion safe)
   ─────────────────────────────────────────────── */
.wp-js .blog-featured,
.wp-js .blog-grid > * {
	opacity: 0;
	transform: translateY(12px);
	animation: blogReveal 460ms var(--ease-out) forwards;
}
.wp-js .blog-featured { animation-delay: 40ms; }
.wp-js .blog-grid > *:nth-child(1) { animation-delay: 80ms; }
.wp-js .blog-grid > *:nth-child(2) { animation-delay: 130ms; }
.wp-js .blog-grid > *:nth-child(3) { animation-delay: 180ms; }
.wp-js .blog-grid > *:nth-child(4) { animation-delay: 230ms; }
.wp-js .blog-grid > *:nth-child(5) { animation-delay: 280ms; }
.wp-js .blog-grid > *:nth-child(6) { animation-delay: 330ms; }
.wp-js .blog-grid > *:nth-child(n+7) { animation-delay: 360ms; }

@keyframes blogReveal {
	to { opacity: 1; transform: translateY(0); }
}

/* ───────────────────────────────────────────────
   Pagination
   ─────────────────────────────────────────────── */
.blog-page .pagination,
.blog-page .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: .4rem;
	justify-content: center;
	margin-top: 3.5rem;
	padding-top: 2rem;
	border-top: 1px solid var(--blog-line);
}
.blog-page .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 .85rem;
	border-radius: 10px;
	border: 1px solid var(--blog-line);
	color: var(--blog-ink);
	text-decoration: none;
	font-weight: 600;
	font-size: .95rem;
	transition: background-color 160ms var(--ease-out), border-color 160ms var(--ease-out), color 160ms var(--ease-out);
}
.blog-page .page-numbers.current {
	background: var(--blog-azure);
	border-color: var(--blog-azure);
	color: #fff;
}
@media (hover: hover) and (pointer: fine) {
	.blog-page a.page-numbers:hover {
		border-color: var(--blog-azure);
		color: var(--blog-azure-dark);
	}
}
.blog-page a.page-numbers:active { transform: scale(0.97); }

/* ═══════════════════════════════════════════════
   SINGLE POST — editorial article
   ═══════════════════════════════════════════════ */

/* Reading-progress bar — thin, gold, scaleX (GPU). */
.wp-readbar {
	position: fixed;
	top: 0; left: 0;
	height: 3px;
	width: 100%;
	transform: scaleX(0);
	transform-origin: 0 50%;
	background: linear-gradient(90deg, var(--blog-gold), var(--blog-azure));
	z-index: 1200;
	will-change: transform;
}
@media (prefers-reduced-motion: reduce) { .wp-readbar { display: none; } }

.wp-article .entry-header { margin-bottom: 1.75rem; }
.article-cat {
	font-size: .72rem;
	font-weight: 600;
	letter-spacing: .13em;
	text-transform: uppercase;
	color: var(--blog-azure-dark);
}
.article-cat a { color: inherit; text-decoration: none; }
@media (hover: hover) { .article-cat a:hover { color: var(--blog-azure); } }

.wp-article .entry-title {
	font-size: clamp(2rem, 1.35rem + 2.6vw, 3.1rem);
	font-weight: 800;
	letter-spacing: -0.028em;
	line-height: 1.08;
	margin: .85rem 0 1.1rem;
	color: var(--blog-ink);
}

/* Meta row with author chip + date + reading time. */
.article-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .85rem;
	color: var(--blog-muted);
	font-size: .92rem;
}
.article-meta__author {
	display: inline-flex;
	align-items: center;
	gap: .55rem;
	font-weight: 600;
	color: var(--blog-ink);
}
.article-meta__avatar {
	width: 34px; height: 34px;
	border-radius: 50%;
	display: grid; place-items: center;
	background: var(--blog-azure);
	color: #fff;
	font-size: .85rem;
	font-weight: 700;
	letter-spacing: -.01em;
}
.article-meta .sep { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .5; }
.article-meta__rt { display: inline-flex; align-items: center; gap: .35rem; }

/* Beitragsbild – eigene Klasse (NICHT .wp-hero, das ist der Startseiten-Hero
   mit clip-path/full-bleed!). Schlicht, auf exakter Textbreite, runde Ecken. */
.wp-article figure.wp-post-hero {
	margin: 1.9rem 0 0;
	font-size: 1.13rem;   /* gleicher Maß-Kontext wie der Fließtext */
	max-width: 70ch;      /* exakt Textbreite */
}
.wp-article figure.wp-post-hero img {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
	border-radius: 14px;
}

/* Sicherheitsnetz: Beitrags- und Inhaltsbilder laufen nie über den Container. */
.entry-content img,
.blog-page img,
.post-thumbnail img,
.wp-post-image { max-width: 100%; height: auto; }

/* ── Bild-Platzhalter mit Foto-Hinweis ───────── */
.wp-img-placeholder {
	margin: 1.9rem 0 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: .55rem;
	text-align: center;
	padding: 2.75rem 1.5rem;
	border: 2px dashed var(--wp-azure-300, #5A92C0);
	border-radius: 16px;
	background: var(--blog-bg-soft);
	aspect-ratio: 16 / 7;
}
.wp-img-placeholder__icon { color: var(--blog-azure); opacity: .7; }
.wp-img-placeholder__label {
	font-size: .72rem;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--blog-azure-dark);
}
.wp-img-placeholder__hint {
	margin: 0;
	max-width: 54ch;
	font-size: .98rem;
	line-height: 1.5;
	color: var(--blog-muted);
}
.wp-img-placeholder__hint strong { color: var(--blog-ink); }

/* Füll-Variante: im Medien-Slot der Aufmacher-Karte (Blog-Übersicht). */
.wp-img-placeholder--fill {
	margin: 0;
	height: 100%;
	aspect-ratio: auto;
	border-radius: 14px;
	padding: 1.75rem 1.25rem;
}
.wp-img-placeholder--fill .wp-img-placeholder__hint { font-size: .9rem; }

@media (max-width: 600px) {
	.wp-img-placeholder { aspect-ratio: 16 / 10; padding: 2rem 1.1rem; }
}

/* Hairline that separates header from body. */
.article-rule { border: 0; border-top: 1px solid var(--blog-line); margin: 2rem 0; }

/* ── Editorial body typography ───────────────── */
.entry-content {
	font-size: 1.13rem;
	line-height: 1.75;
	color: #25303a;
	max-width: 70ch;
}
.entry-content > p { margin: 0 0 1.35rem; }

/* A leading "Stand: …" italic line reads as a small muted dateline. */
.entry-content > p:first-child:has(em:only-child) {
	font-size: .9rem;
	color: var(--blog-muted);
	margin-bottom: 1.5rem;
}

/* The real intro paragraph (after the dateline, or first if none) becomes
   the editorial lead — slightly larger, darker. :has() degrades gracefully. */
.entry-content > p:first-child:has(em:only-child) + p,
.entry-content > p:first-child:not(:has(em:only-child)) {
	font-size: 1.2rem;
	line-height: 1.62;
	color: var(--blog-ink);
}

.entry-content h2 {
	font-size: clamp(1.5rem, 1.2rem + 1vw, 1.9rem);
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.2;
	margin: 2.6rem 0 1rem;
	scroll-margin-top: 90px;
}
.entry-content h3 {
	font-size: 1.28rem;
	font-weight: 700;
	letter-spacing: -0.012em;
	margin: 2rem 0 .75rem;
	scroll-margin-top: 90px;
}
.entry-content a {
	color: var(--blog-azure-dark);
	text-decoration: underline;
	text-decoration-color: rgba(45,106,159,.35);
	text-underline-offset: 3px;
	text-decoration-thickness: 1.5px;
	transition: text-decoration-color 160ms var(--ease-out), color 160ms var(--ease-out);
}
@media (hover: hover) {
	.entry-content a:hover { color: var(--blog-azure); text-decoration-color: currentColor; }
}
.entry-content ul,
.entry-content ol { margin: 0 0 1.4rem; padding-left: 1.3rem; }
.entry-content li { margin-bottom: .5rem; }
.entry-content li::marker { color: var(--blog-azure); }
.entry-content strong { color: var(--blog-ink); font-weight: 700; }

/* Callout / definition box (the inline border-left blocks in our posts). */
.entry-content p[style*="border-left"] {
	border-radius: 0 10px 10px 0;
	margin: 1.6rem 0 !important;
	color: #2a3540;
}

/* Tables → clean editorial data tables. */
.entry-content table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	margin: 1.75rem 0;
	font-size: .98rem;
	border: 1px solid var(--blog-line);
	border-radius: 12px;
	overflow: hidden;
}
.entry-content thead th {
	background: var(--blog-bg-soft);
	text-align: left;
	font-weight: 700;
	font-size: .82rem;
	letter-spacing: .03em;
	text-transform: uppercase;
	color: var(--blog-ink);
	padding: .8rem 1rem;
	border-bottom: 1px solid var(--blog-line-strong);
}
.entry-content tbody td {
	padding: .85rem 1rem;
	border-bottom: 1px solid var(--blog-line);
	vertical-align: top;
}
.entry-content tbody tr:last-child td { border-bottom: 0; }
.entry-content tbody tr:nth-child(even) td { background: #fcfdfe; }

/* FAQ heading rhythm — h3 questions get a subtle marker. */
.entry-content h2:last-of-type + h3,
.entry-content h3 { position: relative; }

/* Blockquotes. */
.entry-content blockquote {
	margin: 1.75rem 0;
	padding: .4rem 0 .4rem 1.4rem;
	border-left: 3px solid var(--blog-gold);
	font-size: 1.2rem;
	line-height: 1.55;
	color: var(--blog-ink);
	font-weight: 500;
}

/* Inline calculators / forms inside content keep brand inputs. */
.entry-content input[type="number"] {
	border: 1px solid var(--blog-line-strong);
	border-radius: 8px;
	padding: .4rem .55rem;
	font: inherit;
	font-size: .95rem;
	transition: border-color 160ms var(--ease-out), box-shadow 160ms var(--ease-out);
}
.entry-content input[type="number"]:focus-visible {
	outline: none;
	border-color: var(--blog-azure);
	box-shadow: 0 0 0 3px rgba(45,106,159,.2);
}

/* Pull the JSON-LD / script paragraph wrapper out of the flow. */
.entry-content > p > script { display: none; }

/* Tags as chips. */
.entry-footer { border-top: 1px solid var(--blog-line); padding-top: 1.4rem; }
.entry-footer .post-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .6rem; }
.entry-footer .post-tags a {
	display: inline-flex;
	align-items: center;
	padding: .3rem .7rem;
	border-radius: 999px;
	background: var(--blog-bg-soft);
	border: 1px solid var(--blog-line);
	color: var(--blog-muted);
	font-size: .82rem;
	font-weight: 500;
	text-decoration: none;
	transition: background-color 160ms var(--ease-out), color 160ms var(--ease-out), border-color 160ms var(--ease-out);
}
@media (hover: hover) {
	.entry-footer .post-tags a:hover { background: #fff; color: var(--blog-azure-dark); border-color: var(--blog-azure); }
}

/* ── End-of-article CTA card ─────────────────── */
.article-cta {
	margin: 3rem 0 1rem;
	padding: 2rem 2.2rem;
	border-radius: 16px;
	background:
		radial-gradient(140% 140% at 100% 0%, rgba(45,106,159,.14), transparent 55%),
		var(--blog-ink);
	color: #fff;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1.25rem;
}
.article-cta__title { font-size: 1.3rem; font-weight: 700; letter-spacing: -0.015em; margin: 0 0 .3rem; }
.article-cta__text { margin: 0; color: rgba(255,255,255,.72); max-width: 46ch; font-size: .98rem; }
.article-cta__btn {
	flex: none;
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	background: var(--blog-gold);
	color: var(--blog-ink);
	font-weight: 700;
	padding: .8rem 1.4rem;
	border-radius: 10px;
	text-decoration: none;
	transition: transform 160ms var(--ease-out), box-shadow 160ms var(--ease-out), background-color 160ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
	.article-cta__btn:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -12px rgba(249,183,0,.6); }
}
.article-cta__btn:active { transform: scale(0.97); }

/* ── Related posts (same category, no plugin) ─ */
.related-posts {
	margin-top: 3rem;
	padding-top: 2.25rem;
	border-top: 1px solid var(--blog-line);
}
.related-posts__title {
	font-size: 1.5rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.2;
	color: var(--blog-ink);
	margin: 0 0 1.5rem;
}
.blog-grid--related { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 768px) { .blog-grid--related { grid-template-columns: 1fr; } }

/* ── Post-to-post navigation ─────────────────── */
.wp-article .post-navigation {
	margin-top: 2.75rem;
	padding-top: 2rem;
	border-top: 1px solid var(--blog-line);
}
.wp-article .post-navigation .nav-links {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
}
.wp-article .post-navigation .nav-previous a,
.wp-article .post-navigation .nav-next a {
	display: block;
	height: 100%;
	padding: 1.05rem 1.3rem;
	border: 1px solid var(--blog-line);
	border-radius: 12px;
	text-decoration: none;
	transition: border-color 200ms var(--ease-out), background-color 200ms var(--ease-out), transform 200ms var(--ease-out);
}
.wp-article .post-navigation .nav-next { text-align: right; }
.wp-article .post-navigation .nav-subtitle {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	font-size: .72rem;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--blog-muted);
	margin-bottom: .4rem;
}
.wp-article .post-navigation .nav-previous .nav-subtitle::before { content: "\2190"; font-size: .9rem; }
.wp-article .post-navigation .nav-next .nav-subtitle { flex-direction: row-reverse; }
.wp-article .post-navigation .nav-next .nav-subtitle::after { content: "\2192"; font-size: .9rem; }
.wp-article .post-navigation .nav-title {
	display: block;
	font-weight: 700;
	font-size: 1.02rem;
	line-height: 1.3;
	letter-spacing: -0.012em;
	color: var(--blog-ink);
}
@media (hover: hover) and (pointer: fine) {
	.wp-article .post-navigation .nav-previous a:hover,
	.wp-article .post-navigation .nav-next a:hover {
		border-color: var(--blog-azure);
		background: var(--blog-bg-soft);
	}
	.wp-article .post-navigation .nav-previous a:hover { transform: translateX(-3px); }
	.wp-article .post-navigation .nav-next a:hover { transform: translateX(3px); }
}

/* ═══════════════════════════════════════════════
   COMMENTS
   ═══════════════════════════════════════════════ */
.comments-area {
	max-width: 70ch;
	margin-top: 3rem;
	padding-top: 2.25rem;
	border-top: 1px solid var(--blog-line);
}
.comments-title,
.comment-reply-title {
	font-size: 1.5rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.2;
	color: var(--blog-ink);
	margin: 0 0 1.5rem;
}

/* ── Existing comments ──────────────────────── */
.comment-list { list-style: none; margin: 0 0 2.5rem; padding: 0; }
.comment-list ol.children {
	list-style: none;
	margin: 1.1rem 0 0;
	padding-left: 1.1rem;
	border-left: 2px solid var(--blog-line);
}
.comment-list li.comment { margin-bottom: 1.1rem; }
.comment-body {
	padding: 1.2rem 1.3rem 1.25rem;
	border: 1px solid var(--blog-line);
	border-radius: 12px;
	background: #fff;
}
.comment-author { display: flex; align-items: center; gap: .65rem; margin-bottom: .55rem; }
.comment-author .avatar { width: 40px; height: 40px; border-radius: 50%; }
.comment-author .fn { font-weight: 700; font-style: normal; color: var(--blog-ink); }
.comment-author .says { display: none; }
.comment-metadata { font-size: .8rem; color: var(--blog-muted); margin-bottom: .65rem; }
.comment-metadata a { color: inherit; text-decoration: none; }
@media (hover: hover) { .comment-metadata a:hover { color: var(--blog-azure-dark); } }
.comment-content { color: #25303a; line-height: 1.65; }
.comment-content p { margin: 0 0 .75rem; }
.comment-content p:last-child { margin-bottom: 0; }
.reply { margin-top: .6rem; }
.comment-reply-link {
	display: inline-flex;
	align-items: center;
	font-size: .8rem;
	font-weight: 600;
	color: var(--blog-azure-dark);
	text-decoration: none;
	padding: .35rem .75rem;
	border: 1px solid var(--blog-line);
	border-radius: 999px;
	transition: border-color 160ms var(--ease-out), color 160ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
	.comment-reply-link:hover { border-color: var(--blog-azure); color: var(--blog-azure); }
}
.bypostauthor > .comment-body { border-color: var(--blog-azure); box-shadow: 0 0 0 3px rgba(45,106,159,.08); }

/* ── Comment form ───────────────────────────── */
.comment-respond {
	padding: 1.7rem 1.7rem 1.85rem;
	background: var(--blog-bg-soft);
	border: 1px solid var(--blog-line);
	border-radius: 16px;
}
.comment-respond .logged-in-as,
.comment-respond .comment-notes {
	font-size: .9rem;
	line-height: 1.55;
	color: var(--blog-muted);
	margin: 0 0 1.2rem;
}
.comment-respond .logged-in-as a,
.comment-respond .comment-notes a { color: var(--blog-azure-dark); }
.comment-respond .required-field-message,
.comment-respond .required { color: var(--wp-red-300, #CC2529); }

.comment-form { display: flex; flex-direction: column; gap: 1.1rem; }
.comment-form p { margin: 0; }
.comment-form label {
	display: block;
	font-weight: 600;
	font-size: .9rem;
	color: var(--blog-ink);
	margin-bottom: .45rem;
}
.comment-form textarea,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"] {
	width: 100%;
	font: inherit;
	font-size: 1rem;
	color: var(--blog-ink);
	background: #fff;
	border: 1px solid var(--blog-line-strong);
	border-radius: 10px;
	padding: .7rem .85rem;
	transition: border-color 160ms var(--ease-out), box-shadow 160ms var(--ease-out);
}
.comment-form textarea { min-height: 150px; resize: vertical; line-height: 1.6; }
.comment-form textarea:focus-visible,
.comment-form input:focus-visible {
	outline: none;
	border-color: var(--blog-azure);
	box-shadow: 0 0 0 3px rgba(45,106,159,.2);
}
.comment-form-cookies-consent {
	display: flex;
	align-items: flex-start;
	gap: .55rem;
}
.comment-form-cookies-consent input { margin-top: .2rem; }
.comment-form-cookies-consent label { margin: 0; font-weight: 400; color: var(--blog-muted); }

.comment-form .form-submit { margin: 0; }
.wp-comment-submit,
.comment-form input[type="submit"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: .7rem 1.6rem;
	background: var(--blog-azure);
	color: #fff;
	font-weight: 700;
	font-size: 1rem;
	border: 0;
	border-radius: 10px;
	cursor: pointer;
	transition: background-color 160ms var(--ease-out), transform 160ms var(--ease-out), box-shadow 160ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
	.wp-comment-submit:hover,
	.comment-form input[type="submit"]:hover {
		background: var(--blog-azure-dark);
		box-shadow: 0 10px 22px -12px rgba(45,106,159,.7);
	}
}
.wp-comment-submit:active,
.comment-form input[type="submit"]:active { transform: scale(0.97); }

/* Comment pagination reuses the listing pagination styles. */
.comments-area .comment-navigation { margin-bottom: 2rem; }

/* ───────────────────────────────────────────────
   Responsive
   ─────────────────────────────────────────────── */
@media (max-width: 992px) {
	.blog-grid { grid-template-columns: repeat(2, 1fr); }
	.blog-featured { grid-template-columns: 1fr; }
	.blog-featured__media { order: -1; }
	.wp-article .post-navigation .nav-links { grid-template-columns: 1fr; }
	.wp-article .post-navigation .nav-next { text-align: left; }
}
@media (max-width: 600px) {
	.blog-grid { grid-template-columns: 1fr; gap: 1.5rem; }
	.entry-content { font-size: 1.06rem; }
	.entry-content table { font-size: .9rem; }
	.entry-content thead th,
	.entry-content tbody td { padding: .6rem .7rem; }
	.article-cta { flex-direction: column; align-items: flex-start; }
	.article-cta__btn { width: 100%; justify-content: center; }
}

/* ───────────────────────────────────────────────
   Reduced motion — keep meaning, drop movement
   ─────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
	.wp-js .blog-featured,
	.wp-js .blog-grid > * { opacity: 1; transform: none; animation: none; }
	.post-card,
	.post-card__media img,
	.blog-featured__media img,
	.blog-readmore .arrow,
	.article-cta__btn,
	.wp-comment-submit,
	.comment-reply-link,
	.wp-article .post-navigation a { transition: none; }
	.post-card:hover { transform: none; }
	.wp-comment-submit:active { transform: none; }
	.wp-article .post-navigation .nav-previous a:hover,
	.wp-article .post-navigation .nav-next a:hover { transform: none; }
}

/* Lexikon/Glossar: vom CM-Tooltip-Plugin eingefügten „Back to Glossary Index"-Link ausblenden */
.cmtt-backlink,
.cmtt-backlink-top,
.cmtt-backlink-bottom {
	display: none !important;
}

/* =========================================================
   Lexikon-Übersichtsseite (CM Tooltip Glossary Index)
   Angepasst an das Blog-/Editorial-Design von WOODPLAN
   ========================================================= */
.cm-glossary,
.cm-glossary .glossary-container {
	max-width: 100%;
}

/* --- A–Z-Navigationsleiste --- */
.cm-glossary .listNav {
	margin: 0 0 32px;
}
.cm-glossary .listNav .ln-letters {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0;
	overflow: visible;
}
.cm-glossary .ln-letters a {
	float: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 34px;
	height: 34px;
	padding: 0 10px !important;
	margin: 0 !important;
	font-size: 0.9rem !important;
	font-weight: 600;
	line-height: 1 !important;
	color: var(--wp-azure-400, #2D6A9F);
	background: #fff;
	border: 1px solid var(--wp-stone-300, #E7E4DF) !important;
	border-radius: 9px;
	text-decoration: none;
	box-shadow: none;
	transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.cm-glossary .ln-letters a:hover {
	/* Plugin-Hover (springende margin/padding) neutralisieren */
	margin: 0 !important;
	padding: 0 10px !important;
	background: var(--wp-azure-400, #2D6A9F);
	border-color: var(--wp-azure-400, #2D6A9F) !important;
	color: #fff;
}
.cm-glossary .ln-letters a.ln-selected {
	background: var(--wp-azure-400, #2D6A9F);
	border-color: var(--wp-azure-400, #2D6A9F) !important;
	color: #fff;
}
.cm-glossary .ln-letters a.ln-disabled,
.cm-glossary .ln-letters a.ln-disabled:hover {
	color: var(--wp-stone-400, #C9C4BC) !important;
	background: var(--wp-stone-100, #F8F7F5) !important;
	border-color: var(--wp-stone-200, #EFECE7) !important;
	pointer-events: none;
	cursor: default;
}
/* Zähler-Bubble über den Buchstaben ausblenden – wir wollen die klare Leiste */
.cm-glossary .ln-letter-count {
	display: none !important;
}

/* --- Begriffsliste (mehrspaltig, gut scanbar) --- */
.cm-glossary ul.glossaryList {
	list-style: none;
	margin: 4px 0 0;
	padding: 0;
	column-count: 4;
	column-gap: 32px;
}
.cm-glossary ul.glossaryList li {
	list-style: none;
	float: none !important;
	width: auto !important;
	min-width: 0 !important;
	margin: 0 0 12px !important;
	padding: 0 !important;
	border: 0 !important;
	break-inside: avoid;
	-webkit-column-break-inside: avoid;
	page-break-inside: avoid;
}
.cm-glossary ul.glossaryList li a,
.cm-glossary ul.glossaryList a.glossaryLinkMain {
	display: inline;
	font-size: 1.02rem;
	font-weight: 500;
	line-height: 1.5;
	color: var(--wp-azure-400, #2D6A9F);
	text-decoration: none;
	border: 0;
	box-shadow: none;
}
.cm-glossary ul.glossaryList a.glossaryLinkMain:hover,
.cm-glossary ul.glossaryList a.glossaryLinkMain:hover .glossaryLink {
	color: var(--wp-azure-500, #1B4F78);
	text-decoration: underline;
}
/* verschachtelten Tooltip-Link im Index „entschärfen" (keine gepunktete Linie) */
.cm-glossary ul.glossaryList .glossaryLink {
	border: 0 !important;
	background: none !important;
	color: inherit !important;
	text-decoration: none !important;
	box-shadow: none !important;
	cursor: pointer;
}

/* --- Falls „classic"-Buchstaben-Überschriften aktiv sind --- */
.cm-glossary.table.classic ul.glossaryList li.the-index-letter {
	column-span: all;
	float: none !important;
	width: auto !important;
	margin: 22px 0 8px !important;
	padding: 0 !important;
	font-size: 1.5rem;
	font-weight: 800;
	line-height: 1.2;
	color: var(--wp-stone-700, #2E2C28);
	border: 0 !important;
	text-transform: uppercase;
}
.cm-glossary.table.classic ul.glossaryList li.the-letter-separator {
	display: none !important;
}

/* --- Pager (falls Paginierung aktiv) --- */
.cm-glossary ul.pageNumbers {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin-top: 28px;
}
.cm-glossary ul.pageNumbers li {
	border: 1px solid var(--wp-stone-300, #E7E4DF);
	border-radius: 8px;
	background: #fff;
	padding: 4px 10px;
}
.cm-glossary ul.pageNumbers li.selected,
.cm-glossary ul.pageNumbers li:hover {
	background: var(--wp-azure-400, #2D6A9F);
	border-color: var(--wp-azure-400, #2D6A9F);
	color: #fff;
}
.cm-glossary ul.pageNumbers li.selected a,
.cm-glossary ul.pageNumbers li:hover a {
	color: #fff;
}

/* Responsive Spaltenanzahl der Begriffsliste */
@media (max-width: 767.98px) {
	.cm-glossary ul.glossaryList { column-count: 2; }
}
@media (max-width: 419.98px) {
	.cm-glossary ul.glossaryList { column-count: 1; }
}

/* --- Lexikon-Übersichtsseite: Kopf zentriert (Breite bleibt die normale Content-Spalte) --- */
.page-id-3654 .entry-header,
.page-id-3654 .entry-title {
	text-align: center;
}
.page-id-3654 .cm-glossary .listNav .ln-letters {
	justify-content: center;
}
