/* ============================================================
   nonecap Dark UI – CORE STYLES
   Basis-Designsystem für alle App-Views
   Enthält: Farbsetup, Typo, Buttons, Container, Appbar, Footer, Utilities
   ============================================================ */

/* === Farb- und Variablen-Setup === */
:root {
  --bg: #000;
  --surface: #fff;
  --surface-alt: #f2f2f2;
  --elev: #1e2023;
  --text: #000;
  --text-headlinewhite: #fff;
  --text-headlineblack: #000;
  --text-sub: #d5d5d5;
  --muted: #878686;
  --line: #a6a6a6;
  --green: #7ED957;
  --yellow: #FFD95A;
  --red: #FF6B6B;
  --focus: #FFD95A;
  --nonecap-radius: 4px;
  --page-gutter: 20px;
}

/* === Grundstruktur === */
body.nonecap-app {
  background: var(--bg);
  color: var(--text);
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Headings */
body.nonecap-app h1, 
body.nonecap-app h2,
body.nonecap-app h3 {
  margin: 0 0 .6em;
}
body.nonecap-app h1, 
body.nonecap-app h3 { color: var(--text-headlinewhite); }
body.nonecap-app h2 { color: var(--text-headlineblack); }

body.nonecap-app h1 { font-weight: 700; font-size: 28px; line-height: 1.2; }
body.nonecap-app h2 { font-weight: 700; font-size: 28px; line-height: 1.2; }
body.nonecap-app h3 { font-weight: 600; font-size: 18px; line-height: 1.3; }

body.nonecap-app p,
body.nonecap-app label,
body.nonecap-app small {
  color: var(--text);
}

/* Einheitliche Schrift in allen Formular-Elementen */
body.nonecap-app input,
body.nonecap-app select,
body.nonecap-app textarea,
body.nonecap-app label {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
  color: var(--text) !important;
}

/* === Hero === */
.nc-hero {
  text-align: center;
  padding: 24px 12px 12px;
}
.nc-hero-title {
  font-size: 40px;
  line-height: 1.1;
  font-weight: 800;
  margin: 0 0 8px;
  color: var(--text-headlinewhite) !important;
}
.nc-hero-sub {
  margin: 0 0 16px;
  color: var(--text-sub) !important;
  letter-spacing: .12em;
}

/* === Inputs / Forms === */
.nonecap-input,
body.nonecap-app input,
body.nonecap-app select,
body.nonecap-app textarea {
  font-size: 16px !important;
  width: 100%;
  background: var(--surface-alt);
  color: var(--text)!important;
  border: 1px solid var(--line);
  border-radius: var(--nonecap-radius);
  padding: 11px 12px;
}
.nonecap-input::placeholder,
body.nonecap-app ::placeholder {
  color: var(--muted);
}
body.nonecap-app input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):focus,
body.nonecap-app select:focus,
body.nonecap-app textarea:focus {
  border-color: var(--focus);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 35%, transparent);
  outline: none;
}
/* ============================================================
   COVER-BILD ANGLEICHUNG (Edit/New – gleich wie Steps)
   ============================================================ */
.nc-cover-zone .nc-upload-preview img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 240px;
  object-fit: cover;
  border-radius: var(--nonecap-radius);
  margin: 0 auto 10px;
  box-shadow: 0 0 6px rgba(0,0,0,0.3);
}

/* === Fix: Checkbox-Ausrichtung (Login) === */
.nc-field input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0 8px 0 0;
  vertical-align: middle;
  accent-color: var(--green);
}

.nc-field label[for="rememberme"],
.nc-field label:has(input[type="checkbox"]) {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 15px;
  line-height: 1.4;
}

/* === Container & Card === */
.nonecap-container,
.nonecap-card {
  max-width: 1100px;
  margin: 0 auto;
  padding: 8px 20px 24px;
  color: var(--text);
  border-radius: var(--nonecap-radius);
}
.nonecap-container { background: transparent; }
.nonecap-card {
  background: var(--surface);
  border: 1px solid var(--line);
}
/* === Fix für Login-Checkbox (WordPress Struktur) === */
.forgetmenot label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  line-height: 1.4;
  cursor: pointer;
}

