/* Inline editor styling. Scoped under .ce-* so it won't collide with the
   client's own site styles. The editor chrome (modal + save bar) is fixed so
   it stays put while the client scrolls and edits. */

.ce-editing [data-edit-text] {
  outline: 1px dashed #4f7cff;
  outline-offset: 3px;
  border-radius: 2px;
  cursor: text;
}
.ce-editing [data-edit-text]:focus {
  outline: 2px solid #4f7cff;
  background: rgba(79, 124, 255, 0.06);
}
.ce-editing [data-edit-image] {
  outline: 2px dashed #4f7cff;
  outline-offset: 3px;
  cursor: pointer;
}

/* reviews */
.ce-review { margin: 0 0 12px; }
.ce-review-stars { color: #f5a623; letter-spacing: 1px; }
.ce-review-text { margin: 2px 0; }
.ce-review-author { color: #666; font-size: 0.9em; }
.ce-review-edit {
  border: 1px solid #e3e3e3;
  border-radius: 8px;
  padding: 12px;
  background: #fafafa;
}
.ce-stars-pick span { cursor: pointer; color: #f5a623; font-size: 1.2em; margin-right: 2px; }
.ce-review-row { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.ce-review-row .ce-field { flex: 1; }

/* shared field style for editor inputs */
.ce-field {
  width: 100%;
  box-sizing: border-box;
  font: inherit;
  padding: 8px 10px;
  border: 1px solid #cfcfcf;
  border-radius: 8px;
  background: #fff;
  color: #111;
}
.ce-field:focus { outline: none; border-color: #4f7cff; box-shadow: 0 0 0 3px rgba(79,124,255,0.15); }

/* buttons */
.ce-btn {
  font: inherit;
  padding: 8px 16px;
  border: 1px solid #cfcfcf;
  border-radius: 8px;
  background: #fff;
  color: #111;
  cursor: pointer;
}
.ce-btn:hover { background: #f4f4f4; }
/* Die Leiste enthaelt auch einen Link ("Reportagen verwalten"), der wie ein
   Knopf aussehen soll - ohne Unterstreichung und mit Innenabstand. */
a.ce-btn { text-decoration: none; display: inline-block; }
.ce-btn-primary { border-color: #4f7cff; color: #2747c8; }
.ce-add {
  font: inherit; cursor: pointer; padding: 8px 14px;
  border: 1px dashed #4f7cff; border-radius: 8px; background: #fff; color: #2747c8;
}
.ce-del {
  font: inherit; cursor: pointer; padding: 6px 12px;
  border: 1px solid #e0b4b4; border-radius: 8px; background: #fff; color: #a33;
}

/* password modal */
.ce-modal {
  position: fixed; inset: 0; z-index: 2147483000;
  display: none; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.45);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.ce-modal.open { display: flex; }
.ce-modal-box {
  width: 300px; max-width: calc(100vw - 32px);
  background: #fff; color: #111; border-radius: 14px;
  padding: 24px; text-align: center;
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
}
.ce-lock {
  width: 46px; height: 46px; line-height: 46px; margin: 0 auto 12px;
  border-radius: 50%; background: #eef2ff; font-size: 20px;
}
.ce-modal-title { font-size: 16px; font-weight: 600; }
.ce-modal-sub { font-size: 13px; color: #666; margin: 4px 0 14px; }
.ce-err { color: #c0392b; font-size: 13px; min-height: 18px; margin-top: 8px; }
.ce-modal-btns { display: flex; gap: 8px; margin-top: 14px; }
.ce-modal-btns .ce-btn { flex: 1; }

/* save bar */
.ce-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 2147483000;
  display: none; align-items: center; gap: 12px;
  padding: 10px 16px; background: #eef2ff; border-top: 1px solid #c7d2fe;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.ce-bar-label { flex: 1; font-size: 14px; color: #2747c8; font-weight: 500; }
.ce-status { font-size: 13px; color: #666; }
.ce-status-ok { color: #1a7f37; }
.ce-status-err { color: #c0392b; }
