/* ======================================================
   Kleinanzeigen / eBay Kleinanzeigen inspiriertes Theme
   ------------------------------------------------------
   - Helles, neutrales Layout
   - Linke Kategorienleiste, rechte Inhaltsspalte
   - Anmutung ähnlich Kleinanzeigen-Portalen
   ====================================================== */

body {
  background-color: #f1f2f5;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #111827;
}

.ka-page-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.ka-header {
  background-color: #ffffff;
  border-bottom: 1px solid #e5e7eb;
}

.ka-logo-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #16a34a;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 18px;
}

.ka-brand {
  font-weight: 700;
  font-size: 1rem;
}

.ka-tagline {
  font-size: 0.75rem;
  color: #6b7280;
}

.ka-toplink {
  color: #4b5563;
}

.ka-toplink.active {
  color: #16a34a;
  font-weight: 600;
}

.btn-ka-primary {
  background-color: #16a34a;
  border-color: #16a34a;
  color: #ffffff;
  font-weight: 500;
}

.btn-ka-primary:hover {
  background-color: #15803d;
  border-color: #15803d;
  color: #ffffff;
}

.ka-searchbar-wrap {
  background-color: #ffffff;
  border-bottom: 1px solid #e5e7eb;
}

.ka-searchbar {
  padding: 0.5rem 0;
}

/* Sidebar / Kategorien --------------------------------------------- */

.ka-sidebar {
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.ka-category-list .list-group-item {
  border: 0;
  border-bottom: 1px solid #f3f4f6;
  font-size: 0.85rem;
}

.ka-category-list .list-group-item:last-child {
  border-bottom: 0;
}

.ka-category-list .list-group-item.active {
  background-color: #dcfce7;
  color: #166534;
  font-weight: 600;
}

/* Home Intro -------------------------------------------------------- */

.ka-home-intro h1 {
  font-weight: 600;
}

/* Top-Anzeigen (Highlights) ----------------------------------------- */

.ka-topads {
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.text-ka-accent {
  color: #ea580c;
}

.ka-ad-card {
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.ka-ad-thumb-wrap img {
  border-radius: 8px 8px 0 0;
}

.ka-thumb-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: #9ca3af;
}

.ka-thumb-placeholder i {
  font-size: 1.2rem;
}

/* Adlist ------------------------------------------------------------ */

.ka-adlist {
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.ka-adlist-items {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.ka-adlist-row {
  display: flex;
  gap: 0.75rem;
  padding: 0.4rem 0.25rem;
  border-bottom: 1px solid #f3f4f6;
}

.ka-adlist-row:last-child {
  border-bottom: 0;
}

.ka-adlist-row:hover {
  background-color: #f9fafb;
}

.ka-adlist-thumb {
  width: 110px;
  flex-shrink: 0;
}

.ka-adlist-thumb img {
  border-radius: 4px;
}

.ka-adlist-main {
  flex: 1;
  min-width: 0;
}

.ka-ad-title {
  font-size: 0.95rem;
  font-weight: 600;
}

.ka-ad-price {
  font-weight: 600;
  font-size: 0.9rem;
}

.ka-ad-meta {
  font-size: 0.8rem;
}

.ka-badge-top {
  background-color: #f59e0b;
  color: #ffffff;
  border-radius: 999px;
  padding: 0.1rem 0.5rem;
}

/* Content-Card für Unterseiten ------------------------------------- */

.ka-content-card {
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

/* Footer ------------------------------------------------------------ */

.ka-footer {
  border-top: 1px solid #e5e7eb;
  margin-top: auto;
  background-color: #ffffff;
}

/* Responsive -------------------------------------------------------- */

@media (max-width: 767.98px) {
  .ka-adlist-row {
    flex-direction: row;
  }
  .ka-adlist-thumb {
    width: 90px;
  }
}
