/* ============================================================
   BFSonline · Public Recruiting (/applynow)
   Design tokens — binding source: wwwroot/css/Pages/ApplyNow.css
   ============================================================ */
:root {
  /* ---- brand tokens (do not invent new ones) ---- */
  --an-bg: #f4f5f7;
  --an-surface: #ffffff;
  --an-ink: #1f2329;
  --an-muted: #6b7280;
  --an-accent: #ffd500;        /* BFS yellow — the ONE accent */
  --an-accent-ink: #1f2329;    /* text on yellow */
  --an-accent-deep: #e8c200;   /* yellow hover/active */
  --an-border: #e5e7eb;

  /* ---- derived ---- */
  --an-ink-2: #3a4048;
  --an-bg-sunken: #eceef1;
  --an-ring: rgba(255, 213, 0, .45);
  --an-shadow-sm: 0 1px 2px rgba(16,24,40,.04), 0 1px 3px rgba(16,24,40,.06);
  --an-shadow-md: 0 4px 10px -4px rgba(16,24,40,.10), 0 12px 28px -12px rgba(16,24,40,.14);
  --an-shadow-lg: 0 18px 50px -20px rgba(16,24,40,.30);

  /* ---- chip dot palette (labels only — NOT additional brand accents) ---- */
  --dot-wien: #2a6fdb;
  --dot-noe: #1f8a5b;
  --dot-stmk: #0d9aa6;
  --dot-vollzeit: #5b4ad1;
  --dot-teilzeit: #b8722a;
  --dot-event: #d9533b;
  --dot-lehre: #c0419a;

  --r-card: 14px;
  --r-sm: 10px;
  --r-pill: 999px;

  --maxw: 1120px;
  --gutter: clamp(16px, 4vw, 40px);

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ============================================================ reset ====== */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--an-bg);
  color: var(--an-ink);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }
:focus-visible { outline: 3px solid var(--an-ring); outline-offset: 2px; border-radius: 4px; }

/* ============================================================ layout ===== */
.an-wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.an-section { padding-block: clamp(36px, 6vw, 72px); }
.an-stack > * + * { margin-top: var(--s, 16px); }

/* ============================================================ header ===== */
.an-top {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--an-border);
}
.an-top__bar {
  max-width: var(--maxw); margin-inline: auto; padding: 14px var(--gutter);
  display: flex; align-items: center; gap: 16px; min-height: 64px;
}
.an-logo { display: inline-flex; align-items: flex-end; gap: 7px; }
.an-logo img { height: 30px; width: auto; }
.an-logo__badge {
  font-size: 11px; font-weight: 800; letter-spacing: .02em;
  background: var(--an-accent); color: var(--an-accent-ink);
  padding: 2px 7px; border-radius: 6px; line-height: 1; transform: translateY(-3px);
}
.an-top__spacer { flex: 1; }
.an-top__link {
  display: inline-flex; align-items: center; gap: 7px; min-height: 40px;
  padding: 0 6px; color: var(--an-muted); font-size: 14px; font-weight: 600;
}
.an-top__link:hover { color: var(--an-ink); }

