/* =========================================================
   OWLWAYS — BEZIEHUNGEN
   Komplett neu aufgebaut für den hellen Editorial-Style.
   Ersetzt die bisherige beziehungen.css vollständig.
========================================================= */


/* =========================================================
   BASIS
========================================================= */

.beziehungen-overview,
.beziehungen-thread {
	width: 100%;
	box-sizing: border-box;
	color: var(--owlh-text);
	font-family: var(--owlh-font-body);
	font-size: 13px;
	line-height: 1.65;
}

.beziehungen-overview *,
.beziehungen-overview *::before,
.beziehungen-overview *::after,
.beziehungen-thread *,
.beziehungen-thread *::before,
.beziehungen-thread *::after,
.beziehungen-profil-kategorie *,
.beziehungen-profil-kategorie *::before,
.beziehungen-profil-kategorie *::after {
	box-sizing: border-box;
}

.beziehungen-overview a,
.beziehungen-thread a,
.beziehungen-profil-kategorie a {
	color: var(--owlh-accent);
	text-decoration: none;
}

.beziehungen-overview a:hover,
.beziehungen-thread a:hover,
.beziehungen-profil-kategorie a:hover {
	color: var(--owlh-accent-hover);
	text-decoration: none;
}


/* =========================================================
   ÜBERSICHT — HAUPTCONTAINER
========================================================= */

.beziehungen-overview {
	padding: 0;
	background: transparent;
}

.beziehungen-header {
	margin: 0 0 16px;
	padding: 20px 22px;

	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;

	background: var(--owlh-surface-raised);
	border: 1px solid var(--owlh-border-soft);
	box-shadow: 0 5px 16px var(--owlh-shadow);
}

.beziehungen-header h1 {
	position: relative;

	margin: 0;
	padding: 0 0 9px;

	color: var(--owlh-heading);

	font-family: var(--owlh-font-serif);
	font-size: 25px;
	font-weight: normal;
	font-style: italic;
	line-height: 1.15;
}

.beziehungen-header h1::after {
	content: "";

	position: absolute;
	left: 0;
	bottom: 0;

	width: 52px;
	height: 1px;

	background: var(--owlh-accent);
}

.beziehungen-add {
	flex: 0 0 auto;
}

.beziehungen-add .button {
	min-height: 34px;

	padding: 8px 12px !important;

	display: inline-flex;
	align-items: center;
	justify-content: center;

	background: var(--owlh-accent) !important;
	border: 1px solid var(--owlh-accent) !important;
	border-radius: var(--owlh-radius) !important;

	color: var(--owlh-hero-text) !important;

	font-family: var(--owlh-font-body);
	font-size: 9px !important;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: .08em;

	text-decoration: none !important;
	text-transform: uppercase;
}

.beziehungen-add .button:hover {
	background: var(--owlh-accent-hover) !important;
	border-color: var(--owlh-accent-hover) !important;

	color: var(--owlh-hero-text) !important;
}


/* =========================================================
   TABS
========================================================= */

.beziehungen-tabs {
	margin: 0 0 16px;
	padding: 6px;

	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 5px;

	background: var(--owlh-surface);
	border: 1px solid var(--owlh-border-soft);
}

.beziehungen-tab {
	min-height: 32px;

	padding: 7px 12px;

	background: transparent;
	border: 1px solid transparent;

	color: var(--owlh-text-muted);

	font-family: var(--owlh-font-body);
	font-size: 9px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: .07em;

	cursor: pointer;

	text-transform: uppercase;
}

.beziehungen-tab:hover {
	background: var(--owlh-surface-soft);
	border-color: var(--owlh-border-soft);

	color: var(--owlh-text);
}

.beziehungen-tab.active {
	background: var(--owlh-nav-bg);
	border-color: var(--owlh-nav-bg);

	color: var(--owlh-nav-text);
}

.beziehungen-tab-content {
	display: none;
}

.beziehungen-tab-content.active {
	display: block;
}


/* =========================================================
   KATEGORIEN IN DER ÜBERSICHT
========================================================= */

.beziehungen-kategorie {
	position: relative;

	margin: 24px 0 11px;
	padding: 0 0 9px;

	border-bottom: 1px solid var(--owlh-border-soft);

	color: var(--owlh-heading);

	font-family: var(--owlh-font-serif);
	font-size: 18px;
	font-weight: normal;
	font-style: italic;
	line-height: 1.2;
}

.beziehungen-kategorie::after {
	content: "";

	position: absolute;
	left: 0;
	bottom: -1px;

	width: 44px;
	height: 1px;

	background: var(--owlh-accent);
}

.beziehungen-liste {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}


