/* ============================================================
   Aktionsübersicht + DiKa-ScoreBoard - Styles
   ============================================================ */

/* ---------- DiKa-ScoreBoard ---------- */
#wks-widget,
#wks2-widget,
#wks-top3-widget,
#wks2-top3-widget {
  --wks-tanne: #005437;
  --wks-grashalm: #8ABD24;
  --wks-sand: #F5F1E9;
  color: #1a1a1a;
  margin: 2.5rem 0 1.25rem;
  display: block;
}
.wks-title {
  font-size: 1.1rem; font-weight: 700; color: var(--wks-tanne);
  margin: 0 0 0.5rem; padding-bottom: 0.3rem;
  border-bottom: 3px solid var(--wks-grashalm);
}
.wks-note {
  font-size: 0.62em; font-weight: 700;
}
.wks-cup {
  vertical-align: -5px;
  margin-right: 0.45rem;
  flex: 0 0 auto;
}
.wks-board {
  background: #fff; border: 1px solid rgba(0, 84, 55, 0.15);
  border-radius: 10px; overflow: hidden;
}
.wks-row {
  display: grid; grid-template-columns: minmax(110px, 35%) 1fr 36px;
  gap: 0 0.75rem; align-items: center;
  padding: 0.4rem 1rem; border-top: 1px solid rgba(0, 84, 55, 0.08);
}
.wks-row:first-child { border-top: none; }
.wks-name {
  font-weight: 700; font-size: 0.9rem; margin: 0;
  display: flex; align-items: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.wks-bar { height: 8px; background: var(--wks-sand); border-radius: 999px; overflow: hidden; }
.wks-fill { height: 100%; background: var(--wks-grashalm); border-radius: 999px; }
.wks-pts { font-weight: 700; font-size: 1rem; color: var(--wks-tanne); text-align: right; }
.wks-hint { margin: 0.35rem 0 0; font-size: 0.78rem; color: #777; }

/* Auf schmalen Bildschirmen alles in einer Zeile: Name links (max. ~40%),
   der Balken füllt flexibel den Rest (etwa bis zur Bildschirmmitte),
   Punkte rechts. */
@media (max-width: 600px) {
  .wks-row {
    grid-template-columns: minmax(0, 40%) 1fr 30px;
    gap: 0 0.6rem;
    padding: 0.45rem 0.85rem;
  }
}

/* ---------- Aktionsliste ---------- */
#wka-widget {
  --wka-tanne: #005437;
  --wka-klee: #008939;
  --wka-grashalm: #8ABD24;
  --wka-sand: #F5F1E9;
  color: #1a1a1a;
  display: block;
}
.wka-status { background: var(--wka-sand); border-radius: 8px; padding: 1rem 1.25rem; margin: 0; }
.wka-section-title {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 1.2rem; font-weight: 700; color: var(--wka-tanne);
  margin: 1.75rem 0 0.75rem; padding-bottom: 0.35rem;
  border-bottom: 3px solid var(--wka-grashalm);
}
.wka-section-title:first-child { margin-top: 0; }
.wka-count {
  background: var(--wka-grashalm); color: var(--wka-tanne);
  font-size: 1rem; font-weight: 700; border-radius: 999px;
  min-width: 1.6rem; text-align: center;
  padding: 0.15rem 0.7rem; line-height: 1.4;
}
.wka-list {
  background: #fff; border: 1px solid rgba(0, 84, 55, 0.15);
  border-radius: 10px; overflow: hidden;
}
.wka-day {
  background: var(--wka-sand); color: var(--wka-tanne);
  font-size: 0.85rem; font-weight: 700; letter-spacing: 0.02em; padding: 0.35rem 1rem;
}
.wka-row {
  display: grid; grid-template-columns: 115px 1fr auto;
  gap: 0.15rem 1rem; align-items: center;
  padding: 0.6rem 1rem; border-top: 1px solid rgba(0, 84, 55, 0.08);
}
.wka-time { font-weight: 700; font-size: 0.95rem; color: var(--wka-tanne); white-space: nowrap; }
.wka-title { font-weight: 700; line-height: 1.3; margin: 0; font-size: 1rem; }
.wka-sub { margin: 0; font-size: 0.85rem; line-height: 1.4; color: #555; }
.wka-go {
  display: inline-block; background: var(--wka-tanne); color: #fff !important;
  text-decoration: none; font-weight: 700; font-size: 0.85rem;
  padding: 0.35rem 0.9rem; border-radius: 999px; white-space: nowrap;
  transition: background 0.15s ease;
}
.wka-go:hover, .wka-go:focus-visible { background: var(--wka-klee); }

@media (max-width: 600px) {
  .wka-row { grid-template-columns: 1fr auto; }
  .wka-time { grid-column: 1 / -1; font-size: 0.85rem; }
}
