/* Ruhige Tabellenhierarchie: Aufmerksamkeit zuerst, Einordnung daneben. */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.live-market-controls { margin-bottom: 22px; color: var(--muted); font-size: 12px; }
.live-market-controls > summary { cursor: pointer; padding: 8px 0; }
.live-market-controls > summary span { margin-left: 12px; }
.live-market-controls[open] > summary { margin-bottom: 10px; }
.ranking-controls { display: flex; align-items: end; flex-wrap: wrap; gap: 14px; margin: 22px 0; }
.ranking-controls label { display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: 12px; }
.ranking-controls input, .ranking-controls select, .catalog-search input { border: 1px solid var(--line); background: var(--surface); border-radius: 7px; min-height: 42px; padding: 9px 12px; color: var(--ink); font-size: 14px; }
.ranking-controls input:focus-visible, .catalog-search input:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.ranking-search { flex: 1 1 240px; }
.ranking-controls .market-apply { min-height: 42px; }
.news-ranking { margin-top: 28px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); }
.ranking-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 26px 0; }
.ranking-heading h2 { margin: 5px 0; font-size: 23px; font-weight: 600; letter-spacing: -.035em; }
.ranking-heading p { margin: 0; color: var(--muted); font-size: 13px; }
.ranking-timestamp { font-size: 11px; color: var(--muted); white-space: nowrap; }
.news-totals { display: grid; grid-template-columns: repeat(4, 1fr); margin: 26px 0 0; padding: 0 26px 26px; gap: 24px; }
.news-totals div + div { border-left: 1px solid var(--line); padding-left: 24px; }
.news-totals dt { font-size: 12px; color: var(--muted); }
.news-totals dd { margin: 6px 0 0; font-size: 32px; line-height: 1.1; letter-spacing: -.04em; font-weight: 500; }
.news-totals small { font-size: 12px; font-weight: 400; color: var(--muted); letter-spacing: normal; }
.ranking-table { width: 100%; border-collapse: collapse; text-align: left; }
.ranking-table-wrap { overflow-x: auto; }
.ranking-table thead { background: var(--surface-muted); }
.ranking-table thead th { padding: 12px 18px; font-size: 11px; font-weight: 500; color: var(--muted); }
.ranking-table th:first-child, .ranking-table td:first-child { padding-left: 26px; }
.ranking-table tbody th, .ranking-table tbody td { padding: 16px 14px; border-top: 1px solid var(--line); vertical-align: middle; }
.ranking-table tbody th { width: 26%; font-weight: 400; }
.ranking-table .numeric-column { text-align: right; font-variant-numeric: tabular-nums; }
.ranking-table .direction-column { min-width: 145px; }
.ranking-table .external-column { min-width: 138px; }
.ranking-table tbody tr:hover { background: var(--surface-row); }
.rank-stock { display: flex; align-items: center; gap: 17px; }
.rank-number { min-width: 22px; color: var(--muted); font-size: 13px; }
.stock-link { display: block; max-width: 290px; font-size: 14px; font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.stock-link:hover { text-decoration: underline; }
.stock-symbol { display: block; font-size: 11px; color: var(--muted); margin-top: 4px; }
.coverage-note { display: block; font-size: 10px; color: var(--muted); margin-top: 5px; }
.coverage-note[data-coverage="measured"] { color: #8cdab8; }
.coverage-note[data-coverage="error"], .coverage-note[data-coverage="stale"] { color: #e9b86b; }
.message-count { font-size: 25px; line-height: 1.2; font-weight: 500; }
.ranking-meta { display: block; font-size: 11px; color: var(--muted); margin-top: 4px; line-height: 1.5; }
.baseline-value { display: flex; align-items: center; gap: 8px; min-height: 23px; }
.baseline-value strong { font-size: 16px; font-weight: 500; }
.unusual-label { font-size: 9px; color: #a2d4ff; border: 1px solid #36506a; border-radius: 4px; padding: 1px 5px; }
.activity-comparison { display: grid; gap: 3px; width: 130px; margin: 7px 0; }
.activity-comparison span, .activity-comparison i { display: block; height: 3px; background: var(--accent); border-radius: 2px; }
.activity-comparison i { background: #626d7b; }
.news-sparkline { width: 120px; height: 34px; overflow: visible; }
.news-sparkline path { fill: none; stroke: #a4bad1; stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.news-sparkline .sparkline-axis { stroke: var(--line); stroke-width: 1; }
.ranking-unusual .news-sparkline path:not(.sparkline-axis) { stroke: #8ac3fa; }
.news-direction { display: inline-block; font-size: 12px; font-weight: 500; color: var(--muted); border: 1px solid currentColor; border-radius: 5px; padding: 5px 8px; line-height: 1.4; }
.news-direction[data-direction="positive"] { color: #83d7b3; }
.news-direction[data-direction="negative"] { color: #f49f9c; }
.news-direction[data-direction="neutral"] { color: #e9c07f; }
.market-external-link { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; font-size: 12px; font-weight: 500; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.market-external-link:hover { color: var(--accent); border-color: var(--accent); }
.market-external-link:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
.market-external-primary { flex-wrap: wrap; max-width: 250px; justify-content: space-between; border: 1px solid var(--line); border-radius: 7px; padding: 12px 16px; font-size: 14px; }
.market-external-primary small { flex-basis: 100%; color: var(--muted); font-size: 11px; font-weight: 400; }
.ranking-footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 26px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.ranking-footer nav { display: flex; gap: 20px; }
.ranking-footer a { display: inline-block; padding: 6px 0; }
.ranking-method { border-top: 1px solid var(--line); padding: 15px 26px; font-size: 12px; color: var(--muted); }
.ranking-method summary, .legacy-signals summary { cursor: pointer; }
.ranking-method p { max-width: 100ch; line-height: 1.7; }
.legacy-signals { margin-top: 28px; }
.legacy-signals > summary { padding: 15px 0; font-size: 13px; color: var(--muted); }
.stock-profile { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; margin: 22px 0; overflow: hidden; }
.stock-identifiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 0; padding: 24px 26px; border-bottom: 1px solid var(--line); }
.stock-identifiers dt { font-size: 11px; color: var(--muted); }
.stock-identifiers dd { font-size: 13px; margin: 7px 0 0; overflow-wrap: anywhere; }
.stock-identifiers small { display: block; color: var(--muted); margin-top: 3px; }
.stock-news-head { display: flex; gap: 24px; align-items: center; justify-content: space-between; padding: 24px 26px 0; }
.stock-news-head h2 { margin: 0 0 10px; font-size: 13px; color: var(--muted); font-weight: 400; }
.stock-news-head .news-direction { font-size: 16px; }
.stock-news-head .coverage-note { margin: 8px 0 0; font-size: 12px; }
.stock-profile .stock-identifiers { border-top: 1px solid var(--line); border-bottom: 0; background: var(--surface-muted); }
.volume-section-title { margin: 32px 0 22px; font-size: 21px; letter-spacing: -.02em; }
.stock-news-note { font-size: 12px; color: var(--muted); line-height: 1.7; }
.stock-profile > .stock-news-note { padding: 0 26px; }
.catalog-search { max-width: 680px; margin: 24px 0 14px; }
.catalog-search label { font-size: 12px; color: var(--muted); }
.catalog-search div { display: flex; gap: 12px; margin-top: 6px; }
.catalog-search input { flex: 1; min-width: 0; }
@media (max-width: 1080px) {
  .ranking-table .sparkline-column { display: none; }
  .ranking-heading { align-items: start; }
  .ranking-timestamp { white-space: normal; text-align: right; }
}
@media (max-width: 700px) {
  .ranking-heading { flex-direction: column; gap: 10px; padding: 20px 18px 0; }
  .ranking-heading h2 { font-size: 21px; }
  .ranking-controls { gap: 12px; }
  .ranking-search { flex-basis: 100%; }
  .ranking-controls label:not(.ranking-search) { flex: 1 1 125px; }
  .news-totals { grid-template-columns: 1fr 1fr; gap: 22px; padding: 0 18px 22px; }
  .news-totals div + div { padding-left: 0; border-left: 0; }
  .news-totals dd { font-size: 28px; }
  .ranking-table thead { display: none; }
  .ranking-table, .ranking-table tbody { display: block; }
  .ranking-table tbody tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); padding: 18px; gap: 14px; }
  .ranking-table tbody th, .ranking-table tbody td { display: block; padding: 0; border: 0; width: auto; }
  .ranking-table tbody th { grid-column: 1 / -1; }
  .ranking-table tbody .sparkline-column { display: none; }
  .ranking-table .numeric-column { text-align: right; }
  .ranking-table .external-column { align-self: end; text-align: right; }
  .ranking-table .direction-column, .ranking-table .external-column { min-width: 0; overflow-wrap: anywhere; }
  .activity-comparison { max-width: 100%; }
  .rank-stock { gap: 10px; }
  .stock-link { max-width: none; }
  .ranking-footer, .ranking-method { padding: 15px 18px; }
  .stock-identifiers { grid-template-columns: 1fr 1fr; padding: 20px 18px; }
  .stock-news-head { flex-wrap: wrap; padding: 20px 18px 0; gap: 10px; }
  .stock-profile > .stock-news-note { padding: 0 18px; }
}
