/* =========================================================
   SIDEBIT POSTBIT
   ========================================================= */

:root {

	/* -----------------------------------------------------
	   SCHRIFTEN
	----------------------------------------------------- */

	--sidebit-font:
		"Inter",
		Arial,
		sans-serif;

	--sidebit-display:
		"Cormorant Garamond",
		Georgia,
		serif;


	/* -----------------------------------------------------
	   GRUNDFARBEN
	----------------------------------------------------- */

	--sidebit-bg: #0a0809;
	--sidebit-bg-deep: #070607;
	--sidebit-bg-soft: #0e0b0c;

	--sidebit-panel: #100c0e;
	--sidebit-panel-raised: #151013;
	--sidebit-panel-hover: #1b1316;

	--sidebit-text: #c6babe;
	--sidebit-text-soft: #96898e;
	--sidebit-text-muted: #685c61;
	--sidebit-text-strong: #eee5e8;

	--sidebit-accent-dark: #4e1019;
	--sidebit-accent: #741b2a;
	--sidebit-accent-medium: #92283a;
	--sidebit-accent-light: #b64356;
	--sidebit-accent-pale: #ce7180;

	--sidebit-transparent: transparent;


	/* -----------------------------------------------------
	   TRANSPARENZEN
	----------------------------------------------------- */

	--sidebit-line:
		rgba(194, 150, 161, 0.11);

	--sidebit-line-strong:
		rgba(194, 150, 161, 0.22);

	--sidebit-line-accent:
		rgba(182, 67, 86, 0.42);

	--sidebit-wash:
		rgba(116, 27, 42, 0.08);

	--sidebit-wash-strong:
		rgba(116, 27, 42, 0.14);

	--sidebit-black-soft:
		rgba(0, 0, 0, 0.18);

	--sidebit-black:
		rgba(0, 0, 0, 0.42);

	--sidebit-black-strong:
		rgba(0, 0, 0, 0.68);

	--sidebit-light-soft:
		rgba(255, 255, 255, 0.025);


	/* -----------------------------------------------------
	   VERLÄUFE
	----------------------------------------------------- */

	--sidebit-character-gradient:
		linear-gradient(
			160deg,
			#100c0e,
			#090708 72%
		);

	--sidebit-content-gradient:
		linear-gradient(
			135deg,
			#0c090a,
			#090708
		);

	--sidebit-toolbar-gradient:
		linear-gradient(
			to right,
			rgba(116, 27, 42, 0.09),
			rgba(116, 27, 42, 0)
		);

	--sidebit-fade-line:
		linear-gradient(
			to right,
			rgba(182, 67, 86, 0),
			rgba(182, 67, 86, 0.58),
			rgba(182, 67, 86, 0)
		);

	--sidebit-message-line:
		linear-gradient(
			to right,
			rgba(194, 150, 161, 0.16),
			rgba(194, 150, 161, 0.05),
			rgba(194, 150, 161, 0)
		);

	--sidebit-image-overlay:
		linear-gradient(
			to bottom,
			rgba(7, 6, 7, 0),
			rgba(7, 6, 7, 0.34)
		);


	/* -----------------------------------------------------
	   SCHATTEN
	----------------------------------------------------- */

	--sidebit-shadow:
		0 22px 60px rgba(0, 0, 0, 0.26);

	--sidebit-image-shadow:
		0 16px 35px rgba(0, 0, 0, 0.34);

	--sidebit-accent-glow:
		0 0 22px rgba(182, 67, 86, 0.16);


	/* -----------------------------------------------------
	   ABMESSUNGEN
	----------------------------------------------------- */

	--sidebit-width: 1280px;
	--sidebit-character-width: 310px;
	--sidebit-sticky-top: 88px;
}


/* =========================================================
   GESAMTER POST
   ========================================================= */

.sidebit-post,
.sidebit-post * {
	box-sizing: border-box;
}

