/* Funk-Ansicht (F9; Skizzen funk-raster.html, funk-dialoge.html) und Funk-Kurzanzeige der Statusleiste (U7). Präfix fk-, sb-funk */
.fk { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 6px; outline: none; }
.fk-sec { font-size: 12px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--mu); border-bottom: 1px solid var(--ln); padding-bottom: 3px; margin-top: 4px; }
.fk-zeile { display: flex; gap: 8px; align-items: center; min-width: 0; }
.fk-wachse { flex: 1; min-width: 0; }
.fk .sm { font-size: 12.5px; }

/* ---------- Kopfleiste ---------- */
.fk-leiste { display: flex; align-items: center; gap: 12px; height: 40px; flex: none; padding: 0 10px; background: var(--p1); border: 1px solid var(--ln); border-radius: 6px; font-size: 14px; min-width: 0; white-space: nowrap; }
.fk-info, .fk-pttinfo { color: var(--mu); overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.fk-info b, .fk-pttinfo u { color: var(--tx); }
.fk-pttinfo .kbd { font: 700 12px var(--mono); border: 1px solid var(--ln2); border-radius: 4px; padding: 1px 6px; color: var(--tx); }
.fk-warn { background: var(--warn-bg); border: 1px solid var(--warn); color: var(--warn-tx); border-radius: 4px; padding: 3px 10px; font: inherit; font-size: 13px; cursor: pointer; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.fk-ablagechip { height: 24px; cursor: pointer; flex: none; }
.fk-leiste-r { margin-left: auto; display: flex; gap: 6px; flex: none; }

/* ---------- Raster ---------- */
.fk-haupt { flex: 1; min-height: 0; display: flex; gap: 6px; }
.fk-ablage { width: 250px; flex: none; }
.fk-ablage-liste { overflow: auto; gap: 6px; }
.fk-ab { display: flex; align-items: center; gap: 8px; height: 40px; flex: none; padding: 0 10px 0 0; background: var(--p1); border: 2px dashed var(--ln2); border-radius: 4px; cursor: grab; overflow: hidden; touch-action: none; user-select: none; font-size: 13.5px; font-weight: 600; }
.fk-ab .st { width: 7px; align-self: stretch; background: var(--mu2); flex: none; }
.fk-ab .kw { font: 700 11.5px var(--mono); color: var(--mu); }
.fk-ab .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fk-ab:focus-visible { outline: 2px solid var(--ac); outline-offset: 1px; }
.fk-raster { flex: 1; min-width: 0; min-height: 0; overflow: auto; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; align-content: start; padding: 2px; position: relative; }
.fk-raster.bearb { border: 1px dashed var(--ln2); border-radius: 6px; }
.fk-zelle { border: 1px dashed #2b3b4c88; border-radius: 3px; }
.fk-geist { border: 2px dashed var(--ac); background: #4c8dff22; border-radius: 4px; pointer-events: none; z-index: 2; }
.fk-geist.err { border-color: var(--err); background: #d9423a22; }
.fk-zieht { opacity: .4; }
.fk-leer { display: grid; place-items: center; color: var(--mu); border: 1px dashed var(--ln2); border-radius: 6px; font-size: 16px; padding: 30px; text-align: center; }
.fk-ue { display: flex; align-items: flex-end; gap: 10px; min-width: 0; padding: 0 4px 5px; font-size: 13px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; color: var(--mu); border-bottom: 2px solid var(--ln2); outline: none; z-index: 1; }
.fk-ue .t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fk-ue .gr { margin-left: auto; font: 700 11px var(--mono); color: var(--ac); flex: none; }
.fk-ue:focus-visible { box-shadow: 0 2px 0 var(--ac); color: var(--tx); }
.fk-raster.bearb .fk-ue { border: 1px dashed var(--ac); border-radius: 4px; background: #4c8dff14; cursor: move; touch-action: none; user-select: none; align-items: center; padding: 0 8px; }

/* Rufgruppen-Card = PTT */
.fk-k { display: flex; min-width: 0; background: var(--p1); border: 2px solid var(--ln2); border-radius: 4px; overflow: hidden; cursor: pointer; user-select: none; -webkit-user-select: none; touch-action: pan-y; outline: none; z-index: 1; transition: background-color .12s, border-color .12s; }
.fk-k:hover { background: var(--p2); }
.fk-k:focus-visible { box-shadow: 0 0 0 2px var(--ac); }
.fk-k .st { width: 8px; flex: none; background: var(--mu2); }
.fk-k .in { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 8px 12px; }
.fk-k .k1 { display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 700; min-width: 0; white-space: nowrap; }
.fk-k .kw { font: 700 12.5px var(--mono); color: var(--mu); flex: none; }
.fk-k .nm { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.fk-k .r { margin-left: auto; display: flex; gap: 5px; align-items: center; flex: none; }
.fk-k .k2 { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--mu); min-width: 0; white-space: nowrap; }
.fk-k .txt { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.fk-k .zeit { margin-left: auto; font-family: var(--mono); flex: none; }
.fk-bc-n { font-size: 12px; color: var(--mu); font-weight: 600; }
/* Beacon-Dialog */
.fk-bc { display: flex; flex-direction: column; gap: 10px; }
.fk-bc-liste { max-height: 300px; overflow: auto; }
.fk-bc-liste table.tab td { vertical-align: middle; }
.fk-bc-inhalt { max-width: 340px; overflow: hidden; text-overflow: ellipsis; }
.fk-bc-knoepfe { display: flex; gap: 4px; justify-content: flex-end; }
.fk-bc-form { border: 1px solid var(--ln2); border-radius: 6px; background: var(--p1); padding: 10px 12px; }
.fk-bc-titel { font-weight: 700; margin-bottom: 8px; }
.fk-bc-raster { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 8px 12px; align-items: center; }
.fk-bc-l { color: var(--mu); font-size: 13px; }
.fk-bc-feld { flex-wrap: wrap; }
.fk-bc-text { flex: 1; min-width: 0; height: 64px; resize: vertical; }
.fk-bc-treffer { flex-wrap: wrap; }
.fk-bc-treffer .chip { cursor: pointer; }
.fk-bc-feld .chip { cursor: pointer; }
.fk-bc-vorschau { font-size: 13px; color: var(--ok-tx); background: var(--ok-bg); border: 1px solid var(--ok); border-radius: 6px; padding: 8px 10px; }
.fk-pegel { font-size: 12px; color: var(--mu); font-weight: 600; }
.win.fk-pg { width: 340px; z-index: 33; }
.win.fk-pg > .h { cursor: default; }
.win.fk-pg > .h .dlg-x { margin-left: auto; }
.fk-pg-wert { width: 52px; text-align: right; }
.fk-ptt-kanal { color: var(--ac); font-size: 16px; }
.fk-vox { font-size: 10.5px; font-weight: 800; border: 1px solid var(--ac); color: var(--link); border-radius: 3px; padding: 0 4px; }
.fk-neu { font-size: 11px; font-weight: 800; background: var(--err); color: #fff; border-radius: 8px; padding: 0 6px; }
.fk-k.kanal { border-color: var(--ac); }
.fk-k.spricht { background: var(--ok-bg); border-color: var(--ok); }
.fk-k.spricht .k2 { color: var(--ok-tx); }
.fk-k.vor, .fk-k.wartet { background: var(--warn-bg); border-color: var(--warn); }
.fk-k.vor .k2, .fk-k.wartet .k2 { color: var(--warn-tx); }
.fk-k.ich { background: #8c1410; border-color: #fff; }
.fk-k.ich .k2, .fk-k.ich .kw { color: #fff; }
.fk-k.belegt { box-shadow: inset 0 0 0 2px var(--err); }
.fk-k.belegt .k2 { color: var(--err-tx); }
.fk-k.aus { opacity: .55; border-style: dashed; }
.fk-k.aus .st { background: var(--ln); }
.fk-k.gesp { opacity: .65; }
.fk-k.bearb { cursor: move; touch-action: none; }
.fk-lvl { display: flex; gap: 2px; align-items: flex-end; height: 14px; flex: none; }
.fk-lvl[hidden] { display: none; }
.fk-lvl i { width: 3px; height: 2px; background: var(--ok); border-radius: 1px; transition: height .08s; }

/* ---------- Chat-Dialog ---------- */
.fk-chatdlg { display: flex; flex-direction: column; gap: 6px; height: 560px; }
.fk-chat-hinweis { text-align: center; flex: none; }
.fk-mehr { align-self: center; flex: none; }
.fk-msgs { flex: 1; min-height: 0; overflow: auto; display: flex; flex-direction: column; gap: 6px; }
.fk-msgs > :first-child { margin-top: auto; }
.fk-msg { display: flex; flex-direction: column; gap: 2px; padding: 6px 9px; border-radius: 6px; background: var(--p1); font-size: 13.5px; max-width: 86%; align-self: flex-start; white-space: pre-wrap; overflow-wrap: anywhere; flex: none; }
.fk-msg.ich { align-self: flex-end; background: var(--ac2); }
.fk-msg .m { font-size: 11.5px; color: var(--mu); }
.fk-msg .fk-alsm { margin-left: 8px; padding: 0 6px; border-radius: 4px; background: none; border: 1px solid var(--ln2); color: var(--link); font: inherit; font-size: 11px; cursor: pointer; }
.fk-msg .fk-alsm:hover { background: var(--ac2); color: var(--an-tx); }
.fk-msg.ich .m { color: var(--info-tx); }
.fk-chat-eingabe { display: flex; gap: 8px; flex: none; }
.fk-chat-inp { flex: 1; }
.fk-tts-feld { width: 100%; height: 110px; resize: vertical; }

/* ---------- Dialoge ---------- */
.fk-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.fk-chips .chip { cursor: pointer; height: 28px; }
.fk-ton { gap: 14px; align-items: flex-end; }
.fk-regler { flex: 1; accent-color: var(--ac); min-width: 0; }
.fk-ms { width: 100px; }
.fk-wert { width: 50px; text-align: right; }
.fk-medienliste { height: 260px; overflow: auto; display: flex; flex-direction: column; gap: 2px; border: 1px solid var(--ln); border-radius: 6px; padding: 4px; outline: none; }
.fk-medienliste:focus-visible { outline: 2px solid var(--ac); }
.fk-li { display: flex; align-items: center; gap: 8px; padding: 5px 8px; border-radius: 4px; background: var(--p2); font-size: 13.5px; white-space: nowrap; cursor: pointer; flex: none; }
.fk-li .n { overflow: hidden; text-overflow: ellipsis; }
.fk-li .r { margin-left: auto; }
.fk-li.sel { background: var(--ac2); }
.fk-li-laeuft { background: var(--ok-bg); border: 1px solid var(--ok); cursor: default; }
.fk-laeuft { display: flex; flex-direction: column; gap: 4px; }
.fk-zwei { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fk-spalte { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.fk-fuss { grid-column: 1 / 3; }
.fk-meter { height: 14px; border-radius: 3px; background: linear-gradient(90deg, var(--ok) 0 60%, var(--warn) 60% 85%, var(--err) 85%); position: relative; }
.fk-meter i { position: absolute; right: 0; top: 0; bottom: 0; background: color-mix(in srgb, var(--inp) 90%, transparent); transition: width .06s; }
.fk-meter b { position: absolute; top: -4px; bottom: -4px; width: 2px; background: #fff; }
.fk-taste { display: flex; align-items: center; }
.fk-taste.fk-lauscht { border-color: var(--warn); color: var(--warn-tx); }
.fk-rechts { margin-left: auto; }
.fk-kv { grid-template-columns: 110px 1fr; }
.win.fk-bs-fenster { width: 760px; z-index: 32; }
.fk-bs-fenster > .h .dlg-x { margin-left: auto; }
.fk-bs-tipp { font-weight: 400; }
.fk-bs-fenster .fk-buchst { max-height: 360px; }
.fk-buchst { display: flex; flex-wrap: wrap; gap: 6px; min-height: 60px; max-height: 420px; overflow: auto; align-content: flex-start; }
.fk-bz { display: inline-flex; gap: 6px; align-items: baseline; padding: 4px 8px; border-radius: 5px; background: var(--p2); border: 1px solid var(--ln); font-size: 15px; }
.fk-bz b { font-family: var(--mono); color: var(--mu); }
.fk-bz.wort { background: none; border-style: dashed; color: var(--mu); font-size: 12.5px; }
.fk-bz.unbekannt { border-color: var(--warn); }

/* ---------- Statusleiste (U7) ---------- */
.sb > .sb-funk { cursor: pointer; max-width: 380px; overflow: hidden; }
.sb > .sb-funk:hover { background: var(--p2); }
.sb > .sb-funk:focus-visible { outline: 2px solid var(--ac); outline-offset: -2px; }
.sb > .sb-funk b { overflow: hidden; text-overflow: ellipsis; }
.sb > .sb-funk.rot { background: var(--err-bg); color: var(--err-tx); }
.sb > .sb-funk.sendet { background: #b3291f; color: #fff; }
.sb > .sb-funk.spricht { color: var(--ok-tx); }
.sb > .sb-funk.vorrang { color: var(--warn-tx); }
.sb > .sb-funk.warn { color: var(--warn-tx); }
