/* ==========================================================
   DUST IN THE WIND 2.0
   POSTBIT – MINISTERIUMSAKTE 1977
   ========================================================== */

.smoke-postbit{
  --sp-bg:#100805;
  --sp-deep:#0c0604;
  --sp-panel:#1a0d08;
  --sp-panel-soft:#24140c;
  --sp-line:#5a341d;
  --sp-line-soft:rgba(197,139,69,.22);
  --sp-gold:#c58b45;
  --sp-gold-light:#e0b36a;
  --sp-text:#ead0a1;
  --sp-muted:#c8a878;
  --sp-violet:#a78abe;

  position:relative;
  isolation:isolate;

  width:100%;
  max-width:1050px;
  margin:20px auto;

  overflow:hidden;

  color:var(--sp-text);

  background:
    linear-gradient(
      110deg,
      rgba(197,139,69,.04),
      transparent 38%
    ),
    linear-gradient(
      135deg,
      #120906,
      #24140c 60%,
      #170b07
    );

  border:1px solid rgba(197,139,69,.42);
  border-left:6px solid var(--sp-gold);

  box-shadow:
    0 24px 48px rgba(0,0,0,.34),
    inset 0 1px rgba(255,255,255,.025);

  box-sizing:border-box;
}

.smoke-postbit *,
.smoke-postbit *:before,
.smoke-postbit *:after{
  box-sizing:border-box;
}

.smoke-postbit:before{
  content:"MINISTRY PERSONNEL FILE";

  position:absolute;
  right:18px;
  bottom:56px;
  z-index:-1;

  color:rgba(234,208,161,.027);

  font-family:Antonio,Arial,sans-serif;
  font-size:26px;
  font-weight:700;
  line-height:1;

  letter-spacing:5px;

  pointer-events:none;
}

/* ==========================================================
   KOPFBEREICH
   ========================================================== */

.smoke-postbit-head{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:20px;

  padding:16px 20px 13px;

  background:
    linear-gradient(
      90deg,
      rgba(197,139,69,.08),
      transparent 48%
    ),
    #160d08;

  border-bottom:3px solid #8a4e22;
}

.smoke-postbit-identity{
  min-width:0;
}

.smoke-postbit-username{
  color:var(--sp-gold-light);

  font-family:Cinzel,Georgia,serif;
  font-size:30px;
  font-weight:700;
  line-height:1.12;

  letter-spacing:.6px;
  text-transform:uppercase;
}

.smoke-postbit-username a:link,
.smoke-postbit-username a:visited{
  color:var(--sp-gold-light);
  text-decoration:none;
}

.smoke-postbit-username a:hover,
.smoke-postbit-username a:active{
  color:#f3ddb9;
}

.smoke-postbit-usertitle{
  margin-top:7px;

  color:#a98761;

  font-family:Antonio,Arial,sans-serif;
  font-size:10px;
  font-weight:700;
  line-height:1.35;

  letter-spacing:1.4px;
  text-transform:uppercase;
}

.smoke-postbit-usertitle:empty{
  display:none;
}

/* Datum und Beitragslink oben rechts */

.smoke-postbit-headmeta{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  justify-content:center;
  gap:4px;

  min-width:135px;

  color:#b99a73;

  font-family:Antonio,Arial,sans-serif;
  font-size:11px;
  font-weight:700;
  line-height:1.35;

  letter-spacing:.8px;
  text-align:right;
  text-transform:uppercase;
}

.smoke-postbit-postlink,
.smoke-postbit-postdate{
  display:block;
  width:100%;
  text-align:right;
}

.smoke-postbit-headmeta a{
  color:var(--sp-gold);
  text-decoration:none;
}

.smoke-postbit-headmeta a:hover{
  color:var(--sp-gold-light);
}

.smoke-postbit-headmeta img{
  max-width:18px;
  max-height:18px;
  vertical-align:middle;
}

/* ==========================================================
   HAUPTAUFTEILUNG
   ========================================================== */

.smoke-postbit-body{
  display:grid;
  grid-template-columns:230px minmax(0,1fr);
  gap:20px;

  padding:20px;
}

/* ==========================================================
   LINKE CHARAKTERAKTE
   ========================================================== */

.smoke-postbit-profile{
  min-width:0;
  padding-right:18px;

  border-right:1px solid rgba(197,139,69,.24);
}

.smoke-postbit-avatar{
  width:180px;
  height:300px;
  margin:0 auto 13px;

  overflow:hidden;

  background:#0d0604;

  border:1px solid #8a5a31;

  box-shadow:
    0 12px 24px rgba(0,0,0,.35),
    inset 0 0 0 3px rgba(0,0,0,.22);
}

.smoke-postbit-avatar img{
  display:block;

  width:100%;
  height:100%;

  object-fit:cover;
  object-position:center;
}

/* Gruppen und Fakten */

.smoke-postbit-section{
  margin-top:11px;
}

