/* ============================================================
   JobMatches.de — Black & White + Rainbow Motion
   ============================================================ */

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/assets/fonts/manrope-latin-wght.woff2") format("woff2-variations");
}

:root {
  --ink: #0e0e0e;
  --ink-soft: #2b2b2b;
  --gray: #6f6e69;
  --gray-light: #9a988f;
  --line: #e8e6e0;
  --paper: #ffffff;
  --paper-warm: #f7f6f2;

  --rainbow: conic-gradient(
    from var(--angle, 0deg),
    #ff4d4d, #ff9f1c, #ffd60a, #3ddc84, #00c2ff, #5e5ce6, #bf5af2, #ff4d4d
  );
  --rainbow-linear: linear-gradient(
    90deg,
    #ff4d4d, #ff9f1c, #ffd60a, #3ddc84, #00c2ff, #5e5ce6, #bf5af2, #ff4d4d
  );

  --radius: 18px;
  --shadow-soft: 0 20px 60px rgba(14, 14, 14, 0.08);
  --font: "Manrope", system-ui, -apple-system, sans-serif;
}

@property --angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.container {
  width: min(1160px, calc(100% - 48px));
  margin-inline: auto;
}

/* ---------- Typography ---------- */
h1, h2, h3 { line-height: 1.1; letter-spacing: -0.02em; font-weight: 800; }

.section-title {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  margin-bottom: 16px;
}

.section-lead {
  color: var(--gray);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  max-width: 640px;
  font-weight: 500;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 20px;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 3px;
  border-radius: 2px;
  background: var(--rainbow-linear);
  background-size: 300% 100%;
  animation: slide-hue 6s linear infinite;
}

@keyframes slide-hue {
  to { background-position: 300% 0; }
}

.grad-text {
  background: var(--rainbow-linear);
  background-size: 300% 100%;
  animation: slide-hue 8s linear infinite;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  background: var(--ink);
  color: #fff;
  position: relative;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(14, 14, 14, 0.25);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line);
}

.btn-ghost:hover { border-color: var(--ink); }

.btn-white {
  background: #fff;
  color: var(--ink);
}

.btn-white:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.nav.scrolled { border-bottom-color: var(--line); }

.nav-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 72px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.nav-logo img { height: 26px; width: auto; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav-links a {
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--ink-soft);
  position: relative;
  padding: 4px 0;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--rainbow-linear);
  background-size: 300% 100%;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
  animation: slide-hue 6s linear infinite;
}

.nav-links a:hover::after { transform: scaleX(1); }

.nav-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.nav-burger {
  display: none;
  background: none;
  border: none;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  margin-left: auto;
}

.nav-burger span {
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 130px 0 70px;
  text-align: center;
  position: relative;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
}

.hero-bg::before,
.hero-bg::after {
  content: "";
  position: absolute;
  width: 55vw;
  height: 55vw;
  max-width: 700px;
  max-height: 700px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.10;
}