.sidebit-post {
	position: relative;

	display: grid;
	grid-template-columns:
		var(--sidebit-character-width)
		minmax(0, 1fr);

	width: min(
		calc(100% - 40px),
		var(--sidebit-width)
	);

	min-height: 680px;

	margin: 34px auto 64px;

	color: var(--sidebit-text);

	font-family: var(--sidebit-font);

	background: var(--sidebit-content-gradient);

	border-top: 1px solid var(--sidebit-line-strong);
	border-bottom: 1px solid var(--sidebit-line-strong);

	box-shadow: var(--sidebit-shadow);
}


/* kleiner ornamentaler Einschnitt oben */

.sidebit-post::before {
	position: absolute;
	z-index: 5;

	top: -1px;
	left: 0;

	width: 74px;
	height: 1px;

	content: "";

	background: var(--sidebit-accent-light);

	box-shadow: var(--sidebit-accent-glow);
}


/* =========================================================
   LINKE CHARAKTERSPALTE
   ========================================================= */

.sidebit-character {
	position: relative;

	min-width: 0;

	background: var(--sidebit-character-gradient);

	border-right: 1px solid var(--sidebit-line-strong);
}


/* zweite feine Innenlinie */

.sidebit-character::after {
	position: absolute;

	top: 0;
	right: 5px;
	bottom: 0;

	width: 1px;

	content: "";

	background: var(--sidebit-line);
}


.sidebit-character__sticky {
	position: sticky;
	top: var(--sidebit-sticky-top);

	display: flex;
	flex-direction: column;
	gap: 0;

	padding: 38px 30px 34px;
}


/* =========================================================
   CHARAKTERKOPF
   ========================================================= */

.sidebit-character__header {
	position: relative;

	margin: 0 0 27px;
	padding: 0 0 24px;

	border-bottom: 1px solid var(--sidebit-line);
}


.sidebit-character__header::after {
	position: absolute;

	right: 0;
	bottom: -1px;

	width: 62px;
	height: 1px;

	content: "";

	background: var(--sidebit-accent-light);
}


.sidebit-character__eyebrow {
	display: flex;
	align-items: center;
	gap: 8px;

	margin-bottom: 9px;

	color: var(--sidebit-accent-light);

	font-size: 9px;
	font-weight: 700;
	letter-spacing: 0.25em;
	line-height: 1.4;

	text-transform: uppercase;
}


.sidebit-character__eyebrow::before {
	width: 5px;
	height: 5px;

	content: "";

	border: 1px solid var(--sidebit-accent-light);

	transform: rotate(45deg);
}


.sidebit-character__name {
	margin: 0;

	color: var(--sidebit-text-strong);

	font-family: var(--sidebit-display);
	font-size: clamp(38px, 3.4vw, 52px);
	font-weight: 600;
	letter-spacing: -0.035em;
	line-height: 0.92;
}


.sidebit-character__name a {
	color: inherit;

	text-decoration: none;

	transition: color 0.2s ease;
}


.sidebit-character__name a:hover {
	color: var(--sidebit-accent-pale);
}


.sidebit-character__player {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 6px;

	margin-top: 17px;

	font-size: 9px;
	font-weight: 600;
	letter-spacing: 0.13em;
	line-height: 1.5;

	text-transform: uppercase;
}


.sidebit-character__player span {
	color: var(--sidebit-text-muted);
}


.sidebit-character__player strong {
	color: var(--sidebit-text-soft);

	font-weight: 700;
}


/* =========================================================
   AVATAR
   ========================================================= */

.sidebit-character__portrait {
	position: relative;

	width: 100%;
	aspect-ratio: 4 / 5;

	margin: 0 0 26px;

	overflow: hidden;

	background: var(--sidebit-panel);

	border: 1px solid var(--sidebit-line-strong);

	box-shadow: var(--sidebit-image-shadow);
}


.sidebit-character__portrait::before {
	position: absolute;
	z-index: 2;

	inset: 0;

	content: "";

	pointer-events: none;

	background: var(--sidebit-image-overlay);
}


.sidebit-character__portrait::after {
	position: absolute;
	z-index: 3;

	inset: 9px;

	content: "";

	pointer-events: none;

	border: 1px solid var(--sidebit-line);
}