.smoke-postbit-section-title{
  margin:0 0 6px;
  padding:0 0 6px;

  color:var(--sp-gold);

  border-bottom:1px solid rgba(197,139,69,.28);

  font-family:Cinzel,Georgia,serif;
  font-size:10px;
  font-weight:700;
  line-height:1;

  letter-spacing:1.2px;
  text-transform:uppercase;
}

.smoke-postbit-facts{
  display:grid;
  gap:6px;
}

.smoke-postbit-fact{
  padding:7px 9px;

  color:#d9bd96;
  background:rgba(8,4,3,.42);

  border:1px solid rgba(197,139,69,.16);

  font-family:Antonio,Arial,sans-serif;
  font-size:11px;
  font-weight:700;
  line-height:1.35;

  letter-spacing:.35px;
  text-align:center;
  text-transform:uppercase;
}

.smoke-postbit-fact:empty{
  display:none;
}

/* Zusätzliches Charakterbild */

.smoke-postbit-icon{
  margin-top:12px;
  overflow:hidden;

  background:#120805;

  border:1px solid rgba(197,139,69,.25);
}

.smoke-postbit-icon:empty{
  display:none;
}

.smoke-postbit-icon img{
  display:block;

  width:100%;
  height:auto;
  max-height:150px;

  object-fit:cover;

  opacity:.92;
}

/* ==========================================================
   RECHTER BEITRAGSBEREICH
   ========================================================== */

.smoke-postbit-content{
  min-width:0;
}

/* Szeneninformationen */

.smoke-postbit-infobar{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;

  margin-bottom:12px;
}

.smoke-postbit-info{
  min-width:0;

  padding:9px 10px;

  color:#d8bd98;
  background:rgba(8,4,3,.43);

  border-top:2px solid #8a4e22;

  font-family:Antonio,Arial,sans-serif;
  font-size:11px;
  font-weight:700;
  line-height:1.4;

  letter-spacing:.65px;
  text-align:center;
  text-transform:uppercase;
}

.smoke-postbit-info:empty{
  display:none;
}

/* Bearbeitungshinweis */

.smoke-postbit-edited{
  min-height:14px;
  margin:0 0 10px;

  color:#8f755b;

  font-family:Spectral,Georgia,serif;
  font-size:10px;
  font-style:italic;
  line-height:1.4;

  text-align:center;
}

.smoke-postbit-edited:empty{
  display:none;
}

/* Betreff */

.smoke-postbit-subject{
  margin-bottom:10px;
}

.smoke-postbit-subject:empty{
  display:none;
}

/* Beitrag */

.smoke-postbit-message{
  min-height:430px;

  padding:19px 21px;

  color:var(--sp-text);

  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,.012),
      transparent
    ),
    rgba(10,5,3,.34);

  border:1px solid rgba(197,139,69,.15);

  font-family:Spectral,Georgia,serif;
  font-size:16px;
  line-height:1.75;

  text-align:justify;
}

.smoke-postbit-message a{
  color:var(--sp-gold-light);
  text-decoration:none;
}

.smoke-postbit-message a:hover{
  color:#f4e1c5;
}

.smoke-postbit-message blockquote{
  margin:16px 0;
  padding:12px 16px;

  color:#d8bd98;
  background:rgba(0,0,0,.22);

  border-left:3px solid #8a4e22;
}

.smoke-postbit-message img{
  max-width:100%;
  height:auto;
}

/* Anhänge */

.smoke-postbit-attachments{
  margin-top:18px;
}

.smoke-postbit-attachments:empty{
  display:none;
}

/* Signatur */

.smoke-postbit-signature{
  margin-top:25px;
  padding-top:15px;

  color:#bfa581;

  border-top:1px solid rgba(197,139,69,.22);

  font-size:12px;
  line-height:1.55;

  text-align:center;
}

.smoke-postbit-signature:empty{
  display:none;
}

.smoke-postbit-signature:before{
  content:"PERSONAL NOTES";

  display:block;

  margin:0 auto 12px;

  color:#8e704f;

  font-family:Antonio,Arial,sans-serif;
  font-size:8px;
  font-weight:700;
  line-height:1;

  letter-spacing:2px;
  text-transform:uppercase;
}

/* Reaktionen */

.smoke-postbit-reactions{
  margin-top:16px;
}

.smoke-postbit-reactions:empty{
  display:none;
}

/* ==========================================================
   BUTTONLEISTE
   ========================================================== */

.smoke-postbit-buttons{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:flex-end;
  gap:5px;

  min-height:48px;

  padding:9px 14px;

  background:#160d08;

  border-top:1px solid rgba(197,139,69,.24);
}

.smoke-postbit-button{
  display:inline-flex;
  align-items:center;

  min-height:29px;
}

.smoke-postbit-button:empty{
  display:none;
}

