/* Reiter Data › Einsatzstichworte (Schritt 2.7, Skizze data-stichworte.html). Präfix stw-. */
.stw { position: absolute; inset: 0; display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 6px; color: var(--tx); font-weight: 400; }
.stw.mit-info { grid-template-columns: 320px minmax(0, 1fr) 460px; }
.stw .pn > .b { overflow: hidden; }
.stw .pn > .h .stw-titel { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-transform: none; letter-spacing: 0; font-size: 13.5px; color: var(--tx); }

/* Auswahl */
.stw-neu { flex: none; border: 1px dashed var(--ln2); border-radius: 6px; padding: 6px; display: flex; flex-direction: column; gap: 4px; }
.stw-neu .inp { flex: 1; height: 28px; }
.stw-auswahl > .b > .inp { flex: none; }
.stw-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Bearbeitung */
.stw-itabs { display: flex; gap: 4px; align-items: center; flex: none; }
.stw-itabs [role="tab"] { display: flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 5px; background: var(--p2); border: 1px solid var(--ln2); color: var(--mu); font-size: 13.5px; white-space: nowrap; cursor: pointer; }
.stw-itabs [role="tab"]:hover { color: var(--tx); background: var(--p3); }
.stw-itabs [role="tab"].an { background: var(--ac2); border-color: var(--ac); color: var(--an-tx); }
.stw-itabs [role="tab"]:focus-visible { outline: 2px solid var(--ac); outline-offset: 1px; }
.stw-infoknopf { margin-left: auto; }
.stw-tabc { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 8px; }
.stw-grow { flex: 1; min-width: 0; }
.stw-fuell { flex: 1; min-height: 0; }
.stw-ta { flex: 1; min-height: 0; line-height: 1.45; }
.stw-mono { font-family: var(--mono); font-size: 13px; line-height: 1.5; }
.stw-g2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px 14px; flex: none; }
.stw-g2.stw-fuell { flex: 1; }
.stw-g2 .zeile .btn { flex: none; }

