/**
 * Blog + Wissensbereich reading typography.
 * Spec: Montserrat headings, Lato body. Shop / checkout / account are unchanged.
 */

body.nb-article-typography .blog-details,
body.nb-article-typography .blog-details .col-lg-8,
body.nb-article-typography .contact-info,
body.nb-article-typography .wpg-list-wrapper {
	font-family: Lato, sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.7;
	color: #2d2d2d;
}

/* Headings: Montserrat, dark green #2F5D43 */
body.nb-article-typography .page-banner h1,
body.nb-article-typography .blog-details :is(h1, h2, h3, h4, h5, h6),
body.nb-article-typography .contact-info :is(h1, h2, h3, h4, h5, h6),
body.nb-article-typography .latest-articles .section-title h2,
body.nb-article-typography .latest-articles .article-box h4,
body.nb-article-typography .wpg-list-wrapper :is(h1, h2, h3, h4, h5, h6),
body.nb-article-typography .wpg-list-block-heading {
	font-family: Montserrat, sans-serif !important;
	font-style: normal;
	color: #2f5d43 !important;
	letter-spacing: -0.015em;
	text-transform: none !important;
	word-break: normal;
	overflow-wrap: anywhere;
}

/* H1 — Hauptüberschrift 32px Semibold */
body.nb-article-typography .page-banner h1,
body.nb-article-typography .blog-details h1,
body.nb-article-typography .contact-info h1,
body.nb-article-typography .blog-details .section-title > h2:first-of-type {
	font-size: 32px !important;
	font-weight: 600;
	line-height: 1.2 !important;
	margin: 0 0 28px;
}

body.nb-article-typography .blog-details h1,
body.nb-article-typography .contact-info h1 {
	margin-top: 32px;
}

/* H2 — Abschnitt 26–30px Bold */
body.nb-article-typography .blog-details h2,
body.nb-article-typography .contact-info h2,
body.nb-article-typography .latest-articles .section-title h2 {
	font-size: clamp(26px, 1vw + 1.2rem, 30px) !important;
	font-weight: 700;
	line-height: 1.3 !important;
	margin: 32px 0 22px;
}

/* Article title uses the H1 size, not the in-content H2 size. */
body.nb-article-typography .blog-details .section-title > h2:first-of-type {
	margin-top: 0;
	margin-bottom: 28px;
}

/* H3 — Unterüberschrift 20–22px Semibold */
body.nb-article-typography .blog-details h3,
body.nb-article-typography .contact-info h3 {
	font-size: clamp(20px, 0.4vw + 1.1rem, 22px) !important;
	font-weight: 600;
	line-height: 1.35 !important;
	margin: 28px 0 18px;
}

/* H4 — kleine Überschrift 18px Semibold */
body.nb-article-typography .blog-details h4,
body.nb-article-typography .contact-info h4,
body.nb-article-typography .blog-details h5,
body.nb-article-typography .contact-info h5,
body.nb-article-typography .blog-details h6,
body.nb-article-typography .contact-info h6 {
	font-size: 18px !important;
	font-weight: 600;
	line-height: 1.4 !important;
	margin: 24px 0 16px;
}

body.nb-article-typography .latest-articles .article-box h4 {
	font-size: 18px !important;
	font-weight: 600;
	line-height: 1.35 !important;
	margin: 8px 0 12px;
	min-height: 0;
}

body.nb-article-typography .blog-details :is(h1, h2, h3, h4, h5, h6):first-child,
body.nb-article-typography .contact-info :is(h1, h2, h3, h4, h5, h6):first-child {
	margin-top: 0;
}

/* Body copy: Lato 16px, #2D2D2D, line-height 1.7 */
body.nb-article-typography .blog-details p,
body.nb-article-typography .contact-info p {
	font-family: Lato, sans-serif;
	font-size: 16px !important;
	font-weight: 400;
	line-height: 1.7 !important;
	color: #2d2d2d;
	margin: 0 0 18px;
}

body.nb-article-typography .blog-details p.black {
	color: #2d2d2d;
	font-size: 16px !important;
	font-weight: 400;
	line-height: 1.7 !important;
}

body.nb-article-typography .blog-details .section-title > h2:first-of-type + p.black {
	margin-bottom: 12px;
}

body.nb-article-typography .blog-details li,
body.nb-article-typography .contact-info li {
	font-family: Lato, sans-serif;
	font-size: 16px !important;
	font-weight: 400;
	line-height: 1.7;
	color: #2d2d2d;
	margin: 0 0 9px;
}

