:root {
  --primary-color: #f5e6c8;
  --secondary-color: rgba(0, 0, 0, 0.55); /* Karten/Hintergrund */
  --brand-font: 'Cinzel Decorative', serif;
  --text-font: 'Noto Serif SC', serif;
  --highlight-color: #d4af37; /* goldene Akzente */
  --hover-color: #ffd966; /* warmes Gold für Hover */
}

/* ==============================
   Allgemeines Layout & Schrift
   ============================== */
body.default {
    background: url('mop-bg.jpg') no-repeat center center fixed;
    background-size: cover;
    color: #fff
}

/* ==============================
   Navigation
   ============================== */
body.default .navbar {
  background-color: rgba(0, 0, 0, 0.7) !important; /* dunkler Balken */
  border-bottom: 3px solid var(--highlight-color);
}

.navbar-brand {
  font-family: var(--brand-font);
  font-size: 1.6rem;
  color: var(--primary-color) !important;
  text-shadow: 2px 2px 2px #000;
}

.navbar-nav .nav-link {
  color: var(--primary-color) !important;
  font-weight: bold;
  transition: color 0.2s;
}

.navbar-nav .nav-link:hover {
  color: var(--highlight-color) !important;
  background-color: rgba(212, 175, 55, 0.2) !important;
  border-radius: 6px;
}

/* ==============================
   Karten / Boxen
   ============================== */
body.default .card,
body.default .bg-secondary {
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid var(--highlight-color);
  border-radius: 12px;
  color: var(--primary-color);
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

body.default .card:hover,
body.default .bg-secondary:hover {
  background: rgba(0, 0, 0, 0.65);
}

/* ==============================
   Überschriften
   ============================== */
h4, h5, h6 {
  color: var(--highlight-color);
  text-shadow: 1px 1px 2px #fff;
  font-family: var(--brand-font);
  margin-bottom: 10px;
}

h4 i {
  color: #c0392b; /* tiefrot für Icons */
  margin-right: 6px;
}

/* ==============================
   Texte & Listen
   ============================== */
p, li {
  color: var(--primary-color);
}

/* ==============================
   Shoutbox
   ============================== */
.shoutbox-message {
  color: #ffffff;
  font-style: italic;
  margin-bottom: 8px;
}

.shoutbox a.shoutbox-popup-link {
  color: var(--primary-color);
  text-decoration: underline;
  cursor: pointer;
}
.shoutbox a.shoutbox-popup-link:hover {
  color: var(--highlight-color);
}

/* ==============================
   Forum / Neuigkeiten
   ============================== */
.right .card h6 {
  color: #2ecc71;
  font-weight: bold;
}

.center .card h5 {
  color: #2980b9;
}

.center .card p {
  color: var(--primary-color);
}

/* ==============================
   Badges
   ============================== */
.badge {
  border: 1px solid #000;
  font-weight: bold;
  text-shadow: 1px 1px 1px #000;
}

/* ==============================
   Buttons
   ============================== */
.btn-warning {
  background: var(--highlight-color);
  border: none;
  color: #000;
  font-weight: bold;
  border-radius: 8px;
}

.btn-warning:hover {
  background: var(--hover-color);
  color: #000;
}

/* ==============================
   Scrollbars (asiatischer Look)
   ============================== */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: rgba(0,0,0,0.5);
}
::-webkit-scrollbar-thumb {
  background: var(--highlight-color);
  border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover {
  background: #b9972f;
}

/* ==============================
   Karten Text-Hover Effekt
   ============================== */
.card:hover h5,
.card:hover h6,
.card:hover p,
.card:hover li {
  color: var(--hover-color);
  transition: color 0.2s ease;
}

/* ==============================
   TS3 Viewer
   ============================== */
.ts3-channel {
  margin-bottom: 10px;
  padding: 5px;
  background: rgba(255,255,255,0.05);
  border-radius: 5px;
}

.ts3-channel-name {
  font-weight: bold;
  font-size: 1.05rem;
  color: #FFD700;
  margin-bottom: 3px;
}

.ts3-client {
  padding-left: 20px;
  font-size: 0.9rem;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 5px;
}

.ts3-client:hover {
  color: #f0c674;
}

.ts3-channel-name i,
.ts3-client i {
  width: 16px;
  text-align: center;
}

/* ==============================
   News / Forum Textkürzung
   ============================== */
.news-preview, .forum-preview {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==============================
   Sidebar Avatar
   ============================== */
.sidebar .avatar {
    width: 60px;           /* kleiner, rund */
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #4d79ff; /* passt zu deinen Highlight-Farben */
    margin-bottom: 10px;
}

/* ==============================
   User Liste
  =============================== */

.user-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.user-card {
    background: rgba(0,0,0,0.4);
    padding: 10px;
    border-radius: 10px;
    text-align: center;
    width: 150px;
    transition: background 0.3s;
}

.user-card:hover {
    background: rgba(0,0,0,0.6);
}

.user-card img.avatar-small {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 5px;
}


body.default .post-content.text-muted {
  color: #f5e6c8 !important;
  font-style: italic;
  background: rgba(0,0,0,0.4);
  padding: 8px 10px;
  border-radius: 6px;
}

/* ======== Edit Thread Box ======== */
.edit-thread-card {
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid var(--highlight-color);
  border-radius: 15px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.6);
  color: var(--primary-color);
}

.edit-thread-card h2 {
  color: var(--highlight-color);
  font-family: var(--brand-font);
  text-shadow: 1px 1px 2px #000;
}

.edit-thread-card .form-label {
  font-weight: bold;
  color: var(--primary-color);
}

.edit-thread-card .form-control {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--highlight-color);
  color: var(--primary-color);
  font-size: 1rem;
}

