/* ─────────────────────────────────────────────────────────────────────
   DSGVO/TTDSG-Cookie-Banner für DeineFenster.de
   - Banner unten, sichtbar bis Entscheidung
   - "Ablehnen" und "Akzeptieren" GLEICH gross + GLEICH prominent (Pflicht)
   - Keine Vorab-Häkchen bei nicht-notwendigen Kategorien
   - Plausible/Google Maps werden NUR nach Consent geladen
   ───────────────────────────────────────────────────────────────────── */

#df-cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9999;
  background: rgba(6, 9, 26, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(118, 169, 250, 0.18);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.5);
  padding: 20px 24px;
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  color: rgba(238, 242, 255, 0.92);
  font-size: 14px;
  line-height: 1.55;
  display: none;
  animation: dfCookieSlideIn 0.32s ease-out;
}
#df-cookie-banner.show { display: block; }

@keyframes dfCookieSlideIn {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.df-cookie-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
}

.df-cookie-text {
  font-size: 13.5px;
  color: rgba(238, 242, 255, 0.78);
}
.df-cookie-text strong {
  color: #fff;
  font-weight: 700;
  font-size: 14.5px;
  display: block;
  margin-bottom: 4px;
}
.df-cookie-text a {
  color: #76a9fa;
  text-decoration: underline;
}

.df-cookie-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.df-cookie-btn {
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 11px 22px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
  min-width: 130px;
}

/* Ablehnen — GLEICH PROMINENT wie Akzeptieren (Pflicht laut BGH I ZR 7/16 + EuGH C-673/17)
   Selber Solid-Stil, selbe Größe, selber Kontrast — nur andere Farbe */
.df-cookie-btn.df-reject {
  background: #e8eeff;
  color: #0a1225;
  border: 1px solid #e8eeff;
}
.df-cookie-btn.df-reject:hover {
  background: #ffffff;
  border-color: #ffffff;
}

/* Einstellungen — weniger prominent */
.df-cookie-btn.df-settings {
  background: transparent;
  color: rgba(238, 242, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.12);
  min-width: 110px;
  padding: 11px 18px;
  font-size: 12.5px;
}
.df-cookie-btn.df-settings:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.24);
}

/* Akzeptieren */
.df-cookie-btn.df-accept {
  background: #76a9fa;
  color: #0a1225;
}
.df-cookie-btn.df-accept:hover {
  background: #92baf9;
}

@media (max-width: 768px) {
  #df-cookie-banner { padding: 16px 18px; }
  .df-cookie-inner { grid-template-columns: 1fr; gap: 14px; }
  .df-cookie-actions { width: 100%; }
  .df-cookie-btn { flex: 1; min-width: 0; padding: 12px 14px; }
  .df-cookie-btn.df-settings { flex: 0 1 auto; min-width: 100px; }
}

/* ── Settings-Modal ── */
#df-cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
#df-cookie-modal.show { display: flex; }

.df-modal-card {
  background: #0e1728;
  border: 1px solid rgba(118, 169, 250, 0.2);
  border-radius: 14px;
  padding: 28px;
  max-width: 540px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  font-family: 'Manrope', system-ui, sans-serif;
  color: rgba(238, 242, 255, 0.92);
}
.df-modal-card h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}
.df-modal-intro {
  font-size: 13px;
  color: rgba(238, 242, 255, 0.65);
  margin-bottom: 22px;
  line-height: 1.6;
}
.df-cat {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 10px;
  background: rgba(255, 255, 255, 0.02);
}
.df-cat-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
}
.df-cat-name {
  font-weight: 700;
  font-size: 14.5px;
  color: #fff;
}
.df-cat-desc {
  font-size: 12.5px;
  color: rgba(238, 242, 255, 0.55);
  line-height: 1.5;
}
.df-cat-required {
  font-size: 11px;
  color: rgba(118, 169, 250, 0.9);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Toggle */
.df-toggle {
  position: relative;
  width: 40px;
  height: 22px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 100px;
  cursor: pointer;
  transition: background 0.22s ease;
  flex-shrink: 0;
}
.df-toggle.on { background: #76a9fa; }
.df-toggle::after {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 16px; height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.22s ease;
}
.df-toggle.on::after { transform: translateX(18px); }
.df-toggle.locked { opacity: 0.5; cursor: not-allowed; }

.df-modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.df-modal-actions .df-cookie-btn {
  flex: 1;
  min-width: 0;
}