.forgetmenot input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--green);
  vertical-align: middle;
}

/* ============================================================
   BUTTONS
   ============================================================ */
/* === Add-Step Button === */
.nonecap-btn.white { 
  background: #fff;
  color: #000;
  border: 1px solid var(--line);
}

.nonecap-btn.white:hover {
  background: var(--green);
}
/* === Button === */
.nonecap-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--nonecap-radius);
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
  padding: 10px 14px;
  cursor: pointer;
  text-decoration: none;
  transition: transform .14s cubic-bezier(.2,.7,.2,1), box-shadow .14s, background .14s, border-color .14s;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.3;
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid var(--line);
  cursor: pointer;
}
/* Fix: Einheitliche Höhe & Innenabstand für <button> und <a> */
.nonecap-btn,
.nonecap-btn:where(button) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  font-family: inherit !important;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.3;
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid var(--line);
  border-radius: var(--nonecap-radius);
  cursor: pointer;
  background: none;
  min-height: auto;
  box-sizing: border-box;
}

/* Nur für native Buttons (Löschen) */
.nonecap-btn[type="submit"],
button.nonecap-btn {
  padding: 10px 14px;
  line-height: 1.3;
  border: 1px solid var(--line);
  background: none;
  font-family: inherit;
}

.nonecap-btn:hover {
  box-shadow: 0 6px 14px rgba(0,0,0,.15);
}
.nonecap-btn:active { transform: scale(.98); }
.nonecap-btn.full {
  display: block;
  width: 100%;
  text-align: center;
  padding: 14px;
  margin-top: 12px;
}
/* ============================================================
   nonecap Buttons – Varianten für Steps / kleine Aktionen
   ============================================================ */

/* Basisgröße (kleiner Button) */
.nonecap-btn.small {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
  padding: 6px 8px;
  font-size: 14px;
  line-height: 1;
  border-radius: var(--nonecap-radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.nonecap-btn.small:hover {
  background: var(--surface-alt);
  transform: translateY(-1px);
}

/* Pfeil-Buttons neutral (hell) */
.nonecap-btn.small.move-up,
.nonecap-btn.small.move-down {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--line);
}

/* Roter Delete-Button */
.nonecap-btn.small.red {
  background: var(--red);
  color: #fff;
  border: none;
}
.nonecap-btn.small.red:hover {
  background: #ff8585;
}
/* === Farbvarianten (fixiert gegen Theme-Überschreibungen) === */
.nonecap-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
}
.nonecap-btn.green {
  background: var(--green) !important;
  color: #000 !important;
  border-color: var(--green) !important;
}
.nonecap-btn.green:hover {
  background: color-mix(in srgb, var(--green) 90%, white 10%) !important;
}

.nonecap-btn.yellow {
  background: var(--yellow) !important;
  color: #000 !important;
  border-color: var(--yellow) !important;
}
.nonecap-btn.yellow:hover {
  background: color-mix(in srgb, var(--yellow) 90%, white 10%) !important;
}

.nonecap-btn.red {
  background: var(--red) !important;
  color: #000 !important;
  border-color: var(--red) !important;
}
.nonecap-btn.red:hover {
  background: color-mix(in srgb, var(--red) 90%, white 10%) !important;
}

/* ============================================================
   APPBAR / FOOTER / BADGES
   ============================================================ */

.badge {
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid var(--line);
}
.badge.public  { background: var(--green); color: var(--text); }
.badge.org     { background: var(--yellow); color: var(--text); }
.badge.private { background: var(--red); color: var(--text); }

.appbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #000;
  border-bottom: 0;
}
.appbar .nonecap-btn {
  min-width: 80px;
  height: 40px;
  border: 0;
}
.appbar-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 8px var(--page-gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

body.nonecap-app .nc-footer {
  padding: 24px var(--page-gutter);
  margin-top: 32px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}
.badge.ai {
  background: #7ED957; /* leicht grün oder Gelb-Ton */
  color: #000;
  font-weight: 600;
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.badge.ai i {
  font-size: 11px;
}
.appbar-btn img.appbar-icon {
  width: 25px;
  height: 25px;
  vertical-align: middle;
  filter: none; /* Kein Invertieren → Originalfarbe (schwarz) */
}

.appbar-btn--icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ============================================================
   STEP EDITOR
   ============================================================ */

.nonecap-app .nc-step-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--nonecap-radius);
  margin-bottom: 16px;
  padding: 16px;
}
.nonecap-app .nc-step-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nonecap-app .nc-step-controls .nonecap-btn.small {
  padding: 4px 6px;
  font-size: 13px;
  width: 40px;
  height: 40px;
}

