/* Cookie Banner – Design wie cookie_template.html */

#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9998;
  padding: 1rem;
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
}

#cookie-banner.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

@media (min-width: 768px) {
  #cookie-banner {
    padding: 1.5rem;
  }
}

.cookie-banner-inner {
  max-width: 80rem;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  padding: 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: stretch;
}

@media (min-width: 768px) {
  .cookie-banner-inner {
    flex-direction: row;
    align-items: center;
    padding: 2rem;
  }
}

.cookie-banner-text {
  flex-grow: 1;
}

.cookie-banner-text h4 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cookie-banner-text h4 .cookie-icon {
  color: #f59e0b;
  flex-shrink: 0;
}

.cookie-banner-text h4 .cookie-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.cookie-banner-text p {
  font-size: 0.875rem;
  color: #475569;
  line-height: 1.5;
  margin: 0;
}

.cookie-banner-text a {
  color: #4f46e5;
  text-decoration: underline;
  font-weight: 500;
}

.cookie-banner-text a:hover {
  color: #4338ca;
}

.cookie-banner-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  width: 100%;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .cookie-banner-buttons {
    width: auto;
  }
}

.cookie-banner-btn {
  flex-grow: 1;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0.75rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

@media (min-width: 768px) {
  .cookie-banner-btn {
    flex-grow: 0;
  }
}

.cookie-banner-btn-essential {
  background: #f1f5f9;
  color: #475569;
}

.cookie-banner-btn-essential:hover {
  background: #e2e8f0;
}

.cookie-banner-btn-accept {
  background: #4f46e5;
  color: #fff;
  box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.2);
}

.cookie-banner-btn-accept:hover {
  background: #4338ca;
}

.cookie-banner-btn-settings {
  background: transparent;
  color: #4f46e5;
  text-decoration: underline;
}

.cookie-banner-btn-settings:hover {
  color: #4338ca;
}
