@charset "UTF-8";
/* ==============================
   ZL-Konfigurator: Dashboard Styles
============================== */

/* =====================
   Hauptcontainer
====================== */
.dashboard-container {
  max-width: 1100px;
  margin: 4rem auto;
  padding: 2rem 1.5rem;
}


/* =====================
   Hauptüberschrift
====================== */
.dashboard-container h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  color: #b89161;
  margin-bottom: 2.5rem;
}

/* =====================
   Thread-Suche
====================== */

.thread-search-wrapper {
  margin-bottom: 3rem;
  max-width: 100%;
}

.thread-search-form {
  display: flex;
  width: 100%;
  gap: 1rem;
  margin-bottom: 2rem;
}

.thread-search-form input {
  flex: 1;
  padding: 0.8rem 1rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 1rem;
  background: #fff;
  min-width: 0;
}

.thread-search-form button {
  padding: 0.8rem 1.5rem;
  background-color: #d4af7f;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
  white-space: nowrap;
}

.thread-search-form button:hover {
  background-color: #b89161;
}

/* =====================
   Suchergebnisse
====================== */

.search-results {
  padding-left: 0.5rem;
  margin-bottom: 2rem;
  font-family: 'Inter', sans-serif; 
}

.search-results h3 {
  font-family: 'Playfair Display', serif;	
  font-size: 1.2rem;
  color: #b89161;
  margin-bottom: 0.5rem;
}

.search-results ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.search-results li {
  padding: 0.6rem 0;
  border-bottom: 1px solid #eee;
}

.search-results a {
  font-weight: 400;
  color: #b89161;
  text-decoration: none;
}

.search-results a:hover {
  text-decoration: underline;
}

.no-results {
  color: #888;
  padding-left: 0.5rem;
  margin-top: 1rem;
}


/* =====================
   Forum-Kategorie
====================== */
.forum-container {
  margin-bottom: 5rem;
  border: 1px solid #f0e3d2;
  border-radius: 12px;
  background: #fffefb;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
  overflow: hidden;
}

.forum-header {
  font-family: 'Playfair Display', serif;	
  background-color: #f8f5f0;
  padding: 1rem 1.5rem;
  font-size: 1.2rem;
  font-weight: bold;
  color: #b89161;
  border-bottom: 1px solid #eee;
}

/* Forum-Tabelle */
.forum-table {
  width: 100%;
  border-collapse: collapse;
}

.forum-table th,
.forum-table td {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #eee;
  text-align: left;
  font-size: 0.95rem;
}

.forum-table th {
  background-color: #fcf8f3;
  font-weight: 400;
  color: #b89161;
}

.forum-table tr.unread-category {
  background-color: #fff7ee;
}

.forum-table tr.unread-category td a strong::after {
  content: " ●";
  color: #d9534f;
  font-size: 1.2rem;
  vertical-align: middle;
}

/* Beschreibung */
.forum-table td small {
  color: #777;
}

/* Links */
.forum-table td a {
  text-decoration: none;
  color: #333;
  font-weight: 400;
}

.forum-table td a:hover {
  color: #b89161;
}

/* =====================
   Statistiken
====================== */
#forum-statistik {
  margin-top: 1.5rem; /* statt 4rem */
  padding-top: 0.5rem; /* statt 2rem */
}


#forum-statistik h2 {
  font-size: 1.5rem;
  color: #b89161;
  margin-bottom: 1.5rem;
}

.stat-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 1rem;
}

