/* =======================================================
   VEIL OF ASHES – HARRY POTTER NAVY (CLEAN/FLAT)
   Grundlage: Struktur aus deinem Miami-Theme, Farben/Glows ersetzt
   Breite: 1100px
   ======================================================= */

/* ---------- Farbpalette & Maße ---------- */
:root{
  --forum-width: 1100px;

  /* Page & Surfaces */
  --bg-page: #05070c;
  --bg-surface-1: #0b1222;     /* Wrapper / Content */
  --bg-surface-2: #101a30;     /* Karten / Panels */
  --bg-panel: rgba(10, 15, 30, .92);

  /* Typografie */
  --text-strong: #eef2f8;      /* fast weiß */
  --text-main:   #cfd6e3;      /* silber */
  --text-dim:    #9aa6bd;      /* gedämpft */

  /* Akzente (Silber / Eisblau) */
  --primary:        #aeb9cc;               /* Silber */
  --primary-strong: #eef2f8;               /* hell-silber */
  --primary-soft:   rgba(174,185,204,.18);
  --primary-dim:    rgba(174,185,204,.45);

  --accent-blue:    #7f9cff;               /* magisches Blau */
  --accent-blue-dim:rgba(127,156,255,.55);

  /* Linien */
  --line:          rgba(174,185,204,.22);
  --line-strong:   rgba(174,185,204,.45);
  --card-line:     rgba(174,185,204,.14);

  /* Glows (sehr dezent; clean/flat) */
  --glow:          rgba(127,156,255,.16);
  --glow-strong:   rgba(127,156,255,.28);

  /* Buttons */
  --btn-bg:        rgba(15, 25, 45, .75);
  --btn-hover:     rgba(22, 35, 65, .85);
  --btn-active:    rgba(28, 45, 85, .95);

  /* Tabellen-Zeilen */
  --row-1: rgba(12, 18, 34, .86);
  --row-2: rgba(10, 15, 30, .78);
  --row-hover: rgba(127,156,255,.12);

  /* Hilfswerte */
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 10px 28px rgba(0,0,0,.55);
}

/* ---------- Grundlayout ---------- */
html{scroll-behavior:smooth;}
body{
  margin:0;
  padding:0;
  font: 13px/1.55 Tahoma, Verdana, Arial, sans-serif;
  color: var(--text-main);

  /* Hogwarts-Nacht Hintergrund */
  background:
    radial-gradient(1200px 700px at 50% -10%,
      rgba(127,156,255,.22),
      transparent 60%),
    radial-gradient(900px 600px at 15% 20%,
      rgba(174,185,204,.06),
      transparent 55%),
    linear-gradient(180deg, #05070c, #02030a) fixed;
}

/* Links */
a:link,a:visited{
  color:var(--accent-blue);
  text-decoration:none;
}
a:hover,a:active{
  color:var(--primary-strong);
  text-decoration:underline;
  text-shadow:none;
}

/* ---------- Breiten-Wrapper ---------- */
.wrapper,
#header,#logo,.navbar,#panel,#content,#footer,.newsflash-wrapper{
  max-width: var(--forum-width);
  margin-left:auto; margin-right:auto;
}

/* =======================================================
   HEADER / LOGO / NAVIGATION
   ======================================================= */
#logo{
  padding:22px 0 18px;
  text-align:center;
  background:
    radial-gradient(900px 260px at 50% 0,
      rgba(127,156,255,.14),
      transparent 70%),
    linear-gradient(180deg,
      rgba(12,18,40,.88),
      rgba(10,15,30,.72));
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(0,0,0,.55);
}
#logo a{display:inline-block;}
#logo img{
  max-width:100%; height:auto; display:block; margin:0 auto;
  border-radius: var(--radius-sm);
  filter:
    drop-shadow(0 0 14px rgba(0,0,0,.65))
    drop-shadow(0 0 18px rgba(127,156,255,.10));
}

/* Top-Navigation */
.navbar{
  background:
    linear-gradient(180deg,
      rgba(12,18,34,.92),
      rgba(9,12,24,.92));
  border: 1px solid var(--line);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow);
}
.navbar .menu{
  list-style:none; padding:10px 12px; margin:0;
  display:flex; gap:10px; flex-wrap:wrap; justify-content:center;
}
.navbar .menu li{display:inline-flex;}
.navbar .menu li a{
  display:inline-block; padding:9px 16px;
  border-radius:999px;
  background: var(--btn-bg);
  color: var(--text-strong);
  border:1px solid var(--line);
  font-weight:700; letter-spacing:.2px;
  text-decoration:none;
  text-transform:uppercase;
  font-size:11px;
  transition:
    background .2s ease,
    transform .1s ease,
    box-shadow .2s ease,
    border-color .2s ease;
}
.navbar .menu li a:hover{
  background: var(--btn-hover);
  border-color: var(--line-strong);
  transform: translateY(-1px);
  box-shadow: none;
}
.navbar .menu li a:active{
  background: var(--btn-active);
  transform: translateY(0);
}

