/* Oberfläche des Portals. Farben aus den LichtBlick-Brand-Tokens, Schriften selbst gehostet (vendor/fonts). */

@font-face {
  font-family: "Officina Sans";
  src: url("vendor/fonts/OfficinaSansITCPro-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
/* Inter (SIL OFL 1.1, Lizenz in vendor/fonts/Inter-OFL-LICENSE.txt) */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("vendor/fonts/inter-latin-ext-400-normal.woff2") format("woff2"); 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: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("vendor/fonts/inter-latin-400-normal.woff2") format("woff2"); 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; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("vendor/fonts/inter-latin-ext-500-normal.woff2") format("woff2"); 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: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("vendor/fonts/inter-latin-500-normal.woff2") format("woff2"); 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; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("vendor/fonts/inter-latin-ext-600-normal.woff2") format("woff2"); 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: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("vendor/fonts/inter-latin-600-normal.woff2") format("woff2"); 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; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("vendor/fonts/inter-latin-ext-700-normal.woff2") format("woff2"); 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: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("vendor/fonts/inter-latin-700-normal.woff2") format("woff2"); 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 {
  --bg: hsl(212 27% 95%);
  --surface: hsl(0 0% 100%);
  --ink: hsl(208 25% 23.5%);          /* smoke.dark */
  --ink-muted: hsl(208 16% 42%);
  --near-black: hsl(208 30% 10%);
  --line: hsl(212 27% 87%);
  --line-strong: hsl(212 27% 78%);

  --orange: hsl(28.2 73.1% 49.6%);    /* orange.dark, Hauptaktion */
  --orange-hover: hsl(28.2 73.1% 44%);
  --orange-light: hsl(30.4 100% 86.5%);
  --orange-tint: hsl(30.4 100% 95%);
  --aqua: hsl(201.3 85.3% 21.4%);
  --aqua-mid: hsl(193 56.7% 60.2%);
  --aqua-light: hsl(191.4 75% 89%);
  --green: hsl(157.8 46.9% 24%);
  --green-mid: hsl(149.7 43.3% 57.8%);
  --green-light: hsl(148.5 52.6% 85.1%);
  --berry: hsl(342.7 55.2% 39.4%);
  --berry-light: hsl(340.9 64.7% 93.3%);
  --smoke-light: hsl(212 27.3% 89.2%);

  --font-head: "Officina Sans", "Trebuchet MS", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-lg: 18px;   /* Vorgangskarten */
  --r-md: 12px;   /* Eingabefelder, Paketzeilen */
  --r-sm: 8px;    /* Chips */
  --tabbar-h: 68px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  font-feature-settings: "zero" 1;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 500;
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.005em;
}
h1 { font-size: 1.875rem; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.0625rem; }
p { margin: 0; }
a { color: var(--aqua); }

:focus-visible {
  outline: 3px solid var(--aqua);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ---------- Grundgerüst ---------- */
.shell {
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr;
  grid-template-columns: minmax(0, 1fr);
}
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  padding: 12px 20px;
  padding-top: max(12px, env(safe-area-inset-top));
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--ink); text-decoration: none;
}
.brand-name { font-family: var(--font-head); font-size: 1.125rem; }
.role-pill {
  font-size: .8125rem; color: var(--ink-muted);
  background: var(--bg); border: 1px solid var(--line);
  padding: 3px 10px; border-radius: 999px;
}

.view {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 20px 20px calc(var(--tabbar-h) + 40px);
  outline: none;
}
.view.enter { animation: viewIn 220ms var(--ease); }
@keyframes viewIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--surface);
  border-top: 1px solid var(--line);
}
.tab {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px;
  color: var(--ink-muted); text-decoration: none;
  font-size: .75rem; font-weight: 500;
  position: relative;
}
.tab svg { width: 24px; height: 24px; }
.tab.is-active { color: var(--ink); }
.tab.is-active::before {
  content: ""; position: absolute; top: 0; left: 30%; right: 30%;
  height: 3px; border-radius: 0 0 3px 3px; background: var(--orange);
}
.tab .badge {
  position: absolute; top: 8px; left: calc(50% + 6px);
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px; background: var(--berry); color: #fff;
  font-size: .6875rem; line-height: 18px; text-align: center;
}

