/* =============================================================================================
   JobAgent Design System
   Mobile-first, Systemschrift (SF Pro auf iOS), keine externen Ressourcen, CSP-konform.
   Aufbau: 1 Tokens · 2 Basis · 3 Shell/Navigation · 4 Seitenstruktur · 5 Komponenten · 6 Motion · 7 Utilities
   ============================================================================================= */

/* 1 ─ TOKENS ------------------------------------------------------------------------------- */
:root {
  color-scheme: light dark;
  /* Farben (semantisch) – Light */
  --bg: #f6f6f7;
  --surface: #ffffff;
  --surface-2: #f1f1f3;          /* ruhige Fuellflaeche: Hover, Eingabegruppen */
  --elevated: #ffffff;           /* Sheets, Menues, Dialoge */
  --border: #e3e3e7;
  --border-strong: #cfcfd5;
  --text: #17171a;               /* text-primary */
  --text-2: #4e4e56;             /* text-secondary  (8.4:1 auf weiss) */
  --text-3: #6c6c75;             /* text-muted      (5.2:1 auf weiss) */
  --accent: #2b55d8;             /* 5.6:1 auf weiss */
  --accent-hover: #2349bf;
  --accent-fg: #ffffff;
  --accent-soft: #edf1fd;
  --success: #17733f;  --success-soft: #eaf6ef;
  --warning: #9a5108;  --warning-soft: #fdf3e6;
  --danger: #bb2a2a;   --danger-soft: #fcefef;
  --focus: #2b55d8;
  --scrim: rgba(17, 17, 20, .38);
  --shadow-1: 0 1px 2px rgba(17, 17, 26, .05);
  --shadow-2: 0 8px 24px rgba(17, 17, 26, .10), 0 2px 6px rgba(17, 17, 26, .06);
  --shadow-3: 0 18px 48px rgba(17, 17, 26, .18), 0 4px 12px rgba(17, 17, 26, .08);

  /* Typografie */
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;
  --fs-display: 1.75rem;  --lh-display: 2.125rem;   /* 28/34 */
  --fs-title: 1.375rem;   --lh-title: 1.75rem;      /* 22/28 */
  --fs-section: 1.0625rem; --lh-section: 1.5rem;    /* 17/24 */
  --fs-body: 1rem;        --lh-body: 1.5rem;        /* 16/24 */
  --fs-secondary: .875rem; --lh-secondary: 1.25rem; /* 14/20 */
  --fs-caption: .78125rem; --lh-caption: 1rem;      /* 12.5/16 */

  /* Abstaende (4er-Raster) */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 20px; --s-6: 24px; --s-8: 32px; --s-10: 40px; --s-12: 48px; --s-16: 64px;
  /* Radien */
  --r-sm: 8px; --r-md: 12px; --r-lg: 16px;
  /* Motion */
  --dur-fast: 120ms; --dur: 200ms; --dur-slow: 300ms;
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --ease-in-out: cubic-bezier(.4, 0, .2, 1);
  --ease-sheet: cubic-bezier(.32, .72, 0, 1);
  /* Ebenen */
  --z-sticky: 10; --z-nav: 20; --z-menu: 30; --z-sheet: 40; --z-toast: 50; --z-dialog: 60;
  /* Masse */
  --tap: 44px;
  --tabbar-h: 56px;
  --appbar-h: 52px;
  --sidebar-w: 232px;
  --content-w: 760px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0e10;
    --surface: #17171a;
    --surface-2: #1f1f23;
    --elevated: #1f1f23;
    --border: #2a2a2f;
    --border-strong: #3a3a41;
    --text: #ececef;
    --text-2: #b6b6be;
    --text-3: #8d8d96;
    --accent: #8aa6ff;
    --accent-hover: #a3b9ff;
    --accent-fg: #0c1330;
    --accent-soft: rgba(138, 166, 255, .14);
    --success: #5fd38b;  --success-soft: rgba(95, 211, 139, .13);
    --warning: #f2b24c;  --warning-soft: rgba(242, 178, 76, .13);
    --danger: #ff7b7b;   --danger-soft: rgba(255, 123, 123, .13);
    --focus: #8aa6ff;
    --scrim: rgba(0, 0, 0, .55);
    --shadow-1: none;
    --shadow-2: 0 8px 24px rgba(0, 0, 0, .45);
    --shadow-3: 0 18px 48px rgba(0, 0, 0, .6);
  }
}

/* 2 ─ BASIS -------------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overflow-wrap: break-word; -webkit-tap-highlight-color: transparent; }
body { margin: 0; font: var(--fs-body)/var(--lh-body) var(--font); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 650; letter-spacing: -.012em; }
h1 { font-size: var(--fs-title); line-height: var(--lh-title); }
h2 { font-size: var(--fs-section); line-height: var(--lh-section); }
h3 { font-size: var(--fs-body); line-height: var(--lh-body); font-weight: 600; }
p { margin: 0 0 var(--s-3); }
p:last-child { margin-bottom: 0; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }
ul, ol { margin: 0 0 var(--s-3); padding-left: 1.25rem; }
li + li { margin-top: 2px; }
code { font-family: var(--font-mono); font-size: .9em; background: var(--surface-2); border-radius: 4px; padding: 1px 5px; }
hr { border: 0; border-top: 1px solid var(--border); margin: var(--s-6) 0; }
img, svg, video, table, pre, textarea, input, select { max-width: 100%; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--accent-soft); }
.icon { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon.sm { width: 16px; height: 16px; }

/* 3 ─ SHELL / NAVIGATION ------------------------------------------------------------------- */
.skip-link { position: absolute; left: -999px; top: 8px; z-index: var(--z-dialog); background: var(--accent); color: var(--accent-fg); padding: 10px 14px; border-radius: var(--r-sm); }
.skip-link:focus { left: 8px; }

