/* ── REDAKTIONELLE SEITEN ─────────────────────────────────────────
   Überschriften und Listen im Seitentext, dazu der Editor der
   Verwaltung (js/content/page-view.js): „Seite bearbeiten“, die
   Werkzeugleiste und der editierbare Text.                         */

#content-text h2,
#content-text h3 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  line-height: 1.2;
  color: var(--black);
  margin: 1.6em 0 0.6em;
}
#content-text h2 {
  font-size: 24px;
}
#content-text h3 {
  font-size: 19px;
}
#content-text > :first-child {
  margin-top: 0;
}
#content-text ul,
#content-text ol {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.85;
  color: var(--black);
  margin: 0 0 1.5em;
  padding-left: 1.2em;
}

/* ── Editor ── */
#page-tools {
  margin-bottom: 28px;
  font-family: var(--sans);
}
#page-tools[hidden],
#page-tools [hidden] {
  display: none !important;
}
.pg-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
}
/* Beim Scrollen durch lange Seiten (AGB) bleibt die Leiste oben */
#pg-edit-bar {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 10px 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.pg-format {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.pg-tool {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--black);
  background: none;
  border: 1px solid var(--border);
  padding: 6px 10px;
  cursor: pointer;
}
.pg-tool:hover {
  border-color: var(--black);
}
.pg-link {
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.pg-link input {
  width: min(280px, 60vw);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 300;
  color: var(--black);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  padding: 4px 0;
  outline: none;
}
.pg-link input:focus {
  border-bottom-color: var(--black);
}
.pg-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}
#content-body .pg-msg {
  font-size: 13px;
  color: var(--mid);
  margin: 10px 0 0;
}
#content-body .pg-msg:empty {
  display: none;
}
#content-text.pg-editing {
  min-height: 200px;
  outline: 1px dashed var(--border);
  outline-offset: 14px;
  cursor: text;
}
