/* ============================================================
   BLOG REDESIGN — scoped under .nb-blog
   Lädt für: blog, blog-post, learn-lesson
   Konsumiert: --pw-* aus global.css. Zwei komponenten-lokale Tokens
   (--blog-bg-alt, --blog-white) sind an .nb-blog gescoped, weil
   das Blog-Layout im Dark Mode eine UMGEKEHRTE Surface-Hierarchie
   nutzt: die alternative Surface ist DUNKLER als die Page-Surface
   (im globalen Pattern ist sie heller).
   ============================================================ */
.secondaryheader, section.submenu { display: none !important; }

.nb-blog {
	/* Komponenten-lokale Surface-Tokens mit Dark-Mode-Inversion */
	--blog-bg-alt: var(--pw-bg-alt);  /* alternative Surface (Light) */
	--blog-white: var(--pw-bg);       /* Card-Surface (Light) */

	font-family: -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
	color: var(--pw-text);
	background: var(--pw-bg);
	-webkit-font-smoothing: antialiased;
	font-variant-numeric: lining-nums;
}

@media (prefers-color-scheme: dark) {
	.nb-blog {
		--blog-bg-alt: #0a0a0a;   /* dunkler als --pw-bg im Dark Mode (gewünscht) */
		--blog-white: #1a1a1a;    /* Card-Surface (Dark, heller als Section) */
	}
}

/* ---- Block 1: Hero ---- */
.nb-hero {
	position: relative;
	background: linear-gradient(180deg, var(--pw-bg-alt) 0%, #fff 100%);
	padding: var(--pw-section-hero);
	text-align: center;
	overflow: hidden;
}
.nb-hero__bgimage {
	position: absolute;
	left: 8%;
	bottom: 20px;
	width: 560px;
	height: auto;
	opacity: 0.08;
	pointer-events: none;
	user-select: none;
	z-index: 0;
	transform: rotate(-20deg);
	transform-origin: center center;
}
.nb-hero .pw-container { position: relative; z-index: 1; }

#content .nb-hero__title, .nb-hero__title {
	font-size: 44px;
	font-weight: 700;
	line-height: 1.1;
	margin: 0 0 12px;
	color: var(--pw-text);
	letter-spacing: -0.03em;
}
.nb-hero__title em {
	font-style: italic;
	color: var(--pw-brand);
}
.nb-hero__sub {
	font-size: 18px;
	font-weight: 400;
	line-height: 1.6;
	color: var(--pw-text-secondary);
	margin: 0 0 40px;
}

/* Hero search */
.nb-hero__search-wrap { position: relative; max-width: 560px; margin: 0 auto var(--pw-space-md); }
.nb-hero__search {
	display: flex;
	align-items: center;
	max-width: 560px;
	margin: 0 auto;
	background: var(--blog-white);
	border: 1px solid var(--pw-border-light);
	border-radius: var(--pw-radius-md);
	padding: 6px 6px 6px 18px;
	transition: border-color 0.2s, box-shadow 0.2s;
}
.nb-hero__search:focus-within {
	border-color: var(--pw-link);
	box-shadow: 0 0 0 4px rgba(42,127,191,0.12);
}
.nb-hero__search-icon {
	width: 20px;
	height: 20px;
	color: var(--pw-text-muted);
	flex-shrink: 0;
}
.nb-hero__search-input {
	flex: 1;
	padding: 12px 14px;
	font-size: 16px;
	border: none;
	outline: none;
	background: transparent;
	color: var(--pw-text);
	font-family: inherit;
	min-width: 0;
}
.nb-hero__search-input::placeholder { color: var(--pw-text-muted); }
.nb-hero__search-btn {
	padding: 10px 22px;
	font-size: 15px;
	font-weight: 600;
	background: var(--pw-brand);
	color: #fff;
	border: none;
	border-radius: var(--pw-radius-sm);
	cursor: pointer;
	transition: background 0.2s;
	font-family: inherit;
	flex-shrink: 0;
}
.nb-hero__search-btn:hover { background: var(--pw-brand-hover); }