/* =======================================================
   PANEL (2. Leiste wie Navigation)
   ======================================================= */
#panel{
  margin-top:10px;
  background:
    linear-gradient(180deg,
      rgba(12,18,34,.92),
      rgba(9,12,24,.90));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: var(--text-main);
  position:relative; z-index:30;
}
#panel .upper{ padding:10px 12px; }
#panel .upper ul{
  list-style:none; padding:0; margin:0;
  display:flex; gap:10px; flex-wrap:wrap; justify-content:center;
}
#panel .upper li{display:inline-flex;}
#panel .upper a{
  display:inline-block; padding:8px 14px;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--text-strong);
  border: 1px solid var(--line);
  font-weight:700;
  text-decoration:none;
  transition:
    background .2s ease,
    transform .1s ease,
    border-color .2s ease,
    box-shadow .2s ease;
}
#panel .upper a:hover{
  background: var(--btn-hover);
  border-color: var(--line-strong);
  transform: translateY(-1px);
  box-shadow: none;
}

/* Klick-Sicherheit */
.navbar, #panel { position:relative; z-index:30; }
.navbar a, #panel a { position:relative; z-index:31; pointer-events:auto; }

/* =======================================================
   NEWSFLASH (Startseite, unter Panel)
   ======================================================= */
.newsflash-wrapper{
  margin:14px auto 18px;
  background:
    linear-gradient(180deg,
      rgba(12,18,34,.86),
      rgba(9,12,24,.84));
  border:1px solid var(--line);
  border-radius: var(--radius);
  padding:14px;
  box-shadow: var(--shadow);
}
#newsflash{
  width:100%;
  border-collapse:separate;
  border-spacing:10px;
}
.nfheadline{
  font-weight:800; letter-spacing:.7px;
  font-size:12px; text-transform:uppercase;
  color: var(--primary-strong);
  background: rgba(8,12,24,.65);
  padding:6px 8px; margin-bottom:8px;
  border: 1px solid var(--line);
  border-left-color: var(--accent-blue-dim);
  border-radius: var(--radius-sm);
  text-align:right;
  box-shadow: inset 0 0 12px rgba(0,0,0,.55);
}
.nftextfeldlinks,.nftextfeldbig,.nftextfeldsmall{
  background: rgba(10,15,30,.72);
  color: var(--text-main);
  border: 1px solid var(--card-line);
  border-radius: var(--radius-sm);
  box-shadow: inset 0 0 10px rgba(0,0,0,.55);
}
.nftextfeldlinks{ padding:10px; text-align:center; }
.nftextfeldbig{ padding:12px; height:160px; overflow:auto; }
.nftextfeldsmall{ padding:12px; height:100px; overflow:auto; }

#newsflash a{
  color: var(--accent-blue);
  font-weight:700;
  text-transform:uppercase;
}
#newsflash a:hover{
  color:var(--primary-strong);
  text-decoration:underline;
  text-shadow:none;
}
.nftextfeldlinks a{ padding:2px 10px; }

.nfweather{
  width:65px; float:left; margin:0 12px 6px 0; border-radius:10px;
  border:1px solid var(--card-line);
  background: rgba(0,0,0,.15);
}

.nfteam{
  border:1px solid var(--card-line);
  border-radius:10px;
  margin:0 6px;
  transition:transform .13s ease, box-shadow .2s ease;
}
.nfteam:hover{
  transform:translateY(-2px);
  box-shadow: 0 0 12px rgba(127,156,255,.18);
}

/* Scrollbar im Newsflash */
#newsflash ::-webkit-scrollbar{
  width:8px;
  background: rgba(0,0,0,.20);
}
#newsflash ::-webkit-scrollbar-thumb{
  background: rgba(174,185,204,.28);
  border-radius:4px;
}

/* =======================================================
   CONTENT & FORUMLISTE
   ======================================================= */
#content{
  background: var(--bg-surface-1);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 14px 26px;
  box-shadow: var(--shadow);
}

/* Tabellenrahmen als Card */
.tborder{
  width:100%;
  margin: 22px auto;
  background:
    linear-gradient(180deg,
      rgba(10,15,30,.92),
      rgba(7,10,20,.88));
  border:1px solid var(--line);
  border-radius: var(--radius);
  overflow:hidden;
}

/* Kopfbereiche */
.thead{
  background:
    radial-gradient(600px 180px at 0% 0%,
      rgba(127,156,255,.12),
      transparent 60%),
    radial-gradient(600px 180px at 100% 100%,
      rgba(174,185,204,.06),
      transparent 60%),
    linear-gradient(180deg,
      rgba(12,18,34,.92),
      rgba(9,12,24,.92));
  color: var(--text-strong);
  padding: 16px 18px;
  font-weight:800; letter-spacing:.4px;
  border-bottom:1px solid var(--line);
  text-shadow: none;
}
.thead a:link,.thead a:visited{
  color: var(--primary-strong);
  text-decoration:none;
}
.thead a:hover{
  color: var(--accent-blue);
  text-decoration:underline;
  text-shadow:none;
}

