/**
 * TB Category Content — 10-Sektionen-SEO-Layout (v2)
 *
 * Komplett neues Layout-System, basierend auf Felix' Mockup
 * (poloshirts-seo-content.html). Keine BeTheme-Shortcodes mehr,
 * eigenes scoped CSS unter .tb-seo + Tabler Icons via CDN.
 *
 * Geladen nur auf product_cat-Archiv-Seiten (siehe functions.php).
 */

/* =========================================================================
 * Hide BeTheme legacy shortcode artefacts that may still be in old DB content
 * (dropcap, call_to_action, button) until they're regenerated.
 * ========================================================================= */
.dropcap, .dropcap-1, .dropcap-2, .dropcap-3 { display: none !important; }
.tb-top-content .button_align,
.tb-top-content .button.button_size_3,
.tb-top-content .call_to_action { display: none !important; }
.mfn_after_shop_content_wrapper > h2 + h2 { display: none !important; }

/* =========================================================================
 * NEW LAYOUT — POLOSHIRTS SEO CONTENT
 * ========================================================================= */

.tb-seo {
	--color-bg: #ffffff;
	--color-bg-soft: #f7f6f2;
	--color-bg-muted: #ebe9e1;
	--color-text: #1c1c1a;
	--color-text-muted: #5a5953;
	--color-text-light: #888780;
	--color-border: #e2dfd5;
	--color-border-strong: #cfccc1;
	--color-accent: #0a89e0;
	--color-accent-soft: #e6f1fb;
	--color-accent-text: #0c447c;
	--color-star: #f59e0b;
	--radius-sm: 6px;
	--radius-md: 8px;
	--radius-lg: 12px;
	--font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, system-ui, sans-serif;

	font-family: var(--font-sans);
	color: var(--color-text);
	font-size: 15px;
	line-height: 1.7;
	max-width: 880px;
	margin: 32px auto 0;
	padding: 0 1rem;
}

.tb-seo * { box-sizing: border-box; }

.tb-seo .section { margin: 0 0 3rem; }
.tb-seo .section > h2 {
	font-size: 22px;
	font-weight: 600;
	margin: 0 0 1rem;
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--color-text);
	letter-spacing: -0.01em;
}
.tb-seo .section > h2 i { font-size: 24px; color: var(--color-text-muted); }
.tb-seo .section > p.lead {
	font-size: 15px;
	color: var(--color-text-muted);
	margin: 0 0 1.25rem;
}

/* ---------- TL;DR Box ---------- */
.tb-seo .tldr {
	background: var(--color-bg-soft);
	border-radius: var(--radius-lg);
	padding: 1.5rem 1.75rem;
}
.tb-seo .tldr p.intro {
	font-size: 14px;
	color: var(--color-text-muted);
	margin: 0 0 1rem;
}
.tb-seo .tldr ul { list-style: none; padding: 0; margin: 0; }
.tb-seo .tldr li {
	display: grid;
	grid-template-columns: 150px 1fr;
	gap: 16px;
	padding: 8px 0;
	font-size: 15px;
}
.tb-seo .tldr li .label {
	color: var(--color-text-muted);
	font-weight: 500;
	font-size: 14px;
}

/* ---------- Use Case Cards ---------- */
.tb-seo .usecases {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 16px;
}
.tb-seo .usecase {
	background: var(--color-bg);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	padding: 1.25rem 1.5rem;
	transition: border-color 0.15s ease;
}
.tb-seo .usecase:hover { border-color: var(--color-border-strong); }
.tb-seo .usecase i.head {
	font-size: 26px;
	color: var(--color-accent);
	margin-bottom: 10px;
	display: block;
}
.tb-seo .usecase h3 {
	font-size: 16px;
	font-weight: 600;
	margin: 0 0 8px;
}
.tb-seo .usecase p {
	font-size: 14px;
	line-height: 1.55;
	margin: 0 0 12px;
	color: var(--color-text-muted);
}
.tb-seo .usecase .productlink {
	font-size: 14px;
	color: var(--color-accent);
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-weight: 500;
}
.tb-seo .usecase .productlink:hover { text-decoration: underline; }

/* ---------- Comparison Table ---------- */
.tb-seo table.compare {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
	margin-bottom: 0.5rem;
}
.tb-seo table.compare th {
	text-align: left;
	padding: 12px;
	border-bottom: 2px solid var(--color-border);
	font-weight: 600;
	color: var(--color-text-muted);
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}
.tb-seo table.compare td {
	padding: 14px 12px;
	border-bottom: 1px solid var(--color-border);
	vertical-align: top;
}
.tb-seo table.compare tr:last-child td { border-bottom: none; }
.tb-seo table.compare td.first { font-weight: 600; }

