/**
 * Medicus Blog - Styling
 * Hub & Spoke Layout für /blog/ (CPT artikel) + Taxonomien standort/indikation.
 * Verwendet die CSS-Variablen des GeneratePress-Child-Themes, wo vorhanden,
 * mit Fallbacks für die Medicus-Farbwelt (Bordeaux/Burgunder + Elfenbein).
 */

:root {
	--mblog-accent: #7b2430;       /* Medicus Bordeaux */
	--mblog-accent-soft: #f7eeee;
	--mblog-text: #1d1d1b;
	--mblog-muted: #6b6b6b;
	--mblog-bg: #fbfaf7;
	--mblog-card-bg: #ffffff;
	--mblog-border: #eadfd7;
	--mblog-radius: 14px;
	--mblog-shadow: 0 4px 18px rgba(29,29,27,.06);
	--mblog-shadow-hover: 0 10px 30px rgba(29,29,27,.12);
}

/* =====================================================
   Archiv-Layout (/blog/, Taxonomien)
   ===================================================== */
.medicus-blog-archive-wrap {
	max-width: 1180px;
	margin: 0 auto;
	padding: 48px 20px 80px;
}

.medicus-blog-header {
	margin-bottom: 40px;
	text-align: center;
}

.medicus-blog-eyebrow {
	text-transform: uppercase;
	letter-spacing: .12em;
	font-size: .82rem;
	font-weight: 600;
	color: var(--mblog-accent);
	margin: 0 0 8px;
}

.medicus-blog-title {
	font-size: clamp(1.8rem, 3vw, 2.6rem);
	line-height: 1.15;
	margin: 0 0 12px;
	color: var(--mblog-text);
}

.medicus-blog-intro {
	max-width: 760px;
	margin: 0 auto 20px;
	color: var(--mblog-muted);
	font-size: 1.05rem;
	line-height: 1.6;
}

.medicus-blog-backlink a {
	color: var(--mblog-accent);
	font-weight: 500;
	text-decoration: none;
	border-bottom: 1px solid transparent;
	transition: border-color .2s ease;
}

.medicus-blog-backlink a:hover { border-bottom-color: var(--mblog-accent); }

.medicus-blog-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	justify-content: center;
	margin-top: 18px;
}

.medicus-blog-filters strong {
	color: var(--mblog-muted);
	font-weight: 500;
	margin-right: 6px;
}

.mblog-chip {
	display: inline-block;
	padding: 7px 16px;
	border-radius: 999px;
	background: var(--mblog-accent-soft);
	color: var(--mblog-accent);
	font-size: .92rem;
	font-weight: 500;
	text-decoration: none;
	border: 1px solid transparent;
	transition: background-color .2s ease, border-color .2s ease;
}

.mblog-chip:hover,
.mblog-chip.is-active {
	background: var(--mblog-accent);
	color: #fff;
	border-color: var(--mblog-accent);
}

.medicus-blog-section-title {
	font-size: 1.4rem;
	margin: 40px 0 18px;
	color: var(--mblog-text);
}

/* =====================================================
   Karten-Grid
   ===================================================== */
.medicus-blog-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 24px;
}

.mblog-card {
	background: var(--mblog-card-bg);
	border: 1px solid var(--mblog-border);
	border-radius: var(--mblog-radius);
	overflow: hidden;
	box-shadow: var(--mblog-shadow);
	transition: transform .2s ease, box-shadow .2s ease;
}

.mblog-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--mblog-shadow-hover);
}

.mblog-card__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	text-decoration: none;
	color: inherit;
}

.mblog-card__thumb {
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: #f1ece6;
}

.mblog-card__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .4s ease;
}

.mblog-card:hover .mblog-card__thumb img { transform: scale(1.04); }

.mblog-card__body {
	padding: 20px 22px 24px;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.mblog-card__tags {
	font-size: .82rem;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--mblog-accent);
	font-weight: 600;
	margin-bottom: 8px;
}

.mblog-card__title {
	font-size: 1.18rem;
	line-height: 1.35;
	margin: 0 0 10px;
	color: var(--mblog-text);
}

.mblog-card__excerpt {
	color: var(--mblog-muted);
	font-size: .98rem;
	line-height: 1.55;
	flex-grow: 1;
	margin: 0 0 14px;
}

.mblog-card__cta {
	color: var(--mblog-accent);
	font-weight: 600;
	font-size: .95rem;
}

.mblog-card--hub { border-color: var(--mblog-accent); }
.mblog-card--hub .mblog-card__tags { color: var(--mblog-accent); }
.mblog-card--ratgeber .mblog-card__tags { color: #3b6e51; }
.mblog-card.is-featured {
	grid-column: span 2;
}
.mblog-card.is-feature,
.mblog-card.is-featured { box-shadow: var(--mblog-shadow-hover); }

.medicus-blog-hub-feature {
	margin: 16px 0 28px;
}

.medicus-blog-empty {
	text-align: center;
	color: var(--mblog-muted);
	padding: 40px 0;
}

.medicus-blog-pagination {
	margin-top: 40px;
	text-align: center;
}

.medicus-blog-pagination .page-numbers {
	display: inline-block;
	padding: 6px 12px;
	margin: 0 3px;
	border-radius: 6px;
	color: var(--mblog-accent);
	text-decoration: none;
	border: 1px solid var(--mblog-border);
	font-weight: 500;
}

.medicus-blog-pagination .page-numbers.current,
.medicus-blog-pagination .page-numbers:hover {
	background: var(--mblog-accent);
	color: #fff;
	border-color: var(--mblog-accent);
}

/* =====================================================
   Einzelansicht
   ===================================================== */
.medicus-blog-single {
	max-width: 1180px;
	margin: 0 auto;
	padding: 40px 20px 80px;
}

.mblog-single__header {
	margin-bottom: 32px;
}

.mblog-single__breadcrumb {
	font-size: .9rem;
	color: var(--mblog-muted);
	margin-bottom: 14px;
}

.mblog-single__breadcrumb a {
	color: var(--mblog-accent);
	text-decoration: none;
}

.mblog-single__breadcrumb a:hover { text-decoration: underline; }

.mblog-single__title {
	font-size: clamp(1.9rem, 3.4vw, 2.8rem);
	line-height: 1.15;
	margin: 0 0 12px;
}

.mblog-single__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 16px;
	align-items: center;
	font-size: .92rem;
	color: var(--mblog-muted);
}

