:root{
  --bg: #ffffff;
  --panel: #ffffff;
  --panel2: #ebecec;
  --text: #343234;
  --muted: rgba(52,50,52,.70);
  --line: #ebecec;
  --shadow: 0 10px 28px rgba(0,0,0,.06);
  --radius: 18px;
  --accent: #343234;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  background: var(--bg);
  color: var(--text);
}

.container{
  width:min(1100px, calc(100% - 32px));
  margin:0 auto;
}

.header{
  padding:28px 0 18px;
  position:sticky;
  top:0;
  z-index:10;
  backdrop-filter: none;
  background: #ffffff;
  border-bottom:1px solid var(--line);
}

.topline{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
}

h1{
  margin:0;
  font-size:28px;
  letter-spacing:.2px;
}

.meta{
  color:var(--muted);
  font-size:13px;
  display:flex;
  align-items:center;
  gap:10px;
}
.dot{opacity:.6}

/* optional: sorgt dafür, dass die Zahl optisch immer gleich bleibt */
.meta-count{
  font-variant-numeric: tabular-nums;
}

.toolbar{
  margin-top:14px;
  display:flex;
  gap:12px;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
}
.search{
  flex:1;
  min-width:240px;
}
.search input{
  width:100%;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid var(--line);
  background: #ffffff;
  color: var(--text);
  outline:none;
}
.search input:focus{
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(52,50,52,.08);
}

.actions{display:flex; gap:10px; align-items:center; flex-wrap:wrap;}

.btn{
  padding:11px 12px;
  border-radius:14px;
  border:1px solid var(--line);
  background: #ffffff;
  color: var(--text);
  cursor:pointer;
}
.btn-ghost{
  background: var(--panel2);
}
.btn:hover{border-color: rgba(52,50,52,.35)}

.select select{
  padding:11px 12px;
  border-radius:14px;
  border:1px solid var(--line);
  background: #ffffff;
  color: var(--text);
  outline:none;
  cursor:pointer;
}
.select select:focus{
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(52,50,52,.08);
}

.filters{
  margin-top:16px;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:14px;
}
@media (max-width: 860px){
  .filters{grid-template-columns:1fr}
}

.filter-group{
  background: #ffffff;
  border:1px solid var(--line);
  border-radius: var(--radius);
  padding:14px;
  box-shadow: var(--shadow);
}
.filter-head{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:12px;
  margin-bottom:10px;
}
.filter-head h2{
  margin:0;
  font-size:14px;
  letter-spacing:.2px;
}
.filter-head p{
  margin:0;
  color:var(--muted);
  font-size:12px;
}

.chips{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.chip{
  user-select:none;
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 10px;
  border-radius:999px;
  border:1px solid var(--line);
  background: var(--panel2);
  color: var(--text);
  font-size:12px;
  cursor:pointer;
}
.chip[data-on="true"]{
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}
.chip .count{
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.chip[data-on="true"] .count{
  color: rgba(255,255,255,.85);
}

.statusline{
  margin-top:14px;
  display:flex;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  color:var(--muted);
  font-size:12px;
}

.grid{
  margin:18px 0 26px;
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:12px;
}
@media (max-width: 980px){
  .grid{grid-template-columns: repeat(2, minmax(0, 1fr));}
}
@media (max-width: 640px){
  .grid{grid-template-columns: minmax(0, 1fr);}
}

.card{
  min-width:0;
  background: #ffffff;
  border:1px solid var(--line);
  border-radius: var(--radius);
  padding:14px;
  box-shadow: var(--shadow);
  display:flex;
  flex-direction:column;
  gap:10px;
  min-height: 190px;
}
.card h3{
  margin:0;
  font-size:15px;
  letter-spacing:.2px;
}
.card .sub{
  color:var(--muted);
  font-size:12px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.badges{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
}
.badge{
  font-size:11px;
  padding:6px 8px;
  border-radius:999px;
  border:1px solid var(--line);
  background: #ffffff;
  color: var(--text);
}
.badge.role{
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
}

.card p{
  margin:0;
  font-size:13px;
  line-height:1.35;
}
.card .impact{
  color: var(--muted);
  font-size:12px;
  line-height:1.35;
}
.card .link{
  margin-top:auto;
  display:flex;
  justify-content:flex-end;
}
.card a{
  color: var(--text);
  text-decoration:none;
  font-size:12px;
  border-bottom:1px solid rgba(52,50,52,.35);
  padding-bottom:2px;
}
.card a:hover{border-bottom-color: rgba(52,50,52,.7)}

.empty{
  margin:30px 0;
  background: #ffffff;
  border:1px dashed var(--line);
  border-radius: var(--radius);
  padding:22px;
  text-align:center;
}
.hidden{display:none}

.footer{
  padding:12px 0 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size:12px;
}
.muted{color:var(--muted)}

.sr-only{
  position:absolute;
  width:1px;height:1px;
  padding:0;margin:-1px;
  overflow:hidden;clip:rect(0,0,0,0);
  white-space:nowrap;border:0;
}
