:root {
    --bez-bg: #1f1f1f;
    --bez-item-bg: #2b2b2b;
    --bez-border: #3a3a3a;
    --bez-text: #757575;
    --bez-muted: #b5b5b5;
    --bez-accent: #4c8998;
    --bez-action: #5f9fb0;
    --bez-action-soft: #3f6f7c;
    --bez-gap: 12px;
--bg-color: #1f1f1f;
    --item-bg: #2b2b2b;
    --accent-color: #4c8998;   /* Hauptfarbe */
    --text-color: #ffffff;
    --text-muted: #aaaaaa;
    --padding: 12px;
    --action-color: #67a9b0;   /* harmonierende Action-Farbe */
    --action-hover: #8fc3c8;   /* Hover für Action */
}

.beziehungen-overview {
    background-color: var(--bg-color);
    color: var(--text-color);
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.beziehungen-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.beziehungen-header h1 {
    font-size: 1.8rem;
    margin: 0;
    color: var(--accent-color);
}

.beziehungen-add .button {
    background-color: var(--accent-color);
    color: var(--text-color);
    padding: 8px 16px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    font-weight: bold;
}

.beziehungen-add .button:hover {
    background-color: var(--action-hover);
}

.beziehungen-kategorie {
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 1.4rem;
    border-bottom: 1px solid #444;
    padding-bottom: 4px;
}

.beziehungen-liste {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.beziehung-item {
    background-color: var(--item-bg);
    padding: var(--padding);
    color: var(--text-color);
}

.beziehung-item strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 6px;
    color: var(--accent-color);
}

.beziehung-status {
    font-size: 0.95rem;
    font-weight: bold;
    margin-bottom: 6px;
    color: var(--action-color);
}

.beziehung-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    line-height: 1.4;
}

.beziehung-actions a {
    color: var(--action-color);
    text-decoration: none;
    font-size: 0.85rem;
    margin-right: 8px;
}

.beziehung-actions a:hover {
    color: var(--action-hover);
    text-decoration: underline;
}

.beziehungen-empty {
    text-align: center;
    font-size: 1rem;
    color: var(--text-muted);
    padding: 20px 0;
}

	/* ======================================================
   Vorschläge (Tab 3)
   ====================================================== */

/* Tabs selbst (fehlten bisher optisch) */
.beziehungen-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.beziehungen-tab {
    background: var(--item-bg);
    color: var(--text-muted);
    border: none;
    padding: 8px 14px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.2s, color 0.2s;
}

.beziehungen-tab:hover {
    color: var(--text-color);
}

.beziehungen-tab.active {
    background: var(--accent-color);
    color: var(--text-color);
}

/* Tab-Inhalte */
.beziehungen-tab-content {
    display: none;
}

.beziehungen-tab-content.active {
    display: block;
}

/* Vorschläge: dezente visuelle Abgrenzung */
#tab-suggestions .beziehung-item {
    border-left: 4px solid var(--accent-color);
}

/* Status „Vorschlag“ */
#tab-suggestions .beziehung-status {
    color: var(--text-muted);
    font-style: italic;
}

/* Platzhaltertext */
.beziehungen-placeholder {
    color: var(--text-muted);
    font-size: 0.95rem;
    padding: 20px 0;
    text-align: center;
}

.beziehungen-overview {
    background-color: var(--bg-color);
    color: var(--text-color);
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.beziehungen-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.beziehungen-header h1 {
    font-size: 1.8rem;
    margin: 0;
    color: var(--accent-color);
}

.beziehungen-add .button {
    background-color: var(--accent-color);
    color: var(--text-color);
    padding: 8px 16px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    font-weight: bold;
}

.beziehungen-add .button:hover {
    background-color: var(--action-hover);
}

.beziehungen-kategorie {
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 1.4rem;
    border-bottom: 1px solid #444;
    padding-bottom: 4px;
}

.beziehungen-liste {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.beziehung-item {
    background-color: var(--item-bg);
    padding: var(--padding);
    color: var(--text-color);
}

.beziehung-item strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 6px;
    color: var(--accent-color);
}

.beziehung-status {
    font-size: 0.95rem;
    font-weight: bold;
    margin-bottom: 6px;
    color: var(--action-color);
}

.beziehung-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    line-height: 1.4;
}

.beziehung-actions a {
    color: var(--action-color);
    text-decoration: none;
    font-size: 0.85rem;
    margin-right: 8px;
}

.beziehung-actions a:hover {
    color: var(--action-hover);
    text-decoration: underline;
}

.beziehungen-empty {
    text-align: center;
    font-size: 1rem;
    color: var(--text-muted);
    padding: 20px 0;
}

	/* ======================================================
   Vorschläge (Tab 3)
   ====================================================== */

/* Tabs selbst (fehlten bisher optisch) */
.beziehungen-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.beziehungen-tab {
    background: var(--item-bg);
    color: var(--text-muted);
    border: none;
    padding: 8px 14px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.2s, color 0.2s;
}

.beziehungen-tab:hover {
    color: var(--text-color);
}

.beziehungen-tab.active {
    background: var(--accent-color);
    color: var(--text-color);
}

