/* Orbint career page – matches the look of orbint.de. Fonts are self-hosted (GDPR). */

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  --orange: #F2641C;
  --orange-dark: #C94E0E;
  --orange-tint: #FEF1EA;
  --ink: #121110;
  --ink-2: #1C1A18;
  --line-dark: #302C28;
  --paper: #F5F4F2;
  --white: #FFFFFF;
  --line: #D8D4CF;
  --text: #1C1A18;
  --text-2: #5E5A54;
  --text-3: #8A857E;
  --on-dark: #E6E4E2;
  --on-dark-2: #9E9690;
  --error: #B42318;
  --error-bg: #FEF3F2;
  --error-line: #FECDCA;
  --success: #3DB87A;
  --radius: 6px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --shadow: 0 1px 2px rgba(18, 17, 16, .04), 0 8px 24px rgba(18, 17, 16, .06);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; font-weight: 500; letter-spacing: -0.015em; }
p { margin: 0; }
main { outline: none; }
[hidden] { display: none !important; }

.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;
}
.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  background: var(--orange); color: var(--white); padding: 8px 14px; border-radius: var(--radius);
  text-decoration: none; transition: top .15s;
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 820px; }
.icon { width: 16px; height: 16px; flex: none; }

/* ---- eyebrow labels ------------------------------------------------------ */
.eyebrow {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--orange);
  margin: 0 0 18px;
}
.eyebrow::before { content: ""; width: 18px; height: 1px; background: currentColor; }
.eyebrow-light { color: var(--orange-dark); }

/* ---- top bar -------------------------------------------------------------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(18, 17, 16, .92);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line-dark);
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand img { height: 32px; width: auto; }
.brand-sub {
  font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--on-dark-2); padding-left: 14px; border-left: 1px solid var(--line-dark);
}
.nav { display: flex; align-items: center; gap: 28px; font-size: 14px; }
.nav > a { color: var(--on-dark-2); text-decoration: none; transition: color .15s; white-space: nowrap; }
.nav > a:hover { color: var(--white); }
.lang-switch { display: flex; border: 1px solid var(--line-dark); border-radius: 4px; overflow: hidden; }
.lang-switch a {
  font-family: var(--mono); font-size: 11px; letter-spacing: .08em; padding: 4px 8px;
  color: var(--on-dark-2); text-decoration: none;
}
.lang-switch a[aria-current] { background: var(--ink-2); color: var(--white); }

/* ---- buttons ----------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 20px; border-radius: 4px; border: 1px solid transparent;
  font: 500 15px/1.2 var(--font); text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--orange); color: var(--white); }
.btn-primary:hover { background: var(--orange-dark); }
.btn-ghost { border-color: rgba(255, 255, 255, .22); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); }
.btn-outline { border-color: var(--line); color: var(--text); background: var(--white); }
.btn-outline:hover { border-color: var(--text); }
.btn-lg { padding: 15px 26px; font-size: 16px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .7; cursor: progress; }
.btn-count {
  font-family: var(--mono); font-size: 12px; background: rgba(255, 255, 255, .2);
  border-radius: 3px; padding: 1px 6px;
}
.btn .icon { transition: transform .15s; }
.btn:hover .icon { transform: translateX(2px); }
.btn.is-loading .icon { animation: pulse 1s infinite alternate; }
@keyframes pulse { to { opacity: .2; } }

/* ---- hero ---------------------------------------------------------------------- */
.hero, .job-hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(242, 100, 28, .16), transparent 60%),
    linear-gradient(var(--ink), var(--ink));
  color: var(--on-dark);
}
.hero::after, .job-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .35;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, #000, transparent 85%);
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 85%);
}
.hero .wrap, .job-hero .wrap { position: relative; z-index: 1; }
.hero { padding: 104px 0 72px; }
.hero-title {
  font-size: clamp(2rem, 4.6vw, 3.6rem); font-weight: 400; letter-spacing: -0.025em;
  color: var(--white); max-width: 20ch;
}
.hero-text { margin-top: 24px; max-width: 62ch; font-size: 18px; color: var(--on-dark-2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.values {
  list-style: none; margin: 80px 0 0; padding: 32px 0 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px;
  border-top: 1px solid var(--line-dark);
}
.value-num { font-family: var(--mono); font-size: 13px; color: var(--orange); }
.value-title { font-size: 16px; color: var(--white); margin: 10px 0 8px; }
.value p { font-size: 14px; color: var(--on-dark-2); }

/* ---- positions ---------------------------------------------------------------- */
.positions { padding: 88px 0 96px; }
.section-title { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 400; letter-spacing: -0.02em; }
.notice {
  margin-top: 28px; padding: 20px 24px; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius); color: var(--text-2);
}
.notice a { color: var(--orange-dark); }

.filters { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 20px; }
.search { position: relative; flex: 1 1 280px; }
.search .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-3); }
.filters .search input { padding-left: 42px; }
.filters select { flex: 0 1 220px; }

