/* Vacancy Guru – Design-System
   Ink-Blau (Vertrauen) + Safran (Wegweiser) auf warmem Papier. Serif-Headlines, geometrische Sans im Text. */
:root {
  --ink: #0f1b2d;
  --ink-2: #172840;
  --ink-3: #243a5a;
  --saffron: #f2a41f;
  --saffron-d: #d68a0a;
  --saffron-soft: #fdf1d6;
  --paper: #f6f3ec;
  --card: #fffdf9;
  --line: #e4ddce;
  --text: #1c2636;
  --muted: #6b7587;
  --ok: #1f8a5b;
  --danger: #c0392b;
  --r-s: 6px;
  --r-m: 12px;
  --r-l: 22px;
  --shadow: 0 1px 2px rgba(15, 27, 45, .06), 0 8px 24px -12px rgba(15, 27, 45, .18);
  --font: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Bricolage Grotesque', 'DM Sans', system-ui, sans-serif; /* Headline-Schrift */
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--text);
  font: 400 16px/1.6 var(--font); -webkit-font-smoothing: antialiased;
  min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: var(--ink-3); }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--ink); line-height: 1.08; margin: 0 0 .5em; letter-spacing: -.025em; font-weight: 700; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4.1rem); font-weight: 800; letter-spacing: -.035em; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 2px; }

.container { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }
.container.narrow { width: min(760px, 100% - 2.5rem); }
.center-box { display: grid; place-items: center; padding: 4rem 0; }

