/* Christa Dohmen redesign (nov 2026), Allround Web.
   Kleuren, lettertypes, maten en animaties staan in Elementor (kit en widgets). Hier alleen wat Elementor niet kan. */

/* Maatvoering uit het ontwerp, gebruikt in Elementor-velden als var(--cd-marge) en var(--cd-sectie) */
:root { --cd-marge: clamp(20px, 5vw, 72px); --cd-sectie: clamp(64px, 8.3vw, 120px); }

/* Tekst zoals in het ontwerp (Hello Elementor zet antialiased, dat oogt dunner) */
body { -webkit-font-smoothing: auto; -moz-osx-font-smoothing: auto; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

/* Sitebreed: pijl in een knop schuift mee bij hover, actief menu-item gedimd */
.elementor-button-icon { transition: transform .25s cubic-bezier(.22, 1, .36, 1); }
.elementor-button:hover .elementor-button-icon { transform: translateX(6px); }
.elementor-nav-menu--main .elementor-item.elementor-item-active { opacity: .65; }

/* Eindblok in de footer: op home wit (ontwerp), elders tint (instelling in Elementor) */
body.home .elementor-location-footer .elementor-element.cd-eind.cd-eind { background-color: #fff; }

/* Doorlopende werkenstrook: Loop Grid als band die rondloopt (JS verdubbelt de items en start de beweging) */
.cd-strook .elementor-loop-container { display: flex !important; align-items: flex-start; width: max-content; gap: 0 !important; }
.cd-strook .e-loop-item { flex: none; margin-right: clamp(48px, 9vw, 140px); }
.cd-strook.cd-loopt .elementor-loop-container { animation: cd-strook 90s linear infinite; }
.cd-strook:focus-within .elementor-loop-container { animation-play-state: paused; }
.elementor .cd-strook .e-con > .elementor-widget.cd-strook-meta { max-width: 36ch; }
@keyframes cd-strook { to { transform: translate3d(-50%, 0, 0); } }

/* Zwevende belknop (markup uit functions.php) */
.cd-belhulp { position: fixed; right: 16px; bottom: 16px; z-index: 900; display: flex; background: #fff; box-shadow: 0 4px 18px rgba(0, 0, 0, .16); opacity: 0; transform: translateY(14px); pointer-events: none; transition: opacity .3s ease-out, transform .35s cubic-bezier(.65, 0, .35, 1); font: 600 15px/1.5 "Open Sans", sans-serif; }
.cd-belhulp.cd-zichtbaar { opacity: 1; transform: none; pointer-events: auto; }
.cd-belhulp a { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 16px; color: #000; }
.cd-belhulp svg { width: 20px; height: 20px; color: #03f; }
.cd-belhulp.cd-belhulp button { width: 44px; padding: 0; border: 0; border-radius: 0; background: #F2F5FF; color: #000; font-size: 18px; cursor: pointer; }
.cd-belhulp a:hover, .cd-belhulp.cd-belhulp button:hover { color: #03f; }
@media (min-width: 1360px) {
  .cd-belhulp { top: 186px; bottom: auto; right: 0; flex-direction: column; }
  .cd-belhulp a { width: 52px; height: 52px; min-height: 0; padding: 0; justify-content: center; }
  .cd-belhulp a span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .cd-belhulp.cd-belhulp button { width: 52px; height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  .cd-strook { overflow-x: auto; }
  .cd-strook.cd-loopt .elementor-loop-container { animation: none; }
}
