/* ==================== Karriere-Seite v2 ==================== */

/* Page Hero */
.page-hero {
  padding: clamp(8rem, 16vw, 12rem) 0 clamp(4rem, 8vw, 6rem);
  text-align: center;
  background:
    radial-gradient(ellipse at top, var(--c-navy-mid) 0%, var(--c-navy-deep) 70%);
  border-bottom: 1px solid rgba(219, 170, 31, 0.18);
  position: relative;
}
.page-hero__title {
  margin: 1rem 0;
}
.page-hero__lead {
  max-width: 760px;
  margin: 1.5rem auto 3.5rem;
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  line-height: 1.8;
}
.page-hero__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
  max-width: 760px;
  margin: 0 auto;
}
.page-hero__stats > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
  border: 1px solid rgba(219, 170, 31, 0.18);
  border-radius: 4px;
  background: rgba(20, 37, 68, 0.4);
}
.page-hero__stats .num {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--c-gold-bright);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.page-hero__stats .lbl {
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  color: var(--c-cream-dim);
  text-transform: uppercase;
  text-align: center;
}

/* ===== Jobs Section ===== */
.jobs {
  padding: clamp(4rem, 8vw, 7rem) 0;
  background: var(--c-navy-deep);
}
.jobs__layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: flex-start;
}

/* ===== Sidebar Filter ===== */
.jobs__sidebar {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  padding-right: 6px;
  scrollbar-width: thin;
  scrollbar-color: rgba(219, 170, 31, 0.5) transparent;
}
.jobs__sidebar::-webkit-scrollbar { width: 6px; }
.jobs__sidebar::-webkit-scrollbar-track { background: transparent; }
.jobs__sidebar::-webkit-scrollbar-thumb {
  background: rgba(219, 170, 31, 0.4);
  border-radius: 3px;
}
.jobs__sidebar::-webkit-scrollbar-thumb:hover { background: rgba(219, 170, 31, 0.7); }
.sidebar-card {
  background:
    linear-gradient(180deg, rgba(20, 37, 68, 0.85), rgba(10, 22, 40, 0.95));
  border: 1px solid rgba(219, 170, 31, 0.25);
  border-radius: 8px;
  padding: 1.4rem 1.4rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.sidebar-card .eyebrow {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.74rem;
  letter-spacing: 0.32em;
  padding-left: 0;
}
.sidebar-card .eyebrow::before { display: none; }
.sidebar-card .eyebrow svg { width: 16px; height: 16px; color: var(--c-gold-bright); }

/* Sidebar Search */
.sidebar-search {
  position: relative;
}
.sidebar-search svg {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--c-gold-bright);
  pointer-events: none;
}
.sidebar-search input {
  width: 100%;
  padding: 0.85rem 2.6rem 0.85rem 2.8rem;
  background: rgba(10, 22, 40, 0.7);
  border: 1px solid rgba(219, 170, 31, 0.3);
  border-radius: 5px;
  color: var(--c-cream);
  font-family: var(--font-body);
  font-size: 0.92rem;
  transition: all var(--dur-mid) var(--ease);
}
.sidebar-search input::placeholder { color: var(--c-cream-dimmer); }
.sidebar-search input:focus {
  outline: none;
  border-color: var(--c-gold-bright);
  box-shadow: 0 0 0 3px rgba(219, 170, 31, 0.18);
}
#search-clear {
  position: absolute;
  right: 0.65rem;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(219, 170, 31, 0.2);
  color: var(--c-gold-bright);
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Filter List */
.filter-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.filter-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  color: var(--c-cream-dim);
  font-family: var(--font-body);
  font-size: 0.94rem;
  text-align: left;
  transition: all var(--dur-mid) var(--ease);
  cursor: inherit;
}
.filter-item:hover {
  background: rgba(219, 170, 31, 0.08);
  color: var(--c-cream);
  border-color: rgba(219, 170, 31, 0.2);
}
.filter-item.is-active {
  background: rgba(219, 170, 31, 0.16);
  color: var(--c-gold-bright);
  border-color: rgba(219, 170, 31, 0.45);
  font-weight: 500;
}
.filter-item__label {
  flex: 1;
}
.filter-item__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 22px;
  padding: 0 8px;
  background: rgba(10, 22, 40, 0.6);
  color: var(--c-gold-bright);
  border-radius: 11px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  transition: all var(--dur-mid) var(--ease);
}
.filter-item.is-active .filter-item__count {
  background: var(--c-gold-bright);
  color: var(--c-navy-deep);
}

.sidebar-reset {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.2rem;
  border: 1px solid rgba(219, 170, 31, 0.3);
  border-radius: 5px;
  color: var(--c-cream-dim);
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  background: rgba(10, 22, 40, 0.5);
  transition: all var(--dur-mid) var(--ease);
}
.sidebar-reset:hover {
  border-color: var(--c-gold-bright);
  color: var(--c-gold-bright);
  background: rgba(219, 170, 31, 0.08);
}
.sidebar-reset svg { width: 16px; height: 16px; }

