/* Smooth scroll overal */
html { scroll-behavior: smooth; }

/* Scroll-offset voor fixed header */
.info-section,
.nieuw-binnen,
.footer-section {
  scroll-margin-top: calc(var(--header-offset) + 16px);
}


/* ===========================
   GLOBAL RESET & BASE
=========================== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body {
  font-family: 'Play', sans-serif;
  background-color: #fff;
  color: #fff; /* Secties die zwart moeten zijn, regelen dit lokaal */
}
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1440px; margin: 0 auto; padding: 0 20px; }


.inputform {
  font-family: 'Play', sans-serif;
}

/* ===========================
   A11Y
=========================== */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,1px,1px); white-space: nowrap; border: 0;
}

/* ===========================
   HEADER / NAVBAR (FIXED)
=========================== */
:root {
  --header-pad-y: 22px;      /* verticale padding */
  --header-offset: 100px;    /* wordt door JS dynamisch gezet */
}

.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: var(--header-pad-y) 0;
  background: transparent;
  transition: background-color .25s ease, box-shadow .25s ease, padding .25s ease;
}
.navbar.scrolled {
  background: rgba(0,0,0,.65);
  -webkit-backdrop-filter: saturate(160%) blur(6px);
  backdrop-filter: saturate(160%) blur(6px);
  box-shadow: 0 6px 20px rgba(0,0,0,.18);
  --header-pad-y: 14px; /* compacter bij scroll */
}
.navbar .container {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: 1440px; margin: 0 auto; /* padding geregeld door .container zelf */
}

/* Logo schaalt netjes */
.logo img { width: clamp(160px, 18vw, 180px); height: auto; }

