*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --accent: #5271ff;
  --accent-dark: #3a57e8;
  --accent-dim: rgba(82, 113, 255, 0.12);
  --bg: #c5d3e8;
  --bg2: #b8c8e0;
  --text: #1a1f3a;
  --text-mid: #3d4466;
  --muted: #6b748f;
  --muted2: #9aa0b8;
  --card: #ffffff;
  --border: rgba(58, 82, 232, 0.12);
  --border-acc: rgba(82, 113, 255, 0.25);
  --shadow: 0 2px 12px rgba(58, 82, 232, 0.08);
  --shadow-md: 0 4px 20px rgba(58, 82, 232, 0.12);
  --radius: 10px;
  --font: "Outfit", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  font-family: "DM Sans", var(--font);
  background: linear-gradient(180deg, #c8d6ec 0%, #bfcee6 100%);
  background-attachment: fixed;
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  line-height: 1.65;
}

/* ── Scrollbar ────────────────────────────── */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg2);
}
::-webkit-scrollbar-thumb {
  background: rgba(82, 113, 255, 0.3);
  border-radius: 3px;
}

/* ── Nav ──────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 12px rgba(26, 31, 58, 0.07);
  padding: 0 40px;
  display: flex;
  align-items: center;
  gap: 4px;
  height: 68px;
}
.nav-logo {
  margin-right: auto;
  display: flex;
  align-items: center;
  text-decoration: none;
}
.nav-logo picture {
  display: flex;
  align-items: center;
}
.nav-logo img {
  height: 34px;
  width: auto;
  display: block;
  object-fit: contain;
}
.nav-logo span {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}
.nav-link {
  font-size: 14px;
  color: var(--text-mid);
  text-decoration: none;
  padding: 7px 14px;
  border-radius: 99px;
  font-weight: 500;
  white-space: nowrap;
  transition:
    background 0.15s,
    color 0.15s;
}
.nav-link:hover {
  background: rgba(82, 113, 255, 0.08);
  color: var(--text);
}
.nav-link.active {
  background: var(--accent);
  color: #fff;
  font-weight: 600;
}
.nav-cta {
  margin-left: 8px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 9px;
  padding: 9px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font);
  text-decoration: none;
  white-space: nowrap;
  transition:
    background 0.2s,
    transform 0.15s;
  display: inline-block;
  box-shadow: 0 4px 14px rgba(82, 113, 255, 0.35);
}
.nav-cta:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

/* ── Page wrapper ─────────────────────────── */
.page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 40px 80px;
}

/* ── Breadcrumb ───────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 22px 0 28px;
  font-size: 13px;
  color: var(--muted);
}
.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.15s;
}
.breadcrumb a:hover {
  color: var(--accent);
}
.breadcrumb svg {
  flex-shrink: 0;
}
.breadcrumb-sep {
  color: var(--muted2);
}

/* ── Main layout ──────────────────────────── */
.job-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  align-items: flex-start;
}

/* ── Sidebar ──────────────────────────────── */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 84px;
}

/* CTA Card */
.cta-card {
  background: var(--text);
  border-radius: 16px;
  padding: 28px 24px;
  text-align: center;
}
.cta-card-title {
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 20px;
  font-weight: 400;
  color: #fff;
  margin-bottom: 6px;
  line-height: 1.3;
}
.cta-card-sub {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 20px;
  line-height: 1.55;
}
.cta-card .btn-primary {
  margin-top: 0;
  border-radius: 10px;
}
.btn-secondary {
  display: block;
  width: 100%;
  background: transparent;
  color: rgba(255, 255, 255, 0.65);
  font-family: "DM Sans", var(--font);
  font-size: 14px;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  padding: 11px 20px;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  margin-top: 9px;
  transition:
    border-color 0.2s,
    color 0.2s;
}
.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}
.cta-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0;
}
.cta-divider::before,
.cta-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}
.cta-divider span {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.3);
}

