/* =========================================================
   FÜRST COOKIE BANNER
========================================================= */

.ff-cookie-overlay {
  position: fixed;
  inset: 0;
  z-index: 99998;
  background: rgba(2, 6, 23, 0.62);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.ff-cookie-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.ff-cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 99999;
  width: min(920px, calc(100% - 32px));
  transform: translateX(-50%) translateY(24px);
  opacity: 0;
  pointer-events: none;
  border-radius: 30px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background:
    radial-gradient(circle at top left, rgba(11, 92, 255, 0.14), transparent 34%),
    linear-gradient(135deg, rgba(255,255,255,0.98), rgba(248,250,252,0.96));
  box-shadow:
    0 34px 90px rgba(15, 23, 42, 0.30),
    inset 0 0 0 1px rgba(255,255,255,0.7);
  overflow: hidden;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.ff-cookie-banner.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.ff-cookie-inner {
  padding: 28px;
}

.ff-cookie-top {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.ff-cookie-icon {
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #fff;
  font-size: 24px;
  background: linear-gradient(135deg, #0b5cff, #003bb8);
  box-shadow: 0 18px 38px rgba(11, 92, 255, 0.34);
}

.ff-cookie-content h2 {
  margin: 0 0 8px;
  color: #0f172a;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  font-weight: 900;
  letter-spacing: -0.04em;
}

.ff-cookie-content p {
  margin: 0;
  color: #475569;
  font-size: 1rem;
  line-height: 1.65;
}

.ff-cookie-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 22px;
}

.ff-cookie-option {
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.30);
  background: rgba(255,255,255,0.74);
}

.ff-cookie-option strong {
  display: block;
  margin-bottom: 5px;
  color: #0f172a;
  font-size: 0.95rem;
  font-weight: 850;
}

.ff-cookie-option span {
  display: block;
  color: #64748b;
  font-size: 0.86rem;
  line-height: 1.45;
}

.ff-cookie-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.ff-cookie-btn {
  border: 0;
  border-radius: 999px;
  padding: 13px 20px;
  font-size: 0.94rem;
  font-weight: 850;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.ff-cookie-btn:hover {
  transform: translateY(-2px);
}

.ff-cookie-btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #0b5cff, #003bb8);
  box-shadow: 0 16px 36px rgba(11, 92, 255, 0.32);
}

.ff-cookie-btn-secondary {
  color: #0f172a;
  background: #eef4ff;
}

.ff-cookie-btn-ghost {
  color: #475569;
  background: transparent;
}

.ff-cookie-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 18px;
  font-size: 0.86rem;
}

.ff-cookie-links a {
  color: #0b5cff;
  font-weight: 750;
  text-decoration: none;
}

.ff-cookie-links a:hover {
  text-decoration: underline;
}

@media (max-width: 767.98px) {
  .ff-cookie-banner {
    bottom: 12px;
    width: calc(100% - 20px);
    border-radius: 24px;
  }

  .ff-cookie-inner {
    padding: 22px;
  }

  .ff-cookie-top {
    flex-direction: column;
  }

  .ff-cookie-options {
    grid-template-columns: 1fr;
  }

  .ff-cookie-actions {
    flex-direction: column;
  }

  .ff-cookie-btn {
    width: 100%;
  }
}
/* =========================================================
   COOKIE BANNER – MOBILE FIX
========================================================= */

@media (max-width: 767.98px) {
  .ff-cookie-overlay {
    overflow-y: auto;
    padding: 14px 10px;
    display: flex;
    align-items: flex-end;
  }

  .ff-cookie-banner {
    position: fixed;
    left: 10px;
    right: 10px;
    top: auto;
    bottom: max(12px, env(safe-area-inset-bottom));
    width: auto;
    max-height: calc(100dvh - 28px);
    transform: translateY(24px);
    border-radius: 24px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .ff-cookie-banner.is-visible {
    transform: translateY(0);
  }

  .ff-cookie-inner {
    padding: 18px;
  }

  .ff-cookie-content h2 {
    font-size: 1.35rem;
  }

  .ff-cookie-content p {
    font-size: 0.92rem;
    line-height: 1.5;
  }

  .ff-cookie-options {
    gap: 10px;
    margin-top: 16px;
  }

  .ff-cookie-option {
    padding: 14px;
    border-radius: 18px;
  }

  .ff-cookie-actions {
    gap: 10px;
    margin-top: 18px;
  }

  .ff-cookie-btn {
    padding: 12px 16px;
    min-height: 48px;
  }
}
/* Notwendig / Analytics / Kontrolle ausblenden */

.ff-cookie-options {
  display: none !important;
}

.ff-cookie-actions {
  margin-top: 0 !important;
}

.ff-cookie-links {
  margin-top: 16px !important;
}