.sidebit-character__portrait img {
	display: block;

	width: 100%;
	height: 100%;

	object-fit: cover;
	object-position: center;

	border: 0 !important;

	filter:
		saturate(0.68)
		contrast(1.05)
		brightness(0.78);

	transition: filter 0.25s ease;
}


.sidebit-character__portrait:hover img {
	filter:
		saturate(0.88)
		contrast(1.04)
		brightness(0.88);
}


/* kleine rote Markierung */

.sidebit-character__portraitmark {
	position: absolute;
	z-index: 5;

	right: 17px;
	bottom: 17px;

	width: 22px;
	height: 22px;

	border-right: 1px solid var(--sidebit-accent-light);
	border-bottom: 1px solid var(--sidebit-accent-light);
}


/* =========================================================
   CHARAKTERINFOS
   ========================================================= */

.sidebit-character__info {
	position: relative;

	max-height: 190px;

	margin-bottom: 25px;
	padding-right: 7px;

	overflow-x: hidden;
	overflow-y: auto;

	scrollbar-width: thin;
	scrollbar-color:
		var(--sidebit-accent-dark)
		var(--sidebit-transparent);
}


.sidebit-character__info::-webkit-scrollbar {
	width: 3px;
}


.sidebit-character__info::-webkit-scrollbar-track {
	background: var(--sidebit-transparent);
}


.sidebit-character__info::-webkit-scrollbar-thumb {
	background: var(--sidebit-accent-dark);
}


.sidebit-character__infohead {
	position: sticky;
	z-index: 2;
	top: 0;

	margin-bottom: 11px;
	padding: 0 0 9px;

	color: var(--sidebit-accent-light);

	font-size: 9px;
	font-weight: 700;
	letter-spacing: 0.20em;
	line-height: 1.4;

	text-transform: uppercase;

	background: var(--sidebit-panel);
	border-bottom: 1px solid var(--sidebit-line);
}


.sidebit-character__infotext {
	color: var(--sidebit-text-soft);

	font-size: 11px;
	font-weight: 400;
	line-height: 1.7;

	text-align: justify;
}


/* =========================================================
   ICON
   ========================================================= */

.sidebit-character__icon {
	position: relative;

	width: 100%;
	height: 82px;

	margin-top: auto;

	overflow: hidden;

	border: 1px solid var(--sidebit-line-strong);
}


.sidebit-character__icon::after {
	position: absolute;

	inset: 6px;

	content: "";

	pointer-events: none;

	border: 1px solid var(--sidebit-line);
}


.sidebit-character__icon img {
	display: block;

	width: 100%;
	height: 100%;

	object-fit: cover;
	object-position: center;

	border: 0 !important;

	filter:
		saturate(0.58)
		brightness(0.72)
		contrast(1.05);

	transition: filter 0.25s ease;
}


.sidebit-character__icon:hover img {
	filter:
		saturate(0.78)
		brightness(0.82)
		contrast(1.04);
}


/* =========================================================
   RECHTER BEITRAGSBEREICH
   ========================================================= */

.sidebit-content {
	position: relative;

	display: flex;
	flex-direction: column;

	min-width: 0;

	background: var(--sidebit-bg);
}


/* =========================================================
   TOOLBAR
   Meta links / Aktionen rechts
   ========================================================= */

.sidebit-toolbar {
	position: relative;

	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;

	min-height: 64px;

	padding: 13px 34px;

	background: var(--sidebit-toolbar-gradient);

	border-bottom: 1px solid var(--sidebit-line);
}


.sidebit-toolbar__meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px 20px;

	min-width: 0;

	color: var(--sidebit-text-muted);

	font-size: 9px;
	font-weight: 700;
	letter-spacing: 0.11em;
	line-height: 1.5;

	text-transform: uppercase;
}


.sidebit-toolbar__date {
	display: flex;
	align-items: center;
	gap: 9px;
}


.sidebit-toolbar__date::before {
	width: 5px;
	height: 5px;

	content: "";

	border: 1px solid var(--sidebit-accent-light);

	transform: rotate(45deg);
}