/* Hero popular keywords */
.nb-hero__popular {
	font-size: 13px;
	color: var(--pw-text-muted);
	margin: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: var(--pw-space-sm);
	flex-wrap: wrap;
}
.nb-hero__popular-label { font-weight: 600; }
.nb-hero__popular-pill {
	display: inline-block;
	padding: 5px 14px;
	font-size: 12px;
	font-weight: 600;
	color: var(--pw-brand);
	background: rgba(249,157,27, 0.06);
	border: 1px solid rgba(249,157,27, 0.15);
	border-radius: 20px;
	transition: background 0.15s, border-color 0.15s;
}
.nb-hero__popular-pill:hover {
	background: rgba(249,157,27, 0.12);
	border-color: rgba(249,157,27, 0.28);
	color: var(--pw-brand);
}

/* Live search dropdown */
.nb-search-dropdown {
	display: none;
	position: absolute;
	top: calc(100% + 6px);
	left: 0; right: 0;
	background: var(--blog-white);
	border: 1px solid var(--pw-border);
	border-radius: var(--pw-radius-md);
	box-shadow: var(--pw-shadow-lg);
	z-index: var(--pw-z-dropdown);
	max-height: 320px;
	overflow-y: auto;
	padding: 6px;
}
.nb-search-dropdown.is-visible { display: block; }
.nb-search-dropdown__item {
	display: block;
	padding: 10px 14px;
	font-size: 14px;
	color: var(--pw-text);
	border-radius: 8px;
	transition: background 0.15s;
}
.nb-search-dropdown__item:hover { background: var(--blog-bg-alt); color: var(--pw-text); }
.nb-search-dropdown__item small { display: block; font-size: 11px; color: var(--pw-text-muted); margin-top: 2px; }
.nb-search-dropdown__empty { padding: var(--pw-space-md) 14px; font-size: 13px; color: var(--pw-text-muted); text-align: center; }

/* ---- Block 2: Showcase (auto-rotating carousel) ---- */
.nb-showcase {
	background: var(--blog-bg-alt);
	padding: var(--pw-section-standard);
}
.nb-showcase__inner {
	max-width: 1120px;
	margin: 0 auto;
	padding: 0 var(--pw-space-lg);
}

/* Showcase header */
.nb-showcase__header { text-align: center; margin-bottom: 40px; }
#content .nb-showcase__title, .nb-showcase__title {
	font-size: 30px;
	font-weight: 700;
	color: var(--pw-text);
	margin: 0 0 12px;
	letter-spacing: -0.02em;
}
.nb-showcase__sub {
	font-size: 16px;
	color: var(--pw-text-secondary);
	margin: 0 auto;
	max-width: 640px;
}

/* Carousel */
.nb-carousel {
	position: relative;
	overflow: hidden;
	/* Atemraum oben UND unten, damit Hover-translateY(-2px) der Featured-Card und der
	   nach oben reichende Box-Shadow nicht von overflow:hidden abgeschnitten werden.
	   Negatives margin kompensiert das padding, die Card-Position bleibt unverändert. */
	padding: var(--pw-space-lg) 0;
	margin: -24px 0;
}
.nb-carousel__track {
	display: flex;
	transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
	will-change: transform;
}
.nb-carousel__slide {
	flex: 0 0 100%;
	width: 100%;
	min-width: 0;
	box-sizing: border-box;
}

/* Dots */
.nb-carousel__dots {
	display: flex;
	justify-content: center;
	gap: var(--pw-space-sm);
	margin-top: var(--pw-space-xl);
}
.nb-carousel__dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	border: none;
	background: var(--pw-border-light);
	cursor: pointer;
	padding: 0;
	transition: background 0.2s, transform 0.2s;
}
.nb-carousel__dot:hover { background: var(--pw-text-muted); }
.nb-carousel__dot.active {
	background: var(--pw-link);
	transform: scale(1.25);
}