body.nb-article-typography .blog-details :is(ul, ol),
body.nb-article-typography .contact-info :is(ul, ol) {
	margin: 0 0 18px;
	padding-left: 1.35em;
}

body.nb-article-typography .blog-details li:last-child,
body.nb-article-typography .contact-info li:last-child {
	margin-bottom: 0;
}

body.nb-article-typography .blog-details a,
body.nb-article-typography .contact-info a {
	color: #2f5d43;
}

body.nb-article-typography .blog-details strong,
body.nb-article-typography .contact-info strong,
body.nb-article-typography .blog-details b,
body.nb-article-typography .contact-info b {
	font-weight: 700;
	color: #2d2d2d;
}

body.nb-article-typography .breadcrumbs,
body.nb-article-typography .breadcrumbs *,
body.nb-article-typography .blog-details .datetext {
	font-family: Lato, sans-serif;
	font-size: 14px;
	font-weight: 400;
	color: #6b7280 !important;
}

body.nb-article-typography .breadcrumbs a:hover {
	color: #2f5d43 !important;
}

body.nb-article-typography .blog-details .sidebar h3 {
	font-family: Montserrat, sans-serif !important;
	font-size: 20px !important;
	font-weight: 600;
	line-height: 1.3 !important;
	color: #2f5d43 !important;
	margin: 0 0 16px;
}

body.nb-article-typography .blog-details .sidebar ul {
	padding-left: 0;
}

body.nb-article-typography .blog-details .sidebar li {
	font-size: 16px !important;
	margin-bottom: 9px;
}

body.nb-article-typography .blog-details blockquote {
	font-family: Lato, sans-serif;
	font-size: 16px !important;
	font-weight: 400;
	line-height: 1.7;
	color: #2d2d2d;
	background: #f3f6f3;
	border: 0;
	border-radius: 8px;
	margin: 24px 0;
	padding: 16px 20px;
}

body.nb-article-typography .nb-glossary-entry .col-12 {
	padding-left: 48px;
	padding-right: 48px;
}

/* Fallback if a cached blog template is still served for a glossary URL. */
body.single-glossary .blog-details .col-lg-4,
body.single-glossary .blog-details .sidebar,
body.single-glossary .latest-articles {
	display: none !important;
}

body.single-glossary .blog-details .col-lg-8 {
	width: 100%;
	max-width: 100%;
	flex: 0 0 100%;
	padding-left: 48px;
	padding-right: 48px;
}

body.nb-article-typography .nb-glossary-back {
	margin: 0 0 24px;
}

body.nb-article-typography .nb-glossary-back a,
body.nb-article-typography .nb-glossary-back-btn {
	display: inline-flex;
	align-items: center;
	font-family: Lato, sans-serif;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
	color: #fff !important;
	background: #2f5d43;
	border-radius: 8px;
	padding: 8px 16px;
	text-decoration: none;
}

body.nb-article-typography .nb-glossary-back a:hover,
body.nb-article-typography .nb-glossary-back-btn:hover {
	background: #254a36;
	color: #fff !important;
	text-decoration: none;
}

body.nb-article-typography .wpg-list-wrapper .wpg-list-block-heading,
body.nb-article-typography .contact-info .wpg-list-block-heading {
	font-size: 20px !important;
	font-weight: 600;
	line-height: 1.3 !important;
	letter-spacing: 0.04em;
	margin: 28px 0 16px;
}

body.nb-article-typography .wpg-list-item-title {
	font-family: Lato, sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.45;
	letter-spacing: 0;
	color: #2d2d2d;
}

@media (max-width: 991px) {
	body.nb-article-typography .nb-glossary-entry .col-12,
	body.single-glossary .blog-details .col-lg-8 {
		padding-left: 28px;
		padding-right: 28px;
	}
}

@media (max-width: 767px) {
	body.nb-article-typography .nb-glossary-entry .col-12,
	body.single-glossary .blog-details .col-lg-8 {
		padding-left: 16px;
		padding-right: 16px;
	}

	body.nb-article-typography .page-banner h1,
	body.nb-article-typography .blog-details h1,
	body.nb-article-typography .contact-info h1,
	body.nb-article-typography .blog-details .section-title > h2:first-of-type {
		font-size: 32px !important;
		margin-bottom: 24px;
	}

	body.nb-article-typography .blog-details h2,
	body.nb-article-typography .contact-info h2 {
		font-size: 24px !important;
		margin: 28px 0 20px;
	}

	body.nb-article-typography .blog-details h3,
	body.nb-article-typography .contact-info h3 {
		font-size: 20px !important;
	}
}
