/* NeXtMail Web – Mails übersetzen (nm-uebersetzen-web). Baut auf .hinweis.info, .kn.klein, .segment, .dialog.breit auf.
   © 2026 by Sebastian Hirtreiter */
.ue-leiste { flex-wrap: wrap; row-gap: 6px; padding: 6px 6px 6px 12px; min-height: 42px; box-sizing: border-box; }
.ue-leiste[hidden] { display: none; }
.ue-leiste > .ue-text { flex: 1 1 220px; min-width: 0; display: inline-flex; align-items: center; gap: 8px; }
.ue-leiste > .ue-knoepfe { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ue-leiste .kn.klein { flex: none; }
.ue-leiste > .ik.ue-zu { width: 30px; height: 30px; flex: none; }
.ue-leiste.warn { background: var(--warn-soft); }
.ue-leiste.warn > svg.ic { color: var(--warn); }
.ue-dreher { display: inline-block; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent;
  animation: ue-dreh .8s linear infinite; flex: none; opacity: .75; }
@keyframes ue-dreh { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ue-dreher { animation: none; border-right-color: currentColor; opacity: .4; } }

/* Einstellungen */
.ue-unter { margin-top: 10px; }
.ue-unter h3 { font-size: 14px; font-weight: 600; margin: 0 0 2px; }
.ue-unter > .hilfe { margin: 0 0 4px; }

/* Verfassen: Dialog mit Vorschau nebeneinander */
.dialog.breit.ue-dlg { max-width: 900px; }
.ue-wahl { display: flex; flex-wrap: wrap; gap: 6px 20px; align-items: center; }
.ue-wahl > .zeile { display: flex; align-items: center; gap: 10px; margin: 0; }
.ue-wahl > .zeile > .label { margin: 0; }
.ue-vorschau { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 10px; }
.ue-spalte { min-width: 0; display: flex; flex-direction: column; }
.ue-spalte-kopf { font-size: 12px; font-weight: 600; color: var(--muted); margin: 0 0 4px; text-transform: none; }
.ue-vorschau-feld { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; min-height: 160px; max-height: 46vh; overflow: auto;
  background: var(--panel); color: var(--text); font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; box-sizing: border-box; }
.ue-vorschau-feld.nur-text { white-space: pre-wrap; }
.ue-vorschau-feld img { max-width: 100%; height: auto; }
.ue-vorschau-feld blockquote { margin: 0 0 0 .8ex; border-left: 2px solid var(--line); padding-left: 1ex; }
.ue-vorschau-feld:focus-visible { outline: 2px solid var(--akzent-text); outline-offset: 1px; }
.ue-laeuft { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
.ue-fehler p { display: flex; gap: 8px; align-items: center; margin: 0 0 8px; }
.ue-fehler svg.ic { color: var(--warn); flex: none; }
.ue-hinweis { margin: 8px 0 0; }
@media (max-width: 760px) {
  /* Handy: Text und ✕ in der ersten Zeile, Knöpfe darunter (nichts allein in einer Zeile) */
  .ue-leiste > .ue-text { order: 1; flex-basis: 0; flex-grow: 1; }
  .ue-leiste > .ik.ue-zu { order: 2; }
  .ue-leiste > .ue-knoepfe { order: 3; flex-basis: 100%; padding-left: 26px; }
  .ue-vorschau { grid-template-columns: 1fr; }
  .ue-vorschau-feld { min-height: 90px; max-height: 28vh; }
  .ue-wahl > .zeile { flex-wrap: wrap; }
}
