/*
 * TrendingTea Hub — huisstijl "Rust en ruimte" (richting A, stijlrichtingen website).
 * Diepgroen #13422F, crème #F2EDE4, zachte achtergrond #FBF8F3, salie #D8DEAE, goud #E0B66C.
 * Lettertype Figtree (SIL OFL, zelf gehost, zie /fonts/FIGTREE-LICENSE.txt).
 */

@font-face { font-family: "Figtree"; font-style: normal; font-weight: 300 800; font-display: swap;
  src: url("/fonts/figtree-latin-ext.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; }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 300 800; font-display: swap;
  src: url("/fonts/figtree-latin.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+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --groen: #13422F;
  --groen-donker: #0b2a1e;
  --creme: #F2EDE4;
  --zacht: #FBF8F3;
  --salie: #D8DEAE;
  --goud: #E0B66C;
  --wit: #FFFFFF;
  --tekst: #13422F;
  --tekst-zacht: rgba(19, 66, 47, .72);   /* contrast >= 4.5:1 op wit en zacht */
  --lijn: rgba(19, 66, 47, .15);
  --schaduw: 0 24px 60px rgba(19, 66, 47, .12);
  --rood: #9B2C1F;
  --rood-zacht: #F6E1DC;
  --radius: 24px;
  --radius-klein: 14px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; background: var(--zacht); color: var(--tekst);
  font: 400 16px/1.55 "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--groen); }
a:hover { color: var(--groen-donker); }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
h1 { font-size: clamp(28px, 4vw, 40px); }
h2 { font-size: 22px; }
h3 { font-size: 17px; font-weight: 600; letter-spacing: 0; }
p { margin: 0; }
.zacht { color: var(--tekst-zacht); }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--tekst-zacht); }
:focus-visible { outline: 3px solid var(--goud); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Knoppen */
.knop {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--groen); color: var(--creme); font: 600 15px/1 "Figtree", system-ui, sans-serif;
  padding: 15px 26px; border-radius: 999px; border: 0; cursor: pointer; text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.knop:hover { color: var(--creme); transform: translateY(-2px); box-shadow: 0 10px 22px rgba(19,66,47,.22); filter: brightness(1.1); }
.knop--breed { width: 100%; }
.knop--licht { background: var(--creme); color: var(--groen); }
.knop--licht:hover { color: var(--groen); }
.knop--rand { background: transparent; color: var(--groen); box-shadow: inset 0 0 0 1.5px var(--lijn); }
.knop--rand:hover { color: var(--groen); background: rgba(19,66,47,.06); box-shadow: inset 0 0 0 1.5px var(--groen); filter: none; }
.knop--klein { padding: 10px 18px; font-size: 14px; }
@media (prefers-reduced-motion: reduce) { .knop, .knop:hover { transition: none; transform: none; } }

/* ── Inloggen ─────────────────────────────────────────────── */
.login { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(360px, 1fr); background: var(--wit); }
.login__beeld {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; padding: 48px;
  color: var(--creme); background: var(--groen) url("/img/theeplantage.jpg") center / cover no-repeat;
}
.login__beeld::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,36,26,.35) 0%, rgba(10,36,26,.15) 40%, rgba(10,36,26,.85) 100%); }
.login__beeld > * { position: relative; }
.login__beeld img { height: 64px; width: auto; align-self: flex-start; }
.login__citaat { max-width: 440px; }
.login__citaat .eyebrow { color: rgba(242,237,228,.85); margin-bottom: 14px; }
.login__citaat p { font-size: 22px; font-weight: 300; line-height: 1.4; }
.login__paneel { display: flex; align-items: center; justify-content: center; padding: 48px 32px; }
.login__inhoud { width: 100%; max-width: 380px; display: grid; gap: 28px; }
.login__inhoud .eyebrow { margin-bottom: 10px; }
.login__logo-mobiel { display: none; height: 52px; width: auto; }
.login__voet { font-size: 13px; color: var(--tekst-zacht); border-top: 1px solid var(--lijn); padding-top: 20px; display: grid; gap: 6px; }
.login--beheer { background: var(--groen); }
.login--beheer .login__paneel { color: var(--creme); }
.login--beheer .eyebrow, .login--beheer .zacht, .login--beheer .login__voet { color: rgba(242,237,228,.78); }
.login--beheer .login__voet { border-top-color: rgba(242,237,228,.2); }
.login--beheer .login__beeld::before { background: linear-gradient(180deg, rgba(10,36,26,.6), rgba(10,36,26,.9)); }
@media (max-width: 860px) {
  .login { grid-template-columns: 1fr; }
  .login__beeld { display: none; }
  .login__logo-mobiel { display: block; }
}

