/* ==========================================================================
   Meridian Recruiting-System · Meister-Cockpit (10k-€ B2B SaaS UI)
   Einklappbare 244px/64px-Sidebar, Glass-Topbar, Light & Dark Mode.
   ========================================================================== */

body[data-page="chef"] {
  background: var(--canvas);
  min-height: 100vh;
  overflow-x: clip;
}

/* ---------- Split Login Screen ---------- */
.login-screen {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}

.login-brand {
  position: relative;
  overflow: hidden;
  background-color: var(--forest);
  background-image:
    radial-gradient(640px 420px at 14% 12%, rgba(43, 182, 134, 0.16), transparent 65%),
    radial-gradient(520px 360px at 88% 84%, rgba(217, 161, 54, 0.12), transparent 65%),
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 48px 48px, 48px 48px;
  color: var(--ink-inv);
  padding: 56px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--forest-line);
  min-width: 0;
}

.login-brand__wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--brass);
  margin-bottom: 36px;
}

.login-brand__mark {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  background: var(--brass);
  color: #091814;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 13.5px;
  border-radius: var(--r-sm);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.login-brand__title {
  margin: 0 0 18px;
  max-width: 18ch;
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.login-brand__sub {
  margin: 0;
  max-width: 46ch;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-inv-2);
}

.login-ledger {
  margin: 40px 0 0;
  border-top: 1px solid var(--forest-line);
}

.login-ledger div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--forest-line);
  font-size: 13px;
}

.login-ledger dt {
  color: var(--ink-inv-muted);
}

.login-ledger dd {
  margin: 0;
  font-family: var(--font-mono);
  color: var(--ink-inv);
}

.login-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 64px 24px 36px;
  background: var(--canvas);
  min-width: 0;
}

.login-panel__bar {
  position: absolute;
  top: 18px;
  right: 22px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.login-mobile-brand {
  display: none;
}

@keyframes loginFadeIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.login-card {
  position: relative;
  overflow: hidden;
  width: min(444px, 100%);
  max-width: 100%;
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  animation: loginFadeIn 360ms cubic-bezier(.16, 1, .3, 1);
}

.login-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-emerald), var(--brass));
}

.login-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  margin-bottom: 18px;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
}

.login-tab {
  border: 0;
  border-radius: calc(var(--r-sm) - 2px);
  background: transparent;
  padding: 8px 10px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-2);
  cursor: pointer;
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}

.login-tab:hover {
  color: var(--ink);
}

.login-tab.is-active {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-ink);
  box-shadow: var(--shadow-xs);
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.trial-success {
  padding: 14px 16px;
  background: var(--ok-bg);
  border: 1px solid var(--ok-line);
  border-radius: var(--r-sm);
  color: var(--ok-ink);
  font-size: 13.5px;
  line-height: 1.5;
}

.trial-success strong {
  display: block;
  margin-bottom: 4px;
  font-size: 14.5px;
}

.trial-success p {
  margin: 0;
}

.login-card__eyebrow {
  margin: 0 0 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brass-ink);
}

.login-card__title {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.login-card__desc {
  margin: 0 0 22px;
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.55;
}

.login-err {
  margin: 0 0 14px;
  padding: 9px 12px;
  background: var(--danger-bg);
  border: 1px solid var(--danger-line);
  border-radius: var(--r-sm);
  color: var(--danger-ink);
  font-size: 12.5px;
  font-weight: 600;
}

.pw-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.pw-input-wrap input {
  padding-right: 42px;
}

.pw-toggle {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--ink-muted);
  cursor: pointer;
  transition: color var(--t-fast) var(--ease),
              background-color var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease);
}

.pw-toggle:hover {
  color: var(--brand-text);
  background: var(--surface-alt);
}

.pw-toggle:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 1px;
  color: var(--brand-text);
}

.pw-icon {
  width: 18px;
  height: 18px;
  pointer-events: none;
}

.login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: var(--ink-muted);
  font-size: 12px;
}

.login-divider::before,
.login-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.login-card .btn--block {
  white-space: normal;
  text-align: center;
  line-height: 1.3;
}

.login-foot {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 14px;
  font-size: 12.5px;
  color: var(--ink-2);
}

.login-foot a {
  text-decoration: none;
  font-weight: 600;
}

.login-foot a:hover {
  color: var(--brand-text);
  text-decoration: underline;
}

/* ---------- App Shell (SaaS Sidebar + Glass Topbar) ---------- */
.app-shell {
  min-height: 100vh;
  max-width: 100%;
  display: grid;
  grid-template-columns: 244px minmax(0, 1fr);
  transition: grid-template-columns 240ms var(--ease);
}

.app-shell.is-collapsed {
  grid-template-columns: 64px minmax(0, 1fr);
}

/* Linke Sidebar */
.app-sidebar {
  position: sticky;
  top: 0;
  width: 244px;
  height: 100vh;
  background-color: var(--forest);
  background-image: radial-gradient(360px 260px at 0% 0%, rgba(43, 182, 134, 0.14), transparent 70%);
  color: var(--ink-inv);
  border-right: 1px solid var(--forest-line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 12px 10px;
  z-index: 60;
  overflow: visible;
  transition: width 240ms var(--ease);
}

.app-shell.is-collapsed .app-sidebar {
  width: 64px;
}

.sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 6px 14px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--forest-line);
  min-height: 50px;
}

.sidebar-toggle {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--forest-line);
  border-radius: var(--r-sm);
  background: var(--forest-elev);
  color: var(--ink-inv);
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}

.sidebar-toggle:hover {
  background: var(--forest-hover);
  border-color: var(--brass);
}

.sidebar-toggle svg {
  width: 18px;
  height: 18px;
}

.sidebar-head__title {
  flex: 1;
  min-width: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-inv-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-close {
  display: none;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  place-items: center;
  border: 1px solid var(--forest-line);
  border-radius: var(--r-sm);
  background: var(--forest-elev);
  color: var(--ink-inv);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.sidebar-nav {
  display: grid;
  gap: 4px;
}

.sb-item {
  position: relative;
  width: 100%;
  min-height: 40px;
  padding: 8px 11px;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--ink-inv-2);
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 13.5px;
  font-weight: 600;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}

.sb-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.85;
}

.sb-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink-inv);
}

.sb-item:hover svg,
.sb-item.is-active svg {
  opacity: 1;
}

.sb-item.is-active {
  background: rgba(255, 255, 255, 0.09);
  border-color: var(--forest-line);
  color: var(--ink-inv);
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.sb-item.is-active::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 7px;
  bottom: 7px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--brass);
}

