/* Detailseite (Step 4.1). Farben nur über Tokens. */
.detail { display: flex; flex-direction: column; gap: 1rem; }
.detail__section, .detail__head { margin: 0; }
.detail__back { margin: 0 0 0.5rem; font-size: 0.875rem; }
.detail__titlerow { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; }
.detail__title { margin: 0; font-size: 1.5rem; line-height: 1.2; }
.detail__icon { width: 3rem; height: 3rem; }
.detail__icon img { max-width: 2.5rem; max-height: 2.5rem; }
.detail__desc { margin: 0.75rem 0 0; max-width: 70ch; }
.detail__meta { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; margin: 0.5rem 0 0; color: var(--color-text-muted); font-size: 0.875rem; }
.detail__meta a { color: var(--color-accent); }
.detail__h2 { margin: 0 0 0.75rem; font-size: 1.125rem; }
.detail__h3 { margin: 0.5rem 0 0.25rem; font-size: 0.9375rem; color: var(--color-text-muted); }
.detail__h4 { margin: 0.75rem 0 0.25rem; font-size: 0.875rem; }
.detail__empty { margin: 0; color: var(--color-text-muted); }
.detail__list { margin: 0; padding-left: 1.25rem; }
.detail__list li { margin: 0.25rem 0; }
.detail__support { list-style: none; padding-left: 0; }
.detail__notfound { margin-top: 1rem; }
.detail a { color: var(--color-accent); }
.detail .btn { color: var(--color-text); }
.detail .btn--link { color: var(--color-accent); }
.detail .badge--cat { color: var(--color-accent); }

/* Tabellen ----------------------------------------------------------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.table th, .table td {
  padding: 0.5rem 0.625rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--color-divider);
}
.table thead th { color: var(--color-text-muted); font-size: 0.8125rem; font-weight: 600; white-space: nowrap; }
.plans__name wbr { display: none; }
.table tbody th { font-weight: 400; }
.plans__name { min-width: 8rem; }
/* Plan-Namen nie mitten im Wort umbrechen: breit einzeilig, schmal nur an den <wbr> nach _ - . */
.plans__name code { font-weight: 600; overflow-wrap: normal; word-break: normal; white-space: nowrap; }
.plans__cat-in { display: inline-flex; align-items: center; gap: 0.375rem; white-space: nowrap; }
.plans__badges { white-space: nowrap; }
.plans__badges .badge + .badge { margin-left: 0.25rem; }
.plans__desc { min-width: 14rem; }
.plans__desc .plan__deprecation { margin: 0.25rem 0 0; }
.plans tbody tr:target { background: var(--color-fav-bg); }

/* Verfügbarkeit ------------------------------------------------------- */
.avail__hint { margin: 0 0 0.75rem; color: var(--color-text-muted); font-size: 0.875rem; }
.avail__modes { display: inline-flex; gap: 0.5rem; margin-bottom: 0.75rem; }
.avail__mode[aria-pressed="true"] {
  background: var(--color-accent-strong);
  color: var(--color-on-accent-strong);
  border-color: var(--color-accent-strong);
}
.detail .avail__mode[aria-pressed="true"] { color: var(--color-on-accent-strong); }
.avail__chips { display: flex; flex-wrap: wrap; gap: 0.375rem 0.75rem; }
.avail__item { display: inline-flex; align-items: center; gap: 0.375rem; }
.avail__dc { color: var(--color-text-muted); font-family: var(--font-mono); font-size: 0.8125rem; }
.avail--grid th, .avail--grid td { white-space: nowrap; }
.avail__cell--yes { color: var(--color-text); }
.avail__cell--no { color: var(--color-text-muted); }

/* Kopieren ------------------------------------------------------------- */
.copy { display: inline-flex; align-items: center; gap: 0.5rem; }
.copy__btn { min-height: 1.5rem; padding: 0 0.5rem; font-size: 0.8125rem; }
.copy__status { color: var(--color-text-muted); font-size: 0.8125rem; min-width: 3.5rem; }

/* Schemas ---------------------------------------------------------------- */
.schema { margin: 0.5rem 0; border: 1px solid var(--color-card-border); border-radius: 6px; }
.schema > summary { padding: 0.5rem 0.75rem; cursor: pointer; }
.schema > summary:hover code { color: var(--color-accent); }
.schema__body { padding: 0 0.75rem 0.75rem; }
.schema-tree { list-style: none; margin: 0; padding-left: 0; }
.schema-tree .schema-tree { margin-left: 0.5rem; padding-left: 0.875rem; border-left: 1px solid var(--color-divider); }
.schema-node { margin: 0.5rem 0; }
.schema-node__row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.5rem; }
.schema-node__name { font-weight: 600; }
.schema-node__type { color: var(--color-text-muted); font-family: var(--font-mono); font-size: 0.8125rem; }
.schema-node__title { font-size: 0.875rem; }
.schema-node__desc { color: var(--color-text-muted); font-size: 0.875rem; max-width: 80ch; overflow-wrap: anywhere; }
.schema-node__extra { font-size: 0.8125rem; color: var(--color-text-muted); overflow-wrap: anywhere; }
.schema-node__extra code { color: var(--color-text); }
.schema-node__enum { display: inline-block; margin: 0.125rem 0.125rem 0 0; padding: 0 0.375rem; border: 1px solid var(--color-border); border-radius: 4px; }
.schema-node__more { color: var(--color-text-muted); font-weight: 700; }
.schema-empty { margin: 0.5rem 0; color: var(--color-text-muted); }
.schema-raw { margin-top: 1rem; }
.schema-raw > summary { cursor: pointer; color: var(--color-accent); }
.schema-raw__bar { margin: 0.5rem 0; }
.schema-raw__pre {
  margin: 0;
  max-height: 24rem;
  overflow: auto;
  padding: 0.75rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  white-space: pre;
}

@media (max-width: 600px) {
  .detail__title { font-size: 1.25rem; }
  .plans__desc { min-width: 10rem; }
  .plans__name code { white-space: normal; }
  .plans__name wbr { display: inline; }
}
