@import url(https://fonts.googleapis.com/css2?family=Chakra+Petch:ital,wght@0,500;0,600;1,500&family=IBM+Plex+Sans:wght@400;500&display=swap);
 
/* ---------- 1. Farben & Schriften – hier zentral anpassen ---------- */
 
.tp-pass {
	--tp-bg:        #121a1f;   /* Fläche des Passes                 */
	--tp-surface:   #1b252a;   /* Kästen, Karten, aktiver Tab       */
	--tp-sunken:    #121a1f;   /* Flächen IN Karten (Attacken …)    */
	--tp-line:      #2a3d46;   /* Linien / Trenner                  */
	--tp-line-strong: #3b4d55; /* Unterstriche der Felder           */
	--tp-text:      #cfc5c1;   /* normaler Text                     */
	--tp-heading:   #ece4df;   /* Überschriften, Namen              */
	--tp-muted:     #8d979b;   /* Labels, Nebeninfos                */
	--tp-accent:    #c7945c;   /* Kupfer: Akzent, aktiver Tab, Fokus */
	--tp-tab-hover: #1b252a;   /* Tab beim Drüberfahren             */
 
	--tp-font-display: "Chakra Petch", "Segoe UI", sans-serif;
	--tp-font-body:    "IBM Plex Sans", "Segoe UI", sans-serif;
 
	color: var(--tp-text);
	font-family: var(--tp-font-body);
}
 
/* ---------- 2. Tabs: gleich breite Felder mit Trennlinien ---------- */
 
.tp-tabs {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	border-top: 1px solid var(--tp-line);
	border-bottom: 1px solid var(--tp-line);
	font-family: Aldrich;
	background: var(--tp-bg);
}
 
.tp-tab {
	/* Browser- und Design-Buttonstil zurücksetzen */
	-webkit-appearance: none;
	appearance: none;
	margin: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	font: inherit;
 
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	min-height: 48px;
	padding: 0 12px;
	border-right: 1px solid var(--tp-line);
	border-bottom: 2px solid transparent;
	margin-bottom: -1px;          /* aktive Linie liegt auf der Leistenlinie */
	color: var(--tp-muted);
	font-size: 15px;
	letter-spacing: 0.02em;
	white-space: nowrap;
	cursor: pointer;
	transition: color 0.15s, background-color 0.15s, border-color 0.15s;
}
 
.tp-tab:last-child {
	border-right: 0;
}
 
.tp-tab:hover {
	background: var(--tp-tab-hover);
	color: var(--tp-text);
}
 
.tp-tab[aria-selected="true"] {
	background: var(--tp-tab-hover);
	border-bottom-color: var(--tp-accent);
	color: var(--tp-accent);
}
 
.tp-tab:focus-visible {
	outline: 2px solid var(--tp-accent);
	outline-offset: -2px;
}
 
/* ---------- Tab-Inhalte ---------- */
 
.tp-panel {
	padding: 24px;
}
 
.tp-panel[hidden] {
	display: none !important;
}
 
/* ---------- Schmale Bildschirme: Leiste wird wischbar ---------- */
 
@media (max-width: 760px) {
	.tp-tabs {
		display: flex;
		overflow-x: auto;
		scrollbar-width: none;
	}
	.tp-tabs::-webkit-scrollbar {
		display: none;
	}
	.tp-tab {
		flex: 0 0 auto;
		padding: 0 16px;
	}
	.tp-panel {
		padding: 16px;
	}
}
 
@media (prefers-reduced-motion: reduce) {
	.tp-tab {
		transition: none;
	}
}
 
/* ---------- Kleinigkeiten aus den Plugin-Templates ---------- */
 
/* Szenen ohne Link (z.B. gelöschte) nicht anklickbar machen */
a.sceneLink[href=""] {
	pointer-events: none;
	text-decoration: none;
}
 
/* ---------- 3. Pass & Kopf ---------- */
 
.tp-pass {
	background: var(--tp-bg);
	border: 2px solid var(--tp-accent);
	border-radius: 0px;
	overflow: hidden;
	font-size: 15px;
	line-height: 1.5;
}
 
.tp-pass a {
	color: var(--tp-accent);
}
 
.tp-head {
	display: flex;
	align-items: center;
	gap: 20px;
	padding: 24px 32px;
}
 
.tp-head__icon {
	flex: 0 0 auto;
}
 
.tp-head__img {
	display: block;
	width: 150px;
	height: 150px;
	border: 2px solid var(--tp-accent);
	border-radius: 50%;
	object-fit: cover;
	background: var(--tp-surface);
}
 
.tp-head__id {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}
 
.tp-head__name {
	margin: 0;
	font-family: var(--tp-font-display);
	font-weight: 600;
	font-size: 30px;
	line-height: 1.1;
	color: var(--tp-heading);
}
 
/* Sternzeichen unter dem Namen (Template pokemon_horoskop_profile) */
.tp-sign {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
}
 
.tp-sign__pokemon {
	font-family: var(--tp-font-display);
	font-weight: 600;
	color: var(--tp-heading);
}
 
.tp-sign__trait {
	padding: 2px 10px;
	border: 1px solid var(--tp-accent);
	border-radius: 999px;
	font-size: 12px;
	color: var(--tp-accent);
}
 
/* Inplay-Zitat rechts im Kopf (Templates inplayquotes_memberprofile*) */
.tp-quote {
	flex: 0 1 480px;
	min-width: 0;
}
 
.tp-quote:empty {
	display: none;
}
 
.tp-quote__box {
	position: relative;
	padding: 14px 20px 14px 52px;
	background: var(--tp-surface);
	border: 1px solid var(--tp-accent);   /* Rahmen in Akzentfarbe */
	border-radius: 20px;                  /* vorher 12px */
}
 
.tp-quote__box::before {
	content: "\201E";
	position: absolute;
	left: 16px;
	top: 4px;
	font-family: var(--tp-font-display);
	font-weight: 600;
	font-size: 40px;
	line-height: 1;
		background-color: #223138;
	color: var(--tp-accent);
}
 
.tp-quote__item {
	margin: 4px 0 0;
}
 
.tp-quote__text {
	margin: 0;
	font-family: var(--tp-font-display);
	font-style: italic;
	font-size: 16px;
	line-height: 1.4;
	color: var(--tp-heading);
}
 
.tp-quote__source,
.tp-quote__all,
.tp-quote__none {
	margin: 6px 0 0;
	font-size: 12px;
	color: var(--tp-muted);
}
 
.tp-notices:empty {
	display: none;
}
 
.tp-notices {
	padding: 0 32px 16px;
}
 
/* ---------- 4. Gemeinsame Bausteine ---------- */
 
/* kleines Label in Großbuchstaben */
.tp-label,
.tp-idfield dt,
.tp-fact dt,
.tp-row__item dt {
	font-family: var(--tp-font-display);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--tp-muted);
}
 