input[type=text], input[type=email], input[type=tel], input[type=url], input[type=date],
input[type=search], select, textarea {
  width: 100%; min-height: 46px; padding: 11px 14px;
  font: 400 15px/1.4 var(--font); color: var(--text);
  background: var(--white); border: 1px solid var(--line); border-radius: 4px;
  transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none; appearance: none;
}
select {
  padding-right: 38px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%235E5A54' stroke-width='1.6'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
textarea { min-height: 160px; resize: vertical; }
input:hover, select:hover, textarea:hover { border-color: #BDB7B0; }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(242, 100, 28, .15);
}
input:user-invalid, textarea:user-invalid { border-color: var(--error); }
::placeholder { color: var(--text-3); }

.job-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.job-card {
  display: grid; grid-template-columns: 1fr auto; grid-template-areas: "main arrow" "chips arrow";
  gap: 14px 24px; align-items: center;
  padding: 26px 28px; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); text-decoration: none;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.job-card:hover { border-color: var(--orange); box-shadow: var(--shadow); transform: translateY(-1px); }
.job-card-main { grid-area: main; }
.job-card .chips { grid-area: chips; }
.job-title { font-size: 20px; font-weight: 500; }
.job-teaser {
  margin-top: 6px; color: var(--text-2); font-size: 15px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.job-arrow {
  grid-area: arrow; display: grid; place-items: center; width: 44px; height: 44px;
  border: 1px solid var(--line); border-radius: 50%; color: var(--text-2);
  transition: background-color .15s, color .15s, border-color .15s;
}
.job-card:hover .job-arrow { background: var(--orange); border-color: var(--orange); color: var(--white); }

.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .01em; color: var(--text-2);
  background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 4px 11px;
}
.chip .icon { width: 13px; height: 13px; }
.chips-dark .chip { background: rgba(255, 255, 255, .04); border-color: var(--line-dark); color: var(--on-dark); }

.cta-card {
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  margin-top: 56px; padding: 40px 44px; border-radius: 8px;
  background:
    radial-gradient(600px 240px at 100% 0, rgba(242, 100, 28, .18), transparent 70%),
    var(--ink);
  color: var(--on-dark);
}
.cta-card h2 { font-size: 24px; font-weight: 400; color: var(--white); }
.cta-card p { margin-top: 8px; color: var(--on-dark-2); max-width: 56ch; }
.cta-card .btn { flex: none; }

/* ---- job page ------------------------------------------------------------------- */
.job-hero { padding: 48px 0 56px; }
.back-link {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 28px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--on-dark-2); text-decoration: none;
}
.back-link:hover { color: var(--white); }
.job-hero-title {
  font-size: clamp(1.9rem, 4.2vw, 3rem); font-weight: 400; letter-spacing: -0.025em;
  color: var(--white); max-width: 26ch; margin-bottom: 24px;
}
.job-hero .hero-text { margin-top: -8px; }

.job-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 64px;
  padding-top: 64px; padding-bottom: 80px; align-items: start;
}
.job-layout-single { grid-template-columns: minmax(0, 1fr); }
.job-aside { position: sticky; top: 88px; }
.facts-card {
  background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 24px;
  display: grid; gap: 10px;
}
.facts { margin: 0 0 10px; display: grid; gap: 14px; }
.facts dt {
  font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3);
}
.facts dd { margin: 2px 0 0; font-size: 15px; }

.prose { max-width: 72ch; font-size: 16.5px; color: var(--text); }
.prose > :first-child { margin-top: 0; }
.prose h2 {
  font-size: 22px; font-weight: 500; margin: 2.2em 0 .7em; padding-top: 1.2em;
  border-top: 1px solid var(--line);
}
.prose > h2:first-child { border-top: 0; padding-top: 0; }
.prose h3 { font-size: 18px; font-weight: 600; margin: 1.8em 0 .6em; }
.prose h4 { font-size: 16px; font-weight: 600; margin: 1.6em 0 .5em; }
.prose p { margin: 0 0 1em; color: var(--text-2); }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.3em; color: var(--text-2); }
.prose ul { list-style: none; padding-left: 0; }
.prose ul > li { position: relative; padding-left: 1.4em; }
.prose ul > li::before {
  content: ""; position: absolute; left: 0; top: .72em; width: 6px; height: 6px; background: var(--orange);
}
.prose li { margin: .45em 0; }
.prose strong, .prose b { color: var(--text); font-weight: 600; }
.prose a { color: var(--orange-dark); text-underline-offset: 3px; }
.prose blockquote { margin: 1.4em 0; padding: 4px 0 4px 18px; border-left: 2px solid var(--orange); color: var(--text-2); }

/* ---- application form -------------------------------------------------------- */
.apply-section { background: var(--white); border-top: 1px solid var(--line); padding: 80px 0 96px; }
.apply-section-flush { border-top: 0; padding-top: 56px; }
.apply-section .section-title { margin-bottom: 8px; }
.apply-form { margin-top: 24px; }
.form-section { border: 0; margin: 32px 0 0; padding: 0; min-width: 0; }
.form-section legend {
  width: 100%; padding: 0 0 12px; margin-bottom: 20px; border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  color: var(--orange-dark);
}
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 20px; }
.field-full { grid-column: 1 / -1; }
.field label, .upload .label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 7px; }
.req { color: var(--orange); }
.hint { font-size: 13px; color: var(--text-3); margin-top: 6px; }
.apply-form > .hint { margin-top: 0; }

