/**
 * Baseline designer-kit — SSR-basisstijl voor PHP-partials (templates/themes/_base/blocks).
 * Selectors: .theme-* / .theme-block* + beperkte .lte-* waar SSR geen theme-* dubbel uitgeeft
 * (download, quote, popup-chip). Laad ná hark-baseline/css/theme.css (of merge in je theme.css).
 *
 * Blokinventaris: zie public_html/assets/live-theme-editor/blocks/definitions.js (BLOCK_LIBRARY)
 * en themes/theme-starter.example.css (comment bovenaan, 2026).
 */

/* -------------------------------------------------------------------------- */
/* Algemeen: secties + generiek _generic.php (grid, kaarten, titels)         */
/* -------------------------------------------------------------------------- */

.theme-block {
  box-sizing: border-box;
}

.theme-block,
.theme-block-qr-code {
  width: 100%;
  max-width: 100%;
}

.theme-generic-title {
  font-family: var(--theme-heading-font, system-ui, sans-serif);
  font-weight: 600;
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  line-height: 1.2;
  margin: 0 0 0.65rem;
  color: var(--theme-text, inherit);
}

.theme-generic-subtitle {
  margin: 0 0 1rem;
  line-height: 1.55;
  color: var(--theme-text, inherit);
  opacity: 0.95;
}