/* Mobile App-Bar (oben) */
.appbar { position: sticky; top: 0; z-index: var(--z-nav); display: flex; align-items: center; gap: var(--s-2);
  min-height: calc(var(--appbar-h) + var(--safe-top)); padding: var(--safe-top) calc(var(--s-2) + var(--safe-right)) 0 calc(var(--s-2) + var(--safe-left));
  background: color-mix(in srgb, var(--bg) 86%, transparent); -webkit-backdrop-filter: saturate(180%) blur(16px); backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent; transition: border-color var(--dur) var(--ease-out); }
.appbar.scrolled { border-bottom-color: var(--border); }
.appbar-title { flex: 1; min-width: 0; font-weight: 600; font-size: var(--fs-body); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 var(--s-2); }
.appbar-side { width: 88px; display: flex; align-items: center; }
.appbar-side.end { justify-content: flex-end; }
.appbar .brand { font-weight: 700; letter-spacing: -.02em; color: var(--text); padding-left: var(--s-2); }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; gap: 2px; min-width: var(--tap); min-height: var(--tap); padding: 0 var(--s-2);
  border: 0; border-radius: var(--r-sm); background: transparent; color: var(--accent); font: inherit; cursor: pointer; text-decoration: none; }
.icon-btn:hover { background: var(--surface-2); text-decoration: none; }
.icon-btn.plain { color: var(--text-2); }
.back-link { color: var(--accent); font-size: var(--fs-body); }

/* Mobile Tab-Bar (unten) */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-nav); display: grid; grid-template-columns: repeat(5, 1fr);
  padding: 0 var(--safe-right) var(--safe-bottom) var(--safe-left); min-height: calc(var(--tabbar-h) + var(--safe-bottom));
  background: color-mix(in srgb, var(--surface) 88%, transparent); -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px);
  border-top: 1px solid var(--border); }
.tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: var(--tabbar-h); color: var(--text-3);
  font-size: 12px; line-height: 14px; font-weight: 500; white-space: nowrap; letter-spacing: -.015em; min-width: 0; padding: 0 1px; text-decoration: none; border: 0; background: none; font-family: inherit; cursor: pointer; }
.tab .icon { width: 24px; height: 24px; stroke-width: 1.7; }
.tab:hover { text-decoration: none; color: var(--text-2); }
.tab[aria-current="page"] { color: var(--accent); }
.tab[aria-current="page"] .icon { stroke-width: 2.1; }
.tab:active .icon { transform: scale(.92); }

/* Desktop-Sidebar */
.sidebar { display: none; }
.app-main { min-width: 0; }

@media (min-width: 1024px) {
  .appbar, .tabbar { display: none; }
  .shell { display: grid; grid-template-columns: var(--sidebar-w) minmax(0, 1fr); min-height: 100vh; }
  .sidebar { display: flex; flex-direction: column; gap: var(--s-1); position: sticky; top: 0; height: 100vh; padding: var(--s-5) var(--s-3);
    border-right: 1px solid var(--border); background: var(--surface); }
  .sidebar .brand { display: block; font-weight: 700; font-size: 1.05rem; letter-spacing: -.02em; color: var(--text); padding: var(--s-1) var(--s-3) var(--s-5); }
  .sidebar .brand:hover { text-decoration: none; }
  .side-link { display: flex; align-items: center; gap: var(--s-3); min-height: 38px; padding: 0 var(--s-3); border-radius: var(--r-sm); color: var(--text-2);
    font-size: var(--fs-secondary); font-weight: 500; text-decoration: none; border: 0; background: none; font-family: inherit; cursor: pointer; width: 100%; text-align: left; }
  .side-link:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
  .side-link[aria-current="page"] { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
  .side-link .icon { width: 18px; height: 18px; }
  .side-sep { height: 1px; background: var(--border); margin: var(--s-3) var(--s-3); }
  .side-bottom { margin-top: auto; display: flex; flex-direction: column; gap: var(--s-1); }
  .side-new { margin: 0 0 var(--s-4); }
}

/* Inhalt */
.content { width: 100%; max-width: var(--content-w); margin: 0 auto; padding: var(--s-4) calc(var(--s-4) + var(--safe-right)) calc(var(--tabbar-h) + var(--safe-bottom) + var(--s-8)) calc(var(--s-4) + var(--safe-left)); }
.content.has-actionbar { padding-bottom: calc(var(--tabbar-h) + var(--safe-bottom) + 84px); }
.content.wide { max-width: 1080px; }
.bare .content { padding-bottom: calc(var(--safe-bottom) + var(--s-8)); }
@media (min-width: 1024px) {
  .content, .content.has-actionbar { padding: var(--s-8) var(--s-10) var(--s-16); }
}

/* Auth-Layout (Login, Recovery) */
.auth-wrap { min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: calc(var(--s-6) + var(--safe-top)) var(--s-4) calc(var(--s-6) + var(--safe-bottom)); }
.auth-card { width: 100%; max-width: 380px; }
.auth-brand { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; letter-spacing: -.02em; margin-bottom: var(--s-1); }
.auth-card .lede { color: var(--text-2); margin-bottom: var(--s-8); }

/* 4 ─ SEITENSTRUKTUR ----------------------------------------------------------------------- */
.page-header { margin: var(--s-2) 0 var(--s-6); }
.page-header h1 { overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
.page-header .eyebrow { color: var(--text-3); font-size: var(--fs-secondary); margin-bottom: var(--s-1); }
.page-header .sub { color: var(--text-2); margin-top: var(--s-1); }
.page-header .meta { display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center; margin-top: var(--s-3); }
.page-header-row { display: flex; gap: var(--s-4); align-items: flex-start; justify-content: space-between; }
.page-header-row .header-actions { display: none; }
@media (min-width: 1024px) {
  .page-header { margin-top: 0; }
  h1 { font-size: 1.5rem; line-height: 2rem; }
  .page-header-row .header-actions { display: flex; gap: var(--s-2); flex: none; }
}
.display { font-size: var(--fs-display); line-height: var(--lh-display); font-weight: 700; letter-spacing: -.02em; }

.section { margin-bottom: var(--s-8); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-3); margin: 0 var(--s-1) var(--s-2); }
.section-label { font-size: var(--fs-caption); line-height: var(--lh-caption); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; color: var(--text-3); }
.section-head a, .section-head .link { font-size: var(--fs-secondary); }
.section-foot { color: var(--text-3); font-size: var(--fs-caption); line-height: var(--lh-caption); margin: var(--s-2) var(--s-1) 0; }

/* Gruppe: ruhige Flaeche mit Zeilen (statt vieler Karten) */
.group { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); box-shadow: var(--shadow-1); overflow: hidden; }
.group + .group { margin-top: var(--s-3); }
.group.pad { padding: var(--s-4); }
.group.pad-lg { padding: var(--s-5); }
@media (min-width: 1024px) { .group.pad-lg { padding: var(--s-6); } }