.sb-item__label {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sb-item__badge {
  padding: 1px 7px;
  background: var(--brass);
  color: #091814;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
}

.sidebar-foot {
  border-top: 1px solid var(--forest-line);
  padding-top: 10px;
  display: grid;
  gap: 6px;
}

.sidebar-legal {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 11px 2px;
  font-size: 11.5px;
  color: var(--ink-inv-muted);
}

.sb-legal-btn {
  border: 0;
  background: transparent;
  padding: 0;
  color: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.sb-legal-btn:hover {
  color: var(--ink-inv);
}

/* Collapsed Desktop Icon-Rail (64px) */
.app-shell.is-collapsed .sidebar-head {
  justify-content: center;
  padding: 4px 0 14px;
}

.app-shell.is-collapsed .sidebar-head__title,
.app-shell.is-collapsed .sb-item__label,
.app-shell.is-collapsed .sidebar-legal {
  display: none;
}

.app-shell.is-collapsed .sb-item {
  justify-content: center;
  padding: 8px 0;
}

.app-shell.is-collapsed .sb-item.is-active {
  border-color: var(--forest-line);
  padding-left: 0;
}

.app-shell.is-collapsed .sb-item__badge {
  position: absolute;
  top: 4px;
  right: 4px;
  padding: 0 4px;
  font-size: 9.5px;
}

.app-shell.is-collapsed .sb-item[data-tooltip]:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  left: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  padding: 5px 10px;
  background: var(--forest);
  color: var(--ink-inv);
  border: 1px solid var(--forest-line);
  border-radius: var(--r-sm);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  z-index: 120;
  pointer-events: none;
  box-shadow: var(--shadow-md);
}

/* ---------- Topbar (58px Glass) ---------- */
.app-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.app-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 58px;
  max-width: 100%;
  padding: 0 24px;
  background: var(--header-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.app-topbar__left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.topbar-toggle {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  flex-shrink: 0;
}

.topbar-toggle--mobile {
  display: none;
}

.topbar-toggle:hover {
  background: var(--surface-alt);
  border-color: var(--ink-muted);
}

.topbar-toggle svg {
  width: 18px;
  height: 18px;
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.topbar-brand__mono {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: var(--forest);
  border: 1px solid var(--forest-line);
  color: var(--brass);
  font-weight: 800;
  font-size: 11.5px;
  border-radius: var(--r-sm);
}

.topbar-brand__text {
  display: flex;
  align-items: baseline;
  gap: 7px;
  min-width: 0;
}

.topbar-brand__name {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar-brand__loc {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-muted);
  white-space: nowrap;
}

.topbar-crumb__sep {
  color: var(--line-strong);
}

.topbar-crumb__title {
  margin: 0;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-topbar__right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.mode-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--brass-line);
  background: var(--brass-soft);
  color: var(--brass-ink);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
}

.mode-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.mode-badge.is-cloud {
  border-color: var(--ok-line);
  background: var(--ok-bg);
  color: var(--ok-ink);
}

/* ---------- Workspace ---------- */
.app-workspace {
  padding: 24px 26px 40px;
  flex: 1;
  min-width: 0;
  max-width: 100%;
}

@keyframes paneSlideIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.module-pane {
  display: grid;
  gap: 20px;
  max-width: 1320px;
  min-width: 0;
  width: 100%;
}

.module-pane > * {
  min-width: 0;
  max-width: 100%;
}

.module-pane:not([hidden]) {
  animation: paneSlideIn 260ms cubic-bezier(.16, 1, .3, 1);
}

.module-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.module-head__title {
  margin: 0 0 3px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.module-head__sub {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-2);
}

.module-head__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

/* ---------- Startseite: Edle KPI-Karten ---------- */
.kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.kpi-cell {
  position: relative;
  overflow: hidden;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: 12px;
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}

.kpi-cell:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
}

.kpi-cell--interactive {
  width: 100%;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.kpi-cell--interactive:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-emerald);
}

.kpi-cell--interactive:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 2px;
}

.kpi-cell__arrow {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-muted);
  transition: transform var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}

.kpi-cell--interactive:hover .kpi-cell__arrow {
  transform: translateX(3px);
  color: var(--brand-text);
}

.active-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--ok-line);
  background: var(--ok-bg);
  color: var(--ok-ink);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}

.filter-chip:hover {
  border-color: var(--ok-ink);
}

.kpi-cell--accent {
  border-color: var(--brass-line);
}

.kpi-cell--accent::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-emerald), var(--brass));
}

.kpi-cell__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.kpi-cell__label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-2);
}

.kpi-cell__icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: var(--r-sm);
  background: var(--surface-alt);
  border: 1px solid var(--line);
  color: var(--ink-2);
}

.kpi-cell__icon svg {
  width: 16px;
  height: 16px;
}

.kpi-cell__icon--accent {
  background: var(--brass-soft);
  border-color: var(--brass-line);
  color: var(--brass-ink);
}

.kpi-cell__val {
  display: block;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 30px;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
}

/* ---------- Startseite: Bento-Widget-Grid & Anpassungs-Modal ---------- */
.home-widgets {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
  min-width: 0;
}

.home-widget {
  min-width: 0;
  max-width: 100%;
}

.home-widget--full {
  grid-column: 1 / -1;
}

.home-section-card--compact {
  padding: 12px 16px;
  gap: 10px;
}

.home-quick-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.quick-pill-btn {
  width: 100%;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background: var(--surface-alt);
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: transform var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease),
              background-color var(--t-fast) var(--ease),
              box-shadow var(--t-fast) var(--ease);
}

.quick-pill-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.quick-pill-btn:hover {
  transform: translateY(-1px);
  background: var(--surface);
  border-color: var(--accent-emerald);
  box-shadow: var(--shadow-sm);
}

.quick-pill-btn--primary {
  background: var(--btn-primary-bg);
  border-color: var(--btn-primary-border);
  color: var(--btn-primary-ink);
}

.quick-pill-btn--primary:hover {
  background: var(--btn-primary-hover);
  border-color: var(--btn-primary-hover);
  color: var(--btn-primary-ink);
}

.quick-pill-btn--brass {
  background: var(--brass-soft);
  border-color: var(--brass-line);
  color: var(--brass-ink);
}

.quick-pill-btn--brass:hover {
  background: var(--brass);
  border-color: var(--brass);
  color: #091814;
}

/* Widget: Offene Rückmeldungen */
.pending-list {
  display: grid;
  gap: 8px;
}

.pending-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface-alt);
  min-width: 0;
}

.pending-item__info {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.pending-item__top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.pending-item__name {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--ink);
}

.pending-item__job {
  font-size: 12px;
  color: var(--ink-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pending-item__actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

/* Widget: Pipeline & Stellen-Performance Balken */
.bar-list {
  display: grid;
  gap: 10px;
}

.bar-row {
  width: 100%;
  text-align: left;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface-alt);
  display: grid;
  gap: 6px;
  cursor: pointer;
  transition: border-color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}

.bar-row:hover {
  border-color: var(--accent-emerald);
  background: var(--surface);
}

.bar-row__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
}