.nonecap-app .nc-upload-zone {
  border: 2px dashed #444;
  border-radius: var(--nonecap-radius);
  background: #111;
  padding: 24px;
  text-align: center;
  cursor: pointer;
  margin-bottom: 14px;
}
.nonecap-app .nc-upload-zone.dragover {
  background: #181818;
  border-color: var(--yellow);
}

/* ============================================================
   UTILITY FIXES
   ============================================================ */

body.nonecap-app .elementor-background-overlay,
body.nonecap-app .elementor-section::before,
body.nonecap-app .elementor-section::after,
body.nonecap-app [class*="overlay"],
body.nonecap-app .owp-overlay,
body.nonecap-app .wpforms-overlay {
  display: none !important;
  pointer-events: none !important;
}
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
#nc-global-loader {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

#nc-global-loader[hidden] {
  display: none;
}
/* ============================================================
   🔄 KI Loader Overlay (nur für AI-Erstellung)
   ============================================================ */
#nc-ai-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}
#nc-ai-loader .nc-loader-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.7);
}
#nc-ai-loader .nc-loader-box {
  background: var(--surface);
  border-radius: var(--nonecap-radius);
  padding: 32px;
  text-align: center;
  z-index: 2;
  width: 320px;
}
.nc-loader-progress {
  width: 100%;
  height: 6px;
  background: var(--surface-alt);
  border-radius: 3px;
  overflow: hidden;
  margin: 16px 0;
}
.nc-loader-bar {
  height: 100%;
  width: 0%;
  background: var(--yellow);
  transition: width .4s ease;
}
#nc-ai-loader[hidden] {
  display: none !important;
}
/* === Sichtbarkeits-Warnung Modal (dezente Version) === */
#nc-visibility-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: fadeIn .25s ease;
}
#nc-visibility-modal[hidden] { display: none; }

#nc-visibility-modal .nc-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.7);
  backdrop-filter: blur(2px);
}

#nc-visibility-modal .nc-modal-box {
  position: relative;
  background: var(--surface);
  color: var(--text);
  border-radius: var(--nonecap-radius);
  padding: 26px 28px;
  max-width: 600px;
  width: 90%;
  text-align: left;
  box-shadow: 0 8px 30px rgba(0,0,0,.45);
  z-index: 2;
  animation: scaleIn .25s ease;
}

#nc-visibility-modal h3 {
  font-size: 18px;
  line-height: 1.3;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

#nc-visibility-modal p {
  font-size: 15px;
  line-height: 1.45;
  color: var(--text);
  margin-bottom: 0;
}

#nc-visibility-modal .nc-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes scaleIn {
  from { transform: scale(0.96); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* === Checkboxen / Toggles === */
.nonecap-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text);
  margin-top: 6px;
}

.nonecap-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--green);
  cursor: pointer;
}
/* === Beamer Calibration UI Enhancements === */
.zone {
  border-radius: 6px;
  box-shadow: 0 0 8px rgba(255,255,255,0.2);
  transition: box-shadow 0.2s;
}
.zone:hover {
  box-shadow: 0 0 12px rgba(255,255,255,0.4);
}
.zone div:last-child { /* Resize handle */
  border-radius: 3px 0 0 0;
}

#workspace {
  background-color: #000;
}
.nc-qr-modal {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}
.nc-qr-modal[hidden] { display: none; }
.nc-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.7);
}
.nc-modal-box {
  position: relative;
  z-index: 2;
  background: var(--surface);
  color: var(--text);
  padding: 20px;
  border-radius: var(--nonecap-radius);
  width: 90%;
  max-width: 440px;
  text-align: center;
}
/* ============================================================
   nonecap Dark UI – LIST VIEW
   Vertikale, kognitiv reduzierte Darstellung (app-list.php)
   ============================================================ */



