/* =========================================================
   OWLWAYS — POSTBIT
   Editoriales Kartenlayout passend zum Header
   Farben ausschließlich über bestehende --owlh-* Rootvariablen
========================================================= */


/* =========================================================
   GRUNDKARTE
========================================================= */

.owlpb-post {
	width: 100%;
	margin: 0 0 28px;
	padding: 0 !important;
	box-sizing: border-box;
	overflow: visible !important;
	background: var(--owlh-surface);
	border: 1px solid var(--owlh-border-soft);
	box-shadow: 0 8px 24px var(--owlh-shadow);
	color: var(--owlh-text);
}

.owlpb-post.post.classic {
	padding-top: 0;
}

.owlpb-layout {
	display: grid;
	grid-template-columns: minmax(260px, 285px) minmax(0, 1fr);
	align-items: stretch;
	overflow: visible;
}


/* =========================================================
   AUTORENSPALTE
========================================================= */

.owlpb-author {
	position: relative;
	align-self: stretch;
	min-width: 0;
	overflow: visible;
	background: var(--owlh-surface-soft);
	border-right: 1px solid var(--owlh-border-soft);
}

.owlpb-author-sticky {
	position: -webkit-sticky;
	position: sticky;
	top: 18px;
	z-index: 2;
	width: 100%;
	height: max-content;
	padding: 26px 22px 24px;
	box-sizing: border-box;
}


/* =========================================================
   NAME / USERTITEL
========================================================= */

.owlpb-author-head {
	margin-bottom: 14px;
	text-align: center;
}

.owlpb-author-name {
	overflow-wrap: anywhere;
	color: var(--owlh-heading);
	font-family: Georgia, "Times New Roman", serif;
	font-size: 27px;
	font-weight: normal;
	line-height: 1.05;
}

.owlpb-author-name a {
	color: inherit;
	text-decoration: none;
}

.owlpb-author-name a:hover {
	color: var(--owlh-accent);
	text-decoration: none;
}

.owlpb-author-title {
	margin-top: 7px;
	color: var(--owlh-text-muted);
	font-size: 9px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: .13em;
	text-transform: uppercase;
}


/* =========================================================
   AVATAR-KARTE
========================================================= */

.owlpb-avatar-card {
	position: relative;
	width: fit-content;
	max-width: 100%;
	margin: 0 auto 18px;
	padding: 8px;
	box-sizing: border-box;
	background: var(--owlh-surface-raised);
	border: 1px solid var(--owlh-border-strong);
}

/* kleine Karten-Anspielung auf die Schokofroschform */
.owlpb-avatar-card::before {
	content: "";
	position: absolute;
	left: 50%;
	top: -7px;
	width: 14px;
	height: 14px;
	transform: translateX(-50%) rotate(45deg);
	background: var(--owlh-surface-raised);
	border-left: 1px solid var(--owlh-border-strong);
	border-top: 1px solid var(--owlh-border-strong);
}

.owlpb-avatar {
	position: relative;
	z-index: 1;
	width: auto;
	max-width: 100%;
	overflow: hidden;
	background: var(--owlh-surface-deep);
}

.owlpb-avatar img {
	width: auto !important;
	height: auto !important;
	max-width: 100% !important;
	display: block;
	object-fit: contain;
}


/* =========================================================
   PN
========================================================= */

.owlpb-pm {
	position: relative;
	z-index: 2;
	margin-top: 7px;
}

.owlpb-pm:empty {
	display: none;
}

.owlpb-pm a,
.owlpb-pm .postbit_pm {
	width: 100%;
	margin: 0 !important;
	padding: 7px 8px !important;
	box-sizing: border-box;
	display: block !important;
	background: var(--owlh-nav-bg) !important;
	border: 0 !important;
	color: var(--owlh-nav-text) !important;
	font-size: 7px !important;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: .12em;
	text-align: center;
	text-decoration: none !important;
	text-transform: uppercase;
}

.owlpb-pm a:hover {
	background: var(--owlh-accent) !important;
	color: var(--owlh-hero-text) !important;
	text-decoration: none !important;
}


