/* 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;
	}
}

/* modernlist.css */
/* =====================================================================
   Modern Thread List — flexibles, umkonfigurierbares Listen-Layout
   ---------------------------------------------------------------------
   Statisches CSS (style-unabhaengig). Wird per <link> NUR aus den
   ueberschriebenen Vorlagen geladen, also nur wenn die Vorlagengruppe
   einem Stil zugewiesen ist.

   FLEXIBILITAET (ohne Template-Edit):
   Alle Layout-Parameter sind CSS-Custom-Properties auf dem Container.
   Im "individuellen CSS" eines Stils ueberschreibbar, z. B.:

       .wbbThreadList {
           --tl-areas: "icon main lastpost";   // Spalten neu anordnen
           --tl-columns: auto 1fr 220px;
           --tl-stats-display: none;            // Spalte ausblenden
       }

   Oder ein fertiges Preset per ACP-Option (MODERN_LIST_PRESET) bzw.
   Modifier-Klasse: .wbbThreadList--compact / --cards / --comfortable
   ===================================================================== */

/* ============================ BARRIEREFREIHEIT ============================ */
/* Deutlich sichtbarer Tastatur-Fokus fuer alle eigenen Bedienelemente.
   Nur :focus-visible -> stoert Maus-Nutzer nicht, hilft Tastatur/Screenreader. */
.wbbThreadRow__unread:focus-visible,
.wbbThreadRow__link:focus-visible,
.wbbThreadRow__lastPost:focus-visible,
.wbbThreadRow__edit:focus-visible,
.wbbBoardNode__markAsReadButton:focus-visible {
	outline: 2px solid var(--wcfContentLinkActive, var(--wcfContentLink));
	outline-offset: 2px;
	border-radius: 3px;
}

/* der kleine Ungelesen-Punkt: Fokus klar sichtbar trotz Mini-Flaeche */
.wbbThreadRow__unread:focus-visible {
	outline-offset: 1px;
}

/* ============================ THREAD-LISTE ============================ */

.wbbThreadListContainer {
	container-type: inline-size;
	container-name: threadlist;
	padding: 0;
}

.wbbThreadList {
	/* --- frei konfigurierbare Layout-Variablen --- */
	--tl-areas: "icon main stats lastpost";
	--tl-columns: auto minmax(0, 1fr) auto 200px;
	--tl-row-padding-y: 12px;
	--tl-row-padding-x: 20px;
	--tl-gap-x: 16px;
	--tl-gap-y: 4px;
	--tl-avatar-size: 48px;
	--tl-lastpost-avatar-size: 32px;
	--tl-stats-display: flex;
	--tl-lastpost-display: flex;
	--tl-row-radius: 0px;
	--tl-row-gap: 0px;
	--tl-row-border: 1px solid var(--wcfContentBorderInner);
	--tl-unread-color: var(--wcfStatusInfoText);

	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: var(--tl-row-gap);
}

.wbbThreadRow {
	display: grid;
	align-items: center;
	gap: var(--tl-gap-y) var(--tl-gap-x);
	padding: var(--tl-row-padding-y) var(--tl-row-padding-x);
	grid-template-columns: var(--tl-columns);
	grid-template-areas: var(--tl-areas);
	border-bottom: var(--tl-row-border);
	border-radius: var(--tl-row-radius);
}

.wbbThreadList > .wbbThreadRow:last-child {
	border-bottom: 0;
}

.wbbThreadRow:hover {
	background-color: var(--wcfTabularBoxBackgroundActive);
}

.wbbThreadRow--pinned {
	background-color: var(--wcfContentBackgroundActive);
}

.wbbThreadRow--deleted .wbbThreadRow__link,
.wbbThreadRow--disabled .wbbThreadRow__link {
	color: var(--wcfContentDimmedText);
}

/* ---- Spalte: Marker + Avatar ---- */
.wbbThreadRow__icon {
	grid-area: icon;
	display: flex;
	align-items: center;
	gap: 8px;
}

.wbbThreadRow__avatar {
	display: block;
	width: var(--tl-avatar-size);
	height: var(--tl-avatar-size);
	flex: 0 0 auto;
}

/* Bild der Wrapper-Groesse folgen lassen (getImageTag liefert feste 48px) */
.wbbThreadRow__avatar img {
	width: 100%;
	height: 100%;
	border-radius: var(--wcfBorderRadius);
	object-fit: cover;
}

.wbbThreadRow__unread {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
}

.wbbThreadRow__unread:disabled {
	cursor: default;
	opacity: 0.5;
}

.wbbThreadRow__unreadDot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background-color: var(--tl-unread-color);
}