.bar-row__head span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bar-row__head em {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-2);
  flex-shrink: 0;
}

.bar-track {
  height: 7px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--accent-emerald);
  transition: width 320ms var(--ease);
}

.bar-fill--brass { background: var(--brass); }
.bar-fill--blue { background: #3B82F6; }
.bar-fill--ok { background: var(--ok-ink); }

/* Widget: Schnell-Teilen & Bulli-QR */
.share-widget {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.share-widget__qr {
  width: 92px;
  height: 92px;
  flex-shrink: 0;
  padding: 6px;
  background: #FFFFFF;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
}

.share-widget__body {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 8px;
}

.share-widget__url {
  margin: 0;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface-alt);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--brand-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.share-widget__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.share-widget__actions .btn {
  max-width: 100%;
  white-space: normal;
  text-align: center;
}

/* Widget-Anpassungs-Modal */
.widget-modal__hint {
  margin: 0 0 12px !important;
  font-size: 13px;
  color: var(--ink-2);
}

.widget-config-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.widget-config-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface-alt);
}

.widget-config-item__label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  flex: 1;
  min-width: 0;
}

.widget-config-item__label input {
  width: 17px;
  height: 17px;
  accent-color: var(--accent-emerald);
  flex-shrink: 0;
}

.widget-config-item__sort {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.widget-sort-btn {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.widget-sort-btn:hover:not(:disabled) {
  border-color: var(--accent-emerald);
  color: var(--brand-text);
}

.widget-sort-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.home-section-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  padding: 20px 22px;
  display: grid;
  gap: 14px;
}

.home-section-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.home-section-card__title {
  margin: 0;
  font-size: 15.5px;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.home-quick-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.quick-action-card {
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface-alt);
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: transform var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease),
              background-color var(--t-fast) var(--ease),
              box-shadow var(--t-fast) var(--ease);
}

.quick-action-card:hover {
  transform: translateY(-2px);
  background: var(--surface);
  border-color: var(--accent-emerald);
  box-shadow: var(--shadow-sm);
}

.quick-action-card__icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: var(--r-sm);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  color: var(--brand-text);
}

.quick-action-card--primary .quick-action-card__icon {
  background: var(--btn-primary-bg);
  border-color: var(--btn-primary-border);
  color: var(--btn-primary-ink);
}

.quick-action-card--brass .quick-action-card__icon {
  background: var(--brass-soft);
  border-color: var(--brass-line);
  color: var(--brass-ink);
}

.quick-action-card__icon svg {
  width: 18px;
  height: 18px;
}

.quick-action-card__body {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 2px;
}

.quick-action-card__body strong {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--ink);
}

.quick-action-card__body span {
  font-size: 12px;
  color: var(--ink-2);
  line-height: 1.35;
}

.quick-action-card__arrow {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-muted);
  transition: transform var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}

.quick-action-card:hover .quick-action-card__arrow {
  transform: translateX(3px);
  color: var(--brand-text);
}

.home-recent-list {
  display: grid;
  gap: 8px;
}

.home-recent-item {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  text-align: left;
  padding: 12px 14px;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  cursor: pointer;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 14px;
  transition: border-color var(--t-fast) var(--ease),
              background-color var(--t-fast) var(--ease),
              box-shadow var(--t-fast) var(--ease),
              transform var(--t-fast) var(--ease);
}

.home-recent-item:hover {
  background: var(--surface-elev);
  border-color: var(--accent-emerald);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.home-recent-item__lead {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.home-recent-item__avatar {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: var(--r-sm);
  background: var(--forest);
  border: 1px solid var(--forest-line);
  color: var(--brass);
  font-size: 13px;
  font-weight: 800;
}

.home-recent-item__main {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.home-recent-item__name {
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
}

.home-recent-item__sub {
  font-size: 12.5px;
  color: var(--ink-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-recent-item__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-shrink: 0;
}

.home-recent-item__date {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-muted);
}

/* ---------- Kompakte 1-Zeilen-Statusleiste in Bewerbungen ---------- */
.apps-summary-bar {
  display: flex;
  align-items: center;
  gap: 10px 22px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 11px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-xs);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.apps-summary-bar::-webkit-scrollbar {
  display: none;
}

.apps-summary-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  white-space: nowrap;
  padding-right: 18px;
  border-right: 1px solid var(--line);
}

.apps-summary-item:last-child {
  padding-right: 0;
  border-right: 0;
}

.apps-summary-item__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.apps-summary-item__dot--neutral { background: var(--ink-muted); }
.apps-summary-item__dot--new { background: var(--accent-emerald); }
.apps-summary-item__dot--top { background: var(--ok-ink); }
.apps-summary-item__dot--brass { background: var(--brass); }

.apps-summary-item__label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
}

.apps-summary-item__val {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

/* ---------- Testanfragen ---------- */
.trials-feedback {
  margin: 0;
  padding: 10px 14px;
  border-radius: var(--r-sm);
  border: 1px solid var(--ok-line);
  background: var(--ok-bg);
  color: var(--ok-ink);
  font-size: 13px;
  font-weight: 700;
}

.trials-feedback.is-error {
  border-color: var(--danger-line);
  background: var(--danger-bg);
  color: var(--danger-ink);
}

.table-wrap--trials {
  box-shadow: var(--shadow-sm);
}

.trials-table tbody tr {
  cursor: default;
}

.trial-company {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
}

.trial-contact {
  display: block;
  margin-top: 2px;
  font-size: 12.5px;
  color: var(--ink-2);
}

.trial-contact-links {
  display: grid;
  gap: 3px;
  font-size: 12.5px;
}

.trial-contact-links a {
  text-decoration: none;
  color: var(--brand-text);
  font-weight: 600;
  word-break: break-word;
}

.trial-contact-links a:hover {
  text-decoration: underline;
}

.trial-details {
  display: grid;
  gap: 5px;
  max-width: 340px;
}

.trial-message {
  margin: 0;
  font-size: 12.5px;
  color: var(--ink-2);
  line-height: 1.45;
}

.trial-status-cell {
  display: grid;
  gap: 4px;
  justify-items: start;
}

.trial-status-select {
  min-width: 148px;
  padding: 7px 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}

.trial-status-select:focus {
  outline: none;
  border-color: var(--accent-emerald);
  box-shadow: var(--focus-ring);
}

.trial-status-select.is-neu {
  border-color: var(--new-line);
  background: var(--new-bg);
  color: var(--new-ink);
}

.trial-status-select.is-kontaktiert {
  border-color: var(--warn-line);
  background: var(--warn-bg);
  color: var(--warn-ink);
}

.trial-status-select.is-aktiv {
  border-color: var(--ok-line);
  background: var(--ok-bg);
  color: var(--ok-ink);
}

.trial-status-select.is-abgelehnt {
  border-color: var(--danger-line);
  background: var(--danger-bg);
  color: var(--danger-ink);
}

.trial-save-state {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-muted);
}

/* ---------- Apps Toolbar & Seg ---------- */
.apps-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-xs);
}

