/* ============================================================
   POSTBIT – GLASS EDITION
   Backdrop-blur wie im Header, transparenter Hintergrund,
   sanfte Buttonleiste statt hartem Block.
   ============================================================ */

:root {
  --pb-radius-sm:   6px;
  --pb-radius-md:   12px;
  --pb-radius-lg:   16px;
  --pb-radius-pill: 40px;
  --pb-glass-bg:    rgba(255, 255, 255, 0.18);
  --pb-glass-side:  rgba(255, 255, 255, 0.12);
  --pb-border:      rgba(255, 255, 255, 0.30);
  --pb-border-in:   rgba(0, 0, 0, 0.07);
  --pb-text-muted:  rgba(0, 0, 0, 0.42);
  --pb-blur:        blur(14px);
}

/* ============================================================
   POST – GLASSMORPHISM RAHMEN
   ============================================================ */

.post { overflow: hidden; }

.post.classic {
  /* Gradient erzeugt die Sidebar-Fläche in voller Höhe –
     unabhängig davon wie lang der Inhalt ist.
     300px = Sidebar-Breite (260px + 40px Sicherheit) */
  background:
    linear-gradient(
      to right,
      rgba(255, 255, 255, 0.10) 300px,
      rgba(255, 255, 255, 0.20) 300px
    );
  border: 1px solid var(--pb-border);
  border-radius: var(--pb-radius-lg);
  padding: 0;
  margin-bottom: 24px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
}

/* ============================================================
   KOPFZEILE: Name + Statusicons
   ============================================================ */

.mtg_posthead {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 14px 20px 11px;
  border-bottom: 2px solid var(--mittel);
}

.mtg_postusername {
  font-family: var(--ub, serif);
  color: var(--mittel);
  font-size: 30px;
  line-height: 1;
  letter-spacing: -0.3px;
  font-style: italic;
}

.mtg_postquote {
  color: var(--pb-text-muted);
  font-size: 12px;
  padding-bottom: 3px;
}

/* ============================================================
   ZWEI-SPALTEN-LAYOUT
   ============================================================ */

.post.classic .post_author {
  float: left;
  width: 320px;
  min-width: 300px;
  margin: 0;
  padding: 18px 16px;
  box-sizing: border-box;
  background: transparent;
  border-right: 1px solid var(--pb-border-in);
}

.post.classic .post_content {
  overflow: hidden;
  padding: 0;
  background: transparent;
}

/* ============================================================
   SIDEBAR: AVATAR
   ============================================================ */

.post .post_author div.author_avatar { float: left; margin-right: 3px; }

.post.classic .post_author div.author_avatar {
  float: none;
  text-align: center;
  margin-bottom: 12px;
}

.post .post_author div.author_avatar img { padding: 0; }

.mtg_postava {
  border: 2px solid var(--mittel);
  border-radius: var(--pb-radius-md);
  overflow: hidden;
  display: block;
  width: 280px;
  box-sizing: border-box;
}

.mtg_postava img {
  display: block;
  width: 280px;
  height: auto;
  border-radius: calc(var(--pb-radius-md) - 2px);
}

.post .post_author .buddy_status {
  vertical-align: middle;
  margin-top: -4px;
}

/* ============================================================
   SIDEBAR: USERTITEL & BESCHREIBUNG
   ============================================================ */

.post .post_author div.author_information { float: left; padding: 6px 8px; }

.post.classic .post_author div.author_information {
  float: none;
  padding: 0;
  text-align: center;
}

.mtg_postsubava {
  display: flex;
  justify-content: center;
  margin: 8px 0 10px;
}

.mtg_postsubtitle {
  font-size: 10px;
  color: var(--mittel);
  text-align: center;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  opacity: 0.70;
}

.mtg_postdesript {
  font-size: 10.5px;
  color: var(--pb-text-muted);
  line-height: 1.55;
  padding: 4px 0;
  margin: 8px 0;
  max-height: 130px;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--mittel) transparent;
  border-top: 1px solid var(--pb-border-in);
  text-align: justify;
}

/* ============================================================
   SIDEBAR: OUTLINE-PILLS
   ============================================================ */

.mtg_postfact {
  background: rgba(255, 255, 255, 0.25);
  color: var(--mittel);
  border: 1px solid var(--mittel);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  letter-spacing: 0.5px;
  padding: 5px 10px;
  border-radius: var(--pb-radius-pill);
  margin-bottom: 5px;
  line-height: 1.3;
  min-height: 24px;
  text-align: center;
}

.mtg_postfact:last-of-type { margin-bottom: 0; }

.mtg_posticon { margin-top: 10px; margin-bottom: 10px; text-align: center; }
.mtg_posticon img { max-width: 100%; border-radius: var(--pb-radius-sm); }

/* ============================================================
   SIDEBAR: STATISTIKEN
   ============================================================ */

.post .post_author div.author_statistics {
  float: right;
  font-size: 11px;
  padding: 3px 10px 3px 5px;
  color: var(--pb-text-muted);
  line-height: 1.3;
}

.post.classic .post_author div.author_statistics {
  border-top: 1px solid var(--pb-border-in);
  margin: 8px 0 0;
  padding: 8px 0 0;
  float: none;
  font-size: 10px;
  color: var(--pb-text-muted);
  text-align: center;
}