.wbbThreadRow__read {
	display: inline-block;
	width: 20px;
}

/* ---- Spalte: Hauptbereich ---- */
.wbbThreadRow__main {
	grid-area: main;
	min-width: 0;
}

.wbbThreadRow__badges {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 4px;
}

.wbbThreadRow__badges .badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.wbbBadge--deleted {
	background-color: var(--wcfStatusErrorBackground);
	color: var(--wcfStatusErrorText);
}

.wbbBadge--disabled {
	background-color: var(--wcfStatusWarningBackground);
	color: var(--wcfStatusWarningText);
}

.wbbThreadRow__title {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0;
	font-size: var(--wcfFontSizeHeadline);
	font-weight: 400;
	line-height: 1.3;
}

.wbbThreadRow__statusIcon {
	color: var(--wcfContentDimmedText);
	flex: 0 0 auto;
}

.wbbThreadRow__link {
	color: var(--wcfContentLink);
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Ungelesen: Marker-Punkt + Farbe sind primaer; Fettung nur Stilmittel */
.wbbThreadRow--new .wbbThreadRow__link {
	color: var(--wcfContentText);
	font-weight: 600;
}

.wbbThreadRow__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 12px;
	margin-top: 2px;
	color: var(--wcfContentDimmedText);
	font-size: var(--wcfFontSizeSmall);
}

.wbbThreadRow__deleteNote {
	margin-top: 4px;
	color: var(--wcfContentDimmedText);
	font-size: var(--wcfFontSizeSmall);
}

/* ---- Spalte: Zaehler ---- */
.wbbThreadRow__stats {
	grid-area: stats;
	display: var(--tl-stats-display);
	align-items: center;
	gap: 16px;
	color: var(--wcfContentDimmedText);
}

.wbbThreadRow__stat {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	white-space: nowrap;
	font-size: var(--wcfFontSizeSmall);
}

.wbbThreadRow__statValue {
	font-variant-numeric: tabular-nums;
}

/* ---- Spalte: Letzter Beitrag ---- */
.wbbThreadRow__lastPost {
	grid-area: lastpost;
	display: var(--tl-lastpost-display);
	align-items: center;
	gap: 10px;
	color: inherit;
}

.wbbThreadRow__lastPost:hover .wbbThreadRow__lastPostAuthor {
	text-decoration: underline;
}

.wbbThreadRow__lastPostAvatar {
	flex: 0 0 auto;
	width: var(--tl-lastpost-avatar-size);
	height: var(--tl-lastpost-avatar-size);
}

.wbbThreadRow__lastPostAvatar img {
	width: 100%;
	height: 100%;
	border-radius: var(--wcfBorderRadius);
	object-fit: cover;
}

