/*
Theme Name: Kartbaan Winterswijk
Theme URI: https://kartbaanwinterswijk.nl/
Author: Kartbaan Winterswijk
Description: Eigen responsive thema op basis van het goedgekeurde Kartbaan Winterswijk-ontwerp.
Version: 1.0.27
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: kartbaan-winterswijk
*/

:root {
  --kbw-bg: #111719;
  --kbw-panel: #182124;
  --kbw-text: #f8f6f0;
  --kbw-muted: #cbd4d1;
  --kbw-accent: #ff753c;
  --kbw-green: #d7e5cd;
}

html { scroll-behavior: smooth; }
body.kbw-theme { margin: 0; background: var(--kbw-bg); color: var(--kbw-text); font-family: Arial, sans-serif; }
body.kbw-theme.admin-bar .kbw-site-header { top: 32px; }
.kbw-site-header *, .kbw-site-footer * { box-sizing: border-box; }
.kbw-site-header {
  position: sticky; top: 0; z-index: 9999; min-height: 74px; display: flex;
  align-items: center; gap: 18px; padding: 13px clamp(18px, 4vw, 42px);
  background: rgba(17, 23, 25, .96); border-bottom: 1px solid #344044;
  backdrop-filter: blur(12px);
}
.kbw-site-logo { display: block; width: min(210px, 45vw); height: auto; }
.kbw-site-header .kbw-language { margin-left: auto; color: #fff; text-decoration: none; font-weight: 800; font-size: 13px; }
.kbw-language-flag { display: inline-block; width: 20px; height: 13px; margin-right: 5px; vertical-align: -2px; background: linear-gradient(#000 0 33.33%, #d00 33.33% 66.66%, #fc0 66.66%); }
.kbw-menu { position: relative; }
.kbw-menu summary { display: flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; color: #fff; font-weight: 800; }
.kbw-menu summary::-webkit-details-marker { display: none; }
.kbw-menu nav { position: absolute; right: 0; top: calc(100% + 18px); width: min(410px, calc(100vw - 28px)); max-height: calc(100vh - 105px); overflow: auto; padding: 14px; background: #172124; border: 1px solid #425054; border-radius: 8px; box-shadow: 0 18px 50px #0009; }
.kbw-menu ul { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; margin: 0; padding: 0; list-style: none; }
.kbw-menu a { display: block; padding: 9px 8px; color: #fff; text-decoration: none; font-size: 14px; border-radius: 4px; }
.kbw-menu a:hover, .kbw-menu a:focus-visible { background: #263438; color: #ffae80; }
.kbw-main { min-height: 55vh; width: 100%; max-width: none; padding: 0; overflow-x: clip; }

/* Keep every approved page banner aligned to the same viewport width. Source
   pages use one of these three top-level hero patterns. Their own inner
   typography and imagery stay page-specific. */
.kbw-main > #kw-home,
.kbw-main > .intro,
.kbw-main > .hero {
  width: 100vw;
  max-width: none;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  border-radius: 0;
}

/* The homepage hero grows on taller desktop viewports. Let the 6D hero follow
   that same visual rhythm instead of remaining capped at the legacy 416px. */
@media (min-width: 641px) {
  .kbw-main > .intro { min-height: clamp(416px, 57.8vh, 560px); }
}

/* Legacy source sheets set their text colour on body. body.kbw-theme has a
   more specific dark-theme colour, so explicitly restore contrast inside
   the shared light card pattern. */
.kbw-main .cards article { color: #172326; }
.kbw-main .cards article h2,
.kbw-main .cards article h3,
.kbw-main .cards article p,
.kbw-main .cards article li { color: inherit; }
/* A legacy footer is injected site-wide by an existing snippet/plugin. The theme
   provides the approved footer itself, so suppress only that duplicate body child. */
body.kbw-theme > footer.kbw-footer { display: none !important; }
.kbw-editor-content { width: min(1120px, calc(100% - 40px)); margin: 40px auto; padding: clamp(22px, 4vw, 52px); background: #f4f2e9; color: #142325; border-radius: 10px; }
.kbw-editor-content a { color: #a83b10; }
.kbw-site-footer { padding: 46px clamp(20px, 5vw, 64px) 18px; background: #101719; color: #d9e0de; }
.kbw-footer-grid { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 30px; max-width: 1400px; margin: 0 auto; }
.kbw-site-footer h2, .kbw-site-footer h3 { color: #fff; margin: 0 0 15px; }
.kbw-site-footer h2 { font-size: 21px; }
.kbw-site-footer h3 { font-size: 15px; }
.kbw-site-footer p, .kbw-site-footer a { color: #c6cfcc; font-size: 13px; line-height: 1.65; }
.kbw-site-footer a { display: block; margin: 5px 0; text-decoration: none; }
.kbw-site-footer a:hover, .kbw-site-footer a:focus-visible { color: #ffae80; }
.kbw-footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; max-width: 1400px; margin: 34px auto 0; padding-top: 18px; border-top: 1px solid #344044; color: #aeb9b6; font-size: 12px; }
.kbw-socials { display: flex; flex-wrap: wrap; gap: 12px; }
.kbw-socials a { color: #ffae80; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 900px) { .kbw-footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 782px) { body.kbw-theme.admin-bar .kbw-site-header { top: 46px; } }
@media (max-width: 620px) {
  .kbw-site-header { min-height: 64px; padding: 11px 16px; }
  .kbw-site-logo { width: min(170px, 44vw); }
  .kbw-menu nav { top: calc(100% + 14px); }
  .kbw-menu ul, .kbw-footer-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Use the header switcher, with the native widget retained as a fallback. */
body:has(.kbw-language-ready) .weglot-container.wg-default{display:none!important}
.kbw-language[lang="nl"] .kbw-language-flag{background:linear-gradient(#ae1c28 0 33.33%,#fff 33.33% 66.66%,#21468b 66.66%)}