/* ============================================================ hero ======= */
.an-hero { position: relative; background: var(--an-ink); overflow: hidden; }
.an-hero__media { position: absolute; inset: 0; }
.an-hero__media img { width: 100%; height: 100%; object-fit: cover; opacity: .42; }
.an-hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(20,23,26,.92) 0%, rgba(20,23,26,.62) 52%, rgba(20,23,26,.30) 100%);
}
.an-hero__inner { position: relative; max-width: var(--maxw); margin-inline: auto; padding: clamp(48px,9vw,104px) var(--gutter); }
.an-hero__kicker {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--an-accent); font-weight: 800; font-size: 13px;
  letter-spacing: .18em; text-transform: uppercase; margin-bottom: 18px;
}
.an-hero__kicker::before { content: ""; width: 22px; height: 3px; background: var(--an-accent); }
.an-hero h1 {
  color: #fff; font-weight: 800; letter-spacing: -.02em;
  font-size: clamp(32px, 6vw, 60px); line-height: 1.02; max-width: 16ch;
}
.an-hero__sub { color: rgba(255,255,255,.78); font-size: clamp(16px,2.2vw,20px); margin-top: 18px; max-width: 46ch; }
.an-hero__meta { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px 26px; color: rgba(255,255,255,.7); font-size: 14px; font-weight: 600; }
.an-hero__meta span { display: inline-flex; align-items: center; gap: 8px; }
.an-hero__meta svg { width: 17px; height: 17px; flex: 0 0 auto; }
.an-hero__meta b { color: #fff; }

/* ============================================================ buttons ==== */
.an-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 48px; padding: 0 22px; border: 1px solid transparent;
  border-radius: var(--r-pill); font-size: 15px; font-weight: 700; letter-spacing: .01em;
  transition: background .16s, border-color .16s, color .16s, transform .1s, box-shadow .16s;
  white-space: nowrap;
}
.an-btn:active { transform: translateY(1px); }
.an-btn--primary { background: var(--an-accent); color: var(--an-accent-ink); box-shadow: 0 6px 18px -8px rgba(232,194,0,.8); }
.an-btn--primary:hover { background: var(--an-accent-deep); }
.an-btn--ghost { background: var(--an-surface); color: var(--an-ink); border-color: var(--an-border); }
.an-btn--ghost:hover { border-color: #cfd4da; background: #fbfbfc; }
.an-btn--dark { background: var(--an-ink); color: #fff; }
.an-btn--dark:hover { background: #2c333b; }
.an-btn--block { width: 100%; }
.an-btn--lg { min-height: 54px; font-size: 16px; padding: 0 28px; }
.an-btn[disabled] { opacity: .5; pointer-events: none; }
.an-btn svg { width: 18px; height: 18px; flex: 0 0 auto; }

.an-iconbtn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: var(--r-pill);
  background: var(--an-surface); border: 1px solid var(--an-border); color: var(--an-ink);
}
.an-iconbtn:hover { background: #fbfbfc; border-color: #cfd4da; }

/* ============================================================ chips ====== */
.an-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.an-chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 11px 5px 9px; border-radius: var(--r-pill);
  background: var(--an-bg-sunken); border: 1px solid var(--an-border);
  font-size: 12.5px; font-weight: 600; color: var(--an-ink-2);
}
.an-chip__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--an-muted); flex: 0 0 auto; }
.an-chip[data-k="wien"] .an-chip__dot { background: var(--dot-wien); }
.an-chip[data-k="noe"] .an-chip__dot { background: var(--dot-noe); }
.an-chip[data-k="stmk"] .an-chip__dot { background: var(--dot-stmk); }
.an-chip[data-k="vollzeit"] .an-chip__dot { background: var(--dot-vollzeit); }
.an-chip[data-k="teilzeit"] .an-chip__dot { background: var(--dot-teilzeit); }
.an-chip[data-k="event"] .an-chip__dot { background: var(--dot-event); }
.an-chip[data-k="lehre"] .an-chip__dot { background: var(--dot-lehre); }

/* ============================================================ cards ====== */
.an-grid { display: grid; gap: clamp(16px, 2.4vw, 22px); grid-template-columns: 1fr; }
@media (min-width: 640px) { .an-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .an-grid { grid-template-columns: repeat(3, 1fr); } }

