    /* ── Job-Detail (Vollbild-Overlay, Reißbrett-3-Spalten wie 1A) ──── */
    .detail {
      display: none;
      position: fixed;
      inset: 0;
      z-index: 100;
      background: var(--color-bg);
      color: var(--color-text);
      overflow-y: auto;
    }
    .detail.open { display: block; }

    .detail-close { position: fixed; top: 20px; right: 24px; z-index: 101; }
    .detail-hide-btn {
      font-family: var(--font-heading); font-weight: var(--font-heading-weight);
      font-size: 12px; letter-spacing: 0.04em;
      padding: 4px 10px;
    }

    /* Farbiger Rand + Uhrzeit rechts setzt render()/openDetail() per
       CSSOM (CSP style-src ohne 'unsafe-inline'), siehe app.js. */
    .detail-header {
      display: flex;
      align-items: flex-start;
      gap: 24px;
      padding: 34px 80px 30px 32px;
      border-bottom: 1px solid var(--color-divider);
      border-left: 8px solid var(--ev-bar);
    }
    .detail-header-main { flex: 1; min-width: 0; }
    .detail-eyebrow-row {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-bottom: 10px;
      font-family: var(--font-heading); font-weight: var(--font-heading-weight);
      font-size: 12px;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--color-text-muted);
    }
    .detail-show-swatch { width: 14px; height: 8px; background: var(--ev-bar); flex-shrink: 0; }
    .detail-title { font-size: 40px; line-height: 1; margin-bottom: 12px; }
    .detail-tags { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
    .detail-header-time { flex-shrink: 0; text-align: right; }
    .detail-time-range {
      font-family: var(--font-heading); font-weight: var(--font-heading-weight);
      font-size: 30px; margin-bottom: 4px; white-space: nowrap;
    }
    .detail-time-date { font-size: 14px; color: var(--color-text-muted); white-space: nowrap; }

    .detail-columns {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      align-items: start;
    }
    .detail-col {
      padding: 28px 32px;
      display: flex;
      flex-direction: column;
      gap: 26px;
    }
    .detail-col + .detail-col { border-left: 1px solid var(--color-divider); }
    .detail-col-scroll {
      max-height: calc(100vh - 220px);
      overflow-y: auto;
    }

    .detail-section-title {
      font-family: var(--font-heading); font-weight: var(--font-heading-weight);
      font-size: 11px;
      text-transform: uppercase;
      letter-spacing: 0.12em;
      color: var(--color-text-muted);
      margin-bottom: 12px;
    }
    .detail-section-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; }
    .detail-section-head .detail-section-title { margin-bottom: 0; }

    .stat-row { display: flex; gap: 28px; margin-bottom: 14px; }
    .stat-num {
      font-family: var(--font-heading); font-weight: var(--font-heading-weight);
      font-size: 32px; line-height: 1;
    }
    .stat-label { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-text-muted); margin-top: 3px; }

    .staff-list {
      list-style: none;
      display: flex;
      flex-direction: column;
    }
    .staff-list li {
      display: flex; justify-content: space-between; gap: 10px;
      padding: 8px 0; border-bottom: 1px solid var(--color-divider-soft);
      font-size: 14px;
    }
    .staff-list li:last-child { border-bottom: none; }
    .staff-pending { color: var(--color-text-muted); font-size: 11px; }
    .vehicle-meta { color: var(--color-text-muted); font-size: 12px; margin-top: 2px; }

    .staff-category {
      display: block !important;
      border-bottom: none !important;
      padding: 0 !important;
      margin-bottom: 4px;
    }
    .staff-category:last-child { margin-bottom: 0; }
    .staff-cat-name {
      font-family: var(--font-heading);
      font-weight: var(--font-heading-weight);
      font-size: 11px;
      letter-spacing: 0.04em;
      color: var(--color-text-muted);
      text-transform: uppercase;
      display: inline-block;
      margin-top: 10px;
    }
    .staff-cat-count {
      font-size: 11px;
      color: var(--color-text-muted);
      margin-left: 6px;
    }
    .staff-sublist {
      list-style: none;
      display: flex;
      flex-direction: column;
      padding-left: 0;
      margin: 0;
    }
    .staff-sublist li {
      display: flex; justify-content: space-between; gap: 10px;
      padding: 6px 0; border-bottom: 1px solid var(--color-divider-soft);
      font-size: 14px;
    }
    .staff-sublist li:last-child { border-bottom: none; }

    .contact-card {
      padding: 13px 15px;
      display: flex;
      align-items: center;
      gap: 12px;
      margin-bottom: 8px;
    }
    .contact-card:last-child { margin-bottom: 0; }
    .contact-card-body { flex: 1; }
    .contact-card-role { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-text-muted); }
    .contact-card-name { font-family: var(--font-heading); font-weight: var(--font-heading-weight); font-size: 17px; }
    .detail-meta-text { font-size: 13px; color: var(--color-text-muted); }
    .contact-card-phone { flex-shrink: 0; color: var(--color-accent); font-size: 13px; white-space: nowrap; }

    .detail-text {
      font-size: 14px;
      line-height: 1.6;
      white-space: pre-wrap;
      overflow-wrap: break-word;
    }

    .detail-md {
      font-size: 14px;
      line-height: 1.6;
      overflow-wrap: break-word;
    }
    .detail-md .detail-empty { color: var(--color-text-muted); }
    .detail-md h3, .detail-md h4, .detail-md h5, .detail-md h6 {
      font-family: var(--font-heading);
      font-weight: var(--font-heading-weight);
      letter-spacing: 0.03em;
      margin: 16px 0 6px;
    }
    .detail-md h3 { font-size: 15px; }
    .detail-md h4 { font-size: 13px; color: var(--color-text-muted); }
    .detail-md h5, .detail-md h6 { font-size: 12px; color: var(--color-text-muted); }
    .detail-md .md-p { margin: 0 0 8px; }
    .detail-md ul, .detail-md ol { padding-left: 18px; margin: 6px 0 10px; }
    .detail-md li { margin-bottom: 3px; }
    .detail-md .md-hr { border: none; border-top: 1px solid var(--color-divider); margin: 14px 0; }
    .detail-md strong, .detail-md b { font-weight: 600; }
    .detail-md em, .detail-md i { font-style: italic; }
    .detail-md a { color: var(--color-accent); text-decoration: none; }
    .detail-md a:hover { text-decoration: underline; }
    .detail-md code {
      font-family: monospace;
      font-size: 12px;
      background: var(--color-divider-soft);
      padding: 1px 4px;
      border-radius: 3px;
    }
    .detail-md table {
      width: 100%;
      border-collapse: collapse;
      font-size: 13px;
      margin: 8px 0 12px;
    }
    .detail-md th, .detail-md td {
      text-align: left;
      padding: 5px 8px;
      border-bottom: 1px solid var(--color-divider-soft);
    }
    .detail-md th {
      font-family: var(--font-heading);
      font-weight: var(--font-heading-weight);
      font-size: 11px;
      letter-spacing: 0.04em;
      color: var(--color-text-muted);
      border-bottom-color: var(--color-divider);
    }
    .detail-md tr:last-child td { border-bottom: none; }

    .comment-item { border-left: 2px solid var(--color-divider); padding-left: 12px; margin-bottom: 12px; }
    .comment-item:last-child { margin-bottom: 0; }
    .comment-meta { font-size: 11px; color: var(--color-text-muted); margin-bottom: 2px; }

    .attachments-list {
      list-style: none;
      display: flex;
      flex-direction: column;
      font-size: 14px;
    }
    .attachments-list li {
      padding: 9px 0; border-bottom: 1px solid var(--color-divider-soft);
      display: flex; gap: 8px;
    }
    .attachments-list li:last-child { border-bottom: none; }

    @media (max-width: 960px) {
      .detail-columns { grid-template-columns: 1fr; }
      .detail-col + .detail-col { border-left: none; border-top: 1px solid var(--color-divider); }
      /* Gestapelt statt nebeneinander: die dritte Spalte braucht ihren
         eigenen Scroll-Bereich nur, wenn die Spalten nebeneinander stehen
         (die anderen bleiben dann trotzdem sichtbar). Gestapelt scrollt
         stattdessen .detail als Ganzes – sonst dieselbe abgeschnittene
         Mini-Scrollbox wie im Settings-Modal (siehe dortiger Bugfix). */
      .detail-col-scroll { max-height: none; overflow-y: visible; }
    }
    @media (max-width: 720px) {
      .detail-header { flex-direction: column; gap: 14px; padding: 24px 60px 20px 20px; }
      .detail-header-time { text-align: left; }
      .detail-title { font-size: 28px; }
      .detail-col { padding: 22px 20px; }
    }

