/* ==============================
   Backend Editor – Plugin-spezifische Styles
   (Gemeinsame Styles kommen aus ndb-shared)
   ============================== */

/* Tabs */
.ndb-tabs { margin: 8px 0 16px 0; }
.ndb-tabs a { text-decoration: none; }

/* Notices */
.ndb-notice { background: #f1f5ff; border: 1px solid #c9d7ff; padding: 10px 12px; border-radius: 8px; margin: 12px 0; }
.ndb-notice-warn { background: #fff7e6; border-color: #ffd58a; }

/* Actions bar */
.ndb-actions { display: flex; gap: 10px; align-items: center; margin: 10px 0 14px; }
.ndb-actions a.button { display: inline-block; padding: 8px 10px; border: 1px solid #ccc; border-radius: 8px; background: #fff; text-decoration: none; }

/* Links */
.ndb-link { color: #2271b1; text-decoration: none; }
.ndb-link:hover { text-decoration: underline; }

/* Modal */
.ndb-modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.35); display: flex; align-items: center; justify-content: center; padding: 18px; z-index: 9999; }
.ndb-modal { width: min(780px,100%); background: #fff; border-radius: 12px; box-shadow: 0 10px 50px rgba(0,0,0,.25); overflow: hidden; display: flex; flex-direction: column; max-height: 90vh; }
.ndb-modal-header { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid #eee; flex-shrink: 0; }
.ndb-modal-header h2 { margin: 0; font-size: 18px; }
.ndb-modal-body { padding: 16px; overflow-y: auto; flex-grow: 1; }
.ndb-modal-footer { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 16px; border-top: 1px solid #eee; background: #fafafa; flex-shrink: 0; }

/* Form grid */
.ndb-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ndb-grid-1 { grid-template-columns: 1fr; }
.ndb-field label { display: block; font-size: 12px; color: #444; margin-bottom: 6px; }
.ndb-field input, .ndb-field select, .ndb-field textarea { width: 100%; padding: 10px 10px; border: 1px solid #ddd; border-radius: 10px; font-size: 14px; }
.ndb-field textarea { min-height: 90px; resize: vertical; }

/* Radio & Help */
.ndb-radio { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.ndb-help { font-size: 12px; color: #666; margin-top: 6px; }

/* ==============================
   Page heading spacing
   Keep the page title aligned with the padded editor content on /stammdaten
   ============================== */
body.page h1:first-of-type {
  max-width: 1100px;
  margin: 30px auto 20px;
  padding: 0 16px;
  box-sizing: border-box;
  width: 100%;
}
