camera - (real) remote control, brandschutz - configurable course, dashboard - vbb licensed API (a real vbb license, how cool)

This commit is contained in:
2026-09-08 18:21:51 +02:00
parent 3f98cf2663
commit ce90820094
24 changed files with 3044 additions and 2065 deletions
@@ -355,3 +355,546 @@
.admin-modal-actions { flex-direction: column-reverse; }
.admin-modal-actions button { width: 100%; }
}
/* Visueller Schulungseditor */
body.bs-editor-open {
overflow: hidden;
}
.bs-editor-shell [hidden],
.bs-editor-overlay[aria-hidden="true"],
.bs-course-editor-overlay[aria-hidden="true"] {
display: none !important;
}
.bs-course-editor-overlay {
z-index: 10010;
align-items: center;
justify-content: center;
padding: 12px;
box-sizing: border-box;
}
.bs-editor-shell {
width: min(1400px, calc(100vw - 24px));
max-height: calc(100dvh - 24px);
overflow: auto;
margin: 0;
border: 1px solid rgba(120, 140, 160, 0.22);
background: #fff;
box-shadow: 0 18px 42px rgba(31, 38, 46, 0.1);
}
.bs-course-editor-close {
display: inline-flex;
align-items: center;
justify-content: center;
width: 36px;
height: 36px;
padding: 0;
border: 1px solid var(--gray-300);
background: #fff;
color: var(--gray-800);
font-size: 1.3rem;
cursor: pointer;
}
.bs-editor-header {
display: flex;
align-items: center;
justify-content: space-between;
gap: 18px;
padding: 18px 20px;
border-bottom: 1px solid var(--gray-200);
background: linear-gradient(135deg, hsl(25, 100%, 97%), #fff);
}
.bs-editor-header h1 {
margin: 0 0 3px;
font-size: 1.25rem;
color: var(--gray-900);
}
.bs-editor-header p {
margin: 0;
color: var(--gray-600);
font-size: var(--font-size-sm);
}
.bs-editor-header-actions,
.bs-editor-item-controls,
.bs-editor-modal-actions {
display: flex;
align-items: center;
gap: 7px;
}
.bs-editor-button,
.bs-editor-panel-title button,
.bs-editor-icon-button {
display: inline-flex;
align-items: center;
justify-content: center;
min-height: 34px;
padding: 7px 11px;
border: 1px solid var(--gray-300);
background: #fff;
color: var(--gray-800);
font: 700 var(--font-size-xs)/1 var(--font-primary);
text-decoration: none;
cursor: pointer;
}
.bs-editor-button:hover,
.bs-editor-panel-title button:hover,
.bs-editor-icon-button:hover {
border-color: var(--nak-orange);
background: hsl(25, 100%, 97%);
}
.bs-editor-button--primary {
border-color: hsl(25, 90%, 42%);
background: var(--nak-orange);
color: #fff;
}
.bs-editor-button--primary:hover {
background: hsl(25, 95%, 40%);
color: #fff;
}
.bs-editor-button:disabled,
.bs-editor-panel-title button:disabled,
.bs-editor-icon-button:disabled {
opacity: 0.4;
cursor: default;
}
.bs-editor-grid {
display: grid;
grid-template-columns: minmax(220px, 0.8fr) minmax(220px, 0.8fr) minmax(340px, 1.6fr);
min-height: 460px;
}
.bs-editor-panel {
min-width: 0;
border-right: 1px solid var(--gray-200);
background: var(--gray-50);
}
.bs-editor-panel:last-child {
border-right: 0;
}
.bs-editor-panel-title {
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
min-height: 42px;
padding: 10px 12px;
border-bottom: 1px solid var(--gray-200);
background: #fff;
font-size: var(--font-size-sm);
font-weight: 850;
}
.bs-editor-list,
.bs-element-list {
display: grid;
align-content: start;
gap: 8px;
padding: 10px;
}
.bs-editor-list-item,
.bs-element-card {
border: 1px solid var(--gray-200);
background: #fff;
box-shadow: 0 3px 10px rgba(31, 38, 46, 0.05);
cursor: grab;
}
.bs-editor-list-item {
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
padding: 10px;
}
.bs-editor-list-item.active {
border-color: var(--nak-orange);
box-shadow: 0 0 0 2px hsla(25, 90%, 50%, 0.12);
}
.bs-editor-list-item.dragging,
.bs-element-card.dragging {
opacity: 0.45;
}
.bs-editor-item-text {
display: grid;
gap: 3px;
min-width: 0;
}
.bs-editor-item-text strong,
.bs-editor-item-text span {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.bs-editor-item-text strong {
font-size: var(--font-size-sm);
color: var(--gray-900);
}
.bs-editor-item-text span {
font-size: 0.72rem;
color: var(--gray-600);
}
.bs-editor-icon-button {
width: 27px;
min-height: 27px;
padding: 3px;
}
.bs-editor-icon-button--danger {
color: hsl(0, 65%, 43%);
}
.bs-element-card {
padding: 12px;
}
.bs-element-card-heading,
.bs-editor-repeat-title {
display: flex;
align-items: center;
justify-content: space-between;
gap: 10px;
}
.bs-element-type {
display: inline-flex;
padding: 4px 8px;
border: 1px solid hsl(25, 80%, 82%);
background: hsl(25, 100%, 96%);
color: hsl(25, 80%, 34%);
font-size: 0.7rem;
font-weight: 850;
text-transform: uppercase;
}
.bs-element-summary {
margin: 10px 0 0;
color: var(--gray-700);
font-size: var(--font-size-xs);
line-height: 1.5;
}
.bs-editor-empty {
padding: 30px 18px;
border: 1px dashed var(--gray-300);
background: rgba(255, 255, 255, 0.65);
color: var(--gray-600);
text-align: center;
}
.bs-editor-empty p {
margin: 7px 0 0;
font-size: var(--font-size-xs);
line-height: 1.5;
}
.bs-editor-notice {
margin: 12px 20px 0;
padding: 10px 12px;
border: 1px solid hsl(210, 35%, 82%);
background: hsl(210, 60%, 96%);
color: hsl(210, 55%, 32%);
font-size: var(--font-size-xs);
font-weight: 700;
}
.bs-editor-notice--success {
border-color: hsl(145, 42%, 76%);
background: hsl(145, 55%, 95%);
color: hsl(145, 55%, 28%);
}
.bs-editor-notice--error {
border-color: hsl(0, 55%, 80%);
background: hsl(0, 70%, 96%);
color: hsl(0, 60%, 38%);
}
.bs-editor-overlay {
z-index: 10020;
align-items: center;
justify-content: center;
}
.bs-editor-modal {
position: relative;
width: min(780px, calc(100vw - 24px));
max-height: calc(100dvh - 24px);
overflow: auto;
padding: 22px;
background: #fff;
box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}
.bs-editor-modal h2 {
margin: 0 42px 18px 0;
font-size: 1.2rem;
}
.bs-editor-modal-close {
position: absolute;
top: 12px;
right: 12px;
width: 34px;
height: 34px;
border: 1px solid var(--gray-300);
background: #fff;
font-size: 1.35rem;
cursor: pointer;
}
#bsEditorModalBody {
display: grid;
gap: 13px;
}
.bs-editor-field {
display: grid;
gap: 5px;
min-width: 0;
font-size: var(--font-size-xs);
font-weight: 750;
color: var(--gray-700);
}
.bs-editor-field input,
.bs-editor-field textarea,
.bs-editor-field select,
.bs-repeat-row select {
box-sizing: border-box;
width: 100%;
min-height: 38px;
padding: 8px 10px;
border: 1px solid var(--gray-300);
background: #fff;
color: var(--gray-900);
font: 500 var(--font-size-sm)/1.45 var(--font-primary);
}
.bs-editor-field textarea {
min-height: 92px;
resize: vertical;
}
.bs-richtext {
overflow: hidden;
border: 1px solid var(--gray-300);
background: #fff;
}
.bs-richtext:focus-within {
border-color: var(--nak-orange);
box-shadow: 0 0 0 2px hsla(25, 95%, 48%, 0.14);
}
.bs-richtext-toolbar {
display: flex;
flex-wrap: wrap;
gap: 4px;
padding: 6px;
border-bottom: 1px solid var(--gray-200);
background: var(--gray-50);
}
.bs-richtext-button {
display: inline-flex;
align-items: center;
justify-content: center;
min-width: 31px;
height: 30px;
padding: 0 8px;
border: 1px solid transparent;
background: transparent;
color: var(--gray-800);
font: 700 var(--font-size-sm)/1 var(--font-primary);
cursor: pointer;
}
.bs-richtext-button:nth-child(2) {
font-style: italic;
}
.bs-richtext-button:nth-child(3) {
text-decoration: underline;
}
.bs-richtext-button:hover,
.bs-richtext-button:focus-visible {
border-color: var(--gray-300);
background: #fff;
}
.bs-richtext-button--text {
width: auto;
}
.bs-richtext-editor {
min-height: 108px;
padding: 10px 12px;
background: #fff;
color: var(--gray-900);
font: 500 var(--font-size-sm)/1.55 var(--font-primary);
outline: none;
}
.bs-richtext-editor p {
margin: 0 0 0.75em;
}
.bs-richtext-editor p:last-child {
margin-bottom: 0;
}
.bs-richtext-editor a {
color: hsl(25, 90%, 38%);
text-decoration: underline;
}
.bs-repeat-row .bs-richtext-editor {
min-height: 72px;
}
.bs-editor-field small {
font-weight: 500;
color: var(--gray-500);
}
.bs-editor-check {
display: flex;
align-items: center;
gap: 8px;
font-size: var(--font-size-xs);
font-weight: 700;
}
.bs-editor-check input {
width: 18px;
height: 18px;
}
.bs-editor-repeat-block {
display: grid;
gap: 8px;
padding: 12px;
border: 1px solid var(--gray-200);
background: var(--gray-50);
}
.bs-repeat-list {
display: grid;
gap: 8px;
}
.bs-repeat-row {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) auto;
align-items: end;
gap: 8px;
padding: 9px;
border: 1px solid var(--gray-200);
background: #fff;
}
.bs-editor-modal-actions {
justify-content: flex-end;
margin-top: 18px;
padding-top: 15px;
border-top: 1px solid var(--gray-200);
}
.bs-image-upload {
display: flex;
align-items: center;
gap: 10px;
padding: 12px;
border: 1px solid var(--gray-200);
background: var(--gray-50);
}
.bs-media-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
gap: 10px;
}
.bs-media-item {
position: relative;
min-height: 82px;
border: 2px solid var(--gray-200);
background: #fff;
color: var(--gray-700);
font: 700 var(--font-size-xs)/1.3 var(--font-primary);
cursor: pointer;
}
.bs-media-item.selected {
border-color: var(--nak-orange);
box-shadow: 0 0 0 3px hsla(25, 90%, 50%, 0.15);
}
.bs-media-item > button:first-child {
width: 100%;
height: 82px;
padding: 0;
border: 0;
background: transparent;
cursor: pointer;
}
.bs-media-item img {
display: block;
width: 100%;
height: 82px;
object-fit: cover;
}
.bs-media-delete {
position: absolute;
top: 3px;
right: 3px;
width: 25px;
height: 25px;
border: 0;
background: rgba(120, 0, 0, 0.85);
color: #fff;
cursor: pointer;
}
@media (max-width: 980px) {
.bs-editor-grid { grid-template-columns: 1fr 1fr; }
.bs-elements-panel { grid-column: 1 / -1; border-top: 1px solid var(--gray-200); }
}
@media (max-width: 680px) {
.bs-editor-shell { width: calc(100vw - 12px); max-height: calc(100dvh - 12px); }
.bs-course-editor-overlay { padding: 6px; }
.bs-editor-header { align-items: flex-start; flex-direction: column; }
.bs-editor-header-actions { flex-wrap: wrap; }
.bs-editor-grid { grid-template-columns: 1fr; }
.bs-elements-panel { grid-column: auto; }
.bs-editor-panel { border-right: 0; border-bottom: 1px solid var(--gray-200); }
.bs-repeat-row { grid-template-columns: 1fr; }
.bs-image-upload { align-items: stretch; flex-direction: column; }
}
@@ -528,11 +528,16 @@
display: flex;
align-items: center;
justify-content: space-between;
width: 100%;
box-sizing: border-box;
padding: 14px 18px;
border: 0;
background: var(--gray-50);
cursor: pointer;
font-family: inherit;
font-weight: 600;
font-size: var(--font-size-sm);
text-align: left;
color: var(--gray-800);
transition: background 150ms;
}
@@ -675,7 +680,9 @@
.bs-wizard { margin: 0; width: 100%; }
.bs-progress { padding: 14px 8px 10px; }
.bs-progress-step[data-section="0"],
.bs-progress-step[data-section="0"] + .bs-progress-line {
.bs-progress-step[data-section="0"] + .bs-progress-line,
.bs-progress-step[data-chapter-index="0"],
.bs-progress-step[data-chapter-index="0"] + .bs-progress-line {
display: none;
}
.bs-progress-label { font-size: 0.6rem; max-width: 48px; }
@@ -692,3 +699,93 @@
.bs-intro-pillar-number { margin-bottom: 0; flex-shrink: 0; }
.bs-score-grid { grid-template-columns: repeat(2, 1fr); }
}
/* Konfigurationsbasierter Renderer */
.bs-wizard [hidden] {
display: none !important;
}
.bs-progress {
overflow-x: auto;
}
.bs-checklist-item {
display: flex;
align-items: flex-start;
gap: 12px;
width: 100%;
padding: 0;
border: 0;
background: transparent;
color: inherit;
font: inherit;
line-height: inherit;
text-align: left;
cursor: pointer;
}
.bs-image {
margin: 22px 0;
text-align: center;
}
.bs-image img {
display: block;
width: auto;
max-width: 100%;
max-height: 70vh;
margin: 0 auto;
object-fit: contain;
box-shadow: 0 8px 28px rgba(31, 38, 46, 0.14);
}
.bs-image figcaption {
margin-top: 8px;
color: var(--gray-600);
font-size: var(--font-size-xs);
}
.bs-fill-input {
min-width: 100px;
max-width: 220px;
margin: 3px 5px;
}
.bs-empty-state {
padding: 24px;
border: 1px dashed var(--gray-300);
color: var(--gray-600);
text-align: center;
}
.bs-result-message,
.bs-confirmation {
margin-top: 20px;
}
.bs-confirmation {
padding: 20px;
border: 1px solid var(--gray-200);
background: var(--gray-50);
}
.bs-confirmation label {
display: flex;
align-items: flex-start;
gap: 12px;
cursor: pointer;
}
.bs-confirmation input {
width: 20px;
height: 20px;
margin-top: 2px;
}
#bsFinishBtn,
#bsRestartBtn {
width: 100%;
margin-top: 24px;
padding: 16px;
font-size: var(--font-size-md);
}