/* ==========================================================================
   SLM Talent Advisory — main.css
   Design-System: edel, ruhig, Mobile-First
   ========================================================================== */

:root {
  /* Grün-Palette aus Logo (Sage/Waldgrün) */
  --green-900: #2c5238;
  --green-800: #3a6747;
  --green-700: #467a56;
  --green-600: #5b8e6b;
  --green-500: #6ea17e;
  --green-400: #93ba9f;
  --green-200: #c8dbce;
  --green-100: #dfe8e1;
  --green-50: #eef3ef;

  /* Neutrale */
  --black: #0a0a0a;
  --gray-900: #1a1a1a;
  --gray-700: #3a3a3a;
  --gray-500: #787878;
  --gray-400: #a0a0a0;
  --gray-300: #d0d0d0;
  --gray-200: #e4e4e4;
  --gray-100: #f0f0f0;

  --cream: #f7f5ef;
  --cream-dark: #eae7dc;
  --gold: #c9a85c;

  /* Semantisch (Light) */
  --bg: var(--cream);
  --bg-elev: #faf9f6;
  --fg: var(--gray-900);
  --fg-muted: #5a5a5a;
  --fg-subtle: #8a8a8a;
  --border: var(--gray-200);
  --accent: var(--green-800);
  --accent-hover: var(--green-900);
  --accent-soft: var(--green-50);

  /* Typo */
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'DM Sans', system-ui, sans-serif;
  --font-display: 'Syne', 'DM Sans', sans-serif;

  /* Rhythmus */
  --nav-h: 64px;
  --maxw: 1200px;
  --nav-maxw: 1320px;
  --gutter: clamp(20px, 4vw, 40px);
  --sec-py: clamp(72px, 9vw, 140px);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 10px rgba(10, 30, 20, 0.04);
  --shadow-md: 0 6px 28px rgba(10, 30, 20, 0.06);
  --shadow-lg: 0 24px 80px rgba(10, 30, 20, 0.1);

  --t-fast: 0.2s ease;
  --t-med: 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Dark Mode */
[data-theme='dark'] {
  --bg: #0d1410;
  --bg-elev: #141c17;
  --fg: #e8ede8;
  --fg-muted: #b0b8b2;
  --fg-subtle: #7e867f;
  --border: #263028;
  --accent: var(--green-400);
  --accent-hover: #b3d0bc;
  --accent-soft: #18231d;
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 6px 28px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 24px 80px rgba(0, 0, 0, 0.5);
}

/* Animatable gradient + halo colors (via @property for interpolation) */
@property --hero-g1 {
  syntax: '<color>';
  inherits: true;
  initial-value: #eef3ef;
}
@property --hero-g2 {
  syntax: '<color>';
  inherits: true;
  initial-value: #c8dbce;
}
@property --hero-g3 {
  syntax: '<color>';
  inherits: true;
  initial-value: #93ba9f;
}
@property --hero-halo-in {
  syntax: '<color>';
  inherits: true;
  initial-value: rgba(255, 255, 255, 1);
}
@property --hero-halo-mid {
  syntax: '<color>';
  inherits: true;
  initial-value: rgba(255, 255, 255, 0.62);
}
@property --hero-halo-out {
  syntax: '<color>';
  inherits: true;
  initial-value: rgba(255, 255, 255, 0);
}

:root {
  --hero-g1: var(--green-50);
  --hero-g2: var(--green-200);
  --hero-g3: var(--green-400);
  --hero-halo-in: rgba(255, 255, 255, 1);
  --hero-halo-mid: rgba(255, 255, 255, 0.62);
  --hero-halo-out: rgba(255, 255, 255, 0);
  --hero-tint: #efe7d5;
}
[data-theme='dark'] {
  --hero-g1: var(--bg);
  --hero-g2: var(--bg-elev);
  --hero-g3: var(--border);
  --hero-halo-in: rgba(0, 0, 0, 0.9);
  --hero-halo-mid: rgba(0, 0, 0, 0.55);
  --hero-halo-out: rgba(0, 0, 0, 0);
  --hero-tint: #ffffff;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  background:
    linear-gradient(var(--hero-tint), var(--hero-tint)),
    linear-gradient(
      170deg,
      var(--hero-g1) 0%,
      var(--hero-g2) 52%,
      var(--hero-g3) 100%
    ),
    var(--bg);
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-blend-mode: multiply, normal, normal;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  background: transparent;
  color: var(--fg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg,
canvas {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  color: inherit;
}
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

::selection {
  background: var(--green-200);
  color: var(--green-900);
}

/* Subtiler Noise-Overlay wie im Original */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
  opacity: 0.7;
}

/* ── Typography ──────────────────────────────────────── */
h1,
h2,
h3,
h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--fg);
}
h1 {
  font-size: clamp(2.1rem, 6vw, 3.6rem);
}
h2 {
  font-size: clamp(1.75rem, 4.5vw, 2.8rem);
}
h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
  letter-spacing: -0.01em;
}
h1 em,
h2 em {
  font-style: italic;
  color: var(--accent);
}