.upload + .upload { margin-top: 20px; }
.dropzone {
  position: relative; border: 1.5px dashed #C9C3BC; border-radius: 8px; background: var(--paper);
  transition: border-color .15s, background-color .15s;
}
.dropzone input[type=file] {
  position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; z-index: 2;
}
.dropzone-body {
  display: grid; justify-items: center; gap: 6px; padding: 26px 20px; text-align: center;
  font-size: 15px; color: var(--text-2);
}
.dropzone-body .icon { width: 26px; height: 26px; color: var(--orange); margin-bottom: 4px; }
.dropzone-body small { font-size: 12.5px; color: var(--text-3); }
.dropzone-browse { color: var(--orange-dark); text-decoration: underline; text-underline-offset: 3px; }
.dropzone:hover, .dropzone.is-dragover { border-color: var(--orange); background: var(--orange-tint); }
.dropzone:focus-within { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(242, 100, 28, .15); }
.upload.has-files .dropzone-body { padding: 16px 20px; }

.file-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.file-list:not(:empty) { margin-top: 10px; }
.file {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 14px;
  background: var(--white); border: 1px solid var(--line); border-radius: 6px; font-size: 14px;
}
.file::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--success); flex: none; }
.file-bad { border-color: var(--error-line); background: var(--error-bg); }
.file-bad::before { background: var(--error); }
.file-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-size { font-family: var(--mono); font-size: 12px; color: var(--text-3); }
.file-remove {
  border: 0; background: none; padding: 4px 6px; font: 500 13px var(--font);
  color: var(--text-2); cursor: pointer; border-radius: 4px;
}
.file-remove:hover { color: var(--error); background: var(--error-bg); }
.upload-error { margin-top: 8px; font-size: 13.5px; color: var(--error); }

.check {
  display: flex; gap: 12px; align-items: flex-start; margin-top: 32px; padding: 18px 20px;
  background: var(--paper); border-radius: 8px; font-size: 14.5px; color: var(--text-2); cursor: pointer;
}
.check input { width: 18px; height: 18px; margin: 2px 0 0; flex: none; accent-color: var(--orange); cursor: pointer; }
.check a { color: var(--orange-dark); text-underline-offset: 3px; }
.form-actions { margin-top: 28px; display: flex; justify-content: flex-end; }

.alert {
  padding: 16px 20px; border-radius: 8px; margin-bottom: 24px; outline: none;
}
.alert-error { background: var(--error-bg); border: 1px solid var(--error-line); color: var(--error); }
.alert ul { margin: 8px 0 0; padding-left: 20px; }

.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ---- status pages ------------------------------------------------------------- */
.status-page { padding: 96px 0 112px; }
.status-icon {
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  background: var(--orange); color: var(--white); margin-bottom: 28px;
}
.status-icon .icon { width: 30px; height: 30px; }
.lead { margin-top: 14px; font-size: 18px; color: var(--text-2); max-width: 60ch; }
.status-page .eyebrow { margin-top: 56px; }
.steps { list-style: none; padding: 0; margin: 0 0 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 22px; }
.step-num { display: block; font-family: var(--mono); font-size: 12px; color: var(--orange); margin-bottom: 10px; }
.step p { margin-top: 6px; font-size: 14px; color: var(--text-2); }

/* ---- footer -------------------------------------------------------------------- */
.footer { background: var(--ink); color: var(--on-dark-2); font-size: 14px; border-top: 1px solid var(--line-dark); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 28px; padding-bottom: 28px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer a { color: var(--on-dark-2); text-decoration: none; }
.footer a:hover { color: var(--white); }

/* ---- responsive ----------------------------------------------------------------- */
@media (max-width: 960px) {
  .job-layout { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-top: 40px; }
  .job-aside { position: static; order: -1; }
  .facts { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
}
@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  .nav { gap: 18px; }
  .nav-optional { display: none; }
  .brand-sub { display: none; }
  .hero { padding: 64px 0 48px; }
  .hero-text { font-size: 16.5px; }
  .values { grid-template-columns: 1fr; gap: 24px; margin-top: 56px; }
  .positions { padding: 64px 0 72px; }
  .filters select { flex: 1 1 100%; }
  .job-card { grid-template-columns: 1fr; grid-template-areas: "main" "chips"; padding: 22px 20px; }
  .job-arrow { display: none; }
  .cta-card { flex-direction: column; align-items: flex-start; padding: 32px 24px; }
  .grid-2 { grid-template-columns: 1fr; }
  .apply-section { padding: 56px 0 72px; }
  .form-actions .btn { width: 100%; }
  .steps { grid-template-columns: 1fr; }
  .status-page { padding: 64px 0 80px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