/* Contact Card */
.contact-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px 24px;
  box-shadow: var(--shadow);
}
.contact-card-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.contact-person {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.contact-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  flex-shrink: 0;
  border: 2px solid var(--border);
}
.contact-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}
.contact-role {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 2px;
}
.contact-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.contact-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-family: "DM Sans", var(--font);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 9px;
  padding: 11px 16px;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}
.contact-btn-call {
  background: var(--text);
  color: #fff;
}
.contact-btn-call:hover {
  background: var(--text-mid);
}
.contact-btn-mail {
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid var(--border-acc);
}
.contact-btn-mail:hover {
  background: rgba(82, 113, 255, 0.18);
}

/* Info Card sidebar */
.info-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px 22px;
  box-shadow: var(--shadow);
}
.info-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.info-row:first-child {
  padding-top: 0;
}
.info-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.info-icon {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: var(--accent-dim);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.info-label {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
}
.info-value {
  font-size: 14px;
  color: var(--text);
  font-weight: 600;
}

/* Section label for content */
.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

/* ── Modal ────────────────────────────────── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 20, 40, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 500;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.open {
  display: flex;
}
.modal {
  background: #fff;
  border-radius: 20px;
  width: 100%;
  max-width: 560px;
  max-height: 92vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 24px 64px rgba(15, 20, 40, 0.35);
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(107, 116, 143, 0.1);
  border: none;
  border-radius: 8px;
  width: 34px;
  height: 34px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  z-index: 10;
  transition:
    background 0.2s,
    color 0.2s;
}
.modal-close:hover {
  background: rgba(82, 113, 255, 0.12);
  color: var(--accent);
}
.modal .apply-header {
  border-radius: 20px 20px 0 0;
}

/* ── Left: Job content ────────────────────── */
.job-main {
}

.job-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  padding: 4px 12px;
  border-radius: 99px;
  text-transform: uppercase;
}
.tag-field {
  background: rgba(82, 113, 255, 0.12);
  color: var(--accent);
}
.tag-type {
  background: rgba(26, 31, 58, 0.08);
  color: var(--text-mid);
}

.job-title {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.job-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  font-size: 14px;
  color: var(--muted);
}
.meta-employer {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.15s;
}
.meta-employer:hover {
  opacity: 0.8;
}
.meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
}
.meta-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--muted2);
}

/* ── Quick-info grid ──────────────────────── */
.quick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 28px;
}
.quick-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow);
}
.quick-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
}
.quick-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 2px;
}
.quick-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

/* ── Divider ──────────────────────────────── */
.divider {
  height: 1px;
  background: var(--border);
  margin: 4px 0 28px;
}

/* ── Job description (WordPress HTML) ─────── */
.job-desc-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  box-shadow: var(--shadow);
}
/* ── Job description prose typography ──────────────────────────
 Font sizing mirrors personalberatungDaniel (Tailwind prose scale).
 Responsive breakpoints: md ≥ 768 px · lg ≥ 1024 px · xl ≥ 1280 px
    ── */
.job-desc {
  color: var(--text-mid);
  line-height: 1.75;
}

/* Paragraphs */
.job-desc p {
  margin-bottom: 14px;
  font-weight: 400;
}
.job-desc p:last-child {
  margin-bottom: 0;
}

/* Lists */
.job-desc ul,
.job-desc ol {
  padding-left: 22px;
  margin-bottom: 14px;
}
.job-desc li {
  margin-bottom: 8px;
}
.job-desc li::marker {
  color: var(--accent);
}

/* Inline */
.job-desc em {
  font-weight: 300;
}
.job-desc strong {
  color: var(--text);
  font-weight: 800;
}
.job-desc a {
  color: var(--accent);
}

/* Headings — shared */
.job-desc h1,
.job-desc h2,
.job-desc h3,
.job-desc h4,
.job-desc h5,
.job-desc h6 {
  color: var(--text);
  font-weight: 700;
  margin-top: 28px;
  margin-bottom: 12px;
  line-height: 1.2;
}

