/* -----------------------------------------------------
   RPG CHARAKTERE – ÜBERSICHTSSEITE
----------------------------------------------------- */

.rpgchars-page {
	width: calc(100% - 40px);
	max-width: 1100px;
	margin: 30px auto;
	box-sizing: border-box;
	color: var(--lightfont);
	font-family: var(--roboto);
}


/* -----------------------------------------------------
   KOPFBEREICH
----------------------------------------------------- */

.rpgchars-head {
	position: relative;
	display: flex;
	justify-content: space-between;
	align-items: stretch;
	gap: 25px;

	padding: 28px 30px;

	background:
		linear-gradient(
			135deg,
			var(--accent2_dark) 0%,
			var(--accent2_medium) 100%
		);

	border-top: 3px solid var(--accent1);
	border-bottom: 1px solid var(--accent1_grey);

	box-sizing: border-box;
	overflow: hidden;
}


/* dezente dekorative Fläche */

.rpgchars-head::after {
	content: "";
	position: absolute;
	right: -70px;
	top: -110px;

	width: 260px;
	height: 260px;

	border: 1px solid var(--accent1_grey);
	border-radius: 50%;

	opacity: .18;
	pointer-events: none;
}


.rpgchars-head__copy {
	position: relative;
	z-index: 2;
	flex: 1;
	min-width: 0;
}


/* kleine Überschrift */

.rpgchars-eyebrow {
	display: block;

	margin-bottom: 5px;

	color: var(--accent1);
	font-family: var(--condensed);
	font-size: 10px;
	font-weight: 600;

	text-transform: uppercase;
	letter-spacing: 2px;
}


/* Hauptüberschrift */


.rpgchars-head h1 {
	margin: 0 0 18px 0;
	padding: 0;
	color: var(--maincolor);
	font-family: var(--inria);
	font-size: 30px;
	font-weight: normal;
	line-height: 1.1;
	letter-spacing: -.5px;

	background: none !important;
	border: 0 !important;
	border-bottom: 0 !important;
	box-shadow: none !important;
	text-shadow: none !important;
}

.rpgchars-head h1::before,
.rpgchars-head h1::after {
	display: none !important;
	content: none !important;
}

/* -----------------------------------------------------
   ERKLÄRTEXT
----------------------------------------------------- */

.explainminichar {
	max-width: 700px;

	padding: 13px 15px;

	background: rgba(33, 31, 32, .55);

	border-left: 3px solid var(--accent1);
	box-sizing: border-box;

	color: var(--lightfont);

	font-size: 12px;
	line-height: 1.6;
	text-align: justify;
}


/* -----------------------------------------------------
   NEUEN CHARAKTER HINZUFÜGEN
----------------------------------------------------- */

.rpgchars-add {
	position: relative;
	z-index: 2;

	display: flex;
	flex-direction: column;
	justify-content: center;

	min-width: 180px;
	padding: 18px 22px;

	background: var(--accent1);

	color: var(--dunkelbraun) !important;
	text-decoration: none !important;

	box-sizing: border-box;

	transition:
		background .2s ease,
		color .2s ease,
		transform .2s ease;
}


.rpgchars-add > span:first-child {
	font-family: var(--condensed);
	font-size: 10px;

	text-transform: uppercase;
	letter-spacing: 1px;
}


.rpgchars-add strong {
	display: block;

	margin-top: 2px;

	font-family: var(--inria);
	font-size: 20px;
	font-weight: normal;

	line-height: 1.1;
}


.rpgchars-add__arrow {
	position: absolute;
	right: 15px;
	bottom: 12px;

	font-family: Arial, sans-serif;
	font-size: 22px;

	transition: transform .2s ease;
}


.rpgchars-add:hover {
	background: var(--accent1_light);
	color: var(--accent2_dark) !important;
	transform: translateY(-2px);
}


.rpgchars-add:hover .rpgchars-add__arrow {
	transform: translateX(4px);
}


/* -----------------------------------------------------
   CHARAKTERLISTE
----------------------------------------------------- */

.rpgchars-list {
	padding: 25px 0;

	display: flex;
	flex-direction: column;
	gap: 15px;
}


/* falls charaliste direkt Karten ausgibt */

.rpgchars-list > div {
	box-sizing: border-box;
}


/* -----------------------------------------------------
   LINKS INNERHALB DER SEITE
----------------------------------------------------- */

.rpgchars-page a {
	transition:
		color .2s ease,
		background .2s ease,
		border-color .2s ease;
}


/* -----------------------------------------------------
   SCROLLBAR
----------------------------------------------------- */

.rpgchars-page ::-webkit-scrollbar {
	width: 5px;
	height: 5px;
}

.rpgchars-page ::-webkit-scrollbar-track {
	background: var(--accent2_dark);
}

.rpgchars-page ::-webkit-scrollbar-thumb {
	background: var(--accent1_grey);
}

.rpgchars-page ::-webkit-scrollbar-thumb:hover {
	background: var(--accent1);
}


/* -----------------------------------------------------
   RESPONSIVE
----------------------------------------------------- */

@media (max-width: 800px) {

	.rpgchars-page {
		width: calc(100% - 20px);
		margin: 20px auto;
	}

	.rpgchars-head {
		flex-direction: column;
		padding: 22px;
	}

	.rpgchars-add {
		width: 100%;
		min-width: 0;
	}

}


@media (max-width: 500px) {

	.rpgchars-head {
		padding: 18px;
	}

	.rpgchars-head h1 {
		font-size: 24px;
	}

	.explainminichar {
		font-size: 11px;
	}

	.rpgchars-list {
		padding-top: 15px;
	}

}

