:root {
  --orange: #c87a27;
  --orange-rgb: 200, 122, 39;
  --blue: #478796;
  --blue-rgb: 71, 135, 150;
  --blue-dark: #356574;
  --ink: #1c2a30;
  --muted: #5c6b72;
  --line: rgba(71, 135, 150, 0.22);
  --bg: #f3f6f7;
  --surface: #ffffff;
  --danger: #a33b2d;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(28, 42, 48, 0.08);
  --font: "Segoe UI", "Candara", "Gill Sans", "Trebuchet MS", sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(var(--orange-rgb), 0.18), transparent 60%),
    radial-gradient(900px 400px at 100% 0%, rgba(var(--blue-rgb), 0.16), transparent 55%),
    linear-gradient(180deg, #eef4f5 0%, var(--bg) 40%, #e8eef0 100%);
  min-height: 100%;
}

a { color: var(--blue-dark); text-decoration: none; }
a:hover { color: var(--orange); }

.site-header {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: flex-end;
  padding: 1.75rem 2rem 1.25rem;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.75), rgba(255,255,255,0.35));
  backdrop-filter: blur(6px);
}

.brand {
  margin: 0;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
  font-weight: 700;
}

.brand-block h1 {
  margin: 0.15rem 0;
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 650;
  color: var(--blue-dark);
}

.tagline {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: flex-end;
}

.main-nav, .lang-switch {
  display: flex;
  gap: 0.35rem;
}

.main-nav a, .lang-switch a {
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  color: var(--muted);
  border: 1px solid transparent;
}

.main-nav a.active, .lang-switch a.active {
  color: var(--blue-dark);
  border-color: var(--line);
  background: rgba(255,255,255,0.8);
}

.status-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 0.65rem 2rem;
  font-size: 0.88rem;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.45);
}

.layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.25rem;
  padding: 1.25rem 2rem 2.5rem;
  max-width: 1400px;
  margin: 0 auto;
}

.layout.manage {
  grid-template-columns: 1fr 1fr;
}

.sidebar, .panel, .content {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.sidebar, .panel { padding: 1.1rem; }
.content { padding: 0; overflow: hidden; }
.panel.full { grid-column: 1 / -1; }

.filter-form {
  display: grid;
  gap: 0.75rem;
}

label {
  display: grid;
  gap: 0.3rem;
  font-size: 0.82rem;
  color: var(--muted);
}

label.checkbox {
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.5rem;
}

input[type="search"],
input[type="text"],
input[type="url"],
select {
  width: 100%;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfc;
  color: var(--ink);
  font: inherit;
}

input:focus, select:focus {
  outline: 2px solid rgba(var(--blue-rgb), 0.35);
  border-color: var(--blue);
}

.btn {
  border: none;
  border-radius: 8px;
  padding: 0.55rem 0.9rem;
  font: inherit;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--orange);
  color: #fff;
}
.btn-primary:hover { background: #b36b1f; }

.btn-secondary {
  background: var(--blue);
  color: #fff;
}
.btn-secondary:hover { background: var(--blue-dark); }

.btn-danger {
  background: transparent;
  color: var(--danger);
  border: 1px solid rgba(163, 59, 45, 0.35);
}
.btn-danger:hover { background: rgba(163, 59, 45, 0.08); }

.hint { color: var(--muted); font-size: 0.85rem; }
.empty { color: var(--muted); padding: 1.5rem; }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.chip {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
  font-size: 0.8rem;
  cursor: pointer;
}
a.chip.chip-link {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.chip.active {
  background: rgba(var(--orange-rgb), 0.12);
  border-color: rgba(var(--orange-rgb), 0.45);
  color: var(--orange);
}
.chip.filtering {
  background: rgba(var(--blue-rgb), 0.14);
  border-color: rgba(var(--blue-rgb), 0.5);
  color: var(--blue-dark);
  font-weight: 600;
}
.btn-link.clear-tag-filter {
  display: inline-block;
  margin-top: 0.55rem;
  font-size: 0.8rem;
  color: var(--blue-dark);
  text-decoration: underline;
}
.btn-link.clear-tag-filter:hover {
  color: var(--orange);
}

.content-header {
  padding: 1.6rem 1.5rem 1.35rem;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 1.25rem;
}
.daily-briefing + .content-header { margin-top: 0.75rem; }
/* Titel bleibt einzeilig; enger Platz lässt zuerst die Suche schrumpfen und
   danach die Werkzeuge in die nächste Zeile umbrechen. */
.content-header h2 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--blue-dark);
  flex: 0 0 auto;
  white-space: nowrap;
}
.count { color: var(--muted); font-weight: 500; }