/* Tab-Inhalte */
.beziehungen-tab-content {
    display: none;
}

.beziehungen-tab-content.active {
    display: block;
}

/* Vorschläge: dezente visuelle Abgrenzung */
#tab-suggestions .beziehung-item {
    border-left: 4px solid var(--accent-color);
}

/* Status „Vorschlag“ */
#tab-suggestions .beziehung-status {
    color: var(--text-muted);
    font-style: italic;
}

/* Platzhaltertext */
.beziehungen-placeholder {
    color: var(--text-muted);
    font-size: 0.95rem;
    padding: 20px 0;
    text-align: center;
}

/* Kategorie-Wrapper */
.beziehungen-profil-kategorie {
margin-bottom:20px;
	text-align:justify;
}

/* Kategorie-Überschrift */
.beziehungen-profil-title {
    font-size: 16px;
    font-weight: bold;
    color: var(--bez-accent);
    border-bottom: 1px solid var(--bez-border);
    padding-bottom: 6px;
    margin-bottom: 12px;
    text-transform: uppercase;
}

/* Liste */
.beziehungen-profil-liste {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--bez-gap);
}

.beziehung-item {
    width: 100%;
	background:var(--bez-bg);
	padding:10px;
	box-sizing:border-box;
	border-left: 4px solid var(--accent-color);
}

.beziehung-title {
    font-weight: 600;
    margin-bottom: 6px;
}

.beziehung-status {
    color: var(--accent);
    font-weight: normal;
}

.beziehung-text {
    line-height: 1.5;
	color:var(--bez-text);
}

.beziehung-bild {
    float: right;
    width: 90px;
    height: 90px;
    object-fit: cover;
    margin: 2px 0 6px 12px;
}

@media (max-width: 900px) {
    .beziehungen-profil-liste {
        grid-template-columns: 1fr;
    }
}

.beziehungen-tab-content {
    display: none;
}

.beziehungen-tab-content.active {
    display: block;
}

/* Gesamtcontainer */
/* Root-Variablen */
:root {
    --bez-bg: #1f1f1f;
    --bez-item-bg: #2b2b2b;
    --bez-border: #3a3a3a;

    --bez-text: #757575;
    --bez-muted: #b5b5b5;

    --bez-accent: #4c8998;
    --bez-action: #5f9fb0;
    --bez-action-soft: #3f6f7c;

    --bez-gap: 12px;
}

/* Container für den gesamten Thread */
.beziehungen-thread {
    margin: 20px 0;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: var(--bez-text);
    background: var(--bez-bg);
    padding: var(--bez-gap);
    border-radius: 10px;
}

/* Kategorie-Block */
.beziehungen-kategorie-block {
    margin-bottom: 30px;
}

.beziehungen-kategorie-block h4 {
    border-bottom: 2px solid var(--bez-accent);
    padding-bottom: 5px;
    margin-bottom: 15px;
    color: var(--bez-action);
    font-size: 1.2em;
    font-weight: bold;
}

/* Items-Container: flexibles Grid */
.beziehungen-items {
    display: flex;
    flex-wrap: wrap;
    gap: var(--bez-gap);
}

/* Einzel-Item */
.beziehung-item-thread {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--bez-item-bg);
    border: 1px solid var(--bez-border);
    border-radius: 10px;
    padding: 10px;
    box-sizing: border-box;
    text-align: center;
    flex: 1 1 calc(33.333% - var(--bez-gap));
    max-width: calc(33.333% - var(--bez-gap));
    transition: transform 0.2s, box-shadow 0.2s;
}



/* Bildblock */
.beziehung-item .beziehung-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 10px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--bez-accent);
}

.beziehung-item .beziehung-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Info-Bereich */
.beziehung-info {
    width: 100%;
}

.beziehung-name {
    font-weight: bold;
    color: var(--bez-accent);
    margin-bottom: 5px;
}

.beziehungsstatus {
    font-size: 0.9em;
    font-style: italic;
    color: var(--bez-action-soft);
    margin-bottom: 5px;
}

.beziehungsbeschreibung {
    font-size: 0.85em;
    color: var(--bez-muted);
	text-align:justify;
}

/* Responsive Anpassungen */
@media (max-width: 900px) {
    .beziehung-item {
        flex: 1 1 calc(50% - var(--bez-gap));
        max-width: calc(50% - var(--bez-gap));
    }
}

@media (max-width: 600px) {
    .beziehung-item {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

.bez-erlebnis {
    border-bottom: 1px solid #ddd;
    padding: 12px 0;
}

.bez-erlebnis-header {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 6px;
}

.bez-erlebnis-text {
    margin: 6px 0;
}

.bez-erlebnis-users {
    font-size: 0.85em;
    color: #555;
}

.bez-filter {
    margin: 15px 0;
}

.autocomplete-wrapper {
    position: relative;
}

.autocomplete-box {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    border: 1px solid #c0c0c0;
    background: #ffffff;
    z-index: 9999;
    max-height: 220px;
    overflow-y: auto;
}

.autocomplete-item {
    padding: 6px 10px;
    cursor: pointer;
}

.autocomplete-item:hover {
    background: #f2f2f2;
}
