/* Overlay für Hintergrundabdunkelung */
.cookie-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9998;
  pointer-events: all;
}

.cookie-overlay.hidden {
  display: none;
}

/* Banner oben */
.cookie-banner {
  position: fixed;
  top: 2rem;
  left: 50%;
  width: 50%;
  transform: translateX(-50%);
  background: white;
  color: #303030;
  padding: 1rem 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  z-index: 9999;
  font-size: 0.95rem;
  border-radius: 8px;
}

.cookie-banner p {
  color: #303030;
}

.cookie-banner a {
  color: #303030;
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.cookie-banner button {
  background: white;
  border: 1px solid var(--primary);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  color: var(--primary);
  cursor: pointer;
}

.cookie-banner button:first-child {
  background: var(--primary);
  color: white;
  border-color: transparent;
}

.cookie-banner button:hover {
  background: #ddd;
}

.cookie-banner button:first-child:hover {
  background: var(--primary-dark);
}

.cookie-banner.hidden {
  display: none;
}

/* Body-Scroll verhindern wenn Banner aktiv */
.no-scroll {
  overflow: hidden;
}

@media (max-width: 600px) {
  .cookie-banner {
    width: 80%;
  }

  .cookie-actions {
    flex-direction: column;
    align-items: flex-start;
  }
}