/* Progress bar under active dot */
.nb-carousel__dots--progress { position: relative; }
.nb-carousel__dot { position: relative; overflow: hidden; width: 48px; height: 6px; border-radius: 3px; padding: 0; cursor: pointer; /* Larger hit area via pseudo-element */ }
.nb-carousel__dot::before {
	content: '';
	position: absolute;
	top: -12px;
	left: -4px;
	right: -4px;
	bottom: -12px;
}
.nb-carousel__dot::after {
	content: '';
	position: absolute;
	top: 0; left: 0; bottom: 0;
	width: 0;
	background: var(--pw-link);
	border-radius: 2px;
	transition: none;
}
.nb-carousel__dot.active { background: var(--pw-border); transform: none; }
.nb-carousel__dot.active::after {
	animation: nb-progress 6s linear forwards;
}
/* Bei Hover über das Karussell pausiert die Progress-Bar synchron mit dem JS-Timer. */
.nb-carousel:hover .nb-carousel__dot.active::after {
	animation-play-state: paused;
}
@keyframes nb-progress {
	from { width: 0; }
	to { width: 100%; }
}

/* Featured slide */
.nb-featured__card {
	display: grid;
	grid-template-columns: 1fr 1fr;
	max-width: 960px;
	margin: 0 auto;
	background: var(--blog-white);
	border: 1px solid var(--pw-border);
	border-radius: var(--pw-radius-md);
	overflow: hidden;
	color: inherit;
	transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.nb-featured__card:hover {
	border-color: var(--pw-border-light);
	box-shadow: var(--pw-shadow-md);
	transform: translateY(-2px);
	color: inherit;
}
.nb-featured__text {
	padding: 36px 36px 36px 40px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 12px;
}
.nb-featured__eyebrow {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--pw-brand);
	margin: 0;
}
#content .nb-featured__title, .nb-featured__title {
	font-size: 24px;
	font-weight: 700;
	line-height: 1.3;
	margin: 0;
	color: var(--pw-text);
	letter-spacing: -0.02em;
}
.nb-featured__excerpt {
	font-size: 15px;
	font-weight: 400;
	line-height: 1.6;
	color: var(--pw-text-secondary);
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.nb-featured__meta {
	font-size: 13px;
	color: var(--pw-text-muted);
	margin: 0;
}
.nb-featured__link {
	font-size: 14px;
	font-weight: 600;
	color: var(--pw-brand);
	margin-top: var(--pw-space-xs);
}
.nb-featured__link:hover { text-decoration: underline; }
.nb-featured__visual {
	min-height: 280px;
	background: linear-gradient(135deg, #eef2f7 0%, #e4e9f0 100%);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	position: relative;
}
.nb-featured__visual img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.nb-featured__default-visual {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 28px;
}

/* Guides slide */
.nb-guides__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: var(--pw-space-lg);
	margin: 0 auto 28px;
	max-width: 960px;
	flex-wrap: wrap;
}
#content .nb-guides__title, .nb-guides__title {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--pw-text-muted);
	margin: 0 0 var(--pw-space-xs);
}
.nb-guides__sub {
	font-size: 14px;
	font-weight: 400;
	color: var(--pw-text-secondary);
	margin: 0;
}
.nb-guides__all {
	font-size: 14px;
	font-weight: 600;
	color: var(--pw-brand);
	white-space: nowrap;
}
.nb-guides__all:hover { text-decoration: underline; }

.nb-guides__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--pw-space-md);
	max-width: 960px;
	margin: 0 auto;
}

/* Guide cards */
.nb-guide-card {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: 28px;
	border-radius: var(--pw-radius-md);
	color: inherit;
	background: var(--blog-white);
	border: 1px solid var(--pw-border);
	transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.nb-guide-card:hover {
	transform: translateY(-2px);
	box-shadow: var(--pw-shadow-md);
	border-color: var(--pw-border-light);
	color: inherit;
}

/* Row 1: icon + label/title side by side */
.nb-guide-card__header {
	display: flex;
	gap: var(--pw-space-md);
	align-items: center;
	margin-bottom: var(--pw-space-md);
}
.nb-guide-card__icon {
	flex-shrink: 0;
	width: 48px;
	height: 48px;
	border-radius: 12px;
	background: #eaf3fa;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--pw-link);
}
.nb-guide-card__icon svg,
.nb-guide-card__icon img { width: 24px; height: 24px; display: block; }
.nb-guide-card__heading { min-width: 0; }
.nb-guide-card__label {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--pw-text-muted);
	margin: 0 0 2px;
}
#content .nb-guide-card__title, .nb-guide-card__title {
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
	margin: 0;
	color: var(--pw-text);
}

