/* ==========================================================================
   Cookie-Hinweis

   Lag als <style>-Block in partials/cookie_banner.html.
   ========================================================================== */

/* ---- Overlay ---- */
#kfz-cookie-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 99998;
  backdrop-filter: blur(2px);
}
/* ---- Banner ---- */
#kfz-cookie-banner {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #fff;
  border-top: 3px solid #3665f3;
  box-shadow: 0 -4px 24px rgba(0,0,0,.15);
  z-index: 99999;
  font-family: var(--font-ui);
  font-size: 14px;
  color: #222;
}
#kfz-cookie-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 24px;
}
#kfz-cookie-banner h2 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  color: #111;
}
#kfz-cookie-banner p {
  margin: 0 0 16px;
  line-height: 1.55;
  color: #444;
}
#kfz-cookie-banner a {
  color: #3665f3;
  text-decoration: underline;
}
/* ---- Buttons ---- */
.kfz-cb-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.kfz-cb-btn {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all .15s;
  white-space: nowrap;
}
.kfz-cb-btn-primary {
  background: #3665f3;
  color: #fff;
  border-color: #3665f3;
}
.kfz-cb-btn-primary:hover { background: #1a4fd6; border-color: #1a4fd6; }
.kfz-cb-btn-secondary {
  background: #fff;
  color: #3665f3;
  border-color: #3665f3;
}
.kfz-cb-btn-secondary:hover { background: #eef2fe; }
.kfz-cb-btn-settings {
  background: transparent;
  color: #666;
  border-color: #ccc;
}
.kfz-cb-btn-settings:hover { background: #f5f5f5; color: #333; }
.kfz-cb-spacer { flex: 1; }
/* ---- Settings Panel ---- */
#kfz-cookie-settings {
  display: none;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #eee;
}
.kfz-cb-category {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}
.kfz-cb-category:last-child { border-bottom: none; }
.kfz-cb-category-text { flex: 1; }
.kfz-cb-category-text strong { display: block; margin-bottom: 3px; font-size: 14px; }
.kfz-cb-category-text span { color: #666; font-size: 13px; line-height: 1.45; }
/* ---- Toggle Switch ---- */
.kfz-toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
  margin-top: 2px;
}
.kfz-toggle input { opacity: 0; width: 0; height: 0; }
.kfz-toggle-slider {
  position: absolute;
  inset: 0;
  background: #ccc;
  border-radius: 24px;
  transition: .2s;
  cursor: pointer;
}
.kfz-toggle-slider:before {
  content: "";
  position: absolute;
  width: 18px; height: 18px;
  left: 3px; bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: .2s;
}
.kfz-toggle input:checked + .kfz-toggle-slider { background: #3665f3; }
.kfz-toggle input:checked + .kfz-toggle-slider:before { transform: translateX(20px); }
.kfz-toggle input:disabled + .kfz-toggle-slider { background: #aaa; cursor: default; }
@media (max-width: 600px) {
  .kfz-cb-actions { flex-direction: column; }
  .kfz-cb-btn { width: 100%; text-align: center; }
  .kfz-cb-spacer { display: none; }
}

.kfz-cb-actions{ margin-top: var(--kfz-sp-4); }
