/**
 * TKS Blog – Frontend CSS
 * Nutzt --ks-* CSS-Variablen von DanceSolution.
 * Falls DanceSolution diese nicht setzt, greifen die Fallback-Werte unten.
 *
 * @package TKS_Blog
 */

/* ═══════════════════════════════════════════════════
   CSS-VARIABLEN
   Werden dynamisch aus den Plugin-Einstellungen via
   wp_add_inline_style() in shortcode.php gesetzt.
   Die --ks-* Variablen koennen im Backend unter
   Blog → Farben konfiguriert werden.
   ══════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════
   THEME-KOMPATIBILITAET
   Blendet den Theme-eigenen Titel aus, wenn das
   TKS Blog Hero-Layout aktiv ist.
   ══════════════════════════════════════════════════ */

body.single-post:has(.tks-blog-hero) .entry-title,
body.single-post:has(.tks-blog-hero) .post-title,
body.single-post:has(.tks-blog-hero) > h1:not(.tks-blog-hero-title),
body.single-post:has(.tks-blog-hero) .elementor-post__title {
	display: none !important;
}

/* Verhindere Theme-Hintergrundfarbe im Blog-Content */
body.single-post:has(.tks-blog-hero) {
	background-color: #ffffff;
}

/* ═══════════════════════════════════════════════════
   PAGE HEADER (Blog-Übersicht)
   ══════════════════════════════════════════════════ */

.tks-blog-page-header {
	text-align: center;
	padding: 48px 0 40px;
}

.tks-blog-page-title {
	font-size: 36px;
	font-weight: 800;
	color: var(--ks-h1);
	margin: 0 0 12px;
}

.tks-blog-page-subtitle {
	font-size: 17px;
	color: var(--ks-muted);
	max-width: 600px;
	margin: 0 auto;
	line-height: 1.6;
}

/* ═══════════════════════════════════════════════════
   FEATURED CARDS (3 gleichgroß)
   ══════════════════════════════════════════════════ */

.tks-blog-featured {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	margin-bottom: 48px;
}

.tks-blog-featured-card {
	position: relative;
	border-radius: var(--ks-radius);
	overflow: hidden;
	aspect-ratio: 4 / 3;
	display: flex;
	align-items: flex-end;
	text-decoration: none;
	color: inherit;
	transition: transform 0.25s, box-shadow 0.25s;
	background: var(--ks-bg-subtle);
}

.tks-blog-featured-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 40px rgba(0,0,0,.15);
}

.tks-blog-featured-card-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: 1;
	transition: transform 0.4s ease;
}

.tks-blog-featured-card:hover .tks-blog-featured-card-img {
	transform: scale(1.05);
}

.tks-blog-featured-card-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		180deg,
		transparent 30%,
		var(--tks-hero-overlay, rgba(0,0,0,0.7)) 100%
	);
	z-index: 2;
}

.tks-blog-featured-card-content {
	position: relative;
	z-index: 3;
	padding: 24px;
	width: 100%;
}

.tks-blog-featured-card-cats {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.tks-blog-featured-card-cat {
	display: inline-block;
	padding: 3px 12px;
	background: var(--ks-accent);
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	border-radius: 20px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 10px;
}

.tks-blog-featured-card-title {
	font-size: 20px;
	font-weight: 800;
	color: #fff;
	line-height: 1.3;
	margin: 0 0 8px;
	text-shadow: 0 1px 8px rgba(0,0,0,.4);
}

.tks-blog-featured-card-date {
	font-size: 13px;
	color: rgba(255,255,255,.8);
}

/* ═══════════════════════════════════════════════════
   KATEGORIE-FILTER PILLS
   ══════════════════════════════════════════════════ */

.tks-blog-filter {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	margin-bottom: 32px;
	padding-bottom: 24px;
	border-bottom: 1px solid var(--ks-border);
}

.tks-blog-filter-label {
	font-size: 14px;
	font-weight: 700;
	color: var(--ks-dark);
	margin-right: 4px;
}

.tks-blog-filter-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 18px;
	background: var(--ks-bg-subtle);
	color: var(--ks-text);
	border: 1px solid var(--ks-border);
	border-radius: 30px;
	font-size: 13px;
	font-weight: 600;
	font-family: inherit;
	cursor: pointer;
	transition: all 0.2s;
}

.tks-blog-filter-pill:hover {
	background: var(--ks-accent-light);
	border-color: var(--ks-accent);
	color: var(--ks-dark);
}

.tks-blog-filter-pill.active {
	background: var(--ks-accent);
	color: #1a1a2e; /* FIX (Rainer 15.06.2026): dunkler Text auf Gold-Accent (weiß war unlesbar) */
	border-color: var(--ks-accent);
}

.tks-blog-filter-pill-count {
	font-size: 11px;
	opacity: 0.7;
}

/* ═══════════════════════════════════════════════════
   KATEGORIESEITE — Hero mit Accent-Gradient
   ══════════════════════════════════════════════════ */

.tks-blog-cat-hero {
	background: linear-gradient(135deg, var(--tks-cat-hero-from, var(--ks-accent)) 0%, var(--tks-cat-hero-to, var(--ks-accent-dark)) 100%);
	padding: 56px 0;
	margin-bottom: 48px;
}

.tks-blog-cat-hero-content {
	margin: 0 auto;
	padding: 0 32px;
}

.tks-blog-cat-hero-badge {
	display: inline-block;
	padding: 4px 14px;
	background: rgba(255,255,255,0.2);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	border-radius: 20px;
	text-transform: uppercase;
	letter-spacing: 1px;
	margin-bottom: 16px;
}

.tks-blog-cat-hero-title {
	font-size: 38px;
	font-weight: 800;
	color: #fff;
	margin: 0 0 12px;
	text-shadow: 0 2px 8px rgba(0,0,0,.15);
}

.tks-blog-cat-hero-desc {
	font-size: 17px;
	color: rgba(255,255,255,.9);
	line-height: 1.6;
	max-width: 650px;
	margin: 0 0 16px;
}

.tks-blog-cat-hero-meta {
	display: flex;
	gap: 20px;
	align-items: center;
}