.tcat{
  background: rgba(15,25,45,.72);
  color: var(--text-strong);
  padding: 10px 12px;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  font-weight:800; text-transform:uppercase; letter-spacing:.5px;
}

/* Zeilen */
.trow1,.trow2{
  color: var(--text-main);
  border-bottom:1px solid var(--card-line);
  padding: 14px 12px;
  background: var(--row-1);
  transition: background .25s ease;
}
.trow2{ background: var(--row-2); }
.trow1:hover,.trow2:hover{ background: var(--row-hover); }

.trow_sep{
  background: rgba(10,15,30,.92);
  color: var(--text-dim);
  padding:8px 10px;
  border-bottom:1px solid var(--line);
  font-weight:700;
}

/* Footer einer Tabelle */
.tfoot{
  background: rgba(9,12,24,.92);
  color: var(--text-dim);
  padding: 10px 12px;
  border-top:1px solid var(--line);
}

/* =======================================================
   FORUM STATUS ICONS (sauber EINMAL definiert)
   Du kannst hier deine PNGs austauschen, wenn du willst.
   ======================================================= */
.forum_status,
.forum_on,
.forum_off,
.forum_offclose,
.forum_offlock,
.forum_offlink{
  width: 90px !important;
  height: 90px !important;
  display: inline-block !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  image-rendering: auto;
  border-radius: 12px;
}

/* Standard: falls du nichts setzt, sieht man nur eine Fläche */
.forum_status{
  background-image: none;
  background-color: rgba(0,0,0,.10);
  border:1px solid var(--card-line);
}

/* Deine bisherigen Icon-Links waren „Miami“; ich lasse sie drin,
   damit nichts kaputt geht – du kannst sie später ersetzen. */
.forum_on{
  background-image: url(https://i.ibb.co/TBMv5HLK/New.png) !important;
}
.forum_off{
  background-image: url(https://i.ibb.co/zh1TfRDq/Old.png) !important;
}
.forum_offclose,
.forum_offlock{
  background-image: url(https://i.ibb.co/3yLcmV5M/Closed.png) !important;
}
.forum_offlink{
  background-image: url(https://i.ibb.co/m5XZJ7Fr/Lucid-Realism-a-cinematic-photo-of-A-Miami-Sunset-forum-icon-4-1-removebg-preview.webp) !important;
}

/* Optionaler Wrapper (falls du ihn im Template nutzt) */
.forum-icon{
  width: 90px;
  height: 90px;
  border-radius: 14px;
  overflow:hidden;
  background: rgba(255,255,255,0.03);
  border:1px solid var(--card-line);
  box-shadow: none;
  display:flex;
  align-items:center;
  justify-content:center;
}
.trow1:hover .forum-icon,
.trow2:hover .forum-icon{
  transform: translateY(-1px);
  transition: .25s ease;
  box-shadow: 0 0 16px rgba(127,156,255,.14);
}

/* =======================================================
   FOOTER
   ======================================================= */
#footer{
  margin: 20px auto 32px;
  background:
    linear-gradient(180deg,
      rgba(12,18,34,.92),
      rgba(9,12,24,.92));
  border:1px solid var(--line);
  border-radius: var(--radius);
  overflow:hidden;
  box-shadow: var(--shadow);
}
#footer .upper{
  background: rgba(10,15,30,.92);
  border-bottom:1px solid var(--line);
  padding:10px 12px;
}
#footer .upper .menu{
  list-style:none;
  padding:0; margin:0;
  display:flex; gap:10px; flex-wrap:wrap;
}
#footer .upper .menu li a{
  color:var(--accent-blue);
  font-weight:700;
}
#footer .upper .menu li a:hover{
  color:var(--primary-strong);
  text-decoration:underline;
  text-shadow:none;
}

#footer .lower{
  color: var(--text-dim);
  padding:10px 12px 14px;
  font-size:12px;
  display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap;
}
#footer .lower a{ color: var(--accent-blue); }
#footer .lower a:hover{
  color: var(--primary-strong);
  text-shadow:none;
}

#footer .upper .theme,
#footer .upper .language{ margin-left:auto; }

#footer select{
  background: rgba(5,7,12,.55);
  color:var(--text-strong);
  border:1px solid var(--line);
  border-radius:8px;
  padding:6px 8px;
}

/* =======================================================
   FORM/KONTROLLEN
   ======================================================= */
