html {
  font-size: 15px;
  /* Ohne dies reserviert der Browser die Scrollbar-Breite nur auf Seiten, die
     tatsächlich vertikal scrollen (z. B. Aktuelles/Produkte mit vielen
     Einträgen) – beim Wechsel zu/von kürzeren Listen (Team, Partner, …)
     springt dadurch die gesamte Seite seitlich um die Scrollbar-Breite. */
  scrollbar-gutter: stable;
}

.cms-nav {
  background: #0b1220;
}

/* Logo ist für den hellen Hintergrund der Hauptseite gezeichnet (dunkle
   Blautöne) – auf der dunklen CMS-Navbar braucht es eine helle Fläche
   dahinter, sonst blendet der dunkelste Blauton (#013b5c) mit dem
   Navbar-Hintergrund (#0b1220) zusammen. */
.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.35rem 0.7rem;
  background: #fff;
  border-radius: 0.4rem;
}

.brand-logo img {
  display: block;
}

.brand-suffix {
  font-weight: 700;
  color: #0b1220;
  letter-spacing: 0.02em;
}

.cms-nav .nav-link {
  color: #cbd5e1;
}

.cms-nav .nav-link:hover {
  color: #fff;
}

textarea.content-editor {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9rem;
  min-height: 30rem;
  white-space: pre;
}

.status-badge {
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
}

.status-published {
  background: #16a34a;
}

.status-draft {
  background: #64748b;
}

.status-review {
  background: #d97706;
}

.status-archived {
  background: #334155;
}

/* Strukturiertes Content-Formular (Edit.cshtml, _ContentField.cshtml) */
.editor-card {
  border-color: #dbe3ee;
}

.editor-card .field-group {
  padding-block: 0.9rem;
  border-bottom: 1px solid #eef1f5;
}

.editor-card .field-group:last-child {
  border-bottom: none;
  padding-bottom: 0.2rem;
}

.field-group--nested {
  border-bottom: none !important;
  padding: 0 !important;
}

.field-hint {
  font-size: 0.8rem;
  color: #64748b;
  margin-bottom: 0.35rem;
}

.nested-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 0.75rem 1rem;
  padding: 0.9rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
}

.repeater-row {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.repeater-row.card {
  flex-direction: column;
  align-items: stretch;
  background: #f8fafc;
  border-color: #e2e8f0;
}

.repeater-row.card .nested-fields {
  background: transparent;
  border: none;
  padding: 0;
  margin-bottom: 0.75rem;
}

.repeater + button[data-repeater-add],
template + button[data-repeater-add] {
  margin-top: 0.25rem;
}