.tks-blog-cat-hero-count {
	font-size: 14px;
	font-weight: 700;
	color: rgba(255,255,255,.85);
}

.tks-blog-cat-hero-back {
	font-size: 13px;
	color: rgba(255,255,255,.7);
	text-decoration: none;
	transition: color 0.2s;
}

.tks-blog-cat-hero-back:hover {
	color: #fff;
}

/* ═══════════════════════════════════════════════════
   UNTERKATEGORIE-BADGES
   ══════════════════════════════════════════════════ */

.tks-blog-subcats {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 32px 0 24px;
}

.tks-blog-subcat-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 18px;
	border-radius: 50px;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	transition: all 0.2s ease;
	background: var(--ks-bg-subtle);
	color: var(--ks-text);
	border: 2px solid transparent;
}

.tks-blog-subcat-badge:hover {
	background: var(--ks-accent-light);
	color: var(--ks-accent-dark);
	border-color: var(--ks-accent);
}

.tks-blog-subcat-badge--active {
	background: var(--ks-accent);
	color: #fff;
	border-color: var(--ks-accent);
}

.tks-blog-subcat-badge--active:hover {
	background: var(--ks-accent-dark);
	color: #fff;
}

.tks-blog-subcat-badge-count {
	font-size: 12px;
	font-weight: 400;
	opacity: 0.8;
}

.tks-blog-subcat-badge--active .tks-blog-subcat-badge-count {
	opacity: 0.9;
}

/* ═══════════════════════════════════════════════════
   KATEGORIEN UNTEN (Blog-Übersicht + Kategorieseite)
   ══════════════════════════════════════════════════ */

.tks-blog-categories-bottom {
	margin-top: 48px;
	padding-top: 48px;
	border-top: 2px solid var(--ks-border);
	padding-bottom: 48px;
}

.tks-blog-categories-bottom-title {
	font-size: 24px;
	font-weight: 800;
	color: var(--ks-h2);
	margin: 0 0 24px;
}

/* ═══════════════════════════════════════════════════
   CARD-GRID WRAPPER
   ══════════════════════════════════════════════════ */

.tks-blog-wrapper {
	position: relative;
	width: 100%;
}

/* ─── Grid ─────────────────────────────────────────── */

.tks-blog-grid {
	display: grid;
	grid-template-columns: repeat(var(--tks-cols), 1fr);
	gap: 28px;
	transition: opacity 0.25s;
}

.tks-blog-grid.tks-initializing {
	visibility: hidden;
}

.tks-blog-grid.tks-loading {
	opacity: 0.5;
	pointer-events: none;
}

.tks-blog-empty {
	grid-column: 1 / -1;
	text-align: center;
	color: var(--ks-muted);
	padding: 48px 0;
	font-size: 15px;
}

/* ─── Karte ─────────────────────────────────────────── */

.tks-blog-card {
	background: var(--ks-card-bg);
	border-radius: var(--ks-radius);
	overflow: hidden;
	box-shadow: 0 2px 16px rgba(0,0,0,.07);
	display: flex;
	flex-direction: column;
}

.tks-blog-card--animated {
	transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.tks-blog-card--animated:hover {
	transform: translateY(-4px);
	box-shadow: 0 10px 36px rgba(0,0,0,.12);
}

/* Thumbnail */

.tks-blog-card-thumb {
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: var(--ks-bg-subtle);
}

.tks-blog-card-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease;
}

.tks-blog-card--animated:hover .tks-blog-card-thumb img {
	transform: scale(1.04);
}

.tks-blog-card-thumb-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 36px;
	background: var(--ks-bg-subtle);
}

.tks-blog-card-link {
	display: block;
	color: inherit;
	text-decoration: none;
}

/* Kategorie-Badges auf dem Bild */

.tks-blog-card-cats {
	position: absolute;
	top: 10px;
	left: 10px;
	display: flex;
	gap: 5px;
	flex-wrap: wrap;
}

.tks-blog-card-cat {
	display: inline-block;
	padding: 3px 9px;
	background: var(--ks-accent);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	border-radius: 20px;
	letter-spacing: 0.3px;
	text-transform: uppercase;
}

/* Card Body */

.tks-blog-card-body {
	padding: 18px 20px 20px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.tks-blog-card-meta {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	margin-bottom: 8px;
}

.tks-blog-card-date,
.tks-blog-card-author {
	font-size: 12px;
	color: var(--ks-muted);
}

.tks-blog-card-title {
	margin: 0 0 10px;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.35;
	color: var(--ks-h3);
}

.tks-blog-card-title a {
	color: inherit;
	text-decoration: none;
}

.tks-blog-card-title a:hover {
	color: var(--ks-accent);
}

.tks-blog-card-excerpt {
	font-size: 14px;
	line-height: 1.6;
	color: var(--ks-text);
	margin: 0 0 14px;
	flex: 1;
}

.tks-blog-card-readmore {
	display: inline-block;
	margin-top: auto;
	font-size: 13px;
	font-weight: 700;
	color: var(--ks-accent);
	text-decoration: none;
	letter-spacing: 0.3px;
}

.tks-blog-card-readmore:hover {
	text-decoration: underline;
}

/* ─── Pagination ────────────────────────────────────── */

.tks-blog-pagination {
	margin-top: 36px;
	text-align: center;
}

.tks-blog-load-more {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 32px;
	background: var(--ks-accent);
	color: #fff;
	border: none;
	border-radius: var(--ks-radius);
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.2s, transform 0.15s;
}

.tks-blog-load-more:hover {
	background: var(--ks-accent-dark);
	transform: translateY(-2px);
}

.tks-blog-load-more:disabled {
	opacity: 0.6;
	cursor: not-allowed;
	transform: none;
}

/* ═══════════════════════════════════════════════════
   CONTENT CONTAINER — max. Inhaltsbreite
   ══════════════════════════════════════════════════ */

.tks-blog-container {
	margin: 0 auto;
	padding: 0 40px;
}

/* ═══════════════════════════════════════════════════
   HERO SECTION — Volle Breite
   Beitragsbild als Hintergrund, Overlay,
   Titel + Meta linksbündig im Container.
   ══════════════════════════════════════════════════ */

.tks-blog-hero {
	position: relative;
	width: 100%;
	height: var(--tks-hero-h);
	overflow: hidden;
	display: flex;
	align-items: flex-end;
}

.tks-blog-hero-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: 1;
}