/* Base / mobile (< 768 px) */
.job-desc h1 {
  font-size: 2.25rem;
} /* text-4xl  — 36 px */
.job-desc h2 {
  font-size: 2.25rem;
} /* text-4xl  — 36 px */
.job-desc h3 {
  font-size: 1.875rem;
} /* text-3xl  — 30 px */
.job-desc h4 {
  font-size: 1.875rem;
} /* text-3xl  — 30 px */
.job-desc h5 {
  font-size: 1.5rem;
} /* text-2xl  — 24 px */
.job-desc h6 {
  font-size: 1.25rem;
} /* text-xl   — 20 px */

/* md ≥ 768 px */
@media (min-width: 768px) {
  .job-desc h3 {
    font-size: 3rem;
  } /* text-5xl  — 48 px */
}

/* lg ≥ 1024 px */
@media (min-width: 1024px) {
  .job-desc p {
    font-size: 1.125rem;
  } /* text-lg   — 18 px */
  .job-desc h1 {
    font-size: 4.5rem;
  } /* text-7xl  — 72 px */
  .job-desc h2 {
    font-size: 3rem;
  } /* text-5xl  — 48 px */
  .job-desc h3 {
    font-size: 2.25rem;
  } /* text-4xl  — 36 px */
  .job-desc h4 {
    font-size: 1.875rem;
  } /* text-3xl  — 30 px */
  .job-desc h5 {
    font-size: 1.5rem;
  } /* text-2xl  — 24 px */
  .job-desc h6 {
    font-size: 1.25rem;
  } /* text-xl   — 20 px */
}

/* xl ≥ 1280 px */
@media (min-width: 1280px) {
  .job-desc h1 {
    font-size: 6rem;
  } /* text-8xl  — 96 px */
  .job-desc h2 {
    font-size: 4.5rem;
  } /* text-7xl  — 72 px */
  .job-desc h3 {
    font-size: 3.75rem;
  } /* text-6xl  — 60 px */
  .job-desc h4 {
    font-size: 2.25rem;
  } /* text-4xl  — 36 px */
  .job-desc h5 {
    font-size: 1.875rem;
  } /* text-3xl  — 30 px */
  .job-desc h6 {
    font-size: 1.5rem;
  } /* text-2xl  — 24 px */
}

/* ── Right: Apply card ────────────────────── */
.apply-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 84px;
}

/* Apply card header */
.apply-header {
  background: var(--accent);
  padding: 24px 28px;
  position: relative;
  overflow: hidden;
}
/* Brand triangle – signature ddconsulting visual */
.apply-header::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 130px 130px 0;
  border-color: transparent rgba(255, 255, 255, 0.12) transparent
    transparent;
}
.apply-header-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 10px;
}
.apply-header-title {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 6px;
  position: relative;
  z-index: 1;
  max-width: calc(100% - 50px);
}
.apply-header-sub {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
  position: relative;
  z-index: 1;
}

/* Step indicator */
.apply-steps {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 18px 28px 0;
}
.step-bubble {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
  transition: all 0.25s;
}
.step-bubble.active {
  background: var(--accent);
  color: #fff;
}
.step-bubble.done {
  background: #22c55e;
  color: #fff;
}
.step-bubble.idle {
  background: rgba(107, 116, 143, 0.15);
  color: var(--muted);
}
.step-line {
  flex: 1;
  height: 2px;
  background: rgba(107, 116, 143, 0.2);
  border-radius: 1px;
  transition: background 0.25s;
}
.step-line.done {
  background: #22c55e;
}
.step-label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
  flex-shrink: 0;
}

/* Apply form body */
.apply-body {
  padding: 20px 28px 28px;
}