/* ---------- Accordion (native <details>) ---------- */
.tb-seo details.acc {
	border-bottom: 1px solid var(--color-border);
	padding: 16px 0;
}
.tb-seo details.acc summary {
	font-weight: 500;
	cursor: pointer;
	list-style: none;
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 16px;
}
.tb-seo details.acc summary::-webkit-details-marker { display: none; }
.tb-seo details.acc summary i {
	transition: transform 0.2s ease;
	color: var(--color-text-muted);
	font-size: 20px;
}
.tb-seo details.acc[open] summary i { transform: rotate(180deg); }
.tb-seo details.acc p {
	margin: 12px 0 0;
	font-size: 14px;
	color: var(--color-text-muted);
	line-height: 1.6;
}

/* ---------- Materials Grid ---------- */
.tb-seo .materials {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
}
.tb-seo .material { padding: 4px; }
.tb-seo .material i.head {
	font-size: 24px;
	color: var(--color-accent);
	margin-bottom: 10px;
	display: block;
}
.tb-seo .material h3 {
	font-size: 15px;
	font-weight: 600;
	margin: 0 0 6px;
}
.tb-seo .material p {
	font-size: 14px;
	color: var(--color-text-muted);
	line-height: 1.55;
	margin: 0;
}

/* ---------- Print Positions ---------- */
.tb-seo .positions {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
}
.tb-seo .position-item { text-align: center; }
.tb-seo .position-item p.pos-label {
	font-size: 14px;
	margin: 10px 0 4px;
	color: var(--color-text);
	font-weight: 600;
}
.tb-seo .position-item p.pos-desc {
	font-size: 13px;
	margin: 0;
	color: var(--color-text-muted);
	line-height: 1.5;
	font-weight: 400;
}

/* Mockup-Container: Featured Image + Marker-Overlay */
.tb-seo .position-mockup {
	position: relative;
	aspect-ratio: 1 / 1;
	background: var(--color-bg-soft);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	overflow: hidden;
}
.tb-seo .position-mockup img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}

/* Marker (Standard: kleiner blauer Punkt mit weißem Rand + Schatten) */
.tb-seo .pos-marker {
	position: absolute;
	background: var(--color-accent);
	border: 2px solid #ffffff;
	box-shadow: 0 0 0 1px rgba(10, 137, 224, 0.3), 0 2px 6px rgba(0, 0, 0, 0.15);
	pointer-events: none;
}

/* Brust links — kleiner runder Punkt oben links */
.tb-seo .pos-brust-li {
	top: 32%;
	left: 30%;
	width: 11%;
	height: 11%;
	border-radius: 50%;
}

/* Brust mittig — Rechteck mittig oben */
.tb-seo .pos-brust-mittig {
	top: 32%;
	left: 36%;
	width: 28%;
	height: 18%;
	border-radius: 4px;
}

/* Rücken — großer Rechteck-Bereich zentral */
.tb-seo .pos-ruecken {
	top: 28%;
	left: 30%;
	width: 40%;
	height: 42%;
	border-radius: 4px;
	background: rgba(10, 137, 224, 0.85);
}

/* Ärmel — zwei kleine Punkte (links und rechts) */
.tb-seo .pos-aermel-li,
.tb-seo .pos-aermel-re {
	top: 28%;
	width: 9%;
	height: 9%;
	border-radius: 50%;
}
.tb-seo .pos-aermel-li { left: 18%; }
.tb-seo .pos-aermel-re { right: 18%; }