/* ===== Main Job List ===== */
.jobs__main {
  min-width: 0;
}
.jobs__main-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 1.6rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid rgba(219, 170, 31, 0.2);
  flex-wrap: wrap;
  gap: 1rem;
}
.jobs__main-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  color: var(--c-cream);
  margin: 0;
}
.jobs__main-counter {
  font-family: var(--font-display);
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}
.jobs__main-counter span:first-child {
  font-size: clamp(1.8rem, 2.6vw, 2.3rem);
  color: var(--c-gold-bright);
  font-weight: 600;
  text-shadow: 0 0 14px rgba(219, 170, 31, 0.35);
}
.jobs__main-counter-lbl {
  font-size: 0.74rem;
  letter-spacing: 0.3em;
  color: var(--c-cream-dim);
  text-transform: uppercase;
}

/* ===== Job Cards Grid ===== */
.jobs__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.4rem;
}
.job-card {
  background:
    linear-gradient(180deg, rgba(20, 37, 68, 0.7), rgba(10, 22, 40, 0.92));
  border: 1px solid rgba(219, 170, 31, 0.2);
  padding: 2rem 2rem 1.6rem;
  border-radius: 6px;
  transition: all var(--dur-mid) var(--ease);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.job-card__link {
  position: absolute;
  inset: 0;
  z-index: 1;
  text-indent: -9999px;
}
.job-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--c-gold-bright), transparent);
  transform: scaleX(0);
  transition: transform var(--dur-mid) var(--ease);
}
.job-card:hover {
  transform: translateY(-6px);
  border-color: rgba(219, 170, 31, 0.55);
  box-shadow:
    0 22px 60px rgba(0, 0, 0, 0.45),
    0 0 70px rgba(219, 170, 31, 0.12);
}
.job-card:hover::before { transform: scaleX(1); }

.job-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.2rem;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.job-card__tag {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  background: rgba(219, 170, 31, 0.15);
  color: var(--c-gold-bright);
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  border-radius: 3px;
}
.job-card__city {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.86rem;
  color: var(--c-cream-dim);
}
.job-card__city svg { width: 14px; height: 14px; color: var(--c-gold-soft); }

.job-card h3 {
  font-size: 1.35rem;
  color: var(--c-cream);
  margin-bottom: 0.6rem;
  line-height: 1.25;
}
.job-card__role {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  color: var(--c-gold-soft);
  text-transform: uppercase;
  margin-bottom: 0.9rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid rgba(219, 170, 31, 0.12);
}
.job-card__intro {
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.4rem;
  color: var(--c-cream-dim);
}
.job-card__footer {
  margin-top: auto;
  display: flex;
  justify-content: flex-end;
  position: relative;
  z-index: 2;
}
.job-card__more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  color: var(--c-gold-bright);
  text-transform: uppercase;
  transition: all var(--dur-mid) var(--ease);
}
.job-card__more svg {
  width: 18px;
  height: 18px;
  transition: transform var(--dur-mid) var(--ease);
}
.job-card:hover .job-card__more svg { transform: translateX(6px); }

/* Empty state */
.jobs__empty {
  text-align: center;
  padding: 4rem 2rem;
}
.jobs__empty svg {
  width: 60px;
  height: 60px;
  color: var(--c-gold-soft);
  margin-bottom: 1.5rem;
  opacity: 0.7;
}
.jobs__empty p {
  font-size: 1.1rem;
  color: var(--c-cream-dim);
  margin-bottom: 1.5rem;
}

/* ===== Why Section ===== */
.why {
  padding: clamp(5rem, 10vw, 8rem) 0;
  background:
    linear-gradient(180deg, var(--c-black) 0%, var(--c-navy-deep) 100%);
  position: relative;
}
.why__intro {
  text-align: center;
  margin-bottom: 3rem;
}
.why__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}
.why__item {
  text-align: center;
  padding: 1.5rem;
}
.why__icon {
  width: 64px;
  height: 64px;
  border: 1px solid var(--c-gold-bright);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--c-gold-bright);
  margin-bottom: 1.5rem;
}
.why__icon svg { width: 28px; height: 28px; }
.why__item h3 { font-size: 1.2rem; margin-bottom: 0.8rem; }
.why__item p { font-size: 0.95rem; line-height: 1.75; }

/* ===== Initiative ===== */
.initiative {
  padding: clamp(5rem, 10vw, 8rem) 0;
  background:
    radial-gradient(ellipse at center, var(--c-navy-mid) 0%, var(--c-black) 80%);
  text-align: center;
  border-top: 1px solid rgba(219, 170, 31, 0.18);
}
.initiative h2 { margin: 1rem 0 1rem; }

/* Responsive */
@media (max-width: 1024px) {
  .jobs__layout { grid-template-columns: 1fr; }
  .jobs__sidebar { position: static; flex-direction: row; flex-wrap: wrap; }
  .sidebar-card { flex: 1; min-width: 240px; }
  .sidebar-reset { flex: 1; min-width: 240px; }
}
@media (max-width: 980px) {
  .page-hero__stats { grid-template-columns: repeat(2, 1fr); }
  .jobs__grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .page-hero__stats { grid-template-columns: 1fr 1fr; gap: 0.8rem; }
  .filter-item { font-size: 0.88rem; }
  .jobs__sidebar { flex-direction: column; }
  .sidebar-card, .sidebar-reset { min-width: 0; }
}