/* Profilansicht */ 

.rpgprofil {
	width: 30%;
	background: var(--accent2_dark);
	color: var(--lightfont);
	line-height: 1.1;
	padding: 3px;
}

.postbitkurzbeschreibung {
	text-align: justify;
	height: 150px; 
	overflow: auto;
}

.postbitgruppe {
	background: var(--accent2_medium);
	color: var(--lightfont);
	padding: 3px;
	font-family: var(--inria);
	font-style: italic;
	margin: 5px 0;
}


/* Postbit */ 

.postbit-charstats {
	text-align: left;
}

.postbit-charstatshead {
	text-align: center;
	font-family: var(--inria);
	font-style: italic;
	background: var(--accent1);
	color: var(--dunkelbraun);
	padding: 2px;
}

.trimava {
	border: 7px solid var(--accent1);
}

.trimsig {
}

.trimicon {
	border: 7px solid var(--accent1);
}


/* Charakterübersicht im User CP */ 

.rpguserindex {
	padding: 20px;
}

.rpgflex {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	margin-top: 5px;
}

.rpgcharakter {
	display: flex;
	flex-wrap: wrap;
	background: var(--accent2_medium);
	border-bottom: 1px solid var(--accent1);
	color: var(--lightfont);
	padding: 10px;
	margin: 5px 0;
}


/* Höhe der Signatur */ 

.userindexsig {
	height: 150px;
}


/* Breite der Bilder */ 

.userindexava {
	width: 150px;
	border: 2px solid var(--accent1_grey);
}

.userindexicon {
	width: 150px;
	border-right: 2px solid var(--accent1_grey);
	border-left: 2px solid var(--accent1_grey);
	border-bottom: 2px solid var(--accent1_grey);
}


/* Spaltenbreite */

.userindexwidthsig {
	width: 450px;
	text-align: right;
}

.userindexwidthava {
	width: 150px;
}

.userindexwidthtext {
	width: 290px;
	padding: 0 10px;
	text-align: justify;
	box-sizing: border-box;
}

.userindextextheight {
	height: 240px;
	overflow: auto;
	padding: 5px;
}


/* Grafikupload */

.rpgcharas-upload {
	margin-bottom: 20px;
}

.rpgcharas-upload label {
	display: block;
	font-family: var(--condensed);
	font-weight: bold;
	color: var(--accent1);
	margin-bottom: 5px;
}

.rpgcharas-preview img {
	max-width: 100px;
	max-height: 100px;
	margin-top: 10px;
	border: 1px solid var(--accent1_grey);
	padding: 5px;
	background: var(--accent2_dark);
}

/* -----------------------------------------------------
   RPG CHARAKTERE – POSTBIT
----------------------------------------------------- */

.rpgchara_postbit .postbit_back {
	box-sizing: border-box;
}

/* Charaktername */

.rpgchara_name {
	margin-top: 10px;
}

.rpgchara_name a {
	color: var(--accent1);
	text-decoration: none;
}

.rpgchara_name a:hover {
	color: var(--accent1_light);
}


/* Avatar */

.rpgchara_avatar {
	display: block;
	width: 200px;
	height: 220px;
	object-fit: cover;
	box-sizing: border-box;
	margin: 15px auto 0;
	border: 3px solid var(--accent1);
}


/* Kurzbeschreibung */

.rpgchara_description {
	box-sizing: border-box;
	height: 150px;
	overflow: auto;
	text-align: justify;
	margin-top: 10px;
}


/* Aktivitätsstatistik */

.rpgchara_stats {
	margin-top: 10px;
	background: var(--accent2_medium);
	font-family: var(--roboto);
	font-size: 11px;
}

.rpgchara_stats_head {
	background: var(--accent1);
	color: var(--dunkelbraun);
	font-family: var(--inria);
	font-size: 12px;
	font-style: italic;
	text-align: center;
	padding: 4px 5px;
}

.rpgchara_stats_row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
	padding: 4px 6px;
	border-bottom: 1px solid var(--accent1_grey);
}

.rpgchara_stats_row:last-child {
	border-bottom: 0;
}

.rpgchara_stats_row span {
	color: var(--lightfont);
}

.rpgchara_stats_row b {
	color: var(--accent1_light);
	font-weight: 500;
	text-align: right;
}


/* Icon */

.rpgchara_icon {
	margin-top: 10px;
	text-align: center;
}

.rpgchara_icon img,
.rpgchara_icon .trimicon {
	display: block;
	width: 200px;
	height: 100px;
	object-fit: cover;
	box-sizing: border-box;
	margin: 0 auto;
	border: 3px solid var(--accent1);
}


/* Spielername */

.rpgchara_postbit .pb_spieler {
	margin-top: 10px;
}

.rpgchara_postbit .pb_spieler b {
	color: var(--accent1);
}


/* Signatur */

.rpgchara_signature {
	margin-top: 25px;
	text-align: center;
}

.rpgchara_signature img {
	max-width: 100%;
	height: auto;
}


/* Scrollbars innerhalb der Minichara-Infos */

.rpgchara_description::-webkit-scrollbar {
	width: 4px;
}

.rpgchara_description::-webkit-scrollbar-track {
	background: var(--accent2_dark);
}

.rpgchara_description::-webkit-scrollbar-thumb {
	background: var(--accent1_grey);
}

.rpgchara_description::-webkit-scrollbar-thumb:hover {
	background: var(--accent1);
}