/* =========================================================
   PROFILDETAILS
========================================================= */

.owlpb-author-info {
	min-width: 0;
	margin-top: 16px;
	padding: 0;
	box-sizing: border-box;
	overflow: hidden;
	background: var(--owlh-surface-raised);
	border: 1px solid var(--owlh-border-soft);
	color: var(--owlh-text-soft);
	font-size: 13px;
	line-height: 1.6;
	text-align: left;
	overflow-wrap: anywhere;
}

.owlpb-author-info a {
	color: var(--owlh-accent);
	text-decoration: none;
}

.owlpb-author-info a:hover {
	color: var(--owlh-accent-hover);
	text-decoration: none;
}


.owlpb-author-info-title {
	padding: 10px 13px 9px;
	background: var(--owlh-nav-bg);
	color: var(--owlh-nav-text);
	font-size: 8px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: .14em;
	text-transform: uppercase;
}

.owlpb-author-info-content {
	padding: 0;
}


/* =========================================================
   STRUKTURIERTE CHARAKTERINFOS
========================================================= */

.owlpb-profile-facts {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	border-bottom: 1px solid var(--owlh-border-soft);
}

.owlpb-profile-fact {
	min-width: 0;
	padding: 11px 12px 10px;
	box-sizing: border-box;
	background: var(--owlh-surface);
	border-right: 1px solid var(--owlh-border-soft);
	border-bottom: 1px solid var(--owlh-border-soft);
}

.owlpb-profile-fact:nth-child(2n) {
	border-right: 0;
}

.owlpb-profile-fact:nth-last-child(-n + 2) {
	border-bottom: 0;
}

.owlpb-profile-label {
	display: block;
	margin-bottom: 4px;
	color: var(--owlh-text-muted);
	font-size: 8px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: .10em;
	text-transform: uppercase;
}

