/* cosinex Event Pagination */
:root {
  --cx-ep-accent: #005a8c;
  --cx-ep-text: #1d2b36;
  --cx-ep-border: #c9d3dc;
  --cx-ep-bg: #ffffff;
  --cx-ep-focus: #ffb000;
}

/* Von der Paginierung ausgeblendete Veranstaltungen */
.cx-ep-off {
  display: none !important;
}

/* Abstand beim Scrollen zur Liste, z. B. bei fixer Kopfzeile */
.etn-event-wrapper {
  scroll-margin-top: 120px;
}

.cx-ep-nav {
  margin: 2.5rem 0 1rem;
  text-align: center;
}

.cx-ep-nav[hidden] {
  display: none;
}

.cx-ep-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}

.cx-ep-btn {
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.75rem;
  border: 1px solid var(--cx-ep-border);
  border-radius: 4px;
  background: var(--cx-ep-bg);
  color: var(--cx-ep-text);
  font: inherit;
  line-height: 1;
  cursor: pointer;
}

.cx-ep-btn:hover:not(:disabled) {
  border-color: var(--cx-ep-accent);
  color: var(--cx-ep-accent);
}

.cx-ep-btn.is-current {
  background: var(--cx-ep-accent);
  border-color: var(--cx-ep-accent);
  color: #ffffff;
  font-weight: 600;
}

.cx-ep-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

.cx-ep-btn:focus-visible {
  outline: 3px solid var(--cx-ep-focus);
  outline-offset: 2px;
}

.cx-ep-ellipsis {
  padding: 0 0.25rem;
  color: var(--cx-ep-text);
}

.cx-ep-status {
  margin: 0.75rem 0 0;
  font-size: 0.875rem;
  color: #55606b;
}

@media (prefers-reduced-motion: no-preference) {
  .cx-ep-btn {
    transition: border-color 0.15s ease, color 0.15s ease;
  }
}