/* Form layout */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}
.form-row.single {
  grid-template-columns: 1fr;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.form-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.form-label .req {
  color: #f87171;
}
.form-input {
  border: 1.5px solid rgba(58, 82, 232, 0.15);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  font-family: var(--font);
  color: var(--text);
  background: #fff;
  outline: none;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.form-input::placeholder {
  color: var(--muted2);
}
.form-input.has-error {
  border-color: #f87171;
}
.error-msg {
  font-size: 11px;
  color: #ef4444;
  min-height: 16px;
}

/* DSGVO Datenschutz-Einwilligung */
.privacy-row {
  margin-top: 8px;
  margin-bottom: 2px;
}
.privacy-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text);
  line-height: 1.5;
  font-weight: 400;
}
.privacy-checkbox {
  width: 17px;
  height: 17px;
  min-width: 17px;
  margin-top: 2px;
  accent-color: var(--accent);
  cursor: pointer;
  border-radius: 4px;
}
.privacy-label a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 500;
}
.privacy-label a:hover {
  opacity: 0.75;
}

/* File upload */
.file-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1.5px dashed rgba(82, 113, 255, 0.35);
  border-radius: 8px;
  padding: 12px 14px;
  cursor: pointer;
  font-size: 13px;
  color: var(--accent);
  font-weight: 500;
  font-family: var(--font);
  transition:
    border-color 0.15s,
    background 0.15s;
  background: transparent;
  width: 100%;
  text-align: left;
}
.file-trigger:hover {
  border-color: var(--accent);
  background: var(--accent-dim);
}
.file-trigger.selected {
  border-color: var(--accent);
  background: var(--accent-dim);
}
.file-name-preview {
  font-size: 11px;
  color: var(--muted);
  margin-top: 3px;
}

/* Buttons */
.btn-primary {
  width: 100%;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 13px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font);
  transition: background 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}
.btn-primary:hover:not(:disabled) {
  background: var(--accent-dark);
}
.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.btn-back-link {
  display: flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 13px;
  color: var(--muted);
  font-family: var(--font);
  padding: 0;
  margin-top: 12px;
  text-align: center;
  width: 100%;
  justify-content: center;
  transition: color 0.15s;
}
.btn-back-link:hover {
  color: var(--text);
}

.spinner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Success state */
.success-state {
  text-align: center;
  padding: 20px 0 8px;
}
.success-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.success-state h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}
.success-state p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--text);
  color: #fff;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.25s;
  pointer-events: none;
  z-index: 999;
}
.toast.show {
  opacity: 1;
}

/* ── Floating apply button (mobile only) ──── */
.float-apply-bar {
  display: none; /* hidden on desktop */
}
@media (max-width: 700px) {
  .float-apply-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 290;
    justify-content: center;
    padding: 12px 16px 24px; /* extra bottom = safe-area buffer */
    background: #ffffff;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.08);
    pointer-events: none;
    /* Slide-out (hidden): below viewport */
    transform: translateY(105%);
    transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .float-apply-bar.visible {
    transform: translateY(0);
  }
  .float-apply-btn-inner {
    pointer-events: auto;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 14px;
    padding: 16px 28px;
    font-size: 16px;
    font-weight: 700;
    font-family: var(--font);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 8px 32px rgba(82, 113, 255, 0.5);
    transition:
      background 0.2s,
      transform 0.15s;
    letter-spacing: 0.02em;
  }
  .float-apply-btn-inner:hover {
    background: var(--accent-dark);
  }
  .float-apply-btn-inner:active {
    transform: scale(0.97);
  }
}

/* ── Skeleton ─────────────────────────────── */
.skeleton {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.4) 25%,
    rgba(255, 255, 255, 0.6) 50%,
    rgba(255, 255, 255, 0.4) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 6px;
}
@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* ── Error / not found ────────────────────── */
.not-found {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  padding: 72px 32px 80px;
}
.not-found-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--accent-dim);
  color: var(--accent);
  margin-bottom: 24px;
}
.not-found h2 {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
  margin-bottom: 14px;
}
.not-found p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
  margin: 0 auto 28px;
  max-width: 480px;
}
.not-found-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-link {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  padding: 11px 24px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition:
    background 0.15s,
    border-color 0.15s,
    color 0.15s;
  border: 1px solid var(--accent);
}
.btn-link:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}
.btn-link-ghost {
  background: transparent;
  color: var(--accent);
  border-color: var(--border);
}
.btn-link-ghost:hover {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: var(--accent);
}