/* Desktop (Hauptziel): Navigation als linke Leiste, Inhalt nutzt die Breite */
.desk-only { display: none !important; }
@media (min-width: 960px) {
  .desk-only { display: flex !important; }
  .mobile-only { display: none !important; }
  .shell { grid-template-columns: 256px minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .topbar { grid-column: 1 / -1; padding: 14px 32px; }
  .tabbar {
    position: sticky; top: 57px; align-self: start;
    grid-column: 1; grid-row: 2;
    height: calc(100dvh - 57px); display: flex; flex-direction: column; gap: 2px;
    padding: 24px 16px; background: var(--surface); border: 0; border-right: 1px solid var(--line);
  }
  .tab {
    flex-direction: row; justify-content: flex-start; gap: 12px;
    padding: 11px 14px; border-radius: var(--r-md); font-size: .9375rem; color: var(--ink);
  }
  .tab:hover { background: var(--bg); }
  .tab.is-active::before { display: none; }
  .tab.is-active-desk { background: var(--orange-tint); color: var(--near-black); font-weight: 600; }
  .tab.is-active-desk::before { display: block; top: 10px; bottom: 10px; left: 0; right: auto; width: 3px; height: auto; border-radius: 0 3px 3px 0; }
  .tab .badge { position: static; margin-left: auto; }
  .nav-role { margin-top: auto; flex-direction: column; gap: 8px; padding: 16px 4px 0; border-top: 1px solid var(--line); }
  .nav-role .segmented button { font-size: .8125rem; padding: 8px 4px; }
  .view { grid-column: 2; max-width: 1320px; padding: 36px 48px 72px; margin: 0; }
  h1 { font-size: 2.25rem; }
  .role-pill { display: none; }
}

/* ---------- Bausteine ---------- */
.stack > * + * { margin-top: 12px; }
.section { margin-top: 32px; }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  margin-bottom: 12px;
}
.section-head a { font-size: .875rem; }
.lead { color: var(--ink-muted); margin-top: 6px; }
.muted { color: var(--ink-muted); }
.small { font-size: .875rem; }

.back {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--ink-muted); text-decoration: none; font-size: .9375rem;
  margin: -4px 0 16px; padding: 4px 0;
}
.back svg { width: 18px; height: 18px; }

/* Suche */
.search {
  position: relative; margin-top: 20px;
}
.search input {
  width: 100%;
  font: inherit; font-size: 1.0625rem;
  padding: 16px 16px 16px 50px;
  border-radius: var(--r-md);
  border: 1.5px solid var(--line-strong);
  background: var(--surface); color: var(--ink);
  -webkit-appearance: none; appearance: none;
}
.search input::placeholder { color: var(--ink-muted); }
.search input:focus { outline: none; border-color: var(--aqua); box-shadow: 0 0 0 3px var(--aqua-light); }
.search svg {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  width: 22px; height: 22px; color: var(--ink-muted); pointer-events: none;
}

/* Vorgangskarte mit Fortschritt */
.case-card {
  display: block;
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: 18px 18px 16px;
  color: inherit; text-decoration: none;
  border: 1px solid var(--line);
}
.case-card:hover { border-color: var(--line-strong); }
.case-top { display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.case-id { font-size: .8125rem; color: var(--ink-muted); white-space: nowrap; }
.case-status { margin-top: 4px; font-size: .9375rem; }

.track {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin-top: 16px; position: relative;
  list-style: none; padding: 0;
}
.track li {
  position: relative; padding: 20px 4px 0 0;
  font-size: .6875rem; color: var(--ink-muted); line-height: 1.25;
  overflow-wrap: anywhere;
}
@media (min-width: 420px) { .track li { font-size: .75rem; } }
.track li::before {   /* Linie */
  content: ""; position: absolute; top: 6px; left: 0; right: 0; height: 3px;
  background: var(--smoke-light);
}
.track li:first-child::before { left: 6px; }
.track li:last-child::before { right: auto; width: 6px; }
.track li::after {    /* Station */
  content: ""; position: absolute; top: 1px; left: 0;
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--surface); border: 3px solid var(--smoke-light);
}
.track li.done::before { background: var(--green-mid); }
.track li.done::after { background: var(--green); border-color: var(--green); }
.track li.now::before { background: linear-gradient(90deg, var(--orange) 0 6px, var(--smoke-light) 6px); }
.track li.now::after { border-color: var(--orange); background: var(--orange-light); }
.track li.now { color: var(--near-black); font-weight: 600; letter-spacing: -0.01em; }
.track li.stop::after { border-color: var(--berry); background: var(--berry-light); }
.track li.stop { color: var(--berry); font-weight: 600; }

/* Vorschläge als ruhige Listenzeilen */
.pkg-list {
  background: var(--surface); border-radius: var(--r-md);
  border: 1px solid var(--line); overflow: hidden;
  list-style: none; margin: 0; padding: 0;
}
.pkg-list li + li { border-top: 1px solid var(--line); }
.pkg-row {
  display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center;
  padding: 12px 14px; color: inherit; text-decoration: none;
}
.pkg-row:hover { background: hsl(212 27% 98%); }
.pkg-row .meta { font-size: .8125rem; color: var(--ink-muted); }
.pkg-row .chev { color: var(--line-strong); width: 18px; height: 18px; }
.pkg-icon {
  width: 40px; height: 40px; border-radius: 10px;
  display: grid; place-items: center;
  font-family: var(--font-head); font-size: 1rem; color: var(--aqua);
  background: var(--aqua-light);
}
.pkg-icon.c-dev { background: var(--green-light); color: var(--green); }
.pkg-icon.c-it { background: var(--orange-light); color: hsl(28 70% 28%); }
.pkg-icon.c-design { background: var(--berry-light); color: var(--berry); }

.share {
  white-space: nowrap; flex: none;
  display: inline-flex; align-items: center; gap: 6px; font-size: .8125rem; color: var(--ink-muted);
}
.share-bar { width: 44px; height: 5px; border-radius: 3px; background: var(--smoke-light); overflow: hidden; }
.share-bar span { display: block; height: 100%; background: var(--aqua-mid); }

