/* ==========================================================================
   Blitzschnell Replica — BLOG (/wissen/) styles
   Owner: tuju-blog (PHASE 9). Used by home.php, archive.php, single.php,
   template-parts/blog-card.php. Nothing else in the theme reads this file.

   Every value below is measured from the source harvest:
     scrape/source-cdp/pages/wissen.html   (hub: header, filter bar, card grid)
     scrape/blog/post-sample.html          (single post: hero + content card)
     scrape/source-cdp/css/_bricks-theme-settings.css
   Bricks colour vars resolved from the source HTML:
     --bricks-color-2d1664 #ffffff · --bricks-color-iunwkl #f1f1f1
     --bricks-color-hzgoln rgba(0,0,0,.44)
   Barlow is loaded by the theme (homepage agent's enqueue) — NOT re-imported here.
   ========================================================================== */

/* Shared tokens come from assets/css/bs-tokens.css (Phase 1). Every var below is
   written with a literal fallback so this sheet also renders standalone. */
:root {
	--bs-blog-radius-card: 36px;                      /* .brxe-jiwxin border-radius */
	--bs-blog-yellow: var(--bs-yellow, #ffcc00);
	--bs-blog-page: var(--bs-page, #f2f2f2);
	--bs-blog-hero: var(--bs-surface-alt, #f1f1f1);
	--bs-blog-radius-box: var(--bs-r-20, 20px);
	--bs-blog-font: var(--bs-font, "Barlow", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif);
	--bs-blog-max: var(--bs-content, 1600px);
}

.bs-blog,
.bs-blog * {
	box-sizing: border-box;
}

.bs-blog {
	font-family: var(--bs-blog-font);
	color: #000;
	background: var(--bs-blog-page);
}

/* ------------------------------------------------------------ archive head -- */
/* source: #brxe-fqlqkr / #brxe-mavyqj / #brxe-yqnhoy / #brxe-txxhwd */
.bs-blog-head {
	padding: 40px;
	background-image: linear-gradient(#ffffff, rgba(230, 230, 230, 0.85));
}

.bs-blog-head__inner {
	margin: 20px auto;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	width: 100%;
	max-width: var(--bs-blog-max);
}

.bs-blog-head__title {
	font-family: var(--bs-blog-font);
	font-weight: 700;
	font-size: 48px;
	line-height: 1.1;
	margin: 0 0 10px;
	text-align: center;
	color: #000;
}

.bs-blog-head__intro {
	text-align: center;
	width: 50%;
	font-size: 16px;
	line-height: 1.7;
	margin: 0;
}

.bs-blog-head__intro p:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------- filter bar -- */
/* source: #brxe-rarpwp / #brxe-rtsmvt / #brxe-neuzil / #brxe-vvagcg */
.bs-blog-filters {
	padding: 0 40px;
}

.bs-blog-filters__bar {
	max-width: var(--bs-blog-max);
	margin: 0 auto;
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-around;
	column-gap: 20px;
	row-gap: 20px;
	padding: 10px 10px 10px 20px;
	background-color: #000;
	border-radius: 20px;
	color: #fff;
	font-weight: 600;
	font-size: 17px;
}

.bs-blog-filters select {
	width: 15%;
	min-width: 120px;
	border: 0;
	border-style: none;
	background: transparent;
	color: #fff;
	font-family: var(--bs-blog-font);
	font-size: 17px;
	font-weight: 600;
	appearance: none;
	-webkit-appearance: none;
	cursor: pointer;
	padding: 5px 0;
}

.bs-blog-filters select option { color: #000; }

.bs-blog-filters__search {
	width: 70%;
	margin-top: 1px;
	position: relative;
	display: flex;
	align-items: center;
}

.bs-blog-filters__search input[type="search"] {
	width: 100%;
	border: 0;
	border-radius: 15px;
	padding: 5px 20px;
	color: #fff;
	font-family: var(--bs-blog-font);
	font-size: 17px;
	font-weight: 600;
	background-color: #1a1a1a;
	line-height: 34px;
}

.bs-blog-filters__search input[type="search"]::placeholder {
	color: #fff;
	font-weight: 600;
	font-size: 17px;
	opacity: 1;
}

.bs-blog-filters__reset {
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	text-decoration: underline;
	white-space: nowrap;
}

.bs-blog-filters__submit {
	position: absolute;
	right: 14px;
	background: none;
	border: 0;
	color: #fff;
	font-size: 18px;
	cursor: pointer;
	line-height: 1;
	padding: 0;
}

/* ------------------------------------------------------------- card grid --- */
/* source: .custom-blog-grid — 3 cols, gap 20px, items 1/5/8/12/16/20 span 2 rows */
.bs-blog-grid-wrap {
	padding: 20px 40px 50px;
}

.bs-blog-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	max-width: var(--bs-blog-max);
	margin: 0 auto;
	list-style: none;
	padding: 0;
}

.bs-blog-grid > li:nth-child(1),
.bs-blog-grid > li:nth-child(5),
.bs-blog-grid > li:nth-child(8),
.bs-blog-grid > li:nth-child(12),
.bs-blog-grid > li:nth-child(16),
.bs-blog-grid > li:nth-child(20) {
	grid-column: span 1;
	grid-row: span 2;
}

/* ------------------------------------------------------------------ card ---- */
/* source: .brxe-zsrjrp / .brxe-jiwxin / .brxe-dgkzlf / .blog-title / .arrow1 */
.bs-blog-card {
	display: flex;
	border-radius: var(--bs-blog-radius-card);
	transition: all .3s ease;
}

.bs-blog-card__inner {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: space-between;
	flex-grow: 1;
	width: 100%;
	min-height: 300px;
	padding: 20px;
	border-radius: var(--bs-blog-radius-card);
	overflow: hidden;
	text-align: left;
	background-color: rgba(0, 0, 0, .44);
	background-position: center center;
	background-size: auto 100%;
	background-repeat: no-repeat;
	transition: all .3s ease;
}

.bs-blog-card__inner::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: linear-gradient(rgba(0, 0, 0, .5), rgba(0, 0, 0, .5));
	pointer-events: none;
}

.bs-blog-card__inner > * { position: relative; }

.bs-blog-card:hover .bs-blog-card__inner {
	background-size: auto 120%;
	background-position: center center;
}

.bs-blog-card__top {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.bs-blog-card__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
	list-style: none;
	margin: 0 0 12px;
	padding: 0;
}

.bs-blog-card__tags a {
	display: inline-block;
	background-color: #000;
	border-radius: 10px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.6;
	padding: 2px 10px;
	color: #fff;
	text-decoration: none;
}

.bs-blog-card__title {
	font-family: var(--bs-blog-font);
	font-size: 32px;
	font-weight: 700;
	line-height: 1.15;
	width: 100%;
	margin: 0;
	color: #fff;
}

.bs-blog-card__title a {
	color: #fff;
	text-decoration: none;
}

.bs-blog-card__foot {
	display: flex;
	width: 100%;
	align-items: flex-end;
	justify-content: flex-end;
	align-self: flex-end;
}

.bs-blog-card__arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 60px;
	height: 50px;
	background-color: #fff;
	border-radius: 30px;
	color: #000;
	transform: rotate(-45deg);
	transition: transform .3s ease;
}

.bs-blog-card__arrow svg { width: 30px; height: 30px; display: block; }

.bs-blog-card:hover .bs-blog-card__arrow { transform: rotate(0deg); }

/* ------------------------------------------------------------ pagination --- */
.bs-blog-pagination {
	max-width: var(--bs-blog-max);
	margin: 0 auto;
	padding: 10px 0 30px;
	display: flex;
	gap: 10px;
	justify-content: center;
	flex-wrap: wrap;
}

.bs-blog-pagination .page-numbers {
	display: inline-block;
	padding: 8px 16px;
	border-radius: 15px;
	background: #fff;
	color: #000;
	font-weight: 600;
	text-decoration: none;
}

.bs-blog-pagination .page-numbers.current,
.bs-blog-pagination .page-numbers:hover {
	background: #000;
	color: var(--bs-blog-yellow);
}

.bs-blog-empty {
	max-width: var(--bs-blog-max);
	margin: 0 auto;
	padding: 40px 0 60px;
	font-size: 18px;
	font-weight: 600;
}

/* ============================================================ SINGLE POST === */
/* source: #brxe-536f9e (hero section) / #brxe-ec8cd9 (hero card) /
           #brxe-5f713e + #brxe-1a57b8 (content card) */
.bs-post-hero {
	padding: 5px 0 40px;
	background-color: var(--bs-blog-hero);
}

.bs-post-hero__container {
	max-width: 1640px;
	margin: 0 auto;
	padding: 0 40px;
	display: flex;
	justify-content: center;
	align-items: center;
}

.bs-post-hero__card {
	position: relative;
	width: 100%;
	height: 520px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-between;
	padding: 30px;
	border-radius: var(--bs-blog-radius-box);
	background-color: rgba(0, 0, 0, .5);
	background-size: cover;
	background-position: center center;
	background-blend-mode: multiply;
	transition: all .3s ease;
}

.bs-post-hero__spacer { height: 100px; }

.bs-post-hero__title {
	font-family: var(--bs-blog-font);
	font-size: clamp(3rem, 2.2rem + 3.2vw, 5rem);
	line-height: 1.05;
	font-weight: 700;
	text-align: center;
	color: #fff;
	width: 100%;
	margin: 0;
}

.bs-post-hero__meta {
	display: flex;
	width: 100%;
	height: 100px;
	flex-direction: row;
	justify-content: flex-start;
	align-items: flex-end;
	align-self: flex-start;
}

.bs-post-meta-pill {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 15px 10px;
	margin-right: 20px;
	background-color: rgba(0, 0, 0, .75);
	border-radius: 16px;
	color: #fff;
	line-height: 1;
	font-weight: 600;
}

.bs-post-meta-pill svg { width: 18px; height: 18px; flex: none; }

.bs-post-body {
	padding: 0 0 60px;
}

.bs-post-body__container {
	max-width: 1640px;
	margin: 0 auto;
	display: flex;
	flex-direction: row;
	justify-content: center;
}

.bs-post-body__col {
	width: 80%;
	padding: 0 20px;
}

.bs-post-body__card {
	border-radius: var(--bs-blog-radius-box);
	background-color: #fff;
	padding: 20px 120px 60px 40px;
}

/* prose */
.bs-post-content { font-size: 17px; line-height: 1.75; color: #000; }
.bs-post-content > *:first-child { margin-top: 0; }
.bs-post-content h2 { font-size: 34px; font-weight: 700; line-height: 1.2; margin: 44px 0 14px; }
.bs-post-content h3 { font-size: 28px; font-weight: 700; line-height: 1.2; margin: 38px 0 12px; }
.bs-post-content h4 { font-size: 22px; font-weight: 700; line-height: 1.25; margin: 32px 0 10px; }
.bs-post-content h5 { font-size: 18px; font-weight: 700; margin: 26px 0 8px; }
.bs-post-content p { margin: 0 0 18px; }
.bs-post-content ul,
.bs-post-content ol { margin: 0 0 18px; padding-left: 22px; }
.bs-post-content li { margin-bottom: 8px; }
.bs-post-content a { color: #000; text-decoration: underline; text-underline-offset: 2px; }
.bs-post-content a:hover { color: #000; background: var(--bs-blog-yellow); }
.bs-post-content strong { font-weight: 700; }
.bs-post-content img { max-width: 100%; height: auto; border-radius: 10px; }
.bs-post-content figure { margin: 24px 0; max-width: 100%; }

.bs-post-content table {
	width: 100%;
	border-collapse: collapse;
	margin: 0 0 24px;
	font-size: 16px;
}

.bs-post-content table.has-fixed-layout { table-layout: fixed; }
.bs-post-content th,
.bs-post-content td {
	border: 1px solid #e0e0e0;
	padding: 10px 12px;
	text-align: left;
	vertical-align: top;
}
.bs-post-content thead th { background: #000; color: var(--bs-blog-yellow); font-weight: 700; }
.bs-post-content tbody tr:nth-child(even) { background: #f7f7f7; }
.bs-post-content .wp-block-table { overflow-x: auto; }

.bs-post-taxonomy {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	margin: 34px 0 0;
	padding: 24px 0 0;
	border-top: 1px solid #e6e6e6;
}

.bs-post-taxonomy__label { font-weight: 700; margin-right: 4px; }

.bs-post-taxonomy a {
	display: inline-block;
	background: #000;
	color: #fff;
	border-radius: 10px;
	font-size: 14px;
	font-weight: 600;
	padding: 4px 12px;
	text-decoration: none;
}

.bs-post-taxonomy a:hover { background: var(--bs-blog-yellow); color: #000; }

/* "Aus unserem Shop" — only rendered when Phase 1's shared product card exists.
   Heading matches the source's .archiv-heading (Barlow 700 / 36px / lh 1.1). */
.bs-post-shop {
	max-width: 1640px;
	margin: 0 auto;
	padding: 0 20px 40px;
}

.bs-post-shop__heading {
	font-family: var(--bs-blog-font);
	font-size: var(--bs-fs-section, 36px);
	font-weight: 700;
	line-height: 1.1;
	margin: 0 0 20px;
}

.bs-post-shop__grid {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 10px;
	align-items: stretch;
}

.bs-post-shop__cta { margin: 24px 0 0; }

.bs-post-shop__cta a {
	display: inline-block;
	background: #000;
	color: #fff;
	padding: 13px 20px;
	border-radius: var(--bs-r-16, 16px);
	font-weight: 600;
	text-decoration: none;
}

.bs-post-shop__cta a:hover { background: var(--bs-blog-yellow); color: #000; }

@media (max-width: 1250px) { .bs-post-shop__grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 991px)  { .bs-post-shop__grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 767px)  { .bs-post-shop__grid { grid-template-columns: repeat(2, 1fr); } }

.bs-post-back {
	max-width: 1640px;
	margin: 0 auto;
	padding: 0 20px 50px;
	text-align: center;
}

.bs-post-back a {
	display: inline-block;
	background: #000;
	color: #fff;
	padding: 13px 20px;
	border-radius: 15px;
	font-weight: 600;
	font-size: 16px;
	text-decoration: none;
}

.bs-post-back a:hover { background: var(--bs-blog-yellow); color: #000; }

/* ============================================================ breakpoints === */
/* source breakpoints in use: 1500 · 1400 · 1250 · 1024/1025 · 991 · 850 · 768 · 478 */

@media (max-width: 1400px) {
	.bs-post-body__card { padding-right: 60px; }
}

@media (max-width: 1250px) {
	.bs-post-hero__title { width: 75%; }
	.bs-post-body__col { width: 90%; }
}

@media (max-width: 1024px) {
	.bs-blog-grid { grid-template-columns: repeat(2, 1fr); }
	.bs-blog-grid > li:nth-child(1),
	.bs-blog-grid > li:nth-child(5),
	.bs-blog-grid > li:nth-child(8),
	.bs-blog-grid > li:nth-child(12),
	.bs-blog-grid > li:nth-child(16),
	.bs-blog-grid > li:nth-child(20) {
		grid-column: span 2;
		grid-row: span 1;
	}
}

@media (max-width: 991px) {
	.bs-blog-head { padding: 40px 20px; }
	.bs-blog-head__intro { width: 75%; }
	.bs-blog-filters { padding: 0 20px; }
	.bs-blog-filters select { width: 25%; }
	.bs-blog-filters__search { width: 40%; }
	.bs-blog-grid-wrap { padding: 20px 20px 50px; }
	.bs-post-hero__container { padding: 0 20px; }
	.bs-post-body__col { width: 100%; }
	.bs-post-body__card { padding: 20px 40px 60px; }
}

@media (max-width: 850px) {
	.bs-post-hero__card { height: 250px; padding: 20px; justify-content: flex-end; }
	.bs-post-hero__spacer { display: none; }
	.bs-post-hero__title { font-size: 27px; }
	.bs-post-hero__meta { height: auto; padding-top: 16px; }
	.bs-post-meta-pill { padding: 10px; margin-right: 10px; font-size: 14px; }
}

@media (max-width: 768px) {
	.bs-blog-grid { grid-template-columns: 1fr; }
	.bs-blog-grid > li:nth-child(1),
	.bs-blog-grid > li:nth-child(5),
	.bs-blog-grid > li:nth-child(8),
	.bs-blog-grid > li:nth-child(12),
	.bs-blog-grid > li:nth-child(16),
	.bs-blog-grid > li:nth-child(20) {
		grid-column: span 1;
		grid-row: span 1;
	}
	.bs-blog-head__intro { width: 100%; }
	.bs-blog-filters__bar { flex-wrap: wrap; padding-left: 10px; row-gap: 10px; column-gap: 10px; }
	.bs-blog-filters select { width: 48%; padding-left: 10px; }
	.bs-blog-filters__search { width: 100%; margin-bottom: 1px; }
	.bs-post-body__card { padding: 20px 20px 40px; }
	.bs-post-content { font-size: 16px; }
	.bs-post-content h2 { font-size: 26px; }
	.bs-post-content h3 { font-size: 23px; }
	.bs-post-content h4 { font-size: 20px; }
}

@media (max-width: 478px) {
	.bs-blog-head { padding: 20px 10px; }
	.bs-blog-head__title { font-size: 30px; }
	.bs-blog-filters { padding: 0 10px; }
	.bs-blog-grid-wrap { padding: 20px 10px 40px; }
	.bs-blog-card__inner { min-height: 260px; }
	.bs-blog-card__title { font-size: 26px; }
	.bs-post-hero__title { font-size: 22px; }
	.bs-post-hero__meta { justify-content: center; align-self: center; align-items: center; }
}