.content-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem 1.25rem;
  flex: 1 1 auto;
}
.content-search {
  flex: 1 1 10rem;
  min-width: 9rem;
  max-width: 22rem;
  margin: 0;
}
.content-search input { width: 100%; }

.sort-controls {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
}
.sort-controls .sort-label { color: var(--muted); margin-right: 0.15rem; }
.sort-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.65rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fbfcfc;
  color: var(--ink);
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.sort-btn:hover {
  border-color: var(--blue);
  background: rgba(var(--blue-rgb), 0.08);
  color: var(--blue-dark);
}
.sort-btn.active {
  border-color: rgba(var(--blue-rgb), 0.45);
  background: rgba(var(--blue-rgb), 0.14);
  color: var(--blue-dark);
  font-weight: 600;
}

.article-list { display: grid; gap: 0; }

.article {
  padding: 1.15rem 1.25rem;
  border-bottom: 1px solid var(--line);
  border-left: 3px solid var(--cat-color, var(--blue));
  animation: rise 0.35s ease both;
}
.article:nth-child(odd) { background: rgba(71, 135, 150, 0.03); }
/* Beim Live-Filtern zählt nth-child auch ausgeblendete Artikel: Streifen kommen
   dann per is-alt vom Filter-Skript. */
.article-list.is-filtered .article { background: transparent; }
.article-list.is-filtered .article.is-alt { background: rgba(71, 135, 150, 0.03); }
.article h3 { margin: 0.35rem 0 0.5rem; font-size: 1.05rem; line-height: 1.35; }
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  align-items: center;
  font-size: 0.8rem;
  color: var(--muted);
}

