/* Editor für Protokolltexte und die Darstellung formatierter Texte
   (2026-10-18, public/editor.js, lib/richtext.js). Eigene Datei, damit
   style.css unberührt bleibt. */

.rt-editor {
  border: 1px solid #d5dde3; border-radius: 10px; background: #fff;
  overflow: hidden; margin-top: .25rem;
  transition: border-color .15s, box-shadow .15s;
}
.rt-editor.ist-fokus { border-color: #8fb8d6; box-shadow: 0 0 0 3px rgba(31, 127, 184, .12); }
.rt-leiste {
  display: flex; flex-wrap: wrap; align-items: center; gap: .15rem;
  padding: .35rem .5rem; background: #f6f8f8; border-bottom: 1px solid #e3e8ec;
}
.rt-knopf {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.1rem; height: 2.1rem; padding: 0; border: 0; border-radius: 7px;
  background: none; color: #3d4a54; cursor: pointer;
  font: 600 1.05rem/1 Georgia, 'Times New Roman', serif;
}
.rt-knopf i { font-weight: 400; }
.rt-knopf svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round; }
.rt-knopf svg circle, .rt-knopf svg text { fill: currentColor; stroke: none; font-family: system-ui, sans-serif; font-weight: 700; }
.rt-knopf:hover { background: #e7edf1; }
.rt-knopf.ist-an { background: #dbe9f4; color: #1f5f8b; }
.rt-knopf:focus-visible { outline: 2px solid #1f7fb8; outline-offset: 1px; }
.rt-farbe::before {
  content: ''; width: 1.1rem; height: 1.1rem; border-radius: 50%;
  background: var(--rt-farbe); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15);
}
.rt-trenner { width: 1px; align-self: stretch; margin: .3rem .35rem; background: #d5dde3; }
.rt-inhalt {
  padding: .7rem .85rem; outline: none; line-height: 1.55; color: #12232f;
  overflow-wrap: anywhere; cursor: text;
}
.rt-inhalt.ist-leer:empty::before, .rt-inhalt.ist-leer:has(> br:only-child)::before {
  content: attr(data-platzhalter); color: #9aa6ae;
}
.rt-inhalt a { cursor: text; }
.rt-quelle[hidden] { display: none !important; }

/* Formatierte Texte, im Editor wie in jeder Anzeige. */
.rt-text > :first-child { margin-top: 0; }
.rt-text > :last-child { margin-bottom: 0; }
.rt-text p { margin: 0 0 .6em; }
.rt-text h3 { font-size: 1.05em; margin: .9em 0 .35em; color: inherit; }
.rt-text ul, .rt-text ol { margin: .2em 0 .6em; padding-left: 1.5em; }
.rt-text li { margin: .1em 0; }
.rt-text a { color: #1f6ea3; text-decoration: underline; }
.rt-gruen { color: #2e8556; }
.rt-rot { color: #b42318; }
.rt-blau { color: #2f5d9b; }
.rt-orange { color: #c0620a; }
.rt-grau { color: #6b7280; }
div.rt-text { margin: 0 0 .75em; }
.antrag-kasten .rt-text, .antrag-kasten.rt-text { display: block; }

@media (max-width: 520px) {
  .rt-knopf { width: 1.9rem; height: 1.9rem; }
  .rt-trenner { margin: .3rem .15rem; }
}