.chips {
  display: flex; gap: 8px; margin: 12px -20px 0; padding: 0 20px 4px;
  overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; }
@media (min-width: 900px) { .chips { flex-wrap: wrap; margin: 12px 0 0; padding: 0; } }
.chip {
  font: inherit; font-size: .875rem;
  padding: 6px 12px; border-radius: var(--r-sm);
  background: var(--surface); border: 1px solid var(--line-strong); color: var(--ink);
  cursor: pointer; text-decoration: none;
}
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Paketansicht */
.pkg-hero { display: flex; gap: 16px; align-items: center; }
.pkg-icon.lg { width: 64px; height: 64px; border-radius: 16px; font-size: 1.5rem; }
.facts {
  margin: 20px 0 0; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden;
}
.facts div { background: var(--surface); padding: 12px 14px; }
.facts dt { font-size: .8125rem; color: var(--ink-muted); }
.facts dd { margin: 2px 0 0; font-weight: 600; }
@media (min-width: 640px) { .facts { grid-template-columns: repeat(3, 1fr); } }
.facts.facts-stack { grid-template-columns: 1fr 1fr; }

.field { margin-top: 20px; }
.field label, .field .label { display: block; font-weight: 600; margin-bottom: 6px; }
.field .hint { font-size: .8125rem; color: var(--ink-muted); margin-top: 6px; }
.input, textarea.input, select.input {
  width: 100%; font: inherit; color: var(--ink);
  padding: 12px 14px; border-radius: var(--r-md);
  border: 1.5px solid var(--line-strong); background: var(--surface);
}
textarea.input { min-height: 110px; resize: vertical; }
.input:focus { outline: none; border-color: var(--aqua); box-shadow: 0 0 0 3px var(--aqua-light); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 600; font-size: 1rem;
  min-height: 52px; padding: 0 20px;
  border-radius: var(--r-md); border: 0; cursor: pointer;
  text-decoration: none;
  transition: background-color 120ms, transform 80ms;
}
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--orange); color: var(--near-black); }
.btn-primary:hover:not([disabled]) { background: var(--orange-hover); }
.btn-approve { background: var(--green); color: #fff; }
.btn-reject { background: var(--surface); color: var(--berry); box-shadow: inset 0 0 0 1.5px var(--berry); }
.btn-danger { background: var(--berry); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.btn-text { background: none; border: 0; color: var(--aqua); font: inherit; font-weight: 600; cursor: pointer; padding: 8px 0; }
.btn-block { width: 100%; }

/* Hauptaktion: am Desktop im Panel, auf dem Handy klebt sie über der Tab-Leiste */
.action-bar { margin-top: 24px; }
@media (max-width: 959px) {
  .action-bar { position: sticky; bottom: calc(var(--tabbar-h) + 12px); z-index: 5; }
  .action-bar::before {
    content: ""; position: absolute; inset: -24px -20px -12px;
    background: linear-gradient(to bottom, transparent, var(--bg) 40%);
    z-index: -1; pointer-events: none;
  }
  .form-panel .action-bar::before, .case-header .action-bar::before { background: linear-gradient(to bottom, transparent, var(--surface) 40%); }
}

/* Vorgang: Zeitleiste */
.timeline { list-style: none; margin: 24px 0 0; padding: 0; }
.timeline li {
  position: relative; padding: 0 0 22px 40px;
}
.timeline li::before {   /* Verbindungslinie */
  content: ""; position: absolute; left: 11px; top: 26px; bottom: 2px; width: 2px;
  background: var(--line);
}
.timeline li:last-child::before { display: none; }
.timeline .dot {
  position: absolute; left: 0; top: 1px;
  width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface); border: 2px solid var(--line-strong);
}
.timeline .dot svg { width: 14px; height: 14px; }
.timeline li.done .dot { background: var(--green); border-color: var(--green); color: #fff; }
.timeline li.done::before { background: var(--green-mid); }
.timeline li.now .dot { border-color: var(--orange); background: var(--orange-light); }
.timeline li.now .dot::after {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--orange);
}
.timeline li.next { color: var(--ink-muted); }
.timeline li.stop .dot { background: var(--berry); border-color: var(--berry); color: #fff; }
.timeline .t-title { font-weight: 600; }
.timeline li.now .t-title { color: var(--near-black); }
.timeline .t-when { font-size: .875rem; color: var(--ink-muted); }
.timeline .t-why {
  margin-top: 8px; font-size: .9375rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 10px 12px;
}
.timeline li.now .t-why { border-color: var(--orange-light); background: var(--orange-tint); }

.case-header {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 18px;
}
.status-big { font-family: var(--font-head); font-size: 1.5rem; margin-top: 8px; }

/* Eingang */
.decide-card {
  background: var(--surface); border-radius: var(--r-lg);
  border: 1px solid var(--line); padding: 18px;
}
.decide-card + .decide-card { margin-top: 16px; }
.person { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 40px; height: 40px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: var(--smoke-light); color: var(--ink); font-weight: 600; font-size: .875rem;
}
.quote {
  margin: 14px 0 0; padding: 12px 14px;
  background: var(--bg); border-radius: var(--r-md);
  font-size: .9375rem;
}
.decide-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.decide-more { margin-top: 6px; text-align: center; }
.note {
  display: flex; gap: 10px; align-items: start;
  margin-top: 12px; font-size: .875rem;
  padding: 10px 12px; border-radius: var(--r-md);
  background: var(--aqua-light); color: var(--aqua);
}
.note svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.note.warn { background: var(--orange-tint); color: hsl(28 70% 26%); border: 1px solid var(--orange-light); }
.note.danger { background: var(--berry-light); color: var(--berry); }

.done-card {
  text-align: center; padding: 36px 20px; background: var(--surface);
  border-radius: var(--r-lg); border: 1px dashed var(--line-strong);
}
.done-card h2 { margin-bottom: 6px; }

/* Mehr */
.menu {
  list-style: none; margin: 0; padding: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden;
}
.menu li + li { border-top: 1px solid var(--line); }
.menu a {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 14px 16px; color: inherit; text-decoration: none;
}
.menu a:hover { background: hsl(212 27% 98%); }
.menu .chev { width: 18px; height: 18px; color: var(--line-strong); }

.segmented {
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: var(--smoke-light); border-radius: var(--r-md); padding: 4px; gap: 4px;
}
.segmented button {
  font: inherit; font-size: .9375rem; font-weight: 500;
  border: 0; background: transparent; color: var(--ink);
  padding: 10px 6px; border-radius: 9px; cursor: pointer;
}
.segmented button[aria-pressed="true"] { background: var(--surface); box-shadow: 0 1px 2px hsl(208 25% 23.5% / .15); font-weight: 600; }

/* Schalter */
.switch-row {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 14px 16px;
}
.switch-row + .switch-row { border-top: 1px solid var(--line); }
.switch-row .label { font-weight: 600; }
.switch {
  position: relative; width: 50px; height: 30px; flex: none;
}
.switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch span {
  position: absolute; inset: 0; border-radius: 999px; background: var(--line-strong);
  transition: background-color 150ms;
}
.switch span::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px;
  border-radius: 50%; background: #fff; box-shadow: 0 1px 3px hsl(208 30% 10% / .3);
  transition: transform 150ms var(--ease);
}
.switch input:checked + span { background: var(--green); }
.switch input:checked + span::after { transform: translateX(20px); }
.switch input:focus-visible + span { outline: 3px solid var(--aqua); outline-offset: 2px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); }