/* Zeilen */
.rows { list-style: none; margin: 0; padding: 0; }
.rows > li { margin: 0; }
.row-item { position: relative; display: flex; align-items: center; gap: var(--s-3); min-height: 56px; padding: var(--s-3) var(--s-4); color: var(--text); text-decoration: none; }
.rows > li + li > .row-item, .rows > li + li > form > .row-item, .row-item + .row-item { border-top: 1px solid var(--border); }
a.row-item:hover, button.row-item:hover { background: var(--surface-2); text-decoration: none; }
a.row-item:active, button.row-item:active { background: var(--surface-2); }
button.row-item { width: 100%; border: 0; background: none; font: inherit; text-align: left; cursor: pointer; }
.row-main { flex: 1; min-width: 0; }
.row-title { font-weight: 600; line-height: 1.35; overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
.row-sub { color: var(--text-2); font-size: var(--fs-secondary); line-height: var(--lh-secondary); margin-top: 2px; overflow-wrap: anywhere; }
.row-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-1) var(--s-2); margin-top: var(--s-2); }
.row-meta .row-note { margin-top: 0; }
.row-note { font-size: var(--fs-secondary); line-height: var(--lh-secondary); margin-top: var(--s-1); color: var(--text-2); }
.row-note.warn { color: var(--warning); } .row-note.bad { color: var(--danger); } .row-note.ok { color: var(--success); }
.row-end { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: var(--s-1); text-align: right; }
.row-chevron { flex: none; color: var(--text-3); }
.row-value { color: var(--text-2); font-size: var(--fs-secondary); text-align: right; }
.row-item.compact { min-height: 48px; padding-top: var(--s-2); padding-bottom: var(--s-2); }