.hero-bg::before {
  background: conic-gradient(#ff4d4d, #ffd60a, #3ddc84, #00c2ff, #bf5af2, #ff4d4d);
  top: -25%;
  left: -12%;
  animation: float-a 18s ease-in-out infinite alternate;
}

.hero-bg::after {
  background: conic-gradient(#00c2ff, #5e5ce6, #bf5af2, #ff9f1c, #00c2ff);
  bottom: -35%;
  right: -12%;
  animation: float-a 22s ease-in-out infinite alternate-reverse;
}

@keyframes float-a {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(6%, 8%) scale(1.15); }
}

/* cursor-following color blobs */
.cursor-blob {
  position: absolute;
  top: 0;
  left: 0;
  width: 380px;
  height: 380px;
  margin: -190px 0 0 -190px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0;
  transition: opacity 0.8s ease;
  will-change: transform;
  pointer-events: none;
}

.cursor-blob.cb1 { background: radial-gradient(circle, rgba(0, 194, 255, 0.5), transparent 65%); }
.cursor-blob.cb2 { background: radial-gradient(circle, rgba(191, 90, 242, 0.45), transparent 65%); width: 300px; height: 300px; margin: -150px 0 0 -150px; }
.cursor-blob.cb3 { background: radial-gradient(circle, rgba(255, 159, 28, 0.4), transparent 65%); width: 240px; height: 240px; margin: -120px 0 0 -120px; }

.hero.mouse-active .cursor-blob { opacity: 0.55; }

.hero h1 {
  font-size: clamp(2.6rem, 6.5vw, 4.6rem);
  font-weight: 800;
  max-width: 900px;
  margin-inline: auto;
}

.hero-sub {
  margin: 22px auto 0;
  max-width: 560px;
  color: var(--gray);
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  font-weight: 500;
}

/* ---------- KI search field ---------- */
.search-shell {
  max-width: 720px;
  margin: 48px auto 0;
  position: relative;
}

.search-wrap { position: relative; }

/* soft breathing glow behind the box */
.search-wrap::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 28px;
  background: var(--rainbow);
  filter: blur(26px);
  opacity: 0.35;
  animation: spin-angle 5s linear infinite, breathe 3.6s ease-in-out infinite;
}

.search-box {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 2.5px solid transparent;
  border-radius: 22px;
  padding: 10px 10px 10px 22px;
  /* white fill + rotating rainbow ring on the border */
  background:
    linear-gradient(#fff, #fff) padding-box,
    var(--rainbow) border-box;
  animation: spin-angle 5s linear infinite;
}

@keyframes spin-angle {
  to { --angle: 360deg; }
}

@keyframes breathe {
  0%, 100% { opacity: 0.22; }
  50% { opacity: 0.5; }
}

.search-box .spark {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
}

.search-box input {
  flex: 1;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--ink);
  background: transparent;
  min-width: 0;
  padding: 12px 0;
}

.search-box input::placeholder { color: var(--gray-light); }

.search-box .btn-primary { padding: 13px 26px; flex-shrink: 0; }

.search-hint {
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--gray-light);
  font-weight: 500;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
}

.chip {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: #fff;
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--ink-soft);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.chip:hover { border-color: var(--ink); transform: translateY(-1px); }

.trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 32px;
  margin-top: 52px;
  color: var(--gray);
  font-size: 0.9rem;
  font-weight: 600;
}

.trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.trust-row svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ---------- Sections ---------- */
.section { padding: 110px 0; }

.section-head { margin-bottom: 56px; }

.section-head.center {
  text-align: center;
}

.section-head.center .section-lead { margin-inline: auto; }

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step-card {
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 30px;
  position: relative;
  background: #fff;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.step-num {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  margin-bottom: 22px;
}

.step-card h3 { font-size: 1.3rem; margin-bottom: 10px; }
.step-card p { color: var(--gray); font-size: 0.98rem; }

/* ---------- Quellen & Tools ---------- */
.sources { background: var(--paper-warm); }

.source-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 24px;
}

.source-card {
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 32px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.source-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.source-card h3 { font-size: 1.25rem; margin-bottom: 6px; }
.source-card > p { color: var(--gray); font-size: 0.95rem; margin-bottom: 24px; }

.source-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-light);
  margin-bottom: 14px;
}

.portal-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 34px;
}

.portal-logos .plogo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--ink-soft);
}

.portal-logos img {
  height: 26px;
  width: auto;
  filter: grayscale(1) contrast(1.05);
  opacity: 0.85;
  transition: filter 0.3s ease, opacity 0.3s ease;
}

.portal-logos img.tall { height: 34px; }

.source-card:hover .portal-logos img,
.portal-logos .plogo:hover img {
  filter: grayscale(0);
  opacity: 1;
}

.portal-logos .plogo.word-only {
  font-weight: 800;
  letter-spacing: -0.01em;
  opacity: 0.75;
}

.more-portals {
  font-size: 0.88rem;
  color: var(--gray-light);
  font-weight: 600;
  white-space: nowrap;
}

