/* Jobs-Seite /jobs/: Bewerber-Chat im Stil der Website (Schwarz & Gold). Baut auf style.css auf. */

.jb-section { padding-top: clamp(28px, 4vw, 48px); }
.jb-grid { display: grid; gap: 40px; align-items: start; }
@media (min-width: 980px) { .jb-grid { grid-template-columns: minmax(0, 480px) minmax(0, 1fr); gap: 56px; } }

/* ---------- Chat ---------- */
.jb-app {
  display: flex; flex-direction: column; overflow: hidden; padding: 0;
  height: min(740px, calc(100dvh - var(--header-h) - 32px)); min-height: 540px;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-lg);
  scroll-margin-top: calc(var(--header-h) + 12px);
}
@media (min-width: 980px) { .jb-app { position: sticky; top: calc(var(--header-h) + 16px); } }
@media (max-width: 979px) { .jb-app { height: calc(100dvh - var(--header-h) - 24px); min-height: 480px; } }

.jb-head { display: flex; align-items: center; gap: 12px; padding: 12px 8px 12px 14px; border-bottom: 1px solid var(--line); }
.jb-logo { width: 40px; height: 40px; flex: none; border-radius: 50%; background: var(--gold); color: var(--gold-ink); display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-stretch: 90%; font-size: 15px; letter-spacing: .02em; }
.jb-title { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; margin-right: auto; }
.jb-title b { font-size: 16px; color: var(--ink-2); }
.jb-title span { font-size: 13px; color: var(--slate); }
.jb-icon { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border: 0; background: transparent; color: var(--slate); border-radius: var(--r-sm); cursor: pointer; }
.jb-icon:hover { color: var(--ink); background: var(--mist-2); }
.jb-icon svg, .jb-send svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.jb-progress { padding: 10px 14px 9px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.jb-progress p { margin: 0; font-size: 13px; color: var(--slate); font-weight: 600; }
.jb-bar { height: 4px; background: var(--line-strong); border-radius: 2px; overflow: hidden; }
.jb-bar span { display: block; height: 100%; width: 6%; background: var(--gold); border-radius: 2px; transition: width .3s ease; }

.jb-log { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 16px 14px; display: flex; flex-direction: column; gap: 12px; }
.jb-msg { display: flex; flex-direction: column; gap: 8px; max-width: 92%; align-items: flex-start; }
.jb-msg.user { align-self: flex-end; align-items: flex-end; }
.jb-bubble { padding: 10px 13px; border-radius: 14px 14px 14px 4px; background: var(--mist-2); color: var(--ink); font-size: 15.5px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.jb-msg.user .jb-bubble { background: var(--gold); color: var(--gold-ink); border-radius: 14px 14px 4px 14px; font-weight: 550; }
.jb-hint { margin: 0; padding: 0 0 0 18px; font-size: 13.5px; color: var(--slate); display: flex; flex-direction: column; gap: 2px; }

.jb-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.jb-chip { min-height: 40px; padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--gold); background: transparent; color: var(--gold-deep); font-size: 15px; font-weight: 600; text-align: left; cursor: pointer; transition: background .15s, color .15s; }
.jb-chip:hover:not(:disabled) { background: var(--gold); color: var(--gold-ink); }
.jb-chip.quiet { border-color: var(--line-strong); color: var(--slate); font-weight: 500; }
.jb-chip.quiet:hover:not(:disabled) { background: var(--mist-2); color: var(--ink); }
.jb-chip:disabled { opacity: .45; cursor: default; }

.jb-typing { display: inline-flex; gap: 4px; padding: 4px 0; }
.jb-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--slate); animation: jb-dot 1.2s infinite ease-in-out; }
.jb-typing i:nth-child(2) { animation-delay: .15s; } .jb-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes jb-dot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }

/* Karten im Chat */
.jb-card { width: 100%; min-width: min(340px, 100%); display: flex; flex-direction: column; gap: 12px; padding: 14px; border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--paper); font-size: 15px; }
.jb-card label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.jb-card input[type=text], .jb-card input[type=tel], .jb-card input[type=email] {
  width: 100%; min-height: 46px; padding: 10px 12px; font-size: 16px; font-weight: 400;
  background: var(--surface); color: var(--ink); border: 1.5px solid var(--line-strong); border-radius: var(--r-sm);
}
.jb-card input::placeholder { color: #77736b; }
.jb-card input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212,164,58,.25); }
.jb-card .btn { align-self: flex-start; }
.jb-note { font-size: 13px; color: var(--faint); }
.jb-err { font-size: 14px; color: var(--err); }
.jb-err:empty { display: none; }
.jb-row { display: flex; flex-wrap: wrap; gap: 10px; }