/* Key/Value */
.kv { display: grid; grid-template-columns: 1fr; gap: 0; margin: 0; }
.kv > div { display: grid; grid-template-columns: 1fr; gap: 2px; padding: var(--s-3) var(--s-4); }
.kv > div + div { border-top: 1px solid var(--border); }
.kv dt { color: var(--text-3); font-size: var(--fs-secondary); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
@media (min-width: 640px) { .kv > div { grid-template-columns: 200px 1fr; gap: var(--s-4); } }

/* 5 ─ KOMPONENTEN -------------------------------------------------------------------------- */
/* Buttons: primary · secondary · ghost · danger; Groessen: default (44) · sm (36) · lg (50) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2); min-height: var(--tap); padding: 0 var(--s-4);
  border-radius: var(--r-sm); border: 1px solid var(--border-strong); background: var(--surface); color: var(--text);
  font: 600 var(--fs-body)/1.2 var(--font); cursor: pointer; text-decoration: none; white-space: nowrap; user-select: none;
  transition: background-color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out), opacity var(--dur-fast); }
.btn:hover { background: var(--surface-2); text-decoration: none; }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
.btn.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--accent); }
.btn.ghost:hover { background: var(--accent-soft); }
.btn.danger { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 45%, var(--border)); }
.btn.danger:hover { background: var(--danger-soft); }
.btn.danger.solid { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn.sm { min-height: 36px; padding: 0 var(--s-3); font-size: var(--fs-secondary); }
.btn.lg { min-height: 50px; padding: 0 var(--s-5); font-size: 1.0625rem; }
.btn.block { display: flex; width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none; }
.btn .spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@media (pointer: coarse) { .btn.sm { min-height: 40px; } }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center; }
.btn-row form { display: contents; }
.btn-stack { display: flex; flex-direction: column; gap: var(--s-2); }
.btn-stack form { display: contents; }
form.inline { display: inline; }

/* Sticky Action Area: mobil unten (ueber der Tab-Bar), Desktop am Seitenende */
.actionbar { position: fixed; left: 0; right: 0; bottom: calc(var(--tabbar-h) + var(--safe-bottom)); z-index: var(--z-sticky);
  padding: var(--s-3) calc(var(--s-4) + var(--safe-right)) var(--s-3) calc(var(--s-4) + var(--safe-left));
  background: color-mix(in srgb, var(--bg) 90%, transparent); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-top: 1px solid var(--border); }
.actionbar-inner { max-width: var(--content-w); margin: 0 auto; display: flex; gap: var(--s-2); align-items: center; }
.actionbar-inner > * { flex: 1; }
.actionbar-inner > .btn-secondary-slot { flex: none; }
.actionbar .hint { flex: 1 1 100%; color: var(--text-2); font-size: var(--fs-caption); text-align: center; }
.actionbar form { display: flex; flex: 1; }
.actionbar form .btn { flex: 1; }
.bare .actionbar { bottom: 0; padding-bottom: calc(var(--s-3) + var(--safe-bottom)); }
@media (min-width: 1024px) {
  .actionbar { position: static; padding: 0; margin-top: var(--s-6); background: none; border: 0; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .actionbar-inner { justify-content: flex-start; max-width: none; }
  .actionbar-inner > * { flex: none; }
  .actionbar form { flex: none; }
  .actionbar form .btn { flex: none; }
  .actionbar .hint { flex: none; text-align: left; }
}

/* Formulare */
.field { margin-bottom: var(--s-5); }
.field:last-child { margin-bottom: 0; }
label, .label { display: block; font-size: var(--fs-secondary); font-weight: 600; color: var(--text); margin-bottom: 6px; }
.help { color: var(--text-3); font-size: var(--fs-caption); line-height: 1.35; margin-top: 6px; }
.field-error { color: var(--danger); font-size: var(--fs-secondary); margin-top: 6px; }
input[type=text], input[type=email], input[type=url], input[type=password], input[type=number], input[type=month], input[type=search], input[type=tel], input[type=date], select, textarea {
  display: block; width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid var(--border-strong); border-radius: var(--r-sm);
  background: var(--surface); color: var(--text); font: var(--fs-body)/1.4 var(--font); /* 16px: verhindert iOS-Zoom */
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out); -webkit-appearance: none; appearance: none; }
select { background-image: linear-gradient(45deg, transparent 50%, var(--text-3) 50%), linear-gradient(135deg, var(--text-3) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--danger); }
textarea { min-height: 120px; resize: vertical; }
textarea.tall { min-height: 360px; }
input[type=file] { display: block; width: 100%; min-height: 56px; padding: var(--s-3); border: 1px dashed var(--border-strong); border-radius: var(--r-sm); background: var(--surface-2); color: var(--text-2); font: inherit; font-size: var(--fs-secondary); }
input[type=file]::file-selector-button { min-height: 36px; margin-right: var(--s-3); padding: 0 var(--s-3); border: 1px solid var(--border-strong); border-radius: var(--r-sm); background: var(--surface); color: var(--text); font: 600 var(--fs-secondary) var(--font); cursor: pointer; }
.check { display: flex; gap: var(--s-3); align-items: flex-start; min-height: var(--tap); padding: 10px 0; font-weight: 500; font-size: var(--fs-body); cursor: pointer; margin: 0; }
.check input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--accent); }
.check .check-text { flex: 1; min-width: 0; }
.check .check-sub { display: block; color: var(--text-2); font-size: var(--fs-secondary); font-weight: 400; }
.form-grid { display: grid; grid-template-columns: 1fr; gap: 0 var(--s-4); }
@media (min-width: 720px) { .form-grid.two { grid-template-columns: 1fr 1fr; } .form-grid.two .wide { grid-column: 1 / -1; } }
fieldset { border: 0; padding: 0; margin: 0 0 var(--s-5); min-width: 0; }
legend { font-weight: 600; padding: 0; margin-bottom: var(--s-2); }
.search-field { position: relative; }
.search-field .icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-3); pointer-events: none; }
.search-field input { padding-left: 40px; }

/* Status-Pill (ruhig, mit Punkt; Bedeutung immer auch als Text) */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; border-radius: 6px; font-size: var(--fs-caption); line-height: 18px; font-weight: 600;
  background: var(--surface-2); color: var(--text-2); white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .85; }
.pill.plain::before { display: none; }
.pill.ok, .pill.s-APPROVED, .pill.s-OFFER { background: var(--success-soft); color: var(--success); }
.pill.warn, .pill.s-READY_FOR_REVIEW, .pill.s-DRAFT_CREATED { background: var(--warning-soft); color: var(--warning); }
.pill.bad, .pill.s-REJECTED { background: var(--danger-soft); color: var(--danger); }
.pill.info, .pill.s-SENT, .pill.s-RESPONSE_RECEIVED, .pill.s-INTERVIEW { background: var(--accent-soft); color: var(--accent); }
.pill.s-DISCOVERED, .pill.s-ANALYZED, .pill.s-WITHDRAWN { background: var(--surface-2); color: var(--text-2); }

/* Zahl/Match */
.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
.match { font-variant-numeric: tabular-nums; font-weight: 650; }
.match.high { color: var(--success); } .match.mid { color: var(--warning); } .match.low { color: var(--danger); } .match.na { color: var(--text-3); font-weight: 500; }
.match-sub { color: var(--text-3); font-size: var(--fs-caption); }

