/* Hallmark · shape: app screen · theme: huisstijl nheinz.be (vast, zie CLAUDE.md) · scope: app
   Schermen: Nest Hub 1024x600 en een derde monitor, liggend of staand.
   waive 7b: zwart #000 is de vaste huisstijl.  waive 26b: geen enkele knop kan uitgeschakeld zijn. */
@font-face { font-family: 'Inter'; font-weight: 400 800; font-display: swap; src: url('/fonts/inter-4070d031.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-weight: 400 800; font-display: swap; src: url('/fonts/inter-c0d3e70b.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bg: #000;
  --kaart: #0d0d0f;
  --kaart-2: #141416;
  --tekst: #f5f5f7;
  --gedempt: #9a9aa0;
  --lijn: rgba(255, 255, 255, 0.14);
  --blauw: #2997ff;
  --focus: #6cb6ff;
  --fout: #ff6961;
  --letter: 'Inter', system-ui, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { overflow-x: clip; }
body {
  min-height: 100dvh; display: flex; flex-direction: column; gap: 16px;
  padding: 16px clamp(20px, 5vw, 56px);
  background: var(--bg); color: var(--tekst);
  font: 400 1rem/1.4 var(--letter);
}
h1, h2 { text-wrap: balance; font-weight: 800; letter-spacing: -0.04em; overflow-wrap: break-word; min-width: 0; }
h1 { font-size: 1.5rem; }
h2 { font-size: 1.125rem; font-weight: 700; margin-bottom: 8px; }
.stil { color: var(--gedempt); }

header { display: flex; align-items: center; gap: 16px; }
.klok { margin-left: auto; color: var(--gedempt); }
.klok strong { color: var(--tekst); font-size: 1.5rem; font-weight: 800; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; margin-left: 8px; }

button {
  min-height: 44px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--tekst); background: transparent; color: var(--tekst);
  font: 600 0.875rem var(--letter); cursor: pointer; white-space: nowrap;
}
button:hover { background: var(--kaart-2); }
button:active { transform: translateY(1px); }
button:focus-visible, a:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
button[hidden], :fullscreen button { display: none; }

#melding { color: var(--fout); }

main {
  flex: 1; display: grid; gap: 16px;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  grid-template-rows: auto 1fr;
  grid-template-areas: 'agenda muziek' 'agenda cijfers';
  width: 100%; max-width: 90rem; margin-inline: auto;
}
.kaart { background: var(--kaart); border: 1px solid var(--lijn); border-radius: 20px; padding: 16px 20px; min-width: 0; }
.agenda { grid-area: agenda; }
.muziek { grid-area: muziek; }
.cijfers { grid-area: cijfers; }

.wanneer { color: var(--blauw); font-weight: 600; font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.wat { font-size: 2.25rem; line-height: 1.15; font-weight: 800; letter-spacing: -0.04em; overflow-wrap: break-word; }
#later { list-style: none; margin-top: 16px; }
#later li { display: flex; gap: 12px; padding: 8px 0; border-top: 1px solid var(--lijn); }
#later span:first-child { flex: 0 0 8.5em; color: var(--gedempt); font-variant-numeric: tabular-nums; }
#later span:last-child { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

.nummer { display: flex; gap: 16px; align-items: center; }
.nummer > div { min-width: 0; }
.nummer img { border-radius: 4px; flex: none; }
#titel { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; overflow-wrap: break-word; }
#link { display: inline-block; color: var(--blauw); font-size: 0.875rem; padding-top: 4px; }
#link[hidden] { display: none; }
#link:hover { text-decoration: underline; }

table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th, td { text-align: right; padding: 8px 0 8px 12px; border-top: 1px solid var(--lijn); }
th:first-child, td:first-child { text-align: left; padding-left: 0; overflow-wrap: anywhere; }
th { border-top: 0; padding-block: 0 4px; color: var(--gedempt); font-size: 0.875rem; font-weight: 500; }

@media (max-width: 760px), (orientation: portrait) {
  main { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-template-areas: 'agenda' 'muziek' 'cijfers'; align-content: start; }
}
/* Een grote monitor staat verder weg: alles groter. */
@media (min-width: 1600px) and (min-height: 900px), (min-width: 900px) and (min-height: 1500px) { html { font-size: 150%; } }
@media (max-width: 480px) {
  header { flex-wrap: wrap; }
  .klok { margin-left: 0; order: 3; width: 100%; }
  #volledig { margin-left: auto; }
}