/* Row 2: description full width */
.nb-guide-card__sub {
	font-size: 14px;
	font-weight: 400;
	color: var(--pw-text-secondary);
	margin: 0;
	line-height: 1.5;
	flex: 1;
}

/* Arrow: bottom-right, only visible on hover */
.nb-guide-card__arrow {
	position: absolute;
	right: 20px;
	top: 20px;
	width: 20px;
	height: 20px;
	color: var(--pw-text-muted);
	opacity: 0;
	transform: translateX(-4px);
	transition: opacity 0.2s, transform 0.2s, color 0.2s;
}
.nb-guide-card:hover .nb-guide-card__arrow {
	opacity: 1;
	transform: translateX(0);
	color: var(--pw-brand);
}

/* ---- Glossary slide (3rd carousel slide) ---- */
.nb-glossary__head {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: var(--pw-space-lg);
	max-width: 960px;
	margin: 0 auto var(--pw-space-lg);
	padding: 0 12px;
}
#content .nb-glossary__title, .nb-glossary__title {
	font-size: 24px;
	font-weight: 700;
	color: var(--pw-text);
	margin: 0 0 6px;
	letter-spacing: -0.02em;
}
.nb-glossary__sub {
	font-size: 14px;
	color: var(--pw-text-secondary);
	margin: 0;
	line-height: 1.5;
}
.nb-glossary__all {
	flex-shrink: 0;
	font-size: 14px;
	font-weight: 600;
	color: var(--pw-brand);
	transition: color 0.2s;
	white-space: nowrap;
}
.nb-glossary__all:hover { color: var(--pw-brand-hover); }
.nb-glossary__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
	max-width: 960px;
	margin: 0 auto;
	padding: 0 12px;
}
.nb-glossary-card {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 18px 20px;
	background: var(--pw-bg);
	border: 1px solid var(--pw-border);
	border-radius: var(--pw-radius-md);
	color: inherit;
	transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.nb-glossary-card:hover {
	border-color: var(--pw-brand);
	transform: translateY(-2px);
	box-shadow: var(--pw-shadow-md);
	color: inherit;
}
.nb-glossary-card__label {
	font-size: 11px;
	font-weight: 700;
	color: var(--pw-text-muted);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	margin: 0;
}
.nb-glossary-card__term {
	font-size: 16px;
	font-weight: 700;
	color: var(--pw-text);
	margin: 0;
	line-height: 1.3;
}
.nb-glossary-card__excerpt {
	font-size: 13px;
	color: var(--pw-text-secondary);
	margin: 0;
	line-height: 1.45;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
@media (max-width: 900px) {
	.nb-glossary__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
	.nb-glossary__head { flex-direction: column; align-items: flex-start; gap: var(--pw-space-sm); }
	.nb-glossary__grid { grid-template-columns: 1fr; }
}

/* ---- Block 3: Articles + Sidebar ---- */
.nb-articles {
	background: var(--pw-bg);
	padding: var(--pw-section-standard);
}
.nb-articles__header {
	text-align: center;
	max-width: 1120px;
	margin: 0 auto var(--pw-space-2xl);
	padding: 0 var(--pw-space-lg);
}
#content .nb-articles__title, .nb-articles__title {
	font-size: 30px;
	font-weight: 700;
	color: var(--pw-text);
	margin: 0 0 12px;
	letter-spacing: -0.02em;
}
.nb-articles__sub {
	font-size: 16px;
	color: var(--pw-text-secondary);
	margin: 0 auto;
	max-width: 640px;
}
.nb-articles__inner {
	display: grid;
	grid-template-columns: 180px 1fr;
	gap: var(--pw-space-xl);
	max-width: 1120px;
	margin: 0 auto;
	padding: 0 var(--pw-space-lg);
	align-items: start;
}

/* Sidebar */
.nb-sidebar { position: sticky; top: 84px; }
.nb-sidebar__label {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--pw-text-muted);
	margin: 0 0 12px;
}
.nb-sidebar__list {
	list-style: none;
	margin: 0 0 20px;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.nb-sidebar__link {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 7px 0;
	font-size: 14px;
	font-weight: 500;
	color: var(--pw-text);
	transition: color 0.15s;
}
.nb-sidebar__link:hover { color: var(--pw-brand); }
.nb-sidebar__link--active { color: var(--pw-brand); font-weight: 600; }
.nb-sidebar__count {
	font-size: 12px;
	color: var(--pw-text-muted);
	font-variant-numeric: tabular-nums;
}
.nb-sidebar__link--active .nb-sidebar__count { color: var(--pw-brand); }
.nb-sidebar__divider {
	border: none;
	border-top: 1px solid var(--pw-border);
	margin: var(--pw-space-sm) 0 var(--pw-space-md);
}

/* Tag/author filter pill */
.nb-filter-pill {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 14px;
	background: var(--blog-bg-alt);
	border: 1px solid var(--pw-border);
	border-radius: var(--pw-radius-sm);
	margin: 0 0 var(--pw-space-lg);
	font-size: 13px;
	color: var(--pw-text-secondary);
}
.nb-filter-pill strong { color: var(--pw-text); font-weight: 600; }
.nb-filter-pill a {
	margin-left: auto;
	color: var(--pw-brand);
	font-weight: 600;
	font-size: 13px;
}
.nb-filter-pill a:hover { text-decoration: underline; }

/* Category labels */
.nb-cat {
	display: inline-block;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--pw-brand);
}

