#header, #logo, #container #header, #container #logo {
    background-image: none !important;
    background: none !important;
}

#logo img {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    max-height: 350px !important;
    object-fit: cover !important;
}
/* ================================================
   SAIL THE SEAS – MyBB Theme CSS
   Dunkel · Dramatisch · Piraten-Atmosphäre
   ================================================ */

@import url(https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Crimson+Text:ital,wght@0,400;0,600;1,400&display=swap);

/* ── FARB-TOKENS ─────────────────────────────── */
:root {
  --ink:        #0d0b0a;
  --deep:       #13100f;
  --surface:    #1c1714;
  --panel:      #221e1a;
  --rim:        #2e2720;
  --gold:       #c8973a;
  --gold-dim:   #8a6520;
  --crimson:    #7a1c1c;
  --crimson-lt: #a02828;
  --salt:       #e8dcc8;
  --mist:       #9e9080;
  --anchor:     #c8973a;
}

/* ── RESET & BASE ────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
  background-color: var(--ink);
  background-image:
    radial-gradient(ellipse at 50% 0%, rgba(122,28,28,0.18) 0%, transparent 60%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c8973a' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  color: var(--salt);
  font-family: 'Crimson Text', Georgia, serif;
  font-size: 17px;
  line-height: 1.65;
  margin: 0;
}

a { color: var(--gold); text-decoration: none; transition: color .2s; }
a:hover { color: var(--salt); }

/* ── WRAPPER ─────────────────────────────────── */
#wrapper, .wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ── HEADER ──────────────────────────────────── */
#header {
  background: linear-gradient(180deg, #0d0b0a 0%, #1a1210 100%);
  border-bottom: 1px solid var(--gold-dim);
  padding: 0;
  position: relative;
  overflow: hidden;
}

#header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

#logo {
  padding: 28px 0 22px;
  display: block;
}

#logo a {
  font-family: 'Cinzel', serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: .18em;
  text-transform: uppercase;
  text-shadow: 0 0 40px rgba(200,151,58,.35);
}

/* ── NAVIGATION ──────────────────────────────── */
#nav, .navigation {
  background: var(--deep);
  border-bottom: 1px solid var(--rim);
  padding: 0;
}

/* MyBB Header-Nav (die Links ganz oben: Portal, Suche, etc.) */
#panel, #menu {
  background: var(--deep);
  border-bottom: 1px solid var(--rim);
  padding: 0 16px;
}

#menu ul, #nav ul, .navigation ul {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  flex-wrap: wrap;
  gap: 0;
}

#menu ul li, #nav ul li, .navigation ul li {
  list-style: none !important;
  display: inline-block;
}

/* Verhindert dass ul/li als Blockelemente gestackt werden */
body > ul, #header ul, #container > ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  flex-wrap: wrap;
  background: var(--deep);
  border-bottom: 1px solid var(--rim);
}

body > ul > li, #header ul li, #container > ul > li {
  display: inline-block;
  list-style: none !important;
}

#nav ul li a, .navigation ul li a,
#menu ul li a, body > ul > li > a {
  display: block;
  padding: 11px 18px;
  font-family: 'Cinzel', serif;
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mist);
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}

#nav ul li a:hover, .navigation ul li a:hover,
#menu ul li a:hover, body > ul > li > a:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* ── BREADCRUMB ──────────────────────────────── */
.navigation_breadcrumb, .breadcrumb {
  background: transparent;
  padding: 10px 0;
  font-size: .82rem;
  color: var(--mist);
}

.navigation_breadcrumb a, .breadcrumb a { color: var(--gold-dim); }
.navigation_breadcrumb a:hover, .breadcrumb a:hover { color: var(--gold); }

