/* ============================================================
   Cookiebar — consent-module

   De balk is altijd anthracite met lichte tekst, ook in lightmode.
   Dat volgt het bestaande rust-zone patroon van header, CTA en footer
   (zie CLAUDE.md, punt 5), zodat hij in beide modi thuishoort en we
   geen tweede kleurenset hoeven te onderhouden.

   Eigen .cc-* knoppen in plaats van .btn-primary/.btn-ghost: die eerste
   is een <a> met eigen padding-schaal, de tweede is een tekstlink met
   pijl. Voor drie knoppen naast elkaar in een balk werkt geen van beide.
   De vórm komt wel exact uit de site: pink, 2px radius, 13px uppercase
   met 1px letterspacing.
   ============================================================ */

.cookiebar {
  position:    fixed;
  left:        0;
  right:       0;
  bottom:      0;
  z-index:     9998;
  background:  var(--anthracite);
  color:       var(--text);
  border-top:  1px solid rgba(255, 255, 255, 0.08);
  box-shadow:  0 -20px 50px -30px rgba(0, 0, 0, 0.7);
  font-family: var(--font-body);
}
.cookiebar[hidden] { display: none; }

.cookiebar__inner {
  max-width:   var(--max);
  margin:      0 auto;
  padding:     28px var(--pad);
  display:     flex;
  align-items: center;
  gap:         40px;
  flex-wrap:   wrap;
}

.cookiebar__text { flex: 1 1 340px; }

.cookiebar__title {
  font-family:    var(--font-heading);
  font-weight:    900;
  font-size:      18px;
  letter-spacing: -0.01em;
  color:          var(--text);
  margin-bottom:  6px;
}

.cookiebar__text p {
  font-size:   14px;
  line-height: 1.6;
  color:       rgba(240, 237, 232, 0.75);
}

.cookiebar__text a {
  color:                var(--text);
  text-decoration:      underline;
  text-decoration-color: var(--pink);
  text-underline-offset: 3px;
  transition:           color var(--t-fast);
}
.cookiebar__text a:hover { color: var(--pink); }

.cookiebar__actions {
  display:     flex;
  gap:         10px;
  flex-wrap:   wrap;
  align-items: center;
}

/* Knoppen */
.cc-btn {
  display:         inline-flex;
  align-items:     center;
  justify-content: center;
  font-family:     var(--font-body);
  font-size:       13px;
  font-weight:     700;
  letter-spacing:  1px;
  text-transform:  uppercase;
  padding:         14px 28px;
  background:      transparent;
  border:          1px solid transparent;
  border-radius:   2px;
  cursor:          pointer;
  transition:      background var(--t-base), color var(--t-fast),
                   border-color var(--t-fast), transform var(--t-fast),
                   box-shadow var(--t-base);
}

.cc-btn--primary {
  background:   var(--pink);
  border-color: var(--pink);
  color:        #fff;
}
.cc-btn--primary:hover {
  background: var(--pink-hover);
  transform:  translateY(-2px);
  box-shadow: 0 8px 32px rgba(196, 0, 88, 0.35);
}
.cc-btn--primary:active { transform: translateY(0); }

.cc-btn--ghost {
  border-color: rgba(255, 255, 255, 0.28);
  color:        var(--text);
}
.cc-btn--ghost:hover { border-color: var(--text); }

/* Voorkeuren-paneel */
.cookiebar__prefs {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding:    28px var(--pad);
  max-width:  var(--max);
  margin:     0 auto;
  display:    grid;
  gap:        18px;
}
.cookiebar__prefs[hidden] { display: none; }

.cookiebar__cat {
  display:               grid;
  grid-template-columns: auto 1fr;
  gap:                   14px;
  align-items:           start;
  font-size:             14px;
  line-height:           1.6;
  color:                 rgba(240, 237, 232, 0.7);
  cursor:                pointer;
}
.cookiebar__cat input {
  margin-top:   4px;
  accent-color: var(--pink);
  width:        18px;
  height:       18px;
  cursor:       pointer;
}
.cookiebar__cat input:disabled { cursor: default; opacity: 0.6; }
.cookiebar__cat strong {
  color:       var(--text);
  font-weight: 600;
}

.cookiebar__prefs-actions { justify-self: start; }

@media (max-width: 1024px) {
  .cookiebar__inner,
  .cookiebar__prefs { padding-left: 40px; padding-right: 40px; }
}

@media (max-width: 640px) {
  .cookiebar__inner,
  .cookiebar__prefs { padding: 24px; }
  .cookiebar__inner {
    flex-direction: column;
    align-items:    stretch;
    gap:            20px;
  }
  /* In kolom-layout wordt flex-basis een HOOGTE. Resetten, anders rekt de
     tekstkolom verticaal uit en valt er een gat onder. */
  .cookiebar__text { flex: 0 1 auto; }
  .cookiebar__actions .cc-btn { flex: 1 1 auto; }
  .cookiebar__prefs { max-height: 55vh; overflow-y: auto; }
}

/* ============================================================
   Geblokkeerde embed (Maps, video, social) — placeholder tot consent
   ============================================================ */
.cc-embed {
  position:   relative;
  height:     100%;
  min-height: 220px;
}
.cc-embed__placeholder {
  height:          100%;
  min-height:      220px;
  display:         flex;
  flex-direction:  column;
  align-items:     center;
  justify-content: center;
  gap:             16px;
  text-align:      center;
  padding:         24px;
  background:      var(--light-bg2);
  color:           var(--light-text);
  border:          1px solid var(--light-border);
  border-radius:   var(--card-radius);
}
.cc-embed__placeholder p {
  font-size: 14px;
  max-width: 34ch;
  color:     var(--light-muted);
}
.cc-embed__frame,
.cc-embed__frame iframe {
  display: block;
  width:   100%;
  height:  100%;
  border:  0;
}
