/*-------------------------------------------------------+
| memberprofile – Frontend Styles
| Author: KrazzFM Development
+--------------------------------------------------------*/

/* ── Wrapper ─────────────────────────────────────────── */
.mp-wrapper {
    max-width: 960px;
    margin: 30px auto;
    padding: 0 15px;
    font-size: 15px;
}

/* ════════════════════════════════════════════════════════
   PROFIL-HEADER
════════════════════════════════════════════════════════ */

.mp-profile-header {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,.12);
    margin-bottom: 28px;
    background: #fff;
    border: 1px solid #e9ecef;
}

/* ── Banner ──────────────────────────────────────────── */
.mp-banner {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
}
.mp-banner-placeholder {
    width: 100%;
    height: 240px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* ── Header Body ─────────────────────────────────────── */
.mp-header-body {
    padding: 0 32px 28px;
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 0 24px;
    position: relative;
}

/* ── Avatar ──────────────────────────────────────────── */
.mp-avatar-wrap {
    margin-top: -52px;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}
.mp-avatar {
    width: 104px;
    height: 104px;
    border-radius: 50%;
    border: 4px solid #fff;
    object-fit: cover;
    box-shadow: 0 4px 16px rgba(0,0,0,.18);
    display: block;
}
.mp-avatar-placeholder {
    width: 104px;
    height: 104px;
    border-radius: 50%;
    border: 4px solid #fff;
    background: #dee2e6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: #adb5bd;
    box-shadow: 0 4px 16px rgba(0,0,0,.18);
}

/* ── Header Info ─────────────────────────────────────── */
.mp-header-info {
    flex: 1;
    min-width: 0;
    padding-top: 16px;
}

.mp-username {
    font-size: 28px;
    font-weight: 700;
    color: #212529;
    margin: 0 0 4px;
    letter-spacing: -.3px;
    line-height: 1.2;
}

.mp-tagline {
    font-size: 15px;
    color: #6c757d;
    margin: 0 0 12px;
    font-style: italic;
}

/* ── Meta-Zeile ──────────────────────────────────────── */
.mp-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 20px;
    font-size: 13px;
    color: #6c757d;
    margin-bottom: 12px;
}
.mp-meta-row span {
    display: flex;
    align-items: center;
    gap: 5px;
}
.mp-meta-row span i {
    color: #007bff;
    font-size: 13px;
    width: 14px;
    text-align: center;
}

/* ── Header Actions ──────────────────────────────────── */
.mp-header-actions {
    padding-top: 18px;
    flex-shrink: 0;
}

/* ── Badges ──────────────────────────────────────────── */
.mp-badges-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}
.mp-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    background: #f8f9fa;
    border: 1.5px solid #dee2e6;
    color: #495057;
    white-space: nowrap;
}

/* ── Social Links ────────────────────────────────────── */
.mp-social-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}
.mp-social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 15px;
    text-decoration: none;
    transition: transform .15s, box-shadow .15s;
    box-shadow: 0 2px 6px rgba(0,0,0,.15);
}
.mp-social-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,.2);
    color: #fff;
    text-decoration: none;
}

/* ════════════════════════════════════════════════════════
   NAVIGATIONS-TABS
════════════════════════════════════════════════════════ */