.owlpb-profile-value {
	display: block;
	min-width: 0;
	overflow: hidden;
	color: var(--owlh-heading);
	font-family: Georgia, "Times New Roman", serif;
	font-size: 13px;
	font-weight: normal;
	line-height: 1.3;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.owlpb-profile-value a {
	color: inherit;
	text-decoration: none;
}

.owlpb-profile-value a:hover {
	color: var(--owlh-accent);
	text-decoration: none;
}

.owlpb-profile-bio {
	padding: 13px 14px 15px;
	background: var(--owlh-surface-raised);
}

.owlpb-profile-bio-label {
	display: flex;
	align-items: center;
	gap: 9px;
	margin-bottom: 9px;
	color: var(--owlh-accent);
	font-size: 8px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: .11em;
	text-transform: uppercase;
}

.owlpb-profile-bio-label::after {
	content: "";
	height: 1px;
	flex: 1 1 auto;
	background: var(--owlh-border);
}

.owlpb-profile-bio-text {
	color: var(--owlh-text-soft);
	font-size: 12px;
	line-height: 1.7;
	text-align: left;
	hyphens: auto;
}

.owlpb-profile-bio-text > :first-child {
	margin-top: 0;
}

.owlpb-profile-bio-text > :last-child {
	margin-bottom: 0;
}


/* =========================================================
   ONLINESTATUS
========================================================= */

.owlpb-online {
	min-height: 14px;
	margin-top: 12px;
	color: var(--owlh-text-muted);
	font-size: 10px;
	line-height: 1.4;
	text-align: center;
}

.owlpb-online:empty {
	display: none;
}

.owlpb-online img {
	max-width: 100%;
	vertical-align: middle;
}


/* =========================================================
   BEITRAGSSPALTE
========================================================= */

.owlpb-content {
	min-width: 0;
	display: block;
	background: var(--owlh-surface-raised);
}


/* =========================================================
   POSTKOPF
========================================================= */

.owlpb-posthead {
	padding: 16px 22px 13px;
	box-sizing: border-box;
	background: var(--owlh-surface);
	border-bottom: 1px solid var(--owlh-border-soft);
}

.owlpb-post .post_head {
	margin: 0;
	padding: 0;
	border: 0;
}

.owlpb-posthead-main {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
}

.owlpb-postdate {
	min-width: 0;
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 6px 14px;
	color: var(--owlh-text-soft);
	font-size: 11px;
}

.owlpb-postdate-main {
	color: var(--owlh-heading);
	font-family: Georgia, "Times New Roman", serif;
	font-size: 14px;
	line-height: 1.25;
}

.owlpb-wordcount {
	color: var(--owlh-text-muted);
	font-size: 9px;
	font-weight: 700;
	letter-spacing: .09em;
	text-transform: uppercase;
}

.owlpb-wordcount span {
	color: var(--owlh-accent);
}

.owlpb-postnumber {
	flex: 0 0 auto;
	color: var(--owlh-accent);
	font-family: Georgia, "Times New Roman", serif;
	font-size: 14px;
}

.owlpb-postnumber a {
	color: var(--owlh-accent);
	text-decoration: none;
}

.owlpb-postnumber a:hover {
	color: var(--owlh-accent-hover);
	text-decoration: none;
}

.owlpb-edited {
	margin-top: 6px;
	color: var(--owlh-text-muted);
	font-size: 10px;
	line-height: 1.45;
}

.owlpb-subject-extra {
	margin-top: 7px;
	color: var(--owlh-text-soft);
	font-size: 11px;
	line-height: 1.5;
}

.owlpb-subject-extra:empty {
	display: none;
}


/* =========================================================
   TOOLS / POSTBIT-BUTTONS
========================================================= */

.owlpb-tools {
	min-height: 38px;
	padding: 7px 12px;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	background: var(--owlh-surface-soft);
	border-bottom: 1px solid var(--owlh-border-soft);
}

.owlpb-authorchange {
	min-width: 0;
	color: var(--owlh-text-muted);
	font-size: 10px;
}

.owlpb-authorchange:empty {
	display: none;
}

.owlpb-controls {
	margin-left: auto;
}

.owlpb-post .post_controls {
	margin: 0;
	padding: 0;
	clear: none;
	overflow: visible;
	background: transparent;
	border: 0;
}

.owlpb-post .postbit_buttons {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	flex-wrap: wrap;
	gap: 4px;
}

.owlpb-post .postbit_buttons > a:link,
.owlpb-post .postbit_buttons > a:visited,
.owlpb-post .postbit_buttons > a:hover,
.owlpb-post .postbit_buttons > a:active {
	margin: 0;
	padding: 4px 6px;
	display: inline-flex;
	align-items: center;
	min-height: 24px;
	box-sizing: border-box;
	background: var(--owlh-surface-raised);
	border: 1px solid var(--owlh-border);
	color: var(--owlh-text-soft);
	font-size: 10px;
	line-height: 1.15;
	text-decoration: none;
}

.owlpb-post .postbit_buttons > a:hover {
	background: var(--owlh-accent-soft);
	border-color: var(--owlh-border-strong);
	color: var(--owlh-accent-hover);
}

.owlpb-post .postbit_buttons a span {
	display: inline-block;
}


/* =========================================================
   ADMINMETA
========================================================= */

.owlpb-meta {
	min-height: 0;
	margin: 0 !important;
	padding: 7px 22px;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	background: var(--owlh-surface-raised);
	border-bottom: 1px solid var(--owlh-border-soft);
	color: var(--owlh-text-muted) !important;
	font-size: 10px !important;
	line-height: 1.45;
}

.owlpb-meta:empty {
	display: none;
}

.owlpb-meta a {
	color: var(--owlh-text-soft) !important;
}


/* =========================================================
   POSTBODY
========================================================= */

.owlpb-body {
	margin: 0;
	padding: 38px 44px 42px !important;
	box-sizing: border-box;
	background: var(--owlh-surface-raised);
	color: var(--owlh-text);
	font-size: 12px !important;
	line-height: 1.82;
}

.owlpb-text {
	width: 100%;
	max-width: 78ch;
	min-width: 0;
	margin: 0 auto;
	overflow-wrap: break-word;
	word-break: normal;
	text-align:justify;
}

.owlpb-text > :first-child {
	margin-top: 0;
}

.owlpb-text > :last-child {
	margin-bottom: 0;
}

.owlpb-text img {
	max-width: 100%;
	height: auto;
}

.owlpb-text a {
	color: var(--owlh-accent);
}

.owlpb-text a:hover {
	color: var(--owlh-accent-hover);
}


/* =========================================================
   ZITATE / CODE IM POST
========================================================= */

.owlpb-text blockquote {
	margin: 18px 0;
	padding: 14px 16px;
	background: var(--owlh-surface-soft);
	border: 1px solid var(--owlh-border-soft);
	border-left: 3px solid var(--owlh-accent-soft);
	color: var(--owlh-text-soft);
}

.owlpb-text blockquote cite {
	margin: 0 0 9px;
	padding: 0 0 6px;
	border-bottom: 1px solid var(--owlh-border-soft);
	color: var(--owlh-heading);
}

.owlpb-text .codeblock {
	margin: 18px 0;
	padding: 14px;
	background: var(--owlh-surface-soft);
	border: 1px solid var(--owlh-border-soft);
}

.owlpb-text .codeblock .title {
	border-bottom-color: var(--owlh-border-soft);
	color: var(--owlh-heading);
}


/* =========================================================
   HAUSPUNKTE
========================================================= */

.owlpb-housepoints {
	margin: 0 0 28px;
	padding: 18px;
	background: var(--owlh-surface);
	border: 1px solid var(--owlh-border-soft);
}

.owlpb-housepoints-head {
	margin-bottom: 15px;
	text-align: center;
}

.owlpb-housepoints-head > span {
	color: var(--owlh-accent);
	font-size: 7px;
	font-weight: 700;
	letter-spacing: .15em;
	text-transform: uppercase;
}

.owlpb-housepoints-head h2 {
	margin: 4px 0 0;
	color: var(--owlh-heading);
	font-family: Georgia, "Times New Roman", serif;
	font-size: 23px;
	font-weight: normal;
	font-style: italic;
	line-height: 1.1;
}

.owlpb-housepoints-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 8px;
}