/* Match-Zusammenfassung */
.verdict { padding: var(--s-5); }
.verdict-title { font-family: var(--font-display); font-size: 1.25rem; line-height: 1.6rem; font-weight: 650; letter-spacing: -.01em; }
.verdict-title .dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: var(--s-2); vertical-align: 2px; background: var(--text-3); }
.verdict-title .dot.high { background: var(--success); } .verdict-title .dot.mid { background: var(--warning); } .verdict-title .dot.low { background: var(--danger); }
.scores { display: flex; gap: var(--s-6); margin: var(--s-4) 0 var(--s-3); }
.score { display: flex; flex-direction: column; }
.score .v { font-family: var(--font-display); font-size: 1.75rem; line-height: 2rem; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.score .k { color: var(--text-3); font-size: var(--fs-caption); margin-top: 2px; }
.verdict-facts { margin: var(--s-3) 0 0; padding: 0; list-style: none; }
.verdict-facts li { display: flex; gap: var(--s-2); align-items: flex-start; font-size: var(--fs-secondary); line-height: var(--lh-secondary); color: var(--text-2); margin-top: var(--s-2); }
.verdict-facts .icon { width: 16px; height: 16px; margin-top: 2px; }
.verdict-facts .ok { color: var(--success); } .verdict-facts .warn { color: var(--warning); } .verdict-facts .bad { color: var(--danger); }

/* Fortschritts-Meter (schmal, nur wo ein Anteil echte Information ist) */
.meter { height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.meter > span { display: block; height: 100%; border-radius: inherit; background: var(--text-3); }
.meter.high > span { background: var(--success); } .meter.mid > span { background: var(--warning); } .meter.low > span { background: var(--danger); }
.metric { display: grid; grid-template-columns: 1fr auto; gap: 6px var(--s-3); align-items: baseline; padding: var(--s-3) var(--s-4); }
.metric + .metric { border-top: 1px solid var(--border); }
.metric .meter { grid-column: 1 / -1; }
.metric .detail { grid-column: 1 / -1; color: var(--text-3); font-size: var(--fs-caption); }

/* Stepper (Bewerbungs-Workflow) */
.stepper { display: flex; list-style: none; margin: 0 0 var(--s-6); padding: 0; gap: var(--s-1); counter-reset: step; }
.stepper li { flex: 1; margin: 0; display: flex; flex-direction: column; gap: 6px; font-size: var(--fs-caption); color: var(--text-3); font-weight: 500; min-width: 0; }
.stepper li::before { content: ""; height: 4px; border-radius: 2px; background: var(--border); transition: background-color var(--dur) var(--ease-out); }
.stepper li.done::before { background: var(--accent); opacity: .45; }
.stepper li.current::before { background: var(--accent); }
.stepper li.current { color: var(--text); font-weight: 600; }
.stepper li.done { color: var(--text-2); }
.stepper .n { font-variant-numeric: tabular-nums; }
.stepper .t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Inline-Banner (persistente Hinweise; kritische Fehler nie nur als Toast) */
.banner { display: flex; gap: var(--s-3); align-items: flex-start; padding: var(--s-3) var(--s-4); border-radius: var(--r-md); margin-bottom: var(--s-4);
  background: var(--surface-2); color: var(--text); font-size: var(--fs-secondary); line-height: var(--lh-secondary); }
.banner .icon { width: 18px; height: 18px; margin-top: 1px; }
.banner > div { flex: 1; min-width: 0; }
.banner strong { display: block; font-size: var(--fs-body); line-height: 1.4; margin-bottom: 2px; }
.banner .btn-row { margin-top: var(--s-3); }
.banner.ok { background: var(--success-soft); } .banner.ok .icon { color: var(--success); }
.banner.warn { background: var(--warning-soft); } .banner.warn .icon { color: var(--warning); }
.banner.bad { background: var(--danger-soft); } .banner.bad .icon { color: var(--danger); }
.banner.info { background: var(--accent-soft); } .banner.info .icon { color: var(--accent); }

/* Disclosure (progressive Offenlegung) */
details.disclosure { border-top: 1px solid var(--border); }
.group > details.disclosure:first-child { border-top: 0; }
details.disclosure > summary { list-style: none; display: flex; align-items: center; gap: var(--s-3); min-height: 56px; padding: var(--s-3) var(--s-4); cursor: pointer; font-weight: 600; }
details.disclosure > summary::-webkit-details-marker { display: none; }
details.disclosure > summary .sum-main { flex: 1; min-width: 0; }
details.disclosure > summary .sum-sub { display: block; font-weight: 400; color: var(--text-2); font-size: var(--fs-secondary); }
details.disclosure > summary::after { content: ""; flex: none; width: 8px; height: 8px; border-right: 2px solid var(--text-3); border-bottom: 2px solid var(--text-3); transform: rotate(45deg) translate(-2px, -2px); transition: transform var(--dur) var(--ease-out); }
details.disclosure[open] > summary::after { transform: rotate(225deg) translate(-2px, -2px); }
details.disclosure > summary:hover { background: var(--surface-2); }
.disclosure-body { padding: 0 var(--s-4) var(--s-4); }
.disclosure-body.flush { padding: 0; border-top: 1px solid var(--border); }
details.inline-more > summary { cursor: pointer; color: var(--accent); font-size: var(--fs-secondary); font-weight: 600; min-height: var(--tap); display: inline-flex; align-items: center; list-style: none; }
details.inline-more > summary::-webkit-details-marker { display: none; }

/* Segmentierte Steuerung / Filter-Chips */
.chipbar { display: flex; gap: var(--s-2); overflow-x: auto; scrollbar-width: none; padding: 2px var(--s-4); margin: 0 calc(-1 * var(--s-4)) var(--s-4); scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.chipbar::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 var(--s-3); border-radius: 18px; border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--text-2); font-size: var(--fs-secondary); font-weight: 500; text-decoration: none; scroll-snap-align: start; white-space: nowrap; }
.chip:hover { text-decoration: none; background: var(--surface-2); color: var(--text); }
.chip[aria-current="true"], .chip.active { background: var(--text); color: var(--bg); border-color: var(--text); }
.chip .count { font-variant-numeric: tabular-nums; opacity: .7; }
@media (pointer: coarse) { .chip { min-height: 40px; } }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px; border-radius: 6px; background: var(--surface-2); color: var(--text-2); font-size: var(--fs-secondary); }
.tag.ok { background: var(--success-soft); color: var(--success); } .tag.warn { background: var(--warning-soft); color: var(--warning); } .tag.bad { background: var(--danger-soft); color: var(--danger); }
.seg { display: flex; padding: 3px; gap: 2px; border-radius: 10px; background: var(--surface-2); margin-bottom: var(--s-5); overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg a { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 36px; padding: 0 var(--s-3); border-radius: 8px; color: var(--text-2); font-size: var(--fs-secondary); font-weight: 600; white-space: nowrap; text-decoration: none; }
.seg a[aria-current="page"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-1), 0 0 0 1px var(--border); }

