/* Flowcharts – gedeelde stijl voor alle werkwijzen (IT Live) */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 50%, #f1f5f9 100%);
  min-height: 100vh;
  color: #1e293b;
}
.flowcharts-wrap { max-width: 1000px; margin: 0 auto; padding: 0 1.25rem 2rem; }
.flowcharts-header {
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  padding: 0.75rem 1.25rem;
  position: sticky;
  top: 0;
  z-index: 20;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.flowcharts-header-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.flowcharts-logo { font-weight: 800; font-size: 1.25rem; color: #0f172a; text-decoration: none; }
.flowcharts-logo:hover { color: #0d9488; }
.flowcharts-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; }
.flowcharts-nav a {
  color: #475569;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
}
.flowcharts-nav a:hover { background: #f1f5f9; color: #0f172a; }
.flowcharts-nav a.primary { background: linear-gradient(135deg, #0d9488, #0f766e); color: #fff !important; }
.flowcharts-nav a.primary:hover { opacity: 0.95; }

.flowcharts-hero { text-align: center; padding: 2rem 1rem 1.5rem; }
.flowcharts-hero h1 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); color: #0f172a; margin-bottom: 0.5rem; }
.flowcharts-hero p { font-size: 1rem; color: #64748b; max-width: 32rem; margin: 0 auto; line-height: 1.6; }

.flow-card-wrap {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  border: 1px solid #e2e8f0;
  padding: 1.75rem;
  margin-bottom: 1.5rem;
}
.flow-title { font-size: 1.05rem; color: #475569; margin-bottom: 1.25rem; font-weight: 600; }
.flow-steps {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: 0.75rem;
}
.step-card {
  flex: 1 1 130px;
  min-width: 110px;
  max-width: 180px;
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  transition: all 0.25s;
  text-decoration: none;
  color: inherit;
  display: block;
}
.step-card:hover {
  border-color: #0d9488;
  background: #f0fdfa;
  box-shadow: 0 4px 12px rgba(13,148,136,0.15);
  transform: translateY(-2px);
}
.step-card .num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0d9488, #0f766e);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
}
.step-card h3 { font-size: 0.95rem; color: #0f172a; margin-bottom: 0.25rem; }
.step-card p { font-size: 0.8rem; color: #64748b; line-height: 1.35; }
.step-arrow {
  flex: 0 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 1.1rem;
}
@media (max-width: 640px) { .step-arrow { flex: 0 0 100%; width: 100%; transform: rotate(90deg); } }

.flow-note { margin-top: 0.75rem; font-size: 0.85rem; color: #64748b; line-height: 1.45; }
.flow-cta-block { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.25rem; }
.flow-cta-block a {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.2s;
}
.flow-cta-primary { background: linear-gradient(135deg, #0d9488, #0f766e); color: #fff; border: none; }
.flow-cta-primary:hover { opacity: 0.95; box-shadow: 0 2px 10px rgba(13,148,136,0.35); }
.flow-cta-secondary { background: #f1f5f9; color: #475569; border: 2px solid #e2e8f0; }
.flow-cta-secondary:hover { background: #e2e8f0; color: #0f172a; }

/* Tooltip (optioneel) */
.step-card[title] { cursor: pointer; }
.flowcharts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.flowcharts-grid a {
  display: block;
  padding: 1rem 1.25rem;
  background: #fff;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  text-decoration: none;
  color: #1e293b;
  font-weight: 600;
  transition: all 0.2s;
}
.flowcharts-grid a:hover { border-color: #0d9488; background: #f0fdfa; }
.flowcharts-grid a small { display: block; font-weight: 400; font-size: 0.85rem; color: #64748b; margin-top: 0.25rem; }

/* Toolbar (flow.html): Alle flowcharts-link + Afdrukken */
.flow-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem; margin-top: 1rem; }
.flow-toolbar-link { color: #0d9488; text-decoration: none; font-size: 0.9rem; font-weight: 500; }
.flow-toolbar-link:hover { text-decoration: underline; }
.flow-toolbar-print {
  padding: 0.5rem 1rem; border: 2px solid #e2e8f0; border-radius: 10px; background: #fff;
  font-size: 0.9rem; font-weight: 600; color: #475569; cursor: pointer; transition: all 0.2s;
}
.flow-toolbar-print:hover { border-color: #0d9488; background: #f0fdfa; color: #0f766e; }

/* Meer info in flowchart */
.flow-more-info { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid #e2e8f0; }
.flow-more-info-title { font-size: 0.95rem; color: #475569; margin-bottom: 0.75rem; font-weight: 600; }
.flow-detail-steps-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.5rem; }
.flow-detail-step-tag { font-size: 0.8rem; color: #64748b; background: #f1f5f9; padding: 0.25rem 0.5rem; border-radius: 6px; }
.flow-detail-step-arrow { color: #94a3b8; font-size: 0.75rem; }
.flow-test-cases { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.flow-test-case-btn {
  display: inline-block; padding: 0.4rem 0.75rem; background: #fff; border: 2px solid #0ea5e9; border-radius: 8px;
  color: #0369a1; font-weight: 600; font-size: 0.85rem; text-decoration: none; transition: all 0.2s;
}
.flow-test-case-btn:hover { background: #0ea5e9; color: #fff; }

@media print {
  .flowcharts-header, .flow-toolbar, .flowcharts-wrap > p:last-of-type { display: none !important; }
  .flow-card-wrap { box-shadow: none; border: 1px solid #ccc; }
  body { background: #fff; }
}