.nav-tabs {
    border-bottom: none;
    margin-bottom: 20px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.nav-tabs .nav-link {
    color: #6c757d;
    border: 1.5px solid #dee2e6;
    border-radius: 8px;
    padding: 9px 14px;
    font-weight: 500;
    font-size: 16px;
    background: #f8f9fa;
    transition: color .15s, background .15s, border-color .15s, box-shadow .15s;
    white-space: nowrap;
    position: relative;
}
.nav-tabs .nav-link::after {
    content: attr(title);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #343a40;
    color: #fff;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity .15s;
    z-index: 100;
}
.nav-tabs .nav-link:hover::after {
    opacity: 1;
}
.nav-tabs .nav-link:hover {
    color: #007bff;
    background: #eef4ff;
    border-color: #b8d4ff;
    text-decoration: none;
}
.nav-tabs .nav-link.active {
    color: #fff;
    background: #007bff;
    border-color: #007bff;
    font-weight: 600;
    box-shadow: 0 3px 10px rgba(0,123,255,.3);
}
.nav-tabs .nav-link.active .badge {
    background: rgba(255,255,255,.3);
    color: #fff;
}
.nav-tabs .nav-link i {
    margin-right: 7px;
}

/* ════════════════════════════════════════════════════════
   CONTENT-CARDS
════════════════════════════════════════════════════════ */

.card {
    border: 1px solid #e9ecef;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.card-body {
    padding: 24px;
}
.card-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: #007bff;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}
.card-title i {
    margin-right: 6px;
}

.mp-about-text {
    font-size: 15px;
    line-height: 1.75;
    color: #495057;
}

/* ════════════════════════════════════════════════════════
   MITGLIEDER-LISTE
════════════════════════════════════════════════════════ */

.mp-member-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
}
.mp-member-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 24px 16px 20px;
    text-align: center;
    text-decoration: none;
    color: #212529;
    display: block;
    transition: transform .2s, box-shadow .2s, border-color .2s;
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
.mp-member-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,123,255,.12);
    border-color: #007bff;
    text-decoration: none;
    color: #212529;
}
.mp-member-card .mp-avatar,
.mp-member-card .mp-avatar-placeholder {
    width: 72px;
    height: 72px;
    font-size: 24px;
    margin: 0 auto 14px;
    border-width: 3px;
}
.mp-member-card-name {
    font-weight: 600;
    font-size: 14px;
    color: #212529;
    margin-bottom: 5px;
}
.mp-member-card-tagline {
    font-size: 13px;
    color: #6c757d;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-style: italic;
}
.mp-member-card-badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 10px;
}
.mp-member-card-badges .mp-badge {
    padding: 2px 8px;
    font-size: 12px;
}

/* ════════════════════════════════════════════════════════
   GALERIE
════════════════════════════════════════════════════════ */

.mp-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}
.mp-gallery-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    background: #f0f0f0;
}
.mp-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s;
}
.mp-gallery-item:hover img {
    transform: scale(1.06);
}
.mp-gallery-caption {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,.65));
    color: #fff;
    font-size: 13px;
    padding: 16px 8px 7px;
    transform: translateY(100%);
    transition: transform .2s;
}
.mp-gallery-item:hover .mp-gallery-caption {
    transform: translateY(0);
}
.mp-gallery-delete {
    position: absolute;
    top: 6px; right: 6px;
    background: rgba(220,53,69,.88);
    color: #fff;
    border-radius: 50%;
    width: 26px; height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    text-decoration: none;
    opacity: 0;
    transition: opacity .2s;
}
.mp-gallery-item:hover .mp-gallery-delete {
    opacity: 1;
}
.mp-gallery-delete:hover {
    background: #dc3545;
    color: #fff;
}
.mp-gallery-edit {
    position: absolute;
    top: 6px; right: 38px;
    background: rgba(0,123,255,.88);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 26px; height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    cursor: pointer;
    opacity: 0;
    transition: opacity .2s;
    padding: 0;
}
.mp-gallery-item:hover .mp-gallery-edit {
    opacity: 1;
}
.mp-gallery-edit:hover {
    background: #0056b3;
}
.mp-caption-form {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: rgba(0,0,0,.75);
    padding: 8px;
    z-index: 10;
}
.mp-caption-form .btn-xs {
    padding: 2px 8px;
    font-size: 12px;
}

/* ── Upload-Box ──────────────────────────────────────── */
.mp-upload-box {
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 28px 20px;
    text-align: center;
    color: #6c757d;
    margin-top: 20px;
    transition: border-color .2s, background .2s;
}
.mp-upload-box:hover {
    border-color: #007bff;
    background: #f8f9ff;
}
.mp-upload-box i {
    color: #007bff;
    display: block;
    margin-bottom: 10px;
}
.mp-upload-box p {
    margin-bottom: 12px;
    font-size: 14px;
}

/* ════════════════════════════════════════════════════════
   PINNWAND
════════════════════════════════════════════════════════ */