.search-wrap {
  position: relative;
  flex: 1 1 220px;
  max-width: 320px;
  min-width: 0;
}

.search-wrap svg {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  color: var(--ink-muted);
  pointer-events: none;
}

.search-wrap input {
  width: 100%;
  height: 38px;
  padding: 6px 10px 6px 34px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--surface-alt);
  color: var(--ink);
  font-size: 13px;
  transition: border-color var(--t-fast) var(--ease),
              background-color var(--t-fast) var(--ease),
              box-shadow var(--t-fast) var(--ease);
}

.search-wrap input:focus {
  outline: none;
  background: var(--surface);
  border-color: var(--accent-emerald);
  box-shadow: var(--focus-ring);
}

.status-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  min-width: 0;
  max-width: 100%;
}

.status-tab {
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-alt);
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background-color var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease),
              color var(--t-fast) var(--ease);
}

.status-tab:hover:not(.is-active) {
  border-color: var(--line-strong);
  color: var(--ink);
}

.status-tab.is-active {
  background: var(--btn-primary-bg);
  border-color: var(--btn-primary-border);
  color: var(--btn-primary-ink);
}

.status-tab span {
  font-family: var(--font-mono);
  margin-left: 5px;
  opacity: 0.8;
}

.apps-toolbar__right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
}

.seg {
  display: inline-flex;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--surface-alt);
}

.seg__btn {
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  padding: 8px 13px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-2);
  cursor: pointer;
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}

.seg__btn:hover:not(.is-active) {
  color: var(--ink);
}

.seg__btn:last-child {
  border-right: 0;
}

.seg__btn.is-active {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-ink);
}

/* ---------- Board & Tabelle ---------- */
.board-wrap {
  min-width: 0;
  max-width: 100%;
  width: 100%;
}

.board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
  min-width: 0;
  max-width: 100%;
}

.col {
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  min-height: 220px;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.col__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 13px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  font-size: 12.5px;
  font-weight: 800;
  color: var(--ink);
}

.col__title {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.col__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink-muted);
  flex-shrink: 0;
}

.col[data-status="neu"] .col__dot { background: var(--accent-emerald); }
.col[data-status="kontaktiert"] .col__dot { background: var(--brass); }
.col[data-status="probearbeiten"] .col__dot { background: #3B82F6; }
.col[data-status="eingestellt"] .col__dot { background: var(--ok-ink); }

.col__count {
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-2);
}

.col__body {
  padding: 10px;
  display: grid;
  gap: 8px;
}

.app-card {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-align: left;
  padding: 13px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-xs);
  cursor: pointer;
  display: grid;
  gap: 8px;
  transition: border-color var(--t-fast) var(--ease),
              box-shadow var(--t-fast) var(--ease),
              transform var(--t-fast) var(--ease),
              background-color var(--t-fast) var(--ease);
}

.app-card:hover {
  background: var(--surface-elev);
  border-color: var(--accent-emerald);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.app-card__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 8px;
  min-width: 0;
}

.app-card__name {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
}

.app-card__job {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 12px;
  color: var(--ink-2);
  line-height: 1.4;
}

.app-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 8px;
  padding-top: 7px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-muted);
  min-width: 0;
}

.app-card__meta span:first-child {
  white-space: nowrap;
}

.table-wrap {
  width: 100%;
  max-width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-xs);
  overflow-x: auto;
}

.apps-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.apps-table th,
.apps-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.apps-table th {
  background: var(--surface-alt);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-muted);
}

.apps-table tbody tr {
  cursor: pointer;
  transition: background-color var(--t-fast) var(--ease);
}

.apps-table tbody tr:hover {
  background: var(--surface-alt);
}

.apps-table tbody tr:last-child td {
  border-bottom: 0;
}

.empty-state {
  padding: 36px 20px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  color: var(--ink-2);
  font-size: 14px;
}

/* ---------- Modul 2: Stellen-Editor (Bug 4: Saubere Top-Kante statt abgeschnittener Left-Border + Icon-Buttons) ---------- */
.jobs-admin-list {
  display: grid;
  gap: 12px;
}

.job-admin-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}

.job-admin-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-emerald), var(--brass));
}

.job-admin-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.job-admin-card.is-paused {
  opacity: 0.78;
}

.job-admin-card.is-paused::before {
  background: var(--line-strong);
}

.job-admin-card__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 7px;
}

.job-admin-card__title {
  margin: 0 0 4px;
  font-size: 16.5px;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.job-admin-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 13px;
  color: var(--ink-2);
}

.job-admin-card__salary {
  font-family: var(--font-mono);
  color: var(--brass-ink);
  font-weight: 600;
}

.job-admin-card__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.job-act-btn {
  min-height: 36px;
  padding: 7px 12px;
}

/* ---------- Modul 3: Bulli-QR Studio (Bug 1: Kompaktes 44px Ziel-URL-Feld & saubere Toolbar) ---------- */
.qr-controls {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px 20px;
  align-items: end;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}

.qr-ctl {
  display: grid;
  gap: 7px;
  min-width: 0;
  justify-items: start;
}

.qr-ctl--grow {
  grid-column: 1 / -1;
  justify-items: stretch;
}

.qr-ctl__label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
}

.qr-url-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.qr-url-row .form-input {
  width: 100%;
  height: 44px;
  min-height: 44px;
  max-height: 48px;
  padding: 0 13px;
  line-height: 1.2;
  min-width: 0;
  font-family: var(--font-mono);
  font-size: 13px;
  background: var(--surface-alt);
}

.qr-url-row .form-input:focus {
  background: var(--surface);
}

#qrUseCurrentBtn {
  height: 44px;
  min-height: 44px;
  padding: 0 14px;
}

.qr-ctl__status {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ok-ink);
}

.qr-export-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.check-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
  padding: 6px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--surface-alt);
}

.check-toggle input {
  accent-color: var(--accent-emerald);
}

.qr-stage {
  display: grid;
  gap: 14px;
}