.edit-thread-card .form-control:focus {
  background: rgba(255, 255, 255, 0.1);
  outline: none;
  border-color: var(--hover-color);
  box-shadow: 0 0 10px var(--highlight-color);
}

.edit-thread-card .content-textarea {
  min-height: 220px;
  resize: vertical;
}

.edit-thread-card .btn-warning {
  font-weight: bold;
}

.edit-thread-card .btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--highlight-color);
  color: var(--primary-color);
}

.edit-thread-card .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  color: var(--hover-color);
}

/* ======== Formatierungsleiste ======== */
.toolbar {
  margin-bottom: 10px;
}

.toolbar .btn {
  margin-right: 5px;
  border-radius: 6px;
  background: var(--highlight-color);
  color: #000;
  border: none;
}

.toolbar .btn:hover {
  background: var(--hover-color);
}

.toolbar .btn i {
  pointer-events: none;
}

/* ==============================
   Emoji-Fallback
   ============================== */
body {
  font-family: "Noto Color Emoji", "Segoe UI Emoji", "Apple Color Emoji", "Twemoji Mozilla", sans-serif;
}

.emoji-picker {
    position: relative;
    background: rgba(0,0,0,0.9);
    padding: 10px;
    margin-top: 5px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.6);
    max-width: 400px;
}

.emoji-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 5px;
}

.emoji-tab {
    background: rgba(255,255,255,0.1);
    border: 1px solid #d4af37;
    color: #fff;
    font-size: 0.8rem;
    padding: 4px 6px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.2s;
}

.emoji-tab.active {
    background: #d4af37;
    color: #000;
}

.emoji-tab:hover {
    background: #ffd966;
    color: #000;
}

.emoji-container {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    max-height: 200px;
    overflow-y: auto;
}

.emoji-btn {
    background: transparent;
    border: none;
    font-size: 22px;
    cursor: pointer;
    transition: transform 0.2s;
}

.emoji-btn:hover {
    transform: scale(1.3);
}
.ts3-viewer {
    max-height: 450px;       /* Höhe des Viewers */
    overflow-y: auto;        /* Scrollbar aktivieren */
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    font-size: 0.9rem;
}

.ts3-viewer::-webkit-scrollbar {
    width: 6px;
}

.ts3-viewer::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.ts3-viewer::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

/* Pulsierende Admin-Nachricht */
@keyframes pulseAdmin {
    0% { background-color: rgba(255,165,0,0.2); }
    50% { background-color: rgba(255,165,0,0.35); }
    100% { background-color: rgba(255,165,0,0.2); }
}

.msg.admin-highlight {
    border-left: 4px solid #FFA500;
    animation: pulseAdmin 1.5s infinite;
}