/* stylized map */
.map-visual {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1.5px solid var(--line);
  background: #fafaf8;
}

.map-visual svg { width: 100%; height: auto; display: block; }

.map-pin {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: pin-pop 3.2s ease-in-out infinite;
}

.map-pin.p2 { animation-delay: 0.7s; }
.map-pin.p3 { animation-delay: 1.5s; }

@keyframes pin-pop {
  0%, 100% { transform: translateY(0) scale(1); }
  12% { transform: translateY(-5px) scale(1.12); }
  24% { transform: translateY(0) scale(1); }
}

.maps-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 7px 12px;
  font-size: 0.82rem;
  font-weight: 700;
}

.maps-badge img { height: 18px; width: auto; }

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 24px;
}

.stat {
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 28px;
  text-align: center;
}

.stat b {
  display: block;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.stat span {
  color: var(--gray);
  font-size: 0.9rem;
  font-weight: 600;
}

.powered {
  margin-top: 56px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px 40px;
}

.powered .label {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-light);
}

.powered .ai-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
  opacity: 0.8;
  transition: opacity 0.25s ease;
}

.powered .ai-logo:hover { opacity: 1; }
.powered .ai-logo img { height: 26px; width: auto; }
.powered .ai-logo img.wordmark { height: 30px; }

/* ---------- USP / Warum ---------- */
.usp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.usp {
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  background: #fff;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.usp:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.usp-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: var(--paper-warm);
  border: 1px solid var(--line);
  margin-bottom: 20px;
}

.usp-icon svg { width: 22px; height: 22px; }

.usp h3 { font-size: 1.12rem; margin-bottom: 8px; }
.usp p { color: var(--gray); font-size: 0.93rem; }

/* ---------- Testimonials ---------- */
.quotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.quote {
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.quote .stars {
  letter-spacing: 3px;
  font-size: 0.95rem;
}

.quote p {
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--ink-soft);
  flex: 1;
}

.quote .who {
  display: flex;
  align-items: center;
  gap: 12px;
}

.quote .avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.85rem;
  color: #fff;
  background: var(--ink);
}

.quote .who b { display: block; font-size: 0.93rem; }
.quote .who span { font-size: 0.83rem; color: var(--gray); }

/* ---------- Arbeitgeber band ---------- */
.employer-band {
  background: var(--ink);
  color: #fff;
  border-radius: 28px;
  padding: 72px 60px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.employer-band::before {
  content: "";
  position: absolute;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: conic-gradient(#ff4d4d, #ffd60a, #3ddc84, #00c2ff, #bf5af2, #ff4d4d);
  filter: blur(110px);
  opacity: 0.25;
  right: -140px;
  top: -140px;
  animation: float-a 16s ease-in-out infinite alternate;
  pointer-events: none;
}

.employer-band h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  margin-bottom: 12px;
}

.employer-band p {
  color: rgba(255, 255, 255, 0.65);
  max-width: 480px;
  font-weight: 500;
}

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin-inline: auto; }

.faq-item {
  border-bottom: 1.5px solid var(--line);
}

.faq-q {
  width: 100%;
  background: none;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 24px 4px;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--ink);
  text-align: left;
}

.faq-q .ico {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  font-weight: 500;
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.faq-item.open .ico {
  transform: rotate(45deg);
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-a p {
  padding: 0 4px 26px;
  color: var(--gray);
  max-width: 640px;
}

/* ---------- Final CTA ---------- */
.final-cta {
  text-align: center;
  padding: 130px 0;
  position: relative;
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1.5px solid var(--line);
  padding: 56px 0 40px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  align-items: flex-start;
}

.footer .nav-logo img { height: 22px; }

.footer-links {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray);
}

.footer-links a:hover { color: var(--ink); }

.footer-note {
  margin-top: 36px;
  font-size: 0.82rem;
  color: var(--gray-light);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
}

/* rainbow hairline */
.rainbow-line {
  height: 3px;
  background: var(--rainbow-linear);
  background-size: 300% 100%;
  animation: slide-hue 8s linear infinite;
}

/* ---------- Reveal on scroll (only hidden when JS is active) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js .reveal.visible {
  opacity: 1;
  transform: none;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translate(-50%, 20px);
  background: var(--ink);
  color: #fff;
  padding: 13px 22px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 200;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- Employer page ---------- */
.hero-employer { text-align: left; padding-bottom: 60px; }
.hero-employer h1 { margin-inline: 0; }
.hero-employer .hero-sub { margin-inline: 0; }
.hero-employer .hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 36px;
  flex-wrap: wrap;
}

