/* ==========================
   ITF – Instituut voor Toegepaste Filosofie
   DEFINITIEVE STIJL: Inktblauw + Zalm
   Klassiek intellectueel met warmte
   ========================== */

/* ===== CSS VARIABELEN ===== */
:root {
  /* Kleuren - Inktblauw + Zalm duo */
  --ink-blue: #1e3a5f;           /* Hoofdkleur - inktblauw voor koppen, knoppen */
  --ink-blue-dark: #0f1d30;      /* Donkerder blauw - voor hover states */
  --salmon: #BC5A23;             /* Accentkleur - zalm voor highlights */
  --salmon-light: #d4704d;       /* Lichtere zalm - voor subtiele accenten */
  
  --bg: #f8f6f1;                 /* Oud papier - hoofdachtergrond */
  --bg-white: #ffffff;           /* Wit - voor afwisselende secties */
  --bg-soft: #f0ede7;            /* Zacht beige - voor subtiele highlights */
  
  --text: #2a2a2a;               /* Donkergrijs - hoofdtekst */
  --text-light: #5a5a5a;         /* Medium grijs - secundaire tekst */
  --text-muted: #888888;         /* Licht grijs - meta-informatie */
  
  --line: #d8d6d0;               /* Warme lijn - subtiele scheidingen */
  --line-strong: #bfbdb5;        /* Sterkere lijn - duidelijkere accenten */
  
  /* Geen radius - rechthoekig en strak */
  --radius: 0;
  
  /* Subtiele schaduwen */
  --shadow-soft: 0 2px 8px rgba(30, 58, 95, 0.04);
  
  /* Transitions */
  --transition: 180ms ease;
}

/* ===== RESET / BASIS ===== */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Spectral', 'Georgia', serif;
  font-size: 18px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

/* ===== TYPOGRAFIE ===== */
h1, h2, h3, h4 {
  font-family: 'Spectral', 'Georgia', serif;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--ink-blue);
  font-weight: 600;
  margin: 0;
}

h1 { 
  font-size: clamp(2.75rem, 7vw, 5.5rem);
  margin: 0 0 2rem;
  letter-spacing: -0.035em;
  font-weight: 600;
  line-height: 1.1;
}

h2 { 
  font-size: clamp(1.85rem, 4.5vw, 3rem);
  margin: 5rem 0 2rem;
  font-weight: 600;
  line-height: 1.25;
}

h3 { 
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  margin: 3rem 0 1.25rem;
  font-weight: 600;
}

h4 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 2.5rem 0 1rem;
}

p {
  margin: 0 0 1.75rem;
  color: var(--text);
  max-width: 70ch;
  line-height: 1.85;
}