.an-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--an-surface); border: 1px solid var(--an-border);
  border-radius: var(--r-card); overflow: hidden; box-shadow: var(--an-shadow-sm);
  transition: box-shadow .18s, border-color .18s, transform .18s;
}
.an-card:hover { box-shadow: var(--an-shadow-md); border-color: #d8dde3; transform: translateY(-2px); }
.an-card.is-selected { border-color: var(--an-accent-deep); box-shadow: 0 0 0 2px var(--an-accent), var(--an-shadow-md); }

.an-card__media { position: relative; aspect-ratio: 16 / 10; background: var(--an-bg-sunken); }
.an-card__media img { width: 100%; height: 100%; object-fit: cover; }
.an-card__media--empty { display: grid; place-items: center; color: #b7bdc6; }
.an-card__media--empty svg { width: 46px; height: 46px; }

/* selection checkbox overlay */
.an-pick {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  width: 30px; height: 30px; border-radius: 9px;
  background: rgba(255,255,255,.92); border: 1.5px solid var(--an-border);
  display: grid; place-items: center; box-shadow: var(--an-shadow-sm);
  transition: background .15s, border-color .15s;
}
.an-pick svg { width: 17px; height: 17px; color: var(--an-accent-ink); opacity: 0; transform: scale(.6); transition: opacity .15s, transform .15s; }
.is-selected .an-pick { background: var(--an-accent); border-color: var(--an-accent-deep); }
.is-selected .an-pick svg { opacity: 1; transform: scale(1); }

.an-card__body { display: flex; flex-direction: column; gap: 12px; padding: 18px 18px 20px; flex: 1; }
.an-card__title { font-size: 19px; font-weight: 800; letter-spacing: -.01em; line-height: 1.2; }
.an-card__loc { display: inline-flex; align-items: center; gap: 6px; color: var(--an-muted); font-size: 14px; font-weight: 600; }
.an-card__loc svg { width: 15px; height: 15px; }
.an-card__pay {
  margin-top: 2px; display: inline-flex; align-items: baseline; gap: 6px;
  font-size: 14px; color: var(--an-ink-2); font-weight: 600;
}
.an-card__pay b { font-size: 16px; font-weight: 800; color: var(--an-ink); }
.an-card__pay svg { width: 16px; height: 16px; flex: 0 0 auto; color: var(--an-muted); }
.an-card__foot { margin-top: auto; padding-top: 14px; display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--an-border); }
.an-card__detail { color: var(--an-ink); font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }
.an-card__detail svg { width: 16px; height: 16px; transition: transform .15s; }
.an-card__detail:hover svg { transform: translateX(3px); }

/* ============================================================ sticky bar = */
.an-stickybar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  transform: translateY(120%); transition: transform .28s cubic-bezier(.2,.7,.3,1);
  background: var(--an-ink); color: #fff;
  box-shadow: 0 -10px 40px -12px rgba(16,24,40,.5);
}
.an-stickybar.is-shown { transform: translateY(0); }
.an-stickybar__inner {
  max-width: var(--maxw); margin-inline: auto; padding: 14px var(--gutter);
  display: flex; align-items: center; gap: 14px;
  padding-bottom: calc(14px + env(safe-area-inset-bottom));
}
.an-stickybar__count { display: flex; align-items: center; gap: 11px; font-weight: 600; font-size: 15px; color: rgba(255,255,255,.8); }
.an-stickybar__n {
  display: inline-grid; place-items: center; min-width: 30px; height: 30px; padding: 0 8px;
  background: var(--an-accent); color: var(--an-accent-ink); border-radius: var(--r-pill); font-weight: 800; font-size: 15px;
}
.an-stickybar__clear { margin-left: 2px; color: rgba(255,255,255,.6); font-size: 13px; font-weight: 600; background: none; border: none; text-decoration: underline; }
.an-stickybar__clear:hover { color: #fff; }
.an-stickybar__spacer { flex: 1; }
@media (max-width: 560px) {
  .an-stickybar__clear { display: none; }
  .an-stickybar__inner { gap: 10px; }
  .an-stickybar__count { font-size: 14px; min-width: 0; }
  .an-stickybar .an-btn--lg { min-height: 48px; padding: 0 18px; font-size: 15px; }
}

/* ============================================================ forms ====== */
.an-field { display: block; }
.an-field + .an-field { margin-top: 20px; }
.an-label { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--an-ink); margin-bottom: 7px; }
.an-req { color: var(--dot-event); font-weight: 800; }
.an-opt { color: var(--an-muted); font-weight: 600; font-size: 12px; }
.an-hint { color: var(--an-muted); font-size: 13px; margin-top: 6px; }
.an-control {
  width: 100%; min-height: 48px; padding: 12px 14px;
  background: var(--an-surface); border: 1.5px solid var(--an-border); border-radius: var(--r-sm);
  font: inherit; color: var(--an-ink); transition: border-color .15s, box-shadow .15s;
}
.an-control:hover { border-color: #cfd4da; }
.an-control:focus { outline: none; border-color: var(--an-accent-deep); box-shadow: 0 0 0 3px var(--an-ring); }
textarea.an-control { min-height: 110px; resize: vertical; line-height: 1.5; }
select.an-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 42px; }
.an-control--invalid { border-color: var(--dot-event); box-shadow: 0 0 0 3px rgba(217,83,59,.18); }
.an-error { display: none; color: var(--dot-event); font-size: 13px; font-weight: 600; margin-top: 7px; }
.an-error.is-shown { display: flex; align-items: center; gap: 6px; }
.an-error svg { width: 15px; height: 15px; flex: 0 0 auto; }

