/* ============================================================================
   BE:KI talk – App-spezifische Optik (Ergänzung zu beki-module.css)
   NICHT die Tokens aus beki-module.css überschreiben, nur ergänzen.
   ============================================================================ */

/* ---- Text-Brand (statt PNG-Logo) im Sidebar-Brand ---- */
.brand-mark {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--navy);
  line-height: 1;
}
.brand-mark .accent { color: var(--teal-d); }
.brand-sub {
  font-size: var(--fs-xs);
  font-weight: 700;
  color: #3a6b8a;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-top: 6px;
}

/* Header-Brand (rechts) als Text */
.header-brand {
  font-size: 15px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -.01em;
}
.header-brand .accent { color: var(--teal-d); }

/* ---- Flash / Hinweise ---- */
.flash {
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: var(--fs-base);
  font-weight: 600;
  margin-bottom: 16px;
  border: 1px solid;
}
.flash-ok    { background: rgba(35,181,160,.10); color: #0c8c89; border-color: rgba(35,181,160,.30); }
.flash-error { background: rgba(255,90,60,.08);  color: #c0392b; border-color: rgba(255,90,60,.28); }
.flash-info  { background: rgba(22,72,166,.07);  color: var(--navy); border-color: rgba(22,72,166,.20); }

/* ---- Page-Header (Titel + Aktion) ---- */
.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.page-head h1 { font-size: var(--fs-3xl); font-weight: 800; color: var(--text); margin: 0; }
.page-head .lead { color: var(--muted); font-size: var(--fs-md); margin-top: 4px; }

/* ---- Dashboard-Grid ---- */
.grid { display: grid; gap: 14px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 980px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card-link { display: block; transition: transform .15s, box-shadow .15s; }
.card-link:hover { transform: translateY(-2px); box-shadow: var(--sh-card-h); text-decoration: none; }
.card .card-ic { font-size: 26px; margin-bottom: 8px; }

/* ---- Listen (Kategorien, Threads, Posts) ---- */
.list { display: flex; flex-direction: column; gap: 10px; }

.row {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 18px;
  box-shadow: var(--sh-card);
  transition: border-color .15s, box-shadow .15s, transform .1s;
}
a.row:hover { border-color: var(--navy); box-shadow: var(--sh-card-h); transform: translateY(-1px); text-decoration: none; }

.row-ic {
  width: 44px; height: 44px; flex-shrink: 0;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  background: linear-gradient(135deg, rgba(22,72,166,.12), rgba(35,181,160,.14));
  color: var(--navy);
}
.row-main { flex: 1; min-width: 0; }
.row-title { font-size: var(--fs-lg); font-weight: 700; color: var(--text); }
.row-sub { font-size: 12px; color: var(--muted); margin-top: 3px; line-height: 1.5; }
.row-meta { flex-shrink: 0; text-align: right; font-size: 11.5px; color: var(--muted); }
.row-meta .num { font-size: var(--fs-2xl); font-weight: 800; color: var(--navy); line-height: 1; }

.row-tags { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }

/* ---- Threads / Posts ---- */
.post {
  display: flex;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--sh-card);
}
.post-aside { width: 132px; flex-shrink: 0; border-right: 1px solid var(--line); padding-right: 14px; }
.post-body { flex: 1; min-width: 0; }
.post-text { font-size: var(--fs-md); line-height: 1.7; color: var(--text); white-space: pre-wrap; word-wrap: break-word; overflow-wrap: anywhere; }
.post-text p { margin: 0 0 10px; }
@media (max-width: 720px) {
  .post { flex-direction: column; }
  .post-aside { width: auto; border-right: none; border-bottom: 1px solid var(--line); padding-right: 0; padding-bottom: 10px; display: flex; align-items: center; gap: 10px; }
}

/* ---- Avatar (Initialen) ---- */
.avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--teal));
  color: #fff; font-weight: 800; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.avatar.lg { width: 64px; height: 64px; font-size: 22px; }
.avatar.sm { width: 28px; height: 28px; font-size: 10.5px; }

.author-line { display: flex; align-items: center; gap: 8px; }
.author-name { font-weight: 700; color: var(--text); font-size: var(--fs-base); }
.author-meta { font-size: 11px; color: var(--muted); }

/* ---- Formulare ---- */
.form-card { max-width: 560px; }
.form-wide { max-width: 760px; }
.form-grp { margin-bottom: 16px; }
.form-row { display: flex; gap: 14px; flex-wrap: wrap; }
.form-row > .form-grp { flex: 1; min-width: 200px; }
.form-hint { font-size: 11px; color: var(--muted); margin-top: 5px; }

/* ---- Auth-Center-Layout ---- */
.auth-center { flex: 1; display: flex; align-items: center; justify-content: center; padding: 28px 0; }
.auth-card { width: 100%; max-width: 420px; }
.auth-card h1 { font-size: var(--fs-3xl); font-weight: 800; margin: 0 0 4px; color: var(--navy); }
.auth-card .lead { color: var(--muted); font-size: var(--fs-md); margin-bottom: 22px; }
.auth-switch { margin-top: 18px; font-size: var(--fs-base); color: var(--muted); text-align: center; }
.auth-switch a { color: var(--navy); font-weight: 700; }

/* ---- Sonstiges ---- */
.empty { text-align: center; color: var(--muted); padding: 40px 20px; font-size: var(--fs-md); }
.empty .ic { font-size: 34px; margin-bottom: 8px; }
.divider { height: 1px; background: var(--line); margin: 22px 0; }
.inline-meta { font-size: 12px; color: var(--muted); }
.crumb-current { color: var(--text); font-weight: 700; }
.tag-locked { font-size: 10.5px; }
.section-title { font-size: var(--fs-xl); font-weight: 800; color: var(--text); margin: 26px 0 12px; }
.muted-strong { color: var(--text); font-weight: 700; }
.profile-head { display: flex; align-items: center; gap: 18px; margin-bottom: 8px; }
.stat-pills { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.stat-pill { background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius-pill); padding: 5px 13px; font-size: 12px; color: var(--muted); font-weight: 600; }
.stat-pill strong { color: var(--navy); }