/* ---- Article list (text-only, no cover dependency) ---- */
.nb-grid { display: flex; flex-direction: column; gap: 0; }
.nb-grid__empty {
	padding: var(--pw-section-compact);
	text-align: center;
	color: var(--pw-text-muted);
	font-size: 15px;
}

/* Latest article — prominent card */
.nb-article--latest {
	position: relative;
	display: block;
	padding: 28px;
	margin-bottom: var(--pw-space-lg);
	background: var(--blog-bg-alt);
	border: 1px solid var(--pw-border);
	border-radius: var(--pw-radius-md);
	color: inherit;
	transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.nb-article--latest:hover {
	border-color: var(--pw-border-light);
	box-shadow: var(--pw-shadow-md);
	transform: translateY(-2px);
	color: inherit;
}
.nb-article--latest .nb-article__badge {
	position: absolute;
	top: 20px;
	right: 20px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--pw-link);
	background: rgba(49,141,211,0.08);
	padding: var(--pw-space-xs) 10px;
	border-radius: var(--pw-radius-sm);
	margin: 0;
}
.nb-article--latest .nb-article__cat { margin-bottom: 6px; }
#content .nb-article--latest .nb-article__title, .nb-article--latest .nb-article__title {
	font-size: 22px;
	font-weight: 700;
	line-height: 1.35;
	margin: 0 0 var(--pw-space-sm);
	color: var(--pw-text);
	letter-spacing: -0.02em;
	transition: color 0.15s;
}
.nb-article--latest:hover .nb-article__title { color: var(--pw-brand); }
.nb-article--latest .nb-article__desc {
	font-size: 15px;
	line-height: 1.6;
	color: var(--pw-text-secondary);
	margin: 0 0 12px;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.nb-article--latest .nb-article__meta {
	font-size: 13px;
	color: var(--pw-text-muted);
	margin: 0;
}
.nb-article--latest .nb-article__link {
	display: inline-block;
	margin-top: 12px;
	font-size: 14px;
	font-weight: 600;
	color: var(--pw-brand);
}

/* Regular articles */
.nb-article {
	display: flex;
	align-items: flex-start;
	gap: var(--pw-space-md);
	padding: 20px 0;
	border-bottom: 1px solid var(--pw-border);
	color: inherit;
	transition: background 0.15s;
}
.nb-article:hover { color: inherit; }

.nb-article__body { flex: 1; min-width: 0; }
.nb-article__cat { margin-bottom: var(--pw-space-xs); }
#content .nb-article__title, .nb-article__title {
	font-size: 17px;
	font-weight: 700;
	line-height: 1.4;
	margin: 0 0 6px;
	color: var(--pw-text);
	letter-spacing: -0.01em;
	transition: color 0.15s;
}
.nb-article:hover .nb-article__title { color: var(--pw-brand); }
.nb-article__desc {
	font-size: 14px;
	line-height: 1.55;
	color: var(--pw-text-secondary);
	margin: 0 0 var(--pw-space-sm);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.nb-article__meta {
	font-size: 13px;
	color: var(--pw-text-muted);
	margin: 0;
}
.nb-article__arrow {
	flex-shrink: 0;
	width: 20px;
	height: 20px;
	color: var(--pw-text-muted);
	margin-top: 2px;
	transition: color 0.15s, transform 0.15s;
}
.nb-article:hover .nb-article__arrow { color: var(--pw-brand); transform: translateX(3px); }

/* Pagination */
.nb-pagination {
	display: flex;
	justify-content: center;
	gap: 12px;
	margin: 40px 0 0;
}
.nb-pagination a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 10px 20px;
	border: 1px solid var(--pw-border);
	border-radius: var(--pw-radius-sm);
	font-size: 14px;
	font-weight: 600;
	color: var(--pw-text);
	background: var(--blog-white);
	transition: border-color 0.2s, color 0.2s;
}
.nb-pagination a:hover {
	border-color: var(--pw-brand);
	color: var(--pw-brand);
}