/* Wenn kein eigenes Rückseite-Bild da: dezentes Badge */
.tb-seo .pos-badge {
	position: absolute;
	top: 8px;
	right: 8px;
	background: rgba(28, 28, 26, 0.78);
	color: #ffffff;
	font-size: 11px;
	font-weight: 600;
	padding: 3px 8px;
	border-radius: 4px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

/* ---------- Two Column Cards (Lieferung + Rabatt) ---------- */
.tb-seo .two-col {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}
.tb-seo .col-card {
	background: var(--color-bg);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	padding: 1.5rem;
}
.tb-seo .col-card h3 {
	font-size: 16px;
	font-weight: 600;
	margin: 0 0 16px;
	display: flex;
	align-items: center;
	gap: 8px;
}
.tb-seo .col-card h3 i { color: var(--color-accent); font-size: 20px; }
.tb-seo .col-card ul { list-style: none; padding: 0; margin: 0; }
.tb-seo .col-card li {
	display: flex;
	justify-content: space-between;
	padding: 10px 0;
	font-size: 15px;
	border-bottom: 1px solid var(--color-border);
}
.tb-seo .col-card li:last-child { border-bottom: none; }
.tb-seo .col-card li .lab { color: var(--color-text-muted); }
.tb-seo .col-card .code {
	font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
	font-size: 12px;
	background: var(--color-bg-muted);
	padding: 2px 8px;
	border-radius: 4px;
	font-weight: 500;
}

/* ---------- Schweizer Shop — Trust Block ---------- */
.tb-seo .ch-shop {
	background: var(--color-accent-soft);
	border-radius: var(--radius-lg);
	padding: 2rem;
	display: grid;
	grid-template-columns: 240px 1fr;
	gap: 2rem;
	align-items: start;
}
.tb-seo .ch-shop-photo {
	border-radius: var(--radius-md);
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--color-bg);
}
.tb-seo .ch-shop-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
/* Fallback wenn kein <img> da ist (Platzhalter-Variante) */
.tb-seo .ch-shop-photo:not(:has(img)) {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	gap: 8px;
	color: var(--color-text-light);
	font-size: 13px;
	border: 1px dashed var(--color-border-strong);
}
.tb-seo .ch-shop-photo i { font-size: 32px; }
.tb-seo .ch-shop-info h3 {
	font-size: 18px;
	font-weight: 600;
	margin: 0 0 12px;
	color: var(--color-accent-text);
}
.tb-seo .ch-shop-info p {
	font-size: 15px;
	line-height: 1.65;
	margin: 0 0 16px;
	color: var(--color-text);
}
.tb-seo .ch-shop-meta { display: grid; gap: 8px; font-size: 14px; }
.tb-seo .ch-shop-meta div {
	display: flex;
	gap: 10px;
	align-items: center;
	color: var(--color-text);
}
.tb-seo .ch-shop-meta i {
	font-size: 18px;
	color: var(--color-accent);
	flex-shrink: 0;
}

/* ---------- Reviews ---------- */
/* auto-fit statt repeat(3) — bei <3 Reviews keine leeren Slots,
   Cards skalieren auf verfügbare Breite, mind. 240px pro Card */
.tb-seo .reviews {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 16px;
}

/* Reviews-Card als <a> → sieht aus wie vorher, ist aber klickbar zur Produktseite */
.tb-seo a.review {
	display: block;
	text-decoration: none;
	color: inherit;
	transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.tb-seo a.review:hover,
.tb-seo a.review:focus {
	transform: translateY(-2px);
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.07);
	border-color: var(--color-border-strong);
	text-decoration: none;
}
.tb-seo .review .review-product {
	display: block;
	margin-top: 4px;
	font-size: 12px;
	font-weight: 500;
	color: var(--color-accent);
	letter-spacing: 0;
}

/* ProvenExpert-Zeile im Schweizer-Shop-Trust-Block: ★★★★★ 4,85 von 5 auf ProvenExpert */
.tb-seo .ch-shop-meta .ch-pe-row {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}
.tb-seo .ch-pe-stars {
	color: var(--color-star);
	letter-spacing: 2px;
	font-size: 16px;
	line-height: 1;
}
.tb-seo .ch-pe-row strong {
	font-weight: 600;
}
.tb-seo .ch-pe-row a {
	color: var(--color-accent);
	text-decoration: none;
}
.tb-seo .ch-pe-row a:hover {
	text-decoration: underline;
}

.tb-seo .tb-provenexpert-link {
	margin: 16px 0 0;
	font-size: 14px;
	color: var(--color-text-muted);
	text-align: center;
}
.tb-seo .tb-provenexpert-link a {
	color: var(--color-accent);
	text-decoration: none;
	font-weight: 500;
}
.tb-seo .tb-provenexpert-link a::after {
	content: ' →';
}
.tb-seo .tb-provenexpert-link a:hover {
	text-decoration: underline;
}
.tb-seo .review {
	background: var(--color-bg);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	padding: 1.25rem;
}
.tb-seo .review .stars {
	color: var(--color-star);
	font-size: 14px;
	margin-bottom: 8px;
	letter-spacing: 2px;
}
.tb-seo .review p {
	font-size: 14px;
	line-height: 1.6;
	margin: 0 0 12px;
	font-style: italic;
}
.tb-seo .review .author {
	font-size: 13px;
	color: var(--color-text-muted);
	font-weight: 500;
}