/* =========================================================
   BEZIEHUNGSKARTEN — ÜBERSICHT / PROFIL
========================================================= */

.beziehung-item {
	position: relative;

	width: 100%;
	min-width: 0;

	padding: 14px 15px 13px;

	overflow: hidden;

	background: var(--owlh-surface-raised);
	border: 1px solid var(--owlh-border-soft);
	border-left: 3px solid var(--owlh-accent);

	color: var(--owlh-text);
}

.beziehung-item::after {
	content: "";

	position: absolute;
	right: -18px;
	bottom: -28px;

	width: 76px;
	height: 76px;

	transform: rotate(45deg);

	background: var(--owlh-accent-soft);
	opacity: .18;

	pointer-events: none;
}

.beziehung-item > strong,
.beziehung-title {
	position: relative;
	z-index: 1;

	display: block;

	margin: 0 0 6px;

	color: var(--owlh-heading);

	font-family: var(--owlh-font-serif);
	font-size: 15px;
	font-weight: normal;
	line-height: 1.3;
}

.beziehung-status {
	position: relative;
	z-index: 1;

	margin: 0 0 7px;

	color: var(--owlh-accent);

	font-size: 8px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: .08em;

	text-transform: uppercase;
}

.beziehung-text {
	position: relative;
	z-index: 1;

	margin: 0 0 9px;

	color: var(--owlh-text-soft);

	font-size: 12px;
	line-height: 1.65;

	text-align: left;
}

.beziehung-actions {
	position: relative;
	z-index: 1;

	margin-top: 10px;
	padding-top: 9px;

	display: flex;
	flex-wrap: wrap;
	gap: 5px 11px;

	border-top: 1px solid var(--owlh-border-soft);
}

.beziehung-actions a {
	color: var(--owlh-text-muted);

	font-size: 8px;
	font-weight: 700;
	letter-spacing: .06em;

	text-transform: uppercase;
}

.beziehung-actions a:hover {
	color: var(--owlh-accent);
}


/* =========================================================
   VORSCHLÄGE
========================================================= */

#tab-suggestions .beziehung-item {
	border-left-color: var(--owlh-gold);
}

#tab-suggestions .beziehung-item::after {
	background: var(--owlh-gold);
}

#tab-suggestions .beziehung-status {
	color: var(--owlh-text-muted);
	font-style: italic;
}

.beziehungen-empty,
.beziehungen-placeholder {
	margin: 0;
	padding: 24px 18px;

	background: var(--owlh-surface);
	border: 1px dashed var(--owlh-border);

	color: var(--owlh-text-muted);

	font-family: var(--owlh-font-serif);
	font-size: 13px;
	font-style: italic;
	line-height: 1.5;

	text-align: center;
}


/* =========================================================
   PROFIL — KATEGORIEN
========================================================= */

.beziehungen-profil-kategorie {
	margin: 0 0 22px;
	color: var(--owlh-text);
	text-align: left;
}

.beziehungen-profil-title {
	position: relative;

	margin: 0 0 11px;
	padding: 0 0 8px;

	border-bottom: 1px solid var(--owlh-border-soft);

	color: var(--owlh-heading);

	font-family: var(--owlh-font-serif);
	font-size: 17px;
	font-weight: normal;
	font-style: italic;
	line-height: 1.2;

	text-transform: none;
}

.beziehungen-profil-title::after {
	content: "";

	position: absolute;
	left: 0;
	bottom: -1px;

	width: 42px;
	height: 1px;

	background: var(--owlh-accent);
}

.beziehungen-profil-liste {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 9px;
}


/* Profilbild innerhalb einer Beziehung */

.beziehung-bild {
	width: 74px;
	height: 74px;

	margin: 1px 0 7px 12px;

	float: right;

	object-fit: cover;
	object-position: center;

	border: 1px solid var(--owlh-border);
	background: var(--owlh-surface-soft);

	filter: saturate(.88) contrast(.96);
}


/* =========================================================
   THREADANSICHT — BEZIEHUNGSÜBERSICHT
========================================================= */

.beziehungen-thread {
	margin: 20px 0;
	padding: 18px;

	background: var(--owlh-surface);
	border: 1px solid var(--owlh-border-soft);
	box-shadow: 0 5px 16px var(--owlh-shadow);
}

.beziehungen-kategorie-block {
	margin: 0 0 24px;
}

.beziehungen-kategorie-block:last-child {
	margin-bottom: 0;
}

.beziehungen-kategorie-block h4 {
	position: relative;

	margin: 0 0 13px;
	padding: 0 0 9px;

	border: 0;
	border-bottom: 1px solid var(--owlh-border-soft);

	color: var(--owlh-heading);

	font-family: var(--owlh-font-serif);
	font-size: 17px;
	font-weight: normal;
	font-style: italic;
	line-height: 1.2;
}

