/*
 * Alltagsfuchs – Sidebar Themenwelt v1.2
 * AF_SIDEBAR_THEMENWELT_V1
 * AF_SIDEBAR_THEMENWELT_V11
 * AF_SIDEBAR_THEMENWELT_V12
 * AF_SIDEBAR_THEMENWELT_V122
 * AF_SIDEBAR_THEMENWELT_V121
 */

.single-post .inside-right-sidebar .afstw-widget {
	margin-top: 30px;
	padding: 0;
	background: transparent;
	box-shadow: none;
}

/* Themenwelt: ein ruhiges, geschlossenes Magazinmodul. */
.single-post .afstw-topic {
	overflow: hidden;
	border: 1px solid #e7e7e7;
	border-radius: 8px;
	background: #fff;
}

.single-post .afstw-head {
	padding: 14px 15px 11px;
	border-bottom: 1px solid #ededed;
	background: #fafafa;
}

.single-post .afstw-eyebrow {
	display: block;
	margin-bottom: 4px;
	color: #767676;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: .075em;
	text-transform: uppercase;
}

.single-post .afstw-title {
	margin: 0;
	color: #171717;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.28;
	letter-spacing: -.012em;
	text-wrap: balance;
}

.single-post .afstw-list {
	padding: 0 14px;
}

.single-post .afstw-item {
	margin: 0;
	border-bottom: 1px solid #ededed;
}

.single-post .afstw-link {
	display: grid;
	grid-template-columns: 70px minmax(0, 1fr);
	gap: 11px;
	align-items: center;
	padding: 11px 0;
	color: inherit;
	text-decoration: none;
}

.single-post .afstw-media {
	display: block;
	width: 70px;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border-radius: 6px;
	background: #f2f2f2;
}

.single-post .afstw-image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.single-post .afstw-image--empty {
	background: linear-gradient(135deg, rgba(255,117,24,.11), rgba(23,23,23,.035));
}

.single-post .afstw-item-title {
	display: -webkit-box;
	overflow: hidden;
	color: #242424;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	text-wrap: pretty;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

.single-post .afstw-link:hover .afstw-item-title,
.single-post .afstw-link:focus-visible .afstw-item-title {
	color: #c9560a;
}

.single-post .afstw-link:focus-visible,
.single-post .afstw-more:focus-visible,
.single-post .afstw-update-link:focus-visible {
	outline: 2px solid #ff7518;
	outline-offset: 2px;
	border-radius: 4px;
}

.single-post .afstw-more {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 11px 14px 12px;
	color: #3b3b3b;
	font-size: 11.5px;
	font-weight: 700;
	line-height: 1.3;
	text-decoration: none;
}

.single-post .afstw-more:hover,
.single-post .afstw-more:focus-visible {
	color: #c9560a;
}

/* Zweiter Block: absichtlich leichter als das Themenwelt-Modul. */
.single-post .afstw-updated {
	margin-top: 16px;
	padding: 13px 14px 8px;
	border-radius: 9px;
	background: #f7f7f6;
}

.single-post .afstw-updated-head {
	margin-bottom: 4px;
}

.single-post .afstw-updated-eyebrow {
	display: block;
	position: relative;
	padding-left: 12px;
	color: #171717;
	font-size: 11px;
	font-weight: 750;
	line-height: 1.25;
	letter-spacing: .03em;
	text-transform: uppercase;
}

.single-post .afstw-updated-eyebrow::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 0;
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: #ff7518;
	transform: translateY(-50%);
}

.single-post .afstw-updated-list {
	margin-top: 3px;
}

.single-post .afstw-update-item {
	margin: 0;
	border-top: 1px solid #e5e5e5;
}

.single-post .afstw-update-link {
	display: block;
	padding: 10px 0 9px;
	color: inherit;
	text-decoration: none;
}

.single-post .afstw-update-title {
	display: -webkit-box;
	overflow: hidden;
	color: #2b2b2b;
	font-size: 13.5px;
	font-weight: 600;
	line-height: 1.4;
	text-wrap: pretty;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.single-post .afstw-update-date {
	display: block;
	margin-top: 3px;
	color: #858585;
	font-size: 11.5px;
	font-weight: 500;
	line-height: 1.35;
}

.single-post .afstw-update-link:hover .afstw-update-title,
.single-post .afstw-update-link:focus-visible .afstw-update-title {
	color: #c9560a;
}

/* Dark Mode */
html.dark-mode .single-post .afstw-topic {
	border-color: var(--af-border, #333);
	background: var(--af-bg-card, #181818);
}

html.dark-mode .single-post .afstw-head {
	border-bottom-color: var(--af-border, #333);
	background: var(--af-bg-elev, #222);
}

html.dark-mode .single-post .afstw-title,
html.dark-mode .single-post .afstw-item-title,
html.dark-mode .single-post .afstw-more,
html.dark-mode .single-post .afstw-updated-eyebrow,
html.dark-mode .single-post .afstw-update-title {
	color: var(--af-text-head, #f2f2f2);
}

html.dark-mode .single-post .afstw-eyebrow,
html.dark-mode .single-post .afstw-update-date {
	color: var(--af-text-muted, #aaa);
}

html.dark-mode .single-post .afstw-item,
html.dark-mode .single-post .afstw-update-item {
	border-color: var(--af-border, #333);
}

html.dark-mode .single-post .afstw-media {
	background: var(--af-bg-elev, #222);
}

html.dark-mode .single-post .afstw-updated {
	background: var(--af-bg-elev, #222);
}

html.dark-mode .single-post .afstw-link:hover .afstw-item-title,
html.dark-mode .single-post .afstw-link:focus-visible .afstw-item-title,
html.dark-mode .single-post .afstw-more:hover,
html.dark-mode .single-post .afstw-more:focus-visible,
html.dark-mode .single-post .afstw-update-link:hover .afstw-update-title,
html.dark-mode .single-post .afstw-update-link:focus-visible .afstw-update-title {
	color: #ff8b3d;
}

@media (max-width: 768px) {
	.single-post .inside-right-sidebar .afstw-widget {
		margin-top: 24px;
	}

	.single-post .afstw-link {
		grid-template-columns: 82px minmax(0, 1fr);
		gap: 12px;
	}

	.single-post .afstw-media {
		width: 82px;
	}

	.single-post .afstw-item-title {
		font-size: 14px;
	}

	.single-post .afstw-update-title {
		font-size: 13.5px;
	}
}