.jb-pills { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.jb-pills legend { font-size: 14px; font-weight: 600; margin-bottom: 8px; padding: 0; }
.jb-card .jb-pills label { flex-direction: row; font-weight: 500; }
.jb-pills input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.jb-pills span { display: inline-block; border: 1.5px solid var(--line-strong); border-radius: 999px; padding: 6px 12px; font-size: 14px; cursor: pointer; }
.jb-pills input:checked + span { border-color: var(--gold); background: var(--gold-soft); color: var(--gold-hi); font-weight: 600; }
.jb-pills input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }

.jb-checkbox { flex-direction: row !important; align-items: flex-start; gap: 10px !important; font-weight: 400 !important; font-size: 14px !important; color: var(--slate); }
.jb-checkbox input { width: 20px; height: 20px; flex: none; margin: 1px 0 0; accent-color: var(--gold); }
.jb-checkbox a { color: var(--gold-deep); }

.jb-link { border: 0; background: transparent; color: var(--gold-deep); font-size: 13.5px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; padding: 4px 2px; cursor: pointer; }
.jb-link:hover { color: var(--ink); }

.jb-file { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto auto; gap: 8px; align-items: center; font-size: 14px; }
.jb-file svg { width: 18px; height: 18px; fill: none; stroke: var(--slate); stroke-width: 1.8; stroke-linejoin: round; }
.jb-file span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jb-file small { color: var(--faint); font-size: 13px; }
.jb-file.bad small { color: var(--err); white-space: normal; max-width: 22ch; }

.jb-check { margin: 0; display: flex; flex-direction: column; }
.jb-check > div { display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; gap: 8px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.jb-check > div:last-child { border-bottom: 0; }
.jb-check dt { color: var(--slate); }
.jb-check dd { margin: 0; overflow-wrap: anywhere; }

.jb-done b { font-size: 15.5px; color: var(--gold-deep); }
.jb-done p { margin: 0; color: var(--ink); }

/* Eingabe */
.jb-input { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); }
.jb-input input { flex: 1; min-width: 0; min-height: 46px; padding: 10px 14px; font-size: 16px; background: var(--paper); color: var(--ink); border: 1.5px solid var(--line-strong); border-radius: 999px; }
.jb-input input::placeholder { color: #77736b; }
.jb-input input:focus { outline: none; border-color: var(--gold); }
.jb-send { width: 46px; height: 46px; flex: none; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--gold); color: var(--gold-ink); cursor: pointer; }
.jb-send:hover { background: var(--gold-hi); }
.jb-foot { margin: 0; padding: 0 14px 10px; font-size: 12.5px; color: var(--faint); }
.jb-foot a { color: inherit; text-underline-offset: 2px; }

/* ---------- Daneben: Stellen und Infos ---------- */
.jb-side { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.jb-side h2 { font-size: clamp(26px, 3vw, 34px); }
.jb-jobs { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); }
.jb-jobs li { display: grid; gap: 14px 24px; padding: 22px 0; border-bottom: 1px solid var(--line-strong); }
@media (min-width: 620px) { .jb-jobs li { grid-template-columns: minmax(0, 1fr) auto; align-items: center; } }
.jb-jobs h3 { font-size: 20px; }
.jb-jobs p { margin: 4px 0 0; color: var(--slate); font-size: 15.5px; max-width: 52ch; }
.jb-jobs .jb-umfang { color: var(--gold-deep); font-weight: 600; font-size: 14.5px; }
.jb-jobs .btn { justify-self: start; }
.jb-facts { margin: 0; display: grid; gap: 18px; }
.jb-facts dt { font-family: var(--font-display); font-weight: 750; font-size: 17px; color: var(--ink-2); }
.jb-facts dd { margin: 4px 0 0; color: var(--slate); font-size: 15.5px; max-width: 60ch; }
.jb-small { margin: 0; font-size: 15px; color: var(--slate); }

/* Hinweis unten */
.jb-toast { position: fixed; left: 50%; bottom: 20px; z-index: 60; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; max-width: min(92vw, 460px); padding: 12px 16px; border-radius: var(--r); background: var(--ink); color: var(--paper); font-size: 14.5px; font-weight: 550; transition: opacity .2s, transform .2s; }
.jb-toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 480px) {
  .jb-grid { gap: 32px; }
  .jb-section .wrap.jb-grid { padding: 0 12px; }
  .jb-check > div { grid-template-columns: 92px minmax(0, 1fr) auto; }
  .jb-card { min-width: 0; }
}