/* ---------- Internal Link Hub ---------- */
.tb-seo .links-hub {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 8px;
}
.tb-seo .link-pill {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 12px 16px;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	font-size: 14px;
	color: var(--color-accent);
	text-decoration: none;
	font-weight: 500;
	transition: background 0.15s ease, border-color 0.15s ease;
}
.tb-seo .link-pill:hover {
	background: var(--color-bg-soft);
	border-color: var(--color-border-strong);
}
.tb-seo .link-pill i {
	font-size: 18px;
	color: var(--color-text-muted);
}
.tb-seo .link-pill .tb-svg-icon {
	width: 20px;
	height: 20px;
	color: var(--color-accent);
	flex-shrink: 0;
}
.tb-seo .link-pill:hover .tb-svg-icon {
	color: var(--color-accent);
}
.tb-seo .link-pill > span {
	flex: 1;
}
.tb-seo .links-hub-title {
	font-size: 14px;
	color: var(--color-text-muted);
	font-weight: 500;
	margin: 0 0 12px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
	.tb-seo .usecases { grid-template-columns: 1fr; }
	.tb-seo .materials { grid-template-columns: 1fr; }
	.tb-seo .positions { grid-template-columns: repeat(2, 1fr); }
	.tb-seo .two-col { grid-template-columns: 1fr; }
	.tb-seo .ch-shop { grid-template-columns: 1fr; }
	.tb-seo .reviews { grid-template-columns: 1fr; }
	.tb-seo .tldr li { grid-template-columns: 1fr; gap: 4px; }
	.tb-seo .tldr li .label { font-size: 13px; }
	.tb-seo table.compare { font-size: 13px; }
	.tb-seo table.compare th, .tb-seo table.compare td { padding: 10px 8px; }
}

/* =========================================================================
 * H1 + Top Content (legacy, vom Plugin oben gesetzt)
 * ========================================================================= */
.tb-category-h1 {
	margin: 0 0 24px;
}

.tb-top-content {
	max-width: 1100px;
	margin: 32px auto 40px;
	padding: 32px 40px;
	background: linear-gradient(135deg, #f6f9fc 0%, #ffffff 100%);
	border: 1px solid #e8eef5;
	border-radius: 14px;
	box-shadow: 0 4px 20px rgba(0, 30, 60, 0.04);
	color: #2d3748;
	font-size: 14px;
	line-height: 1.65;
}

.tb-top-content > p:first-of-type {
	font-size: 14px;
	color: #2d3748;
	margin: 0 0 20px;
	max-width: 880px;
}

.tb-top-content p { margin: 12px 0; }
.tb-top-content a { color: #0a89e0; text-decoration: underline; }

/* Legacy: 3-Schritte-OL aus alten Generations verstecken (durch CTA-Banner ersetzt). */
.tb-top-content ol { display: none; }

/* CTA-Banner: kategorie-spezifischer 1-Satz-Push + Designer-Button */
.tb-top-content .tb-cta-banner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 20px 24px;
	background: #ffffff;
	border: 1px solid #e3e8ee;
	border-radius: 10px;
	flex-wrap: wrap;
	margin: 0;
}

.tb-top-content .tb-cta-banner .cta-text {
	font-size: 14px;
	color: #2d3748;
	flex: 1 1 60%;
	margin: 0;
	line-height: 1.55;
}

.tb-top-content .tb-cta-banner .cta-text strong {
	color: #1a202c;
	font-weight: 600;
}

.tb-top-content .tb-cta-banner .cta-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #0a89e0;
	color: #ffffff;
	padding: 10px 20px;
	border-radius: 8px;
	font-weight: 600;
	font-size: 14px;
	text-decoration: none;
	transition: background 0.15s, transform 0.15s;
	box-shadow: 0 2px 8px rgba(10, 137, 224, 0.2);
	flex-shrink: 0;
}

.tb-top-content .tb-cta-banner .cta-btn:hover {
	background: #066bb3;
	transform: translateY(-1px);
	color: #ffffff;
	text-decoration: none;
}

.tb-top-content .tb-cta-banner .cta-btn::after {
	content: '→';
	font-size: 16px;
	line-height: 1;
}

/* "Wie funktioniert das?" — generisch dezent: greift auf JEDEN direct-child
 * Link im Top Content, nicht nur auf .tb-howto-link. So bleibt's auch dezent
 * wenn das wp_kses-Filter mal die Klasse stripped. */
.tb-top-content > a,
.tb-top-content .tb-howto-link {
	display: inline-block;
	margin: 0;
	padding: 8px 0 0;
	font-size: 12px;
	font-style: italic;
	color: #a0a0a0;
	text-decoration: none;
	font-weight: 400;
	border: none;
}

.tb-top-content > a:hover,
.tb-top-content .tb-howto-link:hover {
	color: #0a89e0;
}

.tb-top-content > a::after,
.tb-top-content .tb-howto-link::after {
	content: ' →';
}

@media (max-width: 768px) {
	.tb-top-content {
		padding: 24px;
		margin: 16px;
	}
	.tb-top-content .tb-cta-banner {
		flex-direction: column;
		align-items: flex-start;
	}
	.tb-top-content .tb-cta-banner .cta-btn {
		width: 100%;
		justify-content: center;
	}
}

/* H1 ohne Margin (Felix-Wunsch) */
.tb-category-h1 {
	margin: 0;
	padding: 0 40px;
	max-width: 1100px;
}

@media (max-width: 768px) {
	.tb-category-h1 { padding: 0 16px; }
}