/* ---------- Journey (So funktioniert's) ---------- */
.journey-track {
  position: relative;
  max-width: 1020px;
  margin-inline: auto;
}

.journey-line {
  position: absolute;
  left: 50%;
  top: 30px;
  bottom: 30px;
  width: 3px;
  transform: translateX(-50%);
  background: var(--line);
  border-radius: 2px;
}

.journey-line-fill {
  position: absolute;
  inset: 0 0 auto 0;
  height: 0%;
  border-radius: 2px;
  background: linear-gradient(180deg, #ff4d4d, #ffd60a, #3ddc84, #00c2ff, #bf5af2);
}

.journey-step {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 8vw, 110px);
  align-items: center;
  padding: 64px 0;
  position: relative;
}

.journey-node {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #fff;
  border: 2.5px solid var(--line);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.9rem;
  z-index: 2;
  transition: background 0.4s ease, color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.journey-step.active .journey-node {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
  box-shadow: 0 0 0 6px rgba(14, 14, 14, 0.06), 0 8px 24px rgba(14, 14, 14, 0.18);
}

.journey-step:nth-child(odd) .journey-text { order: 2; }
.journey-step:nth-child(odd) .journey-visual { order: 1; }

.journey-text .step-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-light);
  margin-bottom: 12px;
}

.journey-text h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 12px; }
.journey-text p { color: var(--gray); font-size: 1.02rem; max-width: 420px; }

