/* ========================================
   Cookie-Banner – DSGVO-konformes Consent-Management
   Passt sich dem Design-System der Website an.
   ======================================== */

/* Overlay-Hintergrund */
.cookie-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 9998;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.cookie-overlay.visible {
  opacity: 1;
}

/* Banner-Container */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #0f172a;
  border-top: 1px solid rgba(59, 130, 246, 0.2);
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.3);
  padding: 0;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.cookie-banner.visible {
  transform: translateY(0);
}

/* Innerer Container */
.cookie-banner__inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  gap: 24px;
}

/* Textbereich */
.cookie-banner__text {
  flex: 1;
}
.cookie-banner__title {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
}
.cookie-banner__desc {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.85rem;
  color: #94a3b8;
  line-height: 1.5;
  margin: 0;
}
.cookie-banner__desc a {
  color: #60a5fa;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-banner__desc a:hover {
  color: #93bbfd;
}

/* Button-Bereich */
.cookie-banner__actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

/* Basis-Button */
.cookie-btn {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

/* Primärer Button – Akzeptieren */
.cookie-btn--accept {
  background: #2563eb;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.2);
}
.cookie-btn--accept:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Sekundärer Button – Ablehnen */
.cookie-btn--decline {
  background: #334155;
  color: #ffffff;
  border: 1px solid #475569;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}
.cookie-btn--decline:hover {
  background: #475569;
  color: #ffffff;
  border-color: #64748b;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Responsive: Mobile */
@media (max-width: 640px) {
  .cookie-banner__inner {
    flex-direction: column;
    align-items: stretch;
    padding: 20px 20px;
    gap: 16px;
  }
  .cookie-banner__actions {
    flex-direction: column;
  }
  .cookie-btn {
    width: 100%;
    text-align: center;
    padding: 12px 20px;
  }
}