/* ── Footer ───────────────────────────────── */
.site-footer {
  background: #0f172a;
  color: #fbfcfd;
  font-family: var(--font);
}
.site-footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 40px 32px;
}
.site-footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
}
.site-footer-logo {
  flex-shrink: 0;
}
.site-footer-logo img {
  display: block;
  height: 68px;
  width: auto;
  max-width: 260px;
  object-fit: contain;
  background: #fbfcfd;
  border-radius: 10px;
  padding: 8px 16px;
}
.site-footer-logo span {
  font-size: 20px;
  font-weight: 700;
  color: #fbfcfd;
  letter-spacing: -0.02em;
}
.site-footer-cols {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 40px 56px;
  align-items: start;
}
.site-footer-col-head {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: underline;
  color: #fbfcfd;
  margin-bottom: 20px;
}
.site-footer-col ul {
  list-style: none;
}
.site-footer-col ul li {
  margin-bottom: 14px;
}
.site-footer-col ul li:last-child {
  margin-bottom: 0;
}
.site-footer-col a {
  font-size: 14px;
  font-weight: 500;
  color: #fbfcfd;
  text-decoration: none;
  transition: text-decoration 0.15s;
}
.site-footer-col a:hover {
  text-decoration: underline;
}
.site-footer-divider {
  border: none;
  border-top: 1px solid rgba(251, 252, 253, 0.2);
  margin: 24px 0;
}
.site-footer-bottom {
  font-size: 13px;
  color: rgba(251, 252, 253, 0.55);
}
.site-footer-bottom a {
  color: inherit;
  text-decoration: none;
}
.site-footer-bottom a:hover {
  text-decoration: underline;
}

/* ── Hero Section ─────────────────────────── */
.hero-section {
  padding: 28px 40px 0;
}
.hero-inner {
  max-width: 1180px;
  margin: 0 auto;
}

/* Karte: Bild als echter Full-Bleed-Hintergrund — kein Grid mehr.
 Text-Panel liegt per z-index darüber. */
.hero-card {
  background: var(--text);
  border-radius: 20px 20px 0 0;
  overflow: hidden;
  position: relative;
  min-height: 340px;
}

/* Bild deckt die gesamte Karte ab.
 object-position: center — sicherer Standard für RCRM-Bilder (Komposition unbekannt).
 Für das konfigurierte Standardbild (DEFAULT_HERO_IMG) setzt job.js per inline-style
 "78% center" (Person rechts im Bild). */
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  opacity: 0.88;
}

/* Gradient: links von 0–40% vollständig opak (#1a1f3a).
 Text-Panel hat max-width: 580px → kann diese Zone nie verlassen.
 Danach weich ausblenden → Bild wird rechts vollständig sichtbar. */
.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    to right,
    #1a1f3a 0%,
    #1a1f3a 40%,
    rgba(26, 31, 58, 0.9) 52%,
    rgba(26, 31, 58, 0.42) 68%,
    rgba(26, 31, 58, 0.06) 100%
  );
}

.hero-card-left {
  position: relative;
  z-index: 2;
  padding: 48px 52px;
  max-width: 580px; /* bleibt immer innerhalb der opaken Gradient-Zone */
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 99px;
  padding: 5px 14px 5px 5px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.04em;
  width: fit-content;
}
.hero-pill-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-h1 {
  font-size: clamp(24px, 3.2vw, 42px);
  font-weight: 700;
  color: #fff;
  line-height: 1.18;
  letter-spacing: -0.02em;
}
.hero-tagline {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
  margin-top: -4px;
}
.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 99px;
  padding: 6px 13px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  white-space: nowrap;
}
.hero-chip.salary {
  background: rgba(82, 113, 255, 0.25);
  border-color: rgba(82, 113, 255, 0.4);
  color: #b0c4ff;
  font-weight: 600;
}