.tag {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: .8125rem; padding: 2px 8px; border-radius: 6px;
  background: var(--bg); color: var(--ink-muted);
}
.tag.ok { background: var(--green-light); color: var(--green); }
.tag.warn { background: var(--orange-light); color: hsl(28 70% 26%); }
.keywords { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.keywords .tag button { border: 0; background: none; color: inherit; cursor: pointer; padding: 0 0 0 2px; font: inherit; }

/* Sheet (Dialog von unten) */
.sheet-backdrop {
  position: fixed; inset: 0; z-index: 40; background: hsl(208 30% 10% / .4);
  animation: fade 160ms ease;
}
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  background: var(--surface);
  border-radius: 20px 20px 0 0;
  padding: 10px 20px calc(24px + env(safe-area-inset-bottom));
  max-height: 88dvh; overflow: auto;
  animation: sheetUp 240ms var(--ease);
}
.sheet::before {
  content: ""; display: block; width: 40px; height: 5px; border-radius: 3px;
  background: var(--line-strong); margin: 0 auto 16px;
}
.sheet .sheet-actions { display: grid; gap: 10px; margin-top: 20px; }
@media (min-width: 900px) {
  .sheet {
    left: 50%; right: auto; bottom: auto; top: 50%; width: 480px;
    transform: translate(-50%, -50%); border-radius: 20px; padding: 24px;
    animation: fade 160ms ease;
  }
  .sheet::before { display: none; }
}
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.option {
  display: flex; align-items: center; gap: 12px; width: 100%;
  font: inherit; text-align: left; color: inherit;
  background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r-md);
  padding: 12px 14px; cursor: pointer;
}
.option + .option { margin-top: 8px; }
.option[aria-pressed="true"] { border-color: var(--aqua); box-shadow: 0 0 0 3px var(--aqua-light); }

.toast {
  position: fixed; left: 50%; bottom: calc(var(--tabbar-h) + 20px); z-index: 60;
  transform: translateX(-50%);
  background: var(--near-black); color: #fff;
  padding: 12px 18px; border-radius: var(--r-md); font-size: .9375rem;
  box-shadow: 0 6px 24px hsl(208 30% 10% / .25);
  animation: toastIn 220ms var(--ease);
  width: max-content; max-width: calc(100vw - 40px);
}
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 10px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* Abgeschickt-Moment */
.sent {
  text-align: center; padding: 48px 0 8px;
}
.sent-ring {
  width: 76px; height: 76px; margin: 0 auto 18px; border-radius: 50%;
  display: grid; place-items: center; background: var(--green); color: #fff;
  animation: pop 420ms var(--ease);
}
.sent-ring svg { width: 36px; height: 36px; }
@keyframes pop { 0% { transform: scale(.6); opacity: 0; } 60% { transform: scale(1.06); opacity: 1; } 100% { transform: scale(1); } }