.mp-wall-entry {
    display: flex;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
}
.mp-wall-entry:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.mp-wall-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #e9ecef;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #adb5bd;
    font-size: 18px;
    overflow: hidden;
}
.mp-wall-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.mp-wall-body {
    flex: 1;
    min-width: 0;
}
.mp-wall-meta {
    font-size: 13px;
    color: #adb5bd;
    margin-bottom: 6px;
}
.mp-wall-meta a {
    font-weight: 600;
    color: #495057;
    text-decoration: none;
}
.mp-wall-meta a:hover {
    color: #007bff;
    text-decoration: none;
}
.mp-wall-message {
    font-size: 15px;
    color: #495057;
    line-height: 1.6;
}

/* ════════════════════════════════════════════════════════
   BEARBEITUNGSFORMULAR
════════════════════════════════════════════════════════ */

.mp-form-section-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: #007bff;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 8px;
    margin: 28px 0 18px;
}
.mp-form-section-title:first-child {
    margin-top: 0;
}
.mp-form-section-title i {
    margin-right: 6px;
}

.mp-current-img {
    margin-bottom: 12px;
}
.mp-current-img img {
    border-radius: 8px;
    border: 2px solid #e9ecef;
}

/* ════════════════════════════════════════════════════════
   LEER-ZUSTÄNDE & CTA
════════════════════════════════════════════════════════ */

.mp-empty {
    text-align: center;
    padding: 48px 20px;
    color: #adb5bd;
}
.mp-empty i {
    display: block;
    margin-bottom: 14px;
    color: #dee2e6;
}
.mp-empty p {
    margin: 0;
    font-size: 14px;
}

.mp-create-cta {
    text-align: center;
    padding: 56px 24px;
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 12px;
    margin-top: 28px;
}
.mp-create-cta i {
    display: block;
    color: #007bff;
    margin-bottom: 16px;
}
.mp-create-cta h3 {
    font-weight: 700;
    color: #212529;
    margin-bottom: 8px;
}
.mp-create-cta p {
    color: #6c757d;
    margin-bottom: 20px;
    font-size: 15px;
}

/* ════════════════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════════════════ */

@media (max-width: 576px) {
    .mp-wrapper {
        margin: 16px auto;
    }
    .mp-header-body {
        padding: 0 16px 20px;
    }
    .mp-avatar-wrap {
        margin-top: -44px;
    }
    .mp-avatar,
    .mp-avatar-placeholder {
        width: 84px;
        height: 84px;
    }
    .mp-username {
        font-size: 22px;
    }
    .mp-header-actions {
        width: 100%;
        padding-top: 0;
        margin-top: 8px;
    }
    .mp-banner,
    .mp-banner-placeholder {
        height: 160px;
    }
    .mp-member-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ════════════════════════════════════════════════════════
   AKTIVITÄTEN-FEED
════════════════════════════════════════════════════════ */

/* ── Post Header ─────────────────────────────────────── */
.mp-feed-post-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}
.mp-feed-post-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}
.mp-feed-post-meta strong {
    font-size: 15px;
    color: #212529;
}
.mp-feed-post-meta span {
    font-size: 13px;
    color: #adb5bd;
}
.mp-feed-delete {
    font-size: 14px;
    opacity: .5;
    transition: opacity .15s;
    text-decoration: none;
}
.mp-feed-delete:hover {
    opacity: 1;
    text-decoration: none;
}

/* ── Post Text & Bild ────────────────────────────────── */
.mp-feed-post-text {
    font-size: 15px;
    color: #212529;
    line-height: 1.65;
    margin-bottom: 12px;
}
.mp-feed-post-img {
    margin-bottom: 12px;
    border-radius: 8px;
    overflow: hidden;
}
.mp-feed-post-img img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    display: block;
    cursor: pointer;
    transition: opacity .2s;
}
.mp-feed-post-img img:hover {
    opacity: .92;
}

/* ── Like & Kommentar-Leiste ─────────────────────────── */
.mp-feed-actions {
    display: flex;
    gap: 16px;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
    margin-bottom: 0;
}
.mp-like-btn,
.mp-comment-toggle-btn {
    background: none;
    border: none;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 14px;
    color: #6c757d;
    cursor: pointer;
    transition: background .15s, color .15s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.mp-like-btn:hover,
.mp-comment-toggle-btn:hover {
    background: #f0f0f0;
    color: #212529;
    text-decoration: none;
}
.mp-like-btn.active {
    color: #e0245e;
}
.mp-like-btn.active i {
    animation: mp-like-pop .2s ease;
}
.mp-like-count {
    font-size: 14px;
    color: #adb5bd;
    padding: 4px 10px;
}
@keyframes mp-like-pop {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.4); }
    100% { transform: scale(1); }
}