.mblog-single__badge {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 999px;
	font-size: .78rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .04em;
}

.mblog-single__badge--hub      { background: var(--mblog-accent-soft); color: var(--mblog-accent); }
.mblog-single__badge--ratgeber { background: #e7f0ea; color: #3b6e51; }

.mblog-single__hero {
	margin: 24px 0 0;
	border-radius: var(--mblog-radius);
	overflow: hidden;
}

.mblog-single__hero img {
	width: 100%;
	height: auto;
	display: block;
}

/* Layout: Content + TOC */
.mblog-single__layout {
	display: grid;
	grid-template-columns: 260px 1fr;
	gap: 48px;
	align-items: start;
}

@media (max-width: 900px) {
	.mblog-single__layout {
		grid-template-columns: 1fr;
		gap: 20px;
	}
}

.mblog-single__toc {
	position: sticky;
	top: 90px;
	padding: 20px 22px;
	background: var(--mblog-bg);
	border: 1px solid var(--mblog-border);
	border-radius: var(--mblog-radius);
	font-size: .93rem;
	line-height: 1.5;
}

.mblog-single__toc strong {
	display: block;
	margin-bottom: 10px;
	color: var(--mblog-text);
}

.mblog-single__toc ol {
	margin: 0;
	padding-left: 18px;
}

.mblog-single__toc a {
	color: var(--mblog-accent);
	text-decoration: none;
}

.mblog-single__toc a:hover { text-decoration: underline; }

.mblog-single__content {
	font-size: 1.05rem;
	line-height: 1.72;
	color: var(--mblog-text);
}

.mblog-single__content h2 {
	margin: 2.2em 0 .6em;
	font-size: 1.6rem;
	scroll-margin-top: 100px;
}

.mblog-single__content h3 {
	margin: 1.6em 0 .5em;
	font-size: 1.22rem;
}

.mblog-single__content p { margin: 0 0 1.1em; }
.mblog-single__content ul,
.mblog-single__content ol { margin: 0 0 1.2em 1.4em; }
.mblog-single__content li { margin-bottom: .35em; }

.mblog-single__content a {
	color: var(--mblog-accent);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.mblog-single__content blockquote {
	border-left: 4px solid var(--mblog-accent);
	background: var(--mblog-accent-soft);
	padding: 16px 22px;
	margin: 1.4em 0;
	color: var(--mblog-text);
}

/* =====================================================
   CTA-Block (Spoke → Standort)
   ===================================================== */
.mblog-cta {
	margin: 40px 0 0;
	padding: 28px 28px 24px;
	background: var(--mblog-accent-soft);
	border-radius: var(--mblog-radius);
	border: 1px solid var(--mblog-border);
}

.mblog-cta h2 {
	margin: 0 0 10px;
	font-size: 1.3rem;
	color: var(--mblog-text);
}

.mblog-cta p { margin: 0 0 10px; color: var(--mblog-muted); }

.mblog-cta__btn {
	display: inline-block;
	padding: 11px 22px;
	background: var(--mblog-accent);
	color: #fff !important;
	border-radius: 999px;
	font-weight: 600;
	text-decoration: none;
	margin-right: 10px;
	transition: background-color .2s ease;
}

.mblog-cta__btn:hover { background: #5d1a23; }

.mblog-cta__link {
	color: var(--mblog-accent);
	font-weight: 500;
	text-decoration: none;
}

.mblog-cta__link:hover { text-decoration: underline; }

/* =====================================================
   Related-Box
   ===================================================== */
.mblog-related {
	margin-top: 60px;
	padding-top: 36px;
	border-top: 1px solid var(--mblog-border);
}

.mblog-related h2 {
	font-size: 1.35rem;
	margin: 0 0 20px;
}

.mblog-related__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 20px;
}

.mblog-related__card {
	background: var(--mblog-card-bg);
	border: 1px solid var(--mblog-border);
	border-radius: var(--mblog-radius);
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	display: flex;
	flex-direction: column;
	transition: transform .2s ease, box-shadow .2s ease;
}

.mblog-related__card:hover {
	transform: translateY(-2px);
	box-shadow: var(--mblog-shadow);
}

.mblog-related__thumb {
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: #f1ece6;
}

.mblog-related__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.mblog-related__body {
	padding: 14px 16px 18px;
}

.mblog-related__tag {
	font-size: .78rem;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: var(--mblog-accent);
	font-weight: 600;
	margin-bottom: 6px;
}

.mblog-related__card h3 {
	font-size: 1.02rem;
	margin: 0;
	line-height: 1.35;
	color: var(--mblog-text);
}

/* =====================================================
   Mobile
   ===================================================== */
@media (max-width: 640px) {
	.medicus-blog-archive-wrap,
	.medicus-blog-single { padding: 32px 16px 60px; }
	.mblog-card.is-featured { grid-column: auto; }
	.mblog-cta { padding: 22px 20px; }
	.mblog-cta__btn { display: block; text-align: center; margin: 0 0 10px; }
}
