/* ============================================================
   URHEBER-IMPULS - impulse.css
   AJAX topic filter and Content Views grid for /impulse/.
   ============================================================ */

body.elementor-page .impulse-filter {
  padding-block: 2rem 0.5rem;
  background: var(--background);
}

body.elementor-page .impulse-filter .container {
  max-width: var(--container-max);
}

body.elementor-page .impulse-filter__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

body.elementor-page .impulse-filter__label {
  margin-right: 0.25rem;
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 700;
}

body.elementor-page .impulse-filter__tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.425rem 0.95rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--secondary);
  color: var(--primary);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none !important;
  transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

body.elementor-page .impulse-filter__tag:hover,
body.elementor-page .impulse-filter__tag.is-active,
body.elementor-page .impulse-filter__tag[aria-pressed="true"] {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--primary-foreground) !important;
  box-shadow: 0 6px 16px rgba(18, 60, 47, 0.12);
}

body.elementor-page .impulse-grid {
  padding-block: 2.25rem 4rem;
  background: var(--background);
}

body.elementor-page .ui-impulse-results {
  transition: opacity 0.18s ease;
}

body.elementor-page .ui-impulse-results.is-loading {
  opacity: 0.42;
  pointer-events: none;
}

body.elementor-page .ui-impulse-error,
body.elementor-page .ui-impulse-empty {
  padding: 2rem 1rem;
  color: var(--muted-foreground);
  font-size: 0.9375rem;
  text-align: center;
}

body.elementor-page .ui-impulse-results .pt-cv-wrapper {
  margin: 0 !important;
}

body.elementor-page .ui-impulse-results .pt-cv-view,
body.elementor-page .ui-impulse-results .pt-cv-page {
  width: 100% !important;
}

body.elementor-page .ui-impulse-results .pt-cv-page {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 1.75rem !important;
}

body.elementor-page .ui-impulse-results .pt-cv-content-item {
  float: none !important;
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

body.elementor-page .ui-impulse-results .pt-cv-ifield {
  height: 100%;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

body.elementor-page .ui-impulse-results .pt-cv-ifield:hover {
  transform: translateY(-2px);
  border-color: rgba(200, 162, 74, 0.55);
  box-shadow: var(--shadow-md);
}

body.elementor-page .ui-impulse-results .pt-cv-href-thumbnail {
  display: block;
  overflow: hidden;
  background: var(--secondary);
}

body.elementor-page .ui-impulse-results .pt-cv-thumbnail {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  margin: 0 !important;
  border: none !important;
  border-radius: 0 !important;
}

body.elementor-page .ui-impulse-results .pt-cv-taxoterm {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 1.25rem 1.35rem 0;
  margin: 0 !important;
}

body.elementor-page .ui-impulse-results .pt-cv-taxoterm a {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: var(--secondary);
  color: var(--primary) !important;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none !important;
}

body.elementor-page .ui-impulse-results .pt-cv-taxoterm .pt-cv-tax-alle {
  display: none !important;
}

body.elementor-page .ui-impulse-results .pt-cv-title {
  padding: 0 1.35rem;
  margin: 1rem 0 0.5rem !important;
  font-family: var(--font-heading);
  font-size: 1.375rem !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
}

body.elementor-page .ui-impulse-results .pt-cv-title a {
  color: var(--primary) !important;
  text-decoration: none !important;
}

body.elementor-page .ui-impulse-results .pt-cv-title a:hover {
  color: var(--accent) !important;
}

body.elementor-page .ui-impulse-results .pt-cv-content {
  padding: 0 1.35rem 1.35rem;
  color: var(--muted-foreground);
  font-size: 0.9375rem;
  line-height: 1.65;
}

body.elementor-page .ui-impulse-results .pt-cv-rmwrap {
  margin-top: 1.25rem;
}

body.elementor-page .ui-impulse-results .pt-cv-readmore,
body.elementor-page .ui-impulse-results a.pt-cv-readmore.btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.75rem 1.25rem !important;
  background: var(--primary) !important;
  border: none !important;
  border-radius: var(--radius) !important;
  box-shadow: none !important;
  color: var(--primary-foreground) !important;
  font-family: var(--font-body);
  font-size: 0.875rem !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  text-decoration: none !important;
}

body.elementor-page .ui-impulse-results .pt-cv-readmore:hover,
body.elementor-page .ui-impulse-results a.pt-cv-readmore.btn:hover {
  background: #0d2e24 !important;
  color: var(--primary-foreground) !important;
  box-shadow: var(--shadow-md) !important;
}

@media (max-width: 640px) {
  body.elementor-page .impulse-filter {
    padding-block: 1.5rem 0.25rem;
  }

  body.elementor-page .impulse-filter__list {
    gap: 0.45rem;
  }

  body.elementor-page .impulse-filter__label {
    flex-basis: 100%;
    margin: 0 0 0.25rem;
  }

  body.elementor-page .impulse-filter__tag {
    padding: 0.4rem 0.75rem;
    font-size: 0.75rem;
  }

  body.elementor-page .impulse-grid {
    padding-block: 2rem 3rem;
  }

  body.elementor-page .ui-impulse-results .pt-cv-page {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 1.25rem !important;
  }

  body.elementor-page .ui-impulse-results .pt-cv-taxoterm {
    padding: 1rem 1.1rem 0;
  }

  body.elementor-page .ui-impulse-results .pt-cv-title {
    padding-inline: 1.1rem;
    font-size: 1.25rem !important;
  }

  body.elementor-page .ui-impulse-results .pt-cv-content {
    padding: 0 1.1rem 1.15rem;
  }

  body.elementor-page .ui-impulse-results .pt-cv-readmore,
  body.elementor-page .ui-impulse-results a.pt-cv-readmore.btn {
    width: 100%;
  }
}