.tp-pass dl,
.tp-pass dd {
	margin: 0;
}
 
.tp-box {
	padding: 18px 20px;
	background: var(--tp-surface);
	border: 1px solid var(--tp-line);
	border-radius: 14px;
}
 
.tp-box__title,
.tp-block__title,
.tp-section__title {
	margin: 0 0 10px;
	font-family: var(--tp-font-display);
	font-weight: 600;
	font-size: 18px;
	color: var(--tp-heading);
}
 
.tp-text {
	line-height: 1.65;
	overflow-wrap: anywhere;
}
 
/* Textblöcke in Charakter/Vergangenheit bekommen dieselbe Kastenoptik */
.tp-block .tp-text {
	padding: 18px 20px;
	background: var(--tp-surface);
	border: 1px solid var(--tp-line);
	border-radius: 14px;
}
 
.tp-block + .tp-block,
.tp-block + .tp-columns {
	margin-top: 24px;
}
 
.tp-chip {
	display: inline-block;
	padding: 3px 12px;
	border: 0px solid var(--tp-accent);
	border-radius: 999px;
	font-size: 13px;
	color: var(--tp-accent);
}
 
.tp-chip:empty {
	display: none;
}
 
/* ---------- 5. Allgemeines: Moodboard links schräg, Felder rechts ---------- */
 
.tp-panel--general {
	position: relative;
	height: 620px;              /* feste Höhe: Moodboard & Schräge bleiben gleich */
	padding: 36px 32px 32px 0;
	box-sizing: border-box;
}
 
.tp-moodboard {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: 440px;
	clip-path: polygon(0 0, 100% 0, 55% 100%, 0 100%);
	background: var(--tp-surface);
}
 
/* Akzentlinie entlang der schrägen Kante */
.tp-moodboard::after {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--tp-accent);
	clip-path: polygon(calc(100% - 3px) 0, 100% 0, calc(55% + 1px) 100%, calc(55% - 2px) 100%);
	pointer-events: none;
}
 
.tp-moodboard__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	grid-auto-rows: minmax(0, 1fr);
	gap: 4px;
	height: 100%;
}
 
.tp-pin {
	display: block;
	min-height: 0;
	overflow: hidden;
	background: var(--tp-sunken);
}
 
.tp-pin img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: grayscale(0.6) brightness(0.85);
	transition: filter 0.25s;
}
 
.tp-pin:hover img,
.tp-pin:focus-visible img {
	filter: none;
}
 