.tks-blog-hero-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		180deg,
		transparent 0%,
		var(--tks-hero-overlay, rgba(0, 0, 0, 0.6)) 100%
	);
	z-index: 2;
}

.tks-blog-hero-content {
	position: relative;
	z-index: 3;
	width: 100%;
	margin: 0 auto;
	padding: 40px 48px;
	text-align: left;
}

.tks-blog-hero-cats {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin-bottom: 16px;
}

.tks-blog-hero-cat {
	display: inline-block;
	padding: 6px 14px;
	background: var(--ks-accent);
	color: var(--ks-dark);
	font-size: 11px;
	font-weight: 600;
	border-radius: 999px;
	text-decoration: none;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	transition: background 0.2s;
}

.tks-blog-hero-cat:hover {
	background: var(--ks-accent-dark);
	color: #fff;
}

.tks-blog-hero-title {
	line-height: 1.2;
	color: #ffffff;
	text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
	margin: 0 0 14px;
	max-width: 700px;
}

.tks-blog-hero-date {
	font-size: 14px;
	color: rgba(255, 255, 255, 0.85);
	text-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
}

/* Hero ohne Beitragsbild — Fallback */

.tks-blog-hero--no-image {
	background: linear-gradient(135deg, var(--ks-dark) 0%, #2c2c2c 100%);
	height: auto;
	min-height: var(--tks-hero-h, 400px);
}

.tks-blog-hero--no-image .tks-blog-hero-overlay {
	display: none;
}

/* ═══════════════════════════════════════════════════
   SINGLE POST LAYOUT
   ══════════════════════════════════════════════════ */

.tks-blog-single {
	max-width: 100%;
}

/* ─── Abschnitte ────────────────────────────────────── */

.tks-blog-single-sections {
	display: flex;
	flex-direction: column;
	gap: var(--tks-section-gap);
	margin-top: var(--tks-section-gap);
}

.tks-blog-section {
	display: block;
}

/* Einleitung (kein Bild, zentriert) */
.tks-blog-section--intro {
	text-align: center;
	max-width: 860px;
	margin: 0 auto;
}

.tks-blog-section--intro .tks-blog-section-text {
	max-width: 100%;
	font-size: 18px;
	line-height: 1.85;
	color: var(--ks-text);
}

/* Bild-Text-Abschnitte: Text umfließt das Bild */

/*
 * display:block !important verhindert, dass Elementor/Theme
 * das Section-Text-Div auf flex/grid setzt — das würde den Float brechen.
 */
.tks-blog-section-text {
	display: block !important;
	text-align: left;
}

/* Clearfix: verhindert, dass der Section-Container kollabiert */
.tks-blog-section-text::after {
	content: '';
	display: table;
	clear: both;
}

/*
 * FLOAT-BILDER: Float-Richtung und Breite werden per Inline-Style
 * direkt im PHP gesetzt (theme-proof). Die CSS-Klassen hier dienen
 * nur als Fallback und für Mobile-Override.
 */

.tks-blog-img-float-rechts {
	float: right;
	margin: 4px 0 50px 50px;
}

.tks-blog-img-float-links {
	float: left;
	margin: 4px 50px 50px 0;
}

/* Bild oben (kein Float, volle Breite) */

.tks-blog-section-img-top {
	margin-bottom: 24px;
}

.tks-blog-section-img-top img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: var(--ks-radius);
	box-shadow: 0 4px 24px rgba(0,0,0,.08);
}

.tks-blog-section-text h2,
.tks-blog-section-text h3,
.tks-blog-section-text h4 {
	margin-top: 1.8em;
	margin-bottom: 0.55em;
	line-height: 1.3;
}

/* FIX (23.06.2026): TOC-Sprung-Offset deutlich vergrößert + auf JEDES Sprungziel
   (alle vom Inhaltsverzeichnis erzeugten Heading-IDs) angewandt, unabhängig vom Container.
   FIX (24.06.2026, Rainer): Fallback-Abstand 120px (konsistent zum JS-Offset in handleTocClick).
   Der eigentliche Sprung läuft jetzt über window.scrollTo mit festem 120px-Offset, weil
   scroll-behavior:smooth scrollIntoView unzuverlässig machte. */
[id^="tks-h-"] {
	scroll-margin-top: 120px;
}

/* Erste Überschrift direkt nach dem Float-Bild braucht kein Extra-Abstand oben */
.tks-blog-section-text > h2:first-child,
.tks-blog-section-text > h3:first-child,
.tks-blog-section-text > h4:first-child {
	margin-top: 0;
}

.tks-blog-section-text h2 { color: var(--ks-h2); }
.tks-blog-section-text h3 { color: var(--ks-dark); }
.tks-blog-section-text h4 { color: var(--ks-h3); }

.tks-blog-section-text p {
	font-size: 15px;
	line-height: 1.85;
	color: var(--ks-text);
	margin-top: 0;
	margin-bottom: 16px;
}

/* Pullquote / Blockquote */
.tks-blog-section-text blockquote {
	margin: 36px 0;
	padding: 20px 0 20px 28px;
	border-left: 3px solid var(--ks-accent);
	line-height: 1.5;
	color: var(--ks-dark);
	font-style: italic;
}

.tks-blog-section-text blockquote cite,
.tks-blog-section-text blockquote footer {
	display: block;
	margin-top: 12px;
	font-style: normal;
	font-size: 12px;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--ks-muted);
}

.tks-blog-section-text ul,
.tks-blog-section-text ol {
	padding-left: 1.5em;
	margin-top: 0;
	margin-bottom: 1.1em;
}

.tks-blog-section-text li {
	line-height: 1.75;
	margin-bottom: 0.4em;
}

/* Kein Abstand nach dem letzten Element */
.tks-blog-section-text > *:last-child {
	margin-bottom: 0;
}

/* ─── FAQ Accordion ─────────────────────────────────── */