.overline {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}

p {
  color: var(--fg-muted);
  max-width: 62ch;
}
.lead {
  font-size: clamp(1.02rem, 1.8vw, 1.18rem);
  color: var(--fg-muted);
  line-height: 1.65;
}

/* ── Layout ──────────────────────────────────────────── */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

section {
  padding: var(--sec-py) 0;
  position: relative;
}
section:not(.hero) {
  background: var(--bg);
}
section + section {
  border-top: 1px solid var(--border);
}

.section-head {
  margin-bottom: clamp(24px, 4vw, 44px);
  max-width: 740px;
}
.section-head .overline {
  display: inline-block;
  margin-bottom: 12px;
}
.section-head p {
  margin-top: 14px;
}

/* ── Nav ─────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 50%, transparent);
  z-index: 10001;
  transition:
    background var(--t-fast),
    border-color var(--t-fast);
}
.nav-inner {
  max-width: var(--nav-maxw);
  margin: 0 auto;
  height: 100%;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(16px, 2vw, 28px);
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-serif);
  font-size: clamp(0.72rem, 3.1vw, 1.2rem);
  color: var(--fg);
  min-width: 0;
  flex: 0 0 auto;
  letter-spacing: -0.005em;
}
.nav-brand img {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 6px;
}
.nav-brand span {
  display: inline-block;
  white-space: nowrap;
  width: 10.2em;
  flex-shrink: 0;
  overflow: hidden;
}
@media (max-width: 720px) {
  .nav-brand {
    gap: 10px;
  }
  .nav-brand img {
    width: 38px;
    height: 38px;
  }
}
@media (max-width: 560px) {
  .nav-brand span {
    display: none;
  }
  .nav-brand img {
    width: 46px;
    height: 46px;
  }
}
@media (max-width: 480px) {
  .nav-brand {
    gap: 8px;
  }
  .nav-brand img {
    width: 44px;
    height: 44px;
  }
  .nav-utils {
    gap: 4px;
  }
  .util-btn {
    width: 34px;
    height: 34px;
  }
  .nav-toggle {
    width: 38px;
    height: 38px;
  }
  .nav-inner {
    gap: 8px;
  }
}
@media (max-width: 360px) {
  .nav-brand img {
    width: 40px;
    height: 40px;
  }
  .util-btn {
    width: 30px;
    height: 30px;
  }
  .util-btn svg {
    width: 15px;
    height: 15px;
  }
  .util-btn[data-lang-toggle]::before {
    font-size: 0.68rem;
  }
}
.nav-inner > nav {
  flex: 1 1 0%;
  min-width: 0;
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.nav-links {
  display: none;
  list-style: none;
  gap: clamp(16px, 1.8vw, 28px);
  align-items: center;
  justify-content: center;
  width: 100%;
}
.nav-links a {
  font-size: 0.88rem;
  color: var(--fg-muted);
  letter-spacing: 0.02em;
  transition: color var(--t-fast);
  position: relative;
  padding: 6px 0;
  white-space: nowrap;
}
.nav-links a:hover {
  color: var(--fg);
}
.nav-links a[aria-current='true'] {
  color: var(--accent);
}
.nav-links a[aria-current='true']::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--accent);
}
.nav-cta {
  flex: 0 0 auto;
  min-width: 160px;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  color: var(--fg);
}
.nav-toggle svg {
  width: 22px;
  height: 22px;
}

/* Mobile Menu */
.nav-menu {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  height: calc(100dvh - var(--nav-h));
  max-height: calc(100dvh - var(--nav-h));
  background: var(--bg);
  padding: 24px var(--gutter) 32px;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity var(--t-fast),
    transform var(--t-fast);
  z-index: 10000;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.nav-menu.open {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.nav-menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.nav-menu a {
  display: block;
  padding: 12px 0;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--fg);
  border-bottom: 1px solid var(--border);
}
.nav-menu .nav-menu-cta {
  margin-top: 22px;
}

@media (min-width: 1260px) {
  .nav-links {
    display: flex;
  }
  .nav-toggle {
    display: none;
  }
  .nav-cta {
    display: inline-flex;
  }
  .nav-menu {
    display: none;
  }
}

/* ── Buttons ─────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--t-med);
  min-height: 44px;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #ffffff;
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(31, 68, 48, 0.22);
}
.btn-ghost {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.78rem;
  min-height: 40px;
}

/* ── Hero ────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--nav-h) + 36px) 0 56px;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100lvh;
  z-index: -3;
  background:
    linear-gradient(var(--hero-tint), var(--hero-tint)),
    linear-gradient(
      170deg,
      var(--hero-g1) 0%,
      var(--hero-g2) 52%,
      var(--hero-g3) 100%
    ),
    var(--bg);
  background-blend-mode: multiply, normal, normal;
}
.hero-noise {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100lvh;
  z-index: -2;
  opacity: 0.25;
  filter: blur(32px) saturate(120%);
  pointer-events: none;
  mix-blend-mode: multiply;
}
@media (max-width: 768px) {
  .hero-noise {
    opacity: 0.2;
    filter: blur(24px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-noise {
    opacity: 0.5;
    filter: blur(22px);
  }
}
.hero-particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100lvh;
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.9s ease;
}
.hero-particles.is-ready {
  opacity: 1;
}
body.hero-offscreen .hero-bg,
body.hero-offscreen .hero-noise,
body.hero-offscreen .hero-particles {
  visibility: hidden;
}

/* Halo hinter Logo + Content — heller Schein (light), grüner Glow (dark) */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(
    ellipse clamp(320px, 64vw, 720px) clamp(320px, 72vh, 620px) at 50% 38%,
    var(--hero-halo-in) 0%,
    var(--hero-halo-mid) 45%,
    var(--hero-halo-out) 90%
  );
  pointer-events: none;
}