input.textbox, textarea, select{
  background: rgba(5,7,12,.55);
  color:var(--text-strong);
  border:1px solid var(--line);
  border-radius:8px;
  padding:6px 8px;
  outline:0;
}
input.textbox:focus, textarea:focus, select:focus{
  border-color: var(--line-strong);
  box-shadow: 0 0 0 3px rgba(127,156,255,.10);
}
button, input.button{
  background: var(--btn-bg);
  color: var(--text-strong);
  border:1px solid var(--line);
  border-radius: 999px;
  padding:7px 14px;
  cursor:pointer;
  text-transform:uppercase;
  font-weight:700;
  letter-spacing:.3px;
  transition:
    background .2s ease,
    transform .1s ease,
    border-color .2s ease,
    box-shadow .2s ease;
}
button:hover, input.button:hover{
  background: var(--btn-hover);
  border-color: var(--line-strong);
  box-shadow: none;
  transform: translateY(-1px);
}
button:active, input.button:active{
  background: var(--btn-active);
  transform: translateY(0);
}

/* =======================================================
   KLEINKRAM & UTILITY
   ======================================================= */
.scaleimages img{ max-width:100%; height:auto; }
.navigation a{ color:var(--accent-blue); }
.navigation a:hover{
  color: var(--primary-strong);
  text-shadow:none;
}

.smalltext{ color:var(--text-dim); }

hr{
  border:0; height:1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

/* Sicherheit: CP-Links anklickbar */
.navbar, #panel, .navbar a, #panel a{ pointer-events:auto; }

/* Leichte Responsive-Anpassung */
@media (max-width: 100%){
  :root{ --forum-width: 95vw; }
}

/* ===== Accountswitcher / Topbar etc. ===== */
#accountswitcher_header {
  position: relative;
  float: right;
  cursor: pointer;
}

#accountswitcher_header_popup {
  padding: 0 30px 0 15px;
  position: absolute;
  top:0;
  display: none;
  opacity: 1;
}

#accountswitcher_header_popup ul {
  position: absolute;
  left: 0;
  padding-left: 10px;
  padding-right: 20px;
  min-width: 80px;
  margin-top:17px;
  line-height: 120%;
  border-bottom-right-radius: 10px;
  border-bottom-left-radius: 15px;
  white-space: pre-line;
  background: rgba(9,12,24,.96);
  border:1px solid var(--line);
}

[id*="profile_switch_"] > img { height: 32px; width: auto; }
[id*="profile_link_"] { list-style-type: none; }
[id*="profile_link_"] > a > img { height: 32px; width: auto; }

.acclist_outer {
  text-align: center;
  float: left;
  border: 1px solid var(--line);
  width: 100%;
  background: rgba(10,15,30,.82);
  border-radius: var(--radius);
}

.acclist_att { padding-left: 20px; }
.acclist_att > img { height: 44px; width: auto; }
.acclist_mast { padding-left: 30px; }
.acclist_mast > img { height: 44px; width: auto; }

.acclist_card_mast {
  float:left;
  width: 100%;
  padding-right: 0;
  border-bottom: 1px solid var(--line);
}
.acclist_card_mast > img { height: 44px; width: auto; }

.acclist_card_att {
  float:left;
  width: 250px;
  text-align: center;
}
.acclist_card_hidden {
  text-align: center;
  padding-top: 30px;
  float: left;
  width: 250px;
  border: none;
}
.acclist_card_att > img {
  height: 100px;
  width: auto;
}

.profile_card_mast,
.profile_card_att{
  padding: 5px;
  background: none;
  border: none;
}

/* Sidenav vom Accountswitcher */
.as_head_drop { list-style-type: none; white-space: nowrap; }
.as_head_drop > img,
.as_head_userbit > img,
.as_header > img,
.as_header > li > img {
  height: 22px;
  width: auto;
}
.as_head_userbit { list-style: none; }

.as_header {
  border-top: 1px solid var(--line);
  margin-top: 7px!important;
  padding-top: 7px!important;
  clear: both;
  min-width: 400px;
}

.as_side_user {
  list-style-type: none;
  white-space: nowrap;
  height: 24px;
}

.as_menu-arrow {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.08);
  width: 10px;
  height: 100%;
  border: 5px solid transparent;
  transition: opacity .4s ease .4s;
}

.as_sidenav {
  height: 100%;
  width: 0;
  position: fixed;
  z-index: 10000;
  top: 0;
  left: 0;
  background-color: #05070c;
  overflow-x: hidden;
  transition: 0.5s;
  padding-top: 60px;
  border-right: 1px solid var(--line);
}
.as_sidenav a {
  padding: 8px 8px 8px 20px;
  text-decoration: none;
  font-size: 15px;
  color: var(--text-main);
  display: inline-block;
  transition: 0.3s;
}
.as_sidenav a:hover { color: var(--text-strong); }
.as_sidenav .closebtn {
  position: absolute;
  top: 0;
  right: 25px;
  font-size: 36px;
  margin-left: 50px;
}
.as_sidenav ul { margin-top: 40px; }
.as_sidenav ul li {
  display: inline-block;
  width: 100%;
  list-style: none;
  font-size: 15px;
  text-align: left;
  padding: 3px 0px;
}
.as_sidenav ul li img { height: 22px; width: auto; }
.as_sidenav ul li:before {
  content: "";
  margin-right: 5px;
  color: rgba(255, 255, 255, 0.2);
}

