/* CSL Baucockpit – Sprungbrett zu den Programmen.
   Rahmen, Tokens und Kacheln wie die Startseite «Projekte» des Projekt Journals (projektjournal/app.css),
   die ihrerseits der Web-Verwaltung der Planplattform folgt. Für das Dashboard gibt es keinen eigenen Entwurf. */

:root {
  --bg: #FFFFFF;
  --surface: #FFFFFF;
  --line: #E5E5EA;
  --line2: #D1D1D6;
  --label: #1D1D1F;
  --sec: #6E6E73;
  --tert: #8E8E93;
  --hover: #F5F5F7;
}

/* Gescrollt wird wie im Projekt Journal im Container .scroller, dessen Bildlaufleiste immer da ist. So sitzt
   der zentrierte Inhalt auf beiden Seiten an derselben Stelle, und beim Wechsel springt nichts. */
html, body { overflow: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--label);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
svg { flex: none; }

.scroller { height: 100vh; overflow-y: scroll; box-sizing: border-box; padding-left: 14px; background: var(--bg); } /* links 14px gleichen die Leiste aus */
.scroller::-webkit-scrollbar { width: 14px; background: #fff; }
.scroller::-webkit-scrollbar-track { background: #fff; }
.scroller::-webkit-scrollbar-thumb { background: var(--line2); border-radius: 7px; border: 4px solid #fff; min-height: 40px; }
.scroller::-webkit-scrollbar-thumb:hover { background: #AEAEB2; }
.page { max-width: 1440px; margin: 0 auto; }

/* Kopfzeile */
.header { padding: 28px 40px 0; display: flex; align-items: center; gap: 32px; }
.brand { flex: none; display: flex; align-items: center; gap: 16px; }
.brand__logo { height: 60px; display: block; }
.brand__slash { font-size: 28px; font-weight: 300; color: var(--line2); line-height: 1; }
.brand__name { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }

/* Inhalt und Fusszeile */
.main { padding: 56px 40px 80px; }
.h1 { margin: 0; font-size: 36px; line-height: 1.1; font-weight: 700; letter-spacing: -0.022em; }
.footer { padding: 0 40px 40px; }
.footer__inner { border-top: 1px solid var(--line); padding-top: 22px; font-size: 13px; color: var(--sec); display: flex; flex-wrap: wrap; gap: 6px; }
.footer a:hover { text-decoration: underline; }

/* Kacheln: je Programm eine, die ganze Kachel ist der Link */
.tiles { margin-top: 36px; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.tile {
  min-height: 148px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); padding: 18px; box-sizing: border-box;
  display: flex; flex-direction: column; gap: 14px; color: var(--label); transition: background .15s;
}
.tile:hover { background: var(--hover); }
.tile__name { font-size: 17px; line-height: 1.3; font-weight: 600; letter-spacing: -0.01em; text-wrap: balance; }
.tile__foot { margin-top: auto; display: flex; align-items: center; gap: 10px; }
.tile__text { flex: 1; min-width: 0; font-size: 14px; color: var(--sec); }
.tile__foot svg { color: var(--tert); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