.hero-inner {
  position: relative;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
  text-align: center;
  z-index: 1;
}
.hero-inner,
.nav-links,
.nav-brand span,
.nav-brand img,
.nav-utils,
.nav-cta,
.nav-toggle,
.hero-logo {
  opacity: 0;
  transition: opacity 0.125s ease 0.125s;
}
body.is-loaded .hero-inner,
body.is-loaded .nav-links,
body.is-loaded .nav-brand span,
body.is-loaded .nav-brand img,
body.is-loaded .nav-utils,
body.is-loaded .nav-cta,
body.is-loaded .nav-toggle,
body.is-loaded .hero-logo {
  opacity: 1;
}
.hero-logo {
  width: clamp(100px, 18vw, 150px);
  height: auto;
  margin: 0 auto 28px;
}
.hero h1 {
  max-width: 16ch;
  margin: 0 auto 20px;
}
.hero .lead {
  max-width: 58ch;
  margin: 0 auto;
}
.hero-ctas {
  margin-top: 32px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Über mich ───────────────────────────────────────── */
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.split-media {
  aspect-ratio: 4/3;
  background: var(--green-100);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-md);
}
.split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.split-media .media-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-600);
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: repeating-linear-gradient(
    135deg,
    var(--green-100),
    var(--green-100) 24px,
    var(--green-50) 24px,
    var(--green-50) 48px
  );
}
.split-body h2 {
  margin-bottom: 20px;
}
.split-body p + p {
  margin-top: 16px;
}
.split-body .overline {
  margin-bottom: 16px;
  display: inline-block;
}