@media screen and (max-height: 450px) {
  .as_sidenav {padding-top: 15px;}
  .as_sidenav a {font-size: 15px;}
}

/* Fix: Topbar immer ganz oben */
.topbar{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9999;
  display:flex; align-items:center; gap:16px;
  background: rgba(9,12,24,.96);
  padding:6px 14px;
  box-shadow: 0 0 14px rgba(0,0,0,.75);
  border-bottom: 1px solid rgba(174,185,204,.10);
}
#container{ padding-top: 56px; }

.topbar-avatar{
  display:block;
  margin-left:40px;
  margin-right:10px;
}
.topbar-avatar img{
  width:44px;
  height:44px;
  border-radius:70%;
  object-fit:cover;
  display:block;
  border:1px solid rgba(174,185,204,.18);
}

.toplink{
  color:var(--text-strong);
  text-decoration:none;
  padding:6px 8px;
  border-radius:6px;
}
.toplink:hover{ background:rgba(255,255,255,.06); }

.badge, .ip-badge{
  display:inline-block; min-width:18px; padding:1px 6px;
  border-radius:10px;
  background: rgba(15,25,45,.75);
  color: var(--text-strong);
  font-size:14px; line-height:18px; text-align:center;
  margin-left:4px;
  border:1px solid rgba(174,185,204,.16);
}

/* Dropdown */
.dropdown{ position:relative; }
.dropbtn{
  background:transparent;
  border:0;
  color:var(--text-strong);
  font-weight:600;
  display:flex; align-items:center; gap:6px;
  cursor:pointer;
  padding:6px 8px;
}
.dropbtn:hover{
  background:rgba(255,255,255,.06);
  border-radius:6px;
}
.dropdown-menu{
  position:absolute;
  top:calc(100% + 8px);
  left:0;
  background: rgba(9,12,24,.98);
  border-radius:8px;
  min-width:240px;
  padding:10px;
  box-shadow:0 10px 22px rgba(0,0,0,.55);
  display:none;
  border:1px solid var(--line);
}
.dropdown.open .dropdown-menu{ display:block; }
.dropdown-menu a{
  display:block;
  padding:8px 10px;
  color:var(--text-main);
  text-decoration:none;
  border-radius:6px;
}
.dropdown-menu a:hover{ background:rgba(255,255,255,.06); }
.dropdown-name{
  padding:6px 10px 10px;
  color:var(--text-strong);
  font-weight:700;
  border-bottom:1px solid rgba(174,185,204,.10);
  margin-bottom:6px;
}
.sep{ flex:1; }

@media (max-width:900px){
  .topbar{ flex-wrap:wrap; gap:10px; }
  .sep{ display:none; }
}

/* ===== forumdisplay: auf 1100px Schiene zentrieren ===== */
#content.wrapper {
  max-width: var(--forum-width);
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}
#content .tborder {
  width: 100%;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}
#content .thead,
#content .tcat,
#content .trow1,
#content .trow2,
#content .tfoot {
  box-sizing: border-box;
}
html, body { overflow-x: hidden; }

/* Aktionsleiste */
#content .thread_controls,
#content .pagination,
#content .thread_tools,
#content .inline_rating {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
#content .thread_controls .float_left,
#content .thread_controls .float_right,
#content .pagination .float_left,
#content .pagination .float_right,
#content .thread_tools .float_left,
#content .thread_tools .float_right {
  float: none !important;
}
#content .thread_controls { justify-content: space-between; }

#content .thread_controls a.button,
#content .thread_controls .button,
#content .pagination a,
#content .pagination .pagination_current {
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--btn-bg);
  color: var(--text-strong);
  text-decoration: none;
  padding: 6px 12px;
}
#content .thread_controls a.button:hover,
#content .pagination a:hover {
  background: var(--btn-hover);
  border-color: var(--line-strong);
  box-shadow: none;
}
#content .new_thread_button,
#content a.new_thread_button { white-space: nowrap; }

#content table {
  border-spacing: 0;
  border-collapse: separate;
  width: 100%;
}
#content .trow1,
#content .trow2,
#content .trow1 td,
#content .trow2 td {
  word-wrap: break-word;
  overflow-wrap: anywhere;
}
#content .thead { padding-left: 16px; padding-right: 16px; }
#content .trow1 td,
#content .trow2 td,
#content .tcat td,
#content .tfoot td {
  padding-left: 12px;
  padding-right: 12px;
}
.lan-post-message { max-width: 100%; overflow-wrap: anywhere; }