.tks-blog-faq {
	margin-top: var(--tks-section-gap);
	padding-top: var(--tks-section-gap);
	border-top: 2px solid var(--ks-border);
}

.tks-blog-faq-title {
	font-size: 22px;
	font-weight: 800;
	color: var(--ks-h2);
	margin: 0 0 20px;
}

.tks-blog-faq-list {
	display: flex;
	flex-direction: column;
	gap: 0;
	border: 1px solid var(--ks-border);
	border-radius: var(--ks-radius);
	overflow: hidden;
}

.tks-blog-faq-item {
	border-bottom: 1px solid var(--ks-border);
}

.tks-blog-faq-item:last-child {
	border-bottom: none;
}

.tks-blog-faq-trigger {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 16px 20px;
	background: var(--ks-card-bg);
	border: none;
	text-align: left;
	cursor: pointer;
	transition: background 0.15s;
}

.tks-blog-faq-trigger:hover {
	background: var(--ks-bg-subtle);
}

.tks-blog-faq-trigger[aria-expanded="true"] {
	background: var(--ks-accent-light);
}

.tks-blog-faq-q-text {
	font-size: 15px;
	font-weight: 600;
	color: var(--ks-dark);
	line-height: 1.4;
	padding-right: 16px;
}

.tks-blog-faq-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	background: var(--ks-accent);
	color: #fff;
	border-radius: 50%;
	font-size: 18px;
	font-weight: 400;
	flex-shrink: 0;
	transition: transform 0.25s ease, background 0.15s;
	line-height: 1;
}

.tks-blog-faq-trigger[aria-expanded="true"] .tks-blog-faq-icon {
	transform: rotate(45deg);
	background: var(--ks-accent-dark);
}

.tks-blog-faq-answer {
	padding: 16px 20px 18px;
	font-size: 15px;
	line-height: 1.7;
	color: var(--ks-text);
	background: var(--ks-card-bg);
	border-top: 1px solid var(--ks-border);
	animation: tks-faq-slide-in 0.2s ease;
}

.tks-blog-faq-answer[hidden] {
	display: none;
}

@keyframes tks-faq-slide-in {
	from { opacity: 0; transform: translateY(-6px); }
	to   { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════════════
   ÄHNLICHE BEITRÄGE — Kompakte Mini-Cards
   ══════════════════════════════════════════════════ */

.tks-blog-related {
	margin-top: var(--tks-section-gap);
	padding-top: var(--tks-section-gap);
	border-top: 2px solid var(--ks-border);
}

.tks-blog-related-title {
	color: var(--ks-h2);
	margin: 0 0 24px;
	text-align: left;
}

.tks-blog-related-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 16px;
}

.tks-blog-mini-card {
	display: flex;
	gap: 16px;
	align-items: center;
	background: var(--ks-card-bg);
	border: 1px solid var(--ks-border);
	border-radius: var(--ks-radius);
	padding: 12px;
	text-decoration: none;
	color: inherit;
	transition: box-shadow 0.2s, transform 0.2s;
}

.tks-blog-mini-card:hover {
	box-shadow: 0 4px 20px rgba(0,0,0,.08);
	transform: translateY(-2px);
}

.tks-blog-mini-card-thumb {
	flex: 0 0 100px;
	width: 100px;
	height: 72px;
	border-radius: 6px;
	overflow: hidden;
	background: var(--ks-bg-subtle);
}

.tks-blog-mini-card-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.tks-blog-mini-card-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 24px;
}

.tks-blog-mini-card-body {
	flex: 1;
	min-width: 0;
}

.tks-blog-mini-card-title {
	font-size: 14px;
	font-weight: 700;
	line-height: 1.35;
	color: var(--ks-h3);
	margin: 0 0 6px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.tks-blog-mini-card-date {
	font-size: 12px;
	color: var(--ks-muted);
}

/* ═══════════════════════════════════════════════════
   KATEGORIE-NAVIGATION — Farbige Boxen
   ══════════════════════════════════════════════════ */

.tks-blog-categories {
	margin-top: var(--tks-section-gap);
	padding-top: var(--tks-section-gap);
	border-top: 2px solid var(--ks-border);
	padding-bottom: 48px;
}

.tks-blog-categories-title {
	font-size: 24px;
	font-weight: 800;
	color: var(--ks-h2);
	margin: 0 0 24px;
	text-align: left;
}

.tks-blog-categories-grid {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}

.tks-blog-cat-card {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 14px 22px;
	background: var(--ks-accent);
	color: #fff;
	border-radius: var(--ks-radius);
	text-decoration: none;
	font-weight: 700;
	font-size: 14px;
	letter-spacing: 0.3px;
	transition: background 0.2s, transform 0.15s;
}

.tks-blog-cat-card:hover {
	background: var(--ks-accent-dark);
	transform: translateY(-2px);
}

.tks-blog-cat-card--active {
	outline: 2px solid #fff;
	outline-offset: -2px;
}

.tks-blog-cat-card-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: rgba(255,255,255,0.25);
	color: #fff;
	font-size: 12px;
	font-weight: 800;
	width: 26px;
	height: 26px;
	border-radius: 50%;
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════ */

/* Tablet */
@media (max-width: 1024px) {
	.tks-blog-grid {
		grid-template-columns: repeat(var(--tks-cols-t), 1fr);
	}

	.tks-blog-hero-title {
		font-size: 30px;
	}

	.tks-blog-hero-content {
		padding: 28px 32px;
	}

	.tks-blog-container {
		padding: 0 24px;
	}

	.tks-blog-related-grid {
		grid-template-columns: 1fr;
	}

	/* Featured: 1 groß + 2 klein auf Tablet */
	.tks-blog-featured {
		grid-template-columns: repeat(2, 1fr);
	}

	.tks-blog-featured-card:first-child {
		grid-column: 1 / -1;
	}

	.tks-blog-cat-hero-title {
		font-size: 30px;
	}

	.tks-blog-cat-hero-content {
		padding: 0 24px;
	}
}

/* ═══════════════════════════════════════════════════
   INHALTSVERZEICHNIS (TOC) — Linke Sidebar
   Minimales Editorial-Design, kein Box-Rahmen.
   ══════════════════════════════════════════════════ */

/* ─── Layout ────────────────────────────────────── */

.tks-blog-toc-layout {
	display: flex;
	align-items: stretch; /* stretch statt flex-start — nur so greift position:sticky! */
	gap: 64px;
	padding-top: 8px;
}

/* TOC Sidebar — kommt im DOM zuerst (linke Seite) */
.tks-blog-toc-sidebar {
	flex: 0 0 240px;
	width: 240px;
}

/* Hauptinhalt — optimale Lesebreite */
.tks-blog-toc-main {
	flex: 1;
	min-width: 0;
	/* max-width: 860px; — wird durch Container-Breite + Sidebar-Breite begrenzt */
}

/* ─── TOC Inner (sticky, kein Rahmen) ─────────── */

.tks-blog-toc-inner {
	position: sticky;
	top: 50px;
	background: transparent;
	border: none;
	box-shadow: none;
	overflow: visible;
}

/* Header: Label + Einklapp-Button */
.tks-blog-toc-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-bottom: 10px;
	margin-bottom: 2px;
	border-bottom: 2px solid var(--ks-accent);
}

