/* Core layout additions */
.mbsh-steps-header h3{margin:4px 0 8px}
.mbsh-dashboard{max-width:1100px;margin:0 auto;padding:16px}
.mbsh-header h2{margin:0 0 4px}
.mbsh-progress{margin:16px 0 24px}
.mbsh-progress-bar{width:100%;height:16px;background:#e8e8e8;border-radius:10px;overflow:hidden}
.mbsh-progress-fill{height:100%;background:#4caf50;border-radius:10px}
.mbsh-progress-label{margin-top:6px;font-weight:600}

/* Dashboard module cards */
.mbsh-modules{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:14px}
.mbsh-module{
  border-radius:14px;
  padding:14px;
  background:#fafafa;
  border:1px solid #eee;
  display:flex;
  flex-direction:column;
  gap:10px;
  height:100%;
}
.mbsh-module.green{border-color:#cde8d1}
.mbsh-module.orange{border-color:#ffe3b3}
.mbsh-module.red{border-color:#ffc6c6}

/* Modul-spezifische Fortschrittsleiste oben in der Karte */
.mbsh-module-progress{
  display:flex;
  flex-direction:column;
  gap:4px;
}
.mbsh-module-progress-bar{
  width:100%;
  height:8px;
  background:#eeeeee;
  border-radius:999px;
  overflow:hidden;
}
.mbsh-module-progress-fill{
  height:100%;
  background:#4caf50;
  border-radius:999px;
}
.mbsh-module-progress-label{
  font-size:12px;
  font-weight:600;
  color:#555;
  text-align:right;
}

.mbsh-module-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:4px;
}
.mbsh-module-head h3{margin:0}

/* Body so dass der Button immer unten sitzt */
.mbsh-module-body{
  margin-top:auto;
  display:flex;
  flex-direction:column;
  gap:8px;
}
.mbsh-hint{margin:4px 0 0;color:#555}
.mbsh-module-body .mbsh-btn{
  margin-top:auto;
  align-self:flex-start;
}

.mbsh-btn{
  display:inline-block;
  padding:10px 14px;
  border-radius:10px;
  background:#111;
  color:#fff;
  text-decoration:none;
  cursor:pointer;
  border:none;
  font-weight:600;
  font-size:14px;
}
.mbsh-btn:hover{opacity:.9}
.mbsh-box.mbsh-warning{background:#fff7e6;border:1px solid #ffd28a;padding:12px;border-radius:10px}

/* Spezielle Buttons im Modul */
.mbsh-btn.mbsh-mark-done{
  background:#2e7d32;
}
.mbsh-btn.mbsh-mark-done:hover{
  background:#256628;
}
.mbsh-btn.mbsh-undo{
  background:#ffffff;
  color:#333;
  border:1px solid #cfcfcf;
}
.mbsh-btn.mbsh-undo:hover{
  background:#f5f5f5;
}

/* Back-Buttons oben/unten im Modul */
.mbsh-back-btn{
  display:inline-block;
  margin-bottom:20px;
  padding:9px 14px;
  background:#e0e0e0;
  color:#111;
  border-radius:8px;
  font-weight:600;
  cursor:pointer;
  border:none;
}
.mbsh-back-btn:hover{
  background:#d5d5d5;
}
.mbsh-back-top{
  margin-bottom:28px;
}

.mbsh-steps{max-width:1000px;margin:0 auto;padding:8px}
.mbsh-step-list{margin:0;padding-left:18px;list-style:decimal}
.mbsh-step-list li{margin:16px 0;padding:0;border:1px solid #eee;border-radius:12px;background:#fff;transition:background-color .2s,border-color .2s}
.mbsh-step-list li.done{border-color:#2e7d32;background:#e8f5e9}
.mbsh-step-row{display:flex;gap:18px;align-items:flex-start;padding:16px}
.mbsh-step-media{flex:0 0 40%;max-width:40%}
.mbsh-step-media img{max-width:100%;height:auto;border-radius:10px;display:block;cursor:pointer}
.mbsh-main-media{margin-bottom:8px}
.mbsh-responsive-iframe{position:relative;width:100%;padding-top:56%}
.mbsh-responsive-iframe iframe{position:absolute;top:0;left:0;width:100%;height:100%;border:0;border-radius:10px}
.mbsh-step-content{flex:1}
.mbsh-step-title{font-weight:700;margin-bottom:6px;display:flex;gap:8px;align-items:center}
.mbsh-badge{background:#c8e6c9;border-radius:999px;padding:2px 8px;font-size:12px}
.mbsh-step-desc{color:#333;margin:6px 0 10px}
.mbsh-step-gallery{display:flex;flex-wrap:wrap;gap:8px;margin:2px 0 4px}
.mbsh-step-gallery img{max-height:70px;border-radius:8px;cursor:pointer}
.mbsh-thumb-video{
  display:flex;
  align-items:center;
  justify-content:center;
  width:70px;
  height:45px;
  border-radius:8px;
  background:#111;
  color:#fff;
  font-size:18px;
  font-weight:700;
  cursor:pointer;
}

.mbsh-steps-footer{
  margin-top:24px;
}

/* Responsive */
@media (max-width: 768px){
  .mbsh-step-row{flex-direction:column}
  .mbsh-step-media{flex:0 0 auto;max-width:100%}
}

/* Floating PiP viewer */
.mbsh-viewer[hidden]{display:none}
.mbsh-viewer{position:fixed;z-index:9999;top:80px;right:40px;width:520px;max-width:92vw;background:#111;color:#fff;border-radius:12px;box-shadow:0 10px 28px rgba(0,0,0,.45);overflow:hidden;user-select:none}
.mbsh-viewer.mbsh-pinned{box-shadow:0 10px 30px rgba(0,0,0,.6)}
.mbsh-viewer-head{display:flex;align-items:center;justify-content:space-between;background:#1f1f1f;padding:6px 8px;cursor:move}
.mbsh-viewer-actions{display:flex;align-items:center;gap:6px}
.mbsh-viewer-actions input.mbsh-opacity{width:90px}
.mbsh-viewer-actions button{background:#2a2a2a;color:#fff;border:none;border-radius:8px;padding:6px 8px;cursor:pointer}
.mbsh-viewer-actions .mbsh-viewer-close{background:#e53935}
.mbsh-viewer-body{background:#000;height:360px;max-height:75vh;position:relative;overflow:hidden;opacity:1}
.mbsh-viewer-canvas{position:absolute;top:0;left:0;right:0;bottom:0;display:flex;align-items:center;justify-content:center;overflow:hidden}
.mbsh-viewer-canvas img,.mbsh-viewer-canvas video{max-width:none;max-height:none;display:block;transform-origin:0 0}
.mbsh-viewer-canvas .mbsh-iframe-wrap{position:relative;width:100%;height:100%}
.mbsh-viewer-canvas .mbsh-iframe-wrap iframe{position:absolute;inset:0;width:100%;height:100%;border:0;border-radius:0}
.mbsh-viewer-handle{position:absolute;bottom:0;left:0;right:0;height:10px;cursor:nwse-resize;background:linear-gradient(90deg,transparent,rgba(255,255,255,.15),transparent)}

.mbsh-progress-motivation{margin-top:4px;margin-bottom:18px;color:#444;font-size:14px;}

/* === STRICT RESET: Listen im Kurs-/Schritt-Inhalt === */
.mbsh-step-content ol,
.mbsh-step-content ul {
  padding-left: 1.2em;
  margin: 0.8em 0;
}

.mbsh-step-content li {
  border: none !important;
  background: transparent !important;
  padding: 0 !important;
  margin: 0.3em 0;
  border-radius: 0 !important;
  box-shadow: none !important;
}


/* === Step hint box (hide after 'Fertig') === */
.mbsh-step-hint{background:#f5f7fa;border-left:4px solid #4f46e5;padding:12px 14px;margin-top:16px;font-size:14px;}
.mbsh-step-list li.done .mbsh-step-hint{display:none !important;}
