/* Lumajob — shared styles. Font is self-hosted (no Google Fonts, GDPR). */
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("schibsted-grotesk.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}

:root {
  --ink: #16213b;
  --ink-2: #47526d;
  --muted: #6b7590;
  --paper: #ffffff;
  --wash: #f2f4f8;
  --line: #dce1ea;
  --blue: #2347d6;
  --blue-dark: #1a35a8;
  --blue-tint: #e8edfc;
  --ok: #11795a;      --ok-bg: #e2f3eb;
  --warn: #9a5c08;    --warn-bg: #fbefd9;
  --no: #b3302a;      --no-bg: #fbe5e3;
  --font: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--paper); line-height: 1.55; font-size: 17px; -webkit-font-smoothing: antialiased; }
a { color: var(--blue); }
a:hover { color: var(--blue-dark); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
img, svg { display: block; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 750; font-size: 19px; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand svg { width: 32px; height: 32px; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav a:hover { color: var(--ink); }
@media (max-width: 760px) { .nav a:not(.btn) { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 650; font-size: 16px; line-height: 1; padding: 13px 20px; border-radius: 8px; border: 1px solid transparent; cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); color: #fff; }
.btn-secondary { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-secondary:hover { border-color: #b9c2d3; color: var(--ink); }
.btn-small { padding: 9px 14px; font-size: 14px; }
.nav .btn { color: #fff; }

/* Fit badges (German level) */
.fit { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 650; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.fit::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.fit-ok { color: var(--ok); background: var(--ok-bg); }
.fit-warn { color: var(--warn); background: var(--warn-bg); }
.fit-no { color: var(--no); background: var(--no-bg); }

/* Forms */
label { display: block; font-size: 14px; font-weight: 600; color: var(--ink-2); margin: 0 0 6px; }
input[type=email], input[type=text], select { width: 100%; font: inherit; font-size: 16px; padding: 12px 14px; border: 1px solid #c9d0dc; border-radius: 8px; background: #fff; color: var(--ink); }
input:focus, select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-tint); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 44px; font-size: 14px; color: var(--muted); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 20px; }
.site-footer a { color: var(--ink-2); text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }

/* Simple text pages (Impressum, privacy) */
.doc { max-width: 720px; margin: 0 auto; padding: 48px 24px 72px; }
.doc h1 { font-size: 36px; margin-bottom: 8px; }
.doc h2 { font-size: 20px; margin: 32px 0 8px; }
.doc h3 { font-size: 17px; margin: 20px 0 6px; }
.doc p { margin: 0 0 12px; color: var(--ink-2); }
.doc .meta { color: var(--muted); margin-bottom: 24px; }

/* Segmented controls: one selection glides between options (see glide.js). */
.gliding { position: relative; isolation: isolate; }
.gliding > .glide { position: absolute; left: 0; top: 0; border-radius: 999px; z-index: 0; pointer-events: none;
  transition: transform .5s cubic-bezier(.34, 1.3, .5, 1), width .5s cubic-bezier(.34, 1.3, .5, 1), height .3s ease, opacity .2s; }
.gliding > button { position: relative; z-index: 1; transition: color .3s ease; }
.levels.gliding > .glide { background: var(--blue); box-shadow: 0 6px 14px -6px rgba(35, 71, 214, .7); }
.levels.gliding > button[aria-pressed="true"] { background: transparent; box-shadow: none; color: #fff; }
.checker .fit { transition: background-color .35s ease, color .35s ease; }
.checker li { transition: opacity .4s ease, filter .4s ease; }
.checker li.out { filter: grayscale(1); }
@media (prefers-reduced-motion: reduce) { .gliding > .glide { transition: none; } }
