/* Cookie-Hinweis – nur technisch notwendige Cookies */

.cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(31, 42, 46, 0.94);
  backdrop-filter: blur(10px);
  color: #ffffff;
  padding: 20px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.25);
  z-index: 999999;
  transform: translateY(100%);
  transition: transform 0.3s ease-in-out;
  border-top: 3px solid var(--color-primary, #258c77);
}

.cookie-consent-banner.show {
  transform: translateY(0);
}

.cookie-consent-banner.hide {
  transform: translateY(100%);
}

.cookie-consent-content {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.cookie-consent-text h4 {
  margin: 0 0 8px 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cookie-consent-text p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #e3eae8;
  max-width: 640px;
}

.cookie-consent-actions {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-shrink: 0;
}

.cookie-btn {
  background: var(--color-primary, #258c77);
  color: #ffffff;
  border: none;
  padding: 12px 26px;
  border-radius: var(--radius-sm, 8px);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.cookie-btn:hover {
  background: var(--color-primary-dark, #1f7462);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.cookie-btn:active {
  transform: translateY(0);
}

.cookie-btn:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

.cookie-consent-banner .cookie-link {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-consent-banner .cookie-link:hover {
  color: #ffffff;
  opacity: 0.8;
}

@media (max-width: 768px) {
  .cookie-consent-banner {
    padding: 16px;
  }

  .cookie-consent-content {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }

  .cookie-consent-text h4 {
    justify-content: center;
  }

  .cookie-consent-text p {
    max-width: none;
    font-size: 0.9rem;
  }

  .cookie-consent-actions {
    width: 100%;
    flex-direction: column;
  }

  .cookie-btn {
    width: 100%;
    max-width: 320px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-consent-banner {
    transition: none;
  }
}