.owlpb-housepoint {
	min-width: 0;
	padding: 13px 8px;
	box-sizing: border-box;
	background: var(--owlh-surface-soft);
	border: 1px solid var(--owlh-border-soft);
	text-align: center;
}

.owlpb-housepoint strong {
	display: block;
	color: inherit;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 20px;
	font-weight: normal;
	line-height: 1.2;
}

.owlpb-housepoint span {
	margin-top: 5px;
	display: block;
	color: inherit;
	font-size: 7px;
	font-weight: 700;
	letter-spacing: .10em;
	text-transform: uppercase;
}


/* =========================================================
   REAKTIONEN
========================================================= */

.owlpb-reactions {
	padding: 12px 22px;
	background: var(--owlh-surface);
	border-top: 1px solid var(--owlh-border-soft);
	color: var(--owlh-text-soft);
}

.owlpb-reactions:empty {
	display: none;
}

.owlpb-reactions .majreactions_anker {
	display: none;
}


/* =========================================================
   SIGNATUR
========================================================= */

.owlpb-signature {
	margin-top: 22px;
	padding: 20px 22px 24px;
	background: var(--owlh-surface);
	border-top: 1px solid var(--owlh-border-soft);
	overflow: hidden;
	text-align: center;
}

.owlpb-signature:empty {
	display: none;
}

.owlpb-signature .signature {
	margin: 0;
	padding: 0;
	border: 0;
}

.owlpb-signature img {
	max-width: 100%;
	height: auto;
}


/* =========================================================
   UNAPPROVED / DELETED
========================================================= */

.owlpb-post.unapproved_post {
	background: var(--owlh-error-bg);
	border-color: var(--owlh-error-border);
}