/* Fragen */
.stw-fkopf { flex: none; flex-wrap: nowrap; }
.stw-fliste { flex: 0 1 auto; min-height: 70px; overflow: auto; display: flex; flex-direction: column; gap: 4px; padding: 2px; }
.stw-q { display: flex; align-items: center; gap: 8px; min-height: 32px; padding: 2px 8px; border-radius: 4px; background: var(--p2); font-size: 13.5px; flex: none; }
.stw-nr { min-width: 18px; text-align: right; }
.stw-griff { flex: none; background: none; border: none; color: var(--mu); font-size: 16px; line-height: 1; padding: 3px 4px; border-radius: 3px; cursor: grab; }
.stw-griff:hover { color: var(--tx); background: var(--p3); }
.stw-griff:focus-visible { outline: 2px solid var(--ac); outline-offset: 0; color: var(--tx); }
.stw-qtext { flex: 1; min-width: 0; text-align: left; background: none; border: none; padding: 5px 0; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; border-radius: 3px; }
.stw-qtext:hover { color: var(--tx); }
.stw-qtext:focus-visible { outline: 2px solid var(--ac); outline-offset: 1px; }
.stw-stern, .stw-pq.pflicht b { color: var(--warn); }
.stw-qtyp { flex: none; max-width: 45%; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stw-qc { flex: none; border: 2px solid var(--ac); background: var(--info-bg2); border-radius: 6px; padding: 8px 10px; display: flex; flex-direction: column; gap: 7px; }
.stw-qc-zeile { display: flex; align-items: flex-end; gap: 10px; }
.stw-qc-zeile > .btn { flex: none; }
.stw-qnr { display: flex; align-items: center; gap: 2px; padding-bottom: 4px; font-size: 16px; flex: none; }
.stw-pflicht { padding-bottom: 6px; flex: none; }
.stw-qc .seg button { padding: 6px 12px; }
.stw-qc .seg button:focus-visible { outline: 2px solid var(--ac); outline-offset: -2px; }
.stw-chips { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.stw-chipx { background: none; border: none; color: var(--mu); font-size: 11px; padding: 0 0 0 3px; cursor: pointer; line-height: 1; }
.stw-chipx:hover:not(:disabled) { color: var(--err-tx); }
.stw-chipx:disabled { opacity: .35; cursor: default; }
.stw-chipx:focus-visible { outline: 2px solid var(--ac); border-radius: 2px; }
.stw-neuopt { width: 200px; height: 26px; font-size: 13px; }
/* Antwort-Chips: ziehen / Alt+←→ = Reihenfolge, Doppelklick / Enter = umbenennen (Q10) */
.stw-opt { cursor: grab; user-select: none; }
.stw-opt:hover { border-color: var(--ac); }
.stw-opt:focus-visible { outline: 2px solid var(--ac); outline-offset: 1px; }
.stw-opt.drop-links { box-shadow: -3px 0 0 var(--ac); }
.stw-opt.drop-rechts { box-shadow: 3px 0 0 var(--ac); }
.stw-optedit { width: auto; min-width: 90px; max-width: 320px; height: 26px; font-size: 13px; padding: 0 6px; }
.stw-zieht { opacity: .45; }
.stw-q.drop-vor, .stw-qc.drop-vor { box-shadow: 0 -3px 0 var(--ac); }
.stw-q.drop-nach, .stw-qc.drop-nach { box-shadow: 0 3px 0 var(--ac); }
.stw-fhinweis { flex: none; }
.stw-vorschau { flex: 1 1 0; min-height: 260px; margin-top: 2px; }
.stw-vorschau > .b { gap: 4px; overflow: auto !important; }
.stw-modtag { font-family: var(--mono); font-size: 11px; text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--link); background: var(--info-bg); border: 1px solid var(--ac2); border-radius: 3px; padding: 0 5px; }
.stw-vhinweis { flex: none; white-space: pre-wrap; padding: 4px 8px; border-left: 3px solid var(--ln2); }
.stw-pq { flex: none; display: flex; align-items: center; gap: 8px; padding: 5px 8px; border-radius: 4px; background: var(--p2); font-size: 13.5px; }
.stw-pq .t { flex: 1; min-width: 0; }
.stw-pq .hinweis { font-size: 12.5px; }
.stw-pq.pflicht { outline: 1px solid var(--warn); background: var(--warn-bg); }
.stw-pin { flex: none; height: 26px; border-radius: 5px; background: var(--inp); border: 1px solid var(--ln2); }

/* Differentialdiagnosen */
.stw-ddvorschau { display: flex; flex-wrap: wrap; gap: 6px; align-content: flex-start; max-height: 100%; overflow: auto; }
.stw-ddknopf { cursor: default; }
.stw-mehrdeutig { color: var(--warn); }

/* Info-Einsatzmittel */
.stw-info > .h { background: var(--p3); }
.stw-x { margin-left: auto; background: none; border: none; color: var(--mu); font-size: 15px; cursor: pointer; padding: 2px 6px; border-radius: 4px; }
.stw-x:hover { background: var(--p4); color: var(--tx); }
.stw-x:focus-visible { outline: 2px solid var(--ac); }
.stw-info > .b > * { flex: none; }
.stw-info > .b > .stw-emliste { flex: 1 1 0; min-height: 80px; }
.stw-info > .b > .stw-zug { flex: 0 1 auto; min-height: 100px; max-height: 38%; }
.stw-emliste { overflow: auto; display: flex; flex-direction: column; gap: 2px; border-radius: 6px; padding: 2px; }
.stw-zug { border: 1px dashed var(--ln2); padding: 4px; }
.stw-emliste.ziel { outline: 2px dashed var(--ac); outline-offset: -2px; }
.stw-em { flex: none; display: flex; align-items: center; gap: 8px; padding: 4px 8px; border-radius: 4px; background: var(--p2); font-size: 13.5px; white-space: nowrap; cursor: grab; }
.stw-em:hover { background: var(--p3); }
.stw-em:focus-visible { outline: 2px solid var(--ac); outline-offset: -2px; }
.stw-sq { flex: none; min-width: 22px; height: 22px; padding: 0 3px; border-radius: 3px; display: inline-grid; place-items: center; font-weight: 700; font-size: 12.5px; }
.stw-emname { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.stw-emorg { margin-left: auto; font-size: 12.5px; }
.stw-leer { padding: 6px; font-size: 13px; }
.stw .inp[readonly] { background: var(--p2); color: var(--mu); }

/* Schnellwahl der Notrufabfrage: 16 Plätze (2×8), unten über die ganze Breite (Wunsch 2026-11-19) */
.stw { grid-template-rows: minmax(0, 1fr) auto; }
.stw-sw { grid-column: 1 / -1; }
.stw-sw > .b { padding: 6px; }
.stw-sw-hint { font-weight: 400; text-transform: none; letter-spacing: 0; font-size: 12px; }
.stw-sw-raster { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 5px; }
.stw-sw-platz { position: relative; height: 50px; border: 1px dashed var(--ln2); border-radius: 6px; padding: 4px 22px 4px 8px; display: flex; flex-direction: column; justify-content: center; min-width: 0; background: var(--p2); font-size: 12px; line-height: 1.15; }
.stw-sw-platz.belegt { border-style: solid; background: var(--p3); cursor: grab; }
.stw-sw-platz.ziel { outline: 2px solid var(--ac); outline-offset: -2px; background: var(--info-bg2); }
.stw-sw-platz b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stw-sw-platz small { color: var(--mu); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stw-sw-nr { position: absolute; left: 4px; top: 2px; font: 600 9.5px var(--mono); color: var(--mu2); }
.stw-sw-platz > b, .stw-sw-platz > .mu { margin-left: 8px; }
.stw-sw-platz > small { margin-left: 8px; }
.stw-sw-x { position: absolute; right: 3px; top: 3px; border: 0; background: none; color: var(--mu); cursor: pointer; font-size: 12px; padding: 2px 4px; border-radius: 3px; }
.stw-sw-x:hover { background: var(--p4); color: var(--tx); }
