/* ---------- Taktische Zeichen (Nachtrag 2026-11-17; Skizze taktische-zeichen.html) ---------- */
/* Bildkästchen: Zeichen sind schwarz auf transparent → heller Hintergrund */
.tz-mini, .tz-bild, .tz-gross { display: inline-flex; align-items: center; justify-content: center; background: #f4f6f8; border-radius: 4px; flex: none; overflow: hidden; }
.tz-mini { width: 44px; height: 32px; padding: 2px; }
.tz-bild { width: 100%; height: 64px; padding: 4px; }
.tz-gross { width: 100%; height: 170px; padding: 12px; border-radius: 8px; }
.tz-mini img, .tz-bild img, .tz-gross img { max-width: 100%; max-height: 100%; display: block; }
.tz-ohne { color: var(--mu); font-size: 12px; }
.tz-mini:has(.tz-ohne) { background: var(--p3); }

/* Raster und Kacheln */
.tz-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; align-content: start; overflow: auto; min-height: 0; padding: 2px; }
.tz-raster-dlg { max-height: 360px; }
.tz-kachel { position: relative; display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 7px 6px 6px; border-radius: 7px; background: var(--p2); border: 1px solid var(--ln); color: var(--tx); font: inherit; font-size: 12.5px; line-height: 1.15; text-align: center; cursor: pointer; min-width: 0; }
.tz-kachel:hover { border-color: var(--ln2); }
.tz-kachel.sel { outline: 2px solid var(--ac); background: var(--info-bg2); }
.tz-kachel.aus { opacity: .45; }
.tz-kachel .tz-n { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tz-kachel small { color: var(--mu); font-size: 11px; }
.tz-zahl { position: absolute; top: 3px; right: 4px; font-size: 11px; background: var(--info-bg); border: 1px solid var(--ac); border-radius: 9px; padding: 0 6px; color: var(--info-tx); }
.tz-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.tz-chips .chip { cursor: pointer; height: 26px; }
.tz-chips .chip.an { background: var(--ac2); border-color: var(--ac); color: var(--an-tx); }
.tz-dlg { display: flex; flex-direction: column; gap: 8px; }
.tz-vorschlag { display: flex; align-items: center; gap: 10px; border: 1px dashed var(--ok); border-radius: 7px; padding: 6px 9px; background: var(--ok-bg); font-size: 13.5px; }

/* Data › Taktische Zeichen */
.tz { position: absolute; inset: 0; display: grid; grid-template-columns: 250px minmax(0, 1fr) 380px; grid-template-rows: minmax(0, 1fr); gap: 6px; overflow: hidden; }
.tz > .pn > .b { gap: 8px; min-height: 0; }
.tz-kat { display: flex; justify-content: space-between; align-items: center; padding: 6px 9px; border-radius: 5px; font: inherit; font-size: 14px; background: var(--p2); border: 1px solid transparent; color: var(--tx); cursor: pointer; text-align: left; }
.tz-kat:hover { border-color: var(--ln2); }
.tz-kat.sel { background: var(--ac2); outline: 1px solid var(--ac); }
.tz-kat small { color: var(--mu); }
.tz-kat.sel small { color: #dbe7ff; }
.tz-kv { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 5px 10px; font-size: 13.5px; }
.tz-kv > span:nth-child(odd) { color: var(--mu); }
.tz-kv .mono { font-size: 12px; word-break: break-all; }

/* Einsatzmittel-Formular */
.tz-feld { display: flex; align-items: center; gap: 10px; background: var(--p1); border: 1px solid var(--ln2); border-radius: 6px; padding: 5px 8px; min-height: 44px; }
.tz-feld .tz-mini { width: 60px; height: 42px; }
.tz-feld .tz-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.tz-feld .tz-txt b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tz-feld .tz-txt span { color: var(--mu); font-size: 12px; }

/* Karte: Zeichen-Marker */
.tzk { display: flex; flex-direction: column; align-items: center; gap: 2px; transform: translate(-50%, -50%); width: max-content; }
.tzk .k { position: relative; display: flex; background: #fffffff2; border: 1px solid #0003; border-radius: 5px; padding: 2px; box-shadow: 0 2px 6px #0005; }
.tzk .k img { width: 56px; height: auto; display: block; pointer-events: none; }
.tzk.kl .k img { width: 42px; }
.tzk.gr .k img { width: 72px; }
.tzk .stb { position: absolute; top: -9px; right: -11px; min-width: 22px; height: 22px; padding: 0 3px; border-radius: 4px; border: 2px solid #fff; font: 800 12px var(--mono); display: flex; align-items: center; justify-content: center; box-sizing: border-box; }
.tzk .q { position: absolute; top: -9px; left: -11px; font-size: 12px; background: #fff; border-radius: 50%; width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; box-shadow: 0 1px 3px #0005; }
.tzk .kn { background: #111a23e6; color: #fff; border-radius: 9px; padding: 0 7px; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.tzk.frei .kn { background: color-mix(in srgb, var(--warn-bg) 90%, transparent); }
.tzk.ziehbar { cursor: grab; }
.tz-marker-icon { background: none; border: none; }
.kt-zieh { cursor: grab; }
.kt-zieh.zieht { opacity: .5; }
.kt-flaeche.ziel { outline: 3px dashed var(--ac); outline-offset: -3px; }
.li .tz-mini { width: 40px; height: 28px; }
.li .stq { width: 20px; height: 20px; border-radius: 3px; font: 800 11px var(--mono); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.li .qq { margin-left: auto; font-size: 12px; color: var(--mu); white-space: nowrap; }
.kt-seite .h .seg button { padding: 2px 9px; font-size: 12px; }
.kt-em.ziehbar { cursor: grab; }
/* Hinweis: leaflet.css setzt Bilder in Markern auf width:auto – die Breite der Zeichen steht deshalb inline am <img>. */
/* Gruppen unter Zoom 13 (Wunsch 2026-11-17): Anzahl und Status, Überfahren zeigt die Liste */
.tz-gruppe { display: inline-flex; align-items: center; gap: 5px; transform: translate(-50%, -50%); padding: 3px 7px 3px 3px; border-radius: 16px; background: #111a23f0; border: 2px solid #fff; box-shadow: 0 2px 8px #0009; cursor: zoom-in; white-space: nowrap; }
.tz-gruppe > b { min-width: 24px; height: 24px; border-radius: 12px; background: var(--ac2); color: var(--an-tx); font: 800 13px var(--mono); display: grid; place-items: center; padding: 0 5px; }
.tz-gruppe span { display: inline-flex; gap: 2px; }
.tz-gruppe i { min-width: 16px; height: 16px; border-radius: 3px; font: 800 10px var(--mono); font-style: normal; display: grid; place-items: center; padding: 0 2px; }
.tz-gruppe i.mehr { background: none; color: #fff; }
.leaflet-tooltip.tz-liste { padding: 6px 8px !important; border-radius: 8px !important; white-space: nowrap; }
.tz-liste .tzl-kopf { font-size: 11.5px; color: var(--mu); margin-bottom: 4px; }
.tz-liste .tzl { display: flex; align-items: center; gap: 6px; font-size: 12.5px; padding: 2px 0; }
.tz-liste .tzl-bild { width: 34px; height: 24px; border-radius: 3px; background: #f4f6f8; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.tz-liste .tzl-bild:empty { background: transparent; }
.tz-liste .tzl b { min-width: 18px; height: 18px; border-radius: 3px; font: 800 11px var(--mono); display: grid; place-items: center; padding: 0 2px; }
.tz-liste .tzl-k { font-weight: 700; }
.tz-liste .tzl small { margin-left: auto; padding-left: 10px; color: var(--mu); font-size: 11px; }
.tz-liste .tzl-mehr { font-size: 11.5px; color: var(--mu); margin-top: 3px; }