/* shared visual card */
.visual-card {
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 20px;
  padding: 26px;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

/* --- visual 1: quiz --- */
.quiz-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.quiz-head span { font-weight: 800; font-size: 0.95rem; }

.quiz-bar {
  flex: 1;
  max-width: 130px;
  height: 6px;
  border-radius: 3px;
  background: var(--paper-warm);
  overflow: hidden;
}

.quiz-bar i {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: 3px;
  background: var(--rainbow-linear);
  background-size: 300% 100%;
}

.in-view .quiz-bar i { animation: quiz-bar 7s ease-in-out infinite, slide-hue 6s linear infinite; }

@keyframes quiz-bar {
  0% { width: 4%; }
  70%, 92% { width: 100%; }
  100% { width: 4%; }
}

.quiz-q { font-size: 0.92rem; font-weight: 600; color: var(--gray); margin-bottom: 10px; }

.quiz-opts {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.quiz-opts b {
  flex: 1;
  text-align: center;
  padding: 11px 10px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  font-size: 0.88rem;
  font-weight: 700;
  transition: all 0.3s ease;
}

.in-view .quiz-opts b.pick { animation: opt-pick 7s ease-in-out infinite; }

@keyframes opt-pick {
  0%, 14% { background: #fff; color: var(--ink); border-color: var(--line); }
  22%, 92% { background: var(--ink); color: #fff; border-color: var(--ink); }
  100% { background: #fff; color: var(--ink); border-color: var(--line); }
}

.quiz-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--paper-warm);
  font-size: 0.94rem;
  font-weight: 600;
}

.quiz-row .ck {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  border: 1.5px solid var(--line);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-style: normal;
  font-size: 0.75rem;
  color: transparent;
  transition: all 0.3s ease;
}

.quiz-row .ck::before { content: "✓"; font-weight: 800; }

.in-view .quiz-row:nth-child(4) .ck { animation: ck-pop 7s ease-in-out infinite 0.6s; }
.in-view .quiz-row:nth-child(5) .ck { animation: ck-pop 7s ease-in-out infinite 1.5s; }
.in-view .quiz-row:nth-child(6) .ck { animation: ck-pop 7s ease-in-out infinite 2.4s; }

@keyframes ck-pop {
  0%, 8% { background: #fff; color: transparent; border-color: var(--line); transform: scale(1); }
  12% { transform: scale(1.25); }
  16%, 90% { background: var(--ink); color: #fff; border-color: var(--ink); transform: scale(1); }
  100% { background: #fff; color: transparent; border-color: var(--line); }
}

/* --- visual 2: scan --- */
.scan-stage {
  position: relative;
  border-radius: 14px;
  background: var(--paper-warm);
  border: 1px solid var(--line);
  padding: 22px;
  overflow: hidden;
}

.scan-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}

.scan-grid i {
  aspect-ratio: 1;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
  transition: all 0.3s ease;
}

.in-view .scan-grid i { animation: dot-flicker 4.2s ease-in-out infinite; }
.in-view .scan-grid i.hit { animation: dot-hit 4.2s ease-in-out infinite; }

@keyframes dot-flicker {
  0%, 100% { background: #fff; }
  50% { background: #f0eee8; }
}

@keyframes dot-hit {
  0%, 30% { background: #fff; border-color: var(--line); transform: scale(1); }
  40% { transform: scale(1.18); }
  45%, 85% { background: var(--ink); border-color: var(--ink); transform: scale(1); }
  100% { background: #fff; border-color: var(--line); }
}

.scan-sweep {
  position: absolute;
  inset: -60%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    transparent 300deg,
    rgba(0, 194, 255, 0.14) 330deg,
    rgba(191, 90, 242, 0.2) 355deg,
    transparent 360deg
  );
  pointer-events: none;
}

.in-view .scan-sweep { animation: sweep-rotate 4.2s linear infinite; }

@keyframes sweep-rotate { to { transform: rotate(360deg); } }

.scan-chip {
  position: relative;
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  font-weight: 700;
  z-index: 1;
}

.scan-chip .pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--rainbow-linear);
  background-size: 300% 100%;
  animation: slide-hue 4s linear infinite, breathe 1.6s ease-in-out infinite;
  flex-shrink: 0;
}

.scan-chip b { font-variant-numeric: tabular-nums; }

/* --- score ring (journey visual 3 + match cards) --- */
.score-ring {
  position: relative;
  width: 68px;
  height: 68px;
  flex-shrink: 0;
}

.score-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }

.score-ring .track { fill: none; stroke: var(--paper-warm); stroke-width: 6; }

.score-ring .bar {
  fill: none;
  stroke: url(#ringGrad);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 163.4;
  stroke-dashoffset: 163.4;
  transition: stroke-dashoffset 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.score-ring .pct {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

/* --- visual 3: match result --- */
.matchwin .mini-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.matchwin .mini-info { display: flex; align-items: center; gap: 14px; }

.matchwin .mini-logo {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.85rem;
}

.matchwin h4 { font-size: 1.05rem; letter-spacing: -0.01em; }
.matchwin .mini-info span { font-size: 0.85rem; color: var(--gray); font-weight: 600; }

.matchwin .mini-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }

.mini-tags em {
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--paper-warm);
  border: 1px solid var(--line);
}

.matchwin .match-flag {
  margin-top: 18px;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.in-view.matchwin .match-flag { animation: flag-in 0.8s cubic-bezier(0.22, 1, 0.36, 1) both 0.9s; }

@keyframes flag-in {
  from { opacity: 0; transform: translateY(14px) scale(0.96); }
  to { opacity: 1; transform: none; }
}

/* ---------- Match setcards ---------- */
.matches { background: var(--paper-warm); }

.match-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.match-card {
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.match-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-soft);
}

.match-card.featured { border-color: var(--ink); }

.match-badge {
  position: absolute;
  top: -13px;
  left: 24px;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.match-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--rainbow-linear);
  background-size: 300% 100%;
  animation: slide-hue 4s linear infinite;
}

.match-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.match-logo {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--paper-warm);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.9rem;
}

.match-card h3 { font-size: 1.18rem; margin-bottom: 4px; }
.match-card .company { color: var(--gray); font-size: 0.92rem; font-weight: 600; margin-bottom: 16px; }

.match-meta {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 18px;
}

.match-meta span {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.match-meta svg { width: 15px; height: 15px; flex-shrink: 0; color: var(--gray-light); }

.match-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }

.match-tags em {
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--paper-warm);
  border: 1px solid var(--line);
}

.match-card .btn { margin-top: auto; width: 100%; }

/* ---------- Footer byline (mitarbeiter.com) ---------- */
.byline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gray-light);
  font-weight: 600;
}

.byline img {
  height: 15px;
  width: auto;
  filter: grayscale(1);
  opacity: 0.65;
  transition: filter 0.25s ease, opacity 0.25s ease;
}

.byline:hover img { filter: grayscale(0); opacity: 1; }

/* ---------- Legal pages ---------- */
.legal {
  padding: 160px 0 90px;
  max-width: 720px;
  margin-inline: auto;
}

.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 40px; }
.legal h2 { font-size: 1.4rem; margin: 44px 0 12px; }
.legal h3 { font-size: 1.12rem; margin: 30px 0 8px; }
.legal h4 { font-size: 0.98rem; margin: 22px 0 6px; }
.legal p, .legal a, .legal li { color: var(--ink-soft); font-size: 0.98rem; }
.legal p { margin-bottom: 12px; }
.legal ul, .legal ol { padding-left: 22px; margin-bottom: 12px; }
.legal a { text-decoration: underline; text-underline-offset: 3px; word-break: break-word; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .steps, .quotes { grid-template-columns: 1fr; }
  .usp-grid { grid-template-columns: repeat(2, 1fr); }
  .source-grid { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: repeat(3, 1fr); }
  .employer-band { flex-direction: column; align-items: flex-start; padding: 52px 36px; }
  .match-cards { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }

  /* journey collapses to left-line layout */
  .journey-line { left: 26px; transform: none; }
  .journey-step {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 48px 0 48px 68px;
  }
  .journey-node { left: 26px; top: 52px; transform: translate(-50%, 0); }
  .journey-step:nth-child(odd) .journey-text { order: 1; }
  .journey-step:nth-child(odd) .journey-visual { order: 2; }
}