/* ── Kommentare ──────────────────────────────────────── */
.mp-comments {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}
.mp-comment {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}
.mp-comment-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e9ecef;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #adb5bd;
    font-size: 14px;
    overflow: hidden;
}
.mp-comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.mp-comment-body {
    flex: 1;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 14px;
}
.mp-comment-body strong {
    color: #212529;
    margin-right: 4px;
}
.mp-comment-text {
    color: #495057;
}
.mp-comment-meta {
    font-size: 12px;
    color: #adb5bd;
    margin-top: 4px;
}
.mp-comment-meta a {
    color: #dc3545;
    text-decoration: none;
}

/* ── Kommentar-Eingabe ───────────────────────────────── */
.mp-comment-form {
    margin-top: 10px;
}
.mp-comment-input-row {
    display: flex;
    gap: 8px;
}
.mp-comment-input-row .form-control {
    flex: 1;
    font-size: 14px;
}

/* ── Bild-Upload im Feed ─────────────────────────────── */
.mp-feed-img-label {
    cursor: pointer;
    color: #6c757d;
    font-size: 15px;
    transition: color .15s;
    padding: 4px 8px;
    border-radius: 6px;
}
.mp-feed-img-label:hover {
    background: #f0f0f0;
    color: #007bff;
}

/* ════════════════════════════════════════════════════════
   FREUNDSCHAFTSSYSTEM
════════════════════════════════════════════════════════ */

/* ── Gemeinsame Freunde (unter Header) ───────────────── */
.mp-common-friends {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 32px 14px;
    flex-wrap: wrap;
}
.mp-common-label {
    font-size: 13px;
    color: #6c757d;
    white-space: nowrap;
}
.mp-common-friend-link {
    display: inline-block;
}
.mp-common-friend-link img,
.mp-common-friend-link i {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid #fff;
    margin-left: -6px;
    object-fit: cover;
    box-shadow: 0 1px 4px rgba(0,0,0,.15);
    display: block;
}
.mp-common-friend-link:first-of-type img,
.mp-common-friend-link:first-of-type i {
    margin-left: 0;
}

/* ── Freunde-Grid ────────────────────────────────────── */
.mp-friends-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 16px;
}
.mp-friend-card {
    text-align: center;
    position: relative;
}
.mp-friend-card .mp-avatar,
.mp-friend-card .mp-avatar-placeholder {
    width: 64px;
    height: 64px;
    font-size: 22px;
    margin: 0 auto 8px;
    border-width: 2px;
}
.mp-friend-name {
    font-size: 13px;
    font-weight: 600;
    color: #212529;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.mp-friend-remove {
    position: absolute;
    top: 0; right: 0;
    width: 20px; height: 20px;
    border-radius: 50%;
    background: rgba(220,53,69,.8);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    text-decoration: none;
    opacity: 0;
    transition: opacity .2s;
}
.mp-friend-card:hover .mp-friend-remove {
    opacity: 1;
}
.mp-friend-actions {
    margin-top: 6px;
    display: flex;
    justify-content: center;
    gap: 4px;
}
.btn-xs {
    padding: 2px 8px;
    font-size: 12px;
    border-radius: 4px;
}

/* ── Freund-Button in Mitgliederliste ────────────────── */
.mp-member-card {
    position: relative;
}
.mp-member-card-friend {
    margin-top: 10px;
}
.mp-member-card-friend .btn {
    width: 100%;
    font-size: 13px;
}

/* ════════════════════════════════════════════════════════
   DIREKTNACHRICHTEN – CHAT
════════════════════════════════════════════════════════ */

.mp-chat-layout {
    display: flex;
    height: 540px;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
}

