/* ============================================================
   Natuurkunde lesportaal — redesign (Claude Design handoff)
   Nieuw design system. Staat los van de legacy style.css
   (die nog door Informatica/Fotografie/Technasium gebruikt wordt).
   ============================================================ */

:root {
  --bg: #f5f6fc;
  --ink: #161b39;        /* koppen */
  --ink-cell: #2a3050;   /* tabelcellen */
  --muted: #565f80;      /* lopende tekst secundair */
  --muted-2: #65708f;
  --faint: #9aa3c4;      /* pdf/pijl-suffix */
  --night: #0d1230;      /* donker vlak: header/hero */
  --night-2: #141b40;    /* tabelkop / knoptekst / merk */
  --accent: #2a34b8;     /* indigo accent */
  --accent-soft: #e7ebfb;
  --accent-on-dark: #9aa6ff;
  --card: #ffffff;
  --card-border: #e8eaf4;
  --line: #e9ebf5;
  --btn-border: #d7ddf2;
  --btn-border-hover: #aab4e8;
  --row-head: #eef1fd;
  --row-exam: #e7ebfb;
  --row-vac: #f7f8fd;
  --shadow-sm: 0 1px 3px rgba(20, 27, 64, .04);
  --shadow-hover: 0 8px 18px rgba(20, 27, 64, .1);
  --shadow-card: 0 18px 32px rgba(20, 27, 64, .12);
  --radius: 20px;
  --maxw: 1080px;
  --font-head: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'IBM Plex Sans', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  font-family: var(--font-body);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }

img { max-width: 100%; display: block; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* ===================== HEADER ===================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--night);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.site-header__bar {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: 16px 24px;
  gap: 16px;
}
.brand { display: flex; flex-direction: column; gap: 2px; }
.brand__name {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 19px;
  color: #fff;
  line-height: 1.1;
}
.brand__sub {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .08em;
  color: rgba(255, 255, 255, .7);
}
.nav { margin-left: auto; }
.nav__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 6px;
}
.nav__links a {
  display: block;
  padding: 9px 15px;
  border-radius: 11px;
  color: rgba(255, 255, 255, .82);
  font-weight: 600;
  font-size: 15px;
  transition: color .15s ease, background .15s ease;
}
.nav__links a:hover,
.nav__links a:focus-visible { color: #fff; }
.nav__links a.is-active {
  color: #fff;
  background: rgba(255, 255, 255, .14);
}
.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: none;
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 6px;
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav { position: relative; margin-left: 0; }
  .nav__links {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 12px);
    flex-direction: column;
    gap: 4px;
    background: #161b3f;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 14px;
    padding: 8px;
    min-width: 190px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .4);
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { font-size: 16px; padding: 11px 14px; }
}

/* ===================== HERO (klaspagina) ===================== */
.hero {
  background: var(--night);
  background-image: radial-gradient(rgba(255, 255, 255, .08) 1.2px, transparent 1.2px);
  background-size: 26px 26px;
}
.hero__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 46px 24px 50px;
}
.hero__eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .2em;
  font-weight: 600;
  color: var(--accent-on-dark);
  margin-bottom: 14px;
}
.hero__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(40px, 7vw, 64px);
  line-height: 1.02;
  letter-spacing: -.01em;
  color: #fff;
  margin: 0 0 14px;
}
.hero__sub {
  font-size: clamp(15px, 2.4vw, 18px);
  line-height: 1.55;
  color: rgba(255, 255, 255, .78);
  margin: 0;
  max-width: 620px;
}
.hero__sub strong { color: #fff; font-weight: 600; }

/* anker-pillen (Periode 1..4) */
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}
.pill {
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .2);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  transition: background .15s ease;
}
.pill:hover, .pill:focus-visible { background: rgba(255, 255, 255, .2); }

/* lesgroep-switcher (4 vwo) */
.switcher { margin-top: 26px; }
.switcher__label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .12em;
  font-weight: 600;
  color: var(--accent-on-dark);
  margin-bottom: 10px;
}
.switcher__group {
  display: inline-flex;
  gap: 5px;
  padding: 5px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 14px;
}
.switcher__btn {
  padding: 10px 22px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: rgba(255, 255, 255, .82);
  font-weight: 600;
  font-size: 14.5px;
  font-family: var(--font-body);
  cursor: pointer;
  min-height: 44px;
}
.switcher__btn.is-active { background: #fff; color: var(--night-2); }
/* jaar-navigatie (klaspagina's) */
.jaar-nav {
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .55);
}
.jaar-nav a {
  color: rgba(255, 255, 255, .78);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.jaar-nav a:hover, .jaar-nav a:focus-visible { color: #fff; }

/* ===================== MAIN / KAARTEN ===================== */
.main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 36px 24px 8px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.card {
  scroll-margin-top: 88px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 34px);
  box-shadow: var(--shadow-sm);
}
.card__eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .14em;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 8px;
}
.card__title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(23px, 3.4vw, 29px);
  color: var(--ink);
  margin: 0 0 10px;
}
.card__intro {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 18px;
  max-width: 840px;
}

