.portfolio-card {
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  background: var(--color-surface);
  height: 100%;
  transition: box-shadow .15s;
}
.portfolio-card:hover { box-shadow: 0 2px 10px rgba(0,0,0,.08); }
.portfolio-card--warn { border-color: var(--tint-amber-200); background: var(--tint-amber-50); }

.portfolio-card-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 14px 16px;
  color: inherit;
  height: 100%;
}

.portfolio-icon {
  font-size: 1.5rem;
  margin-bottom: 6px;
}

.portfolio-num {
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1;
  color: var(--gray-900);
}

.portfolio-label {
  font-size: .78rem;
  color: var(--gray-500);
  margin-top: 2px;
}

.portfolio-sub {
  font-size: .75rem;
  margin-top: 4px;
}
.portfolio-sub span { font-weight: 600; }

.obj-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--gray-100);
  flex-shrink: 0;
  font-size: 1rem;
}

.leerstand-tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 6px 2px 8px;
  font-size: .82rem;
  color: var(--gray-500);
  cursor: pointer;
  white-space: nowrap;
  transition: color .15s, border-color .15s;
}
.leerstand-tab:hover { color: var(--gray-900); }
.leerstand-tab.active { color: var(--brand-blue); border-bottom-color: var(--brand-blue); font-weight: 600; }

.tab-badge {
  display: inline-block;
  background: var(--gray-100);
  color: var(--gray-700);
  font-size: .7rem;
  border-radius: 20px;
  padding: 0 6px;
  margin-left: 3px;
  font-weight: 600;
}

.leerstand-panel { min-height: 80px; }

.leerstand-row {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  border-bottom: 1px solid var(--gray-100);
  gap: 6px;
}
.leerstand-row:last-child { border-bottom: none; }

.aufgabe-row {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  border-bottom: 1px solid var(--gray-100);
  gap: 8px;
}
.aufgabe-row:last-child { border-bottom: none; }
.aufgabe-row--late { background: var(--tint-red-50); }

.btn-aufgabe-check {
  background: none;
  border: 1.5px solid var(--gray-300);
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
  color: var(--gray-400);
  font-size: .75rem;
  transition: border-color .15s, color .15s;
}
.btn-aufgabe-check:hover { border-color: #10b981; color: #10b981; }

.aufgabe-prio {
  font-size: .65rem;
  padding: 2px 7px;
  border-radius: 20px;
  text-transform: capitalize;
  font-weight: 600;
  flex-shrink: 0;
}
.aufgabe-prio--tief    { background: var(--gray-100); color: var(--gray-500); }
.aufgabe-prio--mittel  { background: var(--tint-amber-100); color: var(--ink-amber); }
.aufgabe-prio--hoch    { background: var(--tint-red-100); color: var(--ink-red); }
.aufgabe-prio--kritisch{ background: var(--tint-pink-100); color: var(--ink-pink); }
