.ost-bildaktionen-link {
  position: fixed;
  right: 12px;
  bottom: 76px;
  z-index: 35;
  padding: 8px 12px;
  border-radius: var(--radius-knopf);
  border: 1px solid var(--rahmen);
  background: var(--hintergrund);
  color: var(--haupttext);
  font: 500 var(--schrift-14) var(--schrift);
}
.ost-bildaktionen-link:hover { text-decoration: underline; }

.ost-editor {
  --ink: var(--haupttext);
  --muted: var(--sekundaertext);
  --line: var(--rahmen);
  --accent: var(--guide-gruen-hell);
  background: var(--panel);
  color: var(--ink);
  margin: 0;
  font: var(--schrift-16)/1.5 var(--schrift);
}
.ost-editor [hidden] { display: none !important; }
.ost-editor * { box-sizing: border-box; }
.ost-editor main { max-width: 1280px; margin: auto; padding: 36px clamp(16px, 4vw, 56px); }
.ost-editor header { display: grid; grid-template-columns: 1fr auto; align-items: end; margin-bottom: 28px; }
.ost-editor h1 { grid-column: 1; font-size: var(--schrift-24); line-height: 1.12; margin: 12px 0 0; letter-spacing: -.045em; }
.ost-editor a { color: var(--accent); font-weight: 600; }
.ost-editor .back { grid-column: 1 / -1; font-size: var(--schrift-14); }
.ost-editor #balance { margin: 0; font-size: var(--schrift-14); font-variant-numeric: tabular-nums; }
.ost-editor .image-pane { background: white; border: 1px solid var(--line); border-radius: var(--radius-karte); padding: 20px; }
.ost-editor .image-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.ost-editor #file { max-width: 100%; }
.ost-editor #source { max-width: 100%; }
.ost-editor #viewport { min-height: 280px; background: var(--feld); border-radius: var(--radius-knopf); display: grid; place-items: center; padding: 12px; }
.ost-editor #empty { color: var(--muted); text-align: center; }
.ost-editor label { font-weight: 600; font-size: var(--schrift-14); }
.ost-editor button { cursor: pointer; }
.ost-editor #status { font-size: var(--schrift-14); color: var(--muted); margin: 8px 0; }
.ost-editor #status:empty { display: none; }
.ost-editor :focus-visible { outline: 2px solid var(--guide-gruen); outline-offset: 2px; }
@media (max-width: 820px) {
  .ost-editor header { display: block; }
  .ost-editor #balance { margin-top: 12px; }
}
.ost-editor #workspace-source { display: block; max-width: 100%; max-height: 55vh; }
.ost-editor #workspace-actions { margin: 12px 0 0; }
.ost-editor button, .ost-editor select {
  background: white; color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius-knopf);
  padding: 8px 12px; font: inherit;
}