.tp-moodboard__link {
	position: absolute;
	left: 16px;
	bottom: 16px;
	z-index: 1;
	padding: 6px 14px;
	background: var(--tp-bg);
	border-radius: 999px;
	font-size: 13px;
	text-decoration: none;
}
 
.tp-general {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 32px;
	height: 100%;
	margin-left: 470px;
}
 
/* Ausweis-Felder: Wert auf der Linie, Label darunter */
@import url(https://fonts.bunny.net/css?family=aldrich:400);
 
.tp-idfields {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
		font-family: Aldrich;
	gap: 18px 32px;          /* vorher 36px 32px → Abstand zwischen den Zeilen */
}
 
.tp-idfield {
	display: flex;
	flex-direction: column-reverse;
		font-family: Aldrich;
	gap: 4px;                /* vorher 6px → Abstand Wert ↔ Label */
}
 
.tp-idfield dd {
	min-height: 1.5em;
	padding-bottom: 4px;     /* vorher 8px → Abstand Text ↔ Linie */
	border-bottom: 1px solid var(--tp-line-strong);
		font-family: Aldrich;
	font-size: 15px;         /* vorher 17px → Schriftgröße der Werte */
	color: var(--tp-heading);
}
 
/* Besonderheiten ragt nach links unter die Schräge und scrollt in sich */
.tp-box--special {
	flex: 1 1 auto;
	min-height: 0;             /* darf schrumpfen, damit der Text scrollt */
	display: flex;
	flex-direction: column;
	margin-left: -110px;
}
 
.tp-box--special .tp-text {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	padding-right: 10px;
	overscroll-behavior: contain;
	scrollbar-width: thin;
	scrollbar-color: var(--tp-line-strong) transparent;
}
 
.tp-box--special .tp-text::-webkit-scrollbar {
	width: 6px;
}
 
.tp-box--special .tp-text::-webkit-scrollbar-thumb {
	background: var(--tp-line-strong);
	border-radius: 3px;
}
 
.tp-box--special .tp-text::-webkit-scrollbar-thumb:hover {
	background: var(--tp-accent);
}
 
/* ohne Pinterest-Board: Felder über die volle Breite */
.tp-panel--nomood {
	height: auto;
	padding-left: 32px;
}
 
.tp-panel--nomood .tp-moodboard {
	display: none;
}
 
.tp-panel--nomood .tp-general {
	height: auto;
	margin-left: 0;
}
 
.tp-panel--nomood .tp-idfields {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}
 
.tp-panel--nomood .tp-box--special {
	margin-left: 0;
}
 
/* ohne Moodboard und auf dem Handy: Scrollbox mit fester Maximalhöhe */
.tp-panel--nomood .tp-box--special .tp-text {
	max-height: 320px;
}
 
/* ---------- 6. Trainerpass ---------- */
 
.tp-card {
	display: grid;
	grid-template-columns: 280px minmax(0, 1fr);
	gap: 32px;
}
 
.tp-card__side,
.tp-card__main {
	display: flex;
	flex-direction: column;
	gap: 24px;
	min-width: 0;
}
 
/* Multicharas (Templates trainerpass_multichara*) */
.tp-multis {
	flex: 1 1 auto;
}
 
.tp-multis__list {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
 
.tp-multi__link {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 4px;
	border-radius: 10px;
	text-decoration: none;
}
 
.tp-multi__link:hover {
	background: var(--tp-sunken);
}
 
.tp-multi__icon {
	flex: 0 0 auto;
	width: 40px;
	height: 40px;
	border: 1px solid var(--tp-line-strong);
	border-radius: 50%;
	object-fit: cover;
	background: var(--tp-sunken);
}
 
.tp-multi__name {
	min-width: 0;
	overflow-wrap: anywhere;
}
 
.tp-multis__none {
	margin: 0;
	color: var(--tp-muted);
}
 
/* Faceclaim & Spielername */
.tp-facts {
	display: flex;
	flex-direction: column;
	gap: 18px;
}
 
.tp-fact {
	display: flex;
	flex-direction: column;
	gap: 6px;
}
 
.tp-fact dd {
	min-height: 1.5em;
	padding-bottom: 8px;
	border-bottom: 1px solid var(--tp-line-strong);
	color: var(--tp-heading);
}
 
/* Allgemeine Infos & Spielerinfos: 4 Werte nebeneinander */
.tp-row {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	padding: 16px 4px;
	background: var(--tp-surface);
	border: 1px solid var(--tp-line);
	border-radius: 14px;
}
 
.tp-row__item {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
	min-width: 0;
	padding: 0 16px;
	border-right: 1px solid var(--tp-line);
}
 
.tp-row__item:last-child {
	border-right: 0;
}
 
.tp-row__item dd {
	overflow-wrap: anywhere;
	color: var(--tp-heading);
}
 
.tp-section--grow {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
}
 
.tp-section--grow .tp-box {
	flex: 1 1 auto;
}
 
/* ---------- 7. Pokémon (Templates pokemon_profile_card*) ---------- */
 
.tp-panel__head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 16px;
	margin-bottom: 18px;
}
 
.tp-panel__head .tp-block__title {
	margin: 0;
}
 
.tp-pokemon-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}
 