@media (max-width: 760px) {
  /* cheaper compositing on mobile: no backdrop blur, lighter glow layers */
  .nav {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .hero-bg::before,
  .hero-bg::after {
    filter: blur(60px);
    opacity: 0.08;
    animation: none;
  }

  .search-wrap::before { filter: blur(18px); }

  .employer-band::before { filter: blur(60px); }

  .nav-menu { display: none; }
  .nav-burger { display: flex; }

  .nav.menu-open .nav-menu {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1.5px solid var(--line);
    padding: 12px 24px 22px;
    box-shadow: 0 24px 40px rgba(14, 14, 14, 0.08);
  }

  .nav.menu-open .nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    width: 100%;
  }

  .nav.menu-open .nav-links a { padding: 10px 0; font-size: 1.05rem; }

  .nav.menu-open .nav-actions {
    flex-direction: row;
    padding-top: 16px;
  }

  .nav.menu-open { background: #fff; }
  .nav.menu-open .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.menu-open .nav-burger span:nth-child(2) { opacity: 0; }
  .nav.menu-open .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .hero { padding: 130px 0 70px; }
  .section { padding: 72px 0; }
  .usp-grid { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr; }

  .search-box { flex-wrap: wrap; padding: 14px 16px; }
  .search-box .btn-primary { width: 100%; }
  .search-box input { width: 100%; padding: 6px 0; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