/* ── FORUM CATEGORY HEADERS ──────────────────── */
.thead, table.tborder thead tr td,
.category_header, .forum_category .thead {
  background: linear-gradient(90deg, var(--crimson) 0%, #4a1010 100%);
  border: 1px solid var(--crimson-lt);
  color: var(--salt) !important;
  font-family: 'Cinzel', serif;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 10px 14px;
}

/* ── FORUM TABLE ─────────────────────────────── */
table.tborder {
  border: 1px solid var(--rim);
  border-collapse: collapse;
  width: 100%;
  margin-bottom: 20px;
  background: var(--surface);
}

.trow1, tr.trow1 td {
  background: var(--surface);
  border-bottom: 1px solid var(--rim);
}

.trow2, tr.trow2 td {
  background: var(--panel);
  border-bottom: 1px solid var(--rim);
}

.trow1:hover, .trow2:hover {
  background: rgba(200,151,58,.05);
}

table.tborder td {
  padding: 11px 14px;
  vertical-align: middle;
  color: var(--salt);
}

/* Forum name links */
.forumtitle a, .subject_new a, .subject_old a {
  font-family: 'Cinzel', serif;
  font-size: .95rem;
  font-weight: 600;
  color: var(--gold) !important;
  letter-spacing: .04em;
}

.forumtitle a:hover, .subject_new a:hover { color: var(--salt) !important; }

/* Forum description */
.forumdescription, .forum_description {
  color: var(--mist);
  font-size: .9rem;
  margin-top: 3px;
}

/* Stats columns */
.trow1 .smalltext, .trow2 .smalltext,
.lastpost, .forum_lastpost {
  color: var(--mist);
  font-size: .82rem;
}

/* ── TFOOT / TABLE FOOTER ────────────────────── */
.tfoot, table.tborder tfoot tr td {
  background: var(--deep);
  border-top: 1px solid var(--rim);
  color: var(--mist);
  font-size: .82rem;
  padding: 8px 14px;
}

/* ── THREAD / POST AREA ──────────────────────── */
.post_body, .post-content {
  background: var(--surface);
  border: 1px solid var(--rim);
  border-radius: 2px;
  padding: 20px;
  margin-bottom: 16px;
}

.post_head {
  background: var(--panel);
  border-bottom: 1px solid var(--rim);
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.post_author a {
  font-family: 'Cinzel', serif;
  font-weight: 600;
  color: var(--gold) !important;
}

/* ── POSTBIT ─────────────────────────────────── */
.postbit, .post {
  background: var(--surface);
  border: 1px solid var(--rim);
  margin-bottom: 14px;
}

.postbit .postbit-wrapper {
  display: flex;
}

.postbit_author, .post_author_info {
  background: var(--panel);
  border-right: 1px solid var(--rim);
  padding: 16px;
  min-width: 160px;
  text-align: center;
}

.postbit_author .username, .post_author_info .username {
  font-family: 'Cinzel', serif;
  font-weight: 600;
  font-size: .95rem;
  color: var(--gold);
}

.postbit_content, .post_content {
  padding: 16px 20px;
  flex: 1;
  color: var(--salt);
  line-height: 1.7;
}

/* ── USERGROUPS / RANKS ──────────────────────── */
.usergroup_pirat, .group_pirat    { color: var(--gold); }
.usergroup_marine, .group_marine  { color: #4a90d9; }
.usergroup_admin                  { color: var(--crimson-lt); }

/* ── BUTTONS ─────────────────────────────────── */
input[type="submit"], input[type="button"], button,
.button, .btn {
  background: linear-gradient(180deg, #b8832a 0%, #8a6020 100%);
  border: 1px solid var(--gold-dim);
  color: var(--ink);
  font-family: 'Cinzel', serif;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 8px 20px;
  cursor: pointer;
  transition: all .2s;
  border-radius: 1px;
}

input[type="submit"]:hover, button:hover, .button:hover, .btn:hover {
  background: linear-gradient(180deg, #d4a040 0%, #b8832a 100%);
  box-shadow: 0 0 12px rgba(200,151,58,.3);
}

/* ── FORMS ───────────────────────────────────── */
input[type="text"], input[type="email"], input[type="password"],
textarea, select {
  background: var(--deep);
  border: 1px solid var(--rim);
  color: var(--salt);
  font-family: 'Crimson Text', serif;
  font-size: 1rem;
  padding: 8px 12px;
  width: 100%;
  transition: border-color .2s;
  border-radius: 1px;
}

input[type="text"]:focus, input[type="email"]:focus,
input[type="password"]:focus, textarea:focus, select:focus {
  border-color: var(--gold-dim);
  outline: none;
  box-shadow: 0 0 0 2px rgba(200,151,58,.12);
}

select option { background: var(--deep); }

/* ── QUICK REPLY / EDITOR ────────────────────── */
#quick_reply_form, .editor-wrapper {
  background: var(--surface);
  border: 1px solid var(--rim);
  padding: 16px;
  margin-top: 20px;
}

/* ── PAGINATION ──────────────────────────────── */
.pagination {
  color: var(--mist);
  font-size: .85rem;
  margin: 12px 0;
}

.pagination a {
  background: var(--panel);
  border: 1px solid var(--rim);
  color: var(--gold-dim);
  display: inline-block;
  padding: 4px 10px;
  margin: 0 2px;
  transition: all .2s;
}

.pagination a:hover, .pagination .active {
  background: var(--crimson);
  border-color: var(--crimson-lt);
  color: var(--salt);
}

/* ── ONLINE / STATUS LEGEND ──────────────────── */
.online_legend { color: var(--mist); font-size: .82rem; }
.online  { color: #5a9e5a; }
.offline { color: var(--mist); }

/* ── PORTAL / WELCOME BOX ────────────────────── */
.portal_block, .welcomeblock {
  background: var(--surface);
  border: 1px solid var(--rim);
  border-top: 2px solid var(--crimson);
  padding: 16px;
  margin-bottom: 16px;
}

/* ── ALERTS / PM BOX ─────────────────────────── */
.pm_alert, .alert {
  background: rgba(122,28,28,.25);
  border: 1px solid var(--crimson);
  color: var(--salt);
  padding: 10px 14px;
  margin-bottom: 14px;
  font-size: .9rem;
}

/* ── FOOTER ──────────────────────────────────── */
#footer, .footer {
  background: var(--deep);
  border-top: 1px solid var(--rim);
  color: var(--mist);
  font-size: .8rem;
  padding: 20px 0;
  text-align: center;
  margin-top: 30px;
  position: relative;
}

#footer::before {
  content: '';
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 200px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
}

#footer a { color: var(--gold-dim); }
#footer a:hover { color: var(--gold); }

/* ── SCROLLBAR ───────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: var(--rim); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-dim); }

/* ── SELECTION ───────────────────────────────── */
::selection { background: rgba(200,151,58,.3); color: var(--salt); }

/* ── RESPONSIVE ──────────────────────────────── */
@media (max-width: 768px) {
  #logo a { font-size: 1.6rem; }
  #nav ul { flex-wrap: wrap; }
  .postbit .postbit-wrapper { flex-direction: column; }
  .postbit_author { border-right: none; border-bottom: 1px solid var(--rim); min-width: unset; }
  table.tborder { font-size: .88rem; }
}