/* Bug 2 & Theme Isolation: Druck-Sheet bleibt unabhängig vom App-Dark-Mode standardmäßig druckgetreu hell */
.print-sheet {
  --ps-bg: #FFFFFF;
  --ps-surface: #F8FAFC;
  --ps-ink: #0B1311;
  --ps-ink-2: #42524E;
  --ps-ink-muted: #647470;
  --ps-brand: #0A2620;
  --ps-brass: #9A6B16;
  --ps-brass-solid: #C8922B;
  --ps-line: rgba(15, 23, 42, 0.12);
  --ps-line-strong: rgba(15, 23, 42, 0.22);

  position: relative;
  overflow: hidden;
  max-width: 100%;
  background: var(--ps-bg);
  color: var(--ps-ink);
  border: 1px solid var(--ps-line-strong);
  border-top: 5px solid var(--ps-brand);
  border-radius: var(--r-md);
  padding: 28px 32px;
  box-shadow: var(--shadow-md);
}

.print-sheet.is-dark {
  --ps-bg: #0A2620;
  --ps-surface: #11352D;
  --ps-ink: #F8FAFC;
  --ps-ink-2: #C8D6D1;
  --ps-ink-muted: #93ABA4;
  --ps-brand: #F8FAFC;
  --ps-brass: #E0AB45;
  --ps-brass-solid: #D9A136;
  --ps-line: rgba(255, 255, 255, 0.14);
  --ps-line-strong: rgba(255, 255, 255, 0.22);

  border-top-color: var(--ps-brass-solid);
}

.print-sheet > * {
  min-width: 0;
}

.print-watermark {
  position: absolute;
  inset: -20% -15%;
  z-index: 10;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  gap: 28px;
  transform: rotate(-22deg);
  user-select: none;
}

.print-watermark span {
  font-family: var(--font-mono);
  font-size: clamp(16px, 2.2vw, 24px);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  color: rgba(10, 38, 32, 0.16);
  border: 2px solid rgba(10, 38, 32, 0.15);
  padding: 6px 18px;
  border-radius: var(--r-sm);
}

.print-sheet.is-dark .print-watermark span {
  color: rgba(248, 250, 252, 0.22);
  border-color: rgba(248, 250, 252, 0.20);
}

/* Normgerechter DIN A4 Quer Bulli-Aufkleber (297 x 210 mm) für 3m-Fernwirkung */
.print-sheet--bulli {
  width: 100%;
  max-width: 840px;
  aspect-ratio: 297 / 210;
  margin: 0 auto;
  padding: 32px 36px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) 268px;
  gap: 28px;
  align-items: center;
}

.print-bulli-left {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  height: 100%;
  min-width: 0;
}

.print-sheet--bulli .print-title {
  font-size: clamp(24px, 2.9vw, 34px);
  line-height: 1.06;
  margin-bottom: 12px;
}

.print-sheet--bulli .print-qr-box {
  padding: 16px;
  display: grid;
  gap: 8px;
  justify-items: center;
}

.print-sheet--bulli .print-qr-box__svg {
  width: 220px;
  max-width: 100%;
  margin-inline: auto;
}

.print-qr-box__hint {
  margin: 0;
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #0A2620;
}

.print-bulli-foot {
  padding-top: 10px;
  border-top: 1px solid var(--ps-line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--ps-brand);
}

/* Luftige A4 / A3 Poster-Proportionen mit großem zentriertem QR */
.print-sheet--poster {
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}

.poster--a4 {
  max-width: 660px;
  aspect-ratio: 210 / 297;
  padding: 36px 40px;
}

.poster--a3 {
  max-width: 720px;
  aspect-ratio: 297 / 420;
  padding: 42px 46px;
}

.print-poster-top {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.print-poster-mid {
  display: grid;
  gap: 22px;
  min-width: 0;
}

.print-poster-qr-center {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--ps-line);
  border-radius: var(--r-md);
  background: var(--ps-surface);
}

.print-poster-qr-center .print-qr-box {
  width: 252px;
  max-width: 100%;
  padding: 16px;
  display: grid;
  gap: 8px;
  justify-items: center;
}

.print-poster-qr-center .print-qr-box__svg {
  width: 204px;
  max-width: 100%;
}

.print-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  min-width: 0;
}

.print-brand__mono {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: #0A2620;
  color: #D9A136;
  font-weight: 800;
  font-size: 13px;
  border-radius: var(--r-sm);
}

.print-sheet.is-dark .print-brand__mono {
  background: #D9A136;
  color: #091814;
}

.print-brand__text {
  min-width: 0;
}

.print-brand__text strong {
  display: block;
  font-size: 15px;
  font-weight: 800;
  color: var(--ps-ink);
}

.print-brand__text span {
  display: block;
  font-size: 12px;
  color: var(--ps-ink-muted);
}

.print-eyebrow {
  margin: 0 0 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ps-brass);
}

.print-title {
  margin: 0 0 14px;
  font-size: clamp(21px, 2.4vw, 30px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--ps-brand);
  overflow-wrap: break-word;
}

.print-jobs {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  min-width: 0;
}

.print-jobs li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--ps-line);
  min-width: 0;
}

.print-jobs li span {
  min-width: 0;
  color: var(--ps-ink);
  overflow-wrap: break-word;
}

.print-jobs em {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ps-brass);
  text-align: right;
  max-width: 56%;
  overflow-wrap: break-word;
}

.print-qr-box {
  background: #FFFFFF;
  border: 1px solid var(--ps-line-strong);
  border-radius: var(--r-sm);
  padding: 12px;
  text-align: center;
  max-width: 100%;
}

.print-qr-box__svg {
  width: 100%;
  max-width: 184px;
  margin-inline: auto;
}

.print-qr-box__url {
  margin: 8px 0 0;
  max-width: 100%;
  font-family: var(--font-mono);
  font-size: clamp(9.5px, 2.5vw, 10.5px);
  line-height: 1.25;
  color: #0A2620;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.print-poster-foot {
  padding-top: 14px;
  border-top: 1px solid var(--ps-line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  font-size: 12.5px;
  color: var(--ps-ink-2);
}

/* ---------- Modul 5: Einstellungen ---------- */
.settings-grid {
  display: grid;
  gap: 16px;
}

.settings-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  padding: 22px 24px;
}

.settings-card__title {
  margin: 0 0 16px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.settings-card__hint {
  margin: -8px 0 14px;
  font-size: 12.5px;
  color: var(--ink-muted);
}

.form-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.form-field {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}

.form-field label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-2);
}

.form-field input,
.form-field select,
.form-field textarea,
.form-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--surface-alt);
  font-size: 13.5px;
  color: var(--ink);
  transition: border-color var(--t-fast) var(--ease),
              background-color var(--t-fast) var(--ease),
              box-shadow var(--t-fast) var(--ease);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus,
.form-input:focus {
  outline: none;
  background: var(--surface);
  border-color: var(--accent-emerald);
  box-shadow: var(--focus-ring);
}