/* === Suchleiste === */
.searchbar {
  display: flex;
  gap: 8px;
  margin: 12px 0 16px;
  padding-bottom: 16px;
}
.qr-btn {
  min-width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* === LISTE (vertikal statt Grid) === */
/* === Workflow-Liste: Vertikal untereinander === */
.wf-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}


/* === Karten === */
.wf-card {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  justify-content: space-between;
  gap: 16px;

  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--nonecap-radius);
  padding: 16px;
  color: var(--text);
  text-decoration: none;
  transition: background .16s ease, border-color .16s ease, transform .12s ease;
  cursor: pointer;
}
.wf-card:hover {
  background: color-mix(in srgb, var(--muted) 18%, var(--surface));
  border-color: color-mix(in srgb, var(--muted) 40%, var(--line));
}

/* === Infos links === */
.wf-info {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.wf-title {
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 6px;
}
.wf-sub {
  color: var(--muted);
  margin-bottom: 10px;
}
.wf-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* === Bildbereich rechts === */
.wf-media {
  flex: 0 0 160px; /* feste Höhe des Bildbereichs */
  display: flex;
  align-items: stretch; /* Bild dehnt sich vollständig aus */
  justify-content: center;
  overflow: hidden;
}

.wf-media img,
.wf-media-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover; /* schneidet das Bild passend zu */
  border-radius: var(--nonecap-radius);
  background: #0f0f0f;
  color: #9aa0a6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

/* === Responsiv: Bild bleibt oben, nicht blockartig === */
@media (max-width: 720px) {
  .wf-card {
    flex-direction: column;       /* Bild bleibt oben */
    align-items: stretch;         /* kein zentrieren! */
    text-align: left;             /* normale Ausrichtung */
  }

  .wf-media {
    width: 100%;
    display: flex;
    align-items: stretch;
    justify-content: center;
  }

  .wf-media img,
  .wf-media-placeholder {
    width: 100%;
    height: auto;
    object-fit: cover;
  }

  .wf-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding-top: 8px;
  }
}

/* ===========================================================
   nonecap – Manage View
   Enthält: Auth-Formular + Ablaufliste (Manage-Ansicht)
   =========================================================== */

/* === Grundlayout (gemeinsam) === */
body.nonecap-app.manage {
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  margin: 0;
  padding: 20px var(--page-gutter);
  box-sizing: border-box;
}

/* ===========================================================
   1. Auth-Bereich (Passwort-Bestätigung)
   =========================================================== */
.manage-auth {
  max-width: 520px;
  margin: 64px auto;
  padding: 32px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--nonecap-radius);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
  text-align: center;
}

.manage-auth h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-headlineblack);
  margin-bottom: 0.5rem;
}

.manage-auth p {
  color: var(--text);
  margin-bottom: 1.2rem;
}

.manage-auth input.nonecap-input[type="password"],
.manage-auth input.nonecap-input[type="text"] {
  width: 100%;
  background-color: var(--surface-alt);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--nonecap-radius);
  padding: 11px 12px;
  font-size: 1rem;
  margin-bottom: 16px;
  box-sizing: border-box;
}

.manage-auth input.nonecap-input:focus {
  border-color: var(--focus);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 35%, transparent);
  outline: none;
  background-color: var(--surface);
}

.manage-auth .nonecap-btn.green {
  display: block;
  width: 100%;
  padding: 12px;
  font-weight: 600;
}

.manage-auth .err {
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--red) 12%, var(--surface));
  border-radius: var(--nonecap-radius);
}

/* ===========================================================
   2. Manage-Ansicht (Ablaufliste)
   =========================================================== */

.manage-searchbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

.manage-searchbar .nonecap-input {
  flex: 1;                /* Input füllt restliche Breite */
  height: 44px;
  font-size: 16px;
}

.manage-searchbar .qr-btn {
  flex: 0 0 auto;         /* Breite fix, nicht dehnbar */
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  border-radius: var(--nonecap-radius);
  padding: 0;
}



