/* ==========================================================================
   Signale (views/signale.js) – Clay-Prinzip: eine Tabelle, Zeile = Firma, Spalte = Merkmal oder Anlass.
   Vier Schriftgrößen (12 Meta · 14 Inhalt · 20 Leer-Titel · 28 Seitentitel); Orange nur für „neu“.
   ========================================================================== */
.sg { display: flex; flex-direction: column; height: 100%; min-height: 0; }

/* ---- Kopf: Titel, Suche, Export · darunter der Filtersatz */
.sg-head { flex: none; padding: 22px 24px 14px; }
.sg-head-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.sg-head-row.is-sub { align-items: baseline; margin-top: 6px; }
.sg-head h1 { margin: 0; font-size: 28px; font-weight: 600; letter-spacing: -0.025em; line-height: 1.15; white-space: nowrap; }
.sg-count { margin-left: 6px; color: var(--text-3); font-size: 14px; font-weight: 400; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.sg-tools { display: flex; align-items: center; gap: 8px; min-width: 0; }
.sg-search {
  display: flex; align-items: center; gap: 8px; width: 280px; min-width: 0; height: 32px; padding: 0 6px 0 10px;
  border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--surface); color: var(--text-3);
  transition: border-color var(--dur-1) var(--ease-out), box-shadow var(--dur-1) var(--ease-out);
}
.sg-search:hover { border-color: var(--field); }
.sg-search:focus-within { border-color: var(--text); box-shadow: var(--ring); }
.sg-search input { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 14px; }
.sg-search input::placeholder { color: var(--text-3); }
.sg-search input::-webkit-search-cancel-button { display: none; }
.sg-search:focus-within kbd { display: none; }

.sg-sentence { margin: 0; color: var(--text-2); font-size: 14px; line-height: 1.7; }
.sg-tok {
  display: inline; padding: 1px 2px; margin: 0 -2px;
  border: 0; border-radius: 4px; background: transparent;
  color: var(--text); font: inherit; font-weight: var(--w-medium);
  text-decoration: underline; text-decoration-color: var(--line-strong); text-decoration-thickness: 1.5px; text-underline-offset: 4px;
  transition: background-color var(--dur-1) var(--ease-out), text-decoration-color var(--dur-1) var(--ease-out);
}
.sg-tok:hover, .sg-tok[aria-expanded="true"] { background: var(--surface-2); text-decoration-color: var(--text); }
.sg-tok.is-set { text-decoration-color: var(--text); }
.sg-reset { margin-left: 8px; padding: 0; border: 0; background: none; color: var(--text-3); font: inherit; text-decoration: underline; text-underline-offset: 3px; }
.sg-reset:hover { color: var(--text); }

.sg-new {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  height: 28px; padding: 0 10px 0 8px;
  border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--surface);
  color: var(--text-2); font-size: 12px; white-space: nowrap;
}
.sg-new:hover { border-color: var(--line-strong); color: var(--text); }
.sg-new b { color: var(--signal-text); font-weight: var(--w-medium); }
.sg-new[aria-pressed="true"] { border-color: var(--text); color: var(--text); }
.sg-new .mark { --mark-size: 12px; border-width: 1.5px; }

/* Fußzeile */
.sg-foot {
  flex: none; display: flex; align-items: center; gap: 18px;
  min-height: 40px; padding: 0 24px;
  border-top: 1px solid var(--line);
  color: var(--text-3); font-size: 12px; white-space: nowrap; overflow: hidden;
}
.sg-hints { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.sg-k { display: inline-flex; gap: 2px; margin-left: 8px; }
.sg-foot kbd { height: 18px; min-width: 18px; font-size: 11px; }
.sg { container: sg / inline-size; }
@container sg (max-width: 1000px) { .sg-hints { display: none; } }

@media (max-width: 1023px) {
  .sg-head { padding: 18px 16px 12px; }
  .sg-head-row { flex-wrap: wrap; }
  .sg-head-row.is-sub { flex-direction: column; align-items: flex-start; gap: 8px; }
  .sg-tools { width: 100%; }
  .sg-search { flex: 1; width: auto; }
  .sg-foot { padding: 0 16px; }
}
@media (max-width: 599px) {
  .sg-head h1 { font-size: 24px; }
  #sg-export .btn-l { display: none; }
}