.wbbThreadRow__lastPostInfo {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.wbbThreadRow__lastPostAuthor {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.wbbThreadRow__lastPostTime {
	color: var(--wcfContentDimmedText);
	font-size: var(--wcfFontSizeSmall);
}

/* ---- Toolbar ---- */
.wbbThreadListToolbar {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 12px 20px;
	border-bottom: 1px solid var(--wcfContentBorderInner);
	font-size: var(--wcfFontSizeDefault);
}

.wbbThreadListToolbar__sort {
	display: flex;
	align-items: center;
	gap: 8px;
	flex: 1 1 auto;
}

.wbbThreadListToolbar__sortDirection {
	color: var(--wcfContentDimmedText);
}

.wbbThreadListToolbar__sortDirection:hover {
	color: var(--wcfContentText);
}

/* ===================== PRESETS (Thread-Liste) ===================== */

.wbbThreadList--comfortable {
	--tl-row-padding-y: 16px;
	--tl-gap-y: 6px;
}

.wbbThreadList--compact {
	--tl-row-padding-y: 7px;
	--tl-avatar-size: 32px;
	--tl-lastpost-avatar-size: 24px;
}

.wbbThreadList--compact .wbbThreadRow__title {
	font-size: var(--wcfFontSizeDefault);
}

/* Karten-Optik: jede Zeile als abgesetzte Karte */
.wbbThreadList--cards {
	--tl-row-gap: 10px;
	--tl-row-radius: var(--wcfBorderRadius);
	--tl-row-border: 1px solid var(--wcfContentBorderInner);
	padding: 14px 0;
}

.wbbThreadList--cards .wbbThreadRow {
	background-color: var(--wcfContentBackground);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.wbbThreadList--cards .wbbThreadRow:hover {
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

/* =========== RESPONSIVE (Container Query, kein Mobile-Markup) =========== */

@container threadlist (max-width: 800px) {
	.wbbThreadList {
		--tl-columns: auto minmax(0, 1fr) auto;
		--tl-areas: "icon main stats" "icon lastpost lastpost";
		--tl-gap-y: 8px;
	}
	.wbbThreadRow__lastPost {
		--tl-lastpost-display: flex;
		width: auto;
	}
}

@container threadlist (max-width: 540px) {
	.wbbThreadList {
		--tl-columns: auto minmax(0, 1fr);
		--tl-areas: "icon main" "icon stats";
		--tl-avatar-size: 36px;
	}
	.wbbThreadRow {
		align-items: start;
	}
	.wbbThreadRow__icon {
		flex-direction: column;
		align-items: center;
	}
	.wbbThreadRow__title {
		font-size: var(--wcfFontSizeDefault);
	}
	.wbbThreadRow__lastPost {
		display: none;
	}
}

/* ===========================================================
   SCHWEBENDE SEITENNUMMERIERUNG (zentrierte Pill)
   Laedt nur auf den Themen-Listen-Seiten (threadList-Kontexte).
   Deaktivieren im individuellen CSS:  .paginationBottom { position: static; }
   =========================================================== */
.paginationBottom {
	position: fixed;
	left: 50%;
	bottom: 20px;
	transform: translateX(-50%);
	z-index: 100;
	margin: 0;
	pointer-events: none; /* Klicks neben der Pill gehen durch */
}

.paginationBottom woltlab-core-pagination {
	pointer-events: auto;
	display: inline-flex;
	background-color: var(--wcfContentBackground);
	border: 1px solid var(--wcfContentBorderInner);
	border-radius: 999px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
	padding: 5px 12px;
}

/* Platz am Seitenende, damit die schwebende Pill nichts verdeckt */
.contentFooter {
	padding-bottom: 72px;
}

/* ======================= BOARD-UEBERSICHT ======================= */
/* WICHTIG: Das Grid-Layout der Board-Uebersicht stammt aus der Stil-eigenen
   boardNodeList.scss (icon/content/stats/subBoards/lastPosts, 3 Zeilen).
   Das lassen wir bewusst UNANGETASTET, damit nichts kollidiert.
   Ergaenzt wird nur der barrierefreie "Als gelesen"-Button (statt Doppelklick),
   der sich optisch exakt wie das bisherige Icon verhaelt. */

.wbbBoardNode__markAsReadButton {
	display: inline-flex;
	align-items: center;
	padding: 0;
	margin: 0;
	border: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	line-height: 0;
	cursor: pointer;
}

.wbbBoardNode__markAsReadButton:disabled {
	cursor: default;
	opacity: 0.6;
}

/* Board-Presets: NUR Optik (Hintergrund/Rand/Schatten/Abstand/Dichte),
   kein Eingriff ins Grid-Layout der Stil-eigenen boardNodeList.scss. */

/* Karten: jeder Board-Knoten als abgesetzte Karte */
.wbbBoardNodeList--cards {
	background-color: transparent;
	box-shadow: none;
	padding: 0;
	row-gap: 12px;
}

.wbbBoardNodeList--cards .wbbBoardNode {
	background-color: var(--wcfContentBackground);
	border: 1px solid var(--wcfContentBorderInner);
	border-radius: var(--wcfBorderRadius);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
	padding: 14px;
}

html:not(.touch) .wbbBoardNodeList--cards .wbbBoardNode:hover {
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

/* Kompakt: dichtere Board-Zeilen */
.wbbBoardNodeList--compact {
	row-gap: 4px;
}

.wbbBoardNodeList--compact .wbbBoardNode {
	padding: 6px 10px;
}

/* ===========================================================
   BOARD-LAYOUT "GRID": 2-Spalten-Kartenraster
   Aktiv ueber Option MODERN_BOARD_LAYOUT = grid -> Klasse
   .wbbBoardNodeList--grid. Reines CSS-Re-Layout der vorhandenen
   Knoten-Struktur (icon/content/stats/lastPosts/subBoards).
   =========================================================== */
.wbbBoardNodeList--grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	align-items: stretch; /* Karten einer Reihe auf gleiche Hoehe */
	gap: 20px;
	background: transparent;
	box-shadow: none;
	border: 0;
	padding: 0;
}

@media (max-width: 768px) {
	.wbbBoardNodeList--grid {
		grid-template-columns: 1fr;
	}
}

/* Kategorie-Titel etwas praesenter im Grid-Modus */
.wbbBoardNodeContainer:has(.wbbBoardNodeList--grid) .wbbBoardNodeContainer__title {
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

/* jeder Board-Knoten = Karte */
.wbbBoardNodeList--grid .wbbBoardNode {
	background-color: var(--wcfContentContainerBackground);
	border: 1px solid var(--wcfContentBorderInner);
	border-radius: var(--wcfBorderRadius);
	box-shadow: var(--wcfBoxShadowCard);
	padding: 20px;
	column-gap: 14px;
	grid-template-columns: min-content 1fr;
	grid-template-areas:
		"icon content"
		"stats stats"
		"lastPosts lastPosts"
		"subBoards subBoards";
	grid-template-rows: max-content max-content 1fr max-content;
}

html:not(.touch) .wbbBoardNodeList--grid .wbbBoardNode:hover {
	background-color: var(--wcfContentContainerBackground);
	border-color: var(--wcfContentBorder);
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

/* Kopf: Icon + Titel */
.wbbBoardNodeList--grid .wbbBoardNode__icon {
	align-self: center;
}

.wbbBoardNodeList--grid .wbbBoardNode__title {
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

/* Beschreibung im Grid-Modus ausblenden (ruhiger) */
.wbbBoardNodeList--grid .wbbBoardNode__description {
	display: none;
}

/* Kennzahlen-Zeile unter dem Kopf */
.wbbBoardNodeList--grid .wbbBoardNode__stats {
	margin-top: 8px;
	gap: 18px;
	display: flex !important;
}

/* Letzte Themen als eigenstaendige Zeilen mit Pfeil */
.wbbBoardNodeList--grid .wbbBoardNode__lastPosts {
	margin-top: 14px;
}

.wbbBoardNodeList--grid .wbbBoardNode__lastPost {
	display: block; /* erbt sonst das Grid mit Avatar-Spalte -> Ueberlappung */
	background-color: var(--wcfContentBackground);
	border: 1px solid var(--wcfContentBorderInner);
	border-radius: var(--wcfBorderRadius);
	padding: 10px 42px 10px 14px;
	margin-top: 8px;
	position: relative;
}

.wbbBoardNodeList--grid .wbbBoardNode__lastPost:first-child {
	margin-top: 0;
}

.wbbBoardNodeList--grid .wbbBoardNode__lastPostAvatar {
	display: none;
}

.wbbBoardNodeList--grid .wbbBoardNode__lastPostTitle {
	display: block;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.01em;
	font-size: var(--wcfFontSizeSmall);
	overflow: hidden;
}

.wbbBoardNodeList--grid .wbbBoardNode__lastPostMeta {
	display: block;
	margin-top: 2px;
}

/* Unterforum-Name in der Meta-Zeile (nur Grid) */
.wbbBoardNodeList--grid .wbbBoardNode__lastPostBoard {
	color: var(--wcfContentDimmedText);
}

.wbbBoardNodeList--grid .wbbBoardNode__lastPostBoard::before {
	content: " \2022 "; /* • */
	margin: 0 2px;
}

/* ---- Unterforen als Chips/Pills (Grid) ---- */
.wbbBoardNodeList--grid .wbbBoardNode__subBoards {
	margin-top: 14px;
	align-self: end; /* unten andocken bei gleich hohen Karten */
}

.wbbBoardNodeList--grid .wbbBoardNode__subBoardList {
	gap: 6px;
}

.wbbBoardNodeList--grid .wbbBoardNode__subBoard {
	background-color: var(--wcfContentBackground);
	border: 1px solid var(--wcfContentBorderInner);
	border-radius: 999px;
	padding: 3px 11px 3px 9px;
	gap: 5px;
}

html:not(.touch) .wbbBoardNodeList--grid .wbbBoardNode__subBoard:hover {
	border-color: var(--wcfContentBorder);
}

.wbbBoardNodeList--grid .wbbBoardNode__subBoardTitle {
	font-size: var(--wcfFontSizeSmall);
}

/* "+N weitere"-Chip */
.wbbBoardNodeList--grid .wbbBoardNode__subBoardMore {
	background-color: transparent;
	border-style: dashed;
}

.wbbBoardNodeList--grid .wbbBoardNode__subBoardMore .wbbBoardNode__subBoardLink {
	color: var(--wcfContentDimmedText);
	font-weight: 600;
}

.wbbBoardNodeList--grid .wbbBoardNode__lastPost::after {
	content: "\2192"; /* → */
	position: absolute;
	right: 14px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--wcfContentDimmedText);
	font-size: 1.1rem;
}

html:not(.touch) .wbbBoardNodeList--grid .wbbBoardNode__lastPost:hover {
	border-color: var(--wcfContentBorder);
}

html:not(.touch) .wbbBoardNodeList--grid .wbbBoardNode__lastPost:hover::after {
	color: var(--wcfContentText);
}

