/* Checklisten (checklisten.js, Wunsch Philipp 17.10.2026) – baut auf den Klassen aus fuhrpark.css auf (fp-seite, fp-karte, fp-dlg, fp-ck, fp-map …).
   Handy zuerst, Tippflächen mindestens 44 px, Animationen leicht und bei „Bewegung reduzieren“ aus. */
.cl-karten { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 14px; }
.cl-karte { display: grid; gap: 8px; align-content: start; animation: fp-rein .35s ease both; animation-delay: calc(var(--i, 0) * 70ms); }
.cl-karte .fp-h2 { margin: 0; }
.cl-karte .fp-h2 svg { color: var(--red); }
.cl-dlg .fp-dlg-titel small:empty { display: none; }
.cl-text { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
.cl-aktionen { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.cl-aktionen .btn { flex: 1 1 auto; }
.cl-aktionen .btn[disabled] { opacity: .5; cursor: not-allowed; }

.cl-uebersicht > summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; gap: 4px 10px; flex-wrap: wrap; list-style-position: inside; }
.cl-uebersicht > summary small { color: var(--muted); }
.cl-liste { list-style: none; margin: 8px 0 0; padding: 0; display: grid; }
.cl-liste > li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); min-width: 0; }
.cl-liste > li:first-child { border-top: 0; }
.cl-kz { flex: none; font-weight: 800; font-size: 13px; letter-spacing: .02em; border: 2px solid #2b2926; border-radius: 6px; background: #fff; padding: 2px 8px; white-space: nowrap; }
.cl-fz { display: grid; min-width: 0; flex: 1 1 auto; overflow-wrap: anywhere; }
.cl-fz small { color: var(--muted); font-size: 12.5px; }
.cl-liste > li.alt .cl-fz small { color: var(--fp-orange); font-weight: 700; }
.cl-erg { flex: none; font-size: 12.5px; font-weight: 800; border-radius: 999px; padding: 3px 10px; }
.cl-erg.ok { background: var(--fp-gruen-bg); color: var(--fp-gruen); }
.cl-erg.mangel { background: var(--fp-orange-bg); color: var(--fp-orange); }

/* Ausfüllen */
.cl-p { position: relative; }
.cl-p.unklar { background: var(--fp-orange-bg); border-color: #e3b27a; }
.cl-p.mangel { background: var(--fp-rot-bg); border-color: #e8b0b0; }
.cl-marke { margin-left: auto; font-style: normal; font-size: 12px; font-weight: 800; padding-left: 8px; text-align: right; }
.cl-p.unklar .cl-marke { color: var(--fp-orange); }
.cl-p.mangel .cl-marke { color: var(--fp-rot); }
.cl-ki { display: grid; gap: 6px; background: var(--fp-blau-bg); color: #163d70; border-radius: 10px; padding: 10px 12px; font-size: 14px; }
.cl-ki b { display: flex; align-items: center; gap: 8px; }
.cl-ki summary { cursor: pointer; min-height: 40px; display: flex; align-items: center; font-weight: 700; }
.cl-ki img { max-width: 100%; max-height: 60vh; border-radius: 8px; display: block; margin: 4px auto 0; }
.cl-entwurf { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; background: var(--fp-gelb-bg); color: #5f4300; }

/* Fertig / Warten */
.cl-ende { text-align: center; justify-items: center; padding-block: 22px; }
.cl-ende h2 { margin: 0; font-size: 20px; }
.cl-ende p { margin: 0; }
.cl-haken { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; animation: fp-haken .45s cubic-bezier(.2, .9, .3, 1.3) both; }
.cl-haken svg { width: 42px; height: 42px; stroke-width: 2.4; }
.cl-haken.ok { background: var(--fp-gruen-bg); color: var(--fp-gruen); }
.cl-haken.mangel { background: var(--fp-orange-bg); color: var(--fp-orange); }
.cl-maengel { text-align: left; margin: 0; padding-left: 20px; display: grid; gap: 4px; max-width: 520px; }
.cl-ende .fp-dlg-fuss { width: 100%; }
.cl-warte { text-align: center; justify-items: center; padding-block: 30px; }
.cl-warte p { margin: 0; }
.cl-kreis { width: 46px; height: 46px; border-radius: 50%; border: 4px solid var(--line); border-top-color: var(--red); animation: cl-dreh 1s linear infinite; }
@keyframes cl-dreh { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .cl-karte, .cl-haken, .cl-kreis { animation: none; } }
@media (max-width: 520px) { .cl-aktionen .btn { flex-basis: 100%; } }

/* Druck: Prüfblatt zum Ausfüllen von Hand, eine A4-Seite (Seitenrand 0 aus index.html → Rand im Blatt) */
@media print {
  #druck .cl-druck { display: block; padding: 9mm 14mm; font: 10pt/1.3 Arial, Helvetica, sans-serif; color: #111; }
  .cl-druck header { display: flex; gap: 6mm; align-items: center; border-bottom: 2pt solid #e63741; padding-bottom: 2mm; margin-bottom: 4mm; }
  .cl-druck header img { height: 11mm; }
  .cl-druck header h1 { font-size: 16pt; margin: 0; }
  .cl-druck header span { color: #555; font-size: 8.5pt; }
  .cl-kopfraster { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2mm 3mm; margin-bottom: 4mm; }
  .cl-feld { border-bottom: .8pt solid #111; min-height: 10mm; display: flex; flex-direction: column; justify-content: flex-end; }
  .cl-feld span { font-size: 7pt; color: #666; text-transform: uppercase; letter-spacing: .04em; }
  .cl-feld b { font-size: 10.5pt; }
  .cl-tab { width: 100%; border-collapse: collapse; }
  .cl-tab th { font-size: 8pt; text-align: left; color: #555; border-bottom: 1pt solid #111; padding: 1mm 2mm; }
  .cl-tab th:nth-child(n+3), .cl-kast { text-align: center; width: 24mm; }
  .cl-tab td { border-bottom: .5pt solid #aaa; height: 8mm; padding: 0 2mm; }
  .cl-nr { width: 9mm; color: #777; }
  .cl-box { display: inline-block; width: 5.5mm; height: 5.5mm; border: 1pt solid #111; border-radius: .8mm; vertical-align: middle; }
  .cl-messen { margin-top: 4mm; display: grid; gap: 2.5mm; }
  .cl-m { display: flex; flex-wrap: wrap; gap: 1mm 4mm; align-items: center; }
  .cl-m > span { font-weight: 700; }
  .cl-m > i { display: inline-block; width: 24mm; border-bottom: .8pt solid #111; height: 6mm; }
  .cl-m small { color: #666; }
  .cl-m .cl-wahl { font-weight: 400; display: inline-flex; align-items: center; gap: 1.4mm; }
  .cl-m .cl-ab { margin-left: 4mm; }
  .cl-m .cl-skala { flex-basis: 100%; font-size: 7pt; }
  .cl-bem { margin-top: 4mm; }
  .cl-bem span { font-size: 8pt; color: #666; }
  .cl-bem i { display: block; border-bottom: .6pt solid #888; height: 8mm; }
  .cl-unter { margin-top: 8mm; width: 90mm; border-top: .8pt solid #111; font-size: 8pt; color: #555; padding-top: 1mm; }
  .cl-druck footer { display: block; max-width: none; text-align: left; margin-top: 4mm; padding-top: 2mm; border-top: .5pt solid #ccc; font-size: 7pt; color: #666; }
  #druck .cl-druck * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