/* chips */
.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 7px;
}
.tag--accent { background: var(--accent-soft); color: var(--accent); }
.tag--neutral { background: #eef1f6; color: var(--muted-2); }
.tag-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.tag-row span:last-child { font-size: 14px; color: var(--muted); }
.tag-row strong { color: var(--night-2); }

/* ===================== PLANNINGTABEL ===================== */
.plan {
  overflow-x: auto;
  border: 1px solid #e3e6f3;
  border-radius: 14px;
  -webkit-overflow-scrolling: touch;
}
.plan table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  min-width: 640px;
  background: #fff;
}
.plan--wide table { min-width: 900px; }
.plan thead th {
  padding: 13px 15px;
  text-align: left;
  font-weight: 600;
  font-size: 13.5px;
  color: #fff;
  background: var(--night-2);
  white-space: nowrap;
}
.plan thead th.sticky {
  position: sticky;
  left: 0;
  z-index: 2;
  border-right: 1px solid rgba(255, 255, 255, .18);
}
.plan tbody th.week {
  padding: 12px 15px;
  text-align: left;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--night-2);
  background: var(--row-head);
  position: sticky;
  left: 0;
  z-index: 1;
  border-right: 1px solid #dfe3f5;
  border-top: 1px solid var(--line);
  white-space: nowrap;
  vertical-align: top;
}
.plan tbody td {
  padding: 12px 15px;
  font-size: 14.5px;
  color: var(--ink-cell);
  line-height: 1.45;
  border-top: 1px solid var(--line);
  vertical-align: top;
}
.plan td.muted { color: #8a91ad; font-style: italic; }
.plan td.empty { color: #c2c7db; }
/* bannerrij: vakantie */
.plan tr.vac th.week { background: var(--row-vac); }
.plan tr.vac td {
  text-align: center;
  font-style: italic;
  color: var(--muted);
  background: var(--row-vac);
}
/* bannerrij: toetsweek */
.plan tr.exam th.week { background: var(--row-exam); }
.plan tr.exam td {
  background: var(--row-exam);
  color: var(--night-2);
  font-weight: 600;
}
.plan tr.exam td.center { text-align: center; }

/* ===================== RESOURCE-KNOPPEN ===================== */
.reslist {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.reslist__label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 11px;
}
.btns { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 18px;
  min-height: 46px;
  background: #fff;
  border: 1px solid var(--btn-border);
  border-radius: 12px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--night-2);
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s, color .14s;
}
.btn:hover, .btn:focus-visible {
  transform: translateY(-2px);
  border-color: var(--btn-border-hover);
  box-shadow: var(--shadow-hover);
  color: var(--accent);
}
.btn__suffix { color: var(--faint); font-size: 13px; }
.btn__suffix--pdf { font-size: 12px; font-family: var(--font-mono); }
.btn__note { color: var(--faint); font-size: 11.5px; font-weight: 500; }

/* ===================== HOMEPAGE ===================== */
.home-hero {
  background: var(--night);
  background-image: radial-gradient(rgba(255, 255, 255, .08) 1.2px, transparent 1.2px);
  background-size: 26px 26px;
}
.home-hero__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 30px 24px 48px;
}
.home-hero__eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .22em;
  font-weight: 600;
  color: var(--accent-on-dark);
  margin: 18px 0 18px;
}
.home-hero__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(33px, 6vw, 60px);
  line-height: 1.03;
  letter-spacing: -.01em;
  color: #fff;
  margin: 0 0 16px;
  max-width: 820px;
}
.home-hero__sub {
  font-size: clamp(15px, 2.4vw, 18px);
  line-height: 1.55;
  color: rgba(255, 255, 255, .78);
  margin: 0;
  max-width: 560px;
}

.home-entries {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 44px 24px 8px;
}
.section-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .16em;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 18px;
}
.klas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 18px;
}
.sim-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
  gap: 18px;
}
.klas-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px 22px;
  background: #fff;
  border: 1px solid #e3e6f3;
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s;
}
.klas-card:hover, .klas-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
  border-color: #c8d0ee;
}
.klas-card__name {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 28px;
  color: var(--ink);
  line-height: 1;
}
.klas-card__desc { font-size: 14.5px; color: var(--muted); line-height: 1.5; }
.klas-card__cta {
  margin-top: auto;
  padding-top: 12px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--accent);
}

.verslag-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 22px 28px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--btn-border);
  box-shadow: var(--shadow-sm);
}
.verslag-card + .verslag-card { margin-top: 16px; }
.verslag-card__title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 23px;
  color: var(--ink);
  margin-bottom: 5px;
}
.verslag-card__desc { font-size: 14.5px; color: var(--muted); line-height: 1.5; }
.verslag-card__actions { display: flex; gap: 10px; flex-shrink: 0; flex-wrap: wrap; }
.chip-btn {
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--row-head);
  border: 1px solid var(--btn-border);
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s;
}
.chip-btn:hover, .chip-btn:focus-visible {
  transform: translateY(-2px);
  border-color: var(--btn-border-hover);
  box-shadow: var(--shadow-hover);
}

/* ===================== FOTOBAND + FOOTER ===================== */
.photoband {
  position: relative;
  height: clamp(320px, 42vw, 460px);
  overflow: hidden;
  background: var(--bg);
  margin-top: 30px;
}
.photoband__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 58%;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0) 10%, rgba(0, 0, 0, .5) 30%, #000 56%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0) 10%, rgba(0, 0, 0, .5) 30%, #000 56%);
}
.photoband__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 13, 38, 0) 60%, rgba(11, 13, 38, .6) 100%);
}
.photoband__footer {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 22px 24px;
}
.photoband__footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: rgba(255, 255, 255, .92);
  text-shadow: 0 1px 10px rgba(0, 0, 0, .5);
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 860px) {
  .klas-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .klas-grid { grid-template-columns: 1fr; }
  .verslag-card { flex-direction: column; align-items: flex-start; }
  .photoband__footer-inner { justify-content: center; text-align: center; font-size: 11px; }
}

/* respecteer reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