/* Sheets & Dialoge (<dialog>): mobil Bottom-Sheet, Desktop zentrierter Dialog */
dialog { color: var(--text); }
dialog.sheet { position: fixed; inset: auto 0 0 0; margin: 0; width: 100%; max-width: 100%; max-height: min(88vh, 88dvh); border: 0; padding: 0;
  border-radius: var(--r-lg) var(--r-lg) 0 0; background: var(--elevated); box-shadow: var(--shadow-3); overflow: auto; overscroll-behavior: contain; z-index: var(--z-sheet); }
dialog.sheet::backdrop { background: var(--scrim); }
.sheet-handle { width: 36px; height: 5px; border-radius: 3px; background: var(--border-strong); margin: 8px auto 0; }
.sheet-head { display: flex; align-items: center; gap: var(--s-2); padding: var(--s-3) var(--s-4) var(--s-2); }
.sheet-head h2 { flex: 1; }
.sheet-body { padding: var(--s-2) var(--s-4) calc(var(--s-6) + var(--safe-bottom)); }
.sheet-body .rows .row-item { padding-left: 0; padding-right: 0; }
.sheet-actions { display: flex; flex-direction: column; gap: var(--s-2); margin-top: var(--s-5); }
@media (min-width: 720px) {
  dialog.sheet { inset: 0; margin: auto; width: min(480px, calc(100% - 48px)); max-height: 80vh; border-radius: var(--r-lg); }
  .sheet-handle { display: none; }
  .sheet-body { padding-bottom: var(--s-6); }
  .sheet-actions { flex-direction: row-reverse; justify-content: flex-start; }
}
.menu-list { list-style: none; margin: 0; padding: 0; }
.menu-list .row-item { min-height: 52px; }
.menu-list .danger { color: var(--danger); }
.summary-list { list-style: none; padding: 0; margin: var(--s-3) 0 0; }
.summary-list li { display: flex; justify-content: space-between; gap: var(--s-3); padding: var(--s-2) 0; border-top: 1px solid var(--border); font-size: var(--fs-secondary); margin: 0; }
.summary-list li span:first-child { color: var(--text-3); flex: none; }
.summary-list li span:last-child { text-align: right; min-width: 0; overflow-wrap: anywhere; }

/* Toasts */
.toast-region { position: fixed; z-index: var(--z-toast); left: 0; right: 0; bottom: calc(var(--tabbar-h) + var(--safe-bottom) + var(--s-3)); display: flex; flex-direction: column; align-items: center; gap: var(--s-2); padding: 0 var(--s-4); pointer-events: none; }
.has-actionbar-page .toast-region { bottom: calc(var(--tabbar-h) + var(--safe-bottom) + 84px); }
.bare .toast-region { bottom: calc(var(--safe-bottom) + var(--s-4)); }
.toast { pointer-events: auto; display: flex; gap: var(--s-3); align-items: center; max-width: 440px; width: 100%; padding: var(--s-3) var(--s-4); border-radius: var(--r-md);
  background: color-mix(in srgb, var(--text) 92%, transparent); color: var(--bg); box-shadow: var(--shadow-2); font-size: var(--fs-secondary); line-height: var(--lh-secondary); font-weight: 500; }
.toast .icon { width: 18px; height: 18px; }
.toast.success .icon { color: #6ee7a0; } .toast.info .icon { color: #a8bcff; }
@media (prefers-color-scheme: dark) { .toast.success .icon { color: var(--success); } .toast.info .icon { color: #2b55d8; } }
.toast .toast-close { margin: -10px -12px -10px auto; color: inherit; opacity: .7; min-width: var(--tap); min-height: var(--tap); border-radius: var(--r-sm); border: 0; background: none; cursor: pointer; font-size: 18px; line-height: 1; }
@media (min-width: 1024px) { .toast-region, .has-actionbar-page .toast-region { left: auto; right: var(--s-6); bottom: var(--s-6); align-items: flex-end; } }

/* Skeleton / Leerzustand */
.skeleton { position: relative; overflow: hidden; background: var(--surface-2); border-radius: 6px; min-height: 14px; }
.skeleton::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--surface) 60%, transparent), transparent); animation: shimmer 1.2s infinite; }
.empty { text-align: center; padding: var(--s-10) var(--s-6); }
.empty h2 { margin-bottom: var(--s-2); }
.empty p { color: var(--text-2); max-width: 34ch; margin: 0 auto var(--s-5); }

/* Dashboard */
.greeting { margin: var(--s-2) 0 var(--s-6); }
.greeting .display { margin-bottom: var(--s-1); }
.greeting p { color: var(--text-2); font-size: 1.0625rem; }
.week { display: grid; grid-template-columns: repeat(3, 1fr); }
.week > a, .week > div { display: flex; flex-direction: column; gap: 2px; padding: var(--s-4); color: var(--text); text-decoration: none; }
.week > * + * { border-left: 1px solid var(--border); }
.week a:hover { background: var(--surface-2); text-decoration: none; }
.week .v { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.2; }
.week .k { color: var(--text-3); font-size: var(--fs-caption); white-space: nowrap; overflow-wrap: normal; }
@media (min-width: 1024px) {
  .dash { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: var(--s-8); align-items: start; }
}

