/* pz-text.css – AUTOMATISCH ERZEUGT aus rtg/assets/rtg.css (Text-Editor). Nicht von Hand ändern. */
/* ------------------------------------------------------------- Text-Editor
   Derselbe Baustein im Tray-Inspektor und in der Deckel-Kachel. Steht am
   Dateiende, damit er die allgemeinen Feldregeln (.rtg-insp .rtg-f input …)
   bei gleicher Gewichtung schlaegt – die Leiste braucht schmale Felder. */
.rtg-te { width: 100%; box-sizing: border-box; background: #fff;
  border: 1px solid var(--line, #d9cdb4); border-radius: 10px; overflow: hidden; }
.rtg-te-lbl { font-size: .72rem; color: var(--cream-faint); text-transform: uppercase; letter-spacing: .05em; }
.rtg-lid-te { width: 100%; }
.rtg-te-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; padding: 5px 6px;
  background: #fbf6ec; border-bottom: 1px solid var(--line-soft, #eadfc8); }
.rtg-te select.rtg-te-fam { flex: 1 1 130px; width: auto; min-width: 0; max-width: 190px; box-sizing: border-box;
  padding: 4px 6px; font: inherit; font-size: .8rem; color: #241a0c; background: #fff;
  border: 1px solid var(--line, #d9cdb4); border-radius: 7px; }
.rtg-te-gr { display: inline-flex; align-items: center; gap: 3px; font-size: .72rem; color: #6b5a3c; }
.rtg-te .rtg-te-gr input { width: 50px; box-sizing: border-box; padding: 4px 5px; text-align: right;
  font: inherit; font-size: .8rem; color: #241a0c; background: #fff;
  border: 1px solid var(--line, #d9cdb4); border-radius: 7px; }
.rtg-te-gruppe { display: inline-flex; gap: 2px; }
.rtg-te-k { min-width: 28px; height: 28px; padding: 0 5px; display: inline-flex; align-items: center; justify-content: center;
  font: inherit; font-size: .86rem; line-height: 1; color: #3a2a14; cursor: pointer;
  background: transparent; border: 1px solid transparent; border-radius: 7px; }
.rtg-te-k:hover:not(:disabled) { background: #fff; border-color: var(--line, #d9cdb4); }
/* Aktive Auszeichnung im selben Gruen wie jede andere Wahl im Designer */
.rtg-te-k.is-on { color: var(--leaf, #285c14); background: var(--rtg-wahl, #e3f1d9); border-color: var(--leaf, #285c14); }
.rtg-te-k:disabled { opacity: .35; cursor: not-allowed; }
.rtg-te-k sup, .rtg-te-k sub { font-size: .62em; }
.rtg-te-feld { min-height: 3.4em; max-height: 11em; overflow-y: auto; padding: 8px 10px; outline: none;
  white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.35; color: #241a0c; cursor: text; }
.rtg-te-feld:focus { box-shadow: inset 0 0 0 2px var(--rtg-wahl-ring, rgba(40, 92, 20, .22)); }
.rtg-te-info { padding: 3px 10px 5px; font-size: .7rem; color: #8a7a5c; border-top: 1px solid var(--line-soft, #eadfc8); }
.rtg-te-info.is-warn { color: #a33; }
.rtg-te.is-gesperrt .rtg-te-feld { background: #f4efe6; color: #8a7a5c; cursor: not-allowed; }
@media (max-width: 780px) {
  /* Am Handy groessere Tippflaechen, die Schriftwahl bekommt eine eigene Zeile */
  .rtg-te-k { min-width: 36px; height: 36px; }
  .rtg-te select.rtg-te-fam { flex-basis: 100%; max-width: none; padding: 7px 8px; font-size: .9rem; }
  .rtg-te .rtg-te-gr input { width: 58px; padding: 7px 6px; font-size: .9rem; }
}
