/*
  Lokani – Plakette (bis 0.53: Tabler .badge mit bg-<farbe>-lt / bg-<farbe> + text-<farbe>-fg) und die Prüfplakette (HU).
  Werte aus den berechneten Stilen von 0.53.0 (werkzeug/stilmessung.py). Status immer mit Wort.
  Die Farbvarianten setzen Farbe und Fläche mit !important wie Tablers bg-*-Klassen, damit sie wie dort auch auf anderen
  Bausteinen wirken (z. B. initialen plakette--gruen) und eigene Regeln der Bereiche wie auf 0.53 verlieren oder gewinnen.
*/
.plakette {
  display: inline-flex; gap: .25rem; align-items: center; justify-content: center;
  min-width: calc(1em + .25em * 2 + 2px); padding: .25em .5em; overflow: hidden;
  font-size: .85714285em; font-weight: 600; line-height: 1; letter-spacing: .04em;
  color: var(--text-leise); text-align: center; white-space: nowrap; vertical-align: bottom; user-select: none;
  border: 1px solid transparent; border-radius: var(--radius);
}
/* ohne Farbvariante grau. Zwei :not() wie auf 0.53 (.badge:not([class*="bg-"]):not([class*="text-bg"]) in erp.css):
   so stark, dass eigene Klassen der Bereiche (.plakette.abc-A …) wie damals dagegen verlieren */
.plakette:not([class*="plakette--"]):not([class*="-voll"]) { background: var(--text-leise-hell); color: var(--text-leise); }
.plakette .icon { width: 1em; height: 1em; font-size: 1em; stroke-width: 2; }

/* hell getönt: Schrift in der Farbe, Fläche 10 % */
.plakette--gruen { color: var(--gruen) !important; background-color: var(--gruen-hell) !important; }
.plakette--gelb { color: var(--gelb) !important; background-color: var(--gelb-hell) !important; }
.plakette--rot { color: var(--rot) !important; background-color: var(--rot-hell) !important; }
.plakette--blau { color: var(--blau) !important; background-color: var(--blau-hell) !important; }
.plakette--grau { color: var(--text-leise) !important; background-color: var(--text-leise-hell) !important; }
.plakette--primaer { color: var(--primaer-text) !important; background-color: var(--primaer-hell) !important; }
.plakette--tuerkis { color: var(--primaer) !important; background-color: color-mix(in oklab, var(--primaer) 10%, transparent) !important; }
.plakette--azur { color: var(--azur) !important; background-color: var(--azur-hell) !important; }

/* voll: helle Schrift auf der Farbe (primary: tiefes Lagune mit Weiß) */
.plakette--gruen-voll, .plakette--gelb-voll, .plakette--rot-voll, .plakette--blau-voll, .plakette--grau-voll,
.plakette--tuerkis-voll, .plakette--azur-voll { color: var(--auf-farbe) !important; }
.plakette--gruen-voll { background-color: var(--gruen) !important; }
.plakette--gelb-voll { background-color: var(--gelb) !important; }
.plakette--rot-voll { background-color: var(--rot) !important; }
.plakette--blau-voll { background-color: var(--blau) !important; }
.plakette--grau-voll { background-color: var(--text-leise) !important; }
.plakette--primaer-voll { background-color: var(--erp-primaer-flaeche) !important; color: #fff !important; }
.plakette--tuerkis-voll { background-color: var(--primaer) !important; }
.plakette--azur-voll { background-color: var(--azur) !important; }

/* Prüfplakette (HU) in der amtlichen Jahresfarbe – bis 0.54 hieß sie .plakette (erp.css) */
.pruefplakette { width: 26px; height: 26px; border-radius: 50%; flex: none; display: grid; place-items: center;
  font-size: .68rem; font-weight: 750; color: #1a1a1a; box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .14), 0 0 0 1px var(--linie);
  background: conic-gradient(rgba(0, 0, 0, .18) 0 var(--monat-winkel, 0deg), transparent 0), var(--plakette, #ccc); }
.pruefplakette.jahr-0 { --plakette: #2f6fd0; color: #fff; }
.pruefplakette.jahr-1 { --plakette: #f2d21b; }
.pruefplakette.jahr-2 { --plakette: #8b5a2b; color: #fff; }
.pruefplakette.jahr-3 { --plakette: #ec9fbf; }
.pruefplakette.jahr-4 { --plakette: #44a854; }  /* 0.74: dunkle Ziffer wie auf der echten Plakette (Weiß hatte nur 3 : 1) */
.pruefplakette.jahr-5 { --plakette: #f28c28; }
/* ---------- aus erp.css (0.54, Task 20; Werte unverändert) ---------- */
.hu { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }   /* fahrzeuge/_hu.html: Prüfplakette + Monat */
/* HU/AU-Marke (Termine, Aufträge, Online-Anfragen; Farbe --hu in tokens.css) */
.hu-marke {
  display: inline-flex; align-items: center; flex: none; white-space: nowrap;
  background: var(--hu); color: var(--auf-hu); border-radius: 4px; padding: 1px 7px;
  font-size: .78rem; font-weight: 800; letter-spacing: .03em; line-height: 1.35;
}
/* Wartekunde (0.61): Kunde bleibt da – tiefschwarz, mit Uhr; neben HU/AU gleich laut, aber klar anders */
.wartet-marke {
  display: inline-flex; align-items: center; gap: 3px; flex: none; white-space: nowrap;
  background: var(--text); color: var(--flaeche); border-radius: 4px; padding: 1px 7px 1px 5px;
  font-size: .78rem; font-weight: 800; letter-spacing: .02em; line-height: 1.35;
}
.wartet-marke .icon { width: .95em; height: .95em; stroke-width: 2.5; }
h1 .marke-pill { font-size: .75rem; vertical-align: middle; padding: .3em .6em; }
.schild-gesperrt { background: var(--rot-flaeche); color: var(--rot); font-weight: 600; }   /* Kunde gesperrt (kunde_schild) */
.farbpunkt { display: inline-block; width: 16px; height: 16px; border-radius: 4px; border: 1px solid var(--linie); vertical-align: middle; }