.empty {
  padding: 28px 16px; text-align: center; color: var(--ink-muted);
  background: var(--surface); border-radius: var(--r-md); border: 1px dashed var(--line-strong);
}

.fake-hint {
  margin-top: 40px; font-size: .8125rem; color: var(--ink-muted);
  border-top: 1px solid var(--line); padding-top: 14px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


/* ---------- Desktop-Layouts mit Spalten, auf dem Handy untereinander ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.row-title { display: block; font-weight: 600; }
.cols { display: grid; gap: 28px; }
.col-aside, .col-side { min-width: 0; }
.col-main { min-width: 0; }
@media (min-width: 960px) {
  .cols { gap: 40px; align-items: start; }
  .cols-aside { grid-template-columns: minmax(0, 1fr) 360px; }
  .cols-aside .col-aside { padding-top: 6px; }
  .cols-form { grid-template-columns: minmax(0, 1fr) 420px; }
  .cols-form .col-side { position: sticky; top: 99px; }
  .cols-case { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
  .cols-case .col-main { position: sticky; top: 99px; }
  .cols-half { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1280px) { .cols-aside { grid-template-columns: minmax(0, 1fr) 400px; } }

.prose { margin-top: 18px; max-width: 64ch; font-size: 1.0625rem; }
.prose.small-prose { font-size: .9375rem; margin-top: 12px; }

.search-hero { display: flex; gap: 10px; }
.search-hero input { flex: 1; }
.search-go { display: none; }
@media (min-width: 960px) {
  .search-hero { max-width: 760px; margin-top: 24px; }
  .search-hero input { font-size: 1.1875rem; padding-top: 18px; padding-bottom: 18px; }
  .search-go { display: inline-flex; min-height: 62px; padding: 0 28px; }
  .search-wide { max-width: 760px; }
}

.case-grid { display: grid; gap: 12px; }
@media (min-width: 960px) { .case-grid { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; } }
.case-status { margin-top: 4px; font-size: .9375rem; }

.tile-grid { display: grid; gap: 12px; }
@media (min-width: 700px) { .tile-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; } }
.pkg-tile {
  display: flex; flex-direction: column; gap: 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 18px; color: inherit; text-decoration: none;
}
.pkg-tile:hover { border-color: var(--line-strong); }
.pkg-tile h3 { margin-top: 6px; }
.tile-top { display: flex; justify-content: space-between; align-items: center; }
.tile-foot { margin-top: auto; padding-top: 10px; display: flex; justify-content: space-between; align-items: center; gap: 10px; border-top: 1px solid var(--line); }

.form-panel, .info-panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px;
}
.form-panel > h2 + .track { margin-top: 14px; }
.info-panel { margin-top: 16px; }
.info-panel .pkg-hero h2 { font-size: 1.125rem; }
@media (min-width: 960px) {
  .form-panel, .info-panel { padding: 26px; }
  .form-panel .action-bar .btn-block, .case-header .action-bar .btn-block { width: 100%; }
  .action-bar .btn-block { width: auto; min-width: 220px; }
  .form-panel .action-bar .btn-block { width: 100%; }
}
.cols-case .col-side h2 { margin-bottom: 4px; }
@media (min-width: 960px) {
  .cols-case .col-side { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px 26px 6px; }
  .cols-case .col-side .t-why { background: var(--bg); border-color: transparent; }
  .cols-case .col-side li.now .t-why { background: var(--orange-tint); border-color: var(--orange-light); }
}

.avatar.lg { width: 52px; height: 52px; font-size: 1rem; }
.pkg-row.is-selected { background: var(--orange-tint); box-shadow: inset 3px 0 0 var(--orange); }

/* Master-Detail: Eingang und Paketpflege */
.md { margin-top: 20px; display: grid; gap: 20px; }
.md-list { list-style: none; margin: 0; padding: 0; min-width: 0; }
.md-detail { min-width: 0; }
.md[data-has-sel="false"] .md-detail { display: none; }
.md[data-has-sel="true"] .md-list { display: none; }
@media (min-width: 960px) {
  .md { grid-template-columns: 360px minmax(0, 1fr); gap: 28px; align-items: start; }
  .md-admin { grid-template-columns: 400px minmax(0, 1fr); }
  .md[data-has-sel] .md-list, .md[data-has-sel] .md-detail { display: block; }
  .md-detail { position: sticky; top: 99px; }
}

.inbox-item {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden;
}
.inbox-item + .inbox-item { margin-top: 12px; }
.inbox-item > a {
  display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start;
  padding: 16px; color: inherit; text-decoration: none;
}
.item-body { display: flex; flex-direction: column; }
.item-pkg { font-family: var(--font-head); font-size: 1.0625rem; margin-top: 2px; }
.item-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 16px 16px; }
@media (min-width: 960px) {
  .inbox-item + .inbox-item { margin-top: 8px; }
  .inbox-item { border-radius: var(--r-md); }
  .inbox-item:hover { border-color: var(--line-strong); }
  .inbox-item.is-selected { border-color: var(--orange); box-shadow: inset 4px 0 0 var(--orange); background: var(--orange-tint); }
  .item-actions { display: none; }
}