p.muted { 
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Links */
a {
  color: var(--ink-blue);
  text-decoration: none;
  border-bottom: 1px solid var(--salmon);
  transition: border-color var(--transition), color var(--transition);
}

a:hover {
  color: var(--ink-blue-dark);
  border-bottom-color: var(--ink-blue);
}

strong {
  font-weight: 600;
  color: var(--ink-blue);
}

/* ===== HEADER / NAVIGATIE ===== */
header {
  position: sticky;
  top: 0;
  background: rgba(248, 246, 241, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  z-index: 50;
}

nav {
  max-width: 1300px;
  margin: 0 auto;
  padding: 1.25rem 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

nav li::marker { 
  content: ""; 
}

nav li::before { 
  content: none !important; 
}

nav a {
  text-decoration: none;
  color: var(--text);
  padding: 0.6rem 1rem;
  font-weight: 400;
  font-size: 0.95rem;
  letter-spacing: 0.015em;
  border-bottom: none;
  transition: color var(--transition);
  position: relative;
}

nav a:hover {
  color: var(--ink-blue);
}

/* Actieve menu state */
nav a.active {
  color: var(--ink-blue);
  font-weight: 500;
}

nav a.active::after {
  content: "";
  position: absolute;
  bottom: 0.4rem;
  left: 1rem;
  right: 1rem;
  height: 2px;
  background: var(--salmon);
  border-radius: 1px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  width: 100%;
  justify-content: space-between;
}

.nav-logo img {
  height: 48px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 0.5rem;
  flex-wrap: nowrap;
}

/* PEP nav - duidelijk onderscheiden met zalm accent */
.nav-pep {
  font-weight: 600;
  color: var(--salmon);
  position: relative;
}

.nav-pep::after {
  content: "";
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 0.5rem;
  height: 2px;
  background: var(--salmon);
  opacity: 0.4;
}

nav a.nav-pep:hover::after {
  opacity: 1;
}

/* ===== LAYOUT ===== */
main {
  max-width: 1300px;
  margin: 0 auto;
  padding: 6rem 5rem 8rem;
}

.content-wrapper {
  max-width: 75ch;
  margin: 0 auto;
}

.content-wide {
  max-width: 1100px;
  margin: 0 auto;
}

/* ===== FOOTER ===== */
footer {
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--text-light);
  font-size: 0.9rem;
  padding: 3.5rem 4rem;
  margin-top: 6rem;
}

footer p {
  margin: 0 0 0.75rem;
  max-width: 1300px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-light);
}

footer a {
  color: var(--text-light);
  border-bottom-color: var(--line-strong);
}

footer a:hover {
  color: var(--ink-blue);
  border-bottom-color: var(--ink-blue);
}

/* ===== HERO ===== */
.hero{
  position: relative;
  min-height: 560px;
  padding: clamp(32px, 6vw, 72px);
  display: grid;
  align-items: end;
  overflow: hidden;
  background-image: url("/assets/img/foto-lacan-foucault-en-sloterdijk.png");
  background-size: cover;
  background-position: center;
  margin-bottom: 4rem;
}

.hero__overlay{
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: linear-gradient(90deg,
    rgba(30, 58, 95, 0.80) 0%,
    rgba(30, 58, 95, 0.50) 30%,
    rgba(0,0,0,.15) 60%,
    rgba(0,0,0,0) 80%);
}

.hero__content{
  position: relative;
  z-index: 1;
  max-width: 58ch;
  color: #fff;
  text-shadow: 0 2px 16px rgba(0,0,0,.85);
  padding: 2rem 3rem;
}

.hero h1{
  margin: 0 0 .6rem 0;
  font-size: clamp(32px, 4.5vw, 68px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #fff !important;
}

.hero p{
  margin: 0;
  font-size: clamp(18px, 1.7vw, 23px);
  color: #fff !important;
  opacity: .96;
  line-height: 1.65;
}

.hero__cta{
  display: inline-block;
  margin-top: 1.75rem;
  padding: .85rem 1.75rem;
  border: 2px solid rgba(255,255,255,.7);
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.015em;
  transition: border-color var(--transition), background var(--transition);
}

.hero__cta:hover{
  border-color: rgba(255,255,255,.95);
  background: rgba(255,255,255,.08);
}

/* ===== HOMEPAGE SECTIES ===== */
.home-logo {
  text-align: center;
  margin: 3rem 0 2.5rem;
}

.home-logo img {
  width: 220px;
  height: auto;
}

.section-soft {
  background: var(--bg-white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 5rem 4rem;
  margin: 4.5rem 0;
  text-align: center;
}

.section-soft p {
  max-width: 70ch;
  margin-left: auto;
  margin-right: auto;
  color: var(--text);
  font-size: 1.1rem;
  line-height: 1.9;
}

.section-soft h2,
.ervaringen h2,
.home-contact h2,
main > h2 {
  text-align: center;
  margin-top: 0;
}

/* ===== DIENSTEN - 3-KOLOMS GRID ===== */
.diensten {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin: 5rem auto 6rem;
  max-width: 1200px;
}

.dienst {
  border: none;
  border-top: 1px solid var(--line);
  padding: 2.5rem 2rem;
  background: transparent;
  transition: none;
  margin-bottom: 0;
}

.dienst:first-child,
.dienst:nth-child(2),
.dienst:nth-child(3) {
  padding-top: 3rem;
}

.dienst:last-child,
.dienst:nth-last-child(2),
.dienst:nth-last-child(3) {
  border-bottom: 1px solid var(--line);
  padding-bottom: 3rem;
}

.dienst p {
  color: var(--text);
  line-height: 1.85;
  max-width: 100%;
}

.dienst h3 {
  color: var(--ink-blue);
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.dienst-logo {
  display: none; /* Logo's onder "Wat wij doen" zijn niet nodig */
}

/* ===== KNOPPEN ===== */
.dienst a,
.btn,
.btn-primary {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.9rem 2rem;
  background: var(--ink-blue);
  color: #ffffff; /* Expliciet wit voor betere leesbaarheid */
  border: 2px solid var(--ink-blue);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: background var(--transition), border-color var(--transition);
}

.dienst a:hover,
.btn:hover,
.btn-primary:hover {
  background: var(--ink-blue-dark);
  border-color: var(--ink-blue-dark);
  color: #ffffff;
}

/* Secundaire button - zalm accent */
.btn-secondary {
  background: transparent;
  color: var(--salmon);
  border: 2px solid var(--salmon);
}

.btn-secondary:hover {
  background: var(--salmon);
  border-color: var(--salmon);
  color: #ffffff;
}

/* ===== HERO SOFT ===== */
.hero-soft {
  background: var(--bg-white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 5.5rem 4rem;
  margin: 5rem 0;
  text-align: center;
}

.hero-soft h1 {
  margin-bottom: 2rem;
}

.hero-soft p {
  max-width: 70ch;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.15rem;
  color: var(--text);
  line-height: 1.9;
}

/* ===== ERVARINGEN ===== */
.ervaringen {
  padding: 5.5rem 4rem;
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 5rem 0;
}

.ervaringen h2 {
  margin-bottom: 3.5rem;
}

.ervaringen-grid {
  display: block;
  max-width: 900px;
  margin: 0 auto;
}

.ervaring {
  border: none;
  border-top: 1px solid var(--line);
  padding: 2.75rem 0;
  background: transparent;
  transition: none;
}

.ervaring:first-child {
  padding-top: 3.5rem;
}

.ervaring:last-child {
  border-bottom: 1px solid var(--line);
  padding-bottom: 3.5rem;
}

.ervaring p {
  font-style: italic;
  color: var(--text);
  line-height: 1.85;
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.ervaring-naam {
  font-style: normal;
  font-weight: 500;
  color: var(--ink-blue);
  font-size: 0.95rem;
}

.ervaring-functie {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

/* ===== HOME CONTACT ===== */
.home-contact {
  text-align: center;
  margin: 6rem 0 5rem;
  padding: 5.5rem 4rem;
  background: var(--bg-white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.home-contact h2 {
  margin-bottom: 2rem;
}

.home-contact p {
  max-width: 70ch;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.15rem;
  line-height: 1.9;
}

/* ===== PEP PAGINA ===== */
.pep-glance {
  display: block;
  margin: 4rem auto;
  max-width: 950px;
}

.pep-box {
  border: none;
  border-top: 1px solid var(--line);
  padding: 3rem 0;
  background: transparent;
}

.pep-box:first-child {
  padding-top: 4rem;
}

.pep-box:last-child {
  border-bottom: 1px solid var(--line);
  padding-bottom: 4rem;
}

.pep-box h3 {
  margin-top: 0;
  margin-bottom: 1.25rem;
}

.pep-box p,
.pep-box ul {
  color: var(--text);
  line-height: 1.85;
}

.pep-box ul {
  margin-left: 0;
  padding-left: 1.75rem;
}

.pep-highlight {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 4.5rem 3.5rem;
  margin: 5rem 0;
  text-align: center;
}

.pep-highlight h2 {
  margin-top: 0;
  margin-bottom: 2rem;
}

.pep-highlight p {
  max-width: 70ch;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.15rem;
  line-height: 1.9;
}

/* ===== CARDS - 3-KOLOMS GRID ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin: 4rem auto;
  max-width: 1200px;
}

.card {
  border: none;
  border-top: 1px solid var(--line);
  padding: 2.5rem 2rem;
  background: transparent;
  transition: none;
}

.card:first-child,
.card:nth-child(2),
.card:nth-child(3) {
  padding-top: 3rem;
}

.card:last-child,
.card:nth-last-child(2),
.card:nth-last-child(3) {
  border-bottom: 1px solid var(--line);
  padding-bottom: 3rem;
}

.card h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.card p {
  color: var(--text);
  line-height: 1.85;
  max-width: 100%;
}

/* ===== BEGELEIDERS ===== */
.begeleiders-intro {
  text-align: center;
  max-width: 70ch;
  margin: 0 auto 5rem;
}

.begeleiders-intro p {
  font-size: 1.15rem;
  line-height: 1.9;
  margin-left: auto;
  margin-right: auto;
}

.begeleiders-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4rem 3rem;
  max-width: 1100px;
  margin: 0 auto;
}

.begeleider {
  border: none;
  border-top: 1px solid var(--line);
  padding: 3rem 0 0;
  background: transparent;
  margin-bottom: 0;
  display: block; /* Niet meer grid binnen item */
}

.begeleider:first-child,
.begeleider:nth-child(2) {
  padding-top: 4rem;
}

.begeleider:nth-last-child(-n+2) {
  border-bottom: 1px solid var(--line);
  padding-bottom: 3rem;
}

.begeleider-foto {
  width: 100%;
  max-width: 320px;
  height: 320px;
  object-fit: cover;
  margin: 0 auto 2.5rem; /* Meer ruimte onder foto */
  display: block;
  box-shadow: var(--shadow-soft);
}

.begeleider-content {
  text-align: center;
  max-width: 100%;
  margin: 0;
}

.begeleider h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.begeleider-rol {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 2rem;
  display: block;
}

.begeleider p {
  color: var(--text);
  line-height: 1.85;
}

/* ===== ESSAY OVERZICHT ===== */
.essay-list {
  display: block;
  margin: 4rem auto;
  max-width: 1000px;
}

.essay-list-featured {
  margin-bottom: 5rem;
}

.essay-item {
  border: none;
  border-top: 1px solid var(--line);
  padding: 3.25rem 0;
  display: block;
  background: transparent;
  transition: none;
}

.essay-item:first-child {
  padding-top: 4rem;
}

.essay-item:last-child {
  border-bottom: 1px solid var(--line);
  padding-bottom: 4rem;
}

.essay-thumb {
  display: none;
}

.essay-content h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.75rem;
}

.essay-content h3 a {
  text-decoration: none;
  color: var(--ink-blue);
  border-bottom: none;
  transition: color var(--transition);
}

.essay-content h3 a:hover {
  color: var(--salmon);
}

.essay-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.essay-content p {
  color: var(--text);
  line-height: 1.85;
  margin-bottom: 1.5rem;
}

.essay-content a.read-more {
  display: inline-block;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: var(--ink-blue);
  border-bottom: 1px solid var(--salmon);
}

.essay-content a.read-more:hover {
  color: var(--salmon);
  border-bottom-color: var(--ink-blue);
}

/* Featured essay card */
.essay-card-link {
  display: block;
  text-decoration: none;
  border: none;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
  margin: 4rem 0;
  padding: 4.5rem 4rem;
  text-align: center;
  transition: background var(--transition);
}

.essay-card-link:hover {
  background: var(--bg-white);
}

.essay-card-image {
  display: none;
}

.essay-card-content .essay-meta {
  margin-bottom: 1.5rem;
}

.essay-card-content h2 {
  margin: 0 0 2rem;
  font-size: 2.5rem;
  color: var(--ink-blue);
}

.essay-card-content p {
  max-width: 70ch;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.15rem;
  line-height: 1.9;
  color: var(--text);
}

/* ===== INDIVIDUELE ESSAY PAGINA ===== */
.essay-hero {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 5rem 4rem;
  margin-bottom: 4.5rem;
  text-align: center;
}

.essay-hero h1 {
  margin-bottom: 2rem;
  max-width: 22ch;
  margin-left: auto;
  margin-right: auto;
}

.essay-hero .essay-meta {
  font-size: 1rem;
  margin-bottom: 2rem;
}

.essay-hero .essay-lead {
  font-size: 1.25rem;
  line-height: 1.85;
  max-width: 70ch;
  margin: 0 auto;
  color: var(--text);
  font-style: italic;
  background: var(--bg-white);
  padding: 2rem 3rem;
  border-left: 3px solid var(--salmon);
}

.essay-actions {
  margin-top: 2.25rem;
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.essay-actions button,
.essay-actions a {
  background: transparent;
  border: 2px solid var(--line-strong);
  padding: 0.75rem 1.5rem;
  color: var(--text);
  cursor: pointer;
  font-size: 0.9rem;
  font-family: inherit;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: border-color var(--transition), color var(--transition), background var(--transition);
  display: inline-block;
}

.essay-actions button:hover,
.essay-actions a:hover {
  border-color: var(--ink-blue);
  color: var(--ink-blue);
  background: rgba(30, 58, 95, 0.03);
}

/* Prose - essay content */
.prose {
  max-width: 70ch;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 2.0;
  color: var(--text);
}

.prose h2 {
  margin-top: 5rem;
  margin-bottom: 2rem;
  font-size: 2.25rem;
}

.prose h3 {
  margin-top: 3.5rem;
  margin-bottom: 1.5rem;
  font-size: 1.75rem;
}

.prose p {
  margin-bottom: 2rem;
}

.prose p + h2 {
  margin-top: 6rem;
}

.prose ul {
  margin: 0 0 2rem 0;
  padding-left: 2rem;
  color: var(--text);
}

.prose li {
  margin: 1rem 0;
  line-height: 1.9;
}

.prose blockquote {
  background: var(--bg-soft);
  border-left: 4px solid var(--salmon);
  padding: 2.5rem 3rem;
  margin: 4rem 0;
  font-style: italic;
  color: var(--text);
  box-shadow: var(--shadow-soft);
}

.prose blockquote p {
  margin: 0;
}

/* Drop cap - zalm kleur */
.dropcap:first-letter,
.prose .dropcap:first-letter {
  float: left;
  font-size: 4.5rem;
  line-height: 0.9;
  padding-right: 0.75rem;
  margin-top: 0.25rem;
  font-weight: 600;
  color: var(--salmon);
}

/* Callout box - zalm accent */
.callout {
  background: rgba(188, 90, 35, 0.06);
  border: 2px solid var(--salmon);
  border-left-width: 4px;
  padding: 2.5rem 3rem;
  margin: 4rem 0;
}

.callout h3 {
  color: var(--salmon);
  margin-top: 0;
}

.callout p {
  margin: 0;
  color: var(--text);
}

.pullquote {
  background: var(--bg-white);
  border-left: 4px solid var(--salmon);
  padding: 2rem 2.5rem 1.5rem;
  margin: 3.5rem 0;
  color: var(--text);
  box-shadow: var(--shadow-soft);
}

.pullquote p {
  margin: 0 0 1rem;
  font-style: italic;
  font-size: 1.3rem;
  color: var(--text);
  line-height: 1.7;
  font-weight: 400;
}

/* Link onder quote - klein en subtiel */
.pullquote a,
.pullquote cite,
.pullquote .source {
  display: block;
  font-style: normal;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 1rem;
  border-bottom: none;
}

.pullquote a:hover {
  color: var(--ink-blue);
}

.note {
  background: var(--bg-white);
  border: 1px solid var(--line);
  padding: 2.5rem;
  margin: 4rem 0;
  color: var(--text);
  box-shadow: var(--shadow-soft);
}

/* Table of contents */
.toc {
  border: 2px solid var(--line);
  background: var(--bg-white);
  padding: 3rem;
  margin: 3rem 0 5rem;
  box-shadow: var(--shadow-soft);
}

.toc strong {
  display: block;
  margin-bottom: 1.5rem;
  color: var(--ink-blue);
  font-size: 1.15rem;
}

.toc a {
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  display: inline-block;
  padding: 0.35rem 0;
  color: var(--text);
}

.toc a:hover {
  border-bottom-color: var(--salmon);
  color: var(--ink-blue);
}

/* ===== TABELLEN - MOOIE STYLING ===== */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 2.5rem 0;
  font-size: 0.95rem;
  background: var(--bg-white);
  box-shadow: var(--shadow-soft);
}

table thead {
  background: var(--ink-blue);
  color: #ffffff;
}

table th {
  padding: 1rem 1.25rem;
  text-align: left;
  font-weight: 500;
  border-bottom: 3px solid var(--salmon);
  color: #ffffff;
}

table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  vertical-align: top;
}

table tbody tr:hover {
  background: rgba(188, 90, 35, 0.03);
}

table tbody tr:last-child td {
  border-bottom: none;
}

/* Inhoudsopgave tabel - speciale styling voor essay TOC */
table.toc-table,
.prose table:first-of-type {
  background: transparent;
  box-shadow: none;
  border: 1px solid var(--line);
  margin: 3rem 0;
}

table.toc-table thead,
.prose table:first-of-type thead {
  background: transparent;
}

table.toc-table th,
.prose table:first-of-type th {
  background: transparent;
  color: var(--ink-blue);
  font-size: 1.1rem;
  font-weight: 600;
  border-bottom: 2px solid var(--salmon);
  padding: 1.25rem;
}

table.toc-table td,
.prose table:first-of-type td {
  padding: 0.85rem 1.25rem;
  font-size: 0.95rem;
  border-right: 1px solid var(--line);
}

table.toc-table td:last-child,
.prose table:first-of-type td:last-child {
  border-right: none;
}

table.toc-table a,
.prose table:first-of-type a {
  color: var(--ink-blue);
  text-decoration: none;
  border-bottom: none;
  display: block;
  padding: 0.35rem 0;
  transition: color var(--transition);
}

table.toc-table a:hover,
.prose table:first-of-type a:hover {
  color: var(--salmon);
}

/* Literatuurlijst */
.literatuur {
  margin-top: 5rem;
  padding-top: 3rem;
  border-top: 1px solid var(--line);
}

.literatuur ol {
  margin: 2rem 0 0 2rem;
  color: var(--text);
  line-height: 1.9;
}

/* Externe logo's kleiner maken */
.content-wrapper img[src*="zincafe"],
.content-wrapper img[src*="logo"]:not([src*="itf"]),
main img[alt*="Zincafé"],
main img[alt*="zincafe"] {
  max-width: 200px;
  height: auto;
  margin: 2rem auto;
  display: block;
}

.section-soft img[src*="zincafe"],
.section-soft img[alt*="Zincafé"] {
  max-width: 180px;
  margin: 1.5rem auto;
}

/* ===== LEESMODUS ===== */
.essay-page.reading .prose {
  font-size: 1.15rem;
  line-height: 2.1;
  max-width: 68ch;
  margin: 0 auto;
}

.essay-page.reading .essay-hero {
  padding: 5.5rem 4rem;
}

.essay-page.reading .toc {
  max-width: 68ch;
  margin-left: auto;
  margin-right: auto;
}

/* ===== ESSAY NAVIGATIE ===== */
.essay-nav {
  margin-top: 5.5rem;
  border-top: 1px solid var(--line);
  padding-top: 3rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3rem;
}

.essay-nav a {
  display: block;
  border: 1px solid var(--line);
  background: transparent;
  padding: 2.5rem 2rem;
  text-decoration: none;
  transition: border-color var(--transition), background var(--transition);
}

.essay-nav a:hover {
  border-color: var(--salmon);
  background: var(--bg-soft);
}

.essay-nav .label {
  display: block;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.essay-nav .title {
  display: block;
  font-weight: 500;
  color: var(--ink-blue);
  font-size: 1.15rem;
  line-height: 1.5;
}

/* Scroll margin voor ankers */
blockquote[id],
.note[id],
.pullquote[id] {
  scroll-margin-top: 120px;
}

/* ===== FORMULIEREN ===== */

label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="number"],
textarea,
select {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line-strong);
  background: var(--bg-white);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.5;
  transition: border-color var(--transition), background var(--transition);
  margin-bottom: 1.25rem;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--ink-blue);
  background: var(--bg);
}

textarea {
  min-height: 150px;
  resize: vertical;
  font-family: inherit;
}

select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%232a2a2a' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 3rem;
}

form {
  max-width: 650px;
  margin: 2rem auto;
}

.form-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 1rem;
  align-items: start;
  margin-bottom: 1.5rem;
}

.form-row label {
  margin-bottom: 0;
  padding-top: 0.85rem;
}

.form-row input,
.form-row select,
.form-row textarea {
  margin-bottom: 0;
}

.form-group {
  margin-bottom: 1.75rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  margin-bottom: 0;
}

input[type="submit"],
button[type="submit"],
.form-submit {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.85rem 2rem;
  background: var(--ink-blue);
  color: #ffffff;
  border: 2px solid var(--ink-blue);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  font-family: inherit;
  transition: background var(--transition), border-color var(--transition);
}

input[type="submit"]:hover,
button[type="submit"]:hover,
.form-submit:hover {
  background: var(--ink-blue-dark);
  border-color: var(--ink-blue-dark);
}

::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}

.form-inline {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

.form-inline input,
.form-inline select {
  flex: 1;
  min-width: 200px;
  margin-bottom: 0;
}

.form-inline button,
.form-inline input[type="submit"] {
  flex-shrink: 0;
  margin-top: 0;
}

.form-help {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

input.error,
textarea.error,
select.error {
  border-color: #c44;
}

.form-error {
  color: #c44;
  font-size: 0.9rem;
  margin-top: 0.4rem;
  display: block;
}

.required {
  color: var(--salmon);
  margin-left: 0.2rem;
}

input[type="checkbox"],
input[type="radio"] {
  width: auto;
  margin-right: 0.5rem;
  margin-bottom: 0;
  cursor: pointer;
}

.checkbox-group,
.radio-group {
  margin-bottom: 1.5rem;
}

.checkbox-group label,
.radio-group label {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
  font-weight: 400;
  cursor: pointer;
}

.section-soft form,
.hero-soft form,
.home-contact form {
  max-width: 550px;
}

/* ===== RESPONSIVE DESIGN ===== */

@media (max-width: 1200px) {
  main {
    padding: 5rem 4rem 7rem;
  }

  nav {
    padding: 1.15rem 3rem;
  }

  .section-soft,
  .hero-soft,
  .ervaringen,
  .home-contact,
  .pep-highlight {
    padding: 4.5rem 3rem;
  }
}

@media (max-width: 900px) {
  main {
    padding: 4rem 2.5rem 6rem;
  }

  nav {
    padding: 1rem 2rem;
  }

  h1 {
    margin-bottom: 1.75rem;
  }

  h2 {
    margin-top: 4rem;
    margin-bottom: 1.5rem;
  }

  /* Grid naar 1 kolom */
  .diensten,
  .cards {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .dienst,
  .card {
    padding: 2.5rem 0;
  }

  .dienst:first-child,
  .card:first-child {
    padding-top: 3rem;
  }

  .dienst:last-child,
  .card:last-child {
    padding-bottom: 3rem;
  }

  .ervaringen-grid,
  .pep-glance,
  .essay-list {
    max-width: 100%;
  }

  /* Begeleiders naar 1 kolom op tablets */
  .begeleiders-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .begeleider-foto {
    max-width: 280px;
    height: 280px;
  }

  .section-soft,
  .hero-soft,
  .ervaringen,
  .home-contact,
  .pep-highlight {
    padding: 4rem 2.5rem;
  }

  .ervaring,
  .pep-box,
  .essay-item {
    padding: 3rem 0;
  }

  .ervaring:first-child,
  .pep-box:first-child,
  .essay-item:first-child {
    padding-top: 3.5rem;
  }

  .ervaring:last-child,
  .pep-box:last-child,
  .essay-item:last-child {
    padding-bottom: 3.5rem;
  }

  .essay-card-link {
    padding: 4rem 2.5rem;
  }

  .essay-hero {
    padding: 4rem 2.5rem;
  }

  .essay-nav {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* Formulieren op tablets */
  .form-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .form-row label {
    padding-top: 0;
    margin-bottom: 0.5rem;
  }

  form {
    max-width: 100%;
  }
  
  /* Tabellen scrollbaar */
  table {
    display: block;
    overflow-x: auto;
  }
}

@media (max-width: 750px) {
  nav a {
    padding: 0.5rem 0.8rem;
    font-size: 0.9rem;
  }
  
  .nav-logo img {
    height: 42px;
  }
}

@media (max-width: 600px) {
  main {
    padding: 3rem 1.75rem 5rem;
  }

  nav {
    padding: 0.85rem 1.25rem;
    gap: 1rem;
  }

  .nav-logo img {
    height: 38px;
  }

  nav a {
    padding: 0.4rem 0.6rem;
    font-size: 0.85rem;
  }

  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 1.85rem;
    margin-top: 3.5rem;
  }

  .section-soft,
  .hero-soft,
  .ervaringen,
  .home-contact,
  .pep-highlight {
    padding: 3.5rem 2rem;
  }

  .dienst,
  .ervaring,
  .pep-box,
  .card,
  .essay-item {
    padding: 2.75rem 0;
  }

  .begeleider-foto {
    max-width: 240px;
    height: 240px;
  }

  .essay-card-link {
    padding: 3.5rem 2rem;
  }

  .essay-hero {
    padding: 3.5rem 2rem;
  }

  footer {
    padding: 3rem 2rem;
  }

  /* Formulieren op mobiel */
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="url"],
  input[type="number"],
  textarea,
  select {
    padding: 0.75rem 0.85rem;
    font-size: 0.95rem;
  }

  input[type="submit"],
  button[type="submit"],
  .form-submit {
    width: 100%;
    padding: 0.85rem 1.5rem;
  }

  .form-inline {
    flex-direction: column;
  }

  .form-inline input,
  .form-inline select {
    width: 100%;
  }
}

/* ===== PRINT STYLING ===== */
@media print {
  header,
  nav,
  footer {
    display: none !important;
  }
  
  main {
    padding: 0 !important;
    max-width: none !important;
  }
  
  .essay-actions,
  .toc {
    display: none !important;
  }
  
  .essay-hero {
    border: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
  }
  
  a {
    text-decoration: none;
    color: #000;
    border-bottom: none;
  }
  
  a::after {
    content: " (" attr(href) ")";
    font-size: 0.85em;
    color: #666;
  }

  * {
    box-shadow: none !important;
  }
}
