:root {
  /* Stil von www.sifa.koeln: warmes Off-White, Anthrazit, Signalrot */
  --bg: #f4f3f1; --panel: #fff; --text: #1f1f21; --muted: #5e5e61; --line: #e4e2de;
  --side: #ffffff; --side-text: #444447; --accent: #e30613; --accent-d: #b80510; --accent-l: #fde7e8;
  --ok: #15803d; --ok-l: #dcfce7; --dark: #101011;
  --red: #e30613; --red-l: #fde7e8; --amber: #d97706; --amber-l: #fef3c7; --blue: #2563eb; --blue-l: #dbeafe;
  --radius: 4px; --shadow: 0 1px 2px rgba(16, 16, 17, .05), 0 2px 10px rgba(16, 16, 17, .04);
  --serif: Georgia, "Times New Roman", serif;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px; color: var(--text);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); }
a { color: var(--accent-d); text-decoration: none; }
h1 { font-size: 1.7rem; margin: 0 0 4px; font-weight: 760; letter-spacing: -.03em; }
h3 { font-size: 1.02rem; margin: 0; }
small { font-size: .82em; }
.muted { color: var(--muted); }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
code { background: #f1f5f9; padding: 1px 6px; border-radius: 4px; }

/* Shell */
.shell { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.side { border-right: 1px solid var(--line); background: var(--side); color: var(--side-text); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brand { display: block; padding: 18px 22px 8px; }
.brand img { width: 100%; display: block; }
.switch { padding: 6px 14px 12px; }
.switch select { width: 100%; border-radius: 99px; background: var(--bg); border-color: var(--line); }
.company-name { color: var(--text); font-weight: 600; padding: 4px 4px; }
.side nav { display: flex; flex-direction: column; padding: 4px 8px; flex: 1; }
.side nav a { color: var(--side-text); padding: 9px 14px; border-radius: 99px; margin-bottom: 2px; display: flex; gap: 10px; align-items: center; font-size: .94rem; }
.side nav a i { font-style: normal; width: 18px; text-align: center; opacity: .8; }
.side nav a:hover { background: var(--bg); color: var(--text); }
.side nav a.active { background: var(--accent); color: #fff; font-weight: 700; }
.nav-group { font-size: .72rem; text-transform: uppercase; letter-spacing: .18em; padding: 18px 14px 6px; color: var(--muted); font-weight: 700; }
.me { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-top: 1px solid var(--line); }
.me small { display: block; color: var(--muted); }
.me b { color: var(--text); font-weight: 600; font-size: .9rem; }
main { padding: 26px 32px 60px; min-width: 0; }
.menu-btn { display: none; }

/* Elements */
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head p { margin: 0; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.btn { border: 1px solid var(--line); background: #fff; color: var(--text); border-radius: 8px; padding: 8px 14px; font: inherit; font-size: .9rem; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.btn:hover { border-color: #cbd5e1; background: #f8fafc; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-d); }
.btn.danger { color: var(--red); }
.btn.danger:hover { background: var(--red-l); border-color: #fecaca; }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.sm { padding: 4px 9px; font-size: .82rem; }
.btn.block { width: 100%; justify-content: center; margin-top: 8px; padding: 11px; }
.btn:disabled { opacity: .5; cursor: default; }
.icon-btn { background: none; border: none; color: inherit; cursor: pointer; font-size: 1.05rem; padding: 4px 6px; border-radius: 6px; }
.icon-btn:hover { background: rgba(127, 127, 127, .15); }
input, select, textarea { font: inherit; font-size: .92rem; padding: 7px 10px; border: 1px solid #cbd5e1; border-radius: 7px; background: #fff; color: var(--text); width: 100%; }
input:focus, select:focus, textarea:focus { outline: 2px solid #86efac; border-color: var(--accent); }
textarea { resize: vertical; }
input[type=checkbox], input[type=radio] { width: auto; }
.back { display: inline-block; margin-bottom: 10px; font-size: .9rem; }
.badge { display: inline-block; padding: 2px 9px; border-radius: 99px; font-size: .78rem; font-weight: 600; background: #f1f5f9; color: var(--muted); white-space: nowrap; }
.badge.ok { background: var(--accent-l); color: var(--accent-d); }
.badge.warn { background: var(--amber-l); color: #92400e; }
.badge.err { background: var(--red-l); color: #991b1b; }
.badge.info { background: var(--blue-l); color: #1e40af; }
.risk { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: .78rem; font-weight: 700; white-space: nowrap; }
.risk.high { background: var(--red); color: #fff; }
.risk.mid { background: #facc15; color: #422006; }
.risk.low { background: #4ade80; color: #052e16; }
.prio { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.prio.hoch { color: var(--red); } .prio.mittel { color: var(--amber); } .prio.niedrig { color: var(--muted); }
.note { padding: 12px 16px; border-radius: var(--radius); margin-bottom: 16px; }
.note.warn { background: var(--amber-l); color: #78350f; }
.empty { text-align: center; padding: 50px 20px; color: var(--muted); background: var(--panel); border: 1px dashed var(--line); border-radius: var(--radius); }

/* Panels, KPIs, cards */
.panel { background: var(--panel); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; margin-bottom: 18px; border: 1px solid var(--line); }
.panel > header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; gap: 10px; }
.panel > header a { font-size: .85rem; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 20px; }
.kpi { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); border-left: 4px solid var(--accent); }
.kpi.alert { border-left-color: var(--red); }
.kpi span { display: block; font-size: .82rem; color: var(--muted); }
.kpi b { display: block; font-size: 1.9rem; margin: 2px 0; }
.kpi small { color: var(--muted); }
.dash-grid { align-items: start; display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 0 18px; }
.dash-grid.two { grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.card { display: block; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; color: var(--text); box-shadow: var(--shadow); transition: .15s; }
.card:hover { border-color: var(--accent); transform: translateY(-1px); }
.card p { margin: 4px 0 10px; }
.mini { display: flex; gap: 10px; flex-wrap: wrap; font-size: .84rem; color: var(--muted); align-items: center; }
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.list li:last-child { border: none; }
.list li small { display: block; color: var(--muted); }
.list li b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: 600; font-size: .92rem; }
.chart { width: 100%; height: 150px; display: block; }
.chart-val { font-size: 3px; fill: var(--muted); }
.chart-labels { display: flex; } .chart-labels span { flex: 1; text-align: center; font-size: .72rem; color: var(--muted); }
.hbars { display: flex; flex-direction: column; gap: 7px; }
.hbar { display: grid; grid-template-columns: 130px 1fr 30px; gap: 8px; align-items: center; font-size: .86rem; }
.hbar-t { background: #f1f5f9; border-radius: 4px; height: 10px; overflow: hidden; }
.hbar-t i { display: block; height: 100%; background: var(--accent); }
.riskbar { display: flex; border-radius: 6px; overflow: hidden; margin-bottom: 10px; font-size: .8rem; font-weight: 600; }
.riskbar span { padding: 8px 6px; text-align: center; white-space: nowrap; overflow: hidden; }
.riskbar .high { background: var(--red); color: #fff; } .riskbar .mid { background: #facc15; } .riskbar .low { background: #4ade80; }

/* Tables */
.table-wrap { overflow-x: auto; background: var(--panel); border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); margin-bottom: 18px; }
.panel .table-wrap { box-shadow: none; }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th { text-align: left; font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); background: #f8fafc; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.table td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child td { border-bottom: none; }
.table tr.click { cursor: pointer; } .table tr.click:hover td { background: #f8fafc; }
.table tr.inactive td { opacity: .55; }
.table.compact td, .table.compact th { padding: 6px 8px; }
.clip { max-width: 280px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.chip { display: inline-block; font-size: .7rem; padding: 1px 6px; border-radius: 4px; margin: 1px; background: #f1f5f9; color: #94a3b8; text-decoration: line-through; }
.chip.read { background: var(--blue-l); color: #1e40af; text-decoration: none; }
.chip.write { background: var(--accent-l); color: var(--accent-d); text-decoration: none; }

/* Forms & modal */
.grid-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.field { display: flex; flex-direction: column; gap: 5px; font-size: .86rem; }
.field > span { font-weight: 600; color: #334155; }
.field small { color: var(--muted); }
.full { grid-column: 1 / -1; }
.form-section { margin: 16px 0 6px; font-size: .9rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.check, .radio { display: inline-flex; align-items: center; gap: 6px; font-weight: 400 !important; margin-right: 14px; cursor: pointer; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px; margin-top: 8px; }
.modal-bg { position: fixed; inset: 0; background: rgba(15, 23, 42, .45); display: flex; align-items: flex-start; justify-content: center; padding: 5vh 16px; z-index: 50; overflow-y: auto; }
.modal { background: #fff; border-radius: 14px; width: 560px; max-width: 100%; box-shadow: 0 20px 60px rgba(0, 0, 0, .25); }
.modal.wide { width: 820px; }
.modal header, .modal footer { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; }
.modal header { border-bottom: 1px solid var(--line); }
.modal footer { border-top: 1px solid var(--line); justify-content: flex-end; gap: 8px; }
.modal-body { padding: 18px 20px; max-height: 70vh; overflow-y: auto; }
.perm td { padding: 6px 8px; }
.dl { display: grid; grid-template-columns: 200px 1fr; gap: 6px 14px; margin: 0; }
.dl dt { color: var(--muted); font-size: .86rem; } .dl dd { margin: 0; }
.dl.inline { grid-template-columns: auto 1fr auto 1fr auto 1fr; }
#toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--text); color: #fff; padding: 11px 20px; border-radius: 10px; opacity: 0; transition: .25s; pointer-events: none; z-index: 100; max-width: 90vw; }
#toast.show { opacity: 1; transform: translateX(-50%); }
#toast.err { background: var(--red); }

/* Login */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; background: radial-gradient(circle at 80% 20%, rgba(227, 6, 19, .22), transparent 45%), var(--dark); }
.login-card { background: #fff; padding: 34px; border-radius: var(--radius); width: 430px; max-width: 100%; box-shadow: 0 25px 60px rgba(0, 0, 0, .3); text-align: center; }
.login-card form { text-align: left; margin-top: 18px; }
.code-input { font-size: 1.6rem !important; letter-spacing: .5em; text-align: center; font-family: ui-monospace, monospace; }
.dev { margin-top: 16px; background: var(--amber-l); color: #78350f; padding: 10px 12px; border-radius: 8px; font-size: .86rem; text-align: left; }
.sent { font-size: .9rem; color: var(--muted); }

/* GBU */
.generator { border-left: 4px solid var(--accent); }
.generator textarea { font-size: 1.02rem; margin: 10px 0; }
.gen-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.gen-row label { display: flex; gap: 6px; align-items: center; font-size: .88rem; }
.gen-row select { width: auto; }
.gbu-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px 16px; }
#save-state { margin-left: 8px; font-size: .82rem; } #save-state.err { color: var(--red); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; flex-wrap: wrap; }
.tabs button { background: none; border: none; padding: 10px 14px; font: inherit; font-size: .92rem; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs button.active { color: var(--accent-d); border-bottom-color: var(--accent); font-weight: 600; }
.toolbar { display: flex; justify-content: flex-end; gap: 4px; margin-bottom: 6px; }
.activity { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; box-shadow: var(--shadow); }
.activity > header { display: flex; align-items: center; gap: 12px; padding: 13px 16px; cursor: pointer; }
.activity > header:hover { background: #f8fafc; border-radius: var(--radius); }
.chev { transition: .15s; color: var(--muted); }
.activity.open .chev { transform: rotate(90deg); }
.a-title { flex: 1; } .a-title small { display: block; color: var(--muted); }
.a-meta { font-size: .84rem; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.a-body { padding: 0 16px 16px; border-top: 1px solid var(--line); }
.a-head { grid-template-columns: repeat(4, 1fr); margin: 14px 0; }
.table.hz td { padding: 8px 6px; }
.table.hz textarea, .table.hz input, .table.hz select { font-size: .84rem; padding: 5px 7px; }
.table.hz td.ws select { width: 48px; padding: 4px; margin-right: 2px; }
.rb { margin-top: 6px; }
.stop { margin-top: 4px; } .stop input { width: 70px; text-transform: uppercase; }
.table.hz td input[type=date] { margin-top: 4px; }
.del { font-size: .9rem; margin-top: 4px; }
.a-actions { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.matrix td, .matrix th { text-align: center; } .matrix { max-width: 560px; margin: 10px 0 16px; }
.help p { line-height: 1.6; }
.lib-list { max-height: 320px; overflow-y: auto; border: 1px solid var(--line); border-radius: 8px; margin-top: 8px; }
.lib-item { display: flex; gap: 10px; padding: 9px 12px; border-bottom: 1px solid var(--line); cursor: pointer; align-items: flex-start; }
.lib-item:hover { background: #f8fafc; } .lib-item small { display: block; color: var(--muted); }

/* Begehung, Fotos, Unterweisung */
.photos { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.photos img { width: 84px; height: 64px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }
.photo-preview { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 12px; }
.ph { position: relative; } .ph img { width: 100px; height: 76px; object-fit: cover; border-radius: 6px; }
.ph button { position: absolute; top: -6px; right: -6px; border: none; background: var(--red); color: #fff; border-radius: 50%; width: 20px; height: 20px; cursor: pointer; font-size: .7rem; }
.finding { display: flex; gap: 14px; }
.f-num { width: 30px; height: 30px; border-radius: 50%; background: var(--accent-l); color: var(--accent-d); display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; }
.f-body { flex: 1; } .f-body p { margin: 6px 0; } .f-head { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.f-act { display: flex; flex-direction: column; gap: 6px; }
.due-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.due { padding: 10px 12px; border-radius: 8px; border-left: 4px solid var(--accent); background: #f8fafc; }
.due.warn { border-left-color: var(--amber); } .due.err { border-left-color: var(--red); background: #fff5f5; }
.due small { display: block; color: var(--muted); }
.sig { height: 40px; }
.sigpad { width: 100%; height: 180px; border: 2px dashed #cbd5e1; border-radius: 8px; touch-action: none; background: #fff; display: block; margin-bottom: 6px; }
.inline-form { display: flex; gap: 6px; margin-top: 10px; }

/* Mobil */
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; left: -270px; width: 260px; z-index: 40; transition: .2s; }
  .side.open { left: 0; box-shadow: 0 0 40px rgba(0, 0, 0, .4); }
  main { padding: 16px 16px 60px; }
  .menu-btn { display: inline-block; background: var(--side); color: #fff; border: none; border-radius: 8px; padding: 6px 12px; font-size: 1.1rem; margin-bottom: 12px; }
  .grid-form, .a-head { grid-template-columns: 1fr; }
  .dash-grid, .dash-grid.two { grid-template-columns: 1fr; }
  .dl, .dl.inline { grid-template-columns: 1fr; }
  .table.hz thead { display: none; }
  .table.hz, .table.hz tbody, .table.hz tr, .table.hz td { display: block; width: 100% !important; }
  .table.hz tr { border-bottom: 2px solid var(--line); padding: 8px 0; }
  .table.hz td { border: none; padding: 4px 0; }
  .kpi b { font-size: 1.5rem; }
}

/* Druck */
#print-root { display: none; }
@media print {
  @page { size: A4 landscape; margin: 12mm; }
  body.printing > *:not(#print-root) { display: none !important; }
  body.printing #print-root { display: block; font-size: 9.5pt; color: #000; }
  body { background: #fff; }
  .print-head { display: flex; justify-content: space-between; align-items: flex-end; border-bottom: 2px solid #e30613; padding-bottom: 6px; margin-bottom: 12px; }
  #print-root h1 { font-size: 16pt; margin: 0 0 8px; }
  #print-root h2 { font-size: 12pt; margin: 14px 0 2px; page-break-after: avoid; }
  #print-root h3 { font-size: 11pt; margin: 10px 0 4px; }
  .meta { width: 100%; margin-bottom: 8px; border-collapse: collapse; } .meta td { padding: 3px 6px; border: 1px solid #999; }
  .ptable { width: 100%; border-collapse: collapse; margin-bottom: 8px; }
  .ptable th, .ptable td { border: 1px solid #888; padding: 3px 5px; vertical-align: top; text-align: left; }
  .ptable th { background: #eee; } .ptable tr { page-break-inside: avoid; }
  .r-high { background: #fca5a5; font-weight: 700; } .r-mid { background: #fde68a; } .r-low { background: #bbf7d0; }
  .small { font-size: 8.5pt; color: #333; }
  .signs { display: flex; gap: 30px; margin-top: 40px; page-break-inside: avoid; }
  .signs div { flex: 1; border-top: 1px solid #000; padding-top: 4px; font-size: 8.5pt; }
  .pfinding { page-break-inside: avoid; border-bottom: 1px solid #ccc; padding-bottom: 8px; }
  .pfinding img { max-width: 48%; max-height: 220px; margin: 4px 4px 0 0; }
  .sigtable td { height: 36px; } .sigtable img { height: 32px; }
}

/* ---- sifa.koeln: Website-Stil ---- */
.btn { border-radius: 99px; padding: 8px 16px; }
.btn.primary { font-weight: 700; }
.btn.sm { padding: 4px 11px; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(227, 6, 19, .18); border-color: var(--accent); }
input, select, textarea { border-color: #d6d3ce; border-radius: 4px; }
.badge.ok, .chip.write { background: var(--ok-l); color: var(--ok); }
.kpi { border-left-color: var(--text); }
.kpi.alert { border-left-color: var(--accent); }
.kpi b { letter-spacing: -.03em; font-weight: 760; }
.f-num { background: var(--text); color: #fff; }
.due { border-left-color: var(--ok); background: var(--bg); }
.table th { background: #faf9f7; letter-spacing: .12em; font-size: .72rem; }
.table tr.click:hover td { background: #faf9f7; }
.panel > header h3, .modal header h3 { font-weight: 700; }
.page-head h1::before { content: ""; display: block; width: 44px; height: 2px; background: var(--accent); margin-bottom: 12px; }
.tabs button.active { color: var(--text); }
.menu-btn { background: var(--text); border-radius: 99px; }
.login-logo { width: 100%; max-width: 330px; margin: 0 auto 6px; display: block; }
.eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: .75rem; font-weight: 700; color: var(--accent); margin: 14px 0 6px; }
.tagline { font-size: 1.45rem; font-weight: 760; letter-spacing: -.03em; margin: 0 0 12px; line-height: 1.2; }
.tagline em { display: block; font-family: var(--serif); font-weight: 400; color: var(--accent); letter-spacing: 0; }
.code-input { border-radius: 4px; }
@media print { .print-logo { height: 52px; } .print-head .right { text-align: right; } }

/* Eingebettete Unfallstatistik */
main.embedded { padding: 0; display: flex; flex-direction: column; height: 100vh; }
main.embedded .menu-btn { margin: 10px 16px 0; align-self: flex-start; }
.embed { flex: 1; width: 100%; border: 0; background: var(--bg); display: block; }

.legal { margin: 22px 0 0; font-size: .8rem; color: var(--muted); }
.legal a { color: var(--muted); }
.legal a:hover { color: var(--accent); }

/* Sicherheitsdatenblatt im Gefahrstoff-Eintrag */
.sdb-box { display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 1px dashed #d6d3ce; border-radius: 4px; margin-bottom: 12px; background: #faf9f7; }
.sdb-box label.btn { align-self: flex-start; }
.refs { margin: 6px 0 0; padding-left: 18px; columns: 2 320px; }
.refs li { margin: 3px 0; break-inside: avoid; }

/* Gefahrstoffe & Betriebsanweisungen */
.picto { vertical-align: middle; flex: none; }
.dropzone { border: 2px dashed #d6d3ce; border-radius: 4px; padding: 18px; text-align: center; color: var(--muted); margin-bottom: 18px; background: #fff; }
.dropzone.over { border-color: var(--accent); background: var(--accent-l); color: var(--text); }
.tabs .tab-search { margin-left: auto; max-width: 220px; align-self: center; border-radius: 99px; }
.hz-table td { vertical-align: middle; }
.warn-text { color: #92400e; }
.imp-log { display: flex; flex-direction: column; gap: 8px; }
.imp-row { padding: 8px 0; border-bottom: 1px solid var(--line); }
.picto-pick { display: flex; flex-wrap: wrap; gap: 10px; }
.picto-pick label { display: flex; flex-direction: column; align-items: center; gap: 2px; cursor: pointer; }
.lgk-list { display: flex; flex-direction: column; gap: 6px; }
.ba-kind { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 2px 8px; border-radius: 99px; color: #fff; }
.ba-kind.gefahrstoff { background: #e8790a; } .ba-kind.maschine { background: #005387; }
.ba-head { grid-template-columns: repeat(3, 1fr); }
.sign-label { font-size: .8rem; font-weight: 700; color: var(--muted); margin: 10px 0 4px; }
.sign-pick { display: flex; flex-wrap: wrap; gap: 6px; }
.sign-pick button { border: 2px solid transparent; background: #faf9f7; border-radius: 6px; padding: 3px; cursor: pointer; opacity: .35; filter: grayscale(.8); }
.sign-pick button.on { opacity: 1; filter: none; border-color: var(--text); background: #fff; }
.form-section.ba-sec-gefahrstoff { border-left: 4px solid #e8790a; padding-left: 8px; color: var(--text); }
.form-section.ba-sec-maschine { border-left: 4px solid #005387; padding-left: 8px; color: var(--text); }
#ba-form textarea { width: 100%; }
@media (max-width: 860px) { .ba-head { grid-template-columns: 1fr; } .tabs .tab-search { max-width: none; margin: 6px 0; } }