.detail-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px;
}
@media (min-width: 960px) { .detail-card { padding: 32px; } }
.detail-label { font-family: var(--font-body); font-size: .875rem; font-weight: 600; color: var(--ink-muted); margin-top: 22px; }
.detail-card .quote { margin-top: 8px; font-size: 1.0625rem; padding: 16px 18px; }
.detail-grid { display: grid; gap: 16px; margin-top: 20px; }
@media (min-width: 1200px) { .detail-grid { grid-template-columns: 1fr 1fr; align-items: center; } }
.detail-grid .facts { margin-top: 0; }
.pkg-mini { display: flex; gap: 12px; align-items: start; }
.detail-card .decide-actions { margin-top: 24px; }
@media (min-width: 960px) { .detail-card .decide-actions .btn { min-height: 60px; font-size: 1.0625rem; } }

.option-grid { margin-top: 8px; }
@media (min-width: 960px) {
  .option-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .option-grid .option + .option { margin-top: 0; }
  .option-grid .option { flex-direction: column; align-items: flex-start; }
}
.item-body .meta { font-size: .8125rem; color: var(--ink-muted); margin-top: 2px; }
.form-panel > .label { display: block; font-weight: 600; }
.col-side > .info-panel:first-child { margin-top: 0; }
select.input {
  -webkit-appearance: none; appearance: none;
  padding-right: 40px; min-height: 50px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23526172' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
}
select.input:disabled { background-color: var(--bg); color: var(--ink-muted); }
.md-admin .md-detail { position: static; }
@media (min-width: 960px) {
  .toast { left: auto; right: 32px; bottom: 32px; transform: none; animation-name: toastInDesk; }
}
@keyframes toastInDesk { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (max-width: 959px) {
  .form-panel .action-bar { position: static; }
  .form-panel .action-bar::before { display: none; }
}
.facts > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (min-width: 640px) { .facts:not(.facts-stack) > div:last-child:nth-child(odd) { grid-column: auto; } }
/* Handy: Verlauf direkt unter dem Status, Paketinfo danach */
@media (max-width: 959px) {
  .cols-case .col-main { display: contents; }
  .cols-case .case-header { order: 1; }
  .cols-case .col-side { order: 2; }
  .cols-case .info-panel { order: 3; margin-top: 0; }
  .cols-case { gap: 20px; }
}
@media (max-width: 959px) {
  .md[data-has-sel="false"] .pkg-row.is-selected { background: none; box-shadow: none; }
}

/* ---------- Rollen: vier Schalter in zwei Spalten ---------- */
.segmented { grid-template-columns: repeat(2, 1fr); }

/* ---------- Tabellen (Desktop breit, Handy als Karten) ---------- */
.tbl-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.tbl th {
  text-align: left; font-size: .8125rem; font-weight: 600; color: var(--ink-muted);
  padding: 12px 14px; border-bottom: 1px solid var(--line-strong); white-space: nowrap; background: hsl(212 27% 98%);
}
.tbl td { padding: 12px 14px; border-top: 1px solid var(--line); vertical-align: top; }
.tbl tbody tr:first-child td { border-top: 0; }
.tbl .num { text-align: right; white-space: nowrap; }
.tbl td.nowrap { white-space: nowrap; }
.tbl tr[data-href] { cursor: pointer; }
.tbl tr[data-href]:hover td { background: hsl(212 27% 98%); }
.tbl tr.is-selected td { background: var(--orange-tint); }
.tbl tr.is-selected td:first-child { box-shadow: inset 3px 0 0 var(--orange); }
.tbl a { font-weight: 500; }
@media screen and (max-width: 959px) {
  .tbl-wrap { background: none; border: 0; overflow: visible; }
  .tbl thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tbl, .tbl tbody, .tbl tr, .tbl td { display: block; }
  .tbl tr { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 8px 14px; margin-bottom: 10px; }
  .tbl td { display: flex; justify-content: space-between; gap: 16px; border: 0 !important; padding: 5px 0; text-align: right; box-shadow: none !important; }
  .tbl td::before { content: attr(data-label); color: var(--ink-muted); font-size: .8125rem; text-align: left; flex: none; }
  .tbl tr.is-selected td, .tbl tr[data-href]:hover td { background: none; }
}

.tag.bad { background: var(--berry-light); color: var(--berry); }
.act { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .8125rem; background: var(--bg); padding: 2px 6px; border-radius: 6px; white-space: nowrap; }
.worm { margin-top: 4px; }

/* Vorgänge: Liste breit, Detail rechts */
.md-vg .md-list { display: block; }
@media (min-width: 960px) { .md-vg { grid-template-columns: minmax(0, 1fr) 460px; } }
.md-vg .chips-top { margin-top: 0; }
.detail-card .pkg-hero h2 { font-size: 1.25rem; }
.detail-card .facts { margin-top: 20px; }
.detail-card .note { margin-top: 16px; }
.detail-card .timeline { margin-top: 12px; }
.detail-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }

/* Protokoll und Bericht */
.filter-bar {
  display: grid; gap: 12px; grid-template-columns: 1fr 1fr; align-items: end; margin-top: 20px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px;
}
.filter-bar .field { margin-top: 0; }
.filter-bar .field.wide { grid-column: 1 / -1; }
.filter-bar .btn { min-height: 50px; grid-column: 1 / -1; }
@media (min-width: 960px) {
  .filter-bar { grid-template-columns: minmax(220px, 1.4fr) 1fr 1fr auto; max-width: 980px; }
  .filter-bar .field.wide { grid-column: auto; }
  .filter-bar .btn { grid-column: auto; }
  .filter-bar-3 { grid-template-columns: 1fr 1fr auto; max-width: 640px; }
}
.kpis { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; margin-top: 24px; }
@media (min-width: 960px) { .kpis { grid-template-columns: repeat(5, 1fr); } }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px 18px; }
.kpi .v { font-family: var(--font-head); font-size: 1.75rem; line-height: 1.1; }
.kpi .l { font-size: .8125rem; color: var(--ink-muted); margin-top: 4px; }
.kpi-key { grid-column: 1 / -1; background: var(--green-light); border-color: var(--green-mid); }
.kpi-key .v { font-size: 2.25rem; color: var(--green); }
.kpi-key .l { color: var(--green); font-size: .9375rem; font-weight: 500; }
.viol { margin: 0; padding-left: 20px; }
.report-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.report-actions .btn { min-width: 200px; }
.print-head { display: none; }

/* Ablehnung im Vorgang */
.reject-box { margin-top: 18px; padding: 16px; border-radius: var(--r-md); background: var(--berry-light); }
.reject-box h3 { color: var(--berry); font-family: var(--font-body); font-weight: 600; font-size: .9375rem; }
.reject-box .quote { background: var(--surface); margin-top: 8px; }
.reject-box .muted { margin-top: 8px; }
.reject-box .btn { margin-top: 14px; width: 100%; }
@media (min-width: 960px) { .reject-box .btn { width: auto; min-width: 220px; } }

