/* ============================================================
   Plubbi – Stylesheet (exakt an piksor.com angelehnt)
   Dunkel (Standard) + Hell, Roboto, NobleUI-Farbpalette
   ============================================================ */
:root {
  --accent: #0041cd;
  --accent-deep: #002e5d;
  --accent-hover: #0a53e0;
  --radius: 10px;
  --font: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Dark (Standard, wie piksor dark_mode) ---------- */
body.dark {
  --bg: #171818;
  --bg-soft: #1c1c1c;
  --card: #1e1e1e;
  --card-2: #232323;
  --card-head: #212121;
  --border: #28282b;
  --text: #e8e8e8;
  --text-dim: #9a9a9a;
  --link: #31a8ff;
  --input-bg: #13151a;
  --shadow: 0 4px 16px rgba(0, 0, 0, .45);
}
/* ---------- Light ---------- */
body.light {
  --bg: #f2f3f7;
  --bg-soft: #ffffff;
  --card: #ffffff;
  --card-2: #f4f5f8;
  --card-head: #f7f8fa;
  --border: #d8dae2;
  --text: #22242a;
  --text-dim: #6b6f7b;
  --link: #0059d6;
  --input-bg: #ffffff;
  --shadow: 0 4px 14px rgba(30, 40, 70, .08);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  min-height: 100vh;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.55;
  background: var(--bg);
  color: var(--text);
}
img { max-width: 100%; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.3; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .85em; }
.dim { color: var(--text-dim); font-size: .9em; }
.req { color: #e05555; }
.danger-text { color: #e05555; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 16px; }
.main-wrapper { display: flex; flex-direction: column; min-height: 100vh; }
.page-wrapper { flex: 1; padding: 24px 0 48px; }

/* ============================ Navbar (Startseiten-Layout) ============================ */
.horizontal-menu { position: sticky; top: 0; z-index: 100; background: var(--bg-soft); box-shadow: var(--shadow); }
.top-navbar { border-bottom: 1px solid var(--border); }
.navbar-content { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 0; }
.navbar-brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-size: 22px; font-weight: 700; }
.navbar-brand:hover { text-decoration: none; }
.brand-name span { color: var(--accent); }
.navbar-brand img { border-radius: 8px; }
.navbar-nav { display: flex; align-items: center; gap: 8px; list-style: none; margin: 0; padding: 0; }
#room_title_navbar { flex: 1; }
.user-btn span { max-width: 140px; overflow: hidden; text-overflow: ellipsis; }

.bottom-navbar { border-bottom: 1px solid var(--border); }
.page-navigation { display: flex; gap: 4px; list-style: none; margin: 0; padding: 6px 0; flex-wrap: wrap; }
.navbar-burger { display: none; }
.page-navigation .nav-link {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 8px; font-weight: 500;
  color: var(--text); font-size: 15px;
}
.page-navigation .nav-link:hover { background: rgba(0, 65, 205, .12); text-decoration: none; }
.page-navigation .nav-link.active { background: var(--accent); color: #fff; }
.page-navigation .nav-link i { font-size: 19px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  border: 1px solid transparent; border-radius: 8px;
  padding: 9px 18px; font-size: 14px; font-weight: 600;
  cursor: pointer; text-decoration: none; line-height: 1.3;
  transition: background .15s, border-color .15s, color .15s;
  font-family: var(--font);
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-dark { background: #262626; color: #fff; border-color: #3d3d3d; }
body.light .btn-dark { background: #2b2f3a; }
.btn-outline { background: transparent; color: var(--text); border-color: var(--border); }
.btn-outline:hover { border-color: var(--accent); color: var(--link); }
.btn-danger { background: #c62828; color: #fff; }
.btn-danger:hover { background: #d32f2f; }
.btn-warning { background: #fbbc06; color: #222; }
.btn-success { background: #05a34a; color: #fff; }
.btn-sm { padding: 5px 10px; font-size: 13px; }
.btn-lg { padding: 13px 30px; font-size: 19px; }
.btn-icon { padding: 9px; border-radius: 50%; }
.template-toggle { border: 1px solid var(--border); color: var(--text); }
.template-toggle:hover { border-color: var(--accent); }

/* Dropdown */
.dropdown-wrap { position: relative; }
.dropdown-menu {
  position: absolute; right: 0; top: calc(100% + 8px);
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  min-width: 220px; padding: 0; display: none; box-shadow: var(--shadow); z-index: 200;
  overflow: hidden;
}
.dropdown-menu a {
  display: flex; align-items: center; gap: 10px; padding: 9px 14px;
  color: var(--text); font-size: 14px; text-decoration: none;
}
.dropdown-menu a:hover { background: rgba(0, 65, 205, .12); text-decoration: none; }
.dropdown-wrap.open .dropdown-menu { display: block; }
.dropdown-menu .tx-16 { font-size: 16px; margin: 0; }
.dropdown-menu .tx-12 { font-size: 12px; margin: 0; }
.dropdown-menu .border-bottom { border-bottom: 1px solid var(--border); }
.dropdown-menu ul.list-unstyled { list-style: none; }
.dropdown-item { border-radius: 0; }

/* ============================ Hero ============================ */
.intro-tempgal {
  position: relative;
  background:
    linear-gradient(180deg, rgba(8, 12, 24, .62) 0%, rgba(8, 12, 24, .55) 45%, rgba(10, 14, 26, .82) 100%),
    url('../images/hero.jpg') center 30% / cover no-repeat,
    var(--bg-soft);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.intro-holder { min-height: 58vh; display: flex; justify-content: center; align-items: center; padding: 64px 16px 8px; }
.intro-body { color: #fff; }
.intro-body h3 { font-size: 34px; margin: 0; }
.intro-body h4 { font-size: 20px; font-weight: 400; color: rgba(255, 255, 255, .82); margin: 0; }
.intro-body .btn-lg { margin-top: 6px; font-size: 20px; padding: 14px 34px; background: var(--accent); border-color: var(--accent); }
.intro-stats { margin-top: 22px; color: rgba(255, 255, 255, .75); font-size: 14px; }
.intro-stats i { color: #31a8ff; }

.copyrighted_pic {
  position: absolute; bottom: 0; right: 0;
  font-size: 11px; opacity: .5; color: #fff;
  padding: 2px 6px;
}
.copyrighted_pic:hover { opacity: .9; text-decoration: none; }

.features_intro { padding: 34px 16px 44px; }
.card-group { display: flex; gap: 16px; max-width: 1140px; margin: 0 auto; }
.card-group .card { flex: 1; background: rgba(24, 26, 32, .88); backdrop-filter: blur(4px); }
body.light .card-group .card { background: rgba(255, 255, 255, .92); }

/* ============================ Cards ============================ */
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); margin-bottom: 24px; overflow: hidden;
}
.card-header {
  background: var(--card-head); border-bottom: 1px solid var(--border);
  padding: 14px 20px;
}
.card-header h4, .card-header h5 { margin: 0; font-size: 16px; display: flex; align-items: center; gap: 8px; }
.card-header h4 i { color: var(--link); }
.card-body { padding: 20px; }
.card-footer { padding: 10px 20px; border-top: 1px solid var(--border); color: var(--text-dim); font-size: 13px; }
.feature-icon { font-size: 34px; color: var(--link); padding: 14px 0 0 20px; }
.card-title { font-size: 16px; margin: 4px 0 2px; }
.card-text { color: var(--text-dim); margin: 0 0 10px; font-size: 14px; }
.features_intro ul { margin: 8px 0 0; padding-left: 18px; }
.features_intro li { margin-bottom: 10px; font-size: 14px; color: var(--text-dim); }

/* ============================ Alerts ============================ */
.alert {
  border-radius: var(--radius); padding: 12px 16px; margin: 0 0 16px;
  font-size: 14px; border: 1px solid transparent; word-break: break-word;
}
.alert-success { background: rgba(30, 160, 90, .14); color: #3ecf8e; border-color: rgba(30, 160, 90, .4); }
.alert-error   { background: rgba(220, 60, 60, .14); color: #ef7d7d; border-color: rgba(220, 60, 60, .4); }
.alert-info    { background: rgba(0, 100, 220, .12); color: var(--link); border-color: rgba(0, 100, 220, .35); }
.alert-warn, .alert-warning { background: rgba(230, 170, 40, .12); color: #e6b95c; border-color: rgba(230, 170, 40, .4); }
body.light .alert-success { color: #177245; }
body.light .alert-error { color: #a33; }
body.light .alert-warn, body.light .alert-warning { color: #8a6d1a; }

/* ============================ Forms ============================ */
.form-group { margin-bottom: 16px; display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-weight: 600; font-size: 14px; }
input[type=text], input[type=email], input[type=password], input[type=number], select, textarea {
  width: 100%; padding: 9px 12px; border-radius: 8px;
  border: 1px solid var(--border); background: var(--input-bg); color: var(--text);
  font-family: var(--font); font-size: 14px;
}
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(0, 65, 205, .5); border-color: var(--accent); }
.form-row { display: flex; gap: 16px; flex-wrap: wrap; }
.form-row .form-group { flex: 1; min-width: 220px; }
.form-check { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.form-check label { font-size: 14px; }
.switch-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.switch-item { display: flex; align-items: center; gap: 10px; cursor: pointer; padding: 8px 10px; border: 1px dashed var(--border); border-radius: 8px; }
.switch-item input { position: absolute; opacity: 0; }
.switch { width: 40px; height: 22px; background: #4a4a4a; border-radius: 20px; position: relative; flex-shrink: 0; transition: background .15s; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; background: #fff; border-radius: 50%; transition: left .15s; }
.switch-item input:checked + .switch { background: var(--accent); }
.switch-item input:checked + .switch::after { left: 20px; }
.switch-label { display: flex; align-items: center; gap: 7px; font-size: 14px; }
.switch-label i { color: var(--link); }
.um-col-alt { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.um-half { flex: 0 1 auto; }
.um-half .btn { display: inline-flex; }
.um_request_name { position: relative; }
.login-btn, .user-btn { white-space: nowrap; }

/* Auth */
.auth-wrap { display: flex; justify-content: center; padding-top: 24px; }
.auth-card { width: 100%; max-width: 460px; }
.login-alt { display: flex; gap: 10px; flex-wrap: wrap; }
.login-forgot { margin-top: 14px; text-align: center; font-size: 14px; }
.install-wrap { padding-top: 32px; }
.install-wrap .card { max-width: 760px; margin: 0 auto; }
.check-list { list-style: none; padding: 0; margin: 0 0 18px; }
.check-list li { padding: 6px 0; border-bottom: 1px dashed rgba(128,128,128,.25); display: flex; align-items: center; gap: 8px; }
.chk { color: #3ecf8e; font-weight: 700; }
.check-list .bad .chk { color: #ef7d7d; }
h5.mt-4 { margin-top: 22px; }

/* Badges */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(128, 128, 128, .18); color: var(--text);
  border-radius: 20px; padding: 3px 10px; font-size: 12px; font-weight: 600;
}
.badge i { font-size: 14px; }
.badge-owner { background: rgba(230, 170, 40, .18); color: #e6b95c; }
.badge-open { background: rgba(30, 160, 90, .18); color: #3ecf8e; }
.badge-closed { background: rgba(220, 60, 60, .18); color: #ef7d7d; }

/* Dropzone */
.dropzone {
  border: 2px dashed var(--border); border-radius: var(--radius);
  padding: 38px 20px; text-align: center; cursor: pointer;
  transition: border-color .15s, background .15s;
}
.dropzone:hover, .dropzone.dragover { border-color: var(--accent); background: rgba(0, 65, 205, .06); }
.dropzone input[type=file] { display: none; }
.dz-icon { font-size: 46px; color: var(--link); }
.dz-text { margin: 10px 0 4px; }
.empty-note { text-align: center; padding: 48px 20px; }
.empty-note i.big-icon { font-size: 56px; color: var(--text-dim); }
.empty-note p { color: var(--text-dim); }

/* Comments */
.comments-card .comment { border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 10px; background: rgba(128, 128, 128, .06); }
.comment-head { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.comment-author { font-weight: 700; }
.comment-author i { color: var(--link); }
.comment-date { color: var(--text-dim); font-size: 12px; }
.comment-body { margin-top: 6px; font-size: 14px; overflow-wrap: anywhere; }
.comment-form { margin-top: 18px; }
.comment-form textarea { margin-bottom: 10px; }

/* Manage */
.manage-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.manage-item { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--card); }
.manage-item img { width: 100%; height: 150px; object-fit: cover; display: block; }
.manage-item-meta { padding: 10px 12px 4px; }
.mi-name { display: block; font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mi-sub { color: var(--text-dim); font-size: 12px; }
.manage-item-actions { display: flex; gap: 8px; padding: 8px 12px 12px; }

/* Tables */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table th { color: var(--text-dim); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }

/* Admin rows */
.admin-row {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 14px;
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 12px 14px; margin-bottom: 10px; background: rgba(128, 128, 128, .06);
}
.admin-row.row-read { opacity: .55; }
.admin-actions { display: flex; gap: 6px; flex-shrink: 0; }
.msg-body { max-width: 640px; margin-top: 4px; }

/* Article pages */
.article-body { font-size: 15px; line-height: 1.75; }
.article-body h3 { margin: 26px 0 10px; font-size: 19px; }
.article-body ul, .article-body ol { margin: 8px 0 12px; padding-left: 22px; }
.article-body li { margin-bottom: 8px; }
.contact-form { max-width: 640px; }

/* ============================ Footer ============================ */
.footer { background: var(--bg-soft); border-top: 1px solid var(--border); }
.footer .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px; font-size: 14px; }
#menu-footer { display: flex; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
#menu-footer li { margin: 0 12px; }
#menu-footer a { color: #8f8f8f; }
#menu-footer a:hover { color: var(--link); }
.text-muted { color: var(--text-dim); }

/* ============================ Processing overlay ============================ */
.proccessing {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0, 0, 0, .75);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px;
}
.progress { width: min(420px, 80vw); height: 10px; background: #333; border-radius: 10px; overflow: hidden; }
.progress-bar { height: 100%; width: 0; background: #2e9e5b; transition: width .2s; }
.spinner_holder { display: flex; align-items: center; gap: 14px; color: #fff; font-size: 18px; }
.spinner-border {
  width: 28px; height: 28px; border: 3px solid rgba(255, 255, 255, .25);
  border-top-color: #3ecf8e; border-radius: 50%;
  animation: plubbi-spin .8s linear infinite;
}
@keyframes plubbi-spin { to { transform: rotate(360deg); } }

/* ============================ Modal ============================ */
.modal { position: fixed; inset: 0; z-index: 1500; background: rgba(0, 0, 0, .6); display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal-dialog { width: 100%; max-width: 460px; }
.modal-dialog.modal-xl { max-width: 940px; }
.modal-content { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.modal-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.modal-header h5 { margin: 0; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.modal-body { padding: 16px; }
.modal-footer { border-top: 1px solid var(--border); }
.btn-close { background: none; border: none; color: var(--text); font-size: 22px; cursor: pointer; line-height: 1; display: inline-flex; }
.btn-close:hover { color: #fff; }

/* Toast */
.plubbi-toast {
  position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%);
  background: var(--card); color: var(--text); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 12px 22px; z-index: 3000; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 10px; font-size: 14px;
}
.plubbi-toast.ok i { color: #3ecf8e; }
.plubbi-toast.err i { color: #ef7d7d; }

/* =============================================================
 * Start Room Dialog (Startseite)
 * ============================================================= */
.sr-modal {
  position: fixed; inset: 0; z-index: 1200; display: flex; align-items: flex-start;
  justify-content: center; padding: 40px 16px; overflow-y: auto;
  background: rgba(0, 0, 0, .6); backdrop-filter: blur(3px);
}
.sr-dialog {
  width: 100%; max-width: 560px; background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: 0 18px 50px rgba(0, 0, 0, .45);
}
.sr-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.sr-head h3 { margin: 0; font-size: 18px; display: flex; align-items: center; gap: 8px; }
.sr-close { background: none; border: 0; color: var(--text-dim); font-size: 22px; cursor: pointer; padding: 2px 6px; }
.sr-close:hover { color: var(--text); }
.sr-body { padding: 20px; }
.sr-body .switch-grid { margin: 14px 0 6px; grid-template-columns: 1fr; }
.sr-dropzone { margin-top: 14px; }
.sr-previews { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.sr-preview { position: relative; width: 84px; height: 84px; border-radius: 8px; overflow: hidden; border: 1px solid var(--border); }
.sr-preview img, .sr-preview video { width: 100%; height: 100%; object-fit: cover; display: block; }
.sr-preview-del {
  position: absolute; top: 2px; right: 2px; width: 22px; height: 22px; border-radius: 50%;
  border: 0; background: rgba(0, 0, 0, .65); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; font-size: 14px;
}
.sr-preview-del:hover { background: rgba(200, 40, 40, .9); }
.sr-tos { display: flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 14px; cursor: pointer; }
.sr-foot { display: flex; gap: 10px; justify-content: flex-end; padding: 14px 20px; border-top: 1px solid var(--border); }

/* =============================================================
 * Global Suggestions (Startseite)
 * ============================================================= */
.suggestion-wrap { padding: 34px 0 30px; }
.suggestion-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.section-heading { font-size: 20px; font-weight: 700; margin: 0; display: flex; align-items: center; gap: 6px; }
.section-heading .mdi { color: #f97316; }
.suggestion-sub { margin: 2px 0 0; color: var(--text-dim); font-size: 14px; }
.suggestion-count { font-size: 13px; color: var(--text-dim); background: var(--card); border: 1px solid var(--border); border-radius: 999px; padding: 3px 12px; }
.suggestion-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 991px) { .suggestion-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575px) { .suggestion-grid { grid-template-columns: 1fr; } }
.suggestion-card {
  display: flex; flex-direction: column; overflow: hidden; min-width: 0;
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  text-decoration: none; color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.06);
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.suggestion-card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 8px 22px rgba(0,0,0,.12); color: var(--text); }
.suggestion-cover { position: relative; aspect-ratio: 16 / 10; display: grid; gap: 2px; background: #1f2937; overflow: hidden; }
.suggestion-cover.cover-n1 { grid-template-columns: 1fr; }
.suggestion-cover.cover-n2 { grid-template-columns: 1fr 1fr; }
.suggestion-cover.cover-n3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.suggestion-cover.cover-n3 .cover-cell:first-child { grid-row: 1 / 3; }
.suggestion-cover.cover-n4 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.cover-cell { position: relative; display: block; overflow: hidden; min-height: 0; }
.cover-cell img, .cover-cell video { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.suggestion-card:hover .cover-cell img, .suggestion-card:hover .cover-cell video { transform: scale(1.04); }
.cover-video > .mdi { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 32px; color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.6); pointer-events: none; }
.suggestion-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: #9ca3af; background: linear-gradient(135deg, #1e3a8a, #111827); }
.suggestion-empty .mdi { font-size: 40px; color: #93c5fd; }
.suggestion-badge, .suggestion-timer {
  position: absolute; top: 10px; font-size: 12px; font-weight: 600; color: #fff;
  background: rgba(17,24,39,.72); backdrop-filter: blur(4px); border-radius: 999px; padding: 3px 9px; line-height: 1.4;
}
.suggestion-badge { left: 10px; }
.suggestion-timer { right: 10px; background: rgba(13,71,214,.85); }
.suggestion-body { padding: 14px 16px 10px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.suggestion-title { font-weight: 700; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.suggestion-owner { font-size: 13px; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.suggestion-stats { display: flex; gap: 14px; margin-top: 6px; font-size: 13px; color: var(--text-dim); }
.suggestion-stats .mdi { color: var(--accent); }
.suggestion-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 16px; border-top: 1px solid var(--border); font-size: 13px; }
.suggestion-age { color: var(--text-dim); }
.suggestion-join { font-weight: 600; color: var(--accent); white-space: nowrap; }
.suggestion-card:hover .suggestion-join .mdi { transform: translateX(3px); }
.suggestion-join .mdi { display: inline-block; transition: transform .15s; }

/* =============================================================
 * RAUM-SEITE – exakter piksor-Aufbau
 * ============================================================= */
body.is_room { overflow: hidden; }

/* Raum-Navbar */
.navbar.room-nav {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
  min-height: 60px;
  padding: 0 14px;
}
.room-nav .navbar-content { padding: 8px 0; gap: 12px; flex-wrap: nowrap; }
.title_and_timer_holder { min-width: 0; }
#room_title_navbar span {
  display: block; overflow: hidden; height: 22px; font-weight: 700;
  white-space: nowrap; text-overflow: ellipsis; max-width: 46vw;
}
#room_timer {
  margin: 1px 0 0; padding-left: 0; font-weight: 700; font-size: 13px;
  color: var(--text-dim); font-variant-numeric: tabular-nums;
}
.room-timer-row { gap: 12px; }
.room-nav-meta { display: inline-flex; gap: 6px; align-items: center; }
.room-nav-meta .badge { font-size: 11px; padding: 2px 8px; }
.nav-link.btn-icon { position: relative; color: var(--text); background: transparent; border: 1px solid var(--border); cursor: pointer; }
.nav-link.btn-icon:hover { border-color: var(--accent); color: var(--link); }
.nav-link.btn-icon i { font-size: 20px; }
#room_actions_btn .nav-link.btn-icon { padding: 7px; }
.gap-1 { gap: 4px; }

/* Raum-Hauptbereich: Reihe mit Galerie + Chat-Panel */
#room_holder {
  display: flex; flex-wrap: nowrap;
  background: var(--card-2);
  height: calc(100vh - 60px);
  overflow: hidden;
  margin: 0;
}
#media_holder {
  flex: 1 1 auto; min-width: 0;
  overflow-y: auto;
  padding: 16px 18px 90px;
}
#media_holder .room-wrap { padding: 0; }
#media_holder .room-desc { color: var(--text-dim); margin: 0 0 12px; }

/* Rechte Spalte: Chat-Panel (aside-body card) */
#aside_holder { flex: 0 0 340px; max-width: 340px; padding: 8px 8px 8px 0; display: flex; min-height: 0; }
.aside-body.card {
  background: var(--card); border: 0; border-radius: var(--radius);
  flex: 1 1 auto; display: flex; flex-direction: column; min-width: 0;
  margin: 0; overflow: hidden; box-shadow: none;
}
.aside-tabs {
  display: flex; list-style: none; margin: 0; padding: 6px;
  gap: 4px; border-bottom: 1px solid var(--border);
  align-items: stretch;
}
.aside-tabs .nav-item { flex: 1; display: flex; }
.aside-tabs .nav-link {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  width: 100%; padding: 10px 6px; border-radius: 8px; border: 0;
  background: transparent; color: var(--text-dim); font-weight: 600; font-size: 14px;
  cursor: pointer; position: relative;
}
.aside-tabs .nav-link:hover { color: var(--text); }
.aside-tabs .nav-link.active { background: var(--accent); color: #fff; }
.aside-tabs .nav-link i { font-size: 19px; }
.aside-tabs .badge {
  background: #d32f2f; color: #fff; font-size: 11px; padding: 1px 7px;
  border-radius: 9px; min-width: 18px; justify-content: center;
}
.tab-content { display: flex; flex: 1 1 auto; min-height: 0; position: relative; }
.tab-pane { display: none; }
.tab-pane.active { display: flex; flex: 1; flex-direction: column; min-height: 0; }
.aside_chat_panel { height: 100%; }

/* Chat-Bereich */
.chat_sidebar_holder { display: flex; flex-direction: column; flex: 1; min-height: 0; position: relative; }
.chats_list_holder { flex: 1; min-height: 0; overflow: hidden; position: relative; }
#chats_list {
  height: 100%; overflow-y: auto; padding: 10px 10px 70px;
  display: flex; flex-direction: column; gap: 8px;
}
.chat-pinned {
  display: flex; align-items: center; gap: 8px; padding: 8px 10px; margin: 4px 6px 8px;
  background: rgba(0, 65, 205, .12); border: 1px solid var(--accent);
  border-radius: 8px; font-size: 13px;
}
.chat-pinned .chat-text { flex: 1; word-break: break-word; }
.chat-unpin { background: none; border: 0; color: var(--text-dim); cursor: pointer; font-size: 15px; }
.chat-msg {
  max-width: 86%; padding: 7px 11px; border-radius: 12px;
  background: rgba(128, 128, 128, .12); border: 1px solid var(--border);
  font-size: 13px; word-break: break-word;
}
.chat-own { align-self: flex-end; background: rgba(0, 65, 205, .18); }
.chat-author { font-weight: 600; font-size: 12px; margin-right: 6px; }
.chat-author i { color: var(--link); }
.chat-time { display: block; color: var(--text-dim); font-size: 10px; text-align: right; }
.chat-pin {
  margin-left: auto; background: none; border: 0; color: var(--text-dim);
  cursor: pointer; font-size: 14px; padding: 2px 4px; opacity: 0.6;
}
.chat-msg:hover .chat-pin, .chat-pin:hover { opacity: 1; }

/* Chat-Eingabe (unten fixiert im Panel) */
.input_of_chat {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 8px 10px; background: var(--card);
  border-top: 1px solid var(--border);
}
.chat-input-group { display: flex; align-items: flex-end; gap: 6px; }
.chat-input-group textarea.lovely_input {
  flex: 1; resize: none; border-radius: 999px; padding: 9px 16px;
  min-height: 40px; max-height: 120px; font-size: 14px; line-height: 1.4;
}
.chat-input-group input#chat_name { max-width: 110px; border-radius: 999px; padding: 9px 12px; font-size: 13px; }
.chat-input-group .btn-icon { background: transparent; border: 1px solid var(--border); color: var(--text); flex-shrink: 0; }
.chat-input-group .btn-icon:hover { border-color: var(--accent); color: var(--link); }

/* Emoji-Auswahl */
.emojies_holder_block {
  display: flex; flex-wrap: wrap; gap: 4px; padding: 8px 10px 4px;
}
.emoji-pick {
  background: none; border: 0; font-size: 20px; cursor: pointer; padding: 2px 4px; line-height: 1;
}
.emoji-pick:hover { background: rgba(128, 128, 128, .15); border-radius: 6px; }

/* Mitglieder-Tab */
.members-body { padding: 14px; overflow-y: auto; flex: 1; gap: 8px; }
.members-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.members-list li { padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; font-size: 13px; }
.members-list li .mdi { color: var(--link); margin-right: 4px; }
.aside-empty { padding: 44px 16px; text-align: center; color: var(--text-dim); flex: 1; }
.aside-empty .mdi { font-size: 34px; display: block; margin-bottom: 8px; }

/* Schwebender Upload-Button (unten links, wie piksor) */
.upload_new_files_to_room {
  position: fixed; bottom: 25px; left: 25px;
  width: 60px !important; height: 60px !important;
  border-radius: 40px; z-index: 99;
  background: #002e5d; border-color: #002e5d;
  box-shadow: 0 0 11px #224a73;
  padding: 0 !important;
}
.upload_new_files_to_room:hover { background: #0041cd; border-color: #0041cd; }
.upload_new_files_to_room svg.feather { height: 40px; width: 40px; }
.upload_new_files_to_room .selecting_files {
  position: absolute; top: 0; right: 0; left: 0; bottom: 0;
}
.dz_imgs_previews { position: absolute; inset: 0; }

/* Galerie: Zeilen-Layout (justified, wie piksor) */
.justified-gallery {
  display: flex; flex-wrap: wrap; gap: 5px; align-items: flex-start;
  margin-bottom: 20px;
}
.justified-gallery .gal-item {
  position: relative; display: block; overflow: hidden;
  border-radius: 6px; border: 1px solid var(--border);
  flex: 0 1 auto; height: 200px; flex-grow: 1; min-width: 60px;
  background: var(--card);
}
.justified-gallery .gal-item img {
  height: 100%; width: 100%; object-fit: cover; display: block; transition: transform .2s;
}
.justified-gallery .gal-item:hover img { transform: scale(1.04); }
.justified-gallery.gallery-single .gal-item { height: auto; flex-grow: 0; }
.justified-gallery.gallery-single .gal-item img { height: auto; object-fit: contain; }
.gal-item.gal-new { outline: 2px solid var(--accent); outline-offset: -2px; animation: plubbiGalNew 2.6s ease; }
@keyframes plubbiGalNew {
  0% { box-shadow: 0 0 0 4px rgba(0, 65, 205, .35); }
  100% { box-shadow: 0 0 0 4px rgba(0, 65, 205, 0); }
}
.gal-likes {
  position: absolute; top: 8px; left: 8px; z-index: 2; display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 8px; border-radius: 999px; background: rgba(0, 0, 0, .55); backdrop-filter: blur(4px);
  color: #fff; font-size: 12px; font-weight: 600; pointer-events: none;
}
.gal-likes .mdi { font-size: 13px; color: rgba(255, 255, 255, .85); }
.gal-likes.liked .mdi { color: #ff4d6d; }
.gal-info {
  position: absolute; inset: auto 0 0 0; display: flex; flex-direction: column; gap: 1px;
  padding: 8px 10px; background: linear-gradient(transparent, rgba(0, 0, 0, .78));
  opacity: 0; transition: opacity .18s; pointer-events: none;
}
.gal-item:hover .gal-info { opacity: 1; }
.gal-info-name { color: #fff; font-size: 12px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gal-info-meta { color: rgba(255, 255, 255, .75); font-size: 11px; }

/* Schmale Footer-Leiste unter der Galerie */
.small_footer {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 14px 2px 0; margin-top: 16px; border-top: 1px dashed var(--border);
  color: var(--text-dim); font-size: 12px;
}
.small_footer a { color: var(--text-dim); text-decoration: none; }
.small_footer a:hover { color: var(--link); }

/* =============================================================
 * Lightbox (Bild-Modal, wie piksor load_image_modal)
 * ============================================================= */
.modal.load-image-modal { align-items: center; }
.load-image-modal .modal-body { padding: 10px; }
.lb-stage {
  position: relative; display: flex; align-items: center; justify-content: center;
  min-height: 40vh; max-height: calc(100vh - 380px); background: rgba(0, 0, 0, .35);
  border-radius: 8px; overflow: hidden;
}
.lb-stage img, .lb-stage video { max-width: 100%; max-height: calc(100vh - 420px); height: auto; object-fit: contain; display: block; }
.lb-stage video { background: #000; border-radius: 4px; min-width: min(560px, 100%); }
.lb-info { position: absolute; bottom: 8px; left: 12px; color: rgba(255,255,255,.8); font-size: 12px; text-shadow: 0 1px 6px black; }
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  background: rgba(0, 0, 0, .5); border: none; color: #fff;
  width: 44px; height: 44px; border-radius: 50%; font-size: 26px; cursor: pointer;
}
.lb-prev { left: 10px; }
.lb-next { right: 10px; }
.lb-nav:hover { background: rgba(0, 65, 205, .7); }
.load-image-modal .btn.border { background: transparent; border: 1px solid var(--border); color: var(--text); }
.load-image-modal .btn.border:hover { border-color: var(--accent); color: var(--link); }
.load-image-modal .like_the_image.liked { color: #ff4d6d; border-color: rgba(255, 77, 109, .5); }
.load-image-modal .like_the_image.liked i { color: #ff4d6d; }

.lb-comments {
  width: 100%; padding: 12px 16px 16px;
  overflow-y: auto; max-height: 220px;
}
.lb-comments h5 { margin-bottom: 10px; font-size: 14px; }
.lb-comment-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.lb-comment-form { display: flex; gap: 8px; }
.lb-comment-form input[type=text] { flex: 1; }
.lb-comment-form input#lb_comment_name { max-width: 160px; }

/* =============================================================
 * Umfragen (Poll-Modal)
 * ============================================================= */
.poll-options { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.poll-opt {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px;
  background: rgba(128, 128, 128, .06); cursor: pointer; position: relative; overflow: hidden;
}
.poll-opt:hover { border-color: var(--accent); }
.poll-opt .poll-fill {
  position: absolute; inset: 0; background: rgba(0, 65, 205, .18); z-index: 0;
}
.poll-opt > span { position: relative; z-index: 1; }
.poll-opt .poll-pct { font-weight: 700; }
.poll-form-opt { display: flex; gap: 8px; margin-bottom: 8px; }
.poll-form-opt input { flex: 1; }
.poll-form-opt .btn { flex-shrink: 0; }
.poll-question { font-size: 16px; font-weight: 700; margin: 0 0 4px; }
.poll-total { color: var(--text-dim); font-size: 12px; margin-bottom: 8px; }

/* Regeln-Hinweis */
#plubbi-rules-alert {
  position: absolute; top: 0; left: 0; right: 0; z-index: 9999;
  background: #313131 !important; color: #fff;
  border-radius: 0; margin: 0;
}
#plubbi-rules-alert a { color: #31a8ff; }

/* =============================================================
 * Benachrichtigungen & PM (Navbar)
 * ============================================================= */
.nav-item-bell { position: relative; }
.notif-panel {
  position: absolute; top: 100%; right: 0; z-index: 1100; width: 340px; max-width: 92vw;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: 0 14px 40px rgba(0, 0, 0, .45); overflow: hidden;
}
.notif-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; border-bottom: 1px solid var(--border); font-weight: 600; font-size: 14px;
}
.notif-markall { background: none; border: 0; color: var(--accent); cursor: pointer; font-size: 12px; }
.notif-item {
  display: flex; align-items: flex-start; gap: 10px; padding: 10px 14px;
  color: var(--text); text-decoration: none; border-bottom: 1px solid var(--border);
}
.notif-item:last-child { border-bottom: 0; }
.notif-item:hover { background: rgba(128, 128, 128, .08); text-decoration: none; }
.notif-item.unread { background: rgba(0, 65, 205, .08); }
.notif-item > i.mdi { color: var(--accent); font-size: 20px; margin-top: 2px; }
.notif-body { flex: 1; font-size: 13px; line-height: 1.45; }
.notif-ago { display: block; color: var(--text-dim); font-size: 11px; margin-top: 2px; }
.notif-del {
  background: none; border: 0; color: var(--text-dim); cursor: pointer; font-size: 15px;
  padding: 2px; opacity: .6;
}
.notif-del:hover { opacity: 1; color: #d32f2f; }
.notif-empty { padding: 18px 14px; color: var(--text-dim); font-size: 13px; }

.pm-badge {
  position: absolute; top: -4px; right: -4px; min-width: 17px; height: 17px;
  border-radius: 9px; background: #d32f2f; color: #fff; font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; padding: 0 4px;
}

/* Privater-Chat-Modal */
.pm-dialog { max-width: 680px; }
.pm-layout { display: grid; grid-template-columns: 200px 1fr; min-height: 380px; }
.pm-side { border-right: 1px solid var(--border); padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.pm-side input[type=text] { width: 100%; }
.pm-conv-list { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; }
.pm-conv-item {
  display: flex; align-items: center; gap: 6px; text-align: left; width: 100%;
  background: none; border: 0; border-radius: 8px; padding: 8px 10px;
  color: var(--text); cursor: pointer; font-size: 14px;
}
.pm-conv-item:hover { background: rgba(128, 128, 128, .1); }
.pm-conv-item.active { background: rgba(0, 65, 205, .15); }
.pm-mini-badge {
  margin-left: auto; min-width: 17px; height: 17px; border-radius: 9px; background: #d32f2f;
  color: #fff; font-size: 11px; font-weight: 700; display: flex;
  align-items: center; justify-content: center; padding: 0 4px;
}
.pm-empty { font-size: 13px; padding: 8px; }
.pm-main { display: flex; flex-direction: column; }
.pm-thread-head { font-weight: 600; padding: 12px 16px 6px; border-bottom: 1px solid var(--border); }
.pm-thread { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 12px 16px; max-height: 340px; }
.pm-form { display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--border); }
.pm-form input[type=text] { flex: 1; }
@media (max-width: 560px) {
  .pm-layout { grid-template-columns: 1fr; }
  .pm-side { border-right: 0; border-bottom: 1px solid var(--border); max-height: 140px; }
}

/* Cookie-Warnung */
.cookie-warning {
  max-width: 460px; margin: 14px auto; padding: 22px 24px;
  background: #fdecea; border: 2px solid #e0a29a; border-radius: 12px;
  color: #7a2a20; text-align: center; line-height: 1.6;
}
.cookie-warning h3 { font-size: 18px; margin: 0 0 8px; color: #7a2a20; }
.cookie-warning .cw-icon { font-size: 26px; margin: 0 0 6px; }

/* =============================================================
 * Admin-Bereich
 * ============================================================= */
.admin-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 20px; }
.admin-tab {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 999px; border: 1px solid var(--border);
  background: transparent; color: var(--text); font-size: 14px; font-weight: 600;
  cursor: pointer; text-decoration: none;
}
.admin-tab:hover { border-color: var(--accent); color: var(--link); text-decoration: none; }
.admin-tab.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 22px; }
.stat-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px 18px; display: flex; align-items: center; gap: 14px;
}
.stat-card .mdi { font-size: 30px; color: var(--accent); }
.stat-num { font-size: 24px; font-weight: 700; line-height: 1.1; }
.stat-label { color: var(--text-dim); font-size: 12px; }
.admin-search { display: flex; gap: 8px; margin-bottom: 14px; max-width: 560px; }
.admin-search input { flex: 1; }
.inline-form { display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.inline-form input[type=text] { width: 160px; }
.role-chip { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; border-radius: 999px; padding: 2px 8px; }
.role-admin { background: rgba(230, 170, 40, .18); color: #e6b95c; }
.role-banned { background: rgba(220, 60, 60, .18); color: #ef7d7d; }
.role-user { background: rgba(30, 160, 90, .18); color: #3ecf8e; }
.newpass-box {
  background: rgba(30, 160, 90, .12); border: 1px solid rgba(30, 160, 90, .4);
  border-radius: 8px; padding: 10px 14px; margin-bottom: 14px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
}
.newpass-box code { font-size: 15px; letter-spacing: .5px; }

/* =============================================================
 * Foto-Favoriten (Konto)
 * ============================================================= */
.fav-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.fav-item { position: relative; border-radius: 10px; }
.fav-item a { display: block; border-radius: 10px; overflow: hidden; }
.fav-item img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; border-radius: 10px; }
.fav-room {
  display: block; font-size: 12px; color: var(--text-dim); margin-top: 6px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.fav-remove {
  position: absolute; top: 6px; right: 6px; border: none; cursor: pointer;
  width: 28px; height: 28px; border-radius: 999px; background: rgba(0, 0, 0, .6); color: #ff4d6d;
  display: inline-flex; align-items: center; justify-content: center; font-size: 15px;
}
.fav-remove:hover { background: rgba(0, 0, 0, .85); }

/* =============================================================
 * Responsive
 * ============================================================= */
@media (max-width: 991px) {
  #room_holder { flex-direction: column; height: auto; overflow: visible; }
  #media_holder { overflow: visible; padding: 14px 14px 110px; }
  #aside_holder {
    position: fixed; top: 0; right: 0; bottom: 0; width: min(340px, 94vw); max-width: none;
    padding: 10px; z-index: 950; transform: translateX(105%);
    transition: transform .22s ease; background: transparent;
  }
  #aside_holder.open { transform: translateX(0); }
  .aside-close-btn { display: inline-flex !important; }
  .aside-toggle { display: inline-flex !important; }
  .justified-gallery .gal-item { height: 140px; }
}
@media (min-width: 992px) {
  .aside-toggle { display: none; }
}

@media (max-width: 768px) {
  .card-group { flex-direction: column; }
  .intro-body h3 { font-size: 26px; }
  .intro-body h4 { font-size: 16px; }
  .navbar-content { flex-wrap: wrap; }
  .navbar-burger {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; margin: 6px 0; border: 1px solid var(--border);
    border-radius: 8px; background: transparent; color: var(--text); font-size: 20px; cursor: pointer;
  }
  .bottom-navbar .container { display: flex; align-items: center; gap: 8px; }
  .page-navigation { display: none; flex: 1; }
  .bottom-navbar.menu-open .page-navigation { display: grid; }
  .room-head { flex-direction: column; }
  .card-body { padding: 16px; }
  #room_title_navbar span { max-width: 56vw; }
  .lb-stage { max-height: 46vh; }
  .lb-stage img, .lb-stage video { max-height: 40vh; }
}

/* ---------- Video-Clips (v11) ---------- */
.justified-gallery .gal-item video { width: 100%; height: 100%; object-fit: cover; display: block; background: #000; pointer-events: none; }
.justified-gallery.gallery-single .gal-item video { height: auto; object-fit: contain; }
.gal-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 52px; height: 52px; border-radius: 50%;
  background: rgba(0,0,0,.55); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 30px;
  pointer-events: none; transition: background .2s, transform .2s; box-shadow: 0 2px 10px rgba(0,0,0,.4); }
.gal-item:hover .gal-play { background: rgba(31,123,255,.85); transform: translate(-50%, -50%) scale(1.08); }
.sr-preview.is-video::after { content: "\F040A"; font-family: "Material Design Icons"; position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%); color: #fff; font-size: 26px; text-shadow: 0 1px 6px rgba(0,0,0,.7); pointer-events: none; }
.media-thumb { width: 96px; height: 72px; object-fit: cover; border-radius: 6px; background: #000; display: block; }
.media-badge { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; padding: 1px 6px; border-radius: 10px; background: #2b2b30; color: #ddd; }
.report-card { display: flex; gap: 14px; align-items: flex-start; }
.report-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.btn-danger-solid { background: #e53935 !important; border-color: #e53935 !important; color: #fff !important; }
.btn-danger-solid:hover { background: #c62828 !important; }
.justified-gallery .gal-item[data-type="video"] { min-width: 260px; }
.manage-item { position: relative; }
.manage-item video { width: 100%; height: 150px; object-fit: cover; display: block; background: #000; }
.manage-item .gal-play { top: 75px; width: 40px; height: 40px; font-size: 24px; }
.fav-item a { position: relative; }
.fav-item video { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; border-radius: 10px; background: #000; }
.fav-item .gal-play { width: 40px; height: 40px; font-size: 24px; }
/* Admin: Medien-Verwaltung */
.admin-media-prev { position: relative; display: block; flex-shrink: 0; }
.admin-media-prev .gal-play { width: 34px; height: 34px; font-size: 20px; }
.media-gone { display: flex; flex-direction: column; align-items: center; justify-content: center; color: #999; font-size: 11px; gap: 2px; }
.media-gone .mdi { font-size: 24px; }
.admin-media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.admin-media-item { position: relative; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: var(--card); display: flex; flex-direction: column; }
.admin-media-item.is-reported { border-color: #e53935; box-shadow: 0 0 0 1px #e53935 inset; }
.admin-media-item .admin-media-prev img, .admin-media-item .admin-media-prev video { width: 100%; height: 140px; object-fit: cover; display: block; background: #000; }
.admin-media-meta { padding: 8px 10px; display: flex; flex-direction: column; gap: 3px; font-size: 12px; min-width: 0; }
.admin-media-meta .mi-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-media-item > form { position: absolute; top: 6px; right: 6px; }
.admin-media-check { position: absolute; top: 6px; left: 6px; z-index: 2; background: rgba(0,0,0,.55); border-radius: 4px; padding: 2px 4px; line-height: 1; }
.admin-search select { background: var(--card); color: inherit; border: 1px solid var(--border); border-radius: 6px; padding: 6px 8px; }

/* =============================================================
 * v12 – Bootstrap-Hilfsklassen (vom piksor-Markup benötigt)
 * ============================================================= */
.d-flex { display: flex !important; }
.d-block { display: block !important; }
.d-none { display: none !important; }
.flex-column { flex-direction: column !important; }
.align-items-center { align-items: center !important; }
.justify-content-between { justify-content: space-between !important; }
.justify-content-center { justify-content: center !important; }
.w-100 { width: 100% !important; }
.m-0 { margin: 0 !important; }
.p-0 { padding: 0 !important; }
.p-1 { padding: 4px !important; }
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 4px !important; }
.mt-2 { margin-top: 8px !important; }
.ms-0 { margin-left: 0 !important; }
.ms-1 { margin-left: 4px !important; }
.ms-2 { margin-left: 8px !important; }
.me-1 { margin-right: 4px !important; }
.me-2 { margin-right: 8px !important; }
.mx-2 { margin-left: 8px !important; margin-right: 8px !important; }
.ms-auto { margin-left: auto !important; }
.px-5 { padding-left: 24px !important; padding-right: 24px !important; }
.py-2 { padding-top: 8px !important; padding-bottom: 8px !important; }
.py-3 { padding-top: 12px !important; padding-bottom: 12px !important; }
.position-relative { position: relative !important; }
.position-absolute { position: absolute !important; }
.text-center { text-align: center !important; }
.text-danger, .text-danger i { color: #ef5350 !important; }
.fw-bolder { font-weight: 700 !important; }
.rounded-circle { border-radius: 50% !important; }
.rounded-pill { border-radius: 999px !important; }
.icon-md { font-size: 18px; }

/* =============================================================
 * v12 – Raum-Layout (piksor): Navbar 60px, Galerie links, Chat rechts
 * ============================================================= */
body.is_room { height: 100vh; overflow: hidden; background: #171818; }
body.is_room .main-wrapper { min-height: 0; height: 100vh; }
body.is_room .page-wrapper { padding: 0 !important; display: flex; flex-direction: column; height: 100vh; min-height: 0; }

.navbar.room-nav {
  flex: 0 0 60px; height: 60px; min-height: 60px; padding: 0 16px;
  display: flex; align-items: center; position: relative; z-index: 900;
  background: #1e1e1e; border-bottom: 1px solid #28282b;
}
.room-nav .navbar-content { display: flex; align-items: center; width: 100%; height: 60px; padding: 0; gap: 14px; flex-wrap: nowrap; }
.room-nav .title_and_timer_holder { flex: 1 1 auto; min-width: 0; overflow: hidden; }
.room-nav .title_and_timer_holder > .d-block { min-width: 0; }
#room_title_navbar, #room_title_navbar span { display: block; min-width: 0; max-width: 100%; }
#room_title_navbar span {
  height: auto; line-height: 20px; font-size: 15px; font-weight: 700; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
body.light #room_title_navbar span { color: #222; }
.room-timer-row { display: flex; align-items: center; gap: 10px; min-width: 0; height: 18px; margin-top: 2px; overflow: hidden; }
#room_timer { margin: 0; font-size: 12px; line-height: 18px; font-weight: 700; color: #aeb3b9; white-space: nowrap; }
.room-nav-meta { display: inline-flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; }
.room-nav-meta .badge { font-size: 11px; line-height: 16px; padding: 0 7px; height: 18px; white-space: nowrap; background: #28282b; color: #aeb3b9; border: 0; }
.room-nav .navbar-nav { flex: 0 0 auto; height: 60px !important; gap: 6px; flex-wrap: nowrap; }
.room-nav .navbar-nav .nav-item { display: flex; align-items: center; }
.room-nav #room_actions_btn { gap: 6px; }
.room-nav .nav-link.btn-icon {
  width: 34px; height: 34px; padding: 0 !important; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; border: 1px solid #2f2f33; background: #232323; color: #e9ecef;
}
.room-nav .nav-link.btn-icon i { font-size: 18px; line-height: 1; }
.room-nav .nav-link.btn-icon:hover { border-color: #0041cd; color: #fff; background: #0041cd; }
.room-nav .pm-badge { top: -5px; right: -5px; }
.room-nav .dropdown-wrap { position: relative; }
.room-nav .dropdown-menu { top: calc(100% + 8px); right: 0; left: auto; min-width: 240px; }

#room_holder {
  display: flex !important; flex-direction: row; flex-wrap: nowrap;
  flex: 1 1 auto; height: auto !important; min-height: 0; margin: 0;
  background: #171818; overflow: hidden;
}
#media_holder {
  flex: 1 1 auto !important; width: auto !important; max-width: none !important; min-width: 0;
  display: block !important; overflow-y: auto; overflow-x: hidden;
  padding: 8px 8px 100px 8px;
}
#media_holder .room-desc { color: #aeb3b9; margin: 4px 4px 10px; font-size: 13px; }
#media_holder .empty-note { text-align: center; padding: 50px 20px; }
#aside_holder { flex: 0 0 340px; width: 340px; max-width: 340px; padding: 8px 8px 8px 0; display: flex; min-height: 0; }
#room_aside { position: relative; height: 100%; background: #1e1e1e; border: 1px solid #28282b; }
.aside-close-btn {
  display: none; position: absolute; top: 8px; right: 8px; z-index: 3; width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid #2f2f33; background: #232323; color: #fff; cursor: pointer; align-items: center; justify-content: center;
}
#room_aside .aside-tabs { flex: 0 0 auto; }
#room_aside .tab-content { flex: 1 1 auto; min-height: 0; }

/* Galerie: gleichmäßige Zeilen ohne Überlappung */
.justified-gallery { display: flex; flex-wrap: wrap; gap: 5px; align-items: stretch; margin: 0; }
.justified-gallery { --gh: 220px; }
.justified-gallery .gal-item { height: var(--gh); flex: var(--r, 1.5) 1 calc(var(--r, 1.5) * var(--gh)); min-width: 0; max-width: calc(var(--r, 1.5) * var(--gh) * 1.6); position: relative; }
.justified-gallery .gal-item[data-type="video"] { min-width: 0; }
.justified-gallery::after { content: ""; flex-grow: 999; }
.justified-gallery .gal-item img, .justified-gallery .gal-item video { width: 100%; height: 100%; object-fit: cover; }
.justified-gallery.gallery-single { flex-direction: column; align-items: center; }
.justified-gallery.gallery-single .gal-item { height: auto; width: 100%; max-width: 900px; flex: 0 0 auto; }

/* Upload-Button darf nichts verdecken */
.upload_new_files_to_room { bottom: 25px; left: 25px; }

/* Regeln-Hinweis: unten mittig statt über der Navbar */
#plubbi-rules-alert {
  position: fixed !important; top: auto !important; bottom: 20px; left: 50% !important; right: auto !important;
  transform: translateX(-50%); width: min(620px, calc(100vw - 32px));
  border-radius: 10px !important; border: 1px solid #3a3a3e; padding: 14px 40px 14px 16px;
  box-shadow: 0 14px 40px rgba(0,0,0,.5); z-index: 1100;
}

/* ---------------- Bild-Fenster (piksor #load_image_modal) ---------------- */
.load-image-modal .modal-dialog { max-width: min(1000px, calc(100vw - 32px)); width: 100%; }
.load-image-modal .modal-content { background: #1e1e1e; border: 1px solid #28282b; display: flex; flex-direction: column; max-height: calc(100vh - 32px); }
.load-image-modal .modal-header { padding: 10px 14px; gap: 10px; flex: 0 0 auto; }
.load-image-modal .modal-title { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
#show_image_btns { flex: 0 0 auto; gap: 0; }
#show_image_btns .btn-icon { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; padding: 0 !important; }
#show_image_btns .btn-icon i { font-size: 20px; }
#lb_close { background: #b10000 !important; border-color: #b10000 !important; color: #fff !important; }
#lb_close:hover { background: #d10000 !important; }
#show_image_btns_options { position: relative; }
.lb-options-menu { top: calc(100% + 6px); right: 0; left: auto; min-width: 190px; padding: 4px; }
.lb-options-menu .dropdown-item { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 6px; color: var(--text); font-size: 14px; }
.lb-options-menu .dropdown-item i { font-size: 18px; }
.load-image-modal .modal-body { padding: 0; flex: 1 1 auto; min-height: 0; }
.load-image-modal .lb-stage { border-radius: 0; min-height: 260px; max-height: none; height: calc(100vh - 290px); background: #000; display: flex; }
.load-image-modal .lb-stage img, .load-image-modal .lb-stage video { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.load-image-modal .modal-footer { flex: 0 0 auto; border-top: 1px solid #28282b; }
#lb_comment_list { max-height: 130px; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; padding: 8px 10px 0 !important; list-style: none; }
#lb_comment_list:empty { display: none; }
.lb-chat-msg { max-width: 100%; align-self: flex-start; }
.lb-chat-msg .chat-text { word-break: break-word; }
.lb-chat-msg .chat-time { display: inline; margin-left: 8px; }
.load-image-modal .lb-input { position: relative !important; inset: auto !important; padding: 8px 10px; background: transparent; border-top: 0; }
#lb_comment_form { display: flex; align-items: center; flex-wrap: nowrap; gap: 6px; }
#lb_comment_form textarea { flex: 1 1 auto; min-width: 0; resize: none; min-height: 38px; max-height: 110px; padding: 8px 16px; line-height: 1.4; font-size: 14px; }
#lb_comment_form .lb-name { flex: 0 0 110px; width: 110px; padding: 8px 12px; font-size: 13px; }
#lb_comment_form .btn-icon { flex: 0 0 38px; width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; padding: 0 !important;
  background: transparent; border: 1px solid #2f2f33; color: var(--text); cursor: pointer; position: relative; }
#lb_comment_form .btn-icon:hover { border-color: #0041cd; color: #fff; }
#lb_comment_form .btn-icon i { font-size: 19px; }
.lb-like-num { position: absolute; top: -6px; right: -6px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: #d32f2f; color: #fff; font-size: 10px; line-height: 16px; text-align: center; font-weight: 700; }
#lb_like.liked { color: #ff4d6d; border-color: rgba(255,77,109,.6); }
#lb_emoji_block { padding: 0 0 6px; }

@media (max-width: 991px) {
  #media_holder { padding: 6px 6px 100px; }
  #aside_holder { width: min(340px, 94vw); max-width: none; flex: none; padding: 10px; }
  .aside-close-btn { display: inline-flex !important; }
  .justified-gallery { --gh: 160px; }
}
@media (max-width: 600px) {
  .navbar.room-nav { padding: 0 10px; }
  .room-nav .navbar-content { gap: 8px; }
  .room-nav-meta { display: none; }
  .room-nav .navbar-nav, .room-nav #room_actions_btn { gap: 4px; }
  .room-nav .nav-link.btn-icon { width: 32px; height: 32px; }
  .room-nav #copy_room_link, .room-nav a[title="Manage room"] { display: none; }
  .justified-gallery { --gh: 120px; }
  .load-image-modal .modal { padding: 0; }
  .load-image-modal .lb-stage { height: calc(100vh - 300px); }
  #lb_comment_form .lb-name { flex-basis: 80px; width: 80px; }
}
@media (min-width: 992px) { .room-nav .nav-link.btn-icon.aside-toggle { display: none !important; } }

/* =============================================================
 * v12 – Kopfzeile: nie überlappen, mobil eine Zeile (wie piksor)
 * ============================================================= */
.top-navbar .navbar-content { flex-wrap: nowrap !important; min-height: 70px; gap: 12px; }
.top-navbar .navbar-brand { flex: 0 1 auto; min-width: 0; white-space: nowrap; }
.top-navbar #room_title_navbar { flex: 1 1 auto; min-width: 0; }
.top-navbar .navbar-nav { flex: 0 0 auto; flex-wrap: nowrap; gap: 8px; }
.top-navbar .nav-link.btn-icon { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.top-navbar .user-btn, .top-navbar .login-btn { align-items: center; gap: 2px; white-space: nowrap; max-width: 220px; }
.top-navbar .user-btn-name { overflow: hidden; text-overflow: ellipsis; max-width: 150px; display: inline-block; }
.nav-item-burger { display: none; }
.page-wrapper:has(> .intro-tempgal:first-child) { padding-top: 0; }
.horizontal-menu + .page-wrapper > .intro-tempgal:first-child { margin-top: 0; }
@media (max-width: 768px) {
  .nav-item-burger { display: flex; }
  .bottom-navbar .container { display: block !important; }
  .bottom-navbar { border-bottom: 0; }
  .bottom-navbar .page-navigation { display: none; padding: 6px 0 10px; grid-template-columns: 1fr; gap: 2px; }
  .bottom-navbar.menu-open { border-bottom: 1px solid var(--border); }
  .bottom-navbar.menu-open .page-navigation { display: grid; }
  .top-navbar .navbar-content { min-height: 60px; gap: 8px; padding: 8px 0; }
  .top-navbar .navbar-brand img { width: 40px; height: 40px; }
  .top-navbar .navbar-brand { font-size: 19px; gap: 8px; }
  .top-navbar .navbar-nav { gap: 5px; }
  .top-navbar .nav-link.btn-icon { width: 36px; height: 36px; }
  .top-navbar .user-btn-name { max-width: 90px; }
  .navbar-burger { margin: 0 !important; width: 36px !important; height: 36px !important; }
}
@media (max-width: 480px) {
  .top-navbar .brand-name { display: none; }
  .top-navbar .user-btn-name { display: none; }
  .top-navbar .user-btn { padding: 8px !important; margin-right: 0 !important; }
  .top-navbar .user-btn .mdi-account { margin-right: 0 !important; }
}
.admin-tabs { margin-top: 14px; }
@media (max-width: 768px) {
  .admin-tabs { flex-wrap: nowrap !important; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 6px; scrollbar-width: thin; }
  .admin-tabs .admin-tab { flex: 0 0 auto; white-space: nowrap; }
  .report-card { flex-direction: column; }
  .admin-media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
}
.admin-search { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.admin-search input[type=text] { flex: 1 1 220px; min-width: 0; }
.admin-search select { flex: 0 0 auto; width: auto; min-width: 120px; }

/* v12 – Raum im hellen Modus */
body.light.is_room, body.light #room_holder { background: #f3f4f7; }
body.light .navbar.room-nav { background: #fff; border-bottom-color: #e3e5ea; }
body.light #room_timer, body.light .room-nav-meta .badge { color: #5b6270; }
body.light .room-nav-meta .badge { background: #eef0f4; }
body.light .room-nav .nav-link.btn-icon { background: #fff; border-color: #dfe2e8; color: #333; }
body.light .room-nav .nav-link.btn-icon:hover { background: #0041cd; color: #fff; }
body.light #room_aside { background: #fff; border-color: #e3e5ea; }
body.light .input_of_chat { background: #fff; }
body.light .load-image-modal .modal-content { background: #fff; border-color: #e3e5ea; }
body.light .load-image-modal .modal-footer { border-top-color: #e3e5ea; }
body.light #lb_comment_form .btn-icon, body.light .aside-close-btn { border-color: #dfe2e8; color: #333; background: #fff; }
.room-nav #room_menu { max-height: calc(100vh - 80px); overflow-y: auto; padding: 0; }
.room-nav #room_menu .dropdown-item { padding: 0 !important; list-style: none; border: 0; }
.room-nav #room_menu .dropdown-item.border-bottom { border-bottom: 1px solid var(--border) !important; }
.room-nav #room_menu .dropdown-item a { display: flex; align-items: center; gap: 6px; padding: 8px 14px; margin: 0; font-size: 14px; border-radius: 6px; }
.room-nav #room_menu .dropdown-item a i { font-size: 17px; }
.room-nav #room_menu .px-5.py-3 { padding: 12px 16px !important; }
.cron-code { background: #111214; border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; font-size: 12.5px;
  white-space: pre-wrap; word-break: break-all; margin: 0 0 10px; color: #cfd3da; }
body.light .cron-code { background: #f4f5f8; color: #333; }

/* ---------- Upload-Fortschritt + Drag & Drop (v14) ---------- */
.up-progress{position:fixed;left:20px;bottom:90px;z-index:1300;width:280px;max-width:calc(100vw - 40px);background:#1f2336;color:#e9ecf5;border:1px solid rgba(255,255,255,.08);border-radius:10px;box-shadow:0 10px 30px rgba(0,0,0,.45);padding:12px 14px;display:none;font-size:13px}
body.light .up-progress{background:#fff;color:#333;border-color:#e3e6ef}
.up-progress .up-head{display:flex;align-items:center;gap:6px;font-weight:600}
.up-progress .up-head .mdi{color:#6571ff;font-size:18px}
.up-progress .up-pct{margin-left:auto;font-variant-numeric:tabular-nums}
.up-progress .up-name{opacity:.7;margin:4px 0 8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.up-progress .up-bar{height:6px;border-radius:3px;background:rgba(127,127,127,.25);overflow:hidden}
.up-progress .up-bar span{display:block;height:100%;width:0;background:#6571ff;transition:width .15s}
.drop-mask{position:fixed;inset:0;z-index:1400;background:rgba(14,16,28,.78);display:none;align-items:center;justify-content:center;pointer-events:none}
.drop-mask>div{border:3px dashed #6571ff;border-radius:16px;padding:40px 60px;text-align:center;color:#fff}
.drop-mask .mdi{font-size:64px;color:#6571ff}
.drop-mask p{margin:8px 0 0;font-size:18px}
.notif-panel { max-height: min(70vh, 520px); overflow-y: auto; }
@media (max-width: 640px) {
  .notif-panel { position: fixed; top: 62px; left: 8px; right: 8px; width: auto; max-width: none; }
}

/* ---------- Private Nachrichten mit Bildern/Clips (v14) ---------- */
.pm-dialog { max-width: 820px; width: 96vw; }
.pm-layout { grid-template-columns: 240px 1fr; height: min(72vh, 620px); min-height: 0; }
.pm-side { min-height: 0; }
.pm-main { min-width: 0; min-height: 0; }
.pm-thread { max-height: none; min-height: 0; flex: 1 1 auto; gap: 6px; }
.pm-thread-head { display: flex; align-items: center; gap: 8px; padding: 12px 16px; min-height: 46px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.pm-back { display: none; background: none; border: 0; color: var(--text); font-size: 20px; cursor: pointer; padding: 0 4px 0 0; }
.pm-conv-item { align-items: center; }
.pm-conv-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.pm-conv-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pm-conv-last { font-size: 12px; color: var(--text-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pm-msg { display: flex; }
.pm-msg.pm-own { justify-content: flex-end; }
.pm-bubble { max-width: 78%; background: rgba(128,128,128,.14); border-radius: 14px 14px 14px 4px; padding: 7px 10px; display: flex; flex-direction: column; gap: 4px; overflow-wrap: anywhere; }
.pm-own .pm-bubble { background: #0041cd; color: #fff; border-radius: 14px 14px 4px 14px; }
.pm-text { font-size: 14px; line-height: 1.4; white-space: pre-wrap; }
.pm-meta { font-size: 11px; opacity: .7; display: flex; align-items: center; gap: 4px; }
.pm-own .pm-meta { justify-content: flex-end; }
.pm-del { background: none; border: 0; color: inherit; cursor: pointer; padding: 0; font-size: 14px; opacity: .8; }
.pm-del:hover { opacity: 1; }
.pm-media { display: block; border-radius: 10px; overflow: hidden; max-width: 280px; background: #000; }
.pm-media img, .pm-media video { display: block; width: 100%; max-height: 300px; object-fit: contain; }
.pm-attach { align-items: center; gap: 10px; padding: 8px 16px; border-top: 1px solid var(--border); }
.pm-attach img, .pm-attach video { width: 54px; height: 54px; object-fit: cover; border-radius: 8px; background: #000; }
.pm-attach-name { flex: 1; min-width: 0; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pm-attach-x { background: none; border: 0; color: var(--text-dim); font-size: 18px; cursor: pointer; }
.pm-up { height: 4px; background: rgba(128,128,128,.25); }
.pm-up span { display: block; height: 100%; width: 0; background: #6571ff; transition: width .15s; }
.pm-form { align-items: center; }
.pm-clip { background: none; border: 0; color: var(--text-dim); font-size: 22px; cursor: pointer; padding: 0 2px; line-height: 1; }
.pm-clip:hover { color: var(--accent); }
.pm-form input[type=text] { min-width: 0; }
@media (max-width: 680px) {
  .pm-dialog { width: 100vw; max-width: 100vw; height: 100%; max-height: 100%; border-radius: 0; }
  .pm-modal { padding: 0 !important; }
  .pm-layout { grid-template-columns: 1fr; height: calc(100dvh - 58px); }
  .pm-side { max-height: none; border-bottom: 0; }
  .pm-main { display: none; }
  .pm-has-thread .pm-side { display: none; }
  .pm-has-thread .pm-main { display: flex; }
  .pm-back { display: inline-block; }
  .pm-media { max-width: 220px; }
}
/* Mitgliederliste: Button für private Nachricht */
.members-list li { display: flex; align-items: center; gap: 6px; }
.members-list .member-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member-pm { background: none; border: 0; color: var(--text-dim); cursor: pointer; font-size: 17px; padding: 2px 4px; }
.member-pm:hover { color: var(--accent); }

/* ---------- Raum-Chat: Antworten, Erwähnungen, Werkzeuge (v14) ---------- */
.chat-msg { position: relative; }
.chat-msg .chat-tools { position: absolute; top: 2px; right: 4px; display: none; gap: 2px; background: var(--card); border-radius: 6px; padding: 1px 2px; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.chat-msg:hover .chat-tools, .chat-msg:focus-within .chat-tools { display: flex; }
@media (hover: none) { .chat-msg .chat-tools { display: flex; position: static; box-shadow: none; background: none; justify-content: flex-end; } }
.chat-tool { background: none; border: 0; color: var(--text-dim); cursor: pointer; font-size: 15px; padding: 1px 4px; line-height: 1; }
.chat-tool:hover { color: var(--accent); }
.chat-msg .chat-pin { position: static; opacity: 1; }
.chat-author { cursor: pointer; }
.chat-quote { font-size: 12px; color: var(--text-dim); border-left: 3px solid #6571ff; padding: 2px 8px; margin: 0 0 4px; border-radius: 3px; background: rgba(101,113,255,.08); cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-mention { color: #6571ff; font-weight: 600; }
.chat-mention-me { background: rgba(255,193,7,.25); color: inherit; border-radius: 3px; padding: 0 2px; }
.chat-mentioned { background: rgba(255,193,7,.08); border-left: 3px solid #ffc107; }
.chat-flash { animation: chatFlash 1.5s ease; }
@keyframes chatFlash { 0%,60% { background: rgba(101,113,255,.25); } 100% { background: transparent; } }
.chat-reply-bar { display: flex; align-items: center; gap: 6px; font-size: 12px; padding: 6px 10px; margin-bottom: 6px; border-radius: 8px; background: rgba(101,113,255,.1); border-left: 3px solid #6571ff; }
.chat-reply-info { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-reply-x { background: none; border: 0; color: var(--text-dim); cursor: pointer; font-size: 16px; }
/* Mitglieder live */
.members-head { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-dim); margin: 10px 4px 4px; display: flex; align-items: center; gap: 6px; }
.members-head .badge { background: #10b759; color: #fff; border-radius: 10px; padding: 0 6px; font-size: 11px; }
.member-dot { width: 8px; height: 8px; border-radius: 50%; background: #6c757d; flex: 0 0 8px; }
.member-dot.on { background: #10b759; box-shadow: 0 0 0 2px rgba(16,183,89,.25); }
.members-list .member-name { cursor: pointer; }

/* ---------- Emoji-Auswahl mit Kategorien (v15) ---------- */
.emojies_holder_block.emoji-picker { display: none; padding: 0; margin: 0 0 6px; background: var(--card); border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.25); overflow: hidden; }
.emoji-tabs { display: flex; gap: 2px; padding: 4px 6px; border-bottom: 1px solid var(--border); overflow-x: auto; }
.emoji-tab { flex: 1 0 auto; background: none; border: 0; color: var(--text-dim); font-size: 18px; padding: 4px 6px; border-radius: 6px; cursor: pointer; line-height: 1; }
.emoji-tab:hover { background: rgba(128,128,128,.15); }
.emoji-tab.active { color: #fff; background: #0041cd; }
.emoji-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(36px, 1fr)); gap: 2px; padding: 6px; max-height: 200px; overflow-y: auto; }
.emoji-grid .emoji-pick { font-size: 22px; padding: 4px 0; text-align: center; }
.emoji-empty { grid-column: 1 / -1; margin: 10px; font-size: 13px; color: var(--text-dim); text-align: center; }
#pm_emoji_block { margin: 0 12px 6px; }

/* Admin-Sperre Hinweis (v15) */
.room-locked-banner { background: #b91c1c; color: #fff; text-align: center; font-size: 14px; font-weight: 600; padding: 7px 12px; }
.dark .suggestion-join, .dark .suggestion-stats .mdi { color: #60a5fa; }

.suggestion-online { color: #16a34a; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.suggestion-online .dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,.25); animation: plb-pulse 1.6s infinite; }
@keyframes plb-pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(34,197,94,.45); } 50% { box-shadow: 0 0 0 5px rgba(34,197,94,0); } }

/* =============================================================
 * v16: piksor-Raumfunktionen – Uploader-Info, Zähler, Markierungen, Pin, Sperren
 * ============================================================= */
.gal-pin { position: absolute; top: 8px; right: 8px; z-index: 2; width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; background: #f59e0b; color: #111; font-size: 15px; box-shadow: 0 1px 4px rgba(0,0,0,.4); }
.gal-item.pinned_file { outline: 2px solid #f59e0b; outline-offset: -2px; }
.lb-head-info { display: flex; flex-direction: column; min-width: 0; gap: 2px; flex: 1 1 auto; }
.lb-head-info .modal-title { font-size: 13px; font-weight: 400; opacity: .7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 0; }
.uploader_info { display: flex; align-items: center; gap: 9px; text-decoration: none; color: inherit; min-width: 0; }
.uploader-avatar { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #2563eb, #7c3aed); color: #fff; font-weight: 700; font-size: 15px; }
.uploader-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.uploader-name { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.uploader-owner { font-size: 10px; font-weight: 700; text-transform: uppercase; background: #f59e0b; color: #111; border-radius: 4px; padding: 1px 5px; margin-left: 4px; vertical-align: 2px; }
.uploader-time { font-size: 12px; opacity: .65; }
.lb-stats { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 10px 4px; border-bottom: 1px solid rgba(127,127,127,.18); }
.lb-stat { display: inline-flex; align-items: center; gap: 4px; border: 1px solid rgba(127,127,127,.25); background: transparent; color: inherit;
  border-radius: 999px; padding: 3px 10px; font-size: 13px; cursor: pointer; line-height: 1.4; }
.lb-stat small { opacity: .65; }
.lb-stat:hover { border-color: var(--accent, #2563eb); }
.lb-stat-static { cursor: default; }
.lb-stat-static:hover { border-color: rgba(127,127,127,.25); }
.lb-markers { position: absolute; pointer-events: none; z-index: 3; }
.lb-markers.marking { pointer-events: auto; cursor: crosshair; outline: 2px dashed rgba(96,165,250,.8); outline-offset: -2px; }
.crosshair-marker-old, .crosshair-marker-new { position: absolute; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; pointer-events: auto; transition: transform .15s; }
.crosshair-marker-old { background: rgba(37,99,235,.92); color: #fff; border: 2px solid #fff; box-shadow: 0 1px 6px rgba(0,0,0,.5); }
.crosshair-marker-old.active { transform: scale(1.45); background: #f59e0b; color: #111; }
.crosshair-marker-new { background: rgba(245,158,11,.95); color: #111; border: 2px solid #fff; font-size: 16px; animation: plb-pulse-m 1.2s infinite; }
@keyframes plb-pulse-m { 0%,100% { box-shadow: 0 0 0 0 rgba(245,158,11,.6); } 50% { box-shadow: 0 0 0 8px rgba(245,158,11,0); } }
.lb-mark-hint { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); z-index: 4; background: rgba(17,24,39,.85); color: #fff;
  font-size: 13px; padding: 5px 12px; border-radius: 999px; white-space: nowrap; max-width: 92%; overflow: hidden; text-overflow: ellipsis; }
.lb-mark-btn.active { background: #f59e0b !important; color: #111 !important; }
.lb-mark-no { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%;
  background: #2563eb; color: #fff; font-size: 11px; font-weight: 700; margin-right: 6px; cursor: pointer; flex: 0 0 20px; }
.lb-chat-msg.has-mark { cursor: pointer; }
.data-list-modal .modal-dialog { max-width: 420px; width: calc(100% - 24px); }
.data-list { list-style: none; margin: 0; padding: 4px; max-height: 60vh; overflow: auto; }
.data-list li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; }
.data-list li:hover { background: rgba(127,127,127,.1); }
.data-list-name { flex: 1 1 auto; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.data-list-time { font-size: 12px; opacity: .6; white-space: nowrap; }
.member-block, .member-unblock { margin-left: 4px; border: 0; background: transparent; color: #ef4444; cursor: pointer; padding: 2px 6px; border-radius: 6px; font-size: 15px; }
.member-unblock { color: #22c55e; }
.member-block:hover, .member-unblock:hover { background: rgba(127,127,127,.15); }
.blocked-list li { opacity: .8; }
.modal.data-list-modal { z-index: 1700; }
@media (max-width: 480px) { .lb-stat small { display: none; } .lb-stat { padding: 3px 9px; } }

/* =============================================================
 * v17: Talk about, Sprachnachrichten, QR-Code (wie piksor)
 * ============================================================= */
.chat-talk-bar, .chat-rec-bar { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; padding: 6px 8px; border-radius: 12px;
  background: rgba(37,99,235,.12); border: 1px solid rgba(37,99,235,.35); }
.chat-talk-bar img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; flex: 0 0 42px; }
.chat-talk-info { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; line-height: 1.25; font-size: 13px; }
.chat-talk-info small { opacity: .65; font-size: 11px; }
.chat-rec-bar { background: rgba(239,68,68,.12); border-color: rgba(239,68,68,.4); }
.rec-dot { width: 10px; height: 10px; border-radius: 50%; background: #ef4444; animation: plb-blink 1s infinite; flex: 0 0 10px; }
@keyframes plb-blink { 50% { opacity: .25; } }
.rec-time { font-variant-numeric: tabular-nums; font-weight: 700; min-width: 38px; }
.rec-label { flex: 1 1 auto; font-size: 13px; opacity: .75; }
.rec-btn { border: 0; width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; font-size: 17px; }
.rec-cancel { background: rgba(127,127,127,.2); color: inherit; }
.rec-send { background: #2563eb; color: #fff; }
.chat-voice-btn.active { background: #ef4444 !important; color: #fff !important; }
.chat-talk-ref { display: flex; align-items: center; gap: 8px; margin: 5px 0 2px; padding: 4px 10px 4px 4px; border-radius: 10px; cursor: pointer;
  background: rgba(127,127,127,.12); max-width: 100%; width: fit-content; font-size: 12px; }
.chat-talk-ref:hover { background: rgba(37,99,235,.18); }
.chat-talk-ref img { width: 48px; height: 48px; border-radius: 7px; object-fit: cover; flex: 0 0 48px; }
.chat-talk-noimg { width: 48px; height: 48px; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; background: rgba(127,127,127,.2); font-size: 20px; }
.chat-voice { display: block; width: 100%; max-width: 260px; height: 36px; margin: 5px 0 2px; }
.qr-modal .modal-dialog { max-width: 360px; width: calc(100% - 24px); }
.qr-box { display: inline-flex; align-items: center; justify-content: center; width: 256px; height: 256px; max-width: 100%; background: #fff; border-radius: 12px; padding: 8px; }
.qr-box img { width: 100%; height: auto; image-rendering: pixelated; }
.qr-title { font-weight: 700; margin: 12px 0 2px; }
.qr-link { font-size: 12px; opacity: .7; word-break: break-all; margin-bottom: 12px; }
.qr-actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.modal.qr-modal { z-index: 1700; }
.chat-voice { width: 240px; max-width: 100%; }

/* ============================================================
 * v19: Markierungen & Downloads im Chat, Verified-Owner, Raum melden, PM-Blacklist
 * ============================================================ */
.chat-talk-thumb { position: relative; display: inline-block; flex: 0 0 48px; width: 48px; height: 48px; }
.chat-talk-thumb img, .chat-talk-thumb .chat-talk-noimg { width: 48px; height: 48px; }
.chat-pin-dot { position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%;
  background: #ef4444; border: 2px solid #fff; box-shadow: 0 0 0 2px rgba(239,68,68,.45); pointer-events: none; }
.chat-talk-ref .mdi-image-marker, .chat-talk-ref .mdi-comment-outline, .chat-talk-ref .mdi-download { margin-right: 2px; }
.chat-talk-ref.has-pin span:last-child { color: #93c5fd; }
.chat-msg.chat-dl { opacity: .85; font-size: .92em; }
.chat-msg.chat-dl .chat-talk-ref { padding-top: 2px; padding-bottom: 2px; }
.chat-msg.chat-dl .chat-talk-thumb, .chat-msg.chat-dl .chat-talk-thumb img { width: 30px; height: 30px; flex-basis: 30px; }
.chat-msg.chat-dl .chat-text { color: #86efac; }
.verified_user { color: #3b82f6; font-size: .95em; vertical-align: -1px; }
.crosshair-marker-old.focus { z-index: 6; animation: plubbiPinPulse 1s ease-in-out 3; }
@keyframes plubbiPinPulse { 0%,100% { transform: scale(1.45); } 50% { transform: scale(2); } }
#report_room_btn.already_reported { color: #f59e0b !important; }
.media-thumb.media-room { color: #f59e0b; }
.pm-thread-head { display: flex; align-items: center; gap: 8px; }
.pm-thread-head #pm_thread_head { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pm-block-btn { flex: 0 0 auto; background: transparent; border: 1px solid rgba(148,163,184,.35); color: inherit; border-radius: 999px;
  padding: 3px 10px; font-size: 12px; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.pm-block-btn:hover { border-color: #ef4444; color: #ef4444; }
.pm-block-btn.is-blocked { border-color: #22c55e; color: #22c55e; }
.pm-blocked-note { margin: 6px 10px 0; padding: 7px 10px; border-radius: 8px; font-size: 12.5px;
  background: rgba(239,68,68,.12); border: 1px solid rgba(239,68,68,.35); color: #fca5a5; }
.pm-form-disabled { opacity: .45; pointer-events: none; }
.pm-block-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px;
  border-bottom: 1px solid rgba(148,163,184,.15); }