.sidebit-toolbar__post a {
	color: var(--sidebit-text-soft);

	text-decoration: none;

	transition: color 0.18s ease;
}


.sidebit-toolbar__post a:hover {
	color: var(--sidebit-accent-pale);
}


/* Aktionen */

.sidebit-toolbar__actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	flex-wrap: wrap;
	gap: 6px;

	margin-left: auto;
}


/*
 * Damit sowohl FontAwesome-Buttons als auch
 * MyBB-Buttons mit Bildern vernünftig aussehen.
 */

.sidebit-toolbar__actions a,
.sidebit-toolbar__actions button,
.sidebit-toolbar__actions input,
.wandshare-postbit {
	display: inline-flex;
	align-items: center;
	justify-content: center;

	min-width: 31px;
	min-height: 31px;

	margin: 0;
	padding: 5px 8px;

	color: var(--sidebit-text-muted);

	font-size: 11px;

	text-decoration: none;

	background: var(--sidebit-light-soft);

	border: 1px solid var(--sidebit-line);

	transition:
		color 0.18s ease,
		background 0.18s ease,
		border-color 0.18s ease;
}


.sidebit-toolbar__actions a:hover,
.sidebit-toolbar__actions button:hover,
.wandshare-postbit:hover {
	color: var(--sidebit-text-strong);

	background: var(--sidebit-wash-strong);

	border-color: var(--sidebit-line-accent);
}


.sidebit-toolbar__actions img {
	display: block;

	max-width: 20px;
	max-height: 20px;

	opacity: 0.52;

	filter:
		grayscale(1)
		brightness(1.35);

	transition:
		opacity 0.18s ease,
		filter 0.18s ease;
}


.sidebit-toolbar__actions a:hover img,
.sidebit-toolbar__actions img:hover {
	opacity: 1;

	filter:
		grayscale(0)
		brightness(1.05);
}


/* =========================================================
   POST
   ========================================================= */

.sidebit-message {
	position: relative;

	flex: 1;

	min-height: 600px;

	padding:
		42px
		clamp(38px, 5vw, 72px)
		46px;
}


/* Ornament oberhalb des Posts */

.sidebit-message__ornament {
	display: grid;
	grid-template-columns: minmax(0, 70px) auto minmax(0, 70px);
	align-items: center;
	gap: 10px;

	width: 180px;

	margin: 0 0 39px;
}


.sidebit-message__ornament span {
	height: 1px;

	background: var(--sidebit-fade-line);
}


.sidebit-message__ornament i {
	color: var(--sidebit-accent-light);

	font-size: 5px;
}


/* eigentlicher Text */

.sidebit-message__body {
	max-width: 850px;

	color: var(--sidebit-text);

	font-size: 14px;
	font-weight: 400;
	line-height: 1.95;

	text-align: justify;
}


.sidebit-message__body p {
	margin: 0 0 1.5em;
}


.sidebit-message__body a {
	color: var(--sidebit-accent-pale);

	text-decoration-color: var(--sidebit-line-accent);
	text-decoration-thickness: 1px;
	text-underline-offset: 4px;

	transition:
		color 0.18s ease,
		text-decoration-color 0.18s ease;
}


.sidebit-message__body a:hover {
	color: var(--sidebit-text-strong);

	text-decoration-color: var(--sidebit-accent-light);
}


.sidebit-message__body strong,
.sidebit-message__body b {
	color: var(--sidebit-text-strong);

	font-weight: 700;
}


.sidebit-message__body em,
.sidebit-message__body i {
	color: var(--sidebit-text-soft);

	font-style: italic;
}


.sidebit-message__body u {
	color: var(--sidebit-accent-pale);

	text-decoration-color: var(--sidebit-accent-medium);
	text-decoration-thickness: 1px;
	text-underline-offset: 4px;
}


