/* FairBewerben – mobil zuerst, Look aus den Design-Screens */
@font-face { font-family: 'Figtree'; font-style: normal; font-display: swap; font-weight: 300 900;
  src: url('/assets/fonts/figtree-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Figtree'; font-style: normal; font-display: swap; font-weight: 300 900;
  src: url('/assets/fonts/figtree-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --brand: #0B6E63; --brand-dark: #08544B; --brand-soft: #E3F2EF; --brand-ink: #0F3D38;
  --ink: #0F1B2D; --ink-2: #3A4555; --muted: #556070; --line: #E2E6EB; --line-2: #C5CCD5;
  --bg: #F4F6F8; --card: #FFFFFF; --danger: #B42318; --danger-soft: #FDECEA; --warn: #8A5300; --warn-soft: #FFF4DE;
  --side: #0F1B2D; --radius: 14px;
  --font: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 var(--font); }
a { color: var(--brand); }
a:hover { color: var(--brand-dark); }
h1 { font-size: 26px; line-height: 1.2; margin: 0 0 4px; letter-spacing: -0.01em; }
h2 { font-size: 18px; margin: 0 0 12px; }
h3 { font-size: 16px; margin: 0 0 8px; }
p { margin: 0 0 12px; }
small, .muted { color: var(--muted); }
.small { font-size: 14px; }
img { max-width: 100%; }
:focus-visible { outline: 3px solid #5BB5AA; outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 99; }
.skip:focus { left: 8px; }

/* ---------- Gerüst Bewerber */
.topbar { position: sticky; top: 0; z-index: 10; background: rgba(244,246,248,.95); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line); padding: 10px 16px; display: flex; align-items: center; gap: 12px; }
.topbar .brand { font-weight: 700; font-size: 17px; color: var(--ink); text-decoration: none; margin-right: auto; display: flex; align-items: center; gap: 8px; }
.logo { width: 28px; height: 28px; border-radius: 8px; background: var(--brand); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; }
.topnav { display: none; gap: 4px; }
.topnav a { padding: 8px 12px; border-radius: 10px; color: var(--ink-2); text-decoration: none; font-weight: 500; }
.topnav a[aria-current] { background: var(--brand-soft); color: var(--brand-ink); font-weight: 600; }
.wrap { max-width: 760px; margin: 0 auto; padding: 20px 16px 110px; }
.wrap.wide { max-width: 1120px; }
.bottomnav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 10; background: #fff; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(4, 1fr); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
.bottomnav a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0; font-size: 12px; color: var(--muted); text-decoration: none; min-height: 48px; }
.bottomnav a[aria-current] { color: var(--brand); font-weight: 600; }
.bottomnav svg, .topnav svg { width: 22px; height: 22px; }
@media (min-width: 900px) {
  .topnav { display: flex; }
  .bottomnav { display: none; }
  .wrap { padding-bottom: 48px; }
}

/* ---------- Gerüst Unternehmen */
.shell { display: flex; flex-wrap: wrap; min-height: 100vh; }
.side { flex: 1 1 100%; background: var(--side); color: #fff; padding: 12px 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.side .brand { color: #fff; font-weight: 700; font-size: 17px; text-decoration: none; margin-right: auto; display: flex; gap: 8px; align-items: center; padding: 6px 4px; }
.side nav { display: flex; flex-wrap: wrap; gap: 2px; width: 100%; }
.side nav a { color: #C9D2DE; text-decoration: none; padding: 8px 12px; border-radius: 10px; font-size: 15px; }
.side nav a[aria-current] { background: #1F3049; color: #fff; font-weight: 600; }
.side .who { font-size: 13px; color: #9AA6B6; width: 100%; padding: 8px 4px 0; }
.main { flex: 1 1 100%; min-width: 0; padding: 20px 16px 48px; }
@media (min-width: 1000px) {
  .side { flex: 0 0 236px; flex-direction: column; align-items: stretch; flex-wrap: nowrap; padding: 24px 16px; }
  .side .brand { margin: 0 0 20px; }
  .side nav { flex-direction: column; }
  .side .who { margin-top: auto; padding-top: 24px; }
  .main { flex: 1 1 0; padding: 28px 32px 48px; }
}

/* ---------- Bausteine */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px; margin-bottom: 14px; }
.card.accent { border: 2px solid var(--brand); }
.card > h2:first-child, .card > h3:first-child { margin-top: 0; }
.stack > * + * { margin-top: 12px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.row.between { justify-content: space-between; }
.grid2 { display: grid; gap: 12px; grid-template-columns: 1fr; }
.grid3 { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid2 { grid-template-columns: 1fr 1fr; } .grid3 { grid-template-columns: repeat(3, 1fr); } }
.cols { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.cols > .grow { flex: 999 1 520px; min-width: 0; }
.cols > .aside { flex: 1 1 320px; min-width: 0; }
.pagehead { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: flex-end; margin-bottom: 20px; }
.crumb { font-size: 14px; color: var(--muted); text-decoration: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 13px; }
.tag { display: inline-block; font-size: 12px; padding: 3px 8px; border-radius: 6px; background: var(--bg); color: var(--ink-2); }
.badge { display: inline-block; font-size: 12px; font-weight: 700; color: #fff; background: var(--brand); border-radius: 999px; padding: 2px 8px; }
.stage { display: inline-block; font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-ink); }
.stage.rejected, .stage.withdrawn { background: #EEF1F4; color: var(--ink-2); }
.stage.offer { background: #DFF3E0; color: #1E5A23; }
.stage.draft { background: var(--warn-soft); color: var(--warn); }
.note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--brand-soft); color: var(--brand-ink); font-size: 14px; line-height: 1.45; }
.note svg { flex-shrink: 0; width: 20px; height: 20px; margin-top: 1px; }
.note.warn { background: var(--warn-soft); color: var(--warn); }
.note.plain { background: #fff; border: 1px dashed var(--line-2); color: var(--ink-2); }
.flash { padding: 12px 14px; border-radius: 12px; margin-bottom: 14px; font-size: 15px; background: var(--brand-soft); color: var(--brand-ink); }
.flash.error { background: var(--danger-soft); color: var(--danger); }
.flash.warn { background: var(--warn-soft); color: var(--warn); }
.errors { background: var(--danger-soft); color: var(--danger); border-radius: 12px; padding: 12px 14px 12px 32px; margin: 0 0 14px; }
.empty { text-align: center; padding: 28px 16px; color: var(--muted); }
.progress { height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--brand); border-radius: 999px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 600; color: var(--muted); font-size: 13px; }
.tablebox { overflow-x: auto; }
dl.kv { display: grid; grid-template-columns: minmax(110px, 30%) 1fr; gap: 6px 12px; margin: 0; font-size: 15px; }
dl.kv dt { color: var(--muted); }
dl.kv dd { margin: 0; }

/* ---------- Formulare */
label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.field { margin-bottom: 14px; }
.hint { font-weight: 400; font-size: 13px; color: var(--muted); margin-top: 4px; }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=month], input[type=tel], input[type=number], input[type=search], select, textarea {
  width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 12px; background: #fff;
  font: inherit; color: var(--ink); }
textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
input[type=file] { font: inherit; font-size: 14px; max-width: 100%; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 15px; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; flex-shrink: 0; accent-color: var(--brand); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 18px; border-radius: 12px;
  border: 0; background: var(--brand); color: #fff; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--brand-dark); color: #fff; }
.btn.secondary { background: #fff; color: var(--ink); border: 1px solid var(--line-2); }
.btn.secondary:hover { background: var(--bg); color: var(--ink); }
.btn.danger { background: #fff; color: var(--danger); border: 1px solid #F1B5AE; }
.btn.danger:hover { background: var(--danger-soft); }
.btn.small { min-height: 40px; padding: 0 12px; font-size: 14px; border-radius: 10px; }
.btn.block { width: 100%; }
.btn.big { min-height: 54px; font-size: 17px; border-radius: 14px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.linkbtn { background: none; border: 0; padding: 8px 0; color: var(--brand); font: inherit; font-weight: 600; cursor: pointer; }
.linkbtn.danger { color: var(--danger); }
.inline { display: inline; }
.actions { position: sticky; bottom: 0; background: var(--bg); padding: 12px 0 calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: flex; gap: 10px; margin-top: 16px; }
.actions > * { flex: 1; }
@media (max-width: 899px) { .candidate .actions { bottom: 64px; } }

/* Tabs */
.tabs { display: flex; gap: 4px; overflow-x: auto; margin: 0 0 16px; border-bottom: 1px solid var(--line); }
.tabs a { padding: 10px 14px; white-space: nowrap; text-decoration: none; color: var(--muted); font-weight: 500; border-bottom: 3px solid transparent; }
.tabs a[aria-current] { color: var(--brand); border-bottom-color: var(--brand); font-weight: 600; }

/* Listen */
.list { list-style: none; margin: 0; padding: 0; }
.list > li { padding: 12px 0; border-top: 1px solid var(--line); display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; }
.list > li:first-child { border-top: 0; }
.steprow { display: flex; gap: 14px; align-items: center; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 10px; text-decoration: none; color: var(--ink); }
.steprow.current { border: 2px solid var(--brand); }
.steprow .num { width: 32px; height: 32px; border-radius: 999px; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  border: 1.5px solid var(--line-2); color: var(--muted); font-size: 14px; font-weight: 600; }
.steprow.done .num { background: var(--brand); border-color: var(--brand); color: #fff; }
.steprow.current .num { background: var(--brand-soft); border-color: var(--brand-soft); color: var(--brand); }
.steprow .t { flex: 1; display: flex; flex-direction: column; }
.steprow .t b { font-size: 15px; }
.steprow .t span { font-size: 13px; color: var(--muted); }

/* Multiple Choice */
.options { display: flex; flex-direction: column; gap: 10px; border: 0; padding: 0; margin: 0 0 12px; }
.option { display: flex; gap: 14px; align-items: center; min-height: 56px; padding: 14px 16px; border-radius: 14px; background: #fff; border: 1px solid var(--line);
  font-weight: 400; font-size: 15px; cursor: pointer; margin: 0; }
.option input { width: 22px; height: 22px; margin: 0; accent-color: var(--brand); flex-shrink: 0; }
.option:has(input:checked) { background: var(--brand-soft); border: 2px solid var(--brand); }
.timer { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line);
  font-weight: 700; font-variant-numeric: tabular-nums; }
.timer.low { color: var(--danger); border-color: #F1B5AE; }
.eyebrow { font-size: 13px; font-weight: 600; color: var(--brand); text-transform: uppercase; letter-spacing: .06em; }
.question { font-size: 19px; line-height: 1.4; font-weight: 600; margin: 6px 0 16px; white-space: pre-line; }

/* Audioaufnahme */
.recorder { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 16px 0; }
.recorder .level { display: flex; align-items: center; gap: 3px; height: 64px; }
.recorder .level span { width: 5px; border-radius: 3px; background: var(--line-2); height: 8px; transition: height .08s; }
.recorder .level.on span { background: var(--brand); }
.recorder .clock { font-size: 30px; font-weight: 700; font-variant-numeric: tabular-nums; }
.recorder .clock small { font-size: 17px; font-weight: 500; }
.recbtn { width: 84px; height: 84px; border-radius: 999px; border: 0; cursor: pointer; background: var(--brand); box-shadow: 0 0 0 8px var(--brand-soft);
  display: flex; align-items: center; justify-content: center; color: #fff; }
.recbtn.on { background: #C2410C; box-shadow: 0 0 0 8px #F8DCD3; }
.recbtn svg { width: 30px; height: 30px; }
.recbtn .stop { width: 26px; height: 26px; border-radius: 6px; background: #fff; }
audio { width: 100%; }

/* Kanban */
.board { overflow-x: auto; padding-bottom: 8px; }
.board-in { display: grid; grid-template-columns: repeat(5, minmax(180px, 1fr)); gap: 12px; min-width: 940px; }
.lane { background: #E9EDF1; border-radius: 14px; padding: 12px; min-height: 380px; }
.lane h2 { font-size: 15px; display: flex; justify-content: space-between; margin: 2px 4px 10px; }
.kcard { display: block; background: #fff; border-radius: 12px; border: 1px solid #DDE2E8; padding: 12px; margin-bottom: 10px; text-decoration: none; color: var(--ink); }
.kcard:hover { border-color: var(--brand); color: var(--ink); }
.kcard .row { gap: 6px; }

/* Bewertung */
.pills { display: flex; gap: 6px; flex-wrap: wrap; }
.pills label { margin: 0; }
.pills input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pills span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 40px; padding: 0 10px; border-radius: 10px;
  border: 1px solid var(--line-2); background: #fff; font-weight: 600; font-size: 14px; cursor: pointer; }
.pills input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; }
.pills input:focus-visible + span { outline: 3px solid #5BB5AA; outline-offset: 2px; }

/* Chat */
.chat { display: flex; flex-direction: column; gap: 8px; max-height: 420px; overflow-y: auto; padding: 4px 0 8px; }
.msg { max-width: 85%; padding: 10px 12px; font-size: 15px; line-height: 1.4; white-space: pre-line; border-radius: 14px 14px 14px 4px; background: var(--bg); align-self: flex-start; }
.msg.mine { align-self: flex-end; background: var(--brand); color: #fff; border-radius: 14px 14px 4px 14px; }
.msg small { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; }
.msg.mine small { color: #D4ECE8; }
.chatform { display: flex; gap: 8px; margin-top: 8px; }
.chatform textarea { min-height: 48px; height: 48px; }

/* Status-Zeitstrahl */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: flex; gap: 12px; position: relative; padding-bottom: 18px; font-size: 15px; }
.timeline li::before { content: ''; width: 14px; height: 14px; border-radius: 999px; border: 2px solid var(--line-2); background: #fff; flex-shrink: 0; margin-top: 4px; position: relative; z-index: 1; }
.timeline li::after { content: ''; position: absolute; left: 6px; top: 18px; bottom: 0; width: 2px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline li.done::before { background: var(--brand); border-color: var(--brand); }
.timeline li.done::after { background: var(--brand); }
.timeline li.now::before { border: 3px solid var(--brand); }
.timeline li.now { font-weight: 700; }

/* Auth-Seiten */
.authbox { max-width: 440px; margin: 0 auto; padding: 32px 16px 64px; }
.authbox .logo { width: 44px; height: 44px; font-size: 20px; border-radius: 12px; margin-bottom: 16px; }
.hero { padding: 40px 0 24px; }
.hero h1 { font-size: 34px; }
.feature { display: flex; gap: 12px; align-items: flex-start; }
.feature .ic { width: 40px; height: 40px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.feature .ic svg { width: 20px; height: 20px; }
.qr { width: 180px; height: 180px; background: #fff; padding: 8px; border: 1px solid var(--line); border-radius: 12px; }
.qr svg { width: 100%; height: 100%; }
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; background: var(--bg); padding: 2px 6px; border-radius: 6px; word-break: break-all; }

@media print {
  .topbar, .bottomnav, .side, .noprint, .actions { display: none !important; }
  body { background: #fff; }
  .wrap, .main { padding: 0; max-width: none; }
  .card { border: 0; padding: 0; }
}

/* ---------- Gesprächsraum (dunkel, ruhig) */
.meetingbody { background: #0F1B2D; color: #fff; min-height: 100vh; }
.room { max-width: 520px; margin: 0 auto; padding: 16px 16px calc(24px + env(safe-area-inset-bottom)); min-height: 100vh; display: flex; flex-direction: column; }
.roomhead { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.roomback { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; color: #fff; border-radius: 12px; }
.roomback:hover { background: #1F3049; color: #fff; }
.roomsub { font-size: 13px; color: #9AA6B6; }
.roomtitle { font-weight: 600; }
.roomcard { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; padding: 24px 0; }
.roomcard[hidden] { display: none; }
.roomcard h1 { color: #fff; font-size: 24px; margin: 0; }
.roomcard p { margin: 0; }
.roommuted { color: #9AA6B6; }
.roombig svg { width: 40px; height: 40px; color: #5BB5AA; }
.avatar { width: 112px; height: 112px; border-radius: 999px; background: #1F3049; display: flex; align-items: center; justify-content: center; font-size: 44px; font-weight: 700; color: #fff; box-shadow: 0 0 0 10px rgba(91,181,170,.12); }
.avatar svg { width: 40px; height: 40px; color: #5BB5AA; }
.room[data-state=connected] .avatar.them { box-shadow: 0 0 0 10px rgba(91,181,170,.3); }
.room .level { display: flex; align-items: center; gap: 5px; height: 52px; }
.room .level span { width: 6px; height: 6px; border-radius: 3px; background: #5BB5AA; transition: height .06s; }
.room .level.mini { height: 24px; gap: 3px; } .room .level.mini span { width: 4px; }
.room.muted .level.me span { background: #556070; }
.callclock { font-size: 34px; font-weight: 700; font-variant-numeric: tabular-nums; }
.status { color: #C9D2DE; min-height: 24px; }
.controls { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
.ctl { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 96px; padding: 14px 10px; border-radius: 16px; border: 0;
  background: #1F3049; color: #fff; font: inherit; cursor: pointer; }
.ctl svg { width: 24px; height: 24px; }
.ctl b { font-size: 13px; font-weight: 600; }
.ctl[aria-pressed=true] { background: #fff; color: #0F1B2D; }
.ctl.danger { background: #B42318; }
.me-row { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.btn.ghost { background: transparent; color: #fff; border: 1px solid #3A4B66; }
.btn.ghost:hover { background: #1F3049; color: #fff; }
.room .flash.error { background: #3B1714; color: #FBD3CE; }

/* Terminauswahl */
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.slot { margin: 0; }
.slot input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.slot span { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 56px; padding: 6px; border-radius: 12px; border: 1px solid var(--line-2);
  background: #fff; font-size: 14px; font-weight: 600; cursor: pointer; text-align: center; }
.slot span small { font-weight: 400; color: var(--muted); font-size: 12px; }
.slot input:checked + span { background: var(--brand-soft); border: 2px solid var(--brand); color: var(--brand-ink); }
.slot input:focus-visible + span { outline: 3px solid #5BB5AA; outline-offset: 2px; }
.daylabel { font-weight: 600; font-size: 14px; margin: 14px 0 8px; }

/* Transkript */
.transcript { margin-top: 10px; padding: 12px; border-radius: 10px; border: 1px dashed var(--line-2); font-size: 15px; white-space: pre-line; }
.transcript-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
