html, body {
  height: 100%;
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

.home-footer {
  margin-top: auto;
}


/* =====================
   Container & Header-Bereich
====================== */
.threads-header {
  max-width: 1100px;
  margin: 8rem auto 2rem auto;
  padding: 0 1.5rem;
}

.threads-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  color: #b89161;
  margin-bottom: 2.5rem;
}

.threads-header p.subcategory-description {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 2rem;
  line-height: 1.5;
}


/* =====================
   Buttons
====================== */
.nav-button {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background-color: #d4af7f;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  margin-right: 1rem;
  transition: background-color 0.3s ease;
}

.nav-button:hover {
  background-color: #b89161;
}

.back-button {
  background-color: #e7e4df;
  color: #333;
}

.back-button:hover {
  background-color: #dcd7d1;
}


/* =====================
   Threads-Tabelle
====================== */
.threads-container {
  max-width: 1100px;
  margin: 0 auto 4rem auto;
  padding: 0 1.5rem;
}

.threads-container .forum-table {
  width: 100%;
  border-collapse: collapse;
  background: #fffefb;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
  overflow: hidden;
  border: 1px solid #f0e3d2;
}

.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;
  color: #b89161;
  font-weight: 400;
}

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

.thread-title a {
  color: #333;
  font-weight: 400;
  text-decoration: none;
}

.thread-title a:hover {
  color: #b89161;
}

.thread-title small {
  display: block;
  color: #777;
  margin-top: 0.2rem;
  font-size: 0.85rem;
}

.thread-replies,
.thread-views,
.thread-last-post {
  white-space: nowrap;
  font-weight: 400; /* sorgt für Normalgewicht */	
}




/* =====================
   Letzter Beitrag (User + Zeit)
====================== */
.last-user-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.last-user-img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  vertical-align: middle;
}


/* =====================
   Unread Threads (optional)
====================== */
.unread-thread td.thread-title a::after {
  content: " ●";
  color: #d9534f;
  font-size: 1.1rem;
  vertical-align: middle;
}


/* =====================
   Pagination
====================== */
.pagination {
  margin-top: 2rem;
  text-align: center;
}

.pagination a {
  display: inline-block;
  margin: 0 0.3rem;
  padding: 0.5rem 0.9rem;
  border-radius: 6px;
  background-color: #f9f5f1;
  color: #b89161;
  font-weight: 500;
  text-decoration: none;
  font-size: 0.9rem;
  border: 1px solid transparent;
  transition: all 0.2s ease-in-out;
}

.pagination a:hover {
  background-color: #b89161;
  color: white;
}

.pagination a.active {
  background-color: #d4af7f;
  color: white;
  border-color: #caa270;
}

@media (max-width: 768px) {
  #notification-panel {
    left: 0 !important;
    right: auto !important;
    transform: translateX(-100%) !important;
    width: 70vw !important;
    top: 72px !important;
    max-height: 70vh !important;
    border-radius: 10px !important;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.2);
    border-right: 1px solid #ccc;
    border-left: none !important;
  }

  #notification-panel.visible {
    transform: translateX(0) !important;
  }
}