/* ── Sidebar ─────────────────────────────────────────── */
.mp-chat-sidebar {
    width: 280px;
    flex-shrink: 0;
    border-right: 1px solid #e9ecef;
    display: flex;
    flex-direction: column;
    background: #f8f9fa;
}
.mp-chat-sidebar-header {
    padding: 14px 16px;
    font-weight: 700;
    font-size: 15px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.mp-new-chat-btn {
    background: none;
    border: none;
    color: #007bff;
    font-size: 18px;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 6px;
    transition: background .15s;
}
.mp-new-chat-btn:hover { background: #e9ecef; }

#mp-conv-list {
    flex: 1;
    overflow-y: auto;
}
.mp-conv-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    cursor: pointer;
    transition: background .15s;
    border-bottom: 1px solid #f0f0f0;
}
.mp-conv-item:hover { background: #eef4ff; }
.mp-conv-item.active { background: #e3efff; }
.mp-conv-unread-item { background: #fff8e1; }
.mp-conv-avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: #dee2e6;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #adb5bd;
    font-size: 16px;
    overflow: hidden;
}
.mp-conv-avatar img { width: 100%; height: 100%; object-fit: cover; }
.mp-conv-info { flex: 1; min-width: 0; }
.mp-conv-name {
    font-weight: 600;
    font-size: 14px;
    color: #212529;
    display: flex;
    align-items: center;
    gap: 6px;
}
.mp-conv-unread {
    background: #dc3545;
    color: #fff;
    border-radius: 10px;
    padding: 1px 6px;
    font-size: 11px;
    font-weight: 700;
}
.mp-conv-preview {
    font-size: 13px;
    color: #6c757d;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mp-conv-time {
    font-size: 12px;
    color: #adb5bd;
    flex-shrink: 0;
}
.mp-chat-empty {
    text-align: center;
    padding: 40px 16px;
    color: #adb5bd;
}
.mp-chat-empty i { font-size: 32px; display: block; margin-bottom: 10px; }
.mp-chat-empty p { font-size: 14px; margin: 0; }

/* ── Chat-Fenster ────────────────────────────────────── */
.mp-chat-window {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.mp-chat-placeholder {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #adb5bd;
}
.mp-chat-placeholder i { font-size: 48px; margin-bottom: 16px; }
.mp-chat-placeholder p { font-size: 15px; }

.mp-chat-header {
    padding: 12px 16px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
}
.mp-chat-header-avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: #dee2e6;
    display: flex; align-items: center; justify-content: center;
    color: #adb5bd; font-size: 14px;
    overflow: hidden; flex-shrink: 0;
}
.mp-chat-header-avatar img { width: 100%; height: 100%; object-fit: cover; }
.mp-chat-header-name { font-weight: 600; font-size: 15px; flex: 1; }
.mp-chat-delete-btn {
    background: none; border: none;
    color: #adb5bd; font-size: 15px;
    cursor: pointer; padding: 4px 8px;
    border-radius: 6px; transition: color .15s, background .15s;
}
.mp-chat-delete-btn:hover { color: #dc3545; background: #fff0f0; }

.mp-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: #f8f9fa;
}
.mp-chat-date-sep {
    text-align: center;
    font-size: 12px;
    color: #adb5bd;
    margin: 10px 0 6px;
    position: relative;
}
.mp-chat-date-sep::before, .mp-chat-date-sep::after {
    content: '';
    position: absolute;
    top: 50%; width: 28%; height: 1px;
    background: #dee2e6;
}
.mp-chat-date-sep::before { left: 0; }
.mp-chat-date-sep::after { right: 0; }

.mp-chat-msg {
    display: flex;
    margin-bottom: 2px;
}
.mp-chat-msg-in  { justify-content: flex-start; }
.mp-chat-msg-out { justify-content: flex-end; }

.mp-chat-username {
    font-size: 12px;
    font-weight: 700;
    color: #495057;
    margin-bottom: 4px;
    display: block;
}
.mp-chat-msg-out .mp-chat-username {
    color: rgba(255,255,255,.8);
}

.mp-chat-bubble {
    max-width: 72%;
    padding: 8px 12px;
    border-radius: 16px;
    font-size: 15px;
    line-height: 1.5;
    position: relative;
    word-break: break-word;
}
.mp-chat-msg-in  .mp-chat-username {
    font-size: 12px;
    font-weight: 700;
    color: #495057;
    margin-bottom: 4px;
    display: block;
}
.mp-chat-msg-out .mp-chat-username {
    color: rgba(255,255,255,.8);
}

.mp-chat-msg-in .mp-chat-bubble {
    background: #e8f5e9;
    border: 1px solid #c8e6c9;
    border-bottom-left-radius: 4px;
    color: #1b5e20;
}
.mp-chat-msg-out .mp-chat-username {
    font-size: 12px;
    font-weight: 700;
    color: #495057;
    margin-bottom: 4px;
    display: block;
}
.mp-chat-msg-out .mp-chat-username {
    color: rgba(255,255,255,.8);
}

.mp-chat-msg-out .mp-chat-bubble {
    background: #1976d2;
    color: #fff;
    border-bottom-right-radius: 4px;
}
.mp-chat-msg-out .mp-chat-time {
    color: rgba(255,255,255,.7);
}
.mp-chat-msg-in .mp-chat-time {
    color: #66bb6a;
}
.mp-chat-time {
    display: block;
    font-size: 11px;
    margin-top: 3px;
    opacity: .65;
    text-align: right;
}

.mp-chat-input-area {
    padding: 12px;
    border-top: 1px solid #e9ecef;
    display: flex;
    align-items: flex-end;
    gap: 8px;
    background: #fff;
}
#mp-chat-input {
    flex: 1;
    resize: none;
    border: 1px solid #dee2e6;
    border-radius: 20px;
    padding: 8px 14px;
    font-size: 15px;
    line-height: 1.4;
    max-height: 120px;
    overflow-y: auto;
}
#mp-chat-input:focus { outline: none; border-color: #007bff; }
#mp-chat-send-btn {
    border-radius: 50%;
    width: 38px; height: 38px;
    padding: 0;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}

