.profile,
.profile *,
.profile *::before,
.profile *::after {
	box-sizing: border-box;
}

.profile {
	color: var(--font-color);
	line-height: 1.5;
}

.profile {
	width: 1000px;
	max-width: 100%;
	border: 1px solid var(--main-accent);
}

.profile .tabbar {
	background: var(--main-accent);
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 4px;
	padding: 16px 12px;
}

.profile .tabbar button {
	background: transparent;
	border: none;
	color: var(--font-color);
	font: inherit;
	letter-spacing: .12em;
	font-size: 12px;
	padding: 6px 14px;
	cursor: pointer;
	border-radius: 2px;
	transition: background .15s, color .15s;
}

.profile .tabbar button:hover {
	background: rgba(0, 0, 0, .25);
}

.profile .tabbar button.active {
	background: var(--background);
	color: var(--font-color);
}

.profile .tabbar button:focus-visible {
	outline: 2px solid var(--accent-three);
	outline-offset: 2px;
}

.profile .tab-content {
	padding: 18px;
}

.profile .panel {
	display: none;
}

.profile .panel.active {
	display: block;
}

.profile .box {
	border: 1px solid var(--main-accent);
	background: var(--background);
	border-radius: 2px;
	padding: 14px;
}

.profile .bar {
	background: var(--main-accent);
	color: var(--font-color);
	text-align: center;
	letter-spacing: .12em;
	font-size: 12px;
	padding: 10px;
	border-radius: 2px;
}

.profile .bar.lg {
	font-size: 14px;
	padding: 13px;
	letter-spacing: .16em;
}

.profile .ph {
	display: flex;
	align-items: flex-end;
}

.profile .ph img {
	border: 1px solid var(--main-accent);
}

.profile .label {
	color: var(--font-color);
	text-transform: uppercase;
	text-align: center;
}

.profile .placeholder-text {
	color: var(--font-color);
}

.profile .hint {
	color: var(--font-color);
	font-size: 11px;
	text-align: center;
	margin: 14px 4px 2px;
}

.profile .titlebox {
	height: 150px;
	align-items: center;
	justify-content: center;
	text-align: justify;
	color: var(--font-color);
	overflow: auto;
}

.profile .allg-quote {
	display: grid;
	grid-template-columns: 1fr 184px;
	gap: 12px;
	margin-bottom: 12px;
	align-items: center;
}

.profile .allg-quote .quote {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 75px;
	padding-top: 0;
	padding-bottom: 0;
	text-align: center; 
	overflow: auto;
}

.profile .allg-main {
	display: grid;
	grid-template-columns: 300px 1fr 1.05fr;
	gap: 12px;
}

.profile .allg-col {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.profile .allg-main>.allg-col:nth-child(3)> :last-child {
	margin-top: auto;
}

.profile .imgslot {
	box-sizing: content-box;
	padding: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	gap: 6px;
	border-radius: 2px;
	overflow: hidden;
}

.profile .imgslot.framed {
	background: var(--background);
	outline: 1px solid var(--main-accent);
	outline-offset: -1px;
}

.profile .imgslot img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	margin-bottom: 3px;
}

.profile .slot-avatar {
	width: 300px;
	height: 250px;
}

.profile .slot-avatar img {
	border: 1px solid var(--main-accent);
}

.profile .slot-gif3 {
	width: 184px;
	height: 75px;
	font-size: 11px;
	gap: 2px;
}

.profile .slot-gif1 {
	width: 300px;
	min-height: 150px;
	font-size: 12px;
}

.profile .desc {
	height: 330px;
	text-align: justify;
	overflow: auto;
	width: 372px;
}

.profile .more-chars {
	height: 196px;
	width: 372px;
	text-align: center;
	overflow: auto;
}