@media (min-width: 860px) {
  .split {
    grid-template-columns: 1.05fr 1fr;
  }
  .split.reverse .split-body {
    order: 1;
  }
  .split.reverse .split-media {
    order: 2;
  }
}

/* Pull-Quote unter Über mich */
.pull-quote {
  margin: clamp(32px, 5vw, 56px) auto 0;
  max-width: 820px;
  padding: 0 var(--gutter);
  text-align: center;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  color: var(--fg);
  line-height: 1.45;
  position: relative;
}
.pull-quote::before {
  content: '—';
  display: block;
  font-style: normal;
  color: var(--accent);
  margin-bottom: 12px;
  letter-spacing: 0.2em;
}

/* ── Leistungen ─────────────────────────────────────── */
.services {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.service {
  background: var(--bg-elev);
  padding: clamp(28px, 4vw, 44px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: background var(--t-med);
  position: relative;
}
.service:hover {
  background: var(--accent-soft);
}
.service .num {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--accent);
  line-height: 1;
}
.service .icon {
  width: 44px;
  height: 44px;
  color: var(--accent);
}
.service .icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.4;
}
.service h3 {
  font-size: 1.3rem;
}
.service p {
  font-size: 0.95rem;
}

@media (min-width: 680px) {
  .services {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 1024px) {
  .services {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ── Ablauf (vertikale Timeline) ─────────────────────── */
.steps {
  counter-reset: step;
  max-width: 780px;
  margin: 0 auto;
  padding-left: 8px;
}
.step {
  position: relative;
  padding: 0 0 28px 56px;
  counter-increment: step;
  margin-left: 20px;
  border-left: 1px solid var(--border);
}
.step:last-child {
  border-left-color: transparent;
  padding-bottom: 0;
}
.step::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: -21px;
  top: -4px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--accent);
  background: var(--bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: var(--accent);
  letter-spacing: 0.02em;
}
.step h3 {
  margin: 6px 0 10px;
  font-size: 1.15rem;
}
.step ul {
  list-style: none;
  color: var(--fg-muted);
  font-size: 0.94rem;
}
.step ul li {
  padding: 3px 0 3px 14px;
  position: relative;
}
.step ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 6px;
  height: 1px;
  background: var(--accent);
}

/* ── Prioritätensuche ───────────────────────────────── */
.priority {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(32px, 5vw, 56px);
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 4vw, 48px);
}
.priority-media {
  aspect-ratio: 5/4;
  background: var(--green-100);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.priority-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.priority-body h2 {
  margin-bottom: 20px;
}
.priority-body ul {
  margin-top: 24px;
  list-style: none;
  display: grid;
  gap: 10px;
}
.priority-body ul li {
  padding-left: 24px;
  position: relative;
  color: var(--fg-muted);
  font-size: 0.95rem;
}
.priority-body ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 12px;
  height: 1px;
  background: var(--accent);
}

@media (min-width: 900px) {
  .priority {
    grid-template-columns: 1.25fr 1fr;
    align-items: center;
  }
}

/* ── Referenzen (Marquee) ───────────────────────────── */
.testimonials {
  overflow: hidden;
}
.ref-banner {
  margin: 0 0 clamp(28px, 4vw, 48px);
  aspect-ratio: 16/5;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--green-100);
  box-shadow: var(--shadow-md);
}
.ref-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (max-width: 680px) {
  .ref-banner {
    aspect-ratio: 16/9;
  }
}
.testimonial-viewport {
  position: relative;
  overflow: hidden;
  max-width: var(--maxw);
  margin: 24px auto 0;
  padding: 8px 0 32px;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
  mask-image: linear-gradient(
    to right,
    transparent 0,
    #000 8%,
    #000 92%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0,
    #000 8%,
    #000 92%,
    transparent 100%
  );
}
.testimonial-viewport.dragging {
  cursor: grabbing;
}
.testimonial-track {
  display: flex;
  gap: 20px;
  padding: 0 var(--gutter);
  will-change: transform;
}
.testimonial {
  flex: 0 0 min(92%, 620px);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: clamp(28px, 4vw, 44px);
  display: flex;
  flex-direction: column;
  gap: 20px;
  pointer-events: none;
}
.testimonial q {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  line-height: 1.5;
  color: var(--fg);
  quotes: none;
}
.testimonial q::before,
.testimonial q::after {
  content: '';
}
.testimonial .meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-top: auto;
}
.testimonial .meta strong {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--fg);
}
.testimonial .meta span {
  font-size: 0.8rem;
  color: var(--fg-subtle);
}