.settings-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.settings-save-msg {
  font-size: 13px;
  font-weight: 700;
  color: var(--ok-ink);
}

@keyframes drawerFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes drawerSlideIn {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

/* ---------- Slide-Over Inspektor ---------- */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: flex;
  justify-content: flex-end;
}

.drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 14, 12, 0.56);
  backdrop-filter: blur(4px);
}

.drawer:not([hidden]) .drawer__backdrop {
  animation: drawerFadeIn 220ms ease;
}

.drawer__panel {
  position: relative;
  width: min(500px, 100%);
  height: 100%;
  background: var(--surface);
  border-left: 1px solid var(--line-strong);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
}

.drawer:not([hidden]) .drawer__panel {
  animation: drawerSlideIn 300ms cubic-bezier(.16, 1, .3, 1);
}

.drawer__head {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-alt);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.drawer__who {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.drawer__avatar {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: var(--forest);
  border: 1px solid var(--forest-line);
  color: var(--brass);
  font-weight: 800;
  border-radius: var(--r-sm);
}

.drawer__title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.drawer__name {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
}

.drawer__job {
  margin: 2px 0;
  font-size: 13px;
  color: var(--ink-2);
}

.drawer__time {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-muted);
}

.drawer__body {
  padding: 18px 20px 28px;
  overflow-y: auto;
  display: grid;
  gap: 18px;
}

.drawer__match {
  padding: 13px 15px;
  background: var(--surface-alt);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
}

.drawer__match-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 5px;
}

.drawer__score {
  font-size: 15px;
  color: var(--brand-text);
}

.drawer__match-reason {
  margin: 0;
  font-size: 12.5px;
  color: var(--ink-2);
}

.drawer__section {
  display: grid;
  gap: 8px;
}

.drawer__section-title {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
}

.drawer__status-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.drawer__status-btn {
  padding: 8px 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--surface-alt);
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease),
              color var(--t-fast) var(--ease);
}

.drawer__status-btn:hover:not(.is-active) {
  background: var(--surface);
  border-color: var(--accent-emerald);
}

.drawer__status-btn.is-active {
  background: var(--btn-primary-bg);
  border-color: var(--btn-primary-border);
  color: var(--btn-primary-ink);
}

.quick-tpl-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
}

.quick-tpl-btn {
  padding: 7px 6px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--surface-alt);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-2);
  cursor: pointer;
  line-height: 1.25;
  transition: background-color var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease),
              color var(--t-fast) var(--ease);
}

.quick-tpl-btn:hover:not(.is-active) {
  border-color: var(--accent-emerald);
  color: var(--ink);
}

.quick-tpl-btn.is-active {
  background: var(--btn-primary-bg);
  border-color: var(--btn-primary-border);
  color: var(--btn-primary-ink);
}

.drawer__textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--surface-alt);
  color: var(--ink);
  font-size: 13px;
  line-height: 1.5;
  resize: vertical;
  transition: border-color var(--t-fast) var(--ease),
              background-color var(--t-fast) var(--ease),
              box-shadow var(--t-fast) var(--ease);
}

.drawer__textarea:focus {
  outline: none;
  background: var(--surface);
  border-color: var(--accent-emerald);
  box-shadow: var(--focus-ring);
}

.drawer__textarea--msg {
  min-height: 124px;
}

.drawer__actions {
  display: grid;
  gap: 8px;
}

.drawer__actions-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.drawer__dl {
  margin: 0;
  border-top: 1px solid var(--line);
}

.drawer__dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
}

.drawer__dl dt {
  color: var(--ink-muted);
}

.drawer__dl dd {
  margin: 0;
  font-weight: 600;
  text-align: right;
  color: var(--ink);
}

.drawer__notes-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer__notes-state {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ok-ink);
}

.drawer__section--danger {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.drawer__delete-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1120px) {
  .board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .kpi-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-quick-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .login-screen {
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
  }

  .login-brand {
    display: none;
  }

  .login-panel {
    padding: 12px 14px 22px;
    justify-content: flex-start;
    gap: 10px;
    width: 100%;
  }

  .login-panel__bar {
    position: static;
    width: min(444px, 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 12px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-xs);
  }

  .login-mobile-brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 13px;
    font-weight: 800;
    color: var(--ink);
    min-width: 0;
  }

  .login-mobile-brand .login-brand__mark {
    width: 24px;
    height: 24px;
    font-size: 12px;
    flex-shrink: 0;
  }

  .login-card {
    padding: 18px 16px;
  }

  .login-card__eyebrow {
    margin-bottom: 4px;
  }

  .login-card__title {
    font-size: 20px;
    margin-bottom: 5px;
  }

  .login-card__desc {
    margin-bottom: 12px;
    font-size: 12.5px;
    line-height: 1.45;
  }

  .login-tabs {
    margin-bottom: 12px;
  }

  .login-card .form-field {
    margin-bottom: 10px;
  }

  .login-divider {
    margin: 12px 0;
  }

  .login-foot {
    margin-top: 14px;
    padding-top: 12px;
  }

  .home-widgets {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .home-section-card--compact {
    padding: 10px 12px;
  }

  .home-quick-bar {
    gap: 6px;
  }

  .quick-pill-btn {
    flex-direction: column;
    gap: 4px;
    padding: 8px 6px;
    font-size: 11px;
    line-height: 1.2;
    text-align: center;
  }

  .pending-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .pending-item__actions {
    width: 100%;
    justify-content: flex-start;
  }

  .app-shell,
  .app-shell.is-collapsed {
    grid-template-columns: minmax(0, 1fr);
  }

  .app-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 252px;
    transform: translateX(-100%);
    transition: transform var(--t-med) var(--ease);
    z-index: 800;
  }

  .app-shell.is-collapsed .app-sidebar {
    width: 252px;
  }

  .app-shell.is-mobile-open .app-sidebar {
    transform: translateX(0);
  }

  .topbar-toggle--mobile {
    display: inline-grid;
  }

  .app-sidebar .sidebar-toggle {
    display: none;
  }

  .sidebar-close {
    display: inline-grid;
  }

  .app-shell.is-collapsed .sidebar-head {
    justify-content: space-between;
    padding: 4px 6px 14px;
  }

  .app-shell.is-collapsed .sidebar-head__title,
  .app-shell.is-collapsed .sb-item__label {
    display: block;
  }

  .app-shell.is-collapsed .sidebar-legal {
    display: flex;
  }

  .app-shell.is-collapsed .sb-item {
    justify-content: flex-start;
    padding: 8px 11px;
  }

  .app-shell.is-collapsed .sb-item__badge {
    position: static;
    padding: 1px 7px;
    font-size: 11px;
  }

  .sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(6, 14, 12, 0.56);
    backdrop-filter: blur(2px);
    z-index: 750;
  }

  .form-grid-2,
  .print-sheet--bulli,
  .job-admin-card,
  .qr-controls {
    grid-template-columns: 1fr;
  }

  .print-sheet--bulli,
  .poster--a4,
  .poster--a3 {
    aspect-ratio: auto;
    padding: 22px 20px;
  }

  .print-sheet--bulli .print-qr-box__svg {
    width: 184px;
  }

  /* Bug 3: Mobile Kanban min-height entfernen & Status-Tabs horizontal scrollbar */
  .col {
    min-height: 0;
  }

  .col.col--empty .col__body {
    padding: 10px 13px;
  }

  .col.col--empty .col__body::after {
    content: "Keine Einträge";
    font-size: 12px;
    color: var(--ink-muted);
  }

  .status-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    width: 100%;
    max-width: 100%;
    padding-bottom: 2px;
  }

  .status-tabs::-webkit-scrollbar {
    display: none;
  }
}