/* ── Modal ───────────────────────────────────────────── */
.mp-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mp-modal-box {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    width: 340px;
    max-width: 95vw;
    box-shadow: 0 8px 32px rgba(0,0,0,.2);
}
.mp-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 14px;
}
.mp-modal-header button {
    background: none; border: none;
    font-size: 18px; color: #adb5bd;
    cursor: pointer; padding: 0 4px;
}
.mp-search-result {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: background .15s;
}
.mp-search-result:hover { background: #eef4ff; }

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 576px) {
    .mp-chat-layout { height: 480px; }
    .mp-chat-sidebar { width: 72px; }
    .mp-chat-sidebar-header span,
    .mp-conv-info,
    .mp-conv-time { display: none; }
    .mp-conv-item { justify-content: center; padding: 8px; }
}

/* ════════════════════════════════════════════════════════
   BENACHRICHTIGUNGEN – TAB
════════════════════════════════════════════════════════ */

.mp-notif-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.mp-notif-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    text-decoration: none;
    color: #212529;
    transition: background .15s;
    position: relative;
}
.mp-notif-item:hover {
    background: #f8f9fa;
    text-decoration: none;
    color: #212529;
}
.mp-notif-unread {
    background: #fff8e1;
}
.mp-notif-unread:hover {
    background: #fff3cd;
}
.mp-notif-avatar {
    width: 42px; height: 42px;
    border-radius: 50%;
    background: #dee2e6;
    display: flex; align-items: center; justify-content: center;
    color: #adb5bd; font-size: 16px;
    overflow: hidden; flex-shrink: 0;
}
.mp-notif-avatar img { width: 100%; height: 100%; object-fit: cover; }
.mp-notif-body { flex: 1; }
.mp-notif-text {
    font-size: 14px;
    color: #212529;
    line-height: 1.4;
}
.mp-notif-text i {
    color: #007bff;
    margin-right: 4px;
}
.mp-notif-time {
    font-size: 12px;
    color: #adb5bd;
    margin-top: 2px;
}
.mp-notif-dot {
    width: 9px; height: 9px;
    border-radius: 50%;
    background: #dc3545;
    flex-shrink: 0;
}

/* ════════════════════════════════════════════════════════
   ÜBER MICH – ZWEISPALTIGES LAYOUT
════════════════════════════════════════════════════════ */

.mp-about-layout {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 32px;
    align-items: start;
}

.mp-about-left {
    min-width: 0;
}

.mp-about-right {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 16px;
    border: 1px solid #e9ecef;
}

.mp-about-field {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
}

.mp-about-field:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.mp-about-field-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: #adb5bd;
}

.mp-about-field-label i {
    color: #007bff;
    width: 14px;
    text-align: center;
}

.mp-about-field-value {
    font-size: 14px;
    color: #212529;
    font-weight: 500;
}

@media (max-width: 640px) {
    .mp-about-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}