.tks-blog-toc-label {
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .18em;
	color: var(--ks-accent);
}

.tks-blog-toc-toggle {
	background: none;
	border: none;
	cursor: pointer;
	padding: 2px 4px;
	color: var(--ks-muted);
	font-size: 13px;
	line-height: 1;
	transition: color 0.15s, transform 0.25s;
}

.tks-blog-toc-toggle:hover {
	color: var(--ks-accent);
}

/* Fortschrittsbalken (direkt unter dem Header) */
.tks-blog-toc-progress-wrap {
	height: 2px;
	background: var(--ks-border);
	margin-bottom: 10px;
}

.tks-blog-toc-progress-bar {
	height: 100%;
	width: 0%;
	background: var(--ks-accent);
	transition: width 0.12s linear;
}

/* Navigation */
.tks-blog-toc-nav {
	padding: 0;
	max-height: calc(100vh - 180px);
	overflow-y: auto;
	scrollbar-width: thin;
	scrollbar-color: var(--ks-border) transparent;
}

.tks-blog-toc-nav::-webkit-scrollbar {
	width: 3px;
}

.tks-blog-toc-nav::-webkit-scrollbar-thumb {
	background: var(--ks-border);
	border-radius: 2px;
}

/* TOC-Links */
.tks-blog-toc-link {
	display: block;
	padding: 7px 0 7px 12px;
	font-size: 13px;
	line-height: 1.4;
	color: var(--ks-text);
	text-decoration: none;
	border-left: 2px solid var(--ks-border);
	transition: color 0.15s, border-color 0.15s, background 0.15s;
	letter-spacing: .005em;
	white-space: normal; /* FIX (Rainer 15.06.2026): lange TOC-Überschriften umbrechen statt abschneiden */
	overflow: visible;
}

.tks-blog-toc-link:hover {
	color: var(--ks-dark);
	border-left-color: var(--ks-accent-light);
}

.tks-blog-toc-link.active {
	color: var(--ks-dark);
	border-left-color: var(--ks-accent);
	font-weight: 500;
}

/* h3 eingerückt, kleiner, gedämpfter */
.tks-blog-toc-link--h3 {
	padding-left: 22px;
	font-size: 12px;
	color: var(--ks-muted);
}

.tks-blog-toc-link--h3.active {
	color: var(--ks-dark);
}

/* ─── Sidebar eingeklappt ──────────────────────── */

.tks-blog-toc-sidebar.is-collapsed .tks-blog-toc-nav,
.tks-blog-toc-sidebar.is-collapsed .tks-blog-toc-progress-wrap {
	display: none;
}

.tks-blog-toc-sidebar.is-collapsed {
	flex: 0 0 32px;
	width: 32px;
}

.tks-blog-toc-sidebar.is-collapsed .tks-blog-toc-label {
	display: none;
}

.tks-blog-toc-sidebar.is-collapsed .tks-blog-toc-header {
	border-bottom-color: var(--ks-border);
	justify-content: center;
}

.tks-blog-toc-sidebar.is-collapsed .tks-blog-toc-toggle {
	transform: rotate(180deg);
}

/* ─── Mobile TOC Bar ───────────────────────────── */

.tks-blog-toc-mobile-bar {
	display: none;
	margin: 28px 0 0;
	border-left: 3px solid var(--ks-accent);
	border-radius: 0 var(--ks-radius) var(--ks-radius) 0;
	overflow: hidden;
	background: var(--ks-bg-subtle);
	position: sticky;
	top: 15px;
	z-index: 50;
}

.tks-blog-toc-mobile-toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 11px 16px;
	background: none;
	border: none;
	cursor: pointer;
	font-size: 13px;
	font-weight: 700;
	color: var(--ks-dark);
	font-family: inherit;
	letter-spacing: 0.3px;
}

.tks-blog-toc-mobile-arrow {
	transition: transform 0.2s;
	font-size: 11px;
	color: var(--ks-muted);
}

.tks-blog-toc-mobile-bar.is-open .tks-blog-toc-mobile-arrow {
	transform: rotate(180deg);
}

.tks-blog-toc-mobile-nav {
	padding: 6px 0 10px;
	border-top: 1px solid var(--ks-border);
	background: var(--ks-card-bg);
}

.tks-blog-toc-mobile-nav[hidden] {
	display: none;
}

.tks-blog-toc-mobile-nav .tks-blog-toc-link {
	padding: 6px 16px 6px 18px;
	font-size: 14px;
	color: var(--ks-text);
	border-left: none;
	white-space: normal;
}

.tks-blog-toc-mobile-nav .tks-blog-toc-link--h3 {
	padding-left: 30px;
	font-size: 13px;
}

.tks-blog-toc-mobile-nav .tks-blog-toc-link.active {
	color: var(--ks-accent);
	font-weight: 700;
}

/* ─── Responsive ────────────────────────────────── */

@media (max-width: 1280px) {
	.tks-blog-toc-layout {
		gap: 48px;
	}

	.tks-blog-toc-sidebar {
		flex: 0 0 220px;
		width: 220px;
	}
}