/* Globale Bühne */
.page-narrow{
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  padding: 0 14px;
  box-sizing: border-box;
}

/* Post-Buttons unten rechts */
.post .post-buttons{
  clear: both;
  display:flex;
  justify-content:flex-end;
  flex-wrap:wrap;
  gap:8px;
  margin-top:12px;
}
.post .post-buttons a,
.post .post-buttons button,
.post .post-buttons input[type="submit"]{
  display:inline-block;
  padding:6px 12px;
  border-radius:8px;
  font-size:13px;
  font-weight:600;
  background: var(--btn-bg);
  border:1px solid var(--line);
  color:var(--text-strong);
  text-decoration:none;
  line-height:1.2;
  transition:background .2s, border-color .2s, transform .08s;
  cursor:pointer;
}
.post .post-buttons a:hover,
.post .post-buttons button:hover,
.post .post-buttons input[type="submit"]:hover{
  background: var(--btn-hover);
  border-color: var(--line-strong);
  color:var(--primary-strong);
  transform: translateY(-1px);
}
.post_content::after{
  content:"";
  display:block;
  clear:both;
}

/* Untere Thread-Leiste */
.thread-bottom{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin-top:12px;
  clear:both;
}
.thread-bottom-left{flex:1;}
.thread-reply-button{
  display:flex;
  justify-content:flex-end;
  flex-wrap:wrap;
  gap:8px
}
.thread-reply-button a,
.thread-reply-button button,
.thread-reply-button input[type="submit"]{
  display:inline-block;
  padding:6px 12px;
  border-radius:8px;
  font-size:13px;
  font-weight:600;
  background:var(--btn-bg);
  border:1px solid var(--line);
  color:var(--text-strong);
  text-decoration:none;
  line-height:1.2;
  transition:background .2s, border-color .2s, transform .08s;
  cursor:pointer;
}
.thread-reply-button a:hover,
.thread-reply-button button:hover,
.thread-reply-button input[type="submit"]:hover{
  background:var(--btn-hover);
  border-color:var(--line-strong);
  color:var(--primary-strong);
  transform:translateY(-1px);
}
.thread-footer-tools{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin-top:14px;
  clear:both;
}
.thread-footer-right{text-align:right}
#quick_reply_form,.quick_reply{
  clear:both;
  margin-top:16px;
  width:100%;
  box-sizing:border-box;
}

/* Lesetext in Beiträgen/Editor */
:root{
  --text-reading: #d6dde8;
}
.post .post_body,
.lan-post-message,
.quick_reply textarea,
.messageEditor textarea,
#message_newreply,
#message_newthread {
  color: var(--text-reading);
  line-height: 2.0;
}
.post .post_body a{
  color: var(--accent-blue);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgba(127,156,255,.35);
  text-shadow: none;
}
.post .post_body a:hover{
  text-decoration-color: rgba(127,156,255,.70);
  text-shadow: none;
}

/* ===== Teamseite (Navy / Silver) ===== */
.teampage{
  max-width: var(--forum-width);
  margin: 0 auto;
}

.teampage-header{
  background: linear-gradient(180deg, rgba(12,18,34,.92), rgba(9,12,24,.90));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  margin-bottom: 16px;
  text-align: center;
}

.teampage-header h1{
  margin: 0 0 8px;
  color: var(--text-strong);
  letter-spacing: .4px;
  text-shadow: none;
  font-size: 22px;
  font-weight: 800;
}

.teampage-sub{
  margin: 0 0 12px;
  color: var(--text-dim);
}

.teampage-legend{
  display: flex; gap: 8px; flex-wrap: wrap; justify-content: center;
}

.tp-badge{
  display:inline-block; padding:5px 10px; border-radius:999px;
  border:1px solid var(--line);
  color: var(--text-strong);
  font-weight:700;
  background: rgba(15,25,45,.55);
}
.tp-admin{  box-shadow: none; }
.tp-mod{    box-shadow: none; }
.tp-tech{   box-shadow: none; }
.tp-design{ box-shadow: none; }
.tp-support{box-shadow: none; }

.teampage-section{ margin: 18px 0; }
.teampage-section-head{
  background: rgba(15,25,45,.60);
  color: var(--text-strong);
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 800; text-transform: uppercase; letter-spacing: .5px;
  margin-bottom: 10px;
}

/* Grid */
.team-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

