/* =========================
   Cookie Design Tokens
========================= */

:root{
  --cookie-bg: linear-gradient(120deg, var(--surface), rgba(44, 51, 48, 1));
  --cookie-text: var(--text);
  --cookie-muted: var(--muted);

  --cookie-border: var(--border);
  --cookie-soft: rgba(255,255,255,.06);

  --cookie-accent: var(--primary);
  --cookie-accent-soft: var(--primary-50);

  --cookie-radius: var(--radius);
  --cookie-shadow: var(--shadow);
}

/* =========================
   Overlay
========================= */

.cookie-banner {
  position: fixed;
  inset: 0;

  background: radial-gradient(
    circle at 50% 40%,
    rgba(15, 36, 24, 0.35),
    rgba(11, 14, 12, 0.92)
  );

  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);

  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* =========================
   Card
========================= */

.cookie-card {
  background: var(--cookie-bg);
  color: var(--cookie-text);
  border: 1px solid var(--cookie-border);

  width: min(92vw, 440px);
  padding: 2rem 2.1rem;

  border-radius: var(--cookie-radius);
  box-shadow: var(--cookie-shadow);

  animation: cookieFadeIn 0.3s ease;
}

@keyframes cookieFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* =========================
   Brand
========================= */

.cookie-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin-bottom: 1.1rem;
}

.cookie-brand__logo {
  height: 38px;
  width: auto;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.3));
}

.cookie-brand__name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--cookie-text);
}

/* =========================
   Typography
========================= */

.cookie-card h2 {
  margin: 0 0 0.65rem;
  font-size: 1.35rem;
  font-weight: 600;
}

.cookie-card p {
  margin: 0 0 1.4rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--cookie-muted);
}

/* =========================
   Options
========================= */

.cookie-option {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  margin-bottom: 0.85rem;
  font-size: 0.95rem;
}

.cookie-option__hint {
  display: block;
  font-size: 0.75rem;
  color: var(--cookie-muted);
  margin-top: 0.15rem;
}

.cookie-option input[type="checkbox"] {
  width: 22px;
  height: 22px;
  margin-top: 0.15rem;

  border-radius: 7px;
  border: 2px solid var(--cookie-accent);
  background: rgba(0, 0, 0, 0.25);

  appearance: none;
  cursor: pointer;
}

.cookie-option input[type="checkbox"]:checked {
  background: var(--cookie-accent);
  box-shadow: 0 0 0 3px var(--cookie-accent-soft);
}

.cookie-option input[type="checkbox"]:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* =========================
   Actions (Buttons)
========================= */

.cookie-actions {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.cookie-actions .btn {
  min-height: 40px;
  padding: 0 1.25rem;

  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;

  border-radius: 10px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.12s ease;
}

/* Secondary – Ablehnen */

.cookie-actions .btn.secondary {
  background: transparent;
  color: var(--cookie-text);
  border: 1px solid rgba(226, 179, 124, 0.28);
}

.cookie-actions .btn.secondary:hover {
  background: rgba(226, 179, 124, 0.08);
  box-shadow: inset 0 0 0 1px rgba(226, 179, 124, 0.25);
}

.cookie-actions .btn.secondary:active {
  transform: translateY(1px);
}

/* Primary – Auswahl speichern */

.cookie-actions .btn.primary {
  background: var(--cookie-accent);
  color: var(--bg);
  border: none;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.cookie-actions .btn.primary:hover {
  transform: translateY(-1px);
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.45),
    0 0 0 3px var(--cookie-accent-soft);
}

.cookie-actions .btn.primary:active {
  transform: translateY(0);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

/* =========================
   Footer
========================= */

.cookie-footer-links {
  margin-top: 0.8rem;
  font-size: 0.78rem;
  text-align: center;
}

.cookie-footer-links a {
  color: var(--cookie-muted);
  text-decoration: underline;
}

.cookie-footer {
  margin-top: 1rem;
  font-size: 0.75rem;
  text-align: center;
  color: var(--cookie-muted);
}

/* =========================
   Floating Cookie Button
========================= */

.cookie-fab {
  position: fixed;
  bottom: 0.5rem;
  left: 1rem;

  width: 32px;
  height: 32px;
  border-radius: 50%;

  background: linear-gradient(
    180deg,
    var(--color-forest),
    var(--color-deep-forest)
  );

  border: 1px solid rgba(226, 179, 124, 0.25);
  color: var(--color-neutral);

  box-shadow:
    0 6px 18px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);

  cursor: pointer;
  z-index: 9998;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.25s ease;
}

.cookie-fab:hover {
  transform: translateY(-2px);
  background: linear-gradient(180deg, var(--color-moss), var(--color-forest));
  box-shadow:
    0 10px 26px rgba(0, 0, 0, 0.55),
    0 0 0 3px rgba(226, 179, 124, 0.12);
}

/* =========================
   Utility
========================= */

.hidden {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 480px) {
  .cookie-card {
    padding: 1.5rem 1.25rem;
  }

  .cookie-actions {
    flex-direction: column-reverse;
  }

  .cookie-actions .btn {
    width: 100%;
  }
}