/* Lebenslauf-Vorschau / Text */
.doc { font-size: .95rem; line-height: 1.55; }
.doc h4 { margin: var(--s-5) 0 var(--s-2); font-size: var(--fs-caption); letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.doc ul { margin: 4px 0 8px 18px; padding: 0; }
.prose { white-space: pre-wrap; overflow-wrap: anywhere; font-size: var(--fs-secondary); line-height: 1.6; color: var(--text-2); }
.scrollbox { max-height: 420px; overflow: auto; padding: var(--s-4); background: var(--surface-2); border-radius: var(--r-sm); }
.mono { font-family: var(--font-mono); font-size: .85em; overflow-wrap: anywhere; }

/* Aenderungen (CV-Diff): mobil gestapelt, Desktop nebeneinander */
.change { padding: var(--s-4); }
.change + .change { border-top: 1px solid var(--border); }
.change-head { display: flex; justify-content: space-between; gap: var(--s-3); align-items: baseline; margin-bottom: var(--s-3); }
.change-n { color: var(--text-3); font-size: var(--fs-caption); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.change-cols { display: grid; grid-template-columns: 1fr; gap: var(--s-2); }
.change-cell { padding: var(--s-3); border-radius: var(--r-sm); background: var(--surface-2); font-size: var(--fs-secondary); line-height: var(--lh-secondary); overflow-wrap: anywhere; }
.change-cell .lbl { display: block; color: var(--text-3); font-size: var(--fs-caption); font-weight: 600; margin-bottom: 2px; }
.change-cell.after { background: var(--success-soft); }
.change-why { margin-top: var(--s-3); color: var(--text-2); font-size: var(--fs-secondary); }
.change-move { display: flex; justify-content: space-between; gap: var(--s-3); font-size: var(--fs-secondary); padding: 6px 0; }
.change-move .num { color: var(--text-2); white-space: nowrap; }
@media (min-width: 720px) { .change-cols.two { grid-template-columns: 1fr 1fr; } }
.diff-line { display: grid; grid-template-columns: 1.5rem 1fr; gap: 6px; padding: 6px var(--s-3); font-size: var(--fs-secondary); line-height: var(--lh-secondary); border-left: 3px solid transparent; overflow-wrap: anywhere; }
.diff-line.add { background: var(--success-soft); border-left-color: var(--success); }
.diff-line.del { background: var(--danger-soft); border-left-color: var(--danger); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--danger) 55%, transparent); }
.diff-line.mov { background: var(--accent-soft); border-left-color: var(--accent); }
.diff-line.eq { color: var(--text-3); }
.diff-mark { font-weight: 700; text-align: center; }

/* Pruefliste (Preflight) */
.check-row { display: flex; gap: var(--s-3); align-items: flex-start; padding: var(--s-3) var(--s-4); }
.check-row + .check-row { border-top: 1px solid var(--border); }
.check-row .mark { flex: none; width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; margin-top: 1px; }
.check-row .mark .icon { width: 14px; height: 14px; stroke-width: 2.6; }
.check-row .mark.ok { background: var(--success-soft); color: var(--success); }
.check-row .mark.warn { background: var(--warning-soft); color: var(--warning); }
.check-row .mark.block { background: var(--danger-soft); color: var(--danger); }
.check-row .body { flex: 1; min-width: 0; }
.check-row .t { font-weight: 600; }
.check-row .d { color: var(--text-2); font-size: var(--fs-secondary); line-height: var(--lh-secondary); margin-top: 2px; }
.check-row .ack { margin-top: var(--s-2); padding: 6px 0; min-height: 40px; font-size: var(--fs-secondary); }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: var(--s-2) var(--s-4) var(--s-4); }
.timeline li { position: relative; padding: var(--s-2) 0 var(--s-2) var(--s-6); margin: 0; font-size: var(--fs-secondary); line-height: var(--lh-secondary); }
.timeline li::before { content: ""; position: absolute; left: 5px; top: 14px; width: 7px; height: 7px; border-radius: 50%; background: var(--border-strong); }
.timeline li::after { content: ""; position: absolute; left: 8px; top: 24px; bottom: -8px; width: 1px; background: var(--border); }
.timeline li:last-child::after { display: none; }
.timeline .when { display: block; color: var(--text-3); font-size: var(--fs-caption); }

/* Code-Liste (Recovery) */
ol.codes { list-style: none; counter-reset: c; display: grid; grid-template-columns: 1fr; gap: var(--s-2); padding: 0; margin: 0; }
@media (min-width: 560px) { ol.codes { grid-template-columns: 1fr 1fr; } }
ol.codes li { counter-increment: c; display: flex; gap: var(--s-3); align-items: center; padding: var(--s-3); border-radius: var(--r-sm); background: var(--surface-2); margin: 0; }
ol.codes li::before { content: counter(c); color: var(--text-3); font-size: var(--fs-caption); min-width: 1.4em; font-variant-numeric: tabular-nums; }
ol.codes code { background: none; padding: 0; font-size: 1.05rem; letter-spacing: .05em; }

/* Tabellen (nur fuer echte Tabellendaten; mobil werden sie zu Zeilen) */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: var(--fs-secondary); }
th, td { text-align: left; padding: 10px var(--s-4); border-bottom: 1px solid var(--border); vertical-align: top; overflow-wrap: anywhere; }
th { color: var(--text-3); font-weight: 600; font-size: var(--fs-caption); }
tr:last-child td { border-bottom: 0; }
@media (max-width: 639px) {
  table.stack, table.stack tbody, table.stack tr, table.stack td { display: block; width: 100%; }
  table.stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.stack tr { padding: var(--s-2) var(--s-4); border-bottom: 1px solid var(--border); }
  table.stack tr:last-child { border-bottom: 0; }
  table.stack td { border: 0; padding: 3px 0; display: grid; grid-template-columns: 7.5rem 1fr; gap: var(--s-2); }
  table.stack td::before { content: attr(data-label); color: var(--text-3); font-size: var(--fs-caption); }
  table.stack td:not([data-label])::before { content: none; }
}

