/* Vortecx Stellenanzeigen – Frontend */
:root {
  --vx-dark: #0e1b52;
  --vx-primary: #392bab;
  --vx-purple: #7f6fff;
  --vx-orange: #ff8900;
  --vx-light: #edf0f4;
  --vx-white: #ffffff;
}

/* ---------- Filter-Tabs ---------- */
.vx-jobs-filter .e-filter {
  gap: 8px;
  flex-wrap: wrap;
}
.vx-jobs-filter .e-filter-item {
  background: var(--vx-light);
  color: var(--vx-primary);
  border: 0;
  border-radius: 999px;
  padding: 10px 22px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}
.vx-jobs-filter .e-filter-item:hover {
  background: #dfe3ea;
  color: var(--vx-dark);
}
.vx-jobs-filter .e-filter-item[aria-pressed="true"],
.vx-jobs-filter .e-filter-item[aria-selected="true"],
.vx-jobs-filter .e-filter-item.e-active {
  background: var(--vx-primary);
  color: var(--vx-white);
}
.vx-jobs-filter .e-filter-item:focus-visible {
  outline: 3px solid var(--vx-purple);
  outline-offset: 2px;
}

/* ---------- Karten ---------- */
.e-loop-item .e-con.vx-card {
  height: 100%;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.e-loop-item .e-con.vx-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(14, 27, 82, .12);
  border-color: var(--vx-purple);
}
.vx-card .vx-card-title a {
  color: inherit;
  text-decoration: none;
}
.vx-card .vx-card-title a:hover {
  color: var(--vx-primary);
}
.vx-card .vx-card-sub p:last-child,
.vx-card .vx-badge p {
  margin-bottom: 0;
}
.vx-card .vx-card-btn {
  margin-top: auto;
}
.vx-card .vx-card-btn .elementor-button {
  padding-left: 0;
  padding-right: 0;
}
.vx-card .vx-card-meta .elementor-icon-list-items {
  row-gap: 6px;
}
.vx-hidden {
  display: none !important;
}
.vx-jobs-grid .e-loop-nothing-found-message,
.vx-jobs-grid .elementor-loop-container:empty + .e-loop-nothing-found-message {
  padding: 24px 0;
  font-size: 1.125rem;
}

/* ---------- Einzelseite ---------- */
.vx-single .vx-section-title .elementor-heading-title {
  padding-bottom: 8px;
  border-bottom: 2px solid var(--vx-purple);
  display: inline-block;
}
.vx-single .vx-section-text ul,
.vx-single .vx-section-text ol {
  margin: 0 0 0 1.25em;
  padding: 0;
}
.vx-single .vx-section-text li {
  margin-bottom: .5em;
}
.vx-single .vx-section-text ul li::marker {
  color: var(--vx-purple);
}
.vx-single .vx-section-text p:last-child {
  margin-bottom: 0;
}
.vx-single .vx-meta-item p,
.vx-single .vx-fact-value p,
.vx-single .vx-subtitle p,
.vx-single .vx-cta-text p:last-child {
  margin-bottom: 0;
}
.vx-single .vx-back a {
  text-decoration: none;
}
.vx-single .vx-back a:hover {
  text-decoration: underline;
}
.vx-single .vx-apply-btn .elementor-button {
  transition: background-color .2s ease, transform .2s ease;
}
.vx-single .vx-apply-btn .elementor-button:hover {
  transform: translateY(-2px);
}

/* ---------- Modal / Popup ---------- */
.vx-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 4vh 16px;
}
.vx-modal.is-open {
  display: flex;
}
.vx-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(14, 27, 82, .72);
  backdrop-filter: blur(2px);
  animation: vxFade .2s ease;
}
.vx-modal__dialog {
  position: relative;
  width: 100%;
  max-width: 960px;
  max-height: 92vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--vx-white);
  border-radius: 20px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, .35);
  animation: vxSlide .25s ease;
  outline: none;
  -webkit-overflow-scrolling: touch;
}
.vx-modal__close {
  position: sticky;
  top: 12px;
  float: right;
  margin: 12px 12px 0 0;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--vx-light);
  color: var(--vx-dark);
  font-size: 26px;
  line-height: 44px;
  text-align: center;
  cursor: pointer;
  z-index: 2;
  transition: background-color .2s ease, color .2s ease;
}
.vx-modal__close:hover {
  background: var(--vx-primary);
  color: var(--vx-white);
}
.vx-modal__body {
  clear: none;
}
.vx-modal__loading,
.vx-modal__error {
  padding: 80px 32px;
  text-align: center;
  color: var(--vx-dark);
  font-size: 1.125rem;
}
.vx-modal__loading::before {
  content: "";
  display: block;
  width: 36px;
  height: 36px;
  margin: 0 auto 16px;
  border: 3px solid var(--vx-light);
  border-top-color: var(--vx-primary);
  border-radius: 50%;
  animation: vxSpin .8s linear infinite;
}
.vx-modal .vx-single {
  padding: 24px 40px 48px !important;
  margin: 0 !important;
}
.vx-modal .vx-single .vx-back {
  display: none;
}
.vx-modal .vx-single .vx-title .elementor-heading-title {
  font-size: 36px;
}
.vx-modal__footer-link {
  display: block;
  padding: 0 40px 32px;
  color: var(--vx-primary);
  font-size: 14px;
  text-decoration: none;
}
.vx-modal__footer-link:hover {
  text-decoration: underline;
}
html.vx-modal-open,
html.vx-modal-open body {
  overflow: hidden;
}
@media (max-width: 767px) {
  .vx-modal {
    padding: 0;
    align-items: stretch;
  }
  .vx-modal__dialog {
    max-height: 100vh;
    border-radius: 0;
  }
  .vx-modal .vx-single {
    padding: 8px 20px 40px !important;
  }
  .vx-modal .vx-single .vx-title .elementor-heading-title {
    font-size: 28px;
  }
  .vx-modal__footer-link {
    padding: 0 20px 32px;
  }
}
@keyframes vxFade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes vxSlide {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}
@keyframes vxSpin {
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .vx-modal__backdrop, .vx-modal__dialog, .vx-card { animation: none; transition: none; }
}