/* ── Hero Strip ───────────────────────────── */
.job-hero-strip {
  background: var(--card);
  border-radius: 0;
  padding: 20px 28px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  box-shadow: 0 4px 20px rgba(26, 31, 58, 0.1);
}
.strip-left {
  flex: 1;
  min-width: 0;
}
.strip-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
}
.strip-sub {
  font-size: 13px;
  color: var(--accent);
  font-weight: 500;
  margin-top: 2px;
}
.strip-id {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(107, 116, 143, 0.1);
  border: 1px solid rgba(107, 116, 143, 0.18);
  padding: 5px 14px;
  border-radius: 99px;
  white-space: nowrap;
  flex-shrink: 0;
}
.btn-apply-hero {
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  padding: 14px 32px;
  cursor: pointer;
  font-family: var(--font);
  letter-spacing: 0.02em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  transition:
    background 0.2s,
    transform 0.15s,
    box-shadow 0.2s;
  box-shadow:
    0 6px 24px rgba(82, 113, 255, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.btn-apply-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.18) 0%,
    transparent 60%
  );
  pointer-events: none;
}
.btn-apply-hero:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow:
    0 10px 32px rgba(82, 113, 255, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* ── Info Bar ─────────────────────────────── */
.info-bar {
  background: var(--text);
  border-radius: 0 0 14px 14px;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  margin-bottom: 28px;
  padding: 0 28px;
}
.info-bar::-webkit-scrollbar {
  display: none;
}
.info-bar-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.78);
  padding: 15px 20px;
  white-space: nowrap;
  flex-shrink: 0;
}
.info-bar-sep {
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
}

/* ── Similar Jobs ─────────────────────────── */
.similar-section {
  margin-top: 36px;
}
.similar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.similar-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}
.similar-nav {
  display: flex;
  gap: 8px;
}
.similar-nav-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition:
    background 0.2s,
    border-color 0.2s;
}
.similar-nav-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
}
.similar-nav-btn:hover svg path {
  stroke: #fff;
}
.similar-scroll-wrap {
  overflow: hidden;
  position: relative;
  padding-top: 4px;
  margin-top: -4px;
}
.similar-track {
  display: flex;
  gap: 16px;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}
.similar-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px 24px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition:
    border-color 0.2s,
    transform 0.2s,
    box-shadow 0.2s;
  flex: 0 0 calc(33.333% - 11px);
  min-width: 0;
  box-shadow: var(--shadow);
}
.similar-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(82, 113, 255, 0.15);
}
.similar-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}
.similar-card-location {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 3px 10px;
  border-radius: 100px;
  white-space: nowrap;
  flex-shrink: 0;
  max-width: 45%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.similar-card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  min-width: 0;
  flex: 1 1 auto;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.similar-card-meta {
  font-size: 12px;
  color: var(--muted);
}
.similar-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}
.similar-arrow {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent-dim);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition:
    background 0.2s,
    border-color 0.2s;
}
.similar-card:hover .similar-arrow {
  background: var(--accent);
  border-color: var(--accent);
}
.similar-card:hover .similar-arrow svg path {
  stroke: #fff;
}
.similar-dots {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 14px;
}
.similar-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(107, 116, 143, 0.25);
  border: none;
  padding: 0;
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.2s;
}
.similar-dot.active {
  background: var(--accent);
  transform: scale(1.3);
}