/* file/photo dropzone */
.an-drop {
  display: flex; align-items: center; gap: 14px; width: 100%;
  padding: 16px; border: 1.5px dashed #cfd4da; border-radius: var(--r-sm);
  background: #fbfbfc; color: var(--an-muted); text-align: left;
}
.an-drop:hover { border-color: var(--an-accent-deep); background: #fffdf0; }
.an-drop__ico { width: 42px; height: 42px; border-radius: 10px; background: var(--an-bg-sunken); display: grid; place-items: center; color: var(--an-ink-2); flex: 0 0 auto; }
.an-drop__ico svg { width: 20px; height: 20px; }
.an-drop__t { color: var(--an-ink); font-weight: 700; font-size: 14px; }
.an-drop__s { font-size: 12.5px; }

.an-fieldset { background: var(--an-surface); border: 1px solid var(--an-border); border-radius: var(--r-card); padding: clamp(18px,3vw,28px); box-shadow: var(--an-shadow-sm); }
.an-fieldset + .an-fieldset { margin-top: 18px; }
.an-fieldset__head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.an-fieldset__head h3 { font-size: 17px; font-weight: 800; }
.an-fieldset__num { width: 28px; height: 28px; border-radius: 8px; background: var(--an-ink); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 800; flex: 0 0 auto; }
.an-grid2 { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .an-grid2 { grid-template-columns: 1fr 1fr; } }
.an-col-2 { grid-column: 1 / -1; }

/* notice / alert */
.an-notice { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--r-sm); font-size: 14px; line-height: 1.45; }
.an-notice svg { width: 20px; height: 20px; flex: 0 0 auto; margin-top: 1px; }
.an-notice--warn { background: #fff6da; border: 1px solid #f1dd8f; color: #7a5d00; }
.an-notice--info { background: #eef4ff; border: 1px solid #d3e0fb; color: #234a8f; }

/* ============================================================ misc ======= */
.an-eyebrow { color: var(--an-muted); font-size: 13px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.an-h2 { font-size: clamp(24px,4vw,34px); font-weight: 800; letter-spacing: -.02em; }
.an-lead { color: var(--an-muted); font-size: clamp(15px,2vw,18px); }
.an-back { display: inline-flex; align-items: center; gap: 8px; color: var(--an-muted); font-weight: 700; font-size: 14px; min-height: 44px; }
.an-back:hover { color: var(--an-ink); }
.an-back svg { width: 18px; height: 18px; }

.an-foot { border-top: 1px solid var(--an-border); background: #fff; }
.an-foot__inner { max-width: var(--maxw); margin-inline: auto; padding: 28px var(--gutter); display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; color: var(--an-muted); font-size: 13.5px; }
.an-foot__inner b { color: var(--an-ink); }
.an-foot__spacer { flex: 1; }

.an-spacer-bottom { height: 0; }
body.has-stickybar .an-spacer-bottom { height: 96px; }

/* ============================================================ detail ===== */
.an-detail { display: grid; gap: clamp(24px,4vw,40px); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 920px) { .an-detail { grid-template-columns: minmax(0,1fr) 360px; } }

.an-detail__head { margin-bottom: 22px; }
.an-detail__title { font-size: clamp(26px,4.5vw,40px); font-weight: 800; letter-spacing: -.02em; line-height: 1.05; }
.an-detail__loc { display: inline-flex; align-items: center; gap: 7px; color: var(--an-muted); font-size: 15px; font-weight: 600; margin-top: 10px; }
.an-detail__loc svg { width: 16px; height: 16px; }

.an-banner { border-radius: var(--r-card); overflow: hidden; aspect-ratio: 21 / 9; background: var(--an-ink); margin-bottom: 28px; }
.an-banner img { width: 100%; height: 100%; object-fit: cover; }
.an-banner--empty { display: grid; place-items: center; color: rgba(255,255,255,.25); }
.an-banner--empty svg { width: 64px; height: 64px; }

.an-block + .an-block { margin-top: 30px; }
.an-block__h { display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 800; margin-bottom: 16px; letter-spacing: -.01em; }
.an-ticks { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 13px; }
.an-ticks li { display: flex; gap: 13px; font-size: 15.5px; line-height: 1.5; color: var(--an-ink-2); }
.an-tick { flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%; background: var(--an-accent); display: grid; place-items: center; margin-top: 1px; }
.an-tick svg { width: 13px; height: 13px; color: var(--an-accent-ink); }
.an-tick--ghost { background: var(--an-bg-sunken); }
.an-tick--ghost svg { color: var(--an-ink-2); }

.an-summary { background: var(--an-surface); border: 1px solid var(--an-border); border-radius: var(--r-card); box-shadow: var(--an-shadow-md); overflow: hidden; position: sticky; top: 84px; }
.an-summary__pay { padding: 22px 22px 20px; border-bottom: 1px solid var(--an-border); }
.an-summary__big { font-size: 30px; font-weight: 800; letter-spacing: -.02em; display: flex; align-items: baseline; gap: 8px; }
.an-summary__big span { font-size: 15px; font-weight: 600; color: var(--an-muted); }
.an-summary__note { color: var(--an-muted); font-size: 13px; margin-top: 6px; }
.an-facts { list-style: none; margin: 0; padding: 16px 22px; display: flex; flex-direction: column; gap: 14px; }
.an-fact { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.an-fact svg { width: 18px; height: 18px; color: var(--an-muted); flex: 0 0 auto; }
.an-fact b { font-weight: 700; }
.an-fact small { display: block; color: var(--an-muted); font-weight: 500; font-size: 12.5px; }
.an-summary__cta { padding: 4px 22px 22px; display: flex; flex-direction: column; gap: 10px; }

/* ============================================================ form pg ==== */
.an-form { max-width: 760px; margin-inline: auto; }
.an-jobpills { display: flex; flex-wrap: wrap; gap: 10px; }
.an-jobpill { display: inline-flex; align-items: center; gap: 10px; background: var(--an-surface); border: 1px solid var(--an-border); border-radius: var(--r-pill); padding: 7px 7px 7px 15px; font-size: 14px; font-weight: 700; box-shadow: var(--an-shadow-sm); }
.an-jobpill__x { width: 30px; height: 30px; border-radius: 50%; background: var(--an-bg-sunken); border: none; display: grid; place-items: center; color: var(--an-muted); flex: 0 0 auto; cursor: pointer; transition: background .14s, color .14s; }
.an-jobpill__x:hover { background: #e6534a; color: #fff; }
.an-jobpill__x svg { width: 13px; height: 13px; }

.an-filebtn { position: relative; }
.an-filebtn input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.an-drop.is-filled { border-style: solid; border-color: var(--an-accent-deep); background: #fffdf0; }
.an-drop.is-filled .an-drop__ico { background: var(--an-accent); color: var(--an-accent-ink); }

.an-empty { text-align: center; padding: 60px 20px; }
.an-empty__ic { width: 64px; height: 64px; border-radius: 50%; background: var(--an-bg-sunken); display: grid; place-items: center; margin: 0 auto 18px; color: var(--an-muted); }
.an-empty__ic svg { width: 30px; height: 30px; }

.an-success { max-width: 560px; margin: 20px auto; text-align: center; background: var(--an-surface); border: 1px solid var(--an-border); border-radius: var(--r-card); padding: clamp(36px,6vw,56px) clamp(24px,5vw,40px); box-shadow: var(--an-shadow-md); }
.an-success__ic { width: 76px; height: 76px; border-radius: 50%; background: var(--an-accent); display: grid; place-items: center; margin: 0 auto 24px; }
.an-success__ic svg { width: 38px; height: 38px; color: var(--an-accent-ink); }
.an-success h1 { font-size: clamp(24px,4vw,32px); font-weight: 800; letter-spacing: -.02em; }
.an-success p { color: var(--an-muted); font-size: 16px; margin-top: 12px; }
.an-success__jobs { margin: 26px 0; display: flex; flex-direction: column; gap: 8px; text-align: left; }
.an-success__job { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--an-bg); border-radius: var(--r-sm); font-weight: 700; font-size: 14px; }
.an-success__job svg { width: 18px; height: 18px; color: var(--an-accent-deep); flex: 0 0 auto; }