.tp-mon {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 16px;
	background: var(--tp-surface);
	border: 1px solid var(--tp-line);
	border-radius: 14px;
}
 
.tp-mon__top {
	display: flex;
	align-items: center;
	gap: 14px;
}
 
.tp-mon__img {
	flex: 0 0 auto;
	display: block;
	width: 72px;
	height: 72px;
	border: 1px solid var(--tp-line);
	border-radius: 10px;
	object-fit: contain;
	background: var(--tp-sunken);
}
 
.tp-mon__id {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}
 
.tp-mon__nick {
	font-family: var(--tp-font-display);
	font-weight: 600;
	font-size: 18px;
	color: var(--tp-heading);
	overflow-wrap: anywhere;
}
 
.tp-mon__species {
	font-size: 13px;
	color: var(--tp-muted);
}
 
.tp-mon__species:empty {
	display: none;
}
 
.tp-mon__types {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 3px;
}
 
.tp-mon__type {
	padding: 1px 8px;
	background: var(--tp-sunken);
	border: 1px solid var(--tp-line-strong);
	border-radius: 6px;
	font-size: 11px;
	color: var(--tp-text);
}
 
.tp-mon__ability {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
	padding-top: 10px;
	border-top: 1px solid var(--tp-line);
}
 
.tp-mon__abilityname {
	color: var(--tp-heading);
	text-align: right;
}
 
.tp-mon__moves {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}
 
.tp-mon__moves:empty {
	display: none;
}
 
.tp-mon__moves li {
	padding: 7px 10px;
	background: var(--tp-sunken);
	border: 1px solid var(--tp-line);
	border-radius: 8px;
	font-size: 13px;
}
 
.tp-mon__none {
	grid-column: 1 / -1;
	margin: 0;
	color: var(--tp-muted);
}
 
/* ---------- 8. Handy & schmale Bildschirme ---------- */
 
@media (max-width: 1000px) {
	.tp-pokemon-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.tp-row {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		row-gap: 16px;
	}
	.tp-row__item:nth-child(2n) {
		border-right: 0;
	}
}
 
@media (max-width: 760px) {
	.tp-head {
		flex-wrap: wrap;
		padding: 20px 16px;
	}
	.tp-quote {
		flex-basis: 100%;
	}
 
	/* Allgemeines: Moodboard oben, gerade statt schräg */
	.tp-panel--general {
		height: auto;
		padding: 0 16px 16px;
	}
	.tp-moodboard {
		position: relative;
		width: auto;
		height: 260px;
		margin: 0 -16px 24px;
		clip-path: none;
	}
	.tp-moodboard::after {
		display: none;
	}
	.tp-general {
		height: auto;
		margin-left: 0;
	}
	.tp-idfields,
	.tp-panel--nomood .tp-idfields {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 24px 20px;
	}
	.tp-box--special {
		margin-left: 0;
	}
	.tp-box--special .tp-text {
		max-height: 320px;
	}
	.tp-panel--nomood {
		padding-left: 16px;
	}
 
	.tp-card {
		grid-template-columns: minmax(0, 1fr);
	}
	.tp-pokemon-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}
 
@media (prefers-reduced-motion: reduce) {
	.tp-pin img {
		transition: none;
	}
}
 
.tp-columns {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);  /* links 2 Teile, rechts 3 Teile */
	gap: 24px;
	align-items: stretch;
}
 
.tp-stack {
	display: flex;
	flex-direction: column;
	gap: 24px;
	min-width: 0;
}
 
/* das Banner-Bild */
.tp-charimg {
	flex: 1 1 auto;
	min-height: 260px;
	background-color: var(--tp-surface);
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
	border: 1px solid var(--tp-line);
	border-radius: 14px;
}
 
/* Fähigkeiten geht bis ganz unten, langer Text scrollt */
.tp-block--tall {
	display: flex;
	flex-direction: column;
	min-width: 0;
}
 
.tp-block--tall .tp-text {
	flex: 1 1 auto;
	max-height: 560px;
	overflow-y: auto;
	scrollbar-width: thin;
	scrollbar-color: var(--tp-line-strong) transparent;
}
 
/* Handy: alles untereinander */
@media (max-width: 760px) {
	.tp-columns {
		grid-template-columns: minmax(0, 1fr);
	}
	.tp-block--tall .tp-text {
		max-height: 320px;
	}
}