@media (max-width: 1100px) {
	.tks-blog-toc-layout {
		gap: 36px;
	}

	.tks-blog-toc-sidebar {
		flex: 0 0 200px;
		width: 200px;
	}
}

@media (max-width: 1024px) {
	.tks-blog-toc-layout {
		display: block;
	}

	.tks-blog-toc-sidebar {
		display: none;
	}

	.tks-blog-toc-mobile-bar {
		display: block;
	}
}

/* ═══════════════════════════════════════════════════
   EDITORIAL VERBESSERUNGEN — Single Post
   Saubereres Layout, bessere Typografie
   ══════════════════════════════════════════════════ */

/* In TOC-Layout: Einleitung linksbündig statt zentriert */
.tks-blog-toc-main .tks-blog-section--intro {
	text-align: left !important;
	max-width: 100% !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}

/* Intro/Lead */
.tks-blog-toc-main .tks-blog-section--intro .tks-blog-section-text {
	font-size: 17px;
	line-height: 1.9;
	color: var(--ks-dark);
	font-weight: 400;
	letter-spacing: .005em;
	margin-bottom: 56px;
}

/* Mehr Abstand zwischen Abschnitten */
.tks-blog-toc-main .tks-blog-single-sections {
	gap: 56px;
}

.tks-blog-section-text h2 {
	margin-left: 0;
	margin-bottom: 22px;
}

/* ═══════════════════════════════════════════════════
   PROFIL-INTEGRATION — Neuester Artikel Card
   (Wird in Tänzer-Dashboard Heute/Home eingefügt)
   ══════════════════════════════════════════════════ */

.tks-blog-profil-latest {
	margin-top: 20px;
	padding-top: 16px;
	border-top: 1px solid rgba(0,0,0,.08);
}

.tks-blog-profil-latest-label {
	font-size: 11px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.7px;
	color: var(--ks-muted);
	margin-bottom: 10px;
}

.tks-blog-profil-latest-card {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	text-decoration: none;
	color: inherit;
	background: var(--ks-card-bg);
	border: 1px solid var(--ks-border);
	border-radius: 10px;
	padding: 12px;
	transition: box-shadow 0.2s, transform 0.18s;
}

.tks-blog-profil-latest-card:hover {
	box-shadow: 0 4px 18px rgba(0,0,0,.1);
	transform: translateY(-2px);
}

.tks-blog-profil-latest-card img {
	flex: 0 0 72px;
	width: 72px;
	height: 54px;
	object-fit: cover;
	border-radius: 7px;
	display: block;
}

.tks-blog-profil-latest-body {
	flex: 1;
	min-width: 0;
}

.tks-blog-profil-latest-date {
	display: flex;
	gap: 6px;
	align-items: center;
	font-size: 11px;
	color: var(--ks-muted);
	margin-bottom: 4px;
	flex-wrap: wrap;
}

.tks-blog-profil-latest-cat {
	display: inline-block;
	padding: 1px 8px;
	background: var(--ks-accent);
	color: #fff;
	font-size: 9px;
	font-weight: 700;
	border-radius: 20px;
	text-transform: uppercase;
	letter-spacing: .4px;
}

