/* ────────────────────────────────────────────────────────────
   site.css — gedeelde stijlen voor index, bestellen, bedankt,
              privacy en voorwaarden
   ────────────────────────────────────────────────────────────*/

:root {
  --black: #111;
  --white: #fff;
  --gray: #888;
  --light: #f5f5f5;
  --border: #222;
  --paper: #faf6ef;
}

* { margin:0; padding:0; box-sizing:border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--white);
  color: var(--black);
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

/* ── HEADER ── */
header.site {
  background: var(--black);
  color: var(--white);
  padding: 3rem 1.5rem 2.5rem;
  text-align: center;
}

header.site h1 {
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  line-height: 1.1;
}

header.site p.subtitle {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  font-weight: 300;
  margin-top: 0.5rem;
  color: #ccc;
}

header.site .hero-cta {
  margin-top: 1.75rem;
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.85rem 1.4rem;
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  border: 2px solid var(--white);
  background: transparent;
  color: var(--white);
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.btn:hover { background: var(--white); color: var(--black); }

.btn.btn-primary { background: var(--white); color: var(--black); }
.btn.btn-primary:hover { background: transparent; color: var(--white); }

.btn.btn-dark {
  border-color: var(--black);
  color: var(--black);
}
.btn.btn-dark:hover { background: var(--black); color: var(--white); }

.btn.btn-dark.btn-primary {
  background: var(--black);
  color: var(--white);
}
.btn.btn-dark.btn-primary:hover {
  background: transparent;
  color: var(--black);
}

/* ── NAV ── */
nav.site {
  background: var(--black);
  border-top: 2px solid #333;
  padding: 0.75rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  display: flex;
  justify-content: center;
  gap: 0;
}

nav.site a {
  color: #aaa;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.4rem 0.8rem;
  display: inline-block;
  border: 1px solid transparent;
  transition: all 0.2s;
}

nav.site a:hover, nav.site a:focus,
nav.site a.active {
  color: var(--white);
  border-color: var(--white);
}

nav.site a.cta {
  background: var(--white);
  color: var(--black);
  margin-left: 0.5rem;
}
nav.site a.cta:hover {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

/* ── GRID ── */
.container {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 1rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.grid-2 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

/* ── SECTION ── */
section {
  padding: 3rem 0 2rem;
}

section:nth-child(even) { background: var(--light); }

/* Highlight book section regardless of nth-child */
section.book-feature {
  background: var(--black) !important;
  color: var(--white);
}
section.book-feature .section-title { color: var(--white); border-color: var(--white); }
section.book-feature .section-intro { color: #ccc; }

.section-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  padding: 0 1rem 0.5rem;
  max-width: 920px;
  margin: 0 auto;
  border-bottom: none;
  text-decoration-line: underline;
  text-decoration-style: solid;
  text-decoration-color: currentColor;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.4em;
  text-decoration-skip-ink: none;
}

.section-intro {
  max-width: 920px;
  margin: 0 auto;
  padding: 1.5rem 1rem;
  font-size: 1.05rem;
  color: #444;
}

/* ── CARDS ── */
.card {
  border: 2px solid var(--black);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  min-height: 200px;
  transition: background 0.2s;
  cursor: pointer;
  background: var(--white);
  color: var(--black);
  text-decoration: none;
}

.card:hover { background: var(--black); color: var(--white); }
.card:hover .card-tag { color: #aaa; border-color: #aaa; }
.card:hover .card-arrow { color: var(--white); }

a.card,
a.card:hover,
a.card:focus,
a.card:visited { text-decoration: none; }
a.card { display: flex; }
a.card * { text-decoration: none; }

.card-tag {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray);
  border: 1px solid var(--gray);
  display: inline-block;
  padding: 0.15rem 0.5rem;
  margin-bottom: 0.75rem;
  align-self: flex-start;
}

.card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.card p {
  font-size: 0.9rem;
  line-height: 1.5;
  flex: 1;
  color: inherit;
  opacity: 0.85;
}

.card-arrow {
  margin-top: 1rem;
  font-size: 1.2rem;
  align-self: flex-end;
  color: var(--black);
}

/* ── TOOL CARDS ── */
.tool-card {
  border: 2px solid var(--black);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: background 0.2s;
  background: var(--white);
}

.tool-card:hover { background: var(--black); color: var(--white); }
.tool-card:hover .tool-type { color: #aaa; }
.tool-card:hover p { color: #ccc; }
.tool-card:hover .tool-link { color: var(--white); border-color: var(--white); }

.tool-card h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: 0.4rem; }

.tool-card .tool-type {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray);
  margin-bottom: 0.75rem;
}

.tool-card p { font-size: 0.88rem; line-height: 1.5; flex: 1; color: #444; }

.tool-card .tool-link {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--black);
  border: 2px solid var(--black);
  padding: 0.4rem 1rem;
  text-decoration: none;
  transition: all 0.2s;
  align-self: flex-start;
}

/* ── TIP BLOCKS ── */
.tip {
  border-left: 4px solid var(--black);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem auto;
  max-width: 920px;
  background: var(--light);
}
.tip strong { text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.08em; }
.tip p { font-size: 0.9rem; margin-top: 0.3rem; color: #444; }

/* ── BOOK FEATURE BLOCK ── */
.book-block {
  max-width: 920px;
  margin: 0 auto;
  padding: 2rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.book-intro {
  max-width: 100%;
}
.book-intro h3 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  color: inherit;
}
.book-intro p {
  font-size: 0.98rem;
  line-height: 1.65;
  color: inherit;
  opacity: 0.88;
  margin-bottom: 1rem;
}

.book-bottom {
  display: flex;
  flex-direction: row;
  gap: clamp(0.9rem, 2vw, 2rem);
  align-items: flex-start;
  flex-wrap: nowrap;
}

.book-cover-img {
  display: block;
  flex: 0 0 clamp(150px, 32vw, 260px);
  width: clamp(150px, 32vw, 260px);
  max-width: 260px;
  height: auto;
  align-self: flex-start;
  aspect-ratio: 603 / 851;
  border: 3px solid var(--white);
  box-shadow: 0 12px 30px rgba(0,0,0,0.55);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  background: var(--white);
  overflow: hidden;
}
.book-cover-img:hover {
  transform: translateY(-3px) rotate(-0.3deg);
  box-shadow: 0 16px 38px rgba(0,0,0,0.65);
}
.book-cover-img img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
}

.book-toc-wrap {
  flex: 1 1 0;
  min-width: 0;
}

.book-actions {
  margin-top: 1.25rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.book-toc {
  list-style: none;
  padding: 0;
  margin-top: 0;
}
.book-toc li {
  font-size: 0.85rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  font-weight: 600;
  color: inherit;
}
.book-toc li span { color: #aaa; font-weight: 400; }

/* ── AUTHOR ── */
.author-block {
  max-width: 920px;
  margin: 0 auto;
  padding: 2rem 1rem;
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 1.5rem;
  align-items: start;
}

.author-photo-wrap {
  width: 150px;
  max-width: 100%;
  background: transparent;
  overflow: hidden;
  margin-top: calc(1.4rem + 20px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.18);
  aspect-ratio: 206 / 276;
}
.author-portrait {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.02);
}

.author-info h3 { font-size: 1.3rem; font-weight: 800; margin-bottom: 0.5rem; }
.author-info p { font-size: 0.95rem; line-height: 1.65; color: #444; margin-bottom: 0.75rem; }

.author-info .author-links {
  margin-top: 0.75rem;
  font-size: 0.85rem;
}
.author-info .author-links a {
  color: var(--black);
  text-decoration: none;
  border-bottom: 1px solid var(--black);
  margin-right: 0.75rem;
}

/* ── FOOTER ── */
footer {
  background: var(--black);
  color: #aaa;
  padding: 2rem 1.5rem;
  text-align: center;
  font-size: 0.8rem;
}
footer a {
  color: var(--white);
  text-decoration: none;
  border-bottom: 1px solid var(--white);
}
footer .footer-links {
  margin-top: 0.75rem;
}
footer .footer-links a {
  margin: 0 0.5rem;
  border-bottom: none;
  color: #aaa;
}
footer .footer-links a:hover { color: var(--white); }

/* ── COLLAPSIBLE ── */
details {
  border: 2px solid var(--black);
  margin: 0 auto 0.5rem;
  max-width: 920px;
}
details summary {
  padding: 1rem 1.5rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
}
details summary::marker { content: ''; }
details summary::before {
  content: '\FF0B';
  font-weight: 900;
  font-size: 1.1rem;
  flex-shrink: 0;
}
details[open] summary::before { content: '\FF0D'; }
details .detail-body {
  padding: 0 1.5rem 1.25rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #444;
}
details .detail-body p { margin-bottom: 0.75rem; }
details .detail-body ul { margin: 0.5rem 0 0.75rem 1.5rem; }
details .detail-body li { margin-bottom: 0.3rem; font-size: 0.88rem; }

/* ── MODAL ── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.modal-overlay.active { display: flex; opacity: 1; }
.modal-overlay.fade-in { opacity: 1; }

.modal {
  background: var(--white);
  width: 600px;
  max-width: 95vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  border: 3px solid var(--black);
  transform: translateY(20px);
  transition: transform 0.25s ease;
}
.modal-overlay.fade-in .modal { transform: translateY(0); }

.modal-header {
  padding: 1.5rem 2rem 1rem;
  border-bottom: 2px solid var(--black);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-shrink: 0;
}
.modal-header h2 {
  font-family: 'Segoe UI', system-ui, sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1.3;
}
.modal-close {
  background: none;
  border: 2px solid var(--black);
  width: 36px;
  height: 36px;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s;
  font-weight: 700;
}
.modal-close:hover { background: var(--black); color: var(--white); }
.modal-body {
  padding: 1.5rem 2rem 2rem;
  overflow-y: auto;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1rem;
  line-height: 1.85;
  color: #222;
}
.modal-body h4 {
  font-family: 'Segoe UI', system-ui, sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  margin: 1.5rem 0 0.5rem;
  color: var(--black);
}
.modal-body h4:first-child { margin-top: 0; }
.modal-body p { margin-bottom: 0.9rem; }
.modal-body ul, .modal-body ol { margin: 0.5rem 0 1rem 1.5rem; }
.modal-body li { margin-bottom: 0.4rem; }
.modal-body strong { font-weight: 700; }

/* ── GENERIC PAGE WRAPPER (privacy/voorwaarden/bedankt) ── */
.page-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 3rem 1.25rem 4rem;
}
.page-wrap h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 1rem;
  border-bottom: 4px solid var(--black);
  padding-bottom: 0.75rem;
}
.page-wrap h2 {
  font-size: 1.2rem;
  font-weight: 800;
  margin: 2rem 0 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.page-wrap p { margin-bottom: 0.85rem; line-height: 1.7; color: #333; }
.page-wrap ul { margin: 0.5rem 0 1rem 1.5rem; }
.page-wrap li { margin-bottom: 0.35rem; }
.page-wrap a { color: var(--black); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .book-toc li { font-size: 0.78rem; padding: 0.35rem 0; }
  .author-block { grid-template-columns: 120px 1fr; gap: 1.25rem; }
  .author-photo-wrap { width: 120px; margin-top: calc(1rem + 20px); }
}

/* Smalle telefoons: cover boven, hoofdstukken eronder.
   Vanaf ~440px viewport blijft de cover náást de hoofdstukken. */
@media (max-width: 440px) {
  .book-bottom { flex-direction: column; align-items: stretch; gap: 1rem; }
  .book-cover-img { flex: 0 0 auto; width: 100%; max-width: 100%; }
}

@media (max-width: 600px) {
  .grid { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .author-block { grid-template-columns: 1fr; justify-items: start; text-align: left; }
  .author-photo-wrap { margin-top: 0.25rem; }
  .author-info p { text-align: justify; hyphens: auto; }
  nav.site { padding: 0.5rem 0.75rem; justify-content: flex-start; }
  nav.site a { font-size: 0.7rem; padding: 0.3rem 0.5rem; }
  section { padding: 2rem 0 1.5rem; }
  .tip, details { margin-left: 0.5rem; margin-right: 0.5rem; }
  .modal {
    width: 100vw;
    max-width: 100vw;
    max-height: 100vh;
    height: 100vh;
    border: none;
  }
  .modal-header { padding: 1.25rem 1.25rem 0.75rem; }
  .modal-body { padding: 1rem 1.25rem 1.5rem; }
}