.source-menu {
  position: relative;
  display: inline-block;
}
.source-menu > summary {
  list-style: none;
  cursor: pointer;
  color: var(--blue-dark);
  font-weight: 600;
  border-bottom: 1px dashed rgba(var(--blue-rgb), 0.45);
  padding: 0.05rem 0.15rem;
  border-radius: 4px;
}
.source-menu > summary::-webkit-details-marker { display: none; }
.source-menu > summary::after {
  content: " ▾";
  font-size: 0.7em;
  opacity: 0.7;
}
.source-menu[open] > summary,
.source-menu.is-only > summary {
  background: rgba(var(--blue-rgb), 0.12);
  border-bottom-color: transparent;
}
.source-menu-panel {
  position: absolute;
  z-index: 20;
  top: calc(100% + 0.25rem);
  left: 0;
  min-width: 14rem;
  display: grid;
  gap: 0.15rem;
  padding: 0.35rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.source-action {
  display: block;
  padding: 0.45rem 0.6rem;
  border-radius: 6px;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.82rem;
  white-space: nowrap;
}
.source-action:hover { background: rgba(var(--blue-rgb), 0.1); color: var(--blue-dark); }
.source-action.hide:hover { background: rgba(163, 59, 45, 0.08); color: var(--danger); }
.source-action.active { font-weight: 600; background: rgba(var(--blue-rgb), 0.12); }

.active-source-filters {
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--line);
}
.active-source-filters h2 {
  margin: 0 0 0.55rem;
  font-size: 0.95rem;
}
.source-filter-chips {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 0.55rem;
}
.source-chip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.4rem;
  padding: 0.4rem 0.55rem;
  border-radius: 8px;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--line);
  background: #fbfcfc;
  font-size: 0.8rem;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.source-chip:hover {
  border-color: var(--blue);
  background: rgba(var(--blue-rgb), 0.08);
}
.source-chip.only { border-color: rgba(var(--blue-rgb), 0.35); background: rgba(var(--blue-rgb), 0.08); }
.source-chip.hidden-source { border-color: rgba(163, 59, 45, 0.3); background: rgba(163, 59, 45, 0.06); }
.source-chip .chip-label { color: var(--muted); }
.source-chip .chip-value { font-weight: 600; flex: 1; }
.source-chip .chip-x {
  margin-left: auto;
  font-size: 1.1rem;
  line-height: 1;
  color: var(--muted);
}
.btn-link.clear-source-filters {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--blue-dark);
  text-decoration: underline;
}
.btn-link.clear-source-filters:hover { color: var(--orange); }

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  background: rgba(var(--blue-rgb), 0.12);
  color: var(--blue-dark);
  font-size: 0.75rem;
}
.badge.cat { background: color-mix(in srgb, var(--cat-color) 18%, white); color: var(--ink); }
.badge.muted { background: #eef1f2; color: var(--muted); }
.badge.accent { background: rgba(var(--orange-rgb), 0.14); color: var(--orange); }

.ai-summary, .summary {
  margin: 0.4rem 0 0.6rem;
  color: #2c3a40;
  line-height: 1.45;
  font-size: 0.94rem;
}
.ai-summary .label {
  color: var(--orange);
  font-weight: 600;
  margin-right: 0.25rem;
}

.article-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 0.5rem; }
.pill {
  font-size: 0.72rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: rgba(var(--blue-rgb), 0.1);
  color: var(--blue-dark);
}
.pill.tag-match {
  background: rgba(var(--orange-rgb), 0.14);
  color: #8a5418;
}

.affected-products {
  margin: 0.25rem 0 0.65rem;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(var(--blue-rgb), 0.04);
  font-size: 0.82rem;
}
.affected-products summary {
  cursor: pointer;
  color: var(--blue-dark);
  font-weight: 600;
}
.affected-products ul {
  display: grid;
  gap: 0.4rem;
  margin: 0.55rem 0 0;
  padding: 0;
  list-style: none;
}
.affected-products li {
  display: grid;
  grid-template-columns: minmax(12rem, 1fr) minmax(10rem, 1fr) auto;
  gap: 0.35rem 0.75rem;
  align-items: baseline;
}
.affected-product-name { font-weight: 600; }
.affected-version-list { color: var(--muted); }
.affected-products a { font-weight: 600; }

.read-more {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--blue);
}

.inline-form {
  display: grid;
  gap: 0.7rem;
  margin-bottom: 1rem;
}

.feed-list, .tag-list, .audit-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.feed-list li, .tag-list li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
}

.feed-list .url {
  font-size: 0.78rem;
  color: var(--muted);
  word-break: break-all;
  margin-top: 0.25rem;
}
.feed-list .error { color: var(--danger); font-size: 0.8rem; margin-top: 0.25rem; }
.audit-mini { font-size: 0.75rem; color: var(--muted); margin-top: 0.35rem; }

.audit summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--blue-dark);
}
.audit-list li {
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.88rem;
  color: var(--muted);
}

.toast {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  background: var(--ink);
  color: #fff;
  padding: 0.7rem 1rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
  z-index: 50;
}
.toast.error { background: var(--danger); }
.hidden { display: none !important; }

