:root {
  --bg: #f5f8fc;
  --surface: #ffffff;
  --text: #10203a;
  --muted: #5f7085;
  --border: #d8e1ee;
  --accent: #1f4a8f;
  --high: #c62828;
  --medium: #ef6c00;
  --low: #2e7d32;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #eef4fc 0, #f9fbff 240px, var(--bg) 100%);
  line-height: 1.55;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.topbar {
  background: #0d1f3a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.topbar-inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand,
.back-link {
  color: #fff;
  text-decoration: none;
}

.brand {
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
}

.brand span {
  color: #7ab0ff;
}

.back-link {
  font-size: 0.94rem;
  opacity: 0.9;
}

.hero {
  padding: 40px 0 22px;
}

.eyebrow {
  margin: 0 0 8px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent);
  font-size: 0.74rem;
}

h1 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  line-height: 1.2;
}

.subtitle {
  margin: 14px 0 0;
  max-width: 760px;
  color: var(--muted);
}

.meta-row {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--muted);
  font-size: 0.92rem;
}

.controls {
  padding: 8px 0 10px;
}

.controls-inner {
  display: grid;
  gap: 10px;
}

.stats,
.filters,
.selects {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.stat-pill {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 0.88rem;
}

.chip {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  border-radius: 999px;
  padding: 8px 13px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.84rem;
}

.chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.select-input {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  border-radius: 9px;
  padding: 8px 10px;
  font-size: 0.86rem;
  min-width: 210px;
}

.table-section {
  padding: 10px 0 44px;
}

.table-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: auto;
}

.news-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 940px;
}

.news-table thead th {
  text-align: left;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  background: #f8fbff;
}

.news-table tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  font-size: 0.92rem;
}

.news-table tbody tr:last-child td {
  border-bottom: none;
}

.news-table tbody tr:hover {
  background: #fbfdff;
}

.importance-badge,
.source-pill {
  display: inline-block;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 4px 10px;
}

.importance-badge {
  color: #fff;
}

.importance-badge.hoch {
  background: var(--high);
}

.importance-badge.mittel {
  background: var(--medium);
}

.importance-badge.niedrig {
  background: var(--low);
}

.source-pill {
  background: #eff4ff;
  color: #244778;
}

.source-pill-more {
  background: #e7ecf8;
  color: #4f607b;
}

.source-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.news-title {
  margin: 0;
  font-weight: 700;
  line-height: 1.3;
}

.news-summary {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.87rem;
  line-height: 1.45;
}

.news-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.88rem;
}

.col-link {
  min-width: 210px;
}

.source-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.source-links a {
  display: inline-block;
  width: fit-content;
}

.fallback-link {
  color: var(--muted);
  font-size: 0.82rem;
  text-decoration: none;
}

.source-link-more {
  color: var(--muted);
  font-size: 0.8rem;
}

.empty {
  margin: 18px 0 0;
  color: var(--muted);
}

.hidden {
  display: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (max-width: 760px) {
  .topbar-inner {
    min-height: 58px;
  }

  .back-link {
    font-size: 0.86rem;
  }

  .select-input {
    min-width: 170px;
  }
}