/* Card */
.team-card{
  position: relative;
  background: linear-gradient(180deg, rgba(12,18,34,.92), rgba(9,12,24,.90));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.team-card__banner{
  height: 84px;
  background:
    radial-gradient(600px 160px at -10% -30%, rgba(127,156,255,.14), transparent 60%),
    radial-gradient(600px 160px at 110% 130%, rgba(174,185,204,.08), transparent 60%),
    linear-gradient(180deg, rgba(15,25,45,.85), rgba(12,18,34,.92));
  border-bottom: 1px solid var(--line);
}

.team-card__avatar{
  position: absolute; top: 44px; left: 16px;
  width: 72px; height: 72px; border-radius: 12px;
  border: 1px solid var(--line-strong);
  box-shadow: none;
  overflow: hidden; background:#0b1222;
}
.team-card__avatar img{ width:100%; height:100%; object-fit:cover; display:block; }

.team-card__body{ padding: 56px 14px 14px 14px; }

.team-card__name{
  font-weight: 800; letter-spacing: .2px;
  color: var(--text-strong); margin-bottom: 4px;
}
.team-card__name a{ color: var(--accent-blue); text-decoration:none; }
.team-card__name a:hover{ color: var(--primary-strong); text-decoration:underline; }

.team-card__role{ margin-bottom: 8px; }

.team-card__meta{
  display:flex; gap:10px; flex-wrap:wrap;
  color: var(--text-dim);
  font-size: 12px;
  margin-bottom: 10px;
}

.team-card__actions{ display:flex; gap:8px; flex-wrap:wrap; }

.tp-btn{
  display:inline-block; padding:8px 12px; border-radius:999px;
  background: var(--btn-bg); color: var(--text-strong); border:1px solid var(--line);
  text-decoration:none; font-weight:700;
  transition: background .2s ease, transform .1s ease, border-color .2s ease;
}
.tp-btn:hover{
  background: var(--btn-hover);
  border-color: var(--line-strong);
  transform: translateY(-1px);
}
.tp-btn--ghost{
  background: transparent;
  border-color: var(--line-strong);
}
.tp-btn--ghost:hover{
  background: rgba(15,25,45,.45);
}

/* =======================================================
   Legende: sauber als Grid (dein letzter Block war gut)
   ======================================================= */
dl.forum_legend{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  justify-items: center;
  align-items: center;
  gap: 20px 40px;
  margin-top: 25px;
}
dl.forum_legend dt,
dl.forum_legend dd{
  margin: 0;
  padding: 0;
}
dl.forum_legend dt .forum_status{
  width: 70px !important;
  height: 70px !important;
  display: block;
  background-size: cover !important;
  margin: 0 auto 6px auto;
}
dl.forum_legend dd{
  text-align: center;
  color: var(--text-main);
  font-size: 13px;
  margin-top: -6px;
  line-height: 1.3;
}

/* =======================================================
   PROFILE / MSC (dein Profilpaket – Farben umgestellt)
   ======================================================= */
.msc-profile-wrapper {
  display: flex;
  gap: 25px;
  max-width: 1200px;
  margin: 30px auto;
  padding: 20px;
  color: var(--text-main);
}

.msc-sidebar {
  width: 260px;
  background: rgba(10, 15, 28, .85);
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 0 20px rgba(0,0,0,.5);
  border:1px solid rgba(174,185,204,.10);
}

.msc-avatar img {
  width: 100%;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: none;
  border:1px solid rgba(174,185,204,.16);
}

.msc-username {
  margin-top: 12px;
  text-align: center;
  font-size: 22px;
  font-weight: bold;
  color: var(--text-strong);
  text-shadow: none;
  letter-spacing:.3px;
}

.msc-usertitle {
  text-align: center;
  font-size: 14px;
  color: var(--accent-blue);
  margin-bottom: 15px;
}

.msc-divider {
  height: 2px;
  background: linear-gradient(90deg,transparent,rgba(127,156,255,.35),transparent);
  margin: 15px 0;
}

.msc-basic-info {
  list-style: none;
  margin: 0;
  padding: 0;
}

.msc-basic-info li {
  padding: 6px 0;
  border-bottom: 1px solid rgba(174,185,204,.10);
  font-size: 14px;
}

.msc-basic-info span {
  color: var(--primary);
  font-weight: bold;
}

.msc-main {
  flex: 1;
  background: rgba(12,18,33,.82);
  padding: 25px;
  border-radius: 16px;
  box-shadow: 0 0 22px rgba(0,0,0,.45);
  border:1px solid rgba(174,185,204,.10);
}

.msc-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap:wrap;
}

.msc-tabs button {
  padding: 10px 18px;
  border-radius: 20px;
  border: 1px solid rgba(174,185,204,.14);
  background: rgba(15,25,45,.55);
  color: var(--text-strong);
  cursor: pointer;
  transition: .3s;
  font-weight: 600;
}

.msc-tabs button:hover {
  background: rgba(22,35,65,.65);
  color: var(--primary-strong);
}

.msc-tabs button.active {
  background: rgba(28,45,85,.65);
  color: var(--primary-strong);
  box-shadow: none;
  border-color: rgba(127,156,255,.25);
}

.msc-tab {
  display: none;
  font-size: 15px;
  line-height: 1.6;
  white-space: pre-line;
  max-height: 380px;
  overflow-y: auto;
  padding-right: 10px;
  color: var(--text-main);
}