.refresh-progress {
  flex-basis: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
  align-items: center;
}
.refresh-progress-bar {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--orange));
  width: 0;
  transition: width 0.25s ease;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.2);
  background-color: rgba(var(--blue-rgb), 0.15);
  position: relative;
}
#refresh-progress-bar {
  background: linear-gradient(90deg, var(--blue), var(--orange));
  height: 6px;
  border-radius: 999px;
}
#refresh-progress {
  background: rgba(255,255,255,0.5);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.35rem 0.6rem;
}
#refresh-progress-text { font-size: 0.8rem; color: var(--ink); white-space: nowrap; }

.daily-briefing {
  margin: 1rem 1.25rem 0;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(var(--orange-rgb), 0.35);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(var(--orange-rgb), 0.1), rgba(var(--blue-rgb), 0.08));
  animation: rise 0.4s ease both;
}
.daily-briefing h2 {
  margin: 0 0 0.5rem;
  color: var(--orange);
  font-size: 1.05rem;
}
.daily-briefing p { margin: 0 0 0.5rem; line-height: 1.45; }
.daily-briefing ul { margin: 0.4rem 0 0; padding-left: 1.1rem; color: #2c3a40; }

.overview-layout {
  grid-template-columns: 1fr 1fr;
}
.briefing-panel .briefing-text { line-height: 1.5; font-size: 1.02rem; }
.briefing-list { margin: 0.4rem 0 0; padding-left: 1.1rem; }

.bar-chart { display: grid; gap: 0.55rem; }
.bar-row {
  display: grid;
  grid-template-columns: minmax(90px, 140px) 1fr 2rem;
  gap: 0.5rem;
  align-items: center;
}
.bar-label { font-size: 0.82rem; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-track {
  height: 10px;
  border-radius: 999px;
  background: rgba(var(--blue-rgb), 0.12);
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--blue);
  transition: width 0.45s ease;
}
.bar-fill.crit-5, .bar-fill.crit-4 { background: var(--orange); }
.bar-fill.crit-3 { background: #b8893d; }
.bar-value { font-size: 0.8rem; color: var(--muted); text-align: right; }

.critical-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.critical-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  border-left-width: 4px;
}
.critical-item.crit-5 { border-left-color: #a33b2d; }
.critical-item.crit-4 { border-left-color: var(--orange); }
.critical-item.crit-3 { border-left-color: #b8893d; }
.critical-item.crit-2,
.critical-item.crit-1 { border-left-color: var(--blue); }
.critical-products {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.35rem 0 0.15rem;
}
.critical-products .pill.product.in-use {
  outline: 1px solid rgba(var(--orange-rgb), 0.55);
  font-weight: 600;
}
.crit-score {
  width: 3rem;
  height: 3rem;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-weight: 700;
  background: rgba(var(--orange-rgb), 0.14);
  color: var(--orange);
}
.meta-line { font-size: 0.8rem; color: var(--muted); margin-top: 0.15rem; }
.crit-badge { font-weight: 600; }
.crit-badge.crit-5, .badge.crit-5 { background: rgba(163, 59, 45, 0.14); color: #a33b2d; }
.crit-badge.crit-4, .badge.crit-4 { background: rgba(var(--orange-rgb), 0.16); color: var(--orange); }
.pill.vendor { background: rgba(var(--blue-rgb), 0.14); }
.pill.product { background: rgba(var(--orange-rgb), 0.14); color: #8a5418; }
button.pill.ai-tag {
  cursor: pointer;
  font: inherit;
  border: 1px dashed rgba(var(--orange-rgb), 0.55);
  background: rgba(var(--orange-rgb), 0.1);
  color: #8a5418;
  transition: background 0.15s ease, border-color 0.15s ease;
}
button.pill.ai-tag:hover:not(:disabled) {
  background: rgba(var(--orange-rgb), 0.22);
  border-style: solid;
}
button.pill.ai-tag.known,
button.pill.ai-tag:disabled {
  cursor: default;
  opacity: 0.75;
  border-style: solid;
  border-color: rgba(var(--blue-rgb), 0.35);
  background: rgba(var(--blue-rgb), 0.1);
  color: var(--blue-dark);
}

@keyframes rise {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.period-select {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: 0.75rem;
  color: var(--muted);
}
.period-select select {
  min-width: 11rem;
  padding: 0.4rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.table-wrap { overflow-x: auto; }
.impact-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.impact-table th,
.impact-table td {
  text-align: left;
  padding: 0.55rem 0.65rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.impact-table th {
  color: var(--blue-dark);
  font-weight: 600;
  background: rgba(var(--blue-rgb), 0.06);
}
.impact-table tr.is-affected {
  background: rgba(var(--orange-rgb), 0.06);
}
.impact-table .examples { font-size: 0.82rem; color: var(--muted); }
.crit-mini {
  display: inline-block;
  min-width: 1.1rem;
  margin-right: 0.35rem;
  font-weight: 700;
  color: var(--orange);
}

.history-bars {
  display: flex;
  align-items: flex-end;
  gap: 0.35rem;
  min-height: 180px;
  padding: 0.75rem 0.25rem 0;
  overflow-x: auto;
}
.history-bar-col {
  flex: 0 0 auto;
  width: 2.4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 160px;
}
.history-bar-fill {
  width: 70%;
  border-radius: 4px 4px 0 0;
  background: var(--blue);
  min-height: 4px;
  transition: height 0.35s ease;
}
.history-bar-fill.crit-4,
.history-bar-fill.crit-5 { background: var(--orange); }
.history-bar-fill.crit-3 { background: #b8893d; }
.history-bar-label {
  margin-top: 0.35rem;
  font-size: 0.65rem;
  color: var(--muted);
  text-align: center;
  max-width: 2.4rem;
  overflow: hidden;
  text-overflow: ellipsis;
}
.history-bar-value {
  font-size: 0.7rem;
  color: var(--ink);
  font-weight: 600;
}

.site-footer {
  margin-top: 2.5rem;
  padding: 1.25rem 2rem 1.75rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  background: rgba(255, 255, 255, 0.55);
}
.footer-nav {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
  font-size: 0.88rem;
}
.footer-nav a {
  color: var(--blue-dark);
  font-weight: 600;
}
.footer-nav a:hover { color: var(--orange); }
.footer-sep { color: var(--muted); }
.footer-copy {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.access-denied {
  background: rgba(163, 59, 45, 0.1);
  color: var(--danger);
  font-weight: 600;
}

.sources-layout {
  display: grid;
  gap: 1.25rem;
  padding: 0 2rem 1rem;
}
.sources-section { margin: 0; }
.sources-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 0.35rem;
}
.sources-header h2 { margin: 0; }
.sources-search {
  min-width: min(100%, 18rem);
  margin: 0;
}
.sources-search input {
  width: 100%;
}
.sources-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.sources-table th,
.sources-table td {
  text-align: left;
  vertical-align: top;
  padding: 0.65rem 0.55rem;
  border-bottom: 1px solid var(--line);
}
.sources-table th {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
/* display:flex/grid darf NIE direkt auf <td> stehen: die Zelle fällt aus dem
   Table-Layout, benachbarte Zellen verschmelzen zu einer anonymen Zelle und die
   Spalten verrutschen. Layout deshalb im Wrapper innerhalb der Zelle. */
.sources-table .cell-items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}
.sources-table .link-cell .cell-items {
  flex-direction: column;
  align-items: flex-start;
}
.sources-table .link-cell a {
  display: inline-block;
  max-width: 22rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sources-row.hidden { display: none; }
.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;
}

@media (max-width: 960px) {
  .site-header { flex-direction: column; align-items: flex-start; }
  .layout, .layout.manage, .overview-layout { grid-template-columns: 1fr; padding: 1rem; }
  .site-header, .status-bar, .site-footer { padding-left: 1rem; padding-right: 1rem; }
  .bar-row { grid-template-columns: 1fr; }
  .affected-products li { grid-template-columns: 1fr; }
  .period-select { width: 100%; }
  .period-select select { width: 100%; }
}