/* Grid uit _generic.php: theme-generic-grid--{type} voor elk BLOCK_LIBRARY-type dat items rendert. */
.theme-generic-grid {
  display: grid;
  gap: 1rem 1.25rem;
  width: 100%;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

/* Dichtere logo-raster; smalle cellen blijven leesbaar */
.theme-generic-grid--logos {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  align-items: center;
}

/* Stats: vaak 3–4 cijfers op één rij */
.theme-generic-grid--stats {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.theme-generic-card {
  border: 1px solid color-mix(in srgb, var(--theme-text, #0f172a) 10%, transparent);
  border-radius: var(--theme-radius, 10px);
  padding: 1rem 1.1rem;
  background: var(--theme-section-bg, #fff);
}

.theme-generic-card-image {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  border-radius: calc(var(--theme-radius, 10px) * 0.6);
  margin-bottom: 0.75rem;
}

.theme-generic-card-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.theme-generic-card-text {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--theme-text, inherit);
}

.theme-generic-actions {
  margin: 1rem 0 0;
  text-align: center;
}

.theme-generic-btn,
.theme-hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.1rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--theme-button-radius, 10px);
  text-decoration: none;
  transition: filter 0.15s ease, opacity 0.15s ease;
}

.theme-generic-btn {
  background: var(--theme-primary, #2563eb);
  color: #fff;
  border: 0;
  cursor: pointer;
}

.theme-generic-btn:hover,
.theme-hero-btn:hover {
  filter: brightness(0.95);
}

.theme-block-generic-divider .theme-block-divider,
.theme-block-generic.theme-block-generic-divider hr,
hr.theme-block-divider {
  border: 0;
  border-top: 1px solid color-mix(in srgb, var(--theme-text) 14%, transparent);
  margin: 1.25rem 0;
}

/* -------------------------------------------------------------------------- */
/* Hero (hero.php)                                                            */
/* -------------------------------------------------------------------------- */

.theme-block-hero {
  padding: clamp(2.5rem, 6vw, 4.5rem) 1.25rem;
  background: var(--theme-section-bg, color-mix(in srgb, var(--theme-primary, #2563eb) 8%, #f8fafc));
  background-size: cover;
  background-position: center;
}

.theme-hero-inner {
  max-width: var(--theme-width, 1120px);
  margin: 0 auto;
}

.theme-hero-title {
  font-family: var(--theme-heading-font, system-ui, sans-serif);
  font-size: clamp(1.75rem, 4.5vw, 2.75rem);
  line-height: 1.1;
  margin: 0 0 0.75rem;
  color: var(--theme-text, inherit);
}

.theme-hero-subtitle {
  font-size: 1.05rem;
  line-height: 1.55;
  max-width: 48rem;
  margin: 0 0 1.25rem;
}

.theme-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
}

.theme-hero-btn-primary {
  background: var(--theme-primary, #2563eb);
  color: #fff;
  border: 0;
}

.theme-hero-btn-secondary {
  background: transparent;
  color: var(--theme-primary, #2563eb);
  border: 2px solid var(--theme-primary, #2563eb);
}

/* -------------------------------------------------------------------------- */
/* Tekst, custom HTML                                                         */
/* -------------------------------------------------------------------------- */

.theme-block-text .entry-title,
.theme-block-text .theme-block-text-title {
  font-family: var(--theme-heading-font, system-ui, sans-serif);
  margin: 0 0 0.75rem;
}

.theme-block-text .entry-content,
.theme-block-text .theme-block-text-body {
  line-height: 1.65;
  color: var(--theme-text, inherit);
}

.theme-block-text .entry-content p,
.theme-block-text .theme-block-text-body p {
  margin: 0 0 1em;
}

.theme-block-text .entry-content a,
.theme-block-text .theme-block-text-body a {
  color: var(--theme-link-color, var(--theme-primary, #2563eb));
}

.theme-block-custom-html {
  line-height: 1.6;
  max-width: var(--theme-width, 1120px);
  margin: 0 auto;
}

/* -------------------------------------------------------------------------- */
/* CTA (cta.php)                                                              */
/* -------------------------------------------------------------------------- */

.theme-block-cta {
  padding: 2rem 1.25rem;
  text-align: center;
  background: var(--theme-section-bg, #eff6ff);
  border-radius: var(--theme-radius, 12px);
}

.theme-cta-title {
  font-family: var(--theme-heading-font, system-ui, sans-serif);
  font-weight: 700;
  color: var(--theme-text, inherit);
  margin: 0 0 0.75rem;
}

.theme-cta-subtitle {
  line-height: 1.65;
  color: var(--theme-text, inherit);
  margin: 0 0 1rem;
}

.theme-cta-subtitle p {
  margin: 0 0 0.75em;
}

.theme-cta-btn.lte-theme-btn {
  min-width: 8rem;
}

/* -------------------------------------------------------------------------- */
/* Accordion (native <details> — geen JS nodig)                                */
/* -------------------------------------------------------------------------- */

.theme-block-accordion {
  max-width: var(--theme-width, 1120px);
  margin: 0 auto;
  padding: 0 0.5rem;
}

.theme-accordion-title {
  font-family: var(--theme-heading-font, inherit);
  margin: 0 0 1rem;
}

.theme-accordion-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.theme-accordion-item {
  border: 1px solid color-mix(in srgb, var(--theme-text) 12%, transparent);
  border-radius: var(--theme-radius, 10px);
  padding: 0.35rem 0.75rem;
  background: var(--theme-section-bg, #fff);
}

.theme-accordion-question {
  font-weight: 600;
  cursor: pointer;
}

.theme-accordion-answer {
  margin-top: 0.5rem;
  line-height: 1.55;
  padding-top: 0.35rem;
  border-top: 1px dashed color-mix(in srgb, var(--theme-text) 8%, transparent);
}

/* -------------------------------------------------------------------------- */
/* Image, galerij                                                             */
/* -------------------------------------------------------------------------- */

.theme-block-image {
  max-width: var(--theme-width, 1120px);
  margin: 0 auto;
  text-align: center;
}

.theme-block-image img {
  max-width: 100%;
  height: auto;
  border-radius: var(--theme-radius, 10px);
}

.theme-block-image-caption {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.9rem;
  opacity: 0.85;
}

.theme-block-gallery {
  max-width: var(--theme-width, 1120px);
  margin: 0 auto;
  padding: 0 0.5rem;
}

.theme-block-gallery-title {
  font-family: var(--theme-heading-font, inherit);
  margin: 0 0 1rem;
}

.theme-block-gallery-grid img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: calc(var(--theme-radius, 10px) * 0.5);
  display: block;
}

/* -------------------------------------------------------------------------- */
/* Embeds: video, map, QR                                                    */
/* -------------------------------------------------------------------------- */

.theme-generic-embed,
.theme-generic-embed iframe {
  width: 100%;
  min-height: 200px;
  border: 0;
  border-radius: var(--theme-radius, 10px);
}

.theme-block-generic-map .theme-generic-embed,
.theme-block-generic-video .theme-generic-embed,
iframe[src*="manegeplan"] {
  aspect-ratio: 16 / 9;
  min-height: 240px;
  height: auto;
}

.lte-qr-block.theme-block-qr-code,
section.theme-block-qr-code {
  text-align: center;
  padding: 1rem;
}

.lte-qr-block img,
.theme-block-qr-code img {
  max-width: 100%;
  height: auto;
}

/* -------------------------------------------------------------------------- */
/* Form & zoeken (placeholders in _generic.php)                               */
/* -------------------------------------------------------------------------- */

.theme-generic-search-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  max-width: 32rem;
}

.theme-generic-search-form input[type="search"] {
  flex: 1 1 12rem;
  min-width: 0;
  padding: 0.5rem 0.75rem;
  border: 1px solid color-mix(in srgb, var(--theme-text) 20%, transparent);
  border-radius: var(--theme-button-radius, 8px);
  font: inherit;
}

.theme-generic-search-form button {
  padding: 0.5rem 1rem;
  font: inherit;
  font-weight: 600;
  border: 0;
  border-radius: var(--theme-button-radius, 8px);
  background: var(--theme-primary, #2563eb);
  color: #fff;
  cursor: pointer;
}

.theme-generic-form {
  max-width: 32rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.theme-generic-form-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.9rem;
}

.theme-generic-form-field input {
  padding: 0.45rem 0.6rem;
  border: 1px solid color-mix(in srgb, var(--theme-text) 20%, transparent);
  border-radius: 8px;
  font: inherit;
}

/* -------------------------------------------------------------------------- */
/* domain_* placeholders                                                      */
/* -------------------------------------------------------------------------- */

.theme-generic-note {
  font-size: 0.95rem;
  line-height: 1.5;
  padding: 0.75rem 1rem;
  background: color-mix(in srgb, var(--theme-text) 5%, transparent);
  border-radius: 8px;
  margin-top: 0.75rem;
}

/* -------------------------------------------------------------------------- */
/* SaaS chatbot (shell)                                                        */
/* -------------------------------------------------------------------------- */

.theme-block-saas-chatbot {
  min-height: 3rem;
  padding: 1rem 0.5rem;
  border: 1px dashed color-mix(in srgb, var(--theme-primary) 30%, transparent);
  border-radius: var(--theme-radius, 10px);
}

/* -------------------------------------------------------------------------- */
/* Tabellen in tekst (aangevuld door ssr-baseline.js)                        */
/* -------------------------------------------------------------------------- */

.theme-baseline-table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  margin: 0.75rem 0 1.25rem;
  outline: none;
}

.theme-baseline-table-scroll:focus-visible {
  outline: 2px solid var(--theme-primary, #2563eb);
  outline-offset: 2px;
}

.entry-content table,
.theme-block-text-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95em;
}

.entry-content th,
.entry-content td,
.theme-block-text-body th,
.theme-block-text-body td {
  border: 1px solid color-mix(in srgb, var(--theme-text) 14%, transparent);
  padding: 0.45rem 0.55rem;
  text-align: start;
}

/* -------------------------------------------------------------------------- */
/* Header / footer (partials header.php / footer.php)                         */
/* -------------------------------------------------------------------------- */

.theme-header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--theme-width, 1120px);
  margin: 0 auto;
  padding: 0.75rem clamp(12px, 4vw, 16px);
}

.theme-header-brand img {
  max-height: 48px;
  width: auto;
  display: block;
}

.theme-header-nav-list,
.hc-menu-root {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  align-items: center;
}

.theme-header-nav-item a,
.hc-menu-item > a {
  color: var(--theme-text, inherit);
  text-decoration: none;
}

.theme-header-nav-item a:hover {
  text-decoration: underline;
}

.theme-header-nav-submenu,
.hc-menu-submenu {
  list-style: none;
  margin: 0.25em 0 0;
  padding: 0.5rem 0.75rem;
  min-width: 10rem;
  background: var(--theme-section-bg, #fff);
  border: 1px solid color-mix(in srgb, var(--theme-text) 12%, transparent);
  border-radius: var(--theme-radius, 8px);
}

.theme-header-cta,
.lte-header-cta--desktop,
.lte-theme-btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: var(--theme-button-radius, 8px);
  background: var(--theme-primary, #2563eb);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.site-footer .theme-footer-inner,
.theme-block-footer .theme-footer-inner {
  max-width: var(--theme-width, 1120px);
  margin: 0 auto;
  padding: 1.5rem clamp(12px, 4vw, 16px);
}

.site-footer,
.theme-block-footer {
  border-top: 1px solid color-mix(in srgb, var(--theme-text) 10%, transparent);
  background: var(--theme-section-bg, transparent);
}

.theme-footer-nav a {
  color: var(--theme-primary, #2563eb);
  text-decoration: none;
}

.theme-footer-links,
.lte-footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  justify-content: center;
}

.theme-footer-copy {
  display: block;
  text-align: center;
  margin-top: 1rem;
  font-size: 0.875rem;
  opacity: 0.9;
}

.lte-footer-cols {
  margin-bottom: 1rem;
}

/* -------------------------------------------------------------------------- */
/* Tekst (text.php) + rich content                                            */
/* -------------------------------------------------------------------------- */

.theme-block-text .theme-block-text-title {
  font-family: var(--theme-heading-font, system-ui, sans-serif);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.75rem;
  color: var(--theme-text, inherit);
}

.theme-block-text .entry-content a,
.theme-block-text .theme-block-text-body a,
.lte-rich a {
  color: var(--theme-link-color, var(--theme-primary, #2563eb));
  text-underline-offset: 0.15em;
}

.theme-block-text .entry-content ul,
.theme-block-text .theme-block-text-body ul {
  padding-left: 1.25em;
  margin: 0 0 1em;
}

/* -------------------------------------------------------------------------- */
/* Custom HTML (prose, geen .lte builder-shell)                                 */
/* -------------------------------------------------------------------------- */

.theme-block-custom-html {
  line-height: 1.65;
  max-width: var(--theme-width, 1120px);
  margin: 0 auto;
}

.theme-block-custom-html a {
  color: var(--theme-link-color, var(--theme-primary, #2563eb));
}

.theme-block-custom-html table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95em;
  margin: 0.75em 0 1em;
}

.theme-block-custom-html th,
.theme-block-custom-html td {
  border: 1px solid color-mix(in srgb, var(--theme-text) 14%, transparent);
  padding: 0.45rem 0.55rem;
}

/* -------------------------------------------------------------------------- */
/* Download (download.php) — publiek: lte-* markup                            */
/* -------------------------------------------------------------------------- */

.lte-download-block .lte-download-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.lte-download-row {
  border-color: color-mix(in srgb, var(--theme-text) 10%, transparent) !important;
}

.lte-download-row-icon {
  color: var(--theme-primary, #2563eb);
}

.lte-download-row-label {
  color: var(--theme-text, inherit);
}

.lte-download-row-desc {
  display: block;
  font-size: 0.9em;
  opacity: 0.9;
  margin-top: 0.2em;
}

.lte-download-desc {
  line-height: 1.6;
  margin-bottom: 1rem;
  color: var(--theme-text, inherit);
}

/* -------------------------------------------------------------------------- */
/* Quote / popup (SSR-fragmenten in _generic.php)                             */
/* -------------------------------------------------------------------------- */

.lte-quote-preview blockquote {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.55;
  color: var(--theme-text, inherit);
  font-style: italic;
}

.lte-quote-preview .card {
  border-radius: var(--theme-radius, 12px);
  border: 1px solid color-mix(in srgb, var(--theme-text) 10%, transparent);
}

.lte-popup-preview {
  margin: 1rem 0;
}

.lte-popup-chip {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0.5rem;
}

.lte-popup-card {
  position: relative;
  z-index: 1;
  max-width: 28rem;
  margin: 0 auto;
  padding: 1.25rem 1.5rem 1.5rem;
  background: var(--theme-section-bg, #fff);
  border-radius: var(--theme-radius, 12px);
  box-shadow: 0 20px 50px color-mix(in srgb, #000 18%, transparent);
  color: var(--theme-text, inherit);
}

.lte-popup-card h3 {
  margin: 0 0 0.5rem;
  font-family: var(--theme-heading-font, inherit);
  font-size: 1.15rem;
}

.lte-popup-close {
  position: absolute;
  top: 0.35rem;
  right: 0.5rem;
  background: none;
  border: 0;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--theme-text, inherit);
  opacity: 0.6;
}

.lte-popup-close:hover {
  opacity: 1;
}

.lte-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 1040;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: color-mix(in srgb, #0f172a 35%, transparent);
  backdrop-filter: blur(2px);
}

/* -------------------------------------------------------------------------- */
/* Header: topbalk, zoeken, mobiel paneel (header.php)                        */
/* Zware interactie = platform-JS; hier basis lay-out + contrast.             */
/* -------------------------------------------------------------------------- */

.lte-header-topbar {
  font-size: 0.9rem;
  border-bottom: 1px solid color-mix(in srgb, var(--theme-text) 8%, transparent);
}

.lte-header-topbar-inner {
  min-height: 2.2rem;
}

.lte-header-topbar-item {
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.lte-header-topbar-item:hover {
  text-decoration: underline;
}

.lte-header-search-form--bar,
.lte-header-search-form--menu {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.lte-header-search-input {
  min-width: 0;
  flex: 1 1 8rem;
  padding: 0.4rem 0.55rem;
  border: 1px solid color-mix(in srgb, var(--theme-text) 18%, transparent);
  border-radius: var(--theme-radius, 8px);
  font: inherit;
}

.lte-header-cta--mobile {
  margin-top: 0.5rem;
}

.lte-mobile-menu-toggle .navbar-toggler-icon {
  width: 1.25em;
  height: 1.25em;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='currentColor' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='currentColor' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}

.hc-menu-mobile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.5rem 0.25rem 0.75rem;
  border-bottom: 1px solid color-mix(in srgb, var(--theme-text) 10%, transparent);
}

.hc-menu-mobile-title {
  font-weight: 600;
  flex: 1;
  text-align: center;
}

.hc-menu-mobile-body {
  padding: 0.75rem 0 0;
  max-height: 70vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* Overlay zichtbaarheid/positie: zie hark-baseline theme.css + public-interactions.js
   (mobile-menu-open op .lte-preview-page). Niet forceren met display hier — vermijdt conflict. */
.hc-menu-overlay {
  z-index: 1000;
  background: color-mix(in srgb, #0f172a 45%, transparent);
}

.hc-menu-root .hc-menu-item.has-children > a::after {
  content: '›';
  display: inline-block;
  margin-left: 0.25em;
  opacity: 0.5;
  font-size: 0.9em;
  vertical-align: middle;
}

.theme-header-brand-text {
  margin-left: 0.5rem;
  font-weight: 600;
  color: var(--theme-text, inherit);
}

/* -------------------------------------------------------------------------- */
/* Accordion inner (accordion.php)                                            */
/* -------------------------------------------------------------------------- */

.theme-accordion-inner {
  max-width: var(--theme-width, 1120px);
  margin: 0 auto;
}

/* -------------------------------------------------------------------------- */
/* SaaS chatbot variant                                                       */
/* -------------------------------------------------------------------------- */

.theme-block-saas-chatbot--integrated {
  min-height: 4rem;
}