/* ============================================================
   CONTENT: INFO-LEISTE
   ============================================================ */

.mtg_postheadinfos {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 18px 40px 16px;
  border-bottom: 1px solid var(--pb-border-in);
}

.mtg_postinfo {
  background: rgba(255, 255, 255, 0.25);
  color: var(--mittel);
  border: 1px solid var(--mittel);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  letter-spacing: 0.3px;
  padding: 4px 8px;
  border-radius: var(--pb-radius-pill);
  flex: 1 1 0;
  min-height: 24px;
  min-width: 0;
  line-height: 1.3;
  text-align: center;
}

.mtg_postinfos {
  text-align: center;
  opacity: 0.4;
  font-size: 11px;
}

/* ============================================================
   CONTENT: POST-KOPF
   ============================================================ */

.post .post_head {
  font-size: 11px;
  padding: 12px 40px 10px;
  border-bottom: 1px solid var(--pb-border-in);
  color: var(--pb-text-muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.post .post_head span.post_date   { color: var(--pb-text-muted); }
.post .post_head span.edited_post { font-size: 10px; color: rgba(0,0,0,0.22); }
.post .post_head span.edited_post a { color: var(--pb-text-muted); }

/* ============================================================
   CONTENT: NACHRICHTENTEXT
   ============================================================ */

.post_body {
  font-size: 13px;
  padding: 34px 50px 40px;
  line-height: 1.85;
  color: rgba(0, 0, 0, 0.68);
}

.post_content b   { font-weight: 500; font-size: 12px; color: var(--mittel); letter-spacing: 0.4px; }
.post_content i   { font-size: 12px; color: var(--mittel); }
.post_content u   { font-size: 12px; color: rgba(0,0,0,0.68); text-decoration: none; border-bottom: 1.5px solid var(--mittel); }
.post_content s   { font-size: 12px; color: var(--pb-text-muted); text-transform: uppercase; }

/* ============================================================
   CONTENT: SIGNATUR & META
   ============================================================ */

.post_content .signature {
  margin-top: 14px;
  border-top: 1px solid var(--pb-border-in);
  padding: 10px 0 4px;
  font-size: 11px;
  color: var(--pb-text-muted);
}

.post .post_meta {
  font-size: 11px;
  color: var(--pb-text-muted);
  padding: 0 50px 18px;
  margin: 4px 0;
}

.post .post_meta a:link,
.post .post_meta a:visited { color: var(--pb-text-muted); }
.post .post_meta a:hover   { color: var(--mittel); }

/* ============================================================
   ANTWORT-LINK
   ============================================================ */

.antwort,
.antwort a:link,
.antwort a:visited,
.antwort a:hover,
.antwort a:active {
  display: block;
  padding: 14px 20px;
  font-family: 'Quicksand', sans-serif;
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--mittel);
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
}

/* ============================================================
   BUTTONLEISTE – GLAS STATT BLOCK
   ============================================================ */

.post_controls {
  clear: both;
  background: rgba(230, 224, 210, 0.4);
  border-top: 1px solid var(--pb-border);
  padding: 8px 14px;
  border-radius: 0 0 calc(var(--pb-radius-lg) - 1px) calc(var(--pb-radius-lg) - 1px);
  overflow: hidden;
}

.postbit_buttons > a:link,
.postbit_buttons > a:visited,
.postbit_buttons > a:active {
  display: inline-block;
  padding: 3px 8px;
  margin: 1px 2px;
  font-size: 11px;
  color: var(--mittel);
  border-radius: var(--pb-radius-sm);
  text-decoration: none;
  transition: background 0.15s;
  opacity: 0.75;
}

.postbit_buttons > a:hover {
  background: rgba(255, 255, 255, 0.40);
  opacity: 1;
}

.postbit_buttons a span {
  display: inline-block;
  height: 16px;
}

/* ============================================================
   FAKT-BOXEN
   ============================================================ */

.fakt {
  padding: 4px 8px 3px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: transparent;
  color: var(--mittel);
  opacity: 0.65;
  text-align: center;
  border-bottom: 1px solid var(--pb-border-in);
}

.fakt i, .fakt b { color: var(--mittel); opacity: 1; font-size: 10px; }
.fakt a { font-family: 'Quicksand', sans-serif; font-size: 10px; text-transform: uppercase; color: var(--mittel); text-decoration: none; }

.fakt_text {
  max-height: 120px;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--mittel) transparent;
  font-family: Calibri, sans-serif;
  font-size: 10.5px;
  line-height: 1.55;
  text-align: justify;
  width: 100%;
  box-sizing: border-box;
  padding: 5px 4px;
  color: var(--pb-text-muted);
}

.fakt_text i, .fakt_text b { color: var(--mittel); opacity: 1; }

/* ============================================================
   POSTBITTITEL
   ============================================================ */

.postbittitle {
  color: var(--mittel);
  opacity: 0.70;
  font-family: Calibri, sans-serif;
  font-size: 10px;
  line-height: 1.4;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ============================================================
   AUSGEBLENDETE ELEMENTE
   ============================================================ */

.post:not(.deleted_post) .postbit_qrestore,
.post:not(.deleted_post) .status_type,
.post.deleted_post .postbit_mirage { display: none; }