/* EventPlanPro Arbeitsschutz – angelehnt an Lager-Design */
@import url('ohs_motion.css');
@import url('ohs_viewport.css');

body.ohs {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: #f1f1f1;
  background: #23272f url('../../Hintergrund.jpg') center center / cover no-repeat fixed;
  min-height: 100vh;
}
.ohs .container { max-width: 1200px; margin: 0 auto; padding: 24px; padding-top: 72px; }
.ohs .back-btn {
  position: fixed; top: 20px; left: 20px; z-index: 10001;
  display: flex; align-items: center; gap: 8px;
  background: #ff9800; color: #23272f; text-decoration: none;
  padding: 12px 20px; border-radius: 8px; font-weight: 600;
  box-shadow: 0 4px 12px rgba(255,152,0,.3);
}
.ohs .back-btn:hover { transform: translateY(-2px); }
.ohs .page-title { font-size: 2rem; font-weight: 300; color: #ff9800; margin: 0 0 8px; text-shadow: 0 2px 4px rgba(0,0,0,.3); }
.ohs .page-subtitle { color: #b0bec5; margin: 0 0 24px; }
.ohs .toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0 0 20px; }
.ohs .btn {
  background: #444a57; color: #ff9800; border: 1px solid transparent; border-radius: 8px;
  padding: 10px 14px; cursor: pointer; font-weight: 600; font-size: 0.95rem; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.35em;
}
.ohs .btn-primary { background: #ff9800; color: #23272f; }
.ohs .btn-danger { background: #e74c3c; color: #fff; }
.ohs .btn-ghost { background: transparent; border: 1px solid #444a57; color: #b0bec5; }
.ohs .btn-lg { padding: 14px 22px; font-size: 1.05rem; }
.ohs .kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 24px; }
.ohs .kpi {
  background: #2c313a; border: 1px solid #444a57; border-radius: 12px; padding: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.ohs .kpi .label { color: #b0bec5; font-size: 0.8rem; text-transform: uppercase; letter-spacing: .04em; }
.ohs .kpi .value { font-size: 1.6rem; font-weight: 700; margin-top: 6px; color: #fff; }
.ohs .card {
  background: #2c313a; border: 1px solid #444a57; border-radius: 12px; padding: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,.3); margin-bottom: 12px;
}
.ohs .card h3 { margin: 0 0 10px; color: #fff; font-size: 1.05rem; }
.ohs .section-title { color: #ff9800; font-size: 1.2rem; margin: 28px 0 12px; font-weight: 600; }
.ohs .action-item {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; justify-content: space-between;
  background: #2c313a; border: 1px solid #444a57; border-radius: 12px; padding: 14px 16px; margin-bottom: 10px;
}
.ohs .sev { font-weight: 700; padding: 2px 8px; border-radius: 6px; font-size: 0.75rem; }
.ohs .sev-red { background: rgba(231,76,60,.25); color: #ff8a80; }
.ohs .sev-yellow { background: rgba(255,152,0,.2); color: #ffb74d; }
.ohs .sev-green { background: rgba(46,204,113,.2); color: #81c784; }
.ohs .status-ok { color: #81c784; }
.ohs .status-soon { color: #ffb74d; }
.ohs .status-action, .ohs .status-missing, .ohs .status-overdue { color: #ff8a80; }
.ohs .nav-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.ohs .nav-pills a {
  background: #2c313a; color: #b0bec5; text-decoration: none; padding: 8px 14px; border-radius: 999px;
  border: 1px solid #444a57; font-size: 0.9rem; font-weight: 600;
}
.ohs .nav-pills a.active, .ohs .nav-pills a:hover { border-color: #ff9800; color: #ff9800; }
.ohs table.data { width: 100%; border-collapse: collapse; background: #2c313a; border-radius: 12px; overflow: hidden; }
.ohs table.data th, .ohs table.data td { padding: 10px 12px; text-align: left; border-bottom: 1px solid #444a57; }
.ohs table.data th { color: #b0bec5; font-size: 0.8rem; text-transform: uppercase; }
.ohs table.data tr:hover td { background: rgba(255,152,0,.06); }
.ohs .tabs { display: flex; flex-wrap: wrap; gap: 6px; border-bottom: 1px solid #444a57; margin-bottom: 16px; }
.ohs .tab {
  background: transparent; border: none; color: #b0bec5; padding: 10px 14px; cursor: pointer; font-weight: 600;
  border-bottom: 2px solid transparent;
}
.ohs .tab.active { color: #ff9800; border-bottom-color: #ff9800; }
.ohs .tab-panel { display: none; }
.ohs .tab-panel.active { display: block; }
.ohs .form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.ohs label { display: block; color: #b0bec5; font-size: 0.85rem; margin-bottom: 4px; }
.ohs input, .ohs select, .ohs textarea {
  width: 100%; box-sizing: border-box; background: #1a1e24; border: 1px solid #444a57; color: #f1f1f1;
  border-radius: 8px; padding: 10px 12px; font: inherit;
}
.ohs textarea { min-height: 100px; }
.ohs .modal-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 20000; display: none;
  align-items: center; justify-content: center; padding: 16px;
}
.ohs .modal-backdrop.show { display: flex; }
.ohs .modal {
  background: #2c313a; border: 1px solid #444a57; border-radius: 12px; max-width: 640px; width: 100%;
  max-height: 90vh; overflow: auto; padding: 20px;
}
.ohs .modal h3 { margin: 0 0 16px; color: #ff9800; }
.ohs .muted { color: #b0bec5; }
.ohs .badge-company {
  display: inline-block; background: rgba(255,152,0,.15); color: #ffb74d; border: 1px solid #ff9800;
  font-size: 0.7rem; font-weight: 700; padding: 2px 8px; border-radius: 4px; letter-spacing: .03em;
}
.ohs .progress-bar { height: 10px; background: #1a1e24; border-radius: 999px; overflow: hidden; margin: 12px 0; }
.ohs .progress-bar > span { display: block; height: 100%; background: #ff9800; will-change: width; }
.ohs .chapter-body { line-height: 1.55; font-size: 1.05rem; }
.ohs .chapter-body .warn {
  background: rgba(231,76,60,.15); border-left: 4px solid #e74c3c; padding: 12px; border-radius: 8px; margin: 12px 0;
}
.ohs .chapter-body .hint {
  background: rgba(255,152,0,.12); border-left: 4px solid #ff9800; padding: 12px; border-radius: 8px; margin: 12px 0;
}
.ohs .quiz-q { background: #1a1e24; border-radius: 10px; padding: 14px; margin-bottom: 12px; border: 1px solid #444a57; }
.ohs .mobile-cards { display: none; }
.ohs .matrix-wrap { overflow-x: auto; }
/* Toast-Basis in ohs_motion.css */
@media (max-width: 800px) {
  .ohs .desktop-only { display: none !important; }
  .ohs .mobile-cards { display: block; }
  .ohs .page-title { font-size: 1.5rem; }
  .ohs .container { padding: 16px; padding-top: 70px; }
  .ohs .btn-lg { width: 100%; text-align: center; }
}

.ohs .badge-content {
  display: inline-block; background: rgba(176,190,197,.12); color: #b0bec5; border: 1px solid #444a57;
  font-size: 0.7rem; font-weight: 700; padding: 2px 8px; border-radius: 4px; letter-spacing: .03em;
}
.ohs .chapter-body .prohibit {
  background: rgba(231,76,60,.2); border-left: 4px solid #c0392b; padding: 12px; border-radius: 8px; margin: 12px 0; font-weight: 600;
}
.ohs .chapter-body .mandatory {
  background: rgba(46,204,113,.12); border-left: 4px solid #27ae60; padding: 12px; border-radius: 8px; margin: 12px 0; font-weight: 600;
}
.ohs .chapter-body .example {
  background: rgba(52,152,219,.12); border-left: 4px solid #3498db; padding: 12px; border-radius: 8px; margin: 12px 0;
}
.ohs .chapter-body .company, .ohs .chapter-body .block-company {
  background: rgba(255,152,0,.1); border: 1px dashed #ff9800; padding: 12px; border-radius: 8px; margin: 12px 0;
}
.ohs .chapter-body .memo {
  background: #1a1e24; border-left: 4px solid #ffb74d; padding: 12px; border-radius: 8px; margin: 12px 0; font-style: italic;
}
.ohs .chapter-body .checklist ul { margin: 8px 0; padding-left: 1.2em; }
.ohs .chapter-body .checklist li { margin: 4px 0; }

.ohs .chapter-body .danger {
  background: rgba(192,57,43,.22); border-left: 4px solid #c0392b; padding: 12px; border-radius: 8px; margin: 12px 0; font-weight: 700;
}
.ohs .chapter-body .heading-block { font-size: 1.25rem; font-weight: 700; color: #ff9800; margin: 8px 0 12px; }
.ohs .chapter-body .source-ref { font-size: 0.9rem; color: #b0bec5; border-top: 1px solid #444a57; padding-top: 10px; margin-top: 14px; }
.ohs .import-box textarea { min-height: 160px; font-family: ui-monospace, Consolas, monospace; font-size: 0.85rem; }
.ohs .content-block { margin-bottom: 16px; }
.ohs .content-block .block-title { font-size: 1rem; color: #eceff1; margin: 0 0 6px; font-weight: 600; }
.ohs .content-block .badge-company { margin-bottom: 6px; }
.ohs .media-placeholder {
  border: 2px dashed #666c78; border-radius: 10px; padding: 18px; margin: 12px 0;
  background: rgba(255,255,255,.03); text-align: left;
}
.ohs .preview-banner { border-color: #ff9800 !important; margin-bottom: 12px; }
.ohs .preview-kicker {
  font-size: 0.75rem; font-weight: 800; letter-spacing: .08em; color: #ff9800; margin-bottom: 4px;
}
.ohs .sticky-actions {
  position: sticky; top: 56px; z-index: 20; background: rgba(35,39,47,.95);
  padding: 10px 0; margin-bottom: 12px; flex-wrap: wrap; gap: 8px;
}
.ohs .review-row {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid #444a57;
}
.ohs .review-block { margin: 12px 0; padding: 12px; border-radius: 8px; }
.ohs .review-block.company { border: 1px dashed #ff9800; }
.ohs .check-row { display: block; margin: 8px 0; font-size: 1.05rem; }
.ohs .actions-cell { white-space: normal; }
.ohs .actions-cell .btn { margin: 2px; display: inline-block; }
@media (max-width: 800px) {
  .ohs .sticky-actions { top: 0; }
  .ohs .review-row { flex-direction: column; align-items: stretch; }
  .ohs .review-row .btn { width: 100%; text-align: center; }
}

/* Bildverwaltung im Editor */
.ohs .img-progress {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin-bottom: 14px;
}
.ohs .img-progress-bar {
  flex: 1; min-width: 140px; height: 8px; background: #1a1e24; border-radius: 999px; overflow: hidden;
}
.ohs .img-progress-bar > span { display: block; height: 100%; background: #ff9800; will-change: width; }
.ohs .img-card {
  background: #2c313a; border: 1px solid #444a57; border-radius: 14px; padding: 16px; margin-bottom: 14px;
}
.ohs .img-card .img-tag {
  font-size: 0.72rem; font-weight: 800; letter-spacing: .08em; color: #ff9800; margin-bottom: 10px;
}
.ohs .img-preview-box {
  aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #1a1e24;
  border: 1px dashed #666c78; display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px; position: relative;
}
.ohs .img-preview-box img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.ohs .img-preview-box.is-empty {
  flex-direction: column; gap: 6px; padding: 16px; text-align: center;
  background: linear-gradient(135deg, rgba(255,152,0,.08), transparent 55%), #1a1e24;
}
.ohs .img-drop {
  border: 2px dashed #666c78; border-radius: 12px; padding: 22px 16px; text-align: center;
  background: rgba(255,255,255,.03); cursor: pointer; transition: border-color .15s, background .15s;
}
.ohs .img-drop.dragover { border-color: #ff9800; background: rgba(255,152,0,.1); }
.ohs .img-drop strong { display: block; color: #fff; margin-bottom: 4px; }
.ohs .img-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.ohs .img-meta-grid { display: grid; gap: 10px; margin-top: 10px; }
.ohs .img-meta-grid label { margin-bottom: 2px; }
.ohs details.img-spec { margin-top: 10px; color: #b0bec5; font-size: 0.9rem; }
.ohs details.img-spec summary { cursor: pointer; font-weight: 600; color: #ffb74d; }
.ohs .img-missing { outline: 1px solid rgba(255,152,0,.35); }