/* ── Hamburger ────────────────────────────── */
.nav-hamburger {
  display: none;
  background: transparent;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-left: auto;
  transition: background 0.2s;
}
.nav-hamburger:hover {
  background: rgba(82, 113, 255, 0.1);
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-mid);
  border-radius: 2px;
  transition:
    transform 0.3s,
    opacity 0.2s,
    background 0.2s;
}
.nav-hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Mobile menu ──────────────────────────── */
.mobile-menu {
  display: flex;
  position: fixed;
  top: 68px;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 199;
  background: #fff;
  padding: 20px 24px 40px;
  flex-direction: column;
  transform-origin: top center;
  transform: scaleY(0.92);
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.32s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.25s ease;
  box-shadow: 0 8px 40px rgba(15, 23, 42, 0.12);
}
.mobile-menu.open {
  transform: scaleY(1);
  opacity: 1;
  pointer-events: auto;
}
.mob-link {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-mid);
  text-decoration: none;
  padding: 16px 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.07);
  opacity: 0;
  transform: translateY(-10px);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    color 0.15s,
    padding-left 0.2s;
}
.mobile-menu.open .mob-link {
  opacity: 1;
  transform: translateY(0);
}
.mobile-menu.open .mob-link:nth-child(1) {
  transition-delay: 0.06s;
}
.mobile-menu.open .mob-link:nth-child(2) {
  transition-delay: 0.1s;
}
.mobile-menu.open .mob-link:nth-child(3) {
  transition-delay: 0.14s;
}
.mobile-menu.open .mob-link:nth-child(4) {
  transition-delay: 0.18s;
}
.mobile-menu.open .mob-link:nth-child(5) {
  transition-delay: 0.22s;
}
.mob-link:hover {
  color: var(--accent);
  padding-left: 8px;
}
.mob-cta {
  display: block;
  margin-top: 20px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  border-radius: 10px;
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  transition: background 0.2s;
}
.mob-cta:hover {
  background: var(--accent-dark);
}

/* ── Responsive ───────────────────────────── */
@media (max-width: 1020px) {
  .job-layout {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: static;
  }
  .similar-card {
    flex: 0 0 calc(50% - 8px);
  }
}
@media (max-width: 900px) {
  .hero-section {
    padding: 16px 16px 0;
  }
  .hero-card {
    min-height: 280px;
  }
  /* Auf Tablet/Mobile: Text-Panel nimmt volle Breite, Gradient wird vertikal */
  .hero-card-left {
    padding: 28px 24px;
    max-width: 100%;
    min-height: 280px;
  }
  .hero-card::before {
    background: linear-gradient(
      to bottom,
      rgba(26, 31, 58, 0.97) 0%,
      rgba(26, 31, 58, 0.9) 55%,
      rgba(26, 31, 58, 0.55) 80%,
      rgba(26, 31, 58, 0.15) 100%
    );
  }
  /* Mitte-Oben: sicher für RCRM-Bilder; DEFAULT_HERO_IMG überschreibt via inline-style */
  .hero-img {
    object-position: center top;
  }
  .job-hero-strip {
    padding: 14px 20px;
  }
  .info-bar {
    padding: 0 12px;
  }
  .info-bar-sep {
    display: none;
  }
  .info-bar-item {
    padding: 10px 10px;
    font-size: 12px;
  }
}
@media (max-width: 700px) {
  .nav {
    padding: 0 20px;
  }
  .nav-link,
  .nav-cta {
    display: none;
  }
  .nav-hamburger {
    display: flex;
  }
  .page {
    padding: 0 16px 60px;
  }
  .job-title {
    font-size: 24px;
  }
  .quick-grid {
    display: none;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .site-footer-inner {
    padding: 24px 20px 32px;
  }
  .site-footer-top {
    flex-direction: column;
    gap: 28px;
  }
  .site-footer-cols {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .strip-title {
    font-size: 15px;
  }
  .strip-id {
    display: none;
  }
  .btn-apply-hero {
    width: 100%;
    justify-content: center;
  }
  .similar-card {
    flex: 0 0 calc(82% - 8px);
  }

  /* ── Hero: stacked layout on phones ─────────── */
  /* Text section (solid navy) on top, photo strip below — no gradient bleed */
  .hero-card {
    min-height: unset;
    display: flex;
    flex-direction: column;
  }
  .hero-card::before {
    display: none;
  }
  .hero-card-left {
    position: static;
    z-index: auto;
    min-height: unset;
    background: #1a1f3a;
    padding: 28px 20px 32px;
    max-width: 100%;
    order: 0;
  }
  /* Hide hero image on phones — solid navy text section only */
  .hero-img {
    display: none;
  }
}
@media (max-width: 480px) {
  .similar-card {
    flex: 0 0 calc(92% - 8px);
  }
  .hero-chips {
    gap: 6px;
  }
  .hero-chip {
    font-size: 12px;
    padding: 5px 10px;
  }
}