/* ── Für Kandidaten (reuse split) ──────────────────── */

/* ── Formulare ──────────────────────────────────────── */
.form-section {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: clamp(24px, 4vw, 40px);
  margin-bottom: 20px;
}
.form-section .form-section-title {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
.form-grid .full-width {
  grid-column: 1 / -1;
}
@media (min-width: 640px) {
  .form-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--fg-muted);
}
.field label .req {
  color: var(--accent);
  margin-left: 2px;
}
.field input[type='text'],
.field input[type='email'],
.field input[type='tel'],
.field input[type='date'],
.field input[type='number'],
.field select,
.field textarea {
  font-family: var(--font-sans);
  font-size: 0.96rem;
  padding: 13px 15px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--fg);
  transition:
    border-color var(--t-fast),
    box-shadow var(--t-fast);
  outline: none;
  min-height: 44px;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 12%, transparent);
}
.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: #c0392b;
  background: #fdf3f2;
}
.field .field-error,
.cb-field .field-error {
  display: none;
  color: #c0392b;
  font-size: 0.78rem;
  margin-top: 2px;
}
.field.has-error .field-error,
.cb-field.has-error .field-error {
  display: block;
}
.cb-field.has-error label {
  color: #c0392b;
}
.field .field-hint {
  color: var(--fg-subtle);
  font-size: 0.76rem;
  margin-top: 2px;
  font-style: italic;
}
.field textarea {
  min-height: 120px;
  resize: vertical;
}

.file-upload {
  position: relative;
  border: 1.5px dashed var(--green-200);
  border-radius: var(--radius-sm);
  padding: 24px 16px;
  text-align: center;
  cursor: pointer;
  transition:
    border-color var(--t-fast),
    background var(--t-fast);
  background: var(--bg);
  min-height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.file-upload:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.file-upload.has-file {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.file-upload input[type='file'] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.file-upload .u-icon {
  width: 28px;
  height: 28px;
  color: var(--accent);
  margin-bottom: 8px;
}
.file-upload .u-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.4;
}
.file-upload .u-text {
  font-size: 0.88rem;
  color: var(--fg-muted);
}
.file-upload .u-hint {
  font-size: 0.72rem;
  color: var(--fg-subtle);
  margin-top: 4px;
}
.file-upload .u-name {
  font-size: 0.84rem;
  color: var(--accent);
  font-weight: 500;
  margin-top: 6px;
}
.photo-preview {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 8px;
  display: none;
  border: 2px solid var(--green-200);
}

.cb-field {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-top: 4px;
}
.cb-field input[type='checkbox'] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--accent);
  flex-shrink: 0;
}
.cb-field label {
  font-size: 0.86rem;
  color: var(--fg-muted);
  line-height: 1.55;
}
.cb-field a {
  color: var(--accent);
  font-weight: 500;
}

.submit-btn {
  display: block;
  width: 100%;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
  background: var(--accent);
  border: 0;
  padding: 18px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--t-med);
  margin-top: 24px;
  min-height: 48px;
}
.submit-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 12px 40px rgba(31, 68, 48, 0.22);
}
.submit-btn:disabled {
  background: var(--gray-400);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Contact rows (Firma) */
.contact-row {
  padding: 20px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  position: relative;
}
.contact-row .cr-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.contact-row .cr-label {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.contact-row .cr-remove {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--fg-subtle);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 1.1rem;
  line-height: 1;
  transition: all var(--t-fast);
}
.contact-row .cr-remove:hover {
  border-color: #c0392b;
  color: #c0392b;
}
.add-contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px dashed var(--accent);
  color: var(--accent);
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-weight: 500;
  transition: all var(--t-fast);
  min-height: 44px;
}
.add-contact-btn:hover {
  background: var(--accent-soft);
  border-style: solid;
}