.msc-tab.active { display: block; }

/* Scrollbar Style */
.msc-tab::-webkit-scrollbar { width: 8px; }
.msc-tab::-webkit-scrollbar-track {
  background: rgba(255,255,255,.05);
  border-radius: 10px;
}
.msc-tab::-webkit-scrollbar-thumb {
  background: rgba(174,185,204,.30);
  border-radius: 10px;
}
.msc-tab::-webkit-scrollbar-thumb:hover {
  background: rgba(174,185,204,.45);
}

.msc-tab img { display: block; margin: 0 auto; }

/* Profil-GIF unter dem Avatar */
.msc-profile-gif {
  margin-top: 15px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: none;
  border:1px solid rgba(174,185,204,.12);
}
.msc-profile-gif img {
  width: 100%;
  display: block;
  border-radius: 12px;
}

.msc-profile-gif {
  width: 250px;
  height: 150px;
  margin: 15px auto 0 auto;
}
.msc-profile-gif img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Profil-Banner oben im rechten Bereich */
.msc-profile-banner {
  width: 100%;
  height: 200px;
  margin-bottom: 20px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: none;
  border:1px solid rgba(174,185,204,.12);
}
.msc-profile-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 14px;
}

/* Highlight Package (entschärft, clean) */
@keyframes softPulse {
  0% { box-shadow: 0 0 10px rgba(127,156,255,0.10); }
  50% { box-shadow: 0 0 18px rgba(127,156,255,0.16); }
  100% { box-shadow: 0 0 10px rgba(127,156,255,0.10); }
}
.msc-profile-wrapper {
  box-shadow: 0 0 22px rgba(0,0,0,.40);
  animation: softPulse 10s infinite ease-in-out;
}

/* Cine Hover (dezent) */
.msc-profile-banner img,
.msc-profile-gif img,
.msc-avatar img {
  transition: 0.35s ease;
  filter: brightness(0.95) contrast(1.05);
}
.msc-profile-banner img:hover,
.msc-profile-gif img:hover,
.msc-avatar img:hover {
  filter: brightness(1.05) contrast(1.1);
  transform: scale(1.01);
}

/* Username etwas edler */
.msc-username{
  font-weight: 800;
}

/* Handlung-Tab (optional) */
.msc-tabs button[data-tab="handlung"] {
  color: var(--primary-strong);
}
.msc-tabs button[data-tab="handlung"]:hover {
  box-shadow: none;
}

/* Aktuelle Handlung Box */
.msc-current-plot {
  background: rgba(10, 15, 30, 0.65);
  border-left: 3px solid rgba(127,156,255,0.45);
  padding: 15px 18px;
  margin-top: 20px;
  margin-bottom: 25px;
  border-radius: 10px;
  box-shadow: none;
}
.msc-current-plot h3 {
  margin: 0 0 8px 0;
  color: var(--primary-strong);
  text-shadow: none;
  font-size: 1.2rem;
  font-weight: 700;
}
.msc-current-plot p {
  color: var(--text-main);
  font-size: 0.95rem;
  line-height: 1.45;
}

.msc-preferences-box {
  background: rgba(10, 15, 30, 0.65);
  padding: 18px 22px;
  margin-top: 30px;
  border-radius: 10px;
  border-left: 3px solid rgba(127,156,255,0.45);
  box-shadow: none;
}
.msc-preferences-box h3 {
  margin: 0 0 10px 0;
  font-size: 1.2rem;
  color: var(--primary-strong);
  text-shadow: none;
}
.msc-preferences-content {
  color: var(--text-main);
  font-size: 0.95rem;
  line-height: 1.45;
  white-space: pre-line;
}

/* Postbit GIF */
.postbit-profile-gif {
  width: 100%;
  height: 150px;
  margin: 10px 0 15px 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: none;
  border:1px solid rgba(174,185,204,.12);
}
.postbit-profile-gif img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Postfields */
.msc-postfields {
  margin-top: 10px;
  color: var(--text-main);
  font-size: 13px;
  line-height: 1.3;
}
.msc-postfield { margin-bottom: 4px; }
.msc-postfield .label {
  color: var(--primary);
  font-weight: 700;
  margin-right: 3px;
}
.msc-post-gif img {
  width: 100%;
  border-radius: 6px;
  margin-bottom: 10px;
  box-shadow: none;
  border:1px solid rgba(174,185,204,.10);
}

/* Post Buttons (Glow-Text entfernt) */
.msc-post-buttons {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-end;
}
.msc-post-buttons a,
.msc-post-buttons span {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-blue) !important;
  text-decoration: none !important;
  text-shadow: none;
  transition: 0.25s ease;
  padding: 2px 0;
}
.msc-post-buttons a:hover,
.msc-post-buttons span:hover {
  color: var(--primary-strong) !important;
  text-shadow: none;
  transform: translateY(-1px);
}