.smoke-postbit-button a,
.smoke-postbit-button input,
.smoke-postbit-button button{
  display:inline-flex;
  align-items:center;
  justify-content:center;

  min-height:29px;

  padding:5px 9px;

  color:#c8a878 !important;
  background:#24140c !important;

  border:1px solid rgba(197,139,69,.25) !important;
  border-radius:0 !important;

  font-family:Antonio,Arial,sans-serif !important;
  font-size:9px !important;
  font-weight:700;
  line-height:1 !important;

  letter-spacing:.8px;
  text-decoration:none !important;
  text-transform:uppercase;

  cursor:pointer;
}

.smoke-postbit-button a:hover,
.smoke-postbit-button input:hover,
.smoke-postbit-button button:hover{
  color:#ead0a1 !important;
  background:#3a2416 !important;

  border-color:#c58b45 !important;
}

.smoke-postbit-button img{
  vertical-align:middle;
}

.smoke-postbit-ip{
  margin-right:auto;
}

/* ==========================================================
   ZUSTÄNDE
   ========================================================== */

.post.unapproved_post .smoke-postbit,
.smoke-postbit-unapproved{
  border-left-color:#9b4d3f;
}

.smoke-postbit:hover{
  border-color:rgba(197,139,69,.58);
  border-left-color:var(--sp-gold-light);
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media screen and (max-width:800px){

  .smoke-postbit-head{
    grid-template-columns:1fr;
  }

  .smoke-postbit-headmeta{
    align-items:flex-start;
    min-width:0;
    text-align:left;
  }

  .smoke-postbit-postlink,
  .smoke-postbit-postdate{
    text-align:left;
  }

  .smoke-postbit-body{
    grid-template-columns:1fr;
  }

  .smoke-postbit-profile{
    display:grid;
    grid-template-columns:190px minmax(0,1fr);
    gap:16px;

    padding:0 0 18px;

    border-right:0;
    border-bottom:1px solid rgba(197,139,69,.24);
  }

  .smoke-postbit-avatar{
    grid-row:1 / span 5;
  }

  .smoke-postbit-section,
  .smoke-postbit-icon{
    margin-top:0;
  }
}

@media screen and (max-width:600px){

  .smoke-postbit{
    margin:12px auto;
  }

  .smoke-postbit-head{
    padding:14px;
  }

  .smoke-postbit-username{
    font-size:23px;
  }

  .smoke-postbit-body{
    padding:14px;
  }

  .smoke-postbit-profile{
    display:block;
  }

  .smoke-postbit-avatar{
    width:180px;
    height:300px;
  }

  .smoke-postbit-infobar{
    grid-template-columns:1fr;
  }

  .smoke-postbit-message{
    min-height:0;

    padding:15px;

    font-size:15px;
  }

  .smoke-postbit-buttons{
    justify-content:center;
  }

  .smoke-postbit-ip{
    width:100%;
    margin:0;

    justify-content:center;
  }
}

/* ==========================================================
   MYBB – BEARBEITUNGSMENÜ FIX
   ========================================================== */

.smoke-postbit {
    overflow: visible;
    isolation: auto;
}

.smoke-postbit-buttons {
    position: relative;
    overflow: visible;
}

.smoke-postbit-button {
    position: relative;
    overflow: visible;
}

.smoke-postbit-button .popup_menu {
    position: absolute !important;
    top: calc(100% + 5px) !important;
    left: auto !important;
    right: 0 !important;

    width: max-content;
    min-width: 190px;
    height: auto;

    padding: 4px;
    margin: 0;

    background: #9e9471;
    border: 1px solid #7c5846;

    box-shadow: 0 6px 15px rgba(19,15,13,.35);

    z-index: 99999 !important;
    text-align: left;
}

.smoke-postbit-button .popup_item_container {
    display: block;
    width: 100%;
}

.smoke-postbit-button .popup_menu a.popup_item {
    display: block !important;
    width: 100%;

    padding: 10px 12px;
    margin: 0;

    color: #4a2d28 !important;
    background: #9e9471 !important;
    border: 0 !important;

    font-family: Antonio, Arial, sans-serif;
    font-size: 11px !important;
    line-height: 1.4 !important;

    letter-spacing: .4px;
    text-align: left;
    text-transform: none;
    white-space: nowrap;

    cursor: pointer;
}

.smoke-postbit-button .popup_menu a.popup_item:hover {
    background: #8c8668 !important;
}

.smoke-postbit-buttons a {
    pointer-events: auto;
    cursor: pointer;
}

/* Bearbeitungsmenü im Vordergrund */

.post.classic:focus-within {
    position: relative;
    z-index: 100;
    overflow: visible !important;
}

.smoke-postbit {
    overflow: visible !important;
    isolation: auto;
}

.smoke-postbit-buttons {
    position: relative;
    overflow: visible !important;
    z-index: 100;
}

.smoke-postbit-button {
    position: relative;
    overflow: visible !important;
}

.smoke-postbit-button .popup_menu {
    position: absolute !important;

    top: auto !important;
    bottom: calc(100% + 5px) !important;
    left: auto !important;
    right: 0 !important;

    z-index: 99999 !important;
}