/* ---- Focus states (A11y) ---- */
.nb-blog a:focus-visible,
.nb-blog button:focus-visible,
.nb-blog input:focus-visible,
.nb-blog select:focus-visible {
	outline: 2px solid var(--pw-link);
	outline-offset: 2px;
}

/* ---- Dark mode (komponenten-spezifische Overrides; Token-Flips passieren in global.css) ---- */
@media (prefers-color-scheme: dark) {
	.nb-hero { background: linear-gradient(180deg, #0a0a0a 0%, #111 100%); }
	.nb-hero__bgimage { opacity: 0.18; }
	.nb-hero__title em { color: var(--pw-brand-hover); }
	.nb-showcase { background: var(--blog-bg-alt); }
	.nb-showcase__title { color: var(--pw-fg); }
	.nb-showcase__sub { color: var(--pw-text-secondary); }
	.nb-carousel__dot { background: #333; }
	.nb-carousel__dot.active { background: #333; }
	.nb-carousel__dot.active::after { background: #53b5f3; }
	.nb-featured__visual { background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%); }
	.nb-featured__card { background: var(--pw-dark-2); border-color: var(--pw-dark-3); }
	.nb-featured__card:hover { border-color: #333; }
	.nb-guide-card { background: var(--pw-dark-2); border-color: var(--pw-dark-3); }
	.nb-guide-card:hover { border-color: #333; box-shadow: 0 8px 24px rgba(0,0,0,0.3); }
	.nb-guide-card__icon { background: #1a2d4a; }
	.nb-guide-card__icon img { filter: invert(1); }
	.nb-hero__search-btn { background: var(--pw-brand-hover); }
	.nb-hero__search-btn:hover { background: var(--pw-brand-hover); }
	.nb-hero__popular-pill { color: var(--pw-brand-hover); background: rgba(255,149,48,0.1); border-color: rgba(255,149,48,0.2); }
	.nb-hero__popular-pill:hover { background: rgba(255,149,48,0.18); color: var(--pw-brand-hover); }
	.nb-search-dropdown { background: var(--pw-dark-2); border-color: var(--pw-dark-3); }
	.nb-search-dropdown__item:hover { background: #242424; }
	.nb-filter-pill { background: var(--pw-dark-2); border-color: var(--pw-dark-3); }
	.nb-cat { color: var(--pw-brand-hover); }
	.nb-sidebar__link--active { color: var(--pw-brand-hover); }
	.nb-sidebar__link--active .nb-sidebar__count { color: var(--pw-brand-hover); }
	.nb-featured__link { color: var(--pw-brand-hover); }
	.nb-featured__eyebrow { color: var(--pw-brand-hover); }
	.nb-articles__title { color: var(--pw-fg); }
	.nb-articles__sub { color: var(--pw-text-secondary); }
	.nb-article--latest { background: var(--pw-dark-2); border-color: var(--pw-dark-3); }
	.nb-article--latest:hover { border-color: #333; }
	.nb-article--latest .nb-article__badge { background: rgba(83,181,243,0.12); color: #53b5f3; }
	.nb-article--latest:hover .nb-article__title { color: var(--pw-brand-hover); }
	.nb-article--latest .nb-article__link { color: var(--pw-brand-hover); }
	.nb-article:hover .nb-article__title { color: var(--pw-brand-hover); }
	.nb-article:hover .nb-article__arrow { color: var(--pw-brand-hover); }
	.nb-hero__search { background: var(--pw-dark-2); border-color: var(--pw-dark-3); }
	.nb-hero__search:focus-within { border-color: #53b5f3; box-shadow: 0 0 0 4px rgba(83,181,243,0.15); }
	.nb-hero__search-input { color: var(--pw-fg); }
	.nb-hero__search-input::placeholder { color: var(--pw-text-secondary); }
}

/* ---- Responsive: Tablet (≤ 1024px) ---- */
@media (max-width: 1024px) {
	.nb-articles__inner {
		grid-template-columns: 1fr;
		gap: 20px;
	}
	.nb-sidebar { position: static; }
	.nb-sidebar__list {
		flex-direction: row;
		flex-wrap: nowrap;
		gap: var(--pw-space-sm);
		overflow-x: auto;
		padding-bottom: var(--pw-space-sm);
		-webkit-overflow-scrolling: touch;
	}
	.nb-sidebar__link {
		flex-shrink: 0;
		padding: 6px 14px;
		border: 1px solid var(--pw-border);
		border-radius: 20px;
		font-size: 13px;
		gap: 6px;
	}
	.nb-sidebar__link--active {
		background: rgba(249,157,27, 0.06);
		border-color: var(--pw-brand);
	}
	.nb-sidebar__count { display: none; }
	.nb-sidebar__divider { display: none; }
	.nb-sidebar__sort { display: none; }

	.nb-featured__card { grid-template-columns: 1fr; }
	.nb-featured__visual { min-height: 200px; }
	.nb-guides__grid { grid-template-columns: repeat(2, 1fr); }
	.nb-hero__bgimage { width: 340px; left: 2%; opacity: 0.1; }
}

/* ---- Responsive: Mobile (< 768px) ---- */
@media (max-width: 768px) {
	.nb-hero__title { font-size: 32px; }
	.nb-hero__sub { font-size: 16px; margin-bottom: var(--pw-space-xl); }
	.nb-hero__bgimage { display: none; }

	.nb-showcase { padding: var(--pw-section-compact); }

	.nb-featured__card { grid-template-columns: 1fr; }
	.nb-featured__text { padding: var(--pw-space-lg); }
	.nb-featured__title { font-size: 20px; }
	.nb-featured__visual { min-height: 180px; }

	.nb-guides__grid { grid-template-columns: 1fr; gap: 12px; }

	.nb-articles { padding: var(--pw-section-compact); }
	.nb-article--latest { padding: 20px; }
	.nb-article--latest .nb-article__title { font-size: 18px; }
	.nb-article--latest .nb-article__desc { -webkit-line-clamp: 2; }
	.nb-article__desc { display: none; }
	.nb-article--latest .nb-article__desc { display: -webkit-box; }

	.nb-hero__search {
		flex-wrap: wrap;
		border-radius: var(--pw-radius-md);
		padding: var(--pw-space-sm);
	}
	.nb-hero__search-input { width: 100%; }
	.nb-hero__search-btn {
		width: 100%;
		text-align: center;
	}
}