.tks-blog-profil-latest-title {
	font-size: 14px;
	font-weight: 700;
	line-height: 1.35;
	color: var(--ks-dark);
	margin-bottom: 4px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.tks-blog-profil-latest-excerpt {
	font-size: 12px;
	color: var(--ks-muted);
	line-height: 1.5;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin-bottom: 6px;
}

.tks-blog-profil-latest-read {
	font-size: 12px;
	font-weight: 700;
	color: var(--ks-accent);
}

/* ─── Profil Blog-Panel: Artikel-Liste ─────────── */

.tks-blog-profil-panel {
	padding: 16px 0;
}

.tks-blog-profil-panel-header {
	padding: 0 16px 12px;
	border-bottom: 1px solid rgba(0,0,0,.07);
	margin-bottom: 8px;
}

.tks-blog-profil-panel-title {
	font-size: 18px;
	font-weight: 800;
	color: var(--ks-dark);
	margin: 0;
}

.tks-blog-profil-empty {
	padding: 24px 16px;
	color: var(--ks-muted);
	font-size: 14px;
	text-align: center;
}

.tks-blog-profil-list {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.tks-blog-profil-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 16px;
	text-decoration: none;
	color: inherit;
	transition: background 0.15s;
	border-radius: 8px;
	margin: 0 4px;
}

.tks-blog-profil-item:hover {
	background: var(--ks-accent-light);
}

.tks-blog-profil-item-thumb {
	flex: 0 0 56px;
	width: 56px;
	height: 42px;
	border-radius: 6px;
	overflow: hidden;
	background: var(--ks-bg-subtle);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
}

.tks-blog-profil-item-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.tks-blog-profil-item-body {
	flex: 1;
	min-width: 0;
}

.tks-blog-profil-item-meta {
	display: flex;
	gap: 8px;
	align-items: center;
	margin-bottom: 3px;
}

.tks-blog-profil-item-date {
	font-size: 11px;
	color: var(--ks-muted);
}

.tks-blog-profil-item-cat {
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.4px;
	color: #fff;
	background: var(--ks-accent);
	padding: 1px 7px;
	border-radius: 20px;
}

.tks-blog-profil-item-title {
	font-size: 14px;
	font-weight: 600;
	line-height: 1.35;
	color: var(--ks-dark);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.tks-blog-profil-item-arrow {
	font-size: 16px;
	color: var(--ks-accent);
	flex-shrink: 0;
}

/* Mobil */
@media (max-width: 767px) {
	.tks-blog-grid {
		grid-template-columns: repeat(var(--tks-cols-m), 1fr);
		gap: 18px;
	}

	.tks-blog-hero {
		height: auto !important;
		min-height: 300px;
		align-items: flex-end;
	}

	.tks-blog-hero-title {
		font-size: 26px;
		line-height: 1.25;
	}

	.tks-blog-hero-content {
		padding: 24px 20px;
	}

	.tks-blog-hero-date {
		font-size: 13px;
	}

	.tks-blog-container {
		padding: 0 16px;
	}

	/* Floats auf Mobil aufheben – Bild erscheint über dem Text
	   !important überschreibt den Inline-Style aus dem PHP */
	.tks-blog-img-float-rechts,
	.tks-blog-img-float-links {
		float: none !important;
		width: 100% !important;
		margin: 0 0 20px 0 !important;
	}

	.tks-blog-section--intro .tks-blog-section-text {
		font-size: 16px;
	}

	.tks-blog-card-title {
		font-size: 15px;
	}

	.tks-blog-faq-title {
		font-size: 18px;
	}

	.tks-blog-related-grid {
		grid-template-columns: 1fr;
	}

	.tks-blog-mini-card-thumb {
		flex: 0 0 80px;
		width: 80px;
		height: 60px;
	}

	.tks-blog-related-title,
	.tks-blog-categories-title,
	.tks-blog-categories-bottom-title {
		font-size: 20px;
	}

	.tks-blog-categories-grid {
		gap: 8px;
	}

	.tks-blog-cat-card {
		padding: 10px 16px;
		font-size: 13px;
	}

	/* Featured Cards mobil */
	.tks-blog-featured {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.tks-blog-featured-card {
		aspect-ratio: 16 / 9;
	}

	.tks-blog-featured-card-title {
		font-size: 18px;
	}

	.tks-blog-page-title {
		font-size: 28px;
	}

	.tks-blog-page-subtitle {
		font-size: 15px;
	}

	/* Filter Pills mobil */
	.tks-blog-filter {
		gap: 8px;
	}

	.tks-blog-filter-pill {
		padding: 6px 14px;
		font-size: 12px;
	}

	/* Kategorie-Hero mobil */
	.tks-blog-cat-hero {
		padding: 36px 0;
	}

	.tks-blog-cat-hero-title {
		font-size: 26px;
	}

	.tks-blog-cat-hero-desc {
		font-size: 15px;
	}

	.tks-blog-cat-hero-content {
		padding: 0 16px;
	}
}

/* ═══════════════════════════════════════════════════
   TÄNZERPROFIL — Blog-Panel (tksbp-*)
   Featured-Card + Kategorie-Filter + Beitragsliste
   ══════════════════════════════════════════════════ */

.tksbp-panel {
	display: flex;
	flex-direction: column;
	min-height: 100%;
	background: var(--ks-card-bg);
}

/* ── Header ─────────────────────────────────────── */

.tksbp-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 16px 12px;
	border-bottom: 1px solid var(--ks-border);
}

.tksbp-header-title {
	font-size: 16px;
	font-weight: 700;
	color: var(--ks-dark);
}

.tksbp-header-all {
	font-size: 12px;
	font-weight: 600;
	color: var(--ks-accent);
	text-decoration: none;
	letter-spacing: .03em;
}

.tksbp-header-all:hover {
	text-decoration: underline;
}

/* ── Kategorie-Filter ────────────────────────────── */

.tksbp-filter {
	display: flex;
	gap: 6px;
	padding: 10px 16px;
	overflow-x: auto;
	scrollbar-width: none;
	border-bottom: 1px solid var(--ks-border);
	-webkit-overflow-scrolling: touch;
}

.tksbp-filter::-webkit-scrollbar {
	display: none;
}

.tksbp-pill {
	flex-shrink: 0;
	padding: 5px 14px;
	border-radius: 20px;
	border: 1px solid var(--ks-border);
	background: transparent;
	color: var(--ks-text);
	font-size: 12px;
	font-weight: 500;
	cursor: pointer;
	font-family: inherit;
	transition: background .15s, border-color .15s, color .15s;
	white-space: nowrap;
	line-height: 1.4;
}

.tksbp-pill:hover {
	border-color: var(--ks-accent);
	color: var(--ks-accent);
}

.tksbp-pill.active {
	background: var(--ks-accent);
	border-color: var(--ks-accent);
	color: #1a1a2e; /* FIX (Rainer 15.06.2026): dunkler Text auf Gold (weiß war unlesbar) */
}

/* ── Featured Card ───────────────────────────────── */

.tksbp-featured-wrap {
	display: block;
}

.tksbp-featured {
	display: block;
	text-decoration: none;
	color: inherit;
}

.tksbp-featured-img {
	position: relative;
	height: 190px;
	background-size: cover;
	background-position: center;
	display: flex;
	align-items: flex-end;
}

.tksbp-featured-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0,0,0,.08) 0%, rgba(0,0,0,.72) 100%);
}

.tksbp-featured-body {
	position: relative;
	z-index: 1;
	padding: 14px 16px;
	width: 100%;
	color: #fff;
}