/* ---------- Topbar ---------- */
.topbar { background: var(--ink); position: sticky; top: 0; z-index: 50; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.topbar-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; }
.brand-mark {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px 10px 10px 2px;
  background: var(--saffron); color: var(--ink); font: 700 1.05rem var(--serif);
}
.brand-name { font: 700 1.35rem var(--serif); color: #fff; letter-spacing: -.02em; }
.brand-name em { font-style: normal; color: var(--saffron); margin-left: .12em; }
.nav { display: flex; align-items: center; gap: .25rem; flex: 1; }
.nav a:not(.btn) {
  color: #cdd6e4; text-decoration: none; padding: .5rem .8rem; border-radius: var(--r-s);
  font-weight: 500; font-size: .95rem; transition: background .15s, color .15s;
}
.nav a:not(.btn):hover { background: rgba(255, 255, 255, .08); color: #fff; }
.nav a i { margin-right: .35rem; opacity: .75; }
.nav-spacer { flex: 1; }
.nav-toggle { display: none; background: none; border: 0; color: #fff; font-size: 1.4rem; margin-left: auto; cursor: pointer; }
.inline-form { display: inline; margin: 0; }
.badge {
  display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
  background: var(--saffron); color: var(--ink); font-size: .72rem; font-weight: 700; margin-left: .2rem;
}

/* ---------- Buttons & Formulare ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; cursor: pointer;
  padding: .8rem 1.4rem; border-radius: var(--r-m); border: 1.5px solid transparent;
  font: 600 .98rem var(--font); text-decoration: none; transition: transform .12s, background .15s, border-color .15s, box-shadow .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--saffron); color: var(--ink); box-shadow: 0 6px 16px -8px var(--saffron-d); }
.btn-primary:hover { background: #f7b23d; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-3); }
.btn-ghost { background: transparent; color: #dbe3f0; border-color: rgba(255, 255, 255, .22); }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--ink); }
.btn-danger { background: transparent; color: var(--danger); border-color: #ecc9c4; }
.btn-danger:hover { background: #fbeceb; border-color: var(--danger); }
.btn-sm { padding: .5rem .95rem; font-size: .88rem; border-radius: var(--r-s); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

.field { margin-bottom: 1.1rem; position: relative; }
.field label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: .35rem; color: var(--ink); }
.input, select.input, textarea.input {
  width: 100%; padding: .78rem .95rem; border: 1.5px solid var(--line); border-radius: var(--r-m);
  background: #fff; font: inherit; color: var(--text); transition: border-color .15s, box-shadow .15s;
}
textarea.input { resize: vertical; min-height: 120px; }
.input:focus { outline: none; border-color: var(--saffron); box-shadow: 0 0 0 4px rgba(242, 164, 31, .18); }
.field .reveal { position: absolute; right: .6rem; top: 2.1rem; background: none; border: 0; color: var(--muted); cursor: pointer; padding: .4rem; }
.counter { display: block; text-align: right; font-size: .78rem; color: var(--muted); margin-top: .2rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.2rem; }
.form-grid .full { grid-column: 1 / -1; }
.strength { height: 5px; border-radius: 3px; background: var(--line); margin-top: .45rem; overflow: hidden; }
.strength::after { content: ''; display: block; height: 100%; width: 0; background: var(--danger); transition: width .25s, background .25s; }
.strength[data-level="1"]::after { width: 25%; }
.strength[data-level="2"]::after { width: 50%; background: var(--saffron-d); }
.strength[data-level="3"]::after { width: 75%; background: #8bb02f; }
.strength[data-level="4"]::after { width: 100%; background: var(--ok); }

/* ---------- Hero & Suche ---------- */
.hero {
  position: relative; color: #fff; padding: 4.5rem 0 7.5rem; overflow: hidden;
  background:
    radial-gradient(900px 420px at 88% -10%, rgba(242, 164, 31, .28), transparent 60%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 72px),
    var(--ink);
}
.hero-grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: 3rem; align-items: end; }
.hero h1 { color: #fff; margin-bottom: .4em; }
.hero h1 em { font-style: normal; color: var(--saffron); background: linear-gradient(transparent 84%, rgba(242, 164, 31, .35) 0); }
.hero::after { /* geometrische Akzentform */
  content: ''; position: absolute; right: -90px; bottom: -120px; width: 340px; height: 340px; border-radius: 48% 52% 40% 60%;
  border: 2px solid rgba(242, 164, 31, .35); transform: rotate(18deg); pointer-events: none;
}
.quick { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.6rem; }
.quick a {
  color: #dbe5f5; text-decoration: none; font-size: .88rem; font-weight: 600; padding: .4rem .95rem; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .22); transition: background .15s, border-color .15s, color .15s;
}
.quick a:hover { background: var(--saffron); border-color: var(--saffron); color: var(--ink); }
.hero p { color: #b9c6dc; font-size: 1.12rem; max-width: 52ch; }
.hero-stats { display: grid; gap: .9rem; padding-bottom: .4rem; }
.hero-stat { border-left: 3px solid var(--saffron); padding: .1rem 0 .1rem 1rem; }
.hero-stat strong { display: block; font: 700 2rem var(--serif); color: #fff; line-height: 1.1; }
.hero-stat span { color: #9fb0cb; font-size: .9rem; }

.search-panel {
  position: relative; z-index: 2; margin-top: -4.2rem; background: var(--card); border-radius: var(--r-l);
  padding: 1.1rem; box-shadow: var(--shadow); border: 1px solid var(--line);
  display: grid; grid-template-columns: 1.4fr 1.1fr .9fr .9fr auto; gap: .7rem; align-items: end;
}
.search-panel .field { margin: 0; }
.search-panel .input-icon { position: relative; }
.search-panel .input-icon i { position: absolute; left: .95rem; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search-panel .input-icon .input { padding-left: 2.5rem; }

/* ---------- Jobliste ---------- */
.results-head { display: flex; justify-content: space-between; align-items: baseline; margin: 2.4rem 0 1.2rem; flex-wrap: wrap; gap: .5rem; }
.job-list { display: grid; gap: .9rem; }
.job-card {
  display: grid; grid-template-columns: 56px 1fr auto; gap: 1.1rem; align-items: start; text-decoration: none; color: inherit;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-m); padding: 1.2rem 1.3rem;
  position: relative; transition: transform .15s, box-shadow .15s, border-color .15s;
}
.job-card::before { content: ''; position: absolute; left: -1px; top: 14px; bottom: 14px; width: 4px; border-radius: 0 4px 4px 0; background: transparent; transition: background .15s; }
.job-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: #d6ccb6; }
.job-card:hover::before { background: var(--saffron); }
.avatar {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 14px 14px 14px 4px;
  background: var(--ink); color: var(--saffron); font: 700 1.15rem var(--serif);
}
.avatar.av-1 { background: #1f4d4a; color: #f6d27a; }
.avatar.av-2 { background: #5a2d3a; color: #f7c6a3; }
.avatar.av-3 { background: #2b3f7a; color: #bcd0ff; }
.avatar.av-4 { background: #f2a41f; color: var(--ink); }
.avatar.lg { width: 76px; height: 76px; font-size: 1.6rem; border-radius: 18px 18px 18px 5px; }
.job-card h3 { margin: 0 0 .15rem; font-size: 1.2rem; }
.job-company { color: var(--muted); font-weight: 500; font-size: .93rem; margin-bottom: .6rem; }
.job-desc { color: #4a5568; font-size: .94rem; margin: .7rem 0 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.chip {
  display: inline-flex; align-items: center; gap: .4rem; padding: .22rem .7rem; border-radius: 999px;
  background: #efe9db; color: #4b4535; font-size: .8rem; font-weight: 600;
}
.chip i { font-size: .72rem; color: var(--saffron-d); }
.chip.accent { background: var(--saffron-soft); color: #7a5206; }
.job-meta { text-align: right; color: var(--muted); font-size: .82rem; white-space: nowrap; }
.job-meta .go { display: block; margin-top: .7rem; color: var(--ink); font-weight: 700; }

.pagination { display: flex; gap: .4rem; justify-content: center; margin: 2rem 0 3rem; flex-wrap: wrap; }
.pagination a, .pagination span {
  min-width: 42px; height: 42px; display: grid; place-items: center; border-radius: var(--r-s);
  border: 1px solid var(--line); background: var(--card); text-decoration: none; font-weight: 600; color: var(--ink);
}
.pagination .current { background: var(--ink); color: #fff; border-color: var(--ink); }

.empty-state { text-align: center; padding: 3.5rem 1rem; background: var(--card); border: 1px dashed var(--line); border-radius: var(--r-l); }
.empty-state > i { font-size: 2.4rem; color: var(--saffron); margin-bottom: 1rem; }

/* ---------- So funktioniert's ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 3.5rem 0 1rem; counter-reset: step; border-top: 2px solid var(--ink); }
.step { padding: 1.6rem 1.8rem 1.6rem 0; counter-increment: step; position: relative; }
.step + .step { padding-left: 1.8rem; border-left: 1px solid var(--line); }
.step::before {
  content: '0' counter(step); display: block; font: 800 3rem/1 var(--serif); color: var(--saffron); margin-bottom: .6rem; letter-spacing: -.04em;
}
.step h3 { font-size: 1.15rem; margin-bottom: .3rem; }
.step p { color: var(--muted); margin: 0; font-size: .95rem; }
.cta-band {
  margin: 2rem 0 1rem; padding: 2.2rem 2.4rem; border-radius: var(--r-l); background: var(--saffron); color: var(--ink);
  display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap;
}
.cta-band h2 { margin: 0 0 .2rem; }
.cta-band p { margin: 0; opacity: .8; }

/* ---------- Detailseite ---------- */
.detail-head { background: var(--ink); color: #fff; padding: 2.6rem 0 4.2rem; }
.detail-head h1 { color: #fff; font-size: clamp(1.8rem, 3.6vw, 2.8rem); margin-bottom: .6rem; }
.detail-head .chip { background: rgba(255, 255, 255, .1); color: #e8eef8; }
.detail-head .chip i { color: var(--saffron); }
.detail-head .crumb { color: #9fb0cb; text-decoration: none; font-size: .9rem; display: inline-block; margin-bottom: 1.2rem; }
.detail-top { display: flex; gap: 1.3rem; align-items: center; }
.detail-grid { display: grid; grid-template-columns: 1fr 330px; gap: 2rem; margin-top: -2.2rem; padding-bottom: 4rem; align-items: start; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-l); padding: 1.8rem; box-shadow: var(--shadow); }
.panel + .panel { margin-top: 1.2rem; }
.prose h3 { display: flex; align-items: center; gap: .6rem; font-size: 1.15rem; margin-top: 1.8rem; }
.prose h3:first-child { margin-top: 0; }
.prose h3 i { color: var(--saffron-d); font-size: .95rem; }
.sticky { position: sticky; top: 90px; }
.facts { list-style: none; padding: 0; margin: 1rem 0 1.4rem; display: grid; gap: .8rem; }
.facts li { display: flex; gap: .8rem; align-items: flex-start; font-size: .94rem; }
.facts i { width: 20px; color: var(--saffron-d); margin-top: .25rem; text-align: center; }
.facts small { display: block; color: var(--muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; }

/* ---------- Auth ---------- */
.auth-shell { display: grid; grid-template-columns: .85fr 1.15fr; min-height: calc(100vh - 68px); }
.auth-aside {
  background: radial-gradient(600px 360px at 10% 100%, rgba(242, 164, 31, .3), transparent 60%), var(--ink);
  color: #fff; padding: 4rem 3rem; display: flex; flex-direction: column; justify-content: center;
}
.auth-aside h2 { color: #fff; font-size: 2.2rem; }
.auth-aside ul { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .9rem; color: #c3cfe3; }
.auth-aside li i { color: var(--saffron); margin-right: .7rem; }
.auth-main { display: grid; place-items: center; padding: 3rem 1.5rem; }
.auth-card { width: min(520px, 100%); }
.tabs { display: grid; grid-template-columns: 1fr 1fr; background: #ece5d6; border-radius: var(--r-m); padding: 4px; margin-bottom: 1.6rem; }
.tabs button { border: 0; background: transparent; padding: .7rem; border-radius: 9px; font: 600 .95rem var(--font); color: var(--muted); cursor: pointer; }
.tabs button.active { background: var(--card); color: var(--ink); box-shadow: 0 1px 4px rgba(0, 0, 0, .1); }
.auth-card .alt { text-align: center; margin-top: 1.2rem; color: var(--muted); font-size: .94rem; }

/* ---------- Dashboard ---------- */
.page-head { padding: 2.6rem 0 1.4rem; }
.tiles { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 1rem; margin-bottom: 1.6rem; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-m); padding: 1.4rem; }
.tile.dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.tile.dark h3, .tile.dark .num { color: #fff; }
.tile .num { font: 700 2.6rem var(--serif); color: var(--ink); line-height: 1; }
.tile i { color: var(--saffron-d); margin-right: .4rem; }
.tile.dark i { color: var(--saffron); }
.actions { display: flex; gap: .7rem; flex-wrap: wrap; }

/* ---------- Tabelle (Anzeigen verwalten) ---------- */
.manage-list { display: grid; gap: .8rem; }
.manage-item { display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-m); padding: 1.1rem 1.3rem; }
.manage-item h3 { margin: 0 0 .4rem; font-size: 1.1rem; }

/* ---------- Chat ---------- */
.chat-shell { display: grid; grid-template-columns: 340px 1fr; height: calc(100vh - 68px - 2px); min-height: 520px; background: var(--card); border-top: 1px solid var(--line); }
.chat-side { border-right: 1px solid var(--line); overflow-y: auto; background: #faf7f0; }
.chat-side h2 { padding: 1.3rem 1.3rem .6rem; font-size: 1.3rem; margin: 0; }
.conv { display: grid; grid-template-columns: 46px 1fr auto; gap: .8rem; align-items: center; padding: .9rem 1.3rem; text-decoration: none; color: inherit; border-bottom: 1px solid var(--line); }
.conv:hover { background: #f1ebdc; }
.conv.active { background: var(--saffron-soft); box-shadow: inset 4px 0 0 var(--saffron); }
.conv .avatar { width: 46px; height: 46px; font-size: .95rem; border-radius: 12px 12px 12px 3px; }
.conv strong { display: block; font-size: .95rem; color: var(--ink); }
.conv small { display: block; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 200px; }
.conv time { font-size: .72rem; color: var(--muted); }
.chat-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.chat-title { display: flex; align-items: center; gap: 1rem; padding: .9rem 1.4rem; border-bottom: 1px solid var(--line); }
.chat-title .avatar { width: 44px; height: 44px; font-size: .95rem; }
.chat-title h3 { margin: 0; font-size: 1.05rem; }
.chat-title a { font-size: .85rem; }
.messages { flex: 1; overflow-y: auto; padding: 1.4rem; display: flex; flex-direction: column; gap: .5rem; background:
  radial-gradient(circle at 1px 1px, rgba(15, 27, 45, .05) 1px, transparent 0) 0 0 / 22px 22px, var(--paper); }
.msg { max-width: min(560px, 80%); padding: .65rem .95rem; border-radius: 16px 16px 16px 4px; background: #fff; border: 1px solid var(--line); word-wrap: break-word; overflow-wrap: anywhere; }
.msg.mine { align-self: flex-end; background: var(--ink); color: #fff; border-color: var(--ink); border-radius: 16px 16px 4px 16px; }
.msg time { display: block; font-size: .7rem; opacity: .6; margin-top: .25rem; text-align: right; }
.day-sep { align-self: center; font-size: .75rem; color: var(--muted); background: #ece5d6; padding: .15rem .8rem; border-radius: 999px; margin: .6rem 0; }
.composer { display: flex; gap: .7rem; padding: 1rem 1.2rem; border-top: 1px solid var(--line); background: var(--card); align-items: flex-end; }
.composer textarea { flex: 1; min-height: 46px; max-height: 140px; resize: none; }
.chat-empty { flex: 1; display: grid; place-items: center; text-align: center; color: var(--muted); padding: 2rem; }
.chat-empty i { font-size: 2.6rem; color: var(--saffron); display: block; margin-bottom: .8rem; }
.back-link { display: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #9fb0cb; padding: 2.2rem 0; margin-top: 3rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; }
.footer-inner p { margin: .6rem 0 0; font-size: .92rem; }
.site-footer .muted { color: #6e809c; }

/* ---------- Toast ---------- */
.vg-toast { font-family: var(--font) !important; border-left: 4px solid var(--saffron); }
.swal2-popup { font-family: var(--font); border-radius: var(--r-l) !important; }
.swal2-title { font-family: var(--serif) !important; color: var(--ink) !important; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid, .detail-grid, .auth-shell, .tiles { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); }
  .search-panel { grid-template-columns: 1fr 1fr; }
  .search-panel .btn { grid-column: 1 / -1; }
  .sticky { position: static; }
  .auth-aside { padding: 2.4rem 1.5rem; }
  .auth-aside ul { display: none; }
}
@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; }
  .step + .step { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .hero::after { display: none; }
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--ink); padding: .8rem 1.25rem 1.2rem; border-bottom: 1px solid rgba(255, 255, 255, .1); }
  .nav.open { display: flex; }
  .nav-spacer { display: none; }
  .hero { padding: 3rem 0 6.5rem; }
  .hero-stats { grid-template-columns: 1fr; }
  .search-panel { grid-template-columns: 1fr; margin-top: -3.6rem; }
  .job-card { grid-template-columns: 46px 1fr; }
  .job-card .avatar { width: 46px; height: 46px; font-size: .95rem; }
  .job-meta { grid-column: 2; text-align: left; }
  .form-grid { grid-template-columns: 1fr; }
  .manage-item { grid-template-columns: 1fr; }
  .chat-shell { grid-template-columns: 1fr; }
  .chat-shell.in-thread .chat-side { display: none; }
  .chat-shell:not(.in-thread) .chat-main { display: none; }
  .back-link { display: inline-flex; }
  .detail-top { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* =====================================================================
   Erweiterungen v4: Filterraster, Merkliste, Bewerbungen, Profil, Dark Mode
   ===================================================================== */

/* Filter-Raster (12 Spalten) */
.search-panel { grid-template-columns: repeat(12, 1fr); align-items: end; }
.search-panel .s2 { grid-column: span 2; }
.search-panel .s3 { grid-column: span 3; }
.search-panel .s4 { grid-column: span 4; }
@media (max-width: 980px) {
  .search-panel { grid-template-columns: repeat(6, 1fr); }
  .search-panel .s2, .search-panel .s3, .search-panel .s4 { grid-column: span 3; }
  .search-panel .btn { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .search-panel { grid-template-columns: 1fr; }
  .search-panel .s2, .search-panel .s3, .search-panel .s4 { grid-column: 1 / -1; }
}

/* Merkliste-Herz auf Karten */
.job-wrap { position: relative; }
.fav {
  position: absolute; top: .9rem; right: .9rem; z-index: 2; width: 38px; height: 38px; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--muted); cursor: pointer;
  text-decoration: none; transition: transform .15s, color .15s, border-color .15s, background .15s;
}
.fav:hover { color: #d6336c; border-color: #d6336c; transform: scale(1.08); }
.fav.on { color: #d6336c; border-color: #f2b8cc; background: #fdecf2; }
.job-wrap .job-meta { padding-right: 2.6rem; }
.job-wrap .job-card { padding-right: 3.4rem; }
.btn.on { border-color: #d6336c; color: #d6336c; }

/* Statusanzeigen für Bewerbungen */
.status-pill {
  display: inline-flex; align-items: center; gap: .45rem; padding: .35rem .85rem; border-radius: 999px;
  font-size: .82rem; font-weight: 700; white-space: nowrap; background: #e9edf5; color: #34435c;
}
.status-pill.st-review { background: #fdf1d6; color: #7a5206; }
.status-pill.st-interview { background: #dcecff; color: #1e4a8f; }
.status-pill.st-rejected { background: #fbe3e0; color: #912d22; }
.status-pill.st-hired { background: #d9f2e5; color: #17694a; }
.status-box { display: flex; align-items: center; gap: .9rem; padding: .9rem 1rem; border-radius: var(--r-m); background: #e9edf5; color: #34435c; }
.status-box i { font-size: 1.3rem; }
.status-box small { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; opacity: .75; }
.status-box.st-review { background: #fdf1d6; color: #7a5206; }
.status-box.st-interview { background: #dcecff; color: #1e4a8f; }
.status-box.st-rejected { background: #fbe3e0; color: #912d22; }
.status-box.st-hired { background: #d9f2e5; color: #17694a; }

/* Bewerberliste (Unternehmen) */
.applicant { padding: 1.3rem 1.5rem; }
.applicant-head { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.letter { margin: 1rem 0; }
.letter summary { cursor: pointer; font-weight: 600; color: var(--ink-3); }
.letter p { margin: .8rem 0 0; padding: 1rem 1.1rem; background: var(--paper); border-radius: var(--r-m); border: 1px solid var(--line); }
.status-form { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.status-form .input { width: auto; min-width: 220px; padding: .55rem .8rem; }
.crumb-dark { display: inline-block; margin-bottom: .8rem; color: var(--muted); text-decoration: none; font-size: .9rem; }

/* Bewerbungsformular in der Seitenleiste */
.apply summary { list-style: none; cursor: pointer; }
.apply summary::-webkit-details-marker { display: none; }
.apply[open] summary { margin-bottom: 1rem; }
.apply form .field { margin-bottom: .8rem; }
.side-actions { display: flex; gap: .6rem; margin-top: 1rem; flex-wrap: wrap; }
.side-actions .btn { flex: 1; }
.notice { background: rgba(242, 164, 31, .16); border: 1px solid rgba(242, 164, 31, .5); color: #ffe3a6; padding: .6rem 1rem; border-radius: var(--r-m); margin-bottom: 1.2rem; font-size: .92rem; }
a.chip { text-decoration: none; }
a.chip:hover { filter: brightness(.96); }

/* Profil */
.danger-zone { border-color: #ecc9c4; }
.danger-zone h3 { color: var(--danger); }
.icon-btn { background: transparent; border: 0; color: #cdd6e4; cursor: pointer; font-size: 1.05rem; padding: .5rem .7rem; border-radius: var(--r-s); }
.icon-btn:hover { background: rgba(255, 255, 255, .08); color: #fff; }

/* ---------- Dark Mode ---------- */
[data-theme="dark"] {
  --paper: #0a1220; --card: #111d31; --line: #223452; --text: #e4eaf5; --muted: #8fa0ba; --saffron-soft: #3a2c0e;
  color-scheme: dark;
}
[data-theme="dark"] h1, [data-theme="dark"] h2, [data-theme="dark"] h3, [data-theme="dark"] h4,
[data-theme="dark"] .field label, [data-theme="dark"] .btn-outline, [data-theme="dark"] .conv strong,
[data-theme="dark"] .tile .num, [data-theme="dark"] .pagination a, [data-theme="dark"] .job-meta .go,
[data-theme="dark"] .swal2-title { color: #f1f5fb; }
[data-theme="dark"] .cta-band h2, [data-theme="dark"] .cta-band p { color: var(--ink); }
[data-theme="dark"] .tile.dark .num { color: #fff; }
[data-theme="dark"] a { color: #9db8ea; }
[data-theme="dark"] .btn-primary { color: var(--ink); }
[data-theme="dark"] .btn-danger { color: #f4a79f; border-color: #6b2b25; }
[data-theme="dark"] .btn-danger:hover { background: #3a1613; }
[data-theme="dark"] .job-card, [data-theme="dark"] .conv, [data-theme="dark"] .fav { color: var(--text); }
[data-theme="dark"] .fav { color: var(--muted); }
[data-theme="dark"] .fav:hover, [data-theme="dark"] .fav.on { color: #ff6b9a; }
[data-theme="dark"] .quick a { color: #dbe5f5; }
[data-theme="dark"] .quick a:hover { color: var(--ink); }
[data-theme="dark"] .detail-head .crumb { color: #9fb0cb; }
[data-theme="dark"] .crumb-dark, [data-theme="dark"] .manage-item h3 a { color: inherit; }
[data-theme="dark"] .btn-dark { background: #1f3556; color: #fff; }
[data-theme="dark"] .btn-outline { border-color: #314a70; }
[data-theme="dark"] .btn-outline:hover { border-color: var(--saffron); }
[data-theme="dark"] .cta-band .btn-dark { background: var(--ink); }
[data-theme="dark"] .input { background: #0c1627; color: var(--text); }
[data-theme="dark"] .chip { background: #1a2b47; color: #cfd9ea; }
[data-theme="dark"] .chip.accent { background: #3a2c0e; color: #f5c76b; }
[data-theme="dark"] .job-card:hover { border-color: #3a5380; }
[data-theme="dark"] .job-desc { color: #a9b6cc; }
[data-theme="dark"] .tabs { background: #0c1627; }
[data-theme="dark"] .tabs button.active { background: #1c2f4d; color: #fff; }
[data-theme="dark"] .chat-side { background: #0d182a; }
[data-theme="dark"] .conv:hover { background: #15243d; }
[data-theme="dark"] .conv.active { background: #2a2210; }
[data-theme="dark"] .msg { background: var(--card); color: var(--text); }
[data-theme="dark"] .msg.mine { background: #1f3556; border-color: #1f3556; color: #fff; }
[data-theme="dark"] .day-sep { background: #16253d; color: var(--muted); }
[data-theme="dark"] .letter p { background: #0c1627; }
[data-theme="dark"] .status-pill { background: #1a2b47; color: #cfd9ea; }
[data-theme="dark"] .status-pill.st-review { background: #3a2c0e; color: #f5c76b; }
[data-theme="dark"] .status-pill.st-interview { background: #17305a; color: #a9c8ff; }
[data-theme="dark"] .status-pill.st-rejected { background: #4a1f1b; color: #f4a79f; }
[data-theme="dark"] .status-pill.st-hired { background: #123a2a; color: #86e0b5; }
[data-theme="dark"] .status-box { background: #1a2b47; color: #cfd9ea; }
[data-theme="dark"] .status-box.st-review { background: #3a2c0e; color: #f5c76b; }
[data-theme="dark"] .status-box.st-interview { background: #17305a; color: #a9c8ff; }
[data-theme="dark"] .status-box.st-rejected { background: #4a1f1b; color: #f4a79f; }
[data-theme="dark"] .status-box.st-hired { background: #123a2a; color: #86e0b5; }
[data-theme="dark"] .fav.on { background: #3a1626; border-color: #7a2d4c; }
[data-theme="dark"] .danger-zone { border-color: #6b2b25; }
[data-theme="dark"] .step { color: var(--text); }

.tiles-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 980px) { .tiles-3 { grid-template-columns: 1fr; } }
