/* Watze van der Wal – aanvullingen op theme.json.
   Maten gemeten op de oude GridStack-site (berekende stijlen, 1440px breed). */

/* ---------- Basis ---------- */
body { letter-spacing: 1px; }
.wp-site-blocks > * + * { margin-block-start: 0; }
.wp-block-post-content p, .wp-block-post-content li { margin-block: 0 20px; }
.wp-block-post-content h1, .wp-block-post-content h2, .wp-block-post-content h3 { margin-block: 0 30px; }
.wp-block-post-content h4 { margin-block: 0 15px; }
.wp-block-post-content h5 { margin-block: 0 20px; }
.wp-block-post-content h6 { margin-block: 0; color: var(--wp--preset--color--contrast); }
.wp-block-post-content blockquote { color: var(--wp--preset--color--accent-1); }
.aligncenter, img.aligncenter { display: block; margin-inline: auto; }
.alignleft { float: left; margin: 0 20px 10px 0; }
.alignright { float: right; margin: 0 0 10px 20px; }

/* ---------- Header ---------- */
.watze-header { background: rgba(255,255,255,.95); }
.watze-logo { max-width: 260px; }
.watze-header .wp-block-navigation { font-size: 12px; }

/* ---------- Paginakop (GridStack 'pagetitle') ---------- */
.watze-kop { position: relative; overflow: hidden; padding: 50px 0 40px; background-size: cover; background-position: center; }
.watze-kop-overlay { position: absolute; inset: 0; }
.watze-kop-binnen { position: relative; max-width: 940px; margin: 0 auto; padding: 0 var(--wp--style--root--padding-right, 0); box-sizing: content-box; }
.watze-kop-titel, h1.watze-kop-titel, .wp-block-post-title.watze-kop-titel, .wp-block-query-title.watze-kop-titel {
	font-size: 56px; line-height: 58px; font-weight: 300; letter-spacing: 0; color: #000; margin: 0 0 20px; max-width: 940px; }
.watze-kop-ondertitel { font-size: 24px; line-height: 38px; font-weight: 300; color: rgba(0,0,0,.5); margin: 0 0 20px; max-width: 780px; }
.watze-kop.is-licht .watze-kop-titel { color: #fff; }
.watze-kop.is-licht .watze-kop-ondertitel { color: rgba(255,255,255,.7); }
@media (max-width: 767px) {
	.watze-kop-titel, h1.watze-kop-titel, .wp-block-post-title.watze-kop-titel { font-size: 36px; line-height: 40px; }
	.watze-kop-ondertitel { font-size: 18px; line-height: 32px; }
	.watze-kop { padding: 25px 0 15px; }
}

/* ---------- Filterknoppen ---------- */
.watze-filters { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 4px; }
.watze-filters button { font: inherit; font-size: 12px; font-weight: 300; text-transform: uppercase; letter-spacing: 2px; color: var(--wp--preset--color--accent-4); background: none; border: 1px solid transparent; padding: 7px 16px; cursor: pointer; line-height: 1.4; }
.watze-filters button:hover { color: var(--wp--preset--color--contrast); }
.watze-filters button.is-active { border-color: var(--wp--preset--color--accent-3); color: var(--wp--preset--color--contrast); }

/* ---------- Portfolio-raster ---------- */
.watze-raster { margin-top: 30px !important; }
.watze-raster .wp-block-post-template.is-layout-grid { gap: 4px; }
.watze-raster .wp-block-post { position: relative; overflow: hidden; margin: 0; }
.watze-raster .wp-block-post[hidden] { display: none; }
.watze-raster .watze-tegel-foto { margin: 0; }
.watze-raster .watze-tegel-foto img { transition: transform .6s ease; }
.watze-raster .watze-tegel-titel { position: absolute; inset: 0; margin: 0; display: flex; align-items: flex-end; padding: 18px; font-size: 18px; font-weight: 300; line-height: 1.3; letter-spacing: 1px; background: linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,0) 60%); opacity: 0; transition: opacity .4s ease; pointer-events: none; }
.watze-raster .watze-tegel-titel a { color: #fff; }
.watze-raster .wp-block-post:hover .watze-tegel-titel,
.watze-raster .wp-block-post:focus-within .watze-tegel-titel { opacity: 1; }
.watze-raster .wp-block-post:hover img { transform: scale(1.03); }
@media (max-width: 1100px) { .watze-raster .wp-block-post-template.is-layout-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 800px)  { .watze-raster .wp-block-post-template.is-layout-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px)  { .watze-raster .wp-block-post-template.is-layout-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .watze-raster .watze-tegel-titel { opacity: 1; font-size: 14px; padding: 10px; } }

/* ---------- Galerijen (GridStack: 3 kolommen, 426x351 bijgesneden, 12px tussenruimte) ---------- */
.wp-block-gallery.watze-galerij { gap: 12px !important; }
.wp-block-gallery.watze-galerij.columns-3 > .wp-block-image { width: calc((100% - 24px) / 3) !important; flex-grow: 0 !important; }
.wp-block-gallery.watze-galerij > .wp-block-image { background: #222; }
.wp-block-gallery.watze-galerij > .wp-block-image img { aspect-ratio: 426 / 351; object-fit: cover; }
.wp-block-gallery.watze-galerij figcaption { font-size: 10px !important; line-height: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; padding: 10px 20px !important; opacity: 0; transition: opacity .3s; }
.wp-block-gallery.watze-galerij > .wp-block-image:hover figcaption { opacity: 1; }
@media (max-width: 600px) { .wp-block-gallery.watze-galerij.columns-3 > .wp-block-image { width: calc((100% - 12px) / 2) !important; } }

/* ---------- Sieraad / bericht: navigatie rechts ---------- */
.watze-sieraad-nav { gap: 18px; font-size: 12px; text-transform: uppercase; letter-spacing: 2px; flex-shrink: 0; }
.watze-sieraad-nav a { color: var(--wp--preset--color--accent-4); }
.watze-sieraad-nav a:hover { color: var(--wp--preset--color--accent-1); }
.watze-terug { margin: 0; }
.watze-sieraad .wp-block-image { margin-bottom: 4px; }
.watze-sieraad .wp-block-gallery { gap: 4px; }
.watze-bericht-datum { font-size: 12px; text-transform: uppercase; letter-spacing: 3px; color: var(--wp--preset--color--accent-4); margin-bottom: 6px; }
.watze-bericht-termen { font-size: 12px; text-transform: uppercase; letter-spacing: 2px; margin-top: 20px; }

/* ---------- Nieuwsoverzicht ---------- */
.watze-nieuws-item { align-items: flex-start; }
.watze-datum { flex: 0 0 72px; width: 72px; height: 72px; border: 1px solid var(--wp--preset--color--accent-3); border-radius: 50%; text-align: center; display: flex; flex-direction: column; justify-content: center; }
.watze-datum-dag { font-size: 28px; line-height: 28px; font-weight: 300; color: var(--wp--preset--color--tekst); letter-spacing: 0; margin: 0 !important; }
.watze-datum-maand { font-size: 9px; line-height: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--wp--preset--color--contrast); margin: 2px 0 0 !important; }
.watze-labels { margin: 0 0 8px; }
.watze-labels a { display: inline-block; background: #ccc; color: #fff; font-size: 9px; line-height: 16px; padding: 0 6px; margin-right: 2px; letter-spacing: 1px; }
.watze-labels a:hover { background: var(--wp--preset--color--accent-1); text-decoration: none; }
.watze-nieuws-titel { font-size: 36px; line-height: 40px; font-weight: 300; margin: 0 0 10px; }
.watze-nieuws-titel a { color: var(--wp--preset--color--contrast); }
.watze-nieuws .wp-block-post-excerpt__more-link { display: inline-block; margin-top: 15px; background: var(--wp--preset--color--accent-1); color: #fff; font-size: 12px; font-weight: 300; text-transform: uppercase; letter-spacing: 2px; padding: 6px 14px; line-height: 20px; }
.watze-nieuws .wp-block-post-excerpt__more-link:hover { background: var(--wp--preset--color--contrast); text-decoration: none; }

/* ---------- Zijbalken en widgets ---------- */
.watze-zijbalk { font-size: 14px; }
.watze-widget { margin-bottom: 50px; }
.watze-widget-titel { font-size: 13px !important; line-height: 26px !important; font-weight: 700 !important; text-transform: uppercase; letter-spacing: 1px !important; color: var(--wp--preset--color--contrast); border-bottom: 1px solid var(--wp--preset--color--accent-3); padding-bottom: 14px; margin: 0 0 16px !important; max-width: 280px; }
.watze-social-iconen img { display: block; margin: 0 auto 10px; height: auto; }
.watze-zijbalk iframe { max-width: 100%; }
.watze-tabs { margin-bottom: 50px; }
.watze-tabs-knoppen { display: flex; }
.watze-tabs-knoppen button { flex: 1; font: inherit; font-size: 9px; text-transform: uppercase; letter-spacing: 1px; border: 0; padding: 8px; background: #f2f2f2; color: #999; cursor: pointer; }
.watze-tabs-knoppen button[aria-selected=true] { background: var(--wp--preset--color--accent-1); color: #fff; }
.watze-tabs-lijst { list-style: none; margin: 10px 0 0; padding: 0; }
.watze-tabs-lijst li { border-bottom: 1px solid #eee; padding: 10px 0; }
.watze-tabs-lijst a { display: flex; gap: 14px; align-items: flex-start; color: var(--wp--preset--color--contrast); font-size: 13px; line-height: 18px; }
.watze-tabs-lijst img { width: 42px; height: 60px; object-fit: cover; flex: 0 0 42px; }

/* ---------- Footer ---------- */
.watze-footer .watze-widget-titel { color: #fff; border-bottom-color: #444; }
.watze-footer .textwidget { line-height: 32px; }
.watze-footer a { color: #888; }
.watze-footer iframe { width: 100%; max-width: 280px; background: #fff; }

/* ---------- Contactformulier (CF7, opmaak zoals GridStack) ---------- */
.wpcf7 .formrow { display: flex; flex-wrap: wrap; gap: 0 24px; }
.wpcf7 .one-half { flex: 1 1 200px; }
.wpcf7 label { display: block; font-size: 10px; font-weight: 300; text-transform: uppercase; letter-spacing: 2px; color: var(--wp--preset--color--accent-4); margin-bottom: 4px; }
.wpcf7 input[type=text], .wpcf7 input[type=email], .wpcf7 textarea { width: 100%; box-sizing: border-box; font: inherit; color: var(--wp--preset--color--contrast); border: 1px solid #e3e3e3; padding: 10px; margin-bottom: 18px; background: rgba(100,100,100,.09); }
.wpcf7 input:focus, .wpcf7 textarea:focus { outline: 2px solid var(--wp--preset--color--accent-1); outline-offset: 0; }
.wpcf7 textarea { height: 190px; }
.wpcf7 .wpcf7-list-item { margin: 0; }
.wpcf7 .wpcf7-acceptance label { text-transform: none; letter-spacing: 1px; font-size: 16px; line-height: 2em; color: var(--wp--preset--color--tekst); }
.wpcf7 input[type=submit] { margin-top: 16px; background: transparent; color: var(--wp--preset--color--accent-4); border: 1px solid #e3e3e3; font: inherit; font-size: 12px; font-weight: 300; text-transform: uppercase; letter-spacing: 2px; padding: 10px; cursor: pointer; }
.wpcf7 input[type=submit]:hover { background: var(--wp--preset--color--accent-1); color: #fff; }
table.openingstijden { margin-bottom: 22px; border: 0; }
.openingstijden td { padding: 0 10px 0 0; border: 0; }
.watze-tabs-lijst small { display: block; font-size: 10px; color: #999; text-transform: lowercase; }

/* h6 in teksten: GridStack had geen hoofdletters (TT5 wel) */
.wp-block-post-content h6, h6 { text-transform: none; letter-spacing: 1px; font-weight: 300; }

/* Social-iconen in teksten: grijze rondjes zoals tw-social */
.wp-block-post-content .wp-block-social-links.is-style-logos-only { gap: 6px; }
.wp-block-post-content .wp-block-social-links.is-style-logos-only .wp-social-link { background: #eee; color: #222; border-radius: 50%; padding: 6px; }
.wp-block-post-content .wp-block-social-links.is-style-logos-only .wp-social-link svg { width: 16px; height: 16px; }

/* Parallax-band (GridStack alignparallax): 940x564, vaste achtergrond */
.watze-parallax { height: 564px; margin: 40px 0 30px; background-size: cover; background-position: 50% 50%; background-attachment: fixed; }
@media (max-width: 900px), (hover: none) { .watze-parallax { background-attachment: scroll; height: 320px; } }

/* Meer laden */
.watze-meer { text-align: center; margin: 40px auto 0; position: relative; max-width: 800px; }
.watze-meer::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid var(--wp--preset--color--accent-3); }
.watze-meer button { position: relative; background: #fff; border: 1px solid var(--wp--preset--color--accent-3); font: inherit; font-size: 10px; text-transform: uppercase; letter-spacing: 2px; color: #777; padding: 8px 20px; cursor: pointer; }
.watze-meer button:hover { color: var(--wp--preset--color--accent-1); }

/* ---------- Kop met wisselende dia's (GridStack titlerotator: 5s pauze, 1,5s fade) ---------- */
.watze-kop-dias { display: grid; }
.watze-kop-dia { grid-area: 1 / 1; max-width: 760px; }
.watze-kop-titel mark { background: none; color: var(--wp--preset--color--accent-1); }
.watze-kop.heeft-dias .watze-kop-dia { opacity: 0; animation: watze-dia 19.5s infinite; }
.watze-kop.heeft-dias .watze-kop-dia:nth-child(2) { animation-delay: 6.5s; }
.watze-kop.heeft-dias .watze-kop-dia:nth-child(3) { animation-delay: 13s; }
@keyframes watze-dia { 0% { opacity: 0; visibility: visible; } 7.7%, 33.3% { opacity: 1; } 41%, 100% { opacity: 0; } }
.watze-kop-knop { margin: 10px 0 0; }
.watze-kop-knop a { font-size: 12px; text-transform: uppercase; letter-spacing: 2px; padding: 8px 16px; }
.watze-kop-bolletjes { position: absolute; right: 0; top: 10px; display: flex; flex-direction: column; gap: 10px; }
.watze-kop-bolletjes span { width: 8px; height: 8px; border-radius: 50%; border: 1px solid #ccc; animation: watze-bol 19.5s infinite; }
.watze-kop-bolletjes span:nth-child(2) { animation-delay: 6.5s; }
.watze-kop-bolletjes span:nth-child(3) { animation-delay: 13s; }
@keyframes watze-bol { 0%, 33.3% { background: #ccc; } 33.4%, 100% { background: transparent; } }
.watze-kop-binnen { position: relative; }
.watze-kop-ingebed .watze-kop { padding: 50px 0 40px; }
@media (prefers-reduced-motion: reduce) {
	.watze-kop.heeft-dias .watze-kop-dia { animation: none; opacity: 0; }
	.watze-kop.heeft-dias .watze-kop-dia:first-child { opacity: 1; }
	.watze-kop-bolletjes span { animation: none; }
}

/* ---------- Iconen rechts naast de titel (vorige / volgende / overzicht) ---------- */
.watze-titelrij .watze-kop-titel, .watze-bericht-kop .watze-kop-titel { max-width: 80%; }
.watze-iconen { gap: 14px; padding-top: 14px; flex-shrink: 0; }
.watze-iconen a { display: block; width: 26px; height: 26px; font-size: 0; color: transparent; background-position: center; background-size: contain; background-repeat: no-repeat; opacity: .35; }
.watze-iconen a:hover { opacity: .8; }
.watze-iconen .watze-icoon-vorige a { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 26'%3E%3Cpath d='M17 2 6 13l11 11' fill='none' stroke='%23222' stroke-width='1.5'/%3E%3C/svg%3E"); }
.watze-iconen .watze-icoon-volgende a { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 26'%3E%3Cpath d='M9 2l11 11L9 24' fill='none' stroke='%23222' stroke-width='1.5'/%3E%3C/svg%3E"); }
.watze-iconen a.watze-icoon-raster { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 26'%3E%3Cg fill='none' stroke='%23222' stroke-width='1.2'%3E%3Crect x='1' y='1' width='10' height='10'/%3E%3Crect x='15' y='1' width='10' height='10'/%3E%3Crect x='1' y='15' width='10' height='10'/%3E%3Crect x='15' y='15' width='10' height='10'/%3E%3C/g%3E%3C/svg%3E"); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Slideshow (GridStack fullslideshow 1000x600) ---------- */
.wp-block-gallery.watze-slideshow { display: flex !important; flex-wrap: nowrap !important; gap: 0 !important; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; position: relative; margin-top: 20px; }
.wp-block-gallery.watze-slideshow::-webkit-scrollbar { display: none; }
.wp-block-gallery.watze-slideshow > .wp-block-image { flex: 0 0 100% !important; width: 100% !important; margin: 0 !important; scroll-snap-align: start; }
.wp-block-gallery.watze-slideshow > .wp-block-image img { width: 100%; aspect-ratio: 1000 / 600; object-fit: cover; }
.watze-slideshow-wrap { position: relative; }
.watze-slideshow-wrap > button { position: absolute; top: 50%; transform: translateY(-50%); width: 34px; height: 46px; border: 0; background: rgba(255,255,255,.5); cursor: pointer; font-size: 22px; color: #555; z-index: 2; }
.watze-slideshow-wrap > .vorige { left: 0; } .watze-slideshow-wrap > .volgende { right: 0; }
.watze-slideshow-bol { display: flex; justify-content: center; gap: 6px; margin: 12px 0 30px; }
.watze-slideshow-bol button { width: 9px; height: 9px; border-radius: 50%; border: 1px solid #bbb; background: transparent; padding: 0; cursor: pointer; }
.watze-slideshow-bol button[aria-current=true] { background: #bbb; }

/* ---------- Filterarchief: 3 kolommen binnen 940px ---------- */
.watze-raster-3 .wp-block-post-template.is-layout-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 2px; }
@media (max-width: 560px) { .watze-raster-3 .wp-block-post-template.is-layout-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }

/* ---------- Grijs blok onder berichten ---------- */
.watze-bericht-info { background: #f5f5f5; padding: 26px max(20px, calc((100% - 940px) / 2)); display: flex; gap: 60px; font-size: 12px; line-height: 18px; }
.watze-bericht-info h5 { font-size: 10px !important; line-height: 16px !important; margin: 0 0 4px !important; color: #222; }
.watze-bericht-info p { margin: 0; color: #999; }
.watze-bericht-info a { color: #999; }

/* ---------- Paginering als vakjes (GridStack) ---------- */
.wp-block-query-pagination { font-size: 10px; gap: 4px !important; justify-content: flex-start !important; }
.wp-block-query-pagination a, .wp-block-query-pagination span.page-numbers { display: inline-block; min-width: 22px; padding: 4px 8px; background: #eee; color: #777; text-align: center; line-height: 16px; }
.wp-block-query-pagination .page-numbers.current { background: #222; color: #fff; }
.wp-block-query-pagination-numbers { display: flex; gap: 4px; }

/* Titelrij: titel neemt de ruimte, iconen rechts */
.watze-titelrij > .wp-block-group:first-child, .watze-bericht-kop > .wp-block-group:first-child { flex: 1 1 auto; min-width: 0; }
.watze-titelrij .watze-kop-titel, .watze-bericht-kop .watze-kop-titel { max-width: 780px; }

/* WooCommerce-meldingen in GridStack-stijl (grijs, lijn links) */
.wc-block-components-notice-banner, .woocommerce-info, .woocommerce-message { background: #f5f5f5 !important; border: 0 !important; border-top: 3px solid #888 !important; color: #999 !important; font-size: 14px; }
.wc-block-components-notice-banner > svg { fill: #999 !important; background: none !important; }