/* Tabs für Bewerber/Firma */
.form-tabs {
  display: flex;
  gap: 4px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 4px;
  margin: 0 auto 40px;
  max-width: 420px;
}
.form-tab {
  flex: 1;
  padding: 12px 18px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-muted);
  border-radius: var(--radius-pill);
  transition: all var(--t-fast);
  min-height: 44px;
}
.form-tab[aria-selected='true'] {
  background: var(--accent);
  color: #ffffff;
}

.form-panel {
  display: none;
}
.form-panel.active {
  display: block;
}

/* ── Kontakt ─────────────────────────────────────────── */
.contact-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.contact-block .contact-item {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-elev);
}
.contact-block .contact-item .label {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-subtle);
  margin-bottom: 8px;
}
.contact-block .contact-item a {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--fg);
  transition: color var(--t-fast);
}
.contact-block .contact-item a:hover {
  color: var(--accent);
}
@media (min-width: 680px) {
  .contact-block {
    grid-template-columns: 1fr 1fr;
  }
}

/* ── Footer ─────────────────────────────────────────── */
footer {
  padding: 40px var(--gutter) 32px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
footer .foot-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}
footer .foot-social {
  display: flex;
  gap: 12px;
  list-style: none;
  justify-content: center;
}
footer .foot-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--fg-muted);
  transition: all var(--t-fast);
}
footer .foot-social a:hover {
  border-color: var(--accent);
  color: var(--accent);
}
footer .foot-social svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}
footer .foot-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
}
footer .foot-links a {
  font-size: 0.82rem;
  color: var(--fg-muted);
  transition: color var(--t-fast);
}
footer .foot-links a:hover {
  color: var(--accent);
}
footer .copy {
  font-size: 0.76rem;
  color: var(--fg-subtle);
}
@media (min-width: 860px) {
  footer .foot-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
  footer .foot-social {
    justify-content: flex-end;
  }
}

/* ── Reveal Animation ───────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.9s cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal.in-view {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ── Message Overlays ───────────────────────────────── */
.msg-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10001;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.msg-overlay.show {
  display: flex;
}
.msg-box {
  background: var(--bg-elev);
  border-radius: var(--radius-lg);
  padding: 48px 36px;
  text-align: center;
  max-width: 440px;
  width: 100%;
  box-shadow: var(--shadow-lg);
}
.msg-box .m-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.5rem;
}
.msg-box .m-icon.success {
  color: var(--accent);
  background: var(--accent-soft);
}
.msg-box .m-icon.error {
  color: #c0392b;
  background: #fdf3f2;
}
.msg-box h3 {
  margin-bottom: 12px;
}
.msg-box p {
  color: var(--fg-muted);
  margin: 0 auto;
}
.msg-box button {
  margin-top: 24px;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 12px 32px;
  border: 1px solid var(--accent);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--accent);
  min-height: 44px;
  transition: all var(--t-fast);
}
.msg-box button:hover {
  background: var(--accent);
  color: #ffffff;
}

.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  vertical-align: middle;
  margin-right: 8px;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ── A11y: Focus ────────────────────────────────────── */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ── Utility ────────────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Util Buttons (Theme + Lang Toggle) ─────────────── */
.nav-utils {
  display: flex;
  gap: 6px;
  flex: 0 0 auto;
}

.util-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--fg-muted);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition:
    color var(--t-fast),
    border-color var(--t-fast),
    background var(--t-fast);
}
.util-btn:hover {
  color: var(--fg);
  border-color: var(--accent);
}
.util-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}
.util-btn .sun {
  display: inline-block;
}
.util-btn .moon {
  display: none;
}
[data-theme='dark'] .util-btn .sun {
  display: none;
}
[data-theme='dark'] .util-btn .moon {
  display: inline-block;
}