.sidebit-message__body blockquote {
	position: relative;

	margin: 32px 0;
	padding: 18px 0 18px 28px;

	color: var(--sidebit-text-soft);

	font-family: var(--sidebit-display);
	font-size: 18px;
	font-style: italic;
	line-height: 1.65;

	background: var(--sidebit-transparent);

	border: 0;
	border-left: 1px solid var(--sidebit-accent-medium);
}


.sidebit-message__body blockquote::before {
	position: absolute;

	top: 0;
	left: -3px;

	width: 5px;
	height: 5px;

	content: "";

	background: var(--sidebit-accent-light);

	transform: rotate(45deg);
}


/* Plugin-Ausgaben / nospan */

.sidebit-message nospan {
	position: static;

	display: block;

	width: 100%;

	margin: 0 0 22px;

	color: var(--sidebit-text-muted);

	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.08em;
	line-height: 1.5;

	text-align: right;
	text-transform: uppercase;
}


/* Edited */

.sidebit-message__edited {
	max-width: 850px;

	margin-top: 36px;
	padding-top: 16px;

	color: var(--sidebit-text-muted);

	font-size: 10px;
	font-style: italic;
	line-height: 1.6;

	border-top: 1px solid var(--sidebit-line);
}


/* =========================================================
   SIGNATUR
   ========================================================= */

.sidebit-signature {
	display: flex;
	flex-direction: column;
	align-items: center;

	margin:
		0
		clamp(38px, 5vw, 72px)
		44px;

	padding-top: 8px;
}


.sidebit-signature__line {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 12px;

	width: 100%;

	margin-bottom: 26px;
}


.sidebit-signature__line span {
	height: 1px;

	background: var(--sidebit-message-line);
}


.sidebit-signature__line i {
	color: var(--sidebit-accent-dark);

	font-size: 5px;
}


.sidebit-signature img {
	display: block;

	max-width: 100%;
	height: auto;

	border: 0 !important;

	filter:
		saturate(0.72)
		brightness(0.84);

	transition: filter 0.25s ease;
}


.sidebit-signature img:hover {
	filter:
		saturate(0.9)
		brightness(0.92);
}


/* =========================================================
   OPTIONALE NOTICE
   Falls Plugins diese Klasse verwenden sollen
   ========================================================= */

.sidebit-notice {
	max-width: 850px;

	margin: 35px 0;
	padding: 22px 25px;

	color: var(--sidebit-text-soft);

	font-size: 12px;
	line-height: 1.8;

	background: var(--sidebit-wash);

	border:
		1px solid
		var(--sidebit-line-strong);
}


.sidebit-notice span {
	display: block;

	margin-bottom: 7px;

	color: var(--sidebit-accent-light);

	font-size: 9px;
	font-weight: 700;
	letter-spacing: 0.18em;

	text-transform: uppercase;
}


/* =========================================================
   MITTLERE DESKTOPBREITEN
   ========================================================= */

@media (max-width: 1100px) {

	:root {
		--sidebit-character-width: 260px;
	}

	.sidebit-post {
		width: calc(100% - 28px);
	}

	.sidebit-character__sticky {
		padding-right: 23px;
		padding-left: 23px;
	}

	.sidebit-character__name {
		font-size: 40px;
	}

	.sidebit-toolbar {
		padding-right: 26px;
		padding-left: 26px;
	}

	.sidebit-message {
		padding-right: 38px;
		padding-left: 38px;
	}

	.sidebit-signature {
		margin-right: 38px;
		margin-left: 38px;
	}
}


/* =========================================================
   MOBILE
   Charakterblock steht nun über dem Post.
   Kein Sticky innerhalb des Posts.
   ========================================================= */

