/* Cookie-Consent Banner – Liquid-Glass-Stil */
.cookie-consent {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9999;
  max-width: 360px;
  width: calc(100vw - 40px);
  padding: 14px 14px 12px;
  border-radius: 14px;
  background: rgba(20, 23, 28, 0.70);
  border: 1px solid rgba(255,255,255,0.28);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  backdrop-filter: blur(16px) saturate(120%);
  color: #eef1f5;
  box-shadow: 0 10px 26px -18px rgba(0,0,0,0.45), 0 2px 10px -6px rgba(0,0,0,0.35);
}

.cookie-consent.hidden { display: none !important; }

/* Sanfte Exit-Animation beim Akzeptieren */
.cookie-consent.entering,
.cookie-consent.leaving {
  will-change: opacity, transform, filter;
}
.cookie-consent.entering {
  animation: cc-pop-in 520ms cubic-bezier(.2,.8,.2,1) both;
}
.cookie-consent.leaving {
  animation: cc-pop-out 520ms cubic-bezier(.2,.8,.2,1) both;
}

@keyframes cc-pop-in {
  0%   { opacity: 0; transform: translateY(16px) scale(.96); filter: blur(2px); }
  60%  { opacity: 1; transform: translateY(-2px) scale(1.01); filter: blur(0.5px); }
  100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}
@keyframes cc-pop-out {
  0%   { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
  40%  { opacity: .75; transform: translateY(6px) scale(.99); filter: blur(.5px); }
  100% { opacity: 0; transform: translateY(14px) scale(.96); filter: blur(2px); }
}

.cookie-consent .cc-title {
  margin: 0 0 6px;
  font: 600 15px/1.4 "Inter", system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.cookie-consent .cc-title .cc-title-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,0.25));
}

.cookie-consent .cc-text {
  margin: 0 0 12px;
  font: 500 13px/1.6 "Inter", system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial;
  color: #dbe0e6;
}

/* Hervorgehobene Empfehlung/Callout */
.cookie-consent .cc-callout {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 8px;
  align-items: start;
  margin: 8px 0 12px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 198, 0, 0.10);
  border: 1px solid rgba(255, 230, 150, 0.30);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}
.cookie-consent .cc-callout .cc-callout-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,0.25));
}
.cookie-consent .cc-callout .cc-callout-text {
  margin: 0;
  font: 600 13px/1.55 "Inter", system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial;
  color: #ffe690;
}

.cookie-consent .cc-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.cookie-consent .cc-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(35, 39, 46, 0.55);
  color: #eef1f5;
  cursor: pointer;
  font: 600 13px/1 "Inter", system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial;
  transition: background 160ms ease, transform 120ms ease, border-color 160ms ease;
}

.cookie-consent .cc-btn:hover { background: rgba(45, 49, 57, 0.65); border-color: rgba(255,255,255,0.35); }
.cookie-consent .cc-btn:active { transform: translateY(1px); }

.cookie-consent .cc-btn.primary {
  background: rgba(0, 107, 40, 0.65);
  border-color: rgba(183, 255, 208, 0.35);
}
.cookie-consent .cc-btn.primary:hover { background: rgba(0, 128, 48, 0.70); }

.cookie-consent .cc-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,0.25));
}

/* Overlay, das die Seite weich verschwommen und leicht abgedunkelt darstellt */
.cc-page-blur {
  position: fixed;
  inset: 0;
  /* Unter dem Benutzer-Button (1100) aber über der Topbar (1000) liegen,
     damit der Button weiterhin klickbar bleibt, während der Rest weich geblurt ist. */
  z-index: 1050; /* Banner bleibt bei 9999 darüber */
  /* Blockiert keine Interaktionen: Benutzer-Button bleibt bedienbar */
  pointer-events: none;
  backdrop-filter: blur(3px) brightness(0.9);
  -webkit-backdrop-filter: blur(3px) brightness(0.9);
  background: rgba(0,0,0,0.04);
  opacity: 1;
  transition: opacity 520ms ease, background-color 520ms ease;
}
.cc-page-blur.hidden { opacity: 0; visibility: hidden; }
.cc-page-blur.fade-out { opacity: 0; }

@media (max-width: 640px) {
  .cookie-consent {
    right: 16px;
    left: 16px;
    bottom: 16px;
    width: auto;
    max-width: none;
  }
  .cookie-consent .cc-actions { justify-content: space-between; }
}

/* Body Scroll-Lock wenn modales Banner offen ist */
body.modal-open {
  overflow: hidden;
  touch-action: none;
}