.util-btn[data-lang-toggle] {
  font-size: 0;
}
.util-btn[data-lang-toggle]::before {
  content: 'EN';
  font-size: 0.78rem;
}
[data-lang='en'] .util-btn[data-lang-toggle]::before {
  content: 'DE';
}

/* ── Smooth Theme Transition ─────────────────────────── */
body.theme-animate,
body.theme-animate *,
body.theme-animate *::before,
body.theme-animate *::after {
  transition:
    background-color 0.45s ease,
    background 0.45s ease,
    border-color 0.45s ease,
    color 0.45s ease,
    fill 0.45s ease,
    stroke 0.45s ease,
    box-shadow 0.45s ease !important;
}
/* Hero gradient + halo use custom-prop interpolation — keep their own transitions */
body.theme-animate .hero-bg {
  transition:
    --hero-g1 0.5s ease,
    --hero-g2 0.5s ease,
    --hero-g3 0.5s ease !important;
}
body.theme-animate .hero::before {
  transition:
    --hero-halo-in 0.5s ease,
    --hero-halo-mid 0.5s ease,
    --hero-halo-out 0.5s ease !important;
}

/* ── Legal Pages (Impressum, Datenschutz) ───────────── */
body.legal {
  background: var(--bg);
  color: var(--fg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.legal-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 14px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.legal-nav-right {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.back-link {
  font-size: 0.88rem;
  color: var(--fg-muted);
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  transition:
    color var(--t-fast),
    background var(--t-fast);
}
.back-link:hover {
  color: var(--fg);
  background: var(--accent-soft);
}
.legal-main {
  flex: 1;
  max-width: 760px;
  width: 100%;
  margin: 0 auto;
  padding: clamp(48px, 7vw, 96px) var(--gutter) clamp(64px, 9vw, 120px);
}
.legal-main .overline {
  color: var(--accent);
  margin-bottom: 14px;
}
.legal-main h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: clamp(32px, 5vw, 56px);
  color: var(--fg);
}
.legal-main h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  font-weight: 400;
  line-height: 1.3;
  margin-top: clamp(32px, 4vw, 48px);
  margin-bottom: 12px;
  color: var(--fg);
}
.legal-main p,
.legal-main li {
  font-size: 0.98rem;
  color: var(--fg-muted);
  line-height: 1.7;
}
.legal-main p + p {
  margin-top: 12px;
}
.legal-main ul {
  list-style: disc;
  padding-left: 22px;
  margin: 10px 0;
}
.legal-main li {
  margin-top: 4px;
}
.legal-main a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.legal-main a:hover {
  color: var(--accent-hover);
}
.jobs-main {
  max-width: 1040px;
}
.jobs-intro {
  max-width: 720px;
  margin-top: -28px;
  margin-bottom: clamp(28px, 5vw, 44px);
}
.legal-main .jobs-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.legal-main .jobs-grid li {
  margin: 0;
}
.job-card {
  min-height: 220px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: clamp(20px, 3vw, 28px);
  background: color-mix(in srgb, var(--bg-elev) 94%, var(--accent-soft));
}
.job-card h2 {
  margin-top: 0;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.job-description {
  white-space: pre-line;
}
.jobs-status {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 18px 20px;
  color: var(--fg-muted);
  background: color-mix(in srgb, var(--bg) 92%, var(--accent-soft));
}
.legal-footer {
  border-top: 1px solid var(--border);
  padding: 28px var(--gutter);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  font-size: 0.84rem;
  color: var(--fg-subtle);
}
.legal-footer ul {
  list-style: none;
  display: flex;
  gap: 20px;
  padding: 0;
  margin: 0;
}
.legal-footer a {
  color: var(--fg-muted);
  transition: color var(--t-fast);
}
.legal-footer a:hover {
  color: var(--accent);
}

@media (max-width: 520px) {
  .legal-nav {
    padding: 12px 16px;
    gap: 8px;
  }
  .legal-nav-right {
    gap: 4px;
  }
  .back-link {
    padding: 6px 10px;
    font-size: 0.82rem;
  }
  .legal-main .jobs-grid {
    grid-template-columns: 1fr;
  }
}
/*
li a[href='https://www.instagram.com/'] {
  display: none;
}
*/