/* 6 ─ MOTION ------------------------------------------------------------------------------- */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { to { transform: translateX(100%); } }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes sheet-in { from { transform: translateY(100%); } to { transform: none; } }
@keyframes dialog-in { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
.enter { animation: rise var(--dur-slow) var(--ease-out) both; }
dialog.sheet[open] { animation: sheet-in var(--dur-slow) var(--ease-sheet); }
dialog.sheet[open]::backdrop { animation: fade-in var(--dur) var(--ease-out); }
dialog.sheet.closing { transform: translateY(100%); transition: transform var(--dur) var(--ease-in-out); }
@media (min-width: 720px) { dialog.sheet[open] { animation: dialog-in var(--dur) var(--ease-out); } dialog.sheet.closing { transform: scale(.97); opacity: 0; transition: transform var(--dur-fast), opacity var(--dur-fast); } }
.toast { animation: toast-in var(--dur) var(--ease-out); }
.toast.leaving { opacity: 0; transform: translateY(6px); transition: opacity var(--dur) var(--ease-in-out), transform var(--dur) var(--ease-in-out); }
.flash-status { animation: fade-in var(--dur-slow) var(--ease-out); }
/* Seitenwechsel: dezente Ueberblendung (View Transitions, wo unterstuetzt) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: fade-out 120ms var(--ease-in-out) both; }
::view-transition-new(root) { animation: fade-in 160ms var(--ease-out) both; }
@keyframes fade-out { to { opacity: 0; } }
.appbar, .tabbar, .sidebar { view-transition-name: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
  @view-transition { navigation: none; }
}

/* 7 ─ UTILITIES ---------------------------------------------------------------------------- */
.muted { color: var(--text-2); }
.faint { color: var(--text-3); }
.small { font-size: var(--fs-secondary); line-height: var(--lh-secondary); }
.caption { font-size: var(--fs-caption); line-height: var(--lh-caption); color: var(--text-3); }
.ok-text { color: var(--success); } .warn-text { color: var(--warning); } .bad-text { color: var(--danger); }
.nowrap { white-space: nowrap; }
.truncate { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; min-height: 0 !important; padding: 0 !important; margin: -1px !important; border: 0 !important; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mt-2 { margin-top: var(--s-2); } .mt-3 { margin-top: var(--s-3); } .mt-4 { margin-top: var(--s-4); } .mt-6 { margin-top: var(--s-6); }
.mb-0 { margin-bottom: 0; } .mb-3 { margin-bottom: var(--s-3); } .mb-4 { margin-bottom: var(--s-4); }
.hide-desktop { } @media (min-width: 1024px) { .hide-desktop { display: none !important; } }
.hide-mobile { display: none !important; } @media (min-width: 1024px) { .hide-mobile { display: revert !important; } }
.split { display: grid; gap: var(--s-6); grid-template-columns: 1fr; }
@media (min-width: 1024px) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

@media print {
  .appbar, .tabbar, .sidebar, .actionbar, .toast-region, .no-print, .banner { display: none !important; }
  body { background: #fff; color: #000; }
  .content { padding: 0; max-width: none; }
  .group { border: 0; box-shadow: none; }
}

.sprite { display: none; }
/* Meter-Breiten (CSP: keine Inline-Styles) */
.meter > span.w0 { width: 0%; } .meter > span.w5 { width: 5%; } .meter > span.w10 { width: 10%; } .meter > span.w15 { width: 15%; } .meter > span.w20 { width: 20%; } .meter > span.w25 { width: 25%; } .meter > span.w30 { width: 30%; } .meter > span.w35 { width: 35%; } .meter > span.w40 { width: 40%; } .meter > span.w45 { width: 45%; } .meter > span.w50 { width: 50%; } .meter > span.w55 { width: 55%; } .meter > span.w60 { width: 60%; } .meter > span.w65 { width: 65%; } .meter > span.w70 { width: 70%; } .meter > span.w75 { width: 75%; } .meter > span.w80 { width: 80%; } .meter > span.w85 { width: 85%; } .meter > span.w90 { width: 90%; } .meter > span.w95 { width: 95%; } .meter > span.w100 { width: 100%; }

/* Ergaenzungen: Zeilen-Inhalte, Desktop-Filter */
.row-main > span { display: block; }
.desk-filter { gap: var(--s-2); align-items: center; margin-bottom: var(--s-4); }
.desk-filter .search-field { flex: 1; }
.desk-filter select { width: auto; min-width: 200px; }
@media (min-width: 1024px) { .desk-filter.hide-mobile { display: flex !important; } }

/* Import-Pruefung */
.cand { padding: var(--s-3) var(--s-4) var(--s-4); border-top: 1px solid var(--border); }
.cand-head { padding-top: 4px; padding-bottom: 0; }
.cand details.inline-more { margin-left: 34px; }
.cand .btn-row { margin-left: 34px; }
.cand input[type=text] { margin-left: 34px; width: calc(100% - 34px); }
.bulkbar { flex-wrap: wrap; background: var(--surface-2); }
.bulkbar .check { padding: 4px 0; min-height: 40px; }
.mark-inline { flex: none; min-width: 74px; justify-content: center; }

/* Einstellungen: Kategorie-Icon */
.settings-icon { flex: none; width: 32px; height: 32px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; background: var(--accent-soft); color: var(--accent); }
.settings-icon .icon { width: 18px; height: 18px; }
