/* OTPh: Werkzeugleiste für den vorhandenen Markdown-Textarea-Editor. */
.otph-editor-toolbar { display:flex; flex-wrap:wrap; align-items:center; gap:0.45rem; margin:0.75rem 0 0.45rem; }
.otph-editor-toolbar button { padding:0.45rem 0.75rem; border:1px solid #aeb9c8; border-radius:7px; background:#f6f8fb; color:#24344d; font:inherit; font-weight:600; cursor:pointer; }
.otph-editor-toolbar button:hover { background:#e9eef6; }
.otph-editor-toolbar button:focus-visible { outline:3px solid #3377bb; outline-offset:2px; }
.otph-editor-toolbar-info { margin:0.4rem 0 0.65rem; font-size:0.87rem; color:#48576a; }
.otph-editor-action-status { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }

/* OTPh 0.8.3 – kategorisierte Toolbar, ohne bestehende Seitengestaltung zu überschreiben */
.otph-editor-tabs{display:flex;gap:.35rem;flex-wrap:wrap;margin-bottom:.65rem}
.otph-editor-tab[aria-pressed="true"]{background:#143f64;color:white}
.otph-editor-pane{display:flex;flex-wrap:wrap;gap:.35rem}
.otph-editor-pane[hidden]{display:none}

/* OTPh 0.8.4 – großer, gut lesbarer Editor und Fokusmodus */
#otph-markdown-editor {
  box-sizing: border-box;
  display: block;
  min-height: 54vh;
  width: 100%;
  padding: 1rem 1.15rem;
  line-height: 1.65;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 0.98rem;
  font-weight: 400;
  tab-size: 2;
  resize: vertical;
  white-space: pre-wrap;
}
body.otph-editor-focus #otph-markdown-editor {
  position: fixed;
  z-index: 9001;
  inset: 6rem 3vw 2vh 3vw;
  height: auto;
  width: 94vw;
  max-height: none;
  min-height: 0;
  padding: 1.25rem 1.5rem;
  background: #fff;
  border: 2px solid #4477a0;
  border-radius: 10px;
  box-shadow: 0 0 0 100vmax rgba(12,26,44,.65);
}
body.otph-editor-focus .otph-editor-toolbar {
  position: fixed;
  z-index: 9002;
  top: 0.6rem;
  left: 3vw;
  right: 3vw;
  margin: 0;
  padding: 0.5rem 0.75rem;
  background: #fff;
  border-radius: 9px;
  box-shadow: 0 2px 10px rgba(0,0,0,.15);
  max-height: 5rem;
  overflow-y: auto;
}
body.otph-editor-focus .otph-editor-focus-btn { background: #244e75; color: #fff; }
@media(max-width: 760px) {
  #otph-markdown-editor { min-height: 50vh; font-size: 0.9rem; }
  body.otph-editor-focus #otph-markdown-editor { inset: 7.5rem 2vw 1vh; width: 96vw; }
  body.otph-editor-focus .otph-editor-toolbar { left: 2vw; right: 2vw; max-height: 6.6rem; }
}