/* Sammelantrag */
.pkg-tile { gap: 8px; }
.tile-main { display: flex; flex-direction: column; gap: 8px; color: inherit; text-decoration: none; }
.tile-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-wish {
  font: inherit; font-size: .875rem; font-weight: 600; cursor: pointer; text-decoration: none; text-align: center;
  padding: 8px 14px; border-radius: var(--r-sm); border: 1.5px solid var(--line-strong);
  background: var(--surface); color: var(--ink);
}
.btn-wish:hover { border-color: var(--ink-muted); }
.btn-wish-primary { background: var(--orange); border-color: var(--orange); color: var(--near-black); }
.btn-wish-primary:hover { background: var(--orange-hover); border-color: var(--orange-hover); }
.btn-wish.is-on { background: var(--aqua-light); border-color: var(--aqua); color: var(--aqua); }
.btn-wish.is-blocked { color: var(--ink-muted); background: var(--bg); border-style: dashed; cursor: default; }
.btn.btn-wish { min-height: 52px; font-size: 1rem; padding: 0 20px; }
.wish-alt { margin-top: 10px; }
.badge-soft { background: var(--ink); }
.wish-list { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.wish-row { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; padding: 14px; }
.wish-row + .wish-row { border-top: 1px solid var(--line); }
.wish-row .row-title { color: var(--ink); text-decoration: none; }
.wish-row .meta { display: block; font-size: .8125rem; color: var(--ink-muted); }

.batch-card { grid-column: 1 / -1; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.batch-card > summary { list-style: none; cursor: pointer; padding: 18px 18px 16px; border-radius: var(--r-lg); }
.batch-card > summary::-webkit-details-marker { display: none; }
.batch-card > summary:hover { background: hsl(212 27% 98%); }
.batch-meter { display: block; height: 6px; border-radius: 3px; background: var(--smoke-light); overflow: hidden; margin-top: 12px; }
.batch-meter span { display: block; height: 100%; background: var(--green-mid); }
.batch-more { display: inline-block; margin-top: 10px; font-size: .875rem; font-weight: 600; color: var(--aqua); }
.batch-more::after { content: "Einzelne Vorgänge anzeigen"; }
.batch-card[open] .batch-more::after { content: "Einzelne Vorgänge ausblenden"; }
.batch-grid { padding: 0 18px 18px; }
.batch-grid .case-card { background: var(--bg); }
.case-link { display: block; margin-top: 12px; font-size: .875rem; font-weight: 600; color: var(--aqua); }

.sel-list { list-style: none; margin: 8px 0 0; padding: 0; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.sel-row { display: grid; grid-template-columns: 22px 40px 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; }
.sel-row + .sel-row { border-top: 1px solid var(--line); }
.sel-box { width: 20px; height: 20px; accent-color: var(--green); margin: 0; }
.sel-body .meta { display: block; font-size: .8125rem; color: var(--ink-muted); }
.sel-row .btn-text { color: var(--berry); padding: 4px 0; }
.detail-card .note + .detail-label, .detail-card .note { margin-top: 14px; }

/* ---------- Druck: Bericht schwarz auf weiß ---------- */
@media print {
  @page { margin: 16mm; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .topbar, .tabbar, .nav-role, .toast, .sheet, .sheet-backdrop, .no-print, .btn, .report-actions, .back { display: none !important; }
  .shell { display: block; }
  .view { max-width: none; margin: 0; padding: 0; animation: none; }
  .print-head { display: block; margin-bottom: 14px; padding-bottom: 8px; border-bottom: 2px solid #000; }
  .print-head h1 { font-size: 20pt; color: #000; }
  .print-head p { font-size: 10pt; color: #000; margin-top: 2px; }
  h1, h2, h3, p, a, .lead, .muted { color: #000 !important; text-decoration: none; }
  .section { margin-top: 16px; }
  .kpis { grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 0; }
  .kpi, .kpi-key { background: #fff !important; border: 1px solid #000 !important; border-radius: 0; padding: 8px; break-inside: avoid; }
  .kpi .v, .kpi .l, .kpi-key .v, .kpi-key .l { color: #000 !important; }
  .kpi .v { font-size: 14pt; }
  .kpi-key .v { font-size: 16pt; }
  .tbl-wrap { border: 0; background: #fff; overflow: visible; }
  .tbl { font-size: 9pt; }
  .tbl, .tbl th, .tbl td { border: 1px solid #000 !important; color: #000; background: #fff !important; }
  .tbl th { padding: 5px 6px; }
  .tbl td { padding: 4px 6px; }
  .tbl tr { break-inside: avoid; }
  .empty { border: 1px solid #000; background: #fff; color: #000; }
}

/* Frisch abgelehnter Antrag: bleibt 7 Tage oben bei "Deine Anträge" */
.case-card.is-rejected { border-color: var(--berry); box-shadow: inset 4px 0 0 var(--berry); background: var(--surface); cursor: default; }
.case-card.is-rejected .case-status strong { color: var(--berry); }
.reject-quote { margin: 10px 0 14px; padding: 10px 14px; border-radius: var(--r-md); background: var(--berry-light); color: var(--ink); font-size: .9375rem; line-height: 1.45; }
.reject-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.reject-actions .btn { min-height: 44px; }
.case-grid .case-card.is-rejected { grid-column: 1 / -1; }
.reject-quote { max-width: 70ch; }
.reject-ack { margin-left: auto; color: var(--ink-muted); }

/* ---------- Echte Oberfläche: Start, Laden, Testmodus ---------- */
.boot { padding: 48px 0; }
.boot h1 { margin-bottom: 8px; }
.boot .btn { margin-top: 20px; }
.loading { display: flex; align-items: center; gap: 12px; padding: 48px 0; color: var(--ink-muted); }
.spinner {
  width: 20px; height: 20px; border-radius: 50%;
  border: 2.5px solid var(--line-strong); border-top-color: var(--orange);
  animation: spin 800ms linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.fake-bar {
  position: relative; z-index: 30;
  padding: 8px 20px; font-size: .8125rem;
  background: var(--orange-tint); color: hsl(28 70% 26%);
  border-bottom: 1px solid var(--orange-light);
}
.fake-bar a { margin-left: 8px; font-weight: 600; color: hsl(28 70% 26%); }
.fake-bar a[aria-current="true"] { text-decoration: none; background: var(--orange-light); padding: 1px 8px; border-radius: 6px; }
.batch-foot { padding: 0 18px 16px; margin: 0; font-size: .875rem; font-weight: 600; }
.wish-row.is-bad { box-shadow: inset 4px 0 0 var(--berry); }
.wish-body .meta.bad { color: var(--berry); }
.result-list { margin: 14px 0 0; padding-left: 20px; }
.result-list li + li { margin-top: 8px; }
@media print { .fake-bar { display: none !important; } }

.nowrap { white-space: nowrap; }
.case-ref { margin: 0 0 10px; }

/* Testmodus-Leiste: auf dem Desktop unten in der Seitenleiste, damit sie die Kopfzeile nie verdeckt */
@media (min-width: 960px) {
  .fake-bar {
    position: fixed; left: 16px; bottom: 16px; width: 224px; z-index: 25;
    border: 1px solid var(--orange-light); border-radius: var(--r-md);
    box-shadow: 0 4px 16px hsl(208 30% 10% / .12);
  }
  .fake-bar a { display: inline-block; margin: 4px 6px 0 0; }
  .tabbar { padding-bottom: 150px; }
}

/* Personensuche */
.people-field { position: relative; }
.people-list {
  list-style: none; margin: 6px 0 0; padding: 4px;
  max-height: 300px; overflow: auto;
  background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: var(--r-md);
  box-shadow: 0 8px 24px hsl(208 30% 10% / .12);
}
.people-opt { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 10px; cursor: pointer; }
.people-opt[aria-selected="true"] { background: var(--aqua-light); }
.people-opt.is-disabled { cursor: not-allowed; opacity: .6; }
.people-body .meta { display: block; font-size: .8125rem; color: var(--ink-muted); }
.people-body .people-why { color: var(--berry); }
.people-none { padding: 10px 12px; color: var(--ink-muted); }

/* Meine Zugriffe */
.pkg-cell { display: flex; align-items: center; gap: 12px; }
.pkg-cell .meta { display: block; font-size: .8125rem; color: var(--ink-muted); }
.btn-return { color: var(--berry); padding: 4px 0; }
.access-link { font-weight: 600; margin-left: 6px; }
