/* WEB-0b: CMS-Verwaltung der öffentlichen Webseite. */

/* ── Seitenliste ── */
.webseite-card__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.status-badge {
  display: inline-block;
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  border: 1px solid var(--color-border);
}
.status-badge--draft {
  background: var(--color-bg);
  color: var(--color-text-muted);
}
.status-badge--published {
  background: var(--color-accent-soft);
  color: var(--color-accent);
  border-color: var(--color-accent);
}

/* ── Editor: Kopf + Blöcke ── */
.webseite-section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem;
  margin-bottom: 1.25rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
}

.field-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text);
}

.field-hint {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.saved-hint {
  align-self: center;
  font-size: 0.85rem;
  color: var(--color-accent);
}

.webseite-blocks-title {
  margin: 0 0 0.5rem;
}

.block-list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.block-card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 0.9rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
}

.block-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.block-card__type {
  font-weight: 600;
}
.block-card__tools {
  display: flex;
  gap: 0.35rem;
}

.btn--icon {
  min-width: 2.25rem;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  font-size: 1rem;
  line-height: 1;
}

.block-markdown {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.gallery-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.gallery-row .input {
  flex: 1 1 12rem;
}

.block-add {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
