/* gamification.css */
/* Gamification Plugin Styles */

/* === Progress Bar === */
.gamificationProgressBar {
    background-color: var(--wcfContentContainerBackground);
    border: 1px solid var(--wcfContentContainerBorder);
    border-radius: 10px;
    height: 18px;
    overflow: hidden;
    margin-top: 5px;
    position: relative;
}

.gamificationProgressBar > .gamificationProgressBarInner {
    background: linear-gradient(90deg, #3498db, #2ecc71);
    height: 100%;
    border-radius: 10px;
    transition: width 0.5s ease-in-out;
    min-width: 0;
}

.gamificationProgressBar > .gamificationProgressBarLabel {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 11px;
    line-height: 18px;
    color: var(--wcfContentText);
    font-weight: 600;
}

/* === Level Badge (in Posts) === */
.gamificationLevelBadge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin-left: 4px;
    vertical-align: middle;
    line-height: 1.4;
}

.gamificationLevelBadge.level-1,
.gamificationLevelBadge.level-2 {
    background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
}

.gamificationLevelBadge.level-3,
.gamificationLevelBadge.level-4 {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
}

.gamificationLevelBadge.level-5,
.gamificationLevelBadge.level-6 {
    background: linear-gradient(135deg, #2980b9 0%, #3498db 100%);
}

.gamificationLevelBadge.level-7,
.gamificationLevelBadge.level-8 {
    background: linear-gradient(135deg, #8e44ad 0%, #9b59b6 100%);
}

.gamificationLevelBadge.level-9 {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

.gamificationLevelBadge.level-10 {
    background: linear-gradient(135deg, #f39c12 0%, #f1c40f 100%);
    color: #333;
}

/* === XP Badge in sidebar === */
.gamificationXPBadge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 11px;
    color: var(--wcfContentDimmedText);
}

/* === Badge Display === */
.gamificationBadgeList {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 0;
}

.gamificationBadgeItem {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 80px;
    text-align: center;
}

.gamificationBadgeIcon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
    margin-bottom: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease;
}

.gamificationBadgeIcon:hover {
    transform: scale(1.15);
}

.gamificationBadgeItem > .gamificationBadgeName {
    font-size: 11px;
    line-height: 1.3;
    color: var(--wcfContentText);
    word-break: break-word;
}

/* === Profile Stats Grid === */
.gamificationProfileStats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    padding: 10px 0;
}

.gamificationStatCard {
    background: var(--wcfContentContainerBackground);
    border: 1px solid var(--wcfContentContainerBorder);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
}

.gamificationStatCard > .gamificationStatValue {
    font-size: 24px;
    font-weight: 700;
    color: var(--wcfContentLink);
    line-height: 1.2;
}

.gamificationStatCard > .gamificationStatLabel {
    font-size: 12px;
    color: var(--wcfContentDimmedText);
    margin-top: 4px;
}

/* === Dashboard Stats (ACP) === */
.gamificationDashboardGrid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.gamificationDashboardCard {
    background: var(--wcfContentContainerBackground);
    border: 1px solid var(--wcfContentContainerBorder);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

.gamificationDashboardCard > .gamificationDashboardValue {
    font-size: 28px;
    font-weight: 700;
    color: var(--wcfContentLink);
}

.gamificationDashboardCard > .gamificationDashboardLabel {
    font-size: 13px;
    color: var(--wcfContentDimmedText);
    margin-top: 5px;
}

/* === Quest Card (Frontend) === */
.gamificationQuestCard {
    border: 1px solid var(--wcfContentContainerBorder);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    background: var(--wcfContentContainerBackground);
    transition: box-shadow 0.2s ease;
}

.gamificationQuestCard:hover {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.gamificationQuestCard.completed {
    border-color: #2ecc71;
    background: rgba(46, 204, 113, 0.05);
}

.gamificationQuestHeader {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.gamificationQuestHeader > .gamificationQuestIcon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--wcfContentLink);
    color: #fff;
    font-size: 18px;
    flex-shrink: 0;
}

.gamificationQuestInfo {
    flex: 1;
}

.gamificationQuestInfo > h3 {
    margin: 0;
    font-size: 14px;
}

.gamificationQuestInfo > p {
    margin: 2px 0 0;
    font-size: 12px;
    color: var(--wcfContentDimmedText);
}

.gamificationQuestReward {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    font-weight: 600;
    color: var(--wcfContentLink);
}

/* === Leaderboard Sidebar === */
.gamificationLeaderboardList > li {
    padding: 6px 0;
}

.gamificationLeaderboardList .gamificationRank {
    font-weight: 700;
    min-width: 24px;
    text-align: center;
}

.gamificationLeaderboardList .gamificationRank.top1 { color: #f1c40f; }
.gamificationLeaderboardList .gamificationRank.top2 { color: #95a5a6; }
.gamificationLeaderboardList .gamificationRank.top3 { color: #cd7f32; }

/* === Notification Toast === */
.gamificationNotification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    padding: 15px 20px;
    border-radius: 8px;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    animation: gamificationSlideIn 0.5s ease-out;
}

.gamificationNotification.levelUp {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.gamificationNotification.badgeEarned {
    background: linear-gradient(135deg, #f39c12, #e67e22);
}

@keyframes gamificationSlideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* === Leaderboard Highlight (Perk) === */
.gamificationHighlight-gold {
    background: linear-gradient(90deg, rgba(241, 196, 15, 0.08) 0%, transparent 100%) !important;
    border-left: 3px solid #f1c40f;
}

.gamificationHighlight-silver {
    background: linear-gradient(90deg, rgba(149, 165, 166, 0.08) 0%, transparent 100%) !important;
    border-left: 3px solid #95a5a6;
}

.gamificationHighlight-bronze {
    background: linear-gradient(90deg, rgba(205, 127, 50, 0.08) 0%, transparent 100%) !important;
    border-left: 3px solid #cd7f32;
}

/* === Profil-Banner (Perk) === */
.gamificationBanner-gold {
    position: relative;
    border: 2px solid #f1c40f;
    border-radius: 8px;
    box-shadow: 0 0 12px rgba(241, 196, 15, 0.3);
}

.gamificationBanner-gold::before {
    content: '\f521';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: -12px;
    right: 15px;
    background: linear-gradient(135deg, #f39c12, #f1c40f);
    color: #333;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.gamificationBanner-silver {
    position: relative;
    border: 2px solid #95a5a6;
    border-radius: 8px;
    box-shadow: 0 0 8px rgba(149, 165, 166, 0.3);
}

.gamificationBanner-silver::before {
    content: '\f005';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: -12px;
    right: 15px;
    background: linear-gradient(135deg, #95a5a6, #bdc3c7);
    color: #fff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.gamificationBanner-bronze {
    position: relative;
    border: 2px solid #cd7f32;
    border-radius: 8px;
    box-shadow: 0 0 8px rgba(205, 127, 50, 0.2);
}

/* === Profil-Effekt: Glanz (shine) === */
.gamificationEffect-shine {
    position: relative;
    overflow: hidden;
}

.gamificationEffect-shine::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.08) 40%,
        rgba(255, 255, 255, 0.15) 50%,
        rgba(255, 255, 255, 0.08) 60%,
        transparent 70%
    );
    animation: gamificationShine 4s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes gamificationShine {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

/* === Profil-Effekt: Feuer (fire) === */
.gamificationEffect-fire {
    position: relative;
}

.gamificationEffect-fire::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #e74c3c, #f39c12, #e67e22, #e74c3c);
    background-size: 400% 400%;
    border-radius: inherit;
    z-index: -1;
    animation: gamificationFire 3s ease infinite;
    filter: blur(4px);
    opacity: 0.6;
}

@keyframes gamificationFire {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ===== 2.0: Ranglisten-Zeiträume, Quest-Aufgaben, Buchungen ===== */
.gamificationPeriodMenu {
    margin-bottom: 20px;
}
.gamificationOwnRank {
    padding: 10px 15px;
    border: 1px solid var(--wcfContentContainerBorder);
    border-radius: var(--wcfBorderRadius);
    background: var(--wcfContentContainerBackground);
}
.gamificationLeaderboardTable .columnTitle .userAvatarImage {
    margin-right: 5px;
    vertical-align: middle;
}
.gamificationPeriodSwitch {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 10px;
}
.gamificationPeriodButton.active {
    background-color: var(--wcfButtonPrimaryBackground);
    color: var(--wcfButtonPrimaryText);
}
.gamificationLeaderboardBox .box24 {
    align-items: center;
}
.gamificationLeaderboardBox .gamificationRank {
    min-width: 24px;
    text-align: center;
    font-weight: 700;
}
.gamificationLeaderboardBox .gamificationRank.top1 { color: #f1c40f; }
.gamificationLeaderboardBox .gamificationRank.top2 { color: #95a5a6; }
.gamificationLeaderboardBox .gamificationRank.top3 { color: #cd7f32; }
.gamificationShowAll {
    margin-top: 10px;
}
.gamificationQuestCard.optedOut {
    opacity: .6;
}
.gamificationQuestTasks {
    display: grid;
    gap: 8px;
    margin-top: 10px;
}
.gamificationQuestTask.done .gamificationQuestTaskTitle {
    color: var(--wcfStatusSuccessText);
}
.gamificationQuestTaskTitle {
    margin-bottom: 4px;
}
.gamificationQuestActions {
    margin-top: 10px;
    text-align: right;
}
.gamificationQuestEvaluation {
    margin-top: 8px;
    color: var(--wcfContentDimmedText);
}
.gamificationProgressBarLarge {
    height: 24px;
    border-radius: 12px;
}
.gamificationProgressBarLarge > .gamificationProgressBarLabel {
    line-height: 24px;
}
.gamificationEntryList > li.gamificationEntry {
    display: flex;
    align-items: baseline;
    gap: 10px;
}
.gamificationEntry.revoked {
    opacity: .6;
}
.gamificationEntryPoints {
    min-width: 50px;
    font-weight: 700;
    text-align: right;
}
.gamificationEntryRule {
    flex: 1 1 auto;
}
.gamificationEntryRule > small {
    display: block;
    color: var(--wcfContentDimmedText);
}
.gamificationEntryTime {
    color: var(--wcfContentDimmedText);
}

/* sbMegaMenu.css */
@media (min-width: 1025px) {
/* Mega-Menü study-board.de (com.amp.sbmegamenu) – Desktop ab 1025 px, nutzt die Style-Variablen (hell + dunkel). */
.sbMegaSource { display: none !important; }
.sbMega { display: none; }

@media (min-width: 1025px) {
	.mh-mainMenu .boxMenu > li.sbHasMega { position: relative; }
	.mh-mainMenu .boxMenu > li.sbHasMega > .boxMenuDepth1 { display: none !important; }
	.mh-mainMenu .boxMenu > li.sbHasMega > .boxMenuToggle[aria-expanded="true"] ~ .sbMega { display: block; }

	.sbMega {
		position: absolute;
		top: 100%;
		z-index: 30;
		background: var(--wcfContentBackground);
		border-top: 1px solid var(--wcfContentBorderInner);
		border-bottom: 1px solid var(--wcfContentBorderInner);
		box-shadow: 0 30px 60px -30px rgba(7, 11, 26, .35);
		animation: sbMegaIn 160ms cubic-bezier(.16, 1, .3, 1);
		cursor: default;
	}
	/* unsichtbare Brücke zwischen Menüpunkt und Header-Unterkante (Höhe setzt sbMegaMenu.js) */
	.sbMega::before {
		content: '';
		position: absolute;
		left: 0;
		right: 0;
		bottom: 100%;
		height: var(--sb-mega-gap, 0px);
	}
	@keyframes sbMegaIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
	@media (prefers-reduced-motion: reduce) { .sbMega { animation: none; } }

	.sbMega__inner {
		max-width: var(--wcfLayoutMaxWidth, 1200px);
		margin: 0 auto;
		padding: 32px 20px 36px;
		display: grid;
		grid-template-columns: 280px 1fr;
		gap: 44px;
	}
	.sbMega__intro { border-right: 1px solid var(--wcfContentBorderInner); padding-right: 36px; }
	.sbMega__eyebrow {
		display: block;
		font-size: 12px;
		font-weight: 600;
		letter-spacing: .12em;
		text-transform: uppercase;
		color: var(--wcfContentLink);
		margin-bottom: 10px;
	}
	.sbMega__intro p {
		font-size: 20px;
		line-height: 1.3;
		font-weight: 600;
		color: var(--wcfContentHeadlineText, var(--wcfContentText));
		margin: 0 0 18px;
		white-space: normal;
	}
	a.sbMega__all { font-weight: 600; font-size: 14.5px; color: var(--wcfContentLink) !important; }
	a.sbMega__all:hover { text-decoration: underline; }

	.sbMega__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px 18px; }
	.sbMega__grid a {
		display: flex !important;
		gap: 14px;
		align-items: flex-start;
		padding: 11px 12px !important;
		border-radius: 10px;
		color: var(--wcfContentText) !important;
		white-space: normal !important;
		min-height: 0 !important;
		background: transparent !important;
		text-decoration: none !important;
		transition: background .2s ease;
	}
	.sbMega__grid a:hover,
	.sbMega__grid a:focus-visible { background: var(--wcfContentContainerBackground, rgba(10, 101, 150, .06)) !important; }
	.sbMega__grid a:hover strong { color: var(--wcfContentLink); }
	.sbMega__icon {
		flex-shrink: 0;
		width: 38px;
		height: 38px;
		border-radius: 10px;
		display: flex;
		align-items: center;
		justify-content: center;
		background: rgba(10, 101, 150, .08);
		border: 1px solid rgba(10, 101, 150, .18);
		color: var(--wcfContentLink);
	}
	.sbMega__icon svg { width: 18px; height: 18px; }
	.sbMega__grid strong { display: block; font-size: 15px; font-weight: 600; margin-bottom: 2px; }
	.sbMega__grid small { display: block; font-size: 13px; line-height: 1.45; color: var(--wcfContentDimmedText); }
	.boxMenuDepth1 .sbMega { display: none !important; }
}

}
/* smartSearch.css */
/* Smart Search page: options row below the core search bar */
.smartSearchOptions {
	align-items: baseline;
	display: flex;
	flex-wrap: wrap;
	gap: 5px 15px;
	margin-top: 10px;
}

.smartSearchOptions small {
	color: var(--wcfContentDimmedText);
}

.smartSearchResultList .gridListItemContent {
	overflow-wrap: anywhere;
}

.smartSearchBadgeSemantic {
	margin-left: 5px;
}

/* "Semantic" box in the header search field */
.pageHeaderSearchInputContainer .pageHeaderSearchSemantic {
	align-items: center;
	background-color: var(--wcfHeaderMenuLinkBackground);
	color: var(--wcfHeaderMenuLink);
	cursor: pointer;
	display: flex;
	flex: 0 0 auto;
	gap: 5px;
	padding: 4px 9px;
	user-select: none;
	white-space: nowrap;
}

.pageHeaderSearchInputContainer .pageHeaderSearchSemantic:hover,
.pageHeaderSearchInputContainer .pageHeaderSearchSemantic.active {
	background-color: var(--wcfHeaderMenuLinkBackgroundActive);
	color: var(--wcfHeaderMenuLinkActive);
}

.pageHeaderSearchInputContainer .pageHeaderSearchSemantic input {
	margin: 0;
}

.pageHeaderSearchInputContainer .pageHeaderSearchSemantic fa-icon {
	color: inherit;
}

@media (max-width: 1024px) {
	.pageHeaderSearchInputContainer .pageHeaderSearchSemanticLabel {
		display: none;
	}
}

/* modernpost63.css */
/* =====================================================================
   Modern Post View — Stil von WoltLab Suite 6.3 fuer WBB 6.2
   ---------------------------------------------------------------------
   Nachbau der neuen Beitragsliste aus 6.3 (messageListView) auf dem
   UNVERAENDERTEN 6.2-Markup. Geladen per {modernPostAssets} nur auf der
   Themen-Seite, wenn „Beitrags-Ansicht: Stil von WoltLab Suite 6.3“
   gewaehlt ist. Ergaenzt durch js/Amp/ModernThreadList/PostView.js
   (Kacheln, Federsymbol, Trennlinie „Neue Beiträge“, Aktionsmenue).

   Anpassbar im individuellen CSS des Stils, z. B.:
       .wbbThreadPostList { --mtl-best: #2e7d32; --mtl-sidebar: 240px; }
   ===================================================================== */

.wbbThreadPostList,
#messageQuickReply {
	--mtl-pad: 20px;
	--mtl-radius: 8px;
	--mtl-sidebar: 220px;
	--mtl-avatar: 96px;
	--mtl-sticky-top: 70px;
	--mtl-border: var(--wcfContentBorderInner);
	--mtl-sidebar-bg: var(--wcfContentBackground);
	--mtl-main-bg: var(--wcfContentContainerBackground, var(--wcfContentBackground));
	--mtl-starter: var(--wcfButtonPrimaryBackground);
	--mtl-starter-text: var(--wcfButtonPrimaryText);
	--mtl-online: rgba(0, 153, 0, 1);
	--mtl-best: var(--wcfStatusSuccessBorder, #4caf50);
	--mtl-official: var(--wcfStatusInfoBorder, #2779bd);
	--mtl-tint: color-mix(in srgb, var(--wcfContentText) 5%, transparent);
	--mtl-tint-strong: color-mix(in srgb, var(--wcfContentText) 9%, transparent);
	--mtl-note-scheduled: #6f42c1;
	--mtl-note-disabled: #a1a1aa;
	--mtl-note-deleted: rgba(204, 0, 0, 1);
	--mtl-note-edited: color-mix(in srgb, var(--wcfContentText) 35%, transparent);
}

html[data-color-scheme="dark"] .wbbThreadPostList {
	--mtl-note-scheduled: #673ab7;
	--mtl-note-disabled: #52525b;
	--mtl-note-deleted: #c1183d;
}

/* ---- Liste: Karten mit Abstand statt Trennlinien ---- */
.wbbThreadPostList.messageList:not(.messageReducedList) {
	border-top-width: 0;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.wbbThreadPostList.messageList:not(.messageReducedList) > li {
	border-bottom-width: 0;
	padding: 0;
}

.wbbThreadPostList.messageList > li.messageListPagination {
	margin: 0;
	padding: 0;
	border-top-width: 0;
}

/* ---- Karte ---- */
.wbbThreadPostList > li > .message:not(.messageReduced),
#messageQuickReply > .message {
	background-color: var(--mtl-main-bg);
	border: 1px solid var(--mtl-border);
	border-radius: var(--mtl-radius);
}

/* Inline-Editor, Ladeoverlay: Ecken mitnehmen */
.wbbThreadPostList > li > .message .messageContent.loading > .messageContentLoadingOverlay {
	border-radius: var(--mtl-radius);
}

.wbbThreadPostList .messageContent,
#messageQuickReply .messageContent {
	min-width: 0;
	padding: var(--mtl-pad);
}

/* ---- Autoren-Sidebar: Teil der Karte, dezente Trennlinie ---- */
.wbbThreadPostList .messageSidebar,
#messageQuickReply .messageSidebar {
	background-color: transparent;
	border: 0;
	border-radius: 0;
	color: var(--wcfContentText);
}

.wbbThreadPostList .messageSidebar a,
#messageQuickReply .messageSidebar a {
	color: var(--wcfContentLink);
}

.wbbThreadPostList .messageSidebar a:hover,
#messageQuickReply .messageSidebar a:hover {
	color: var(--wcfContentLinkActive);
}

.wbbThreadPostList .messageSidebar .userAvatar img,
#messageQuickReply .messageSidebar .userAvatar img {
	border-radius: 50%;
	display: block;
	height: var(--mtl-avatar);
	width: var(--mtl-avatar);
}

/* Online: gruener Punkt am Avatar statt Badge */
.wbbThreadPostList .messageSidebar .badgeOnline {
	background-color: var(--mtl-online);
	border: 3px solid var(--mtl-sidebar-bg);
	border-radius: 50%;
	bottom: 4px;
	color: transparent;
	font-size: 0;
	height: 18px;
	left: auto;
	line-height: 0;
	overflow: hidden;
	padding: 0;
	right: 4px;
	top: auto;
	width: 18px;
}

.wbbThreadPostList .messageSidebar .badgeOnline::before {
	display: none;
}

/* Themenersteller: farbiger Ring + Federsymbol */
.wbbThreadPostList > li.messageGroupStarter .messageSidebar .userAvatar img {
	box-shadow:
		0 0 0 3px var(--mtl-sidebar-bg),
		0 0 0 6px var(--mtl-starter);
}

.wbbThreadPostList .mtlStarterIcon {
	align-items: center;
	background-color: var(--mtl-starter);
	border: 3px solid var(--mtl-sidebar-bg);
	border-radius: 50%;
	bottom: 0;
	color: var(--mtl-starter-text);
	display: flex;
	height: 32px;
	justify-content: center;
	left: 0;
	position: absolute;
	width: 32px;
}

.wbbThreadPostList .mtlStarterInline {
	color: var(--mtl-starter);
	display: none;
	margin-left: 4px;
}

/* Rang-Text als Badge bleibt, Rangbild/Trophaeen kompakt */
.wbbThreadPostList .messageSidebar .userTitle {
	margin-top: 4px;
}

.wbbThreadPostList .messageSidebar .userRank img {
	max-width: 100%;
}

.wbbThreadPostList .messageSidebar .specialTrophyContainer ul {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	justify-content: center;
}

/* Kennzahlen als Kacheln in zwei Spalten, Profilfelder untereinander */
.wbbThreadPostList .messageSidebar .userCredits {
	margin-top: 16px;
}

.wbbThreadPostList .messageSidebar dl.mtlCredits {
	display: grid;
	gap: 4px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	text-align: center;
}

/* dl.dataList hat ein Clearfix (::before/::after mit content) - im Grid waeren
   das eigene Zellen, ::before belegte die erste Kachel-Position. */
.wbbThreadPostList .messageSidebar dl.mtlCredits::before,
.wbbThreadPostList .messageSidebar dl.mtlCredits::after {
	content: none;
	display: none;
}

.wbbThreadPostList dl.mtlCredits > .mtlStat {
	background-color: var(--mtl-tint);
	border-radius: var(--wcfBorderRadius);
	display: flex;
	flex-direction: column;
	gap: 3px;
	line-height: 1;
	padding: 6px 4px 5px;
}

.wbbThreadPostList dl.mtlCredits > .mtlStat:hover {
	background-color: var(--mtl-tint-strong);
}

.wbbThreadPostList dl.mtlCredits > .mtlStat--wide,
.wbbThreadPostList dl.mtlCredits > .mtlUserOption {
	grid-column: 1 / -1;
}

.wbbThreadPostList dl.mtlCredits dt,
.wbbThreadPostList dl.mtlCredits dd {
	float: none;
	margin: 0;
	overflow: hidden;
	padding: 0;
	text-align: inherit;
	text-overflow: ellipsis;
	white-space: nowrap;
	width: auto;
}

.wbbThreadPostList dl.mtlCredits > .mtlStat > dt,
.wbbThreadPostList dl.mtlCredits > .mtlStat > dt a {
	color: var(--wcfContentDimmedText);
	font-size: var(--wcfFontSizeSmall);
}

/* Wert ueber dem Schluessel; das Markup behaelt den Schluessel vorne (Screenreader) */
.wbbThreadPostList dl.mtlCredits > .mtlStat > dd {
	color: var(--wcfContentText);
	font-variant-numeric: tabular-nums;
	font-weight: 600;
	order: -1;
}

.wbbThreadPostList dl.mtlCredits > .mtlUserOption {
	display: flex;
	flex-direction: column;
	margin-top: 6px;
	overflow-wrap: anywhere;
	text-align: left;
}

.wbbThreadPostList dl.mtlCredits > .mtlUserOption > dt {
	color: var(--wcfContentDimmedText);
}

.wbbThreadPostList dl.mtlCredits > .mtlUserOption > dd {
	white-space: normal;
}

/* ---- Kopf, Text, Fuss ---- */
.wbbThreadPostList .messageHeader + .messageBody {
	margin-top: 16px;
}

.wbbThreadPostList .messageText {
	line-height: 1.6;
}

/* Abstand gleichmaessig, Buttons einzeln statt Button-Gruppe */
.wbbThreadPostList .messageFooterGroup {
	align-items: center;
	gap: 4px;
}

.wbbThreadPostList .messageFooterButtons,
.wbbThreadPostList .messageFooterButtonsExtra {
	gap: 4px;
}

.wbbThreadPostList .messageFooterButtons > li > .button,
.wbbThreadPostList .messageFooterButtonsExtra > li > .button {
	border-radius: var(--wcfBorderRadius) !important;
}

.wbbThreadPostList .messageFooterGroup > .messageFooterButtonsExtra + .messageFooterButtons > li:first-child {
	margin-left: 0;
}

/* gruppierte Aktionen: Originale bleiben im DOM (Mobilmenue liest sie) */
@media (min-width: 769px) {
	.wbbThreadPostList .mtlActionsGrouped .mtlProxiedAction {
		display: none !important;
	}

	.wbbThreadPostList .mtlActionsGrouped > .messageFooterButtonsExtra {
		display: none;
	}

	.wbbThreadPostList .mtlActionsGrouped > .messageFooterButtons {
		flex: 1 1 auto;
	}
}

@media (max-width: 768px) {
	.wbbThreadPostList .mtlActionsToggleItem {
		display: none !important;
	}
}

.mtlActionsMenu > li > a {
	align-items: center;
	display: flex;
	gap: 8px;
}

.mtlActionsMenu > li.active > a {
	font-weight: 600;
}

/* ---- Hinweise als farbige Boxen ---- */
.wbbThreadPostList .messageFooterNotes:empty {
	display: none;
}

.wbbThreadPostList .messageFooterNote,
.wbbThreadPostList .mtlTopNotes > .messageFooterNote {
	background-color: var(--mtl-tint);
	border-left: 5px solid var(--mtl-note, var(--mtl-note-edited));
	border-radius: var(--wcfBorderRadius);
	color: var(--wcfContentDimmedText);
	margin-top: 6px;
	overflow-wrap: anywhere;
	padding: 8px 12px;
}

.wbbThreadPostList .messageFooterNotes > .messageFooterNote:first-child {
	margin-top: 16px;
}

.wbbThreadPostList .messageFooterNote a {
	color: inherit;
	font-weight: 600;
}

.wbbThreadPostList .messageFooterNote a:hover {
	text-decoration: underline;
}

.wbbThreadPostList .messageFooterNote.wbbPostDeleteNote {
	--mtl-note: var(--mtl-note-deleted);
}

.wbbThreadPostList .messageFooterNote.wbbPostDisabledNote,
.wbbThreadPostList .messageFooterNote.wbbPostDelayedNote {
	color: var(--wcfContentText);
}

.wbbThreadPostList .messageFooterNote.wbbPostDisabledNote {
	--mtl-note: var(--mtl-note-disabled);
}

.wbbThreadPostList .messageFooterNote.wbbPostDelayedNote {
	--mtl-note: var(--mtl-note-scheduled);
}

.wbbThreadPostList .mtlTopNotes {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-bottom: 16px;
}

.wbbThreadPostList .mtlTopNotes > .messageFooterNote:first-child {
	margin-top: 0;
}

/* ---- Badges: „Neu“ wird durch die Trennlinie ersetzt (nur mit JS) ---- */
.wbbThreadPostList.mtlPostView .messageStatus .newMessageBadge {
	display: none;
}

.wbbThreadPostList > li.mtlNewPostsSeparator {
	align-items: center;
	color: var(--wcfContentLink);
	display: flex;
	gap: 10px;
}

.wbbThreadPostList > li.mtlNewPostsSeparator::before,
.wbbThreadPostList > li.mtlNewPostsSeparator::after {
	border-top: 1px solid currentColor;
	content: "";
	flex: 1 1 auto;
}

.mtlNewPostsSeparator__label {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

/* ---- Hilfreichste Antwort / offizieller Beitrag: kraeftiger Rahmen ---- */
.wbbThreadPostList > li.wbbPostOfficial > .message {
	border-color: var(--mtl-official);
	box-shadow: 0 0 0 1px var(--mtl-official);
}

.wbbThreadPostList > li.wbbPostBestAnswer > .message {
	border-color: var(--mtl-best);
	box-shadow: 0 0 0 1px var(--mtl-best);
}

/* beim Anspringen (#postID) kurz hervorheben */
@keyframes mtlPostHighlight {
	0%,
	30% {
		box-shadow: 0 0 0 4px var(--mtl-highlight, var(--wcfButtonPrimaryBackground));
	}
	100% {
		box-shadow: 0 0 0 1px var(--mtl-highlight, transparent);
	}
}

.wbbThreadPostList > li:target > .message {
	animation: mtlPostHighlight 2s ease-out 0.2s both;
}

.wbbThreadPostList > li.wbbPostBestAnswer:target > .message {
	--mtl-highlight: var(--mtl-best);
}

.wbbThreadPostList > li.wbbPostOfficial:target > .message {
	--mtl-highlight: var(--mtl-official);
}

@media (prefers-reduced-motion: reduce) {
	.wbbThreadPostList > li:target > .message {
		animation: none;
	}
}

/* ---- Geloeschte Beitraege: eine kompakte Zeile ---- */
.wbbThreadPostList > li > .message.messageCollapsed {
	background-color: var(--mtl-main-bg);
	border-top: 1px solid var(--mtl-border);
	color: var(--wcfContentDimmedText);
	margin: 0;
}

.wbbThreadPostList > li > .message.messageCollapsed .messageContent {
	padding: 10px var(--mtl-pad);
}

/* ---- Moderationsprotokoll: Icon + Satz, am Beitragstext ausgerichtet ---- */
/* !important: WBB setzt hier 0,5,0-Selektoren (wbb.scss „modification log in threads“) */
.wbbThreadPostList.messageList:not(.messageReducedList) > li.modificationLogEntry {
	border-top-width: 0 !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	padding: 0 !important;
}

/* aufeinanderfolgende Eintraege enger zusammen */
.wbbThreadPostList.messageList > li.modificationLogEntry + li.modificationLogEntry {
	margin-top: -10px;
}
.wbbThreadPostList > li.modificationLogEntry > .message.messageReduced {
	background-color: transparent;
	border: 0;
}

.wbbThreadPostList > li.modificationLogEntry .messageContent {
	padding: 0 calc(1px + var(--mtl-pad));
}

.wbbThreadPostList > li.modificationLogEntry .messageHeader {
	align-items: center;
	background-color: transparent;
	color: var(--wcfContentDimmedText);
	margin: 0;
	padding: 0;
}

.wbbThreadPostList > li.modificationLogEntry .messageHeaderWrapper {
	align-items: center;
	display: flex;
	gap: 10px;
}

.wbbThreadPostList > li.modificationLogEntry .messageHeaderWrapper > :first-child,
.wbbThreadPostList > li.modificationLogEntry .messageHeaderWrapper > a:first-child img {
	border-radius: 50%;
	flex: 0 0 auto;
	height: 32px;
	width: 32px;
}

.wbbThreadPostList > li.modificationLogEntry .messageHeaderBox {
	align-items: baseline;
	column-gap: 10px;
	display: flex;
	flex-wrap: wrap;
	margin-left: 0;
	min-width: 0;
}

.wbbThreadPostList > li.modificationLogEntry .messageHeaderBox > div {
	color: var(--wcfContentText);
	order: 1;
	overflow-wrap: anywhere;
}

.wbbThreadPostList > li.modificationLogEntry .messageHeaderBox > .messageTitle {
	color: var(--wcfContentDimmedText);
	flex: 0 0 auto;
	font-size: var(--wcfFontSizeSmall);
	font-weight: 400;
	order: 2;
}

.wbbThreadPostList > li.modificationLogEntry .messageTitle a {
	color: inherit;
}

.wbbThreadPostList > li.modificationLogEntry .modificationLogEntryHide button {
	color: var(--wcfContentDimmedText);
}

/* =====================================================================
   Ab Tablet: Sidebar links in der Karte, Autor bleibt sticky
   Die Trennlinie wird als Hintergrund der Karte gezeichnet, damit die
   Sidebar selbst sticky sein kann (sie ist nur so hoch wie ihr Inhalt).
   ===================================================================== */
@media (min-width: 769px) {
	.wbbThreadPostList > li > .message:not(.messageReduced):not(.messageCollapsed),
	#messageQuickReply > .message {
		background-image: linear-gradient(
			to right,
			var(--mtl-sidebar-bg) 0,
			var(--mtl-sidebar-bg) var(--mtl-sidebar),
			var(--mtl-border) var(--mtl-sidebar),
			var(--mtl-border) calc(var(--mtl-sidebar) + 1px),
			transparent calc(var(--mtl-sidebar) + 1px)
		);
	}

	.wbbThreadPostList > li > .message.messageSidebarOrientationRight:not(.messageReduced):not(.messageCollapsed),
	#messageQuickReply > .message.messageSidebarOrientationRight {
		background-image: linear-gradient(
			to left,
			var(--mtl-sidebar-bg) 0,
			var(--mtl-sidebar-bg) var(--mtl-sidebar),
			var(--mtl-border) var(--mtl-sidebar),
			var(--mtl-border) calc(var(--mtl-sidebar) + 1px),
			transparent calc(var(--mtl-sidebar) + 1px)
		);
	}

	.wbbThreadPostList .messageSidebar,
	#messageQuickReply .messageSidebar {
		align-self: flex-start;
		box-sizing: border-box;
		flex: 0 0 calc(var(--mtl-sidebar) + 1px);
		padding: var(--mtl-pad);
		position: sticky;
		top: var(--mtl-sticky-top);
	}

	.wbbThreadPostList .messageSidebar + .messageContent,
	#messageQuickReply .messageSidebar + .messageContent,
	.wbbThreadPostList .messageSidebarOrientationRight .messageSidebar + .messageContent {
		flex-basis: auto;
		margin-left: 0;
		margin-right: 0;
		max-width: calc(100% - var(--mtl-sidebar) - 1px);
	}

	.wbbThreadPostList .messageSidebar .userAvatar {
		margin-bottom: 10px;
	}

	.wbbThreadPostList .messageSidebar .username {
		font-size: var(--wcfFontSizeDefault);
		font-weight: 600;
	}

	/* Moderationsprotokoll beginnt auf Hoehe des Beitragstexts */
	.wbbThreadPostList > li.modificationLogEntry .messageContent {
		padding-left: calc(1px + var(--mtl-sidebar) + var(--mtl-pad));
	}
}

/* =====================================================================
   Mobil: Autor als Zeile oben in der Karte, nur Avatar/Name/Rang
   ===================================================================== */
@media (max-width: 768px) {
	.wbbThreadPostList,
	#messageQuickReply {
		--mtl-pad: 10px;
		--mtl-avatar: 32px;
	}

	.wbbThreadPostList.messageList:not(.messageReducedList) > li:not(:last-child) {
		padding-bottom: 0;
	}

	.wbbThreadPostList .messageSidebar,
	#messageQuickReply .messageSidebar {
		border-bottom: 1px solid var(--mtl-border);
		border-radius: calc(var(--mtl-radius) - 1px) calc(var(--mtl-radius) - 1px) 0 0;
		margin: 0;
		padding: var(--mtl-pad);
		background-color: var(--mtl-sidebar-bg);
	}

	.wbbThreadPostList.messageList > li:first-child .messageSidebar {
		border-top-width: 0;
		border-radius: calc(var(--mtl-radius) - 1px) calc(var(--mtl-radius) - 1px) 0 0;
	}

	.wbbThreadPostList .messageSidebar + .messageContent {
		margin-top: 0;
	}

	.wbbThreadPostList .messageSidebar .messageAuthor {
		min-height: 32px;
	}

	.wbbThreadPostList .messageSidebar .messageAuthor .userAvatar .userAvatarImage,
	.wbbThreadPostList .messageSidebar .messageAuthor .userAvatar img {
		height: 32px;
		max-height: 32px;
		max-width: 32px;
		width: 32px;
	}

	.wbbThreadPostList .messageSidebar .messageAuthor .messageAuthorContainer,
	.wbbThreadPostList .messageSidebar .messageAuthor .userTitle,
	.wbbThreadPostList .messageSidebar .messageAuthor .userRank {
		margin-left: 42px;
	}

	.wbbThreadPostList .messageSidebar .badgeOnline {
		border-width: 2px;
		bottom: -2px;
		height: 12px;
		right: -2px;
		top: auto;
		width: 12px;
	}

	.wbbThreadPostList > li.messageGroupStarter .messageSidebar .userAvatar img {
		box-shadow:
			0 0 0 2px var(--mtl-sidebar-bg),
			0 0 0 4px var(--mtl-starter);
	}

	.wbbThreadPostList .mtlStarterIcon {
		display: none;
	}

	.wbbThreadPostList .mtlStarterInline {
		display: inline-flex;
	}

	/* die Zeile ueber dem Beitrag identifiziert nur den Autor */
	.wbbThreadPostList .messageSidebar .userCredits,
	.wbbThreadPostList .messageSidebar .userRank,
	.wbbThreadPostList .messageSidebar .specialTrophyContainer {
		display: none;
	}

	.wbbThreadPostList .messageText {
		font-size: 1rem;
		line-height: 1.65;
		overflow-wrap: anywhere;
	}

	.wbbThreadPostList > li > .message.messageCollapsed {
		border-top-width: 1px;
		padding: 0;
	}
}

