/* Bereich Start mit Schalter start.v2 (start.js, Durchsicht 15.10.): alles unter .st-v2, ohne Schalter bleibt die
   Seite wie in styles.css («Bereich Start»). Vorbild Roofr «Home» nur für Abstände und Gewichtung. */

/* Abschnittskopf über der Karte: Titel, ein Satz, rechts eine Handlung */
.st-v2 .st-kopf { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 12px; margin: 0 0 12px; }
.st-v2 .st-kopf-text { min-width: 0; }
.st-v2 .st-kopf h2 { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.3; }
.st-v2 .st-kopf p { margin: 4px 0 0; font-size: 13px; color: var(--color-muted-fg); }
.st-v2 .page-header { margin-bottom: 32px; }
.st-v2 .page-title { font-size: 24px; }

/* Nachfass-Kacheln: einzelne Karten mit Abstand, Pfeil unten rechts zeigt «antippbar» */
.st-v2 .st-kacheln { gap: 12px; margin: 0 0 32px; background: none; border: 0; border-radius: 0; overflow: visible;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.st-v2 .st-kachel { position: relative; border: 1px solid var(--color-border); border-radius: var(--radius); overflow: hidden;
  transition: border-color 150ms ease; }
.st-v2 .st-kachel:hover { border-color: var(--color-border-2); }
.st-v2 .st-kachel .stat { padding: 16px; gap: 4px; min-height: 112px; }
.st-v2 .st-kachel .stat-value { font-size: 28px; }
.st-v2 .st-pfeil { position: absolute; right: 12px; bottom: 12px; display: inline-flex; color: var(--color-faint-fg); }
.st-v2 .st-pfeil svg { width: 16px; height: 16px; }
@media (max-width: 1023.98px) {
  .st-v2 .st-kacheln { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 479.98px) {
  .st-v2 .st-kacheln { gap: 8px; }
  .st-v2 .st-kachel .stat { padding: 12px; min-height: 96px; }
  .st-v2 .st-kachel .stat-value { font-size: 24px; }
}

/* Raster: Blöcke aus Kopf und Karte */
.st-v2 .st-raster { gap: 32px 24px; margin-top: 0; }
.st-v2 .st-raster > .st-block { min-width: 0; }
.st-v2 .st-block > .card { margin: 0; }
.st-v2 .st-entscheid-titel { font-size: 14px; }
/* Breit: die Wochenleiste über die ganze Breite, darunter Neuigkeiten links und meine Aufgaben rechts */
@media (min-width: 1024px) {
  .st-v2 .st-raster { grid-template-areas: "heute heute" "neu aufgaben"; }
}
.st-v2 > div > .card { margin-bottom: 32px; }

/* Wochenleiste ab 768px: eine Spalte je Tag */
.st-v2 .st-woche { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 1px; margin: -16px;
  background: var(--color-border); border-radius: var(--radius); overflow: hidden; }
.st-v2 .st-tag { display: grid; align-content: start; gap: 8px; min-height: 160px; padding: 12px 8px; background: var(--color-card); }
.st-v2 .st-tag-kopf { display: flex; align-items: center; gap: 8px; }
.st-v2 .st-tag-wt { font-size: 13px; font-weight: 600; color: var(--color-muted-fg); }
.st-v2 .st-tag-nr { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%;
  font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.st-v2 .st-tag-heute .st-tag-nr { background: var(--color-primary); color: var(--color-on-primary); }
.st-v2 .st-tag-heute .st-tag-wt { color: var(--color-fg); }
.st-v2 .st-tag-liste { display: grid; gap: 4px; }
.st-v2 .st-termin { display: grid; gap: 2px; width: 100%; min-height: var(--tap); padding: 8px; border: 0; border-radius: var(--radius-s);
  background: var(--color-muted); color: inherit; font: inherit; text-align: left; cursor: pointer; transition: background-color 150ms ease; }
.st-v2 .st-termin:hover { background: var(--color-hover); }
.st-v2 .st-termin-zeit { white-space: nowrap; font-size: 12px; color: var(--color-muted-fg); font-variant-numeric: tabular-nums; }
.st-v2 .st-termin-titel { font-size: 13px; font-weight: 600; overflow-wrap: break-word; hyphens: auto; }
.st-v2 .st-termin-neben { font-size: 12px; color: var(--color-muted-fg); overflow-wrap: break-word; hyphens: auto; }
.st-v2 .st-tag-leer { margin: 0; font-size: 13px; color: var(--color-faint-fg); }
.st-v2 .st-woche-mobil { display: none; }

/* Telefon: Tagesknöpfe, darunter die Termine des gewählten Tags */
@media (max-width: 767.98px) {
  .st-v2 .st-woche { display: none; }
  .st-v2 .st-woche-mobil { display: grid; gap: 8px; }
  .st-v2 .st-woche-tage { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; }
  .st-v2 .st-tagwahl { display: grid; justify-items: center; gap: 2px; min-height: 60px; padding: 6px 0; border: 1px solid transparent;
    border-radius: var(--radius-s); background: none; color: var(--color-muted-fg); font: inherit; cursor: pointer;
    -webkit-tap-highlight-color: transparent; transition: background-color 150ms ease; }
  .st-v2 .st-tagwahl-wt { font-size: 12px; font-weight: 500; }
  .st-v2 .st-tagwahl-nr { font-size: 16px; font-weight: 600; color: var(--color-fg); font-variant-numeric: tabular-nums; }
  .st-v2 .st-tagwahl-heute .st-tagwahl-nr { color: var(--color-primary); }
  .st-v2 .st-tagwahl[aria-pressed="true"] { background: var(--color-muted); border-color: var(--color-border); }
  .st-v2 .st-punkt { width: 6px; height: 6px; border-radius: 50%; background: var(--color-primary); }
  .st-v2 .st-punkt-leer { background: transparent; }
}