.owlpb-post.deleted_post {
	background: var(--owlh-deleted-bg);
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {

	.owlpb-layout {
		grid-template-columns: minmax(220px, 245px) minmax(0, 1fr);
	}

	.owlpb-author-sticky {
		padding: 18px 13px;
	}

	.owlpb-author-name {
		font-size: 24px;
	}

	.owlpb-avatar-card {
		max-width: 100%;
	}

	.owlpb-author-info {
		font-size: 11.5px;
	}

	.owlpb-body {
		padding: 32px 30px 36px !important;
		font-size: 15px !important;
	}

	.owlpb-housepoints-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 720px) {

	.owlpb-post {
		margin-bottom: 20px;
	}

	.owlpb-layout {
		display: block;
	}

	.owlpb-author {
		border-right: 0;
		border-bottom: 1px solid var(--owlh-border-soft);
	}

	.owlpb-author-sticky {
		position: static;
		top: auto;
		padding: 15px;
		display: grid;
		grid-template-columns: 115px minmax(0, 1fr);
		grid-template-areas:
			"head head"
			"avatar info"
			"avatar online";
		gap: 10px 14px;
		align-items: start;
	}

	.owlpb-author-head {
		grid-area: head;
		margin: 0 0 3px;
		text-align: left;
	}

	.owlpb-author-name {
		font-size: 21px;
	}

	.owlpb-avatar-card {
		grid-area: avatar;
		width: fit-content;
		max-width: 115px;
		margin: 0;
	}


	.owlpb-profile-facts {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.owlpb-profile-bio-text {
		font-size: 12px;
	}

	.owlpb-author-info {
		grid-area: info;
		margin: 0;
		font-size: 11.5px;
	}

	.owlpb-online {
		grid-area: online;
		margin: 0;
		text-align: left;
	}

	.owlpb-posthead {
		padding: 13px 15px 11px;
	}

	.owlpb-tools {
		padding: 7px 9px;
		align-items: flex-start;
		flex-direction: column;
	}

	.owlpb-controls {
		width: 100%;
		margin-left: 0;
	}

	.owlpb-post .postbit_buttons {
		justify-content: flex-start;
	}

	.owlpb-meta {
		padding: 5px 15px;
	}

	.owlpb-body {
		padding: 25px 19px 29px !important;
		font-size: 15px !important;
		line-height: 1.78;
	}

	.owlpb-reactions,
	.owlpb-signature {
		padding-left: 15px;
		padding-right: 15px;
	}
}


/* =========================================================
   KLEINE SMARTPHONES
========================================================= */

@media (max-width: 480px) {

	.owlpb-author-sticky {
		display: block;
		padding: 14px;
	}

	.owlpb-author-head {
		text-align: center;
	}

	.owlpb-avatar-card {
		width: fit-content;
		max-width: 100%;
		margin: 14px auto;
	}


	.owlpb-profile-facts {
		grid-template-columns: 1fr;
	}

	.owlpb-profile-fact,
	.owlpb-profile-fact:nth-child(2n),
	.owlpb-profile-fact:nth-last-child(-n + 2) {
		border-right: 0;
		border-bottom: 1px solid var(--owlh-border-soft);
	}

	.owlpb-profile-fact:last-child {
		border-bottom: 0;
	}

	.owlpb-author-info {
		margin-top: 10px;
	}

	.owlpb-online {
		margin-top: 9px;
		text-align: center;
	}

	.owlpb-posthead-main {
		gap: 10px;
	}

	.owlpb-postdate {
		display: block;
	}

	.owlpb-wordcount {
		margin-top: 4px;
		display: block;
	}

	.owlpb-postnumber {
		font-size: 12px;
	}

	.owlpb-post .postbit_buttons > a:link,
	.owlpb-post .postbit_buttons > a:visited,
	.owlpb-post .postbit_buttons > a:hover,
	.owlpb-post .postbit_buttons > a:active {
		padding: 5px;
	}

	.owlpb-body {
		padding: 23px 16px 27px !important;
		font-size: 15px !important;
	}

	.owlpb-housepoints {
		padding: 14px;
	}

	.owlpb-housepoints-grid {
		grid-template-columns: 1fr 1fr;
		gap: 6px;
	}

	.owlpb-housepoint {
		padding: 10px 6px;
	}

	.owlpb-housepoint strong {
		font-size: 17px;
	}

	.owlpb-housepoints-head h2 {
		font-size: 20px;
	}
}