.beziehungen-kategorie-block h4::after {
	content: "";

	position: absolute;
	left: 0;
	bottom: -1px;

	width: 42px;
	height: 1px;

	background: var(--owlh-accent);
}

.beziehungen-items {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
}


/* =========================================================
   THREADANSICHT — EINZELNE PERSON
========================================================= */

.beziehung-item-thread {
	position: relative;

	min-width: 0;
	min-height: 215px;

	padding: 17px 14px 15px;

	display: flex;
	align-items: center;
	flex-direction: column;

	overflow: hidden;

	background: var(--owlh-surface-raised);
	border: 1px solid var(--owlh-border-soft);

	color: var(--owlh-text);

	text-align: center;
}

.beziehung-item-thread::before {
	content: "";

	position: absolute;
	left: 0;
	top: 0;
	right: 0;

	height: 3px;

	background: var(--owlh-accent);
}

.beziehung-item-thread::after {
	content: "";

	position: absolute;
	right: -24px;
	bottom: -34px;

	width: 92px;
	height: 92px;

	transform: rotate(45deg);

	background: var(--owlh-accent-soft);
	opacity: .16;

	pointer-events: none;
}


/* Avatar/Icon */

.beziehung-icon {
	position: relative;
	z-index: 1;

	width: 78px;
	height: 78px;

	margin: 0 auto 11px;

	flex: 0 0 auto;

	overflow: hidden;

	background: var(--owlh-surface-soft);
	border: 1px solid var(--owlh-border-strong);
	border-radius: 50%;
}

.beziehung-icon img {
	width: 100%;
	height: 100%;

	display: block;

	object-fit: cover;
	object-position: center;
}


/* Info */

.beziehung-info {
	position: relative;
	z-index: 1;

	width: 100%;
	min-width: 0;
}

.beziehung-name {
	margin: 0 0 4px;

	color: var(--owlh-heading);

	font-family: var(--owlh-font-serif);
	font-size: 15px;
	font-weight: normal;
	line-height: 1.25;
}

.beziehung-name a {
	color: var(--owlh-heading);
}

.beziehung-name a:hover {
	color: var(--owlh-accent);
}

.beziehungsstatus {
	margin: 0 0 7px;

	color: var(--owlh-accent);

	font-size: 8px;
	font-weight: 700;
	font-style: normal;
	line-height: 1.3;
	letter-spacing: .08em;

	text-transform: uppercase;
}

.beziehungsbeschreibung {
	color: var(--owlh-text-soft);

	font-size: 11.5px;
	line-height: 1.6;

	text-align: left;
}


/* =========================================================
   ERLEBNISSE / GEMEINSAME MOMENTE
========================================================= */

.bez-erlebnis {
	margin: 0;
	padding: 13px 0;

	border: 0;
	border-bottom: 1px solid var(--owlh-border-soft);

	color: var(--owlh-text);
}

.bez-erlebnis:last-child {
	border-bottom: 0;
}

.bez-erlebnis-header {
	margin: 0 0 6px;

	color: var(--owlh-text-muted);

	font-size: 8px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: .08em;

	text-transform: uppercase;
}

.bez-erlebnis-text {
	margin: 6px 0;

	color: var(--owlh-text-soft);

	font-size: 12px;
	line-height: 1.65;
}

.bez-erlebnis-users {
	margin-top: 6px;

	color: var(--owlh-text-muted);

	font-size: 10px;
	line-height: 1.5;
}

.bez-erlebnis-users a {
	color: var(--owlh-accent);
}


/* =========================================================
   FILTER / FORMULARE
========================================================= */

.bez-filter {
	margin: 15px 0;
	padding: 12px;

	background: var(--owlh-surface-soft);
	border: 1px solid var(--owlh-border-soft);
}

.bez-filter input[type="text"],
.bez-filter input[type="search"],
.bez-filter select,
.beziehungen-overview input[type="text"],
.beziehungen-overview input[type="search"],
.beziehungen-overview select,
.beziehungen-thread input[type="text"],
.beziehungen-thread input[type="search"],
.beziehungen-thread select {
	min-height: 34px;

	padding: 6px 9px;

	background: var(--owlh-surface-raised);
	border: 1px solid var(--owlh-border);

	color: var(--owlh-text);

	font-family: var(--owlh-font-body);
	font-size: 12px;

	outline: 0;
}