.tksbp-featured-nothumb {
	display: flex;
	align-items: flex-end;
	min-height: 130px;
	background: linear-gradient(135deg, var(--ks-dark) 0%, #2c2c4a 100%);
}

.tksbp-featured-nothumb .tksbp-featured-body {
	color: #fff;
}

.tksbp-featured-excerpt {
	font-size: 13px;
	line-height: 1.5;
	color: rgba(255,255,255,.8);
	margin: 6px 0 8px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Badges in Featured */
.tksbp-featured-eyebrow {
	display: flex;
	gap: 6px;
	align-items: center;
	margin-bottom: 7px;
	flex-wrap: wrap;
}

.tksbp-new-badge {
	display: inline-block;
	padding: 2px 9px;
	background: var(--ks-accent);
	color: #1a1a2e;
	font-size: 10px;
	font-weight: 800;
	border-radius: 20px;
	text-transform: uppercase;
	letter-spacing: .5px;
}

.tksbp-cat-badge {
	display: inline-block;
	padding: 2px 9px;
	background: rgba(255,255,255,.18);
	color: #fff;
	font-size: 10px;
	font-weight: 600;
	border-radius: 20px;
	text-transform: uppercase;
	letter-spacing: .4px;
}

.tksbp-featured-title {
	font-size: 15px;
	font-weight: 700;
	line-height: 1.35;
	color: #fff;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.tksbp-featured-date {
	font-size: 11px;
	color: rgba(255,255,255,.65);
	margin-top: 5px;
}

/* ── Abschnitts-Trenner ──────────────────────────── */

.tksbp-section-label {
	font-size: 10px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .12em;
	color: var(--ks-muted);
	padding: 10px 16px 6px;
	border-top: 1px solid var(--ks-border);
}

/* ── Beitragsliste ───────────────────────────────── */

.tksbp-list {
	display: flex;
	flex-direction: column;
}

.tksbp-item {
	display: flex;
	align-items: center;
	gap: 11px;
	padding: 9px 16px;
	text-decoration: none;
	color: inherit;
	border-bottom: 1px solid var(--ks-border);
	transition: background .12s;
}

.tksbp-item:last-child {
	border-bottom: none;
}

.tksbp-item:hover,
.tksbp-item:active {
	background: var(--ks-bg-subtle);
}

.tksbp-item-thumb {
	flex: 0 0 54px;
	width: 54px;
	height: 42px;
	border-radius: 6px;
	overflow: hidden;
	background: var(--ks-bg-subtle);
	display: flex;
	align-items: center;
	justify-content: center;
}

.tksbp-item-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.tksbp-item-icon {
	font-size: 18px;
}

.tksbp-item-body {
	flex: 1;
	min-width: 0;
}

.tksbp-item-cat {
	display: block;
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .4px;
	color: var(--ks-accent);
	margin-bottom: 2px;
}

.tksbp-item-title {
	font-size: 13px;
	font-weight: 600;
	line-height: 1.35;
	color: var(--ks-dark);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.tksbp-item-date {
	font-size: 11px;
	color: var(--ks-muted);
	margin-top: 2px;
}

.tksbp-item-arrow {
	font-size: 20px;
	color: var(--ks-muted);
	flex-shrink: 0;
	line-height: 1;
}

/* ── Empty / No-Results ──────────────────────────── */

.tksbp-empty,
.tksbp-no-results {
	padding: 32px 16px;
	text-align: center;
	color: var(--ks-muted);
	font-size: 14px;
}

/* ═══════════════════════════════════════════════════
   INHALTSVERZEICHNIS: an ALLEN Breiten oben (wie mobil)
   statt linker Sidebar (Rainer 16.06.2026).
   Überschreibt die Default-Flex-Sidebar-Regeln (kommt im
   Stylesheet später → gleiche Spezifität, gewinnt).
   ══════════════════════════════════════════════════ */
.tks-blog-toc-layout { display: block; }
.tks-blog-toc-sidebar { display: none; }
.tks-blog-toc-mobile-bar {
	display: block;
	max-width: 880px;
	margin-left: auto;
	margin-right: auto;
}
.tks-blog-toc-main {
	max-width: 880px;
	margin-left: auto;
	margin-right: auto;
}

/* FEATURE (24.06.2026, Rainer): Schul-Logo NUR als Bild (kein Kasten/Rahmen) genau in die obere linke Ecke
   der Blog-Hero, groß & gut erkennbar. Nur Single-Artikel + Kategorie (echter Hero); Übersicht = Elementor-Hero. */
.tks-blog-hero, .tks-blog-cat-hero { position: relative; }
/* Single-Artikel-Hero hat im Haupt-Stylesheet overflow:hidden (begrenzt das Titelbild) → das in den
   Header ragende Logo (top:-88px) würde abgeschnitten. border-radius=0 und das Bild ist per
   width/height:100% exakt hero-groß (ragt nie raus), daher hebt overflow:visible die Beschneidung
   gefahrlos auf, damit das Logo wie auf der Startseite voll in die Header-Ecke ragt. (Rainer 24.06.2026) */
.tks-blog-hero { overflow: visible !important; }
.tks-blog-hero-logo {
	position: absolute;
	top: -72px;   /* versetzt nach OBEN: Logo sitzt in der oberen linken HEADER-Ecke (wie Startseite) und ragt über den Header (Rainer 24.06.2026) */
	left: 0;      /* ganz an den linken Rand (Rainer 24.06.2026) */
	z-index: 999; /* über den position:static Elementor-Header */
	display: block;
	line-height: 0;
}
.tks-blog-hero-logo img {
	/* +20% (96→115px) und fluide responsiv: skaliert sauber zwischen klein & groß, keine harten Sprünge */
	height: clamp(120px, 12vw, 168px) !important;
	width: auto !important;
	max-height: 168px !important;
	display: block;
}
/* MOBIL/TABLET: Logo NICHT in den Header ragen lassen (verdeckte sonst den Taenzerprofil-Button) —
   stattdessen unter den Header in den Hero, wie das Startseiten-Logo auf Mobil, + kleiner. (24.06.2026) */
@media (max-width: 1024px) {
	.tks-blog-hero-logo { top: 0; left: 0; }
	.tks-blog-hero-logo img {
		height: clamp(60px, 13vw, 96px) !important;
		max-height: 96px !important;
	}
}
/* Hero-Hintergrund: EXAKT der Theme-Header-Verlauf (Rainer 24.06.2026 — „unsaubere Kante" zwischen
   Header und Hero). Gleiche Richtung (90deg) + gleiche Stops wie der Elementor-Header → der Hero setzt
   den Header nahtlos fort, beide wirken als EINE durchgehende gelbe Fläche. */
.tks-blog-cat-hero,
.tks-blog-hero.tks-blog-hero--no-image {
	background: linear-gradient(90deg, #ffff00 33%, #f7cb00 66%, #f3b500 100%) !important;
}

/* FIX (Rainer 24.06.2026): Das Theme erzwingt global `img { height: auto }` und überschreibt damit
   die height:100% der Card-Bilder → das Bild füllte nur seine Eigen-Höhe (proportional), unten blieb
   der helle Card-Hintergrund sichtbar = „weißer Rand". object-fit:cover war dadurch wirkungslos.
   height/width/object-fit mit !important erzwingen, dass JEDES Card-Bild die ganze Bildfläche füllt
   und sauber beschnitten wird (kein Letterbox/weißer Rand), egal welches Seitenverhältnis. */
.tks-blog-featured-card-img,
.tks-blog-card-thumb img,
.tks-blog-mini-card-thumb img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
}