.stat-box {
  flex: 1;
  min-width: 250px;
  background-color: #f8f5f0;
  padding: 1.2rem;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.stat-box p {
  margin: 0.4rem 0;
  font-size: 0.95rem;
}

.forum-statistik-wrapper {
  position: relative;
  margin-top: 0;
  padding-top: 1.5rem; /* oder 1rem für noch weniger Abstand */
  border-top: 1px solid #eee;
}
.forum-statistik-wrapper::before {
  content: "";
  position: absolute;
  top: -1.5px; /* sitzt genau in der Linie */
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 3px;
  background: linear-gradient(to right, transparent, #d4af7f, transparent);
  border-radius: 2px;
  z-index: 1;
}











@media screen and (max-width: 768px) {
  /* Kompakterer Header */


  /* Glocke + Hamburger nebeneinander */
  .nav-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 1rem;
    background-color: none;
  }

  .notification-toggle {
    position: relative;
    display: flex;
    align-items: center;
    color: #b89161;
    text-decoration: none;
  }

  .notification-icon {
    width: 22px;
    height: 22px;
    stroke: #b89161;
  }

  .notification-badge {
    position: absolute;
    top: -4px;
    right: -5px;
    background-color: #d9534f;
    color: white;
    font-size: 10px;
    padding: 2px 5px;
    border-radius: 999px;
    font-weight: bold;
    min-width: 16px;
    text-align: center;
  }

  /* Notification-Panel für Mobile */
  #notification-panel {
    position: fixed;
    left: 5%;
    right: auto;
    width: 90%;
    top: 70px;
    border-radius: 12px;
    background: #fffefd;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    padding: 1rem;
    z-index: 1000;
    transform: translateY(-200%);
    transition: transform 0.3s ease;
  }

  #notification-panel.visible {
    transform: translateY(0);
  }

  #notification-content {
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 6px;
  }

  #notification-panel .panel-header {
    padding-bottom: 0.5rem;
  }

  #notification-panel h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }

  #notification-panel #close-panel {
    font-size: 1.3rem;
  }

  .notification-entry {
    gap: 0.6rem;
  }

  .notification-avatar {
    width: 32px;
    height: 32px;
  }

  .notification-type-badge {
    width: 16px;
    height: 16px;
    font-size: 9px;
  }

  .notification-from {
    font-size: 0.9rem;
  }

  .notification-preview {
    font-size: 0.8rem;
  }

  .notification-time {
    font-size: 0.7rem;
  }

  .notification-list li {
    margin-bottom: 0.8rem;
    padding-bottom: 0.4rem;
  }
}

/* Panel für Mobil schmaler machen */
@media (max-width: 768px) {
  #notification-panel {
    width: 70vw;
    right: 5vw;
    left: auto;
    top: 72px;
    max-height: 70vh;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  }
}
@media (max-width: 768px) {
  #notification-panel {
    left: 0;
    right: auto;
    transform: translateX(-100%);
    border-right: 1px solid #ccc;
    border-left: none;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.2);
  }

  #notification-panel.visible {
    transform: translateX(0);
  }
}
@media (max-width: 768px) {
  .mobile-chat-panel {
    position: fixed;
    top: 0;
    left: 100%;
    width: 100%;
    height: 100%;
    background-color: #fffefb;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    transition: left 0.3s ease-in-out;
  }

  .mobile-chat-panel.visible {
    left: 0;
  }

  .mobile-chat-header {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #ddd;
    background-color: white;
    position: sticky;
    top: 0;
    z-index: 10;
  }

  .mobile-chat-header .back-button {
    margin-right: 1rem;
    font-size: 1.2rem;
    cursor: pointer;
    color: #b89161;
  }

  .mobile-chat-header .chat-header-name {
    font-weight: bold;
    font-size: 1rem;
  }

  .mobile-chat-content {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
  }

  .mobile-chat-form {
    padding: 1rem;
    border-top: 1px solid #ddd;
  }

  .mobile-chat-form textarea {
    width: 100%;
    border-radius: 10px;
    padding: 0.5rem;
    font-size: 1rem;
  }

  .mobile-chat-form button {
    width: 100%;
    margin-top: 0.5rem;
    background-color: #b89161;
    color: white;
    border: none;
    border-radius: 10px;
    padding: 0.6rem;
    font-weight: bold;
  }
}