.bez-filter textarea,
.beziehungen-overview textarea,
.beziehungen-thread textarea {
	width: 100%;
	min-height: 90px;

	padding: 8px 9px;

	background: var(--owlh-surface-raised);
	border: 1px solid var(--owlh-border);

	color: var(--owlh-text);

	font-family: var(--owlh-font-body);
	font-size: 12px;
	line-height: 1.55;

	resize: vertical;
	outline: 0;
}

.bez-filter input:focus,
.bez-filter select:focus,
.bez-filter textarea:focus,
.beziehungen-overview input:focus,
.beziehungen-overview select:focus,
.beziehungen-overview textarea:focus,
.beziehungen-thread input:focus,
.beziehungen-thread select:focus,
.beziehungen-thread textarea:focus {
	border-color: var(--owlh-accent);
}


/* allgemeine Buttons innerhalb des Plugins */

.beziehungen-overview .button,
.beziehungen-thread .button,
.bez-filter .button {
	min-height: 32px;

	padding: 7px 10px !important;

	background: var(--owlh-surface-soft) !important;
	border: 1px solid var(--owlh-border) !important;
	border-radius: var(--owlh-radius) !important;

	color: var(--owlh-text-soft) !important;

	font-family: var(--owlh-font-body);
	font-size: 9px !important;
	font-weight: 700;
	letter-spacing: .06em;

	text-transform: uppercase;
}

.beziehungen-overview .button:hover,
.beziehungen-thread .button:hover,
.bez-filter .button:hover {
	background: var(--owlh-accent-soft) !important;
	border-color: var(--owlh-border-strong) !important;

	color: var(--owlh-accent-hover) !important;
}


/* =========================================================
   AUTOCOMPLETE
========================================================= */

.autocomplete-wrapper {
	position: relative;
}

.autocomplete-box {
	position: absolute;
	z-index: 9999;

	left: 0;
	right: 0;
	top: calc(100% + 3px);

	max-height: 220px;

	overflow-y: auto;
	overflow-x: hidden;

	background: var(--owlh-surface-raised);
	border: 1px solid var(--owlh-border);
	box-shadow: 0 8px 20px var(--owlh-shadow-deep);

	color: var(--owlh-text);

	scrollbar-width: thin;
	scrollbar-color: var(--owlh-scroll-thumb) var(--owlh-scroll-track);
}

.autocomplete-box::-webkit-scrollbar {
	width: 5px;
}

.autocomplete-box::-webkit-scrollbar-track {
	background: var(--owlh-scroll-track);
}

.autocomplete-box::-webkit-scrollbar-thumb {
	background: var(--owlh-scroll-thumb);
}

.autocomplete-item {
	padding: 8px 10px;

	border-bottom: 1px solid var(--owlh-border-soft);

	color: var(--owlh-text-soft);

	font-size: 11px;
	line-height: 1.4;

	cursor: pointer;
}

.autocomplete-item:last-child {
	border-bottom: 0;
}

.autocomplete-item:hover,
.autocomplete-item.active {
	background: var(--owlh-accent-soft);
	color: var(--owlh-accent-hover);
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {

	.beziehungen-liste,
	.beziehungen-profil-liste {
		grid-template-columns: 1fr;
	}

	.beziehungen-items {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {

	.beziehungen-header {
		align-items: flex-start;
		flex-direction: column;

		padding: 17px;
	}

	.beziehungen-header h1 {
		font-size: 22px;
	}

	.beziehungen-tabs {
		align-items: stretch;
		flex-direction: column;
	}

	.beziehungen-tab {
		width: 100%;
		text-align: left;
	}

	.beziehungen-thread {
		padding: 13px;
	}

	.beziehungen-items {
		grid-template-columns: 1fr;
	}

	.beziehung-item-thread {
		min-height: 0;
		padding: 15px;

		display: grid;
		grid-template-columns: 68px minmax(0, 1fr);
		align-items: start;
		gap: 12px;

		text-align: left;
	}

	.beziehung-icon {
		width: 64px;
		height: 64px;

		margin: 0;
	}

	.beziehung-name {
		font-size: 14px;
	}

	.beziehung-bild {
		width: 64px;
		height: 64px;
	}

}


/* =========================================================
   KLEINE SMARTPHONES
========================================================= */

@media (max-width: 460px) {

	.beziehungen-header {
		padding: 15px;
	}

	.beziehungen-add,
	.beziehungen-add .button {
		width: 100%;
	}

	.beziehung-item {
		padding: 12px;
	}

	.beziehung-item-thread {
		grid-template-columns: 54px minmax(0, 1fr);
		gap: 10px;
	}

	.beziehung-icon {
		width: 50px;
		height: 50px;
	}

	.beziehung-bild {
		width: 56px;
		height: 56px;
		margin-left: 9px;
	}

}