/* ── App-schil ────────────────────────────────────────────── */
.kop { background: var(--wit); border-bottom: 1px solid var(--lijn); position: sticky; top: 0; z-index: 20; }
.kop__binnen { max-width: 1240px; margin: 0 auto; padding: 16px 32px; display: flex; align-items: center; gap: 32px; }
.kop__logo img { height: 48px; width: auto; display: block; }
.nav { display: flex; gap: 6px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.nav a {
  white-space: nowrap; text-decoration: none; font-size: 15px; font-weight: 500; color: var(--tekst-zacht);
  padding: 9px 16px; border-radius: 999px; transition: background-color .2s ease, color .2s ease;
}
.nav a:hover { color: var(--groen); background: var(--zacht); }
.nav a[aria-current="page"] { color: var(--groen); background: var(--creme); font-weight: 600; }
.gebruiker { display: flex; align-items: center; gap: 12px; }
.gebruiker__info { text-align: right; line-height: 1.25; }
.gebruiker__naam { font-size: 14px; font-weight: 600; }
.gebruiker__rol { font-size: 12px; color: var(--tekst-zacht); text-transform: capitalize; }
.avatar {
  width: 38px; height: 38px; border-radius: 50%; background: var(--salie); color: var(--groen);
  display: grid; place-items: center; font-weight: 700; font-size: 14px; flex: none;
}
.gebruiker form { margin: 0; }
@media (max-width: 860px) {
  .kop__binnen { flex-wrap: wrap; gap: 14px; padding: 14px 20px; }
  .nav { order: 3; flex-basis: 100%; }
  .gebruiker { margin-left: auto; }
  .gebruiker__info { display: none; }
}

.pagina { max-width: 1240px; margin: 0 auto; padding: 48px 32px 64px; display: grid; gap: 32px; }
.pagina__kop { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.pagina__kop .eyebrow { margin-bottom: 10px; }
.pagina__kop p { margin-top: 10px; max-width: 640px; }
@media (max-width: 860px) { .pagina { padding: 32px 20px 48px; gap: 24px; } }

.voet { max-width: 1240px; margin: 0 auto; padding: 0 32px 40px; font-size: 13px; color: var(--tekst-zacht); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* Kaarten en rasters */
.kaart { background: var(--wit); border-radius: var(--radius); padding: 28px; box-shadow: 0 1px 0 var(--lijn); }
.kaart__kop { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 18px; }
.raster { display: grid; gap: 20px; }
.raster--4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
@media (max-width: 560px) {
  .raster--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .tegel { padding: 18px; gap: 10px; }
  .tegel__waarde { font-size: 26px; }
  .tegel__label { font-size: 13px; }
  .raster--2 { grid-template-columns: 1fr; }
  .kaart { padding: 22px; }
  .kaart__kop { flex-wrap: wrap; }
}
.raster--2 { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }

.tegel { background: var(--wit); border-radius: var(--radius); padding: 24px; display: grid; gap: 14px; align-content: start; box-shadow: 0 1px 0 var(--lijn); }
.tegel__icoon { width: 46px; height: 46px; border-radius: var(--radius-klein); display: grid; place-items: center; background: var(--creme); }
.tegel__icoon svg { width: 22px; height: 22px; stroke: var(--groen); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tegel__waarde { font-size: 30px; font-weight: 700; letter-spacing: -.02em; line-height: 1; }
.tegel__label { font-size: 14px; color: var(--tekst-zacht); }

.welkom { background: var(--groen); color: var(--creme); border-radius: var(--radius); padding: 36px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; position: relative; overflow: hidden; }
.welkom .eyebrow { color: rgba(242,237,228,.8); margin-bottom: 10px; }
.welkom p { color: rgba(242,237,228,.85); margin-top: 10px; max-width: 560px; }
.welkom::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: rgba(216,222,174,.14); }

/* Labels */
.label { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; padding: 5px 12px; border-radius: 999px; background: var(--zacht); white-space: nowrap; }
.label::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.label--ok { background: #E7EDD2; color: var(--groen); }
.label--fout { background: var(--rood-zacht); color: var(--rood); }
.label--wacht { background: #F7EBD3; color: #7A5413; }
.label--uit { background: var(--zacht); color: var(--tekst-zacht); }

/* Lijsten en tabellen */
.lijst { list-style: none; margin: 0; padding: 0; display: grid; }
.lijst li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; border-top: 1px solid var(--lijn); }
.lijst li:first-child { border-top: 0; padding-top: 0; }
.lijst__titel { font-weight: 600; font-size: 15px; }
.lijst__sub { font-size: 13px; color: var(--tekst-zacht); }

.tabel-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--tekst-zacht); padding: 0 14px 12px; border-bottom: 1px solid var(--lijn); white-space: nowrap; }
td { padding: 14px; border-bottom: 1px solid var(--lijn); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
th:first-child, td:first-child { padding-left: 0; }
th:last-child, td:last-child { padding-right: 0; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
.leeg { text-align: center; padding: 40px 20px; color: var(--tekst-zacht); }

.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters a { text-decoration: none; font-size: 14px; font-weight: 500; padding: 8px 16px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--lijn); color: var(--tekst-zacht); }
.filters a:hover { color: var(--groen); box-shadow: inset 0 0 0 1.5px var(--groen); }
.filters a[aria-current="true"] { background: var(--groen); color: var(--creme); box-shadow: none; }

.paginering { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 20px; font-size: 14px; color: var(--tekst-zacht); }

.melding { border-radius: var(--radius-klein); padding: 16px 20px; background: #F7EBD3; color: #5E410F; font-size: 14px; }

/* Foutpagina's */
.fout { min-height: 100vh; display: grid; place-items: center; padding: 32px; text-align: center; }
.fout__inhoud { max-width: 460px; display: grid; gap: 20px; justify-items: center; }
.fout__code { font-size: 13px; font-weight: 600; letter-spacing: .2em; color: var(--tekst-zacht); }
.fout img { height: 52px; width: auto; margin-bottom: 12px; }