.profile .info-line {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.profile .info-line .val {
	color: var(--font-color);
	text-align: right;
  	flex: 1;
}

.profile .charname {
	text-align: center;
	font-size: 15px;
	letter-spacing: .08em;
	color: var(--font-color);
	padding: 16px;
}

.profile .btn-pair {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

.profile .clickbox {
	justify-content: center;
	cursor: pointer;
	transition: background .15s, border-color .15s;
	display: flex;
}

.profile .clickbox:hover {
	background: #241f1f;
	border-color: var(--main-accent);
}

.profile .trigger {
	min-height: 64px;
	display: flex;
	align-items: center;
	justify-content: center;
	letter-spacing: .12em;
	margin-top: 12px;
}

.profile .center-row {
	display: flex;
	justify-content: center;
	margin-top: 12px;
}

.profile .save-btn {
	background: var(--main-accent);
	color: var(--font-color);
	border-radius: 2px;
	padding: 12px 34px;
	font: inherit;
	letter-spacing: .08em;
	cursor: pointer;
	transition: background .15s, border-color .15s;
}

.profile .save-btn:hover {
	background: var(--background);
	color: var(--font-color);
}

.profile .steck {
	display: grid;
	grid-template-columns: 340px 1fr;
	gap: 12px;
}

.profile .steck-fields {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.profile .field {
	padding: 11px 12px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	height: 43px;
}

.profile .field .val {
	color: var(--font-color);
	font-size: 13px;
}

.profile .steck-right {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.steck-right .titlebox{
	height: 54px;
	text-align: center;
}

.profile .lebenslauf {
	height: 450px;
	padding: 18px;
	overflow: auto;
}

.profile .lebenslauf .label {
	display: block;
	text-align: justify;
	margin-bottom: 8px;
	text-transform: none;
}

.profile .steck-bottom {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

.profile .steck-bottom .ph {
	min-height: 110px;
}

.profile .gif2 {
	font-size: 12px;
	display: flex;
	align-items: center;
	padding: 0;
}

.profile .info-grid {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	gap: 12px;
	align-items: stretch; 
}

.profile .info-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.profile .info-col > .box {       /* mittlere & rechte Felder gleich verteilen */
  flex: 1;
  min-height: 150px;
  display: flex;
}

.profile .info-col > .box > .titlebox { flex: 1; min-height: 0; }

.profile .info-pinterest {
  flex: 1 1 auto;
  padding: 0;
  overflow: auto;
  display: block;
}

.profile .info-pinterest .titlebox {
	min-height: 100%;
}

.profile .info-grid .titlebox {
	min-height: 150px;
}

.profile .info-fancy {
	height: 150px;
	width: 300px;
	flex: 0 0 auto;
}

.profile .funfacts {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	grid-template-rows: 1fr 1fr;
	gap: 12px;
}

.profile .funfacts .spotify {
	grid-row: 1 / span 2;
}

.profile .funfacts .titlebox {
	min-height: 230px;
}

.profile .funfacts .spotify .titlebox {
	min-height: 100%;
}

.profile .szenen {
	display: flex;
	flex-direction: column;
	gap: 12px;
	background: none;
}

.profile .scene-cols {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

.profile .scene-card {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.profile .scene-head {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 10px;
}

.profile .scene-head .meta {
	font-size: 12px;
	color: var(--font-color);
}

.profile .scene-head .status {
	font-size: 12px;
	color: var(--font-color);
}

.profile .scene-body {
	min-height: 150px;
}

.profile .carousel {
	display: grid;
	grid-template-columns: 44px 1fr 44px;
	align-items: center;
	gap: 12px;
}

.profile .car-track {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	align-items: start;
}

.profile .car-slot {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.profile .car-slot.empty {
	visibility: hidden;
}

.profile .car-arrow {
	height: 44px;
	width: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--background);
	border: 1px solid var(--main-accent);
	color: var(--font-color);
	border-radius: 2px;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	transition: background .15s, border-color .15s, opacity .15s;
}

.profile .car-arrow:hover:not(:disabled) {
	background: var(--main-accent);
	border-color: var(--main-accent);
}

.profile .car-arrow:focus-visible {
	outline: 2px solid var(--accent-three);
	outline-offset: 2px;
}

.profile .car-arrow:disabled {
	opacity: .3;
	cursor: default;
}

.profile .car-status {
	text-align: center;
	font-size: 11px;
	letter-spacing: .08em;
	color: var(--font-color);
	margin: 4px 0 0;
}

.profile .bez-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px 12px;
}

.profile .bez-col {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.profile .bez-box {
	min-height: 220px;
}

.profile .add-contact {
	margin: 0 auto;
	display: block;
	width: 280px;
	text-align: center;
	cursor: pointer;
	background: var(--main-accent);
	border: none;
}

.profile .add-contact:hover {
	background: var(--background);
	border: none;
}

.profile .modal-backdrop {
	position: fixed;
	inset: 0;
	background: var(--background-transparent);
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px;
	z-index: 50;
}

.profile .modal-backdrop.open {
	display: flex;
}

.profile .modal {
	background: var(--background);
	border: 1px solid var(--main-accent);
	border-radius: 2px;
	width: 440px;
	max-width: 100%;
	padding: 0;
}

.profile .modal .bar {
	border-radius: 2px 2px 0 0;
}

.profile .modal-body {
	padding: 18px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.profile .modal-body label {
	font-size: 11px;
	letter-spacing: .08em;
	color: var(--font-color);
	text-transform: uppercase;
}

.profile .modal-body input,
.profile .modal-body select,
.profile .modal-body textarea {
	width: 100%;
	background: var(--background);
	border: 1px solid var(--main-accent);
	color: var(--font-color);
	border-radius: 2px;
	padding: 9px 10px;
	font: inherit;
}

.profile .modal-actions {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	padding: 0 18px 18px;
}

.profile .modal-actions button {
	font: inherit;
	border-radius: 2px;
	padding: 9px 18px;
	cursor: pointer;
	border: 1px solid var(--main-accent);
}

.profile .btn-ghost {
	background: transparent;
	color: var(--font-color);
}

.profile .btn-solid {
	background: var(--main-accent);
	color: var(--font-color);
	border-color: var(--main-accent);
}

.profile .info-pinterest { 
	width: 300px;
  	height: 372px;
  	overflow-y: auto;
  	overflow-x: hidden;
}

.profile .info-pinterest a { display: block; }

/* Pinterest-Embed ans dunkle Theme anpassen (sind Spans, kein iframe) */
.profile .info-pinterest [data-pin-log="embed_grid"],
.profile .info-pinterest [class*="_embed_grid"],
.profile .info-pinterest [class*="_hd"],
.profile .info-pinterest [class*="_bd"],
.profile .info-pinterest [class*="_ft"] {
  background-color: var(--background) !important;
  border-color: var(--main-accent) !important;
}

/* Pinner- und Board-Name hell statt dunkel */
.profile .info-pinterest [class*="_pinner"],
.profile .info-pinterest [class*="_board"],
.profile .info-pinterest [class*="_ft"],
.profile .info-pinterest [class*="_ft"] a {
  color: var(--font-color) !important;
}


.profile .info-pinterest [class*="_hd"],
.profile .info-pinterest [class*="_ft"] { display: none !important; }

/* Pinterest-Embed: eckige Ecken */
.profile .info-pinterest [class*="PIN_"],
.profile .info-pinterest [class*="_img"],
.profile .info-pinterest [class*="_embed_grid"] {
  border-radius: 0 !important;
}

.profile .info-pinterest [class*="_hd"],
.profile .info-pinterest [class*="_bd"],
.profile .info-pinterest [class*="_ft"] {
  border-radius: 0 !important;
	height: 395px !important;
}

.profile .scene-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 12px;
}
.profile .scene-card .bar a.sceneLink {
  color: var(--font-color);
  text-decoration: none;
}

.more-chars {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
	justify-content: center;
}

.as-avatar img {
	width: 100px;
}

.relation-type {
	font-size: 14px; 
	font-weight: bold; 
	letter-spacing: 2px;
	text-transform: uppercase;
}

.relation-username {
	text-align: center;
  	font-size: 14px;
  	background: var(--background);
  	padding: 8px 0;
  	font-weight: bold;
}

.relation-avatar {
	width: 150px;
	height: 125px;
}

.relation-avatar img {
	height: 100%;
	border: 2px solid var(--main-accent);
}

.relation-text {
	height: 121px;
	overflow: auto;
	text-align: justify;
	padding: 0 10px;
	width: 306px;
	overflow-wrap: break-word;
	word-break: break-word;
	hyphens: auto;
}

.relation-options {
	float:right;
	padding:2px;
	font-size: 10px;
	margin-left: -25%;
}

.profile .funfacts .spotify iframe {
  width: 100%;
  height: 502px;
  display: block;
}

.profile-customfields-header {
	background: var(--main-accent);
  	padding: 5px;
}

.profile-customfields-question {
	text-transform: uppercase;
  	font-weight: bold;
}

.profile-customfields-value input.textbox {
	width: 400px;
	padding: 5px;
}

.profile-customfields-value textarea {
	width: 99.4%;
}

.desc, .lebenslauf, .titlebox, .relation-text {
	white-space: pre-line;  
}