/* ==========================================================================
   Landing page — "Heute" list grouped by time of day
   (Ganztägig, Vormittag … Nacht). Each group is a native
   <details>/<summary>, so it collapses without JavaScript.
   Loaded only by landing_page.html (extra_css), outside the esbuild bundle.
   ========================================================================== */

.tod-group { margin-top: 28px; }
.tod-group:first-of-type { margin-top: 8px; }

.tod-group-summary {
  /* label + count on the first row, the time hint underneath,
     the chevron centred across both rows */
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  grid-template-areas: "label count . chevron" "hint hint hint chevron";
  align-items: center;
  gap: 0 8px;
  padding: 10px 0;
  margin-bottom: 14px;
  border-bottom: 2px solid var(--border-light-color);
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.tod-group-summary::-webkit-details-marker { display: none; }
.tod-group-summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; border-radius: 6px; }

.tod-group-label { grid-area: label; font-family: var(--font-head); font-size: 1.25rem; font-weight: 800; color: var(--text); }
.tod-group-hint { grid-area: hint; font-size: .85rem; line-height: 1.3; color: var(--text-muted); }
.tod-group-count {
  grid-area: count;
  justify-self: start;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-head);
  font-size: .72rem;
  font-weight: 800;
}
.tod-group-chevron {
  grid-area: chevron;
  flex: none;
  width: 36px;
  height: 36px;
  padding: 7px;
  box-sizing: border-box;
  border: 2px solid var(--text);
  border-radius: 50%;
  fill: none;
  stroke: var(--text);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .2s;
}
.tod-group:not([open]) .tod-group-chevron { transform: rotate(-90deg); }
.tod-group:not([open]) .tod-group-summary { margin-bottom: 0; }

@media (max-width: 640px) {
  .tod-group-label { font-size: 1.1rem; }
  .tod-group-hint { font-size: .8rem; }
  .tod-group-count { min-width: 18px; height: 18px; padding: 0 5px; font-size: .68rem; }
  .tod-group-chevron { width: 40px; height: 40px; padding: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  .tod-group-chevron { transition: none; }
}