/* Karten-Grid */
.mg-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Karte */
.mg-card {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--nonecap-radius);
  padding: 16px;
}

.mg-cover {
  flex: 0 0 180px;
  max-width: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mg-cover img,
.mg-cover .ph {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: var(--nonecap-radius);
  background: #0f0f0f;
  color: var(--muted);
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mg-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mg-title {
  font-weight: 700;
  font-size: 18px;
  color: var(--text-headlineblack);
}
.mg-sub {
  color: var(--muted);
  font-size: 14px;
}

.mg-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}



/* Erfolgs-/Info-Nachricht */
.mg-msg {
  margin-bottom: 16px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--nonecap-radius);
  background: var(--surface);
}

/* Pager */
.mg-pager {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 18px;
}

/* Responsiv */
@media (max-width: 720px) {
  .mg-card {
    flex-direction: column;
  }
  .mg-cover {
    flex: 0 0 auto;
    max-width: none;
  }
  .mg-actions {
    justify-content: flex-start;
  }
}
/* Grid wie Liste, aber Cards mit Actions rechts */
  .mg-wrap{max-width:1100px;margin:0 auto;padding:24px;}
  .mg-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}
  .mg-msg{margin:0 0 12px;padding:10px 12px;border:1px solid var(--line);border-radius:var(--nonecap-radius);background:var(--surface)}
  .mg-grid{display:flex;flex-direction:column;gap:12px}

  .mg-card{
    display:flex; gap:16px; align-items:stretch;
    background:var(--surface);
    border:1px solid var(--line);
    border-radius:var(--nonecap-radius);
    padding:16px;
  }
  .mg-cover{
    flex:0 0 25%; /* ~1/4 der Karte */
    max-width:280px;
    display:flex; align-items:center; justify-content:center;
  }
  .mg-cover img,.mg-cover .ph{
    width:100%; height:100%;
    max-height:160px;
    object-fit:cover;
    border-radius:var(--nonecap-radius);
    background:#0f0f0f;
    color:#9aa0a6; display:flex; align-items:center; justify-content:center; font-size:12px;
  }
  .mg-info{ flex:1 1 auto; min-width:0; display:flex; flex-direction:column; gap:8px; }
  .mg-title{ font-weight:700; font-size:18px; }
  .mg-sub{ color:var(--muted); }
  .mg-badges{ display:flex; gap:8px; flex-wrap:wrap; }

  .mg-actions{
    flex:0 0 auto; display:flex; flex-direction:row; gap:8px; justify-content:flex-end; align-items:flex-end; min-width:210px;
  }
  .mg-actions form{ margin:0; }

  .mg-pager{display:flex;gap:8px;justify-content:flex-end;margin-top:12px}
  @media (max-width: 720px){
    .mg-card{flex-direction:column}
    .mg-cover{max-width:none;flex:0 0 auto}
    .mg-actions{flex-direction:row;justify-content:flex-start}
  }
/* ===========================================================
   nonecap – Workflow Viewer (Horizontal Step Slider)
   Vollbild-Karten-Layout, scroll-snap horizontal, mobil & desktop
   Version: Final Fix + Titles 2025-10-09
   =========================================================== */

/* --- Root Setup --- */
:root {
  --appbar-height: 60px;
  --bg: #000;
  --card-bg: #fff;
  --text: #000;
}

/* --- Viewer Container (Hauptbereich) --- */
body.nonecap-app .viewer-container,
body.nonecap-app .carousel-viewport {
  position: fixed !important;
  top: var(--appbar-height) !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: calc(100vh - var(--appbar-height)) !important;
  display: flex !important;
  flex-direction: row !important;
  justify-content: center !important;
  align-items: stretch !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scroll-snap-type: x mandatory !important;
  -webkit-overflow-scrolling: touch !important;
  background: var(--bg) !important;
  z-index: 1 !important;
}

/* --- Innerer Bereich: begrenzte Bühne (wie Appbar) --- */
body.nonecap-app .carousel-viewport {
  max-width: 1100px !important;
  margin: 0 auto !important;
  padding: 20px !important;
  box-sizing: border-box !important;
}