@media (max-width: 820px), (max-device-width: 820px) {

	.sidebit-post {
		display: block;

		width: 100%;
		min-height: 0;

		margin: 22px 0 42px;

		box-shadow: none;
	}


	/* Charakterbereich */

	.sidebit-character {
		border-right: 0;
		border-bottom: 1px solid var(--sidebit-line-strong);
	}


	.sidebit-character::after {
		display: none;
	}


	.sidebit-character__sticky {
		position: static;

		display: grid;
		grid-template-columns:
			minmax(145px, 0.48fr)
			minmax(0, 1fr);

		gap: 22px;

		padding: 27px 22px;
	}


	.sidebit-character__header {
		grid-column: 1 / -1;

		margin-bottom: 0;
		padding-bottom: 20px;
	}


	.sidebit-character__eyebrow {
		font-size: 11px;
	}


	.sidebit-character__name {
		font-size: clamp(43px, 10vw, 61px);
		line-height: 0.96;
	}


	.sidebit-character__player {
		font-size: 12px;
	}


	.sidebit-character__portrait {
		grid-column: 1;

		align-self: start;

		margin: 0;
	}


	.sidebit-character__info {
		grid-column: 2;

		max-height: none;

		margin: 0;

		overflow: visible;
	}


	.sidebit-character__infohead {
		position: static;

		font-size: 11px;

		background: var(--sidebit-transparent);
	}


	.sidebit-character__infotext {
		font-size: 15px;
		line-height: 1.72;

		text-align: left;
	}


	.sidebit-character__icon {
		grid-column: 2;

		height: 82px;

		margin: 0;
	}


	/* Toolbar */

	.sidebit-toolbar {
		align-items: flex-start;
		flex-direction: column;

		gap: 13px;

		min-height: 0;

		padding: 17px 22px;
	}


	.sidebit-toolbar__meta {
		width: 100%;

		font-size: 11px;
	}


	.sidebit-toolbar__actions {
		justify-content: flex-start;

		width: 100%;

		margin-left: 0;
	}


	.sidebit-toolbar__actions a,
	.sidebit-toolbar__actions button,
	.sidebit-toolbar__actions input,
	.wandshare-postbit {
		min-width: 39px;
		min-height: 39px;
	}


	/* Post */

	.sidebit-message {
		min-height: 0;

		padding: 32px 22px 38px;
	}


	.sidebit-message__ornament {
		margin-bottom: 28px;
	}


	.sidebit-message__body {
		max-width: none;

		font-size: 17px;
		line-height: 1.82;

		text-align: left;
	}


	.sidebit-message__body blockquote {
		font-size: 19px;
		line-height: 1.68;
	}


	.sidebit-message__edited {
		max-width: none;

		font-size: 12px;
	}


	.sidebit-message nospan {
		font-size: 12px;

		text-align: left;
	}


	.sidebit-signature {
		margin:
			0
			22px
			38px;
	}
}


/* =========================================================
   KLEINE HANDYS
   ========================================================= */

@media (max-width: 560px), (max-device-width: 560px) {

	.sidebit-character__sticky {
		display: block;

		padding: 25px 17px 27px;
	}


	.sidebit-character__header {
		margin-bottom: 22px;
	}


	.sidebit-character__name {
		font-size: clamp(42px, 13vw, 58px);
	}


	.sidebit-character__player {
		font-size: 13px;
	}


	.sidebit-character__portrait {
		max-width: 250px;

		margin: 0 auto 24px;
	}


	.sidebit-character__info {
		margin-bottom: 22px;
	}


	.sidebit-character__infotext {
		font-size: 16px;
		line-height: 1.75;
	}


	.sidebit-character__icon {
		height: 88px;
	}


	.sidebit-toolbar {
		padding:
			17px
			17px
			18px;
	}


	.sidebit-toolbar__meta {
		align-items: flex-start;
		flex-direction: column;

		gap: 5px;

		font-size: 12px;
	}


	.sidebit-toolbar__actions {
		gap: 7px;
	}


	.sidebit-toolbar__actions a,
	.sidebit-toolbar__actions button,
	.sidebit-toolbar__actions input,
	.wandshare-postbit {
		min-width: 42px;
		min-height: 42px;
	}


	.sidebit-message {
		padding:
			29px
			17px
			34px;
	}


	.sidebit-message__body {
		font-size: clamp(18px, 4.9vw, 21px);
		line-height: 1.76;
	}


	.sidebit-message__body blockquote {
		padding-left: 22px;

		font-size: 19px;
	}


	.sidebit-signature {
		margin:
			0
			17px
			34px;
	}
}