@media (max-width: 760px) {
  .trials-table thead {
    display: none;
  }

  .trials-table,
  .trials-table tbody,
  .trials-table tr,
  .trials-table td {
    display: block;
    width: 100%;
  }

  .trials-table tbody tr {
    padding: 14px;
    border-bottom: 1px solid var(--line-strong);
    display: grid;
    gap: 10px;
  }

  .trials-table tbody tr:last-child {
    border-bottom: 0;
  }

  .trials-table td {
    padding: 0;
    border-bottom: 0;
  }

  .trials-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 3px;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--ink-muted);
  }

  .trial-status-select {
    width: 100%;
  }
}

.drawer__section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.drawer__ai-box {
  padding: 12px 14px;
  background: var(--brass-soft);
  border: 1px solid var(--brass-line);
  border-radius: var(--r-md);
  display: grid;
  gap: 6px;
}

.drawer__ai-box.is-locked {
  background: var(--surface-alt);
  border-style: dashed;
}

.drawer__ai-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.drawer__ai-head-right {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.drawer__ai-title {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brass-ink);
}

.drawer__ai-text {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink);
}

.drawer__ai-hint {
  margin: 0;
  font-size: 12px;
  color: var(--ok-ink);
  font-weight: 600;
}

.btn--xs {
  min-height: 26px;
  padding: 3px 9px;
  font-size: 11.5px;
}

.btn--ai {
  background: var(--brass-soft);
  border-color: var(--brass-line);
  color: var(--brass-ink);
  box-shadow: none;
}

.btn--ai:hover:not(:disabled) {
  background: var(--brass);
  border-color: var(--brass);
  color: #091814;
}

.btn--ai.is-ai-locked {
  background: var(--surface-elev);
  border-color: var(--brass-line);
  color: var(--brass-ink);
}

.job-ai-bar {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding: 10px 12px;
  margin-bottom: 12px;
  background: var(--brass-soft);
  border: 1px solid var(--brass-line);
  border-radius: var(--r-sm);
}

.job-ai-bar__input-wrap {
  flex: 1 1 auto;
  min-width: 0;
  display: grid;
  gap: 5px;
}

.job-ai-bar__input-wrap label {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--brass-ink);
}

.job-ai-bar__input-wrap input {
  width: 100%;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
}

/* ---------- 90-Sekunden-Ersteinrichtungs-Assistent & KI-Upsell Modal ---------- */
.modal__dialog--wide {
  width: min(680px, 100%);
}

.modal__foot--split {
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.modal__foot-right {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-wrap: wrap;
}

.ob-stepper {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 16px;
}

.ob-step-pill {
  padding: 8px 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--surface-alt);
  color: var(--ink-2);
  font-size: 12.5px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}

.ob-step-pill.is-done {
  border-color: var(--ok-line);
  background: var(--ok-bg);
  color: var(--ok-ink);
}

.ob-step-pill.is-active {
  border-color: var(--btn-primary-border);
  background: var(--btn-primary-bg);
  color: var(--btn-primary-ink);
}

.ob-pane__lead {
  margin: 0 0 14px;
  font-size: 13.5px;
  color: var(--ink-2);
}

.ob-job-list {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: grid;
  gap: 8px;
}

.ob-job-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--surface-alt);
}

.ob-job-item__main {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.ob-job-item__main strong {
  font-size: 13.5px;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.ob-job-item__main span {
  font-size: 12px;
  color: var(--ink-muted);
}

.ob-job-empty {
  padding: 12px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-sm);
  font-size: 13px;
  color: var(--ink-muted);
  text-align: center;
}

.ob-quick-job {
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background: var(--surface-elev);
}

.ob-quick-job__title {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
}

.ob-quick-job__row {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.ob-quick-job__salary {
  flex: 1 1 220px;
  margin-bottom: 0;
}

.ob-share-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background: var(--surface-alt);
}

.ob-share-card__qr {
  width: 112px;
  height: 112px;
  padding: 6px;
  border-radius: var(--r-sm);
  background: #FFFFFF;
  border: 1px solid var(--line);
}

.ob-share-card__qr svg {
  width: 100%;
  height: 100%;
}

.ob-share-card__info {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.ob-share-card__label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
}

.ob-share-card__url {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--brand-text);
  overflow-wrap: anywhere;
}

.ob-share-card__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.modal__dialog--compact {
  width: min(480px, 100%);
}

.export-options {
  display: grid;
  gap: 10px;
}

.export-card {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background: var(--surface-alt);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: border-color var(--t-fast) var(--ease),
              background-color var(--t-fast) var(--ease),
              transform var(--t-fast) var(--ease);
}

.export-card:hover {
  border-color: var(--accent-emerald);
  background: var(--surface-elev);
  transform: translateY(-1px);
}

.export-card:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.export-card__icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--brand-text);
}

.export-card__icon svg {
  width: 18px;
  height: 18px;
}

.export-card__text {
  flex: 1 1 auto;
  min-width: 0;
  display: grid;
  gap: 2px;
}

.export-card__text strong {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.export-card__text span {
  font-size: 12.5px;
  line-height: 1.35;
  color: var(--ink-muted);
}

.export-card__badge {
  flex-shrink: 0;
  padding: 4px 9px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--brand-text);
  white-space: nowrap;
}

.export-card__badge.is-done {
  border-color: var(--ok-line);
  background: var(--ok-bg);
  color: var(--ok-ink);
}

.upsell-card {
  padding: 16px;
  border: 1px solid var(--brass-line);
  border-radius: var(--r-md);
  background: var(--brass-soft);
  display: grid;
  gap: 10px;
}

.upsell-price-tag {
  justify-self: start;
}

.upsell-card__copy {
  margin: 0 !important;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.5;
}

.upsell-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: var(--ink-2);
}

@media (max-width: 720px) {
  .topbar-brand__loc {
    display: none;
  }
}