/* --- Slides Wrapper --- */
body.nonecap-app .carousel-viewport .slides {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  justify-content: flex-start !important;
  align-items: stretch !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  width: 100% !important;
  height: 100% !important;
  scroll-snap-type: x mandatory !important;
  -webkit-overflow-scrolling: touch !important;
  background: #000 !important;
  position: relative !important;
  z-index: 2 !important;
  gap: 0 !important;
  padding: 0 !important;
}

/* --- Einzelne Slides --- */
body.nonecap-app .carousel-viewport .slides > section.slide,
body.nonecap-app .viewer-container > section.viewer-card {
  flex: 0 0 100% !important;
  width: 100% !important;
  max-width: 1100px !important;
  height: calc(100vh - var(--appbar-height) - 80px) !important;
  scroll-snap-align: start !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  align-items: stretch !important;
  box-sizing: border-box !important;
  background: var(--card-bg) !important;
  border-radius: 4px !important;
  overflow: hidden !important;
}

/* --- Bildbereich --- */
body.nonecap-app .slide-media,
body.nonecap-app .card-image {
  flex: 0 0 auto !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  overflow: hidden !important;
  background: #000 !important;
  max-height: 40vh !important;
  min-height: 220px !important;
  margin-bottom: 10px !important;
}

body.nonecap-app .slide-media img,
body.nonecap-app .card-image img {
  width: 100% !important;
  height: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  display: block !important;
}

/* --- Textbereich --- */
body.nonecap-app .slide-content,
body.nonecap-app .card-text {
  flex: 0 0 auto !important;
  background: var(--card-bg) !important;
  color: var(--text) !important;
  padding: 1.5rem !important;
  text-align: center !important;
  font-size: 1rem !important;
  line-height: 1.5 !important;
  overflow-y: auto !important;
}

/* ===========================================================
   🆕 Slide-Titel & Subtitel
   =========================================================== */

/* Haupttitel (z. B. „Schritt 1“) */
body.nonecap-app .slide-title {
  font-size: 35px !important;
  font-weight: 700 !important;
  color: var(--text) !important;
  margin: 0 0 0.5rem 0 !important;
  text-align: center !important;
  line-height: 1.2 !important;
}

/* Untertitel / Beschreibung */
body.nonecap-app .slide-sub {
  font-size: 30px !important;
  font-weight: 400 !important;
  color: #555 !important;
  margin: 0 0 1rem 0 !important;
  text-align: center !important;
  line-height: 1.4 !important;
}

/* optional: Abstand zwischen Text und Button */
body.nonecap-app .slide-content .speak-btn {
  margin-top: 0.5rem !important;
}

/* =========================================================== */

/* --- Pfeilnavigation --- */
.nav-arrow {
  display: none;
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  z-index: 20;
}

.nav-arrow.left { left: 10px; }
.nav-arrow.right { right: 10px; }

/* --- Dots-Navigation --- */
.slider-dots {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 10px 0 !important;
  background: transparent !important;
}

.slider-dots .dot {
  min-width: 28px !important;
  height: 28px !important;
  border-radius: 6px !important;
  border: 1px solid #8a8f98 !important;
  background: #e7e9ee !important;
  color: #111 !important;
  font-weight: 600 !important;
  font-size: 0.95rem !important;
  cursor: pointer !important;
  display: inline-flex !important;
  justify-content: center !important;
  align-items: center !important;
  transition: all 0.2s ease !important;
}

.slider-dots .dot.active {
  background: #8EE950 !important;
  border-color: #000 !important;
}