/* Desktop nav */
.nav-desktop { display: flex; gap: 30px; align-items: center; }
.nav-desktop a {
  color: #fff; text-decoration: none; font-weight: 300; font-size: 16px;
  padding: 10px 14px; transition: background-color .2s ease, color .2s ease;
}
.nav-desktop a:hover, .nav-desktop a.active { background: #747474; color: #fff; }

.icons { display: flex; gap: 1rem; }

/* Toggle (hamburger -> X) */
.menu-toggle {
  display: none; background: transparent; border: 0; cursor: pointer; padding: 6px; line-height: 1;
}
.hamburger-svg { display: block; stroke: #fff; stroke-width: 2; stroke-linecap: round; }
.hamburger-svg .line { transform-origin: 12px 12px; transition: transform .25s ease, opacity .2s ease; }
.menu-toggle.is-open .line.top { transform: translateY(5px) rotate(45deg); }
.menu-toggle.is-open .line.middle { opacity: 0; }
.menu-toggle.is-open .line.bottom { transform: translateY(-5px) rotate(-45deg); }

/* Mobiele overlay + panel */
.nav-overlay {
  position: fixed; inset: 0; z-index: 1050;
  display: grid; place-items: end;
  background: rgba(0,0,0,.55);
  -webkit-backdrop-filter: blur(6px) saturate(160%);
  backdrop-filter: blur(6px) saturate(160%);
  opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s ease;
}
.nav-overlay.is-open { opacity: 1; visibility: visible; }

.nav-panel {
  width: min(88vw, 420px);
  height: 100dvh;
  background: rgba(20,20,20,.9);
  -webkit-backdrop-filter: blur(10px) saturate(180%);
  backdrop-filter: blur(10px) saturate(180%);
  box-shadow: -12px 0 30px rgba(0,0,0,.25);
  transform: translateX(16px);
  opacity: 0;
  transition: transform .28s ease, opacity .28s ease;
  display: flex; flex-direction: column; padding: 22px 22px 28px;
}
.nav-overlay.is-open .nav-panel { transform: none; opacity: 1; }

/* Panel header */
.panel-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.panel-logo { width: 160px; height: auto; }
.panel-close { background: transparent; border: 0; padding: 6px; cursor: pointer; }
.panel-close svg { stroke: #fff; stroke-width: 2; stroke-linecap: round; }

/* Panel links */
.nav-mobile { display: flex; flex-direction: column; margin-top: 28px; gap: 6px; }
.nav-mobile a {
  display: block; color: #fff; text-decoration: none;
  font-size: 20px; font-weight: 600; letter-spacing: .2px;
  padding: 12px 10px; border-radius: 10px;
  transition: background-color .2s ease, transform .08s ease;
}
.nav-mobile a:hover { background: rgba(255,255,255,.08); }
.nav-mobile a:active { transform: translateY(1px); }

/* Call knop onderin */
.panel-call {
  margin-top: auto;
  display: inline-flex; align-items: center; gap: 10px;
  color: #fff; text-decoration: none; font-weight: 600; letter-spacing: .2px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 10px; padding: 12px 14px;
  transition: background-color .2s ease, border-color .2s ease;
}
.panel-call:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.55); }

/* Telefoonknop in header (alleen mobiel/tablet) */
.phone-btn { display: none; color: #fff; text-decoration: none; font-size: 26px; line-height: 1; }
.phone-icon { width: 28px; height: 28px; filter: brightness(0) invert(1); }

/* Responsiveness header */
@media (max-width: 1024px) {
  .nav-desktop { display: none; }
  .menu-toggle { display: inline-flex; }
  .phone-btn { display: inline-flex; align-items: center; }
}
@media (min-width: 1025px) {
  .nav-overlay { display: none; }
  .phone-btn { display: none !important; }
}
@media (max-width: 480px) { .logo img { width: 150px; } }

/* Body lock wanneer menu open is */
body.menu-open { overflow: hidden; }

/* ===========================
   HERO
=========================== */
/* Basis: desktop exact centreren over volledige viewport (header overlapt visueel bovenrand) */
.hero {
  background: linear-gradient(rgba(0,0,0,.5), rgba(0,0,0,.5)), url('/images/backgroundhome.jpg') no-repeat center/cover;
  min-height: 100dvh;            /* dynamic vh → beter bij browser UI */
  width: 100%;
  padding-top: 0;
}
.hero .container {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  min-height: 100dvh;            /* desktop: puur 100vh/dvh → perfect midden */
}

/* Tablet & mobiel: compenseer voor de fixed header zodat niets optisch te hoog hangt */
@media (max-width: 1024px) {
  .hero .container {
    min-height: calc(100dvh - var(--header-offset));
  }
}

.hero-content { max-width: 600px; text-align: left; }
.hero-content h1 { font-size: 58px; margin: 0; font-weight: 700; line-height: 1.05; }
.hero-content p { margin-top: 10px; font-size: 16px; line-height: 1.4; }
.hero-buttons { margin-top: 20px; display: flex; gap: 20px; }

/* HERO responsive */
@media (max-width: 1200px) { .hero-content h1 { font-size: 48px; } }
@media (max-width: 992px)  { .hero-content h1 { font-size: 40px; } }
@media (max-width: 576px)  { .hero-content h1 { font-size: 34px; } }

/* ===========================
   BUTTONS
=========================== */
.btn { text-decoration: none; padding: 10px 20px; font-weight: bold; transition: .3s; border: 0; outline: 0; }
a.btn { text-decoration: none; }

/* Primaire knop */
.btn.btn-primary {
  background-color: #747474; color: #fff; transition: background-color .2s ease, transform .12s ease;
}
.btn.btn-primary:hover, .btn.btn-primary:focus-visible { background-color: #5B5B5B; color: #fff; }
.btn.btn-primary:active { transform: translateY(1px); }

/* Secundaire knop */
.btn.btn-secondary { background: transparent; border: 1px solid #fff; color: #fff; }
.btn.btn-secondary:hover { background: #fff; color: #000; border-color: #fff; }

/* ===========================
   INFO-SECTIE
=========================== */
.info-section { padding: 120px 0; }
.info-section-inner { display: flex; justify-content: space-between; align-items: stretch; gap: 2rem; }
.info-image { max-width: 50%; }
.info-image img { width: 100%; height: auto; }
.info-content { max-width: 50%; color: #000; display: flex; flex-direction: column; gap: 20px; }
.info-content h1 { font-size: 45px; }

/* Knoppencontainer – nooit full-width */
.btn-aanbod {
  display: inline-flex; align-items: center; gap: 20px;
  width: auto; background: transparent !important; padding: 0 !important; border: 0 !important; box-shadow: none !important;
}

/* INFO responsive */
@media (max-width: 992px) {
  .info-section-inner { flex-direction: column; gap: 24px; }
  .info-image, .info-content { max-width: 100%; }
  .info-content h1 { font-size: 36px; }
}
@media (max-width: 576px) { .info-content h1 { font-size: 30px; } }

/* ===========================
   NIEUW BIJ ONS BINNEN (cards)
=========================== */
.nieuw-binnen { padding: 80px 0 40px; background: #fff; color: #111; }
.nieuw-binnen .sectie-titel{
  text-align:center;
  font-size:56px;            /* desktop basis (matcht .hero-content h1) */
  line-height:1.05;
  margin:0 0 28px;
  color:#111;
}
/* Grid */
.nieuw-binnen .cards-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 32px; }

/* Card */
.nieuw-binnen .car-card {
  display: flex; flex-direction: column; text-decoration: none; color: inherit; overflow: hidden; background: #efefef;
}
.nieuw-binnen .car-card.is-hidden { display: none; }

/* Foto */
.nieuw-binnen .car-photo { position: relative; overflow: hidden; }
.nieuw-binnen .car-photo img { width: 100%; height: auto; transition: transform .35s ease; }
.nieuw-binnen .car-card:hover .car-photo img { transform: scale(1.03); }

/* Info-balk */
.nieuw-binnen .car-info {
  background: #e9e9e9; padding: 28px; display: grid; gap: 12px; justify-items: start;
}
.nieuw-binnen .car-title { margin: 0; font-size: 28px; font-weight: 700; color: #111; }
.nieuw-binnen .car-type { margin-top: 2px; font-size: 20px; font-weight: 700; line-height: 1.1; color: #111; opacity: .95; }

@media (max-width: 640px){ .nieuw-binnen .car-type { font-size: 16px; } }

.nieuw-binnen .car-meta { display: flex; flex-wrap: wrap; gap: 18px; font-size: 15px; color: #111; opacity: .85; }

/* Prijs */
.nieuw-binnen .car-price,
.car-card .car-price {
  display: inline-block; justify-self: start; width: auto; max-width: max-content;
  margin-top: 6px; background: #747474; color: #fff; padding: 10px 14px; font-weight: 700; letter-spacing: .2px;
}

/* CTA onder grid */
.nieuw-binnen .cta-center { display: flex; justify-content: center; margin-top: 24px; }
.nieuw-binnen .btn.btn-primary { background: #747474; color: #fff; border: 0; padding: 12px 20px; font-weight: 700; cursor: pointer; font-family: 'Play', sans-serif;
    font-size: 16px; }
.nieuw-binnen .btn.btn-primary:hover { background: #5B5B5B; }

/* Responsive grid */
@media (max-width: 1200px) { .nieuw-binnen .cards-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 640px)  {
  .nieuw-binnen .cards-grid { grid-template-columns: 1fr; }
  .nieuw-binnen .car-title { font-size: 22px; }
}

/* ===========================
   AFSPRAAK-BANNER
=========================== */
.afspraak-section {
  background: linear-gradient(rgba(0,0,0,.5), rgba(0,0,0,.5)), url('/images/afspraak-banner.jpg') no-repeat center/cover;
  height: 30vh; width: 100%; display: flex; align-items: center;
}
.afspraak-section .container { width: 100%; }
.afspraak-section-inner { display: flex; flex-direction: column; gap: 20px; }
.afspraak-section-inner h1 { font-size: 45px; }

/* AFSPRAAK responsive */
@media (max-width: 768px) { .afspraak-section-inner h1 { font-size: 32px; } }

/* ===========================
   OPENINGSTIJDEN BLOKKEN
=========================== */
.openingstijden-section { padding: 120px 0; }
.openingstijden-section-inner { display: flex; justify-content: space-between; align-items: stretch; gap: 2rem; }
.openingstijden-image { max-width: 50%; display: flex; }
.openingstijden-image img { width: 100%; height: 100%; object-fit: cover; }
.openingstijden-content { max-width: 50%; color: #000; display: flex; flex-direction: column; justify-content: center; gap: 20px; }
.openingstijden-content h1 { font-size: 45px; }

/* OPENINGSTIJDEN responsive */
@media (max-width: 992px) {
  .openingstijden-section-inner { flex-direction: column; gap: 24px; }
  .openingstijden-content, .openingstijden-image { max-width: 100%; }
  .openingstijden-image img { height: auto; object-fit: cover; }
  .openingstijden-content h1 { font-size: 36px; }
}
@media (max-width: 576px) { .openingstijden-content h1 { font-size: 30px; } }

/* ===========================
   FOOTER
=========================== */
.footer-section {
  padding: 120px 0;
  background: linear-gradient(rgba(0,0,0,.5), rgba(0,0,0,.5)), url('/images/backgroundhome.jpg') no-repeat center/cover;
}
.footer-section-inner { display: flex; gap: 32px; }
.footer-content-left {
  display: flex; flex-direction: column; gap: 20px; width: 50%;
}
.footer-content-left h1 { font-size: 58px; }
.footer-content-left > img { width: 350px; max-width: 100%; height: auto; }

.footer-content-left-info { display: flex; flex-direction: column; gap: 10px; margin-bottom: 8px; }
.footer-content-left-info > div { display: flex; align-items: center; gap: 5px; }
.footer-content-left-info img { width: 18px; height: 18px; }
.footer-content-left-info p { margin: 0; color: #fff; font-size: 18px; }

.footer-content-right { color: #fff; width: 50%; max-width: 50%; }
.footer-content-right .contact-form { max-width: 100%; margin-left: auto; }
.footer-content-right .row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.footer-content-right .field { margin-bottom: 16px; }

.footer-content-right input,
.footer-content-right textarea {
  width: 100%; background: transparent; border: 2px solid rgba(255,255,255,.6);
  color: #fff; font-size: 17px; padding: 12px 14px; outline: none;
}
.footer-content-right input::placeholder,
.footer-content-right textarea::placeholder { color: rgba(255,255,255,.85); font-size: 17px; }
.footer-content-right input:focus,
.footer-content-right textarea:focus { border-color: #fff; }

.footer-content-right .check {
  display: flex; align-items: center; gap: 10px; margin: 6px 0 20px; font-size: 15px;
}
.footer-content-right .check input { width: 16px; height: 16px; }

.footer-content-right .submit {
  width: 100%; background: #7d7d7d; color: #fff; font-size: 17px; padding: 12px 14px; border: none; cursor: pointer;
}
.footer-content-right .submit:hover { filter: brightness(1.08); }

/* FOOTER responsive */
@media (max-width: 992px) {
  .footer-section-inner { flex-direction: column; gap: 28px; }
  .footer-content-left, .footer-content-right { width: 100%; max-width: 100%; }
  .footer-content-left h1 { font-size: 40px; }
  .footer-content-left > img { width: 300px; }
  .footer-content-right .row.two { grid-template-columns: 1fr; }
}
@media (max-width: 576px) {
  .footer-content-left h1 { font-size: 32px; }
  .footer-content-right input, .footer-content-right textarea { font-size: 16px; padding: 10px 12px; }
  .footer-content-right .submit { font-size: 16px; padding: 10px 12px; }
}

/* ===========================
   GOOGLE MAP
=========================== */
.contact-map { position: relative; width: 100%; min-height: 320px; overflow: hidden; }
.contact-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 576px) { .contact-map { min-height: 260px; } }

/* ===========================
   COPYRIGHT BAR
=========================== */
.rechten-section { height: 35px; background: #000; }
.rechten-section .container { height: 100%; display: flex; align-items: center; }
.rechten-section-inner { color: #fff; font-size: 16px; }
@media (max-width: 768px) {
  .rechten-section .container { justify-content: center; text-align: center; }
  .rechten-section-inner { font-size: 14px; }
}

@media (max-width: 1200px){
  .nieuw-binnen .sectie-titel{ font-size:48px; }
}
@media (max-width: 992px){
  .nieuw-binnen .sectie-titel{ font-size:40px; }
}
@media (max-width: 576px){
  .nieuw-binnen .sectie-titel{ font-size:34px; }
}





/* ============== DARK MODE TOGGLE STYLES ============== */
.theme-toggle{
  display:inline-flex; align-items:center; justify-content:center;
  width:40px; height:40px; border:0; background:transparent; cursor:pointer;
  padding:6px; border-radius:10px; transition: background-color .2s ease;
}
.theme-toggle:hover{ background: rgba(255,255,255,.08); }
.theme-toggle img{ filter: invert(1); display:block; }

.panel-theme-toggle{
  margin-top: 12px;
  display:inline-flex; align-items:center; gap:10px;
  border:1px solid rgba(255,255,255,.35);
  background: transparent; color:#fff; padding:10px 12px; border-radius:10px;
  cursor:pointer; font-weight:600;
}
.panel-theme-toggle:hover{ background: rgba(255,255,255,.08); }
.panel-theme-toggle img{ filter: invert(1); }

/* ============== DARK THEME ============== */
/* We zetten de klasse "dark" op <html>. */
html.dark body{ background:#000; color:#fff; }

/* Algemene tekst en links wit, zonder buttons te beïnvloeden */
html.dark :where(p, h1, h2, h3, h4, h5, h6, li, small, strong, span){ color:#fff; }
html.dark a{ color:#fff; }

/* Header + nav */
html.dark .navbar{ background: rgba(0,0,0,.65); }
html.dark .navbar.scrolled{ background: rgba(0,0,0,.75); }
html.dark .nav-desktop a{ color:#fff; }
html.dark .nav-desktop a:hover,
html.dark .nav-desktop a.active{ background:#747474; color:#fff; }

/* Secties met vaste lichte achtergronden → donker maken */
html.dark .info-section,
html.dark .openingstijden-section,
html.dark .nieuw-binnen,
html.dark .rechten-section{ background:#000; color:#fff; }

html.dark .info-content,
html.dark .openingstijden-content{ color:#fff; }

/* Nieuw binnen cards */
html.dark .nieuw-binnen .sectie-titel{ color:#fff; }
html.dark .nieuw-binnen .car-card{ background:#111; }
html.dark .nieuw-binnen .car-info{ background:#151515; }
html.dark .nieuw-binnen .car-title,
html.dark .nieuw-binnen .car-type,
html.dark .nieuw-binnen .car-meta{ color:#fff; }

/* Hero/afspraak/footer hebben al donkere overlays → tekst blijft wit */
html.dark .footer-section{ color:#fff; }

/* Form elements in footer op donker beter zichtbaar */
html.dark .footer-content-right input,
html.dark .footer-content-right textarea{
  border-color: rgba(255,255,255,.7);
  color:#fff;
}
html.dark .footer-content-right input::placeholder,
html.dark .footer-content-right textarea::placeholder{ color: rgba(255,255,255,.85); }

/* ===== Occasions/detail pagina's ===== */
html.dark .oc-detail{ background:#000; color:#fff; }
html.dark .oc-detail .ocd-back{ color:#fff; }
html.dark .oc-detail .ocd-title{ color:#fff; }
html.dark .oc-detail .ocd-sub{ color:#d0d0d0; }
html.dark .oc-detail .ocd-price{ color:#fff; }
html.dark .oc-detail .ocd-kv .k{ color:#bbb; }
html.dark .oc-detail .ocd-kv .v{ color:#fff; }
html.dark .oc-detail .ocd-stage{ background:#111; border:1px solid #2a2a2a; }
html.dark .oc-detail .ocd-thumb.is-active{ outline-color:#5B5B5B; }
html.dark .oc-detail .ocd-thumb:hover{ outline-color:#777; }
html.dark .oc-detail .ocd-seller-info .name{ color:#fff; }
html.dark .oc-detail .ocd-seller-info a{ color:#eee; }
html.dark .ocd-tabs{ border-bottom:1px solid #2a2a2a; }
html.dark .ocd-tab{ color:#bbb; }
html.dark .ocd-tab.is-active{ color:#fff; border-bottom-color:#fff; }
html.dark .spec-list li::before{ color:#fff; }
html.dark .spec-list .k{ color:#bbb; }
html.dark .spec-list .v{ color:#fff; }
html.dark .opt-col h4{ border-bottom-color:#2a2a2a; }

/* Lightbox */
html.dark .ocd-lightbox-inner{ background:#111; }

/* Belangrijk: buttons NIET veranderen in dark mode */

.panel-theme-toggle img {
    filter: brightness(0) invert(1);
}
.theme-toggle img {
    filter: brightness(0) invert(1);
}


/* Zorg dat alle icons gelijk zijn */
.icons img.icon,
.phone-icon {
    width: 26px;   /* zelfde grootte als phone icon */
    height: 26px;
    display: inline-block;
    object-fit: contain;
}

/* Zorg dat de buttons dezelfde hitbox hebben */
.theme-toggle--icon,
.phone-btn,
.menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;     /* zelfde clickable area */
    height: 40px;
}

/* Mobile-first: icons zichtbaar */
.icons {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Desktop: verberg mobiele icons (moon, telefoon, hamburger) */
@media (min-width: 1024px) {
    #themeToggleMobile,
    .phone-btn,
    .menu-toggle {
        display: none;
    }
}

@media (max-width: 1023px) {
/* Container voor de drie iconen rechts */
.icons {
    display: flex;
    align-items: center;
    gap: 10px;            /* afstand tussen de iconen */
}

/* Maak alle drie knoppen even groot en gecentreerd */
.theme-toggle--icon,
.phone-btn,
.menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;          /* klik-oppervlak */
    height: 40px;
    padding: 0;
    border: none;
    background: transparent;
}

/* Zorg dat de <a> eruitziet als een icon button */
.phone-btn {
    text-decoration: none;
}

/* Alle iconen (img + svg) dezelfde grootte en gecentreerd */
.icons img,
.icons svg {
    width: 24px;
    height: 24px;
    display: block;
}}