@media (max-width: 640px) {
  .login-tab {
    padding: 8px 6px;
    font-size: 11.5px;
  }

  .app-topbar {
    padding: 0 12px;
    gap: 8px;
  }

  .topbar-crumb__sep,
  .topbar-crumb__title {
    display: none;
  }

  .topbar-brand__name {
    font-size: 13.5px;
  }

  .app-topbar__right {
    gap: 6px;
  }

  .app-topbar__right .btn--sm {
    padding: 6px 9px;
    font-size: 11.5px;
    min-height: 32px;
  }

  .mode-badge {
    display: none;
  }

  .app-workspace {
    padding: 14px 12px 28px;
  }

  .kpi-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .kpi-cell {
    padding: 14px;
  }

  .kpi-cell__val {
    font-size: 24px;
  }

  .home-section-card {
    padding: 16px;
    min-width: 0;
  }

  .share-widget {
    flex-direction: column;
    align-items: stretch;
  }

  .share-widget__qr {
    align-self: center;
  }

  .share-widget__actions .btn {
    width: 100%;
  }

  .home-recent-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .home-recent-item__meta {
    justify-content: flex-start;
  }

  .apps-toolbar {
    padding: 10px;
  }

  .search-wrap {
    max-width: 100%;
    flex-basis: 100%;
  }

  .apps-toolbar__right {
    width: 100%;
    justify-content: space-between;
  }

  .board {
    grid-template-columns: 1fr;
  }

  .job-admin-card {
    padding: 16px;
  }

  .job-admin-card__actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .job-act-btn {
    width: 100%;
    padding: 7px 6px;
    font-size: 12px;
  }

  .quick-tpl-tabs,
  .drawer__actions-row {
    grid-template-columns: 1fr;
  }

  .job-ai-bar,
  .ob-share-card {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .ob-stepper {
    grid-template-columns: 1fr;
  }

  .ob-share-card__qr {
    justify-self: center;
  }

  /* Bug 1: Saubere Mobile-QR-Controls */
  .qr-controls {
    padding: 15px 14px;
    gap: 14px;
  }

  .qr-ctl {
    width: 100%;
    justify-items: stretch;
  }

  .qr-url-row {
    grid-template-columns: 1fr;
  }

  #qrUseCurrentBtn {
    width: 100%;
  }

  .qr-controls .seg {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }

  .qr-controls .seg__btn {
    padding: 9px 6px;
    font-size: 11.5px;
    line-height: 1.25;
    white-space: normal;
    text-align: center;
  }

  .qr-export-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
  }

  .qr-export-row .check-toggle {
    grid-column: 1 / -1;
    justify-content: space-between;
    min-height: 42px;
    padding: 8px 12px;
  }

  .qr-export-row .btn {
    width: 100%;
    min-height: 42px;
    white-space: normal;
    text-align: center;
    line-height: 1.2;
    padding: 8px 10px;
  }

  /* Bug 2: Kein rechtes Abschneiden/Überlaufen auf Mobile */
  .print-sheet {
    padding: 20px 18px;
  }

  .print-jobs li {
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    padding: 9px 0;
  }

  .print-jobs li span {
    width: 100%;
    overflow-wrap: anywhere;
  }

  .print-jobs em {
    max-width: 100%;
    text-align: left;
    white-space: normal;
    overflow-wrap: anywhere;
    font-size: 12px;
    line-height: 1.35;
  }
}

@media (max-width: 480px) {
  #topbarProductLink {
    display: none;
  }
}

/* ---------- Druckansicht (@media print) – Exakt 1 Seite ohne Leer-Überlauf ---------- */
@media print {
  .no-print,
  .app-sidebar,
  .app-topbar,
  .drawer,
  .modal,
  .module-pane:not(#mod-qr) {
    display: none !important;
  }

  html,
  body[data-page="chef"] {
    background: #FFFFFF !important;
    margin: 0 !important;
    padding: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
  }

  .app-shell,
  .app-main,
  .app-workspace,
  #mod-qr,
  .qr-stage {
    display: block !important;
    height: auto !important;
    min-height: 0 !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  .print-sheet {
    border: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    break-inside: avoid !important;
    page-break-inside: avoid !important;
    break-after: avoid !important;
    page-break-after: avoid !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .print-jobs li {
    flex-direction: row !important;
    align-items: baseline !important;
    justify-content: space-between !important;
    gap: 12px !important;
  }

  .print-jobs em {
    max-width: 56% !important;
    text-align: right !important;
  }

  .print-watermark {
    display: flex !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .print-sheet--bulli {
    width: 279mm !important;
    height: 192mm !important;
    max-height: 192mm !important;
    max-width: none !important;
    aspect-ratio: auto !important;
    padding: 12mm 14mm !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 92mm !important;
    gap: 14mm !important;
    align-items: center !important;
  }

  .print-sheet--bulli .print-title {
    font-size: 28pt !important;
    line-height: 1.06 !important;
  }

  .print-sheet--bulli .print-jobs {
    font-size: 13.5pt !important;
  }

  .print-sheet--bulli .print-qr-box__svg {
    width: 76mm !important;
    max-width: none !important;
  }

  .print-qr-box__url {
    font-size: 9.5pt !important;
    white-space: nowrap !important;
  }

  .poster--a4 {
    width: 188mm !important;
    height: 274mm !important;
    max-height: 274mm !important;
    max-width: none !important;
    aspect-ratio: auto !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    padding: 10mm !important;
  }

  .poster--a4 .print-title {
    font-size: 27pt !important;
    line-height: 1.1 !important;
  }

  .poster--a4 .print-jobs {
    font-size: 13pt !important;
  }

  .poster--a4 .print-poster-qr-center {
    padding: 7mm !important;
  }

  .poster--a4 .print-poster-qr-center .print-qr-box {
    width: 92mm !important;
  }

  .poster--a4 .print-qr-box__svg {
    width: 78mm !important;
    max-width: none !important;
  }

  .poster--a3 {
    width: 275mm !important;
    height: 396mm !important;
    max-height: 396mm !important;
    max-width: none !important;
    aspect-ratio: auto !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    padding: 14mm !important;
  }

  .poster--a3 .print-title {
    font-size: 38pt !important;
    line-height: 1.08 !important;
  }

  .poster--a3 .print-jobs {
    font-size: 17pt !important;
  }

  .poster--a3 .print-jobs em {
    font-size: 14pt !important;
  }

  .poster--a3 .print-poster-qr-center {
    padding: 10mm !important;
  }

  .poster--a3 .print-poster-qr-center .print-qr-box {
    width: 138mm !important;
  }

  .poster--a3 .print-qr-box__svg {
    width: 118mm !important;
    max-width: none !important;
  }
}