/* --- Speak Button (TTS) --- */
.speak-btn {
  background: transparent !important;
  border: none !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.speak-btn svg {
  width: 28px !important;
  height: 28px !important;
  color: #000 !important;
  transition: color 0.2s ease !important;
}

.speak-btn:hover svg {
  color: #8EE950 !important;
}

/* --- Scrollbar verstecken --- */
body.nonecap-app .carousel-viewport .slides::-webkit-scrollbar {
  display: none !important;
}

body.nonecap-app .carousel-viewport .slides {
  -ms-overflow-style: none !important;
  scrollbar-width: none !important;
}

/* --- Fixierte Dots-Navigation --- */
body.nonecap-app .slider-dots {
  position: fixed !important;
  bottom: 10px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 100% !important;
  max-width: 1100px !important;
  padding: 8px 0 !important;
  background: transparent !important;
  z-index: 10 !important;
}

/* --- Responsive Höhe mobil --- */
@media (max-width: 768px) {
  body.nonecap-app .carousel-viewport .slides > section.slide,
  body.nonecap-app .viewer-container > section.viewer-card {
    height: calc(85dvh - var(--appbar-height)) !important;
  }

  body.nonecap-app .slide-title {
    font-size: 1.25rem !important;
  }

  body.nonecap-app .slide-sub {
    font-size: 0.95rem !important;
  }
}
/* ============================================================
   nonecap Dark UI – FORM / NEW / EDIT
   Styles nur für app-workflow-new.php und ähnliche Formulare
   ============================================================ */

/* === Formularstruktur === */
.nc-form {
  display: grid;
  gap: 18px;
}
.nc-field label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 8px;
}

/* horizontale Input-Reihe (z. B. QR-Button) */
.nc-field-row {
  display: flex;
  gap: 10px;
  align-items: center;
}
.nc-field-row .nonecap-input {
  flex: 1 1 auto;
}

/* === QR-Button === */
.nc-qr-btn {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  border-radius: var(--nonecap-radius);
  padding: 0;
}

/* === Dropzone-Bereich === */
.nc-dropwrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.nc-dropzone {
  position: relative;
  background: var(--surface);
  border: 1px dashed color-mix(in srgb, var(--muted) 50%, var(--line));
  border-radius: var(--nonecap-radius);
  padding: 16px;
  min-height: 180px;
  display: grid;
  place-items: center;
  cursor: pointer;
  outline: none;
  transition: background .2s ease, border-color .2s ease;
}
.nc-dropzone:hover,
.nc-dropzone.drag,
.nc-dropzone:focus-visible {
  background: color-mix(in srgb, var(--muted) 12%, var(--surface));
  border-color: var(--focus);
}

/* Platzhalter / Intro-Bereich */
.nc-drop-inner {
  text-align: center;
  display: grid;
  gap: 8px;
}
.nc-drop-icon { font-size: 28px; opacity: .9; }
.nc-drop-title { font-weight: 700; }
.nc-drop-sub { font-size: 12px; color: var(--muted); }

/* Vorschau-Bereich */
.nc-drop-preview {
  width: 100%;
  max-width: 520px;
  display: grid;
  gap: 10px;
  justify-items: center;
}
.nc-drop-preview img {
  width: 100%;
  height: auto;
  max-height: 360px;
  object-fit: cover;
  border-radius: var(--nonecap-radius);
}
.nc-preview-actions {
  display: flex;
  gap: 8px;
}
.nc-dropzone.has-image .nc-drop-inner {
  display: none;
}

/* Hilfetext */
.nc-help {
  color: var(--muted);
  font-size: 12px;
}

/* === Formular-Aktionen === */
.nc-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}
.nc-actions .nonecap-btn.full {
  flex: 1 1 auto;
}

/* === Fehlermeldungen innerhalb der Karte === */
.nonecap-card .error {
  background: #190a0a;
  border: 1px solid #3a1a1a;
  color: #ff8a8a;
  padding: 12px;
  border-radius: var(--nonecap-radius);
  margin-bottom: 12px;
}
/* ============================================================
   Ergänzungen für app-workflow-edit.php
   ============================================================ */

/* Toolbar */
.nonecap-toolbar {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
  padding-top: 8px;
  border-top: 1px solid color-mix(in srgb, var(--muted) 25%, var(--surface));
}

/* Inline-File Inputs */
input[type="file"] {
  font-size: 14px;
  color: var(--muted);
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: var(--nonecap-radius);
  padding: 6px;
}

/* Optional: Hinweisfarben */
.nonecap-card.info {
  background: #0a1910;
  border-color: #1a3a2a;
  color: #9fe5b1;
}
.nonecap-card.warn {
  background: #19140a;
  border-color: #3a2a1a;
  color: #f4d36b;
}
.nonecap-card.error {
  background: #190a0a;
  border-color: #3a1a1a;
  color: #ff8a8a;
}
