/* --- Basis-Container --- */
#cookie-overlay {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 100000;
  display: none;
  pointer-events: none; /* Verhindert Klick-Blockade des Rests der Seite */
  padding: 30px;
  box-sizing: border-box;
}

/* --- Banner Karte --- */
#cookie-banner {
  pointer-events: auto; /* Reaktiviert Klicks für den Banner */
  background: #ffffff;
  color: #1e293b;
  padding: 2rem;
  border-radius: 20px;
  width: 100%;
  box-shadow: 0 20px 50px rgba(0,0,0,0.15), 0 0 1px rgba(0,0,0,0.1);
  border: 1px solid rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  
  /* Initialer Zustand für Animation */
  transform: translateY(40px);
  opacity: 0;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Sichtbarer Zustand */
#cookie-overlay.show #cookie-banner {
  transform: translateY(0);
  opacity: 1;
}

/* --- Typografie --- */
.cookie-content h2 {
  margin: 0 0 0.75rem 0;
  font-size: 1.25rem;
  font-weight: 900;
  color: #000;
  letter-spacing: -0.02em;
}

.cookie-content p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #64748b;
}

#cookie-banner a {
  color: #000;
  text-decoration: underline;
  font-weight: 600;
}

/* --- Buttons --- */
.cookie-buttons {
  display: flex;
  gap: 12px;
}

.cookie-buttons button {
  flex: 1;
  padding: 14px 20px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.btn-secondary {
  background: #f1f5f9;
  color: #475569;
}
.btn-secondary:hover {
  background: #e2e8f0;
}

.btn-primary {
  background: #000;
  color: #fff;
}
.btn-primary:hover {
  transform: scale(1.03);
  opacity: 0.9;
}

/* --- DESKTOP (Floating Card unten links) --- */
@media (min-width: 768px) {
    #cookie-overlay {
        justify-content: flex-start; /* Links positioniert */
    }
    #cookie-banner {
        max-width: 380px; /* Schön kompakt am PC */
        padding: 2.2rem;
    }
}

/* --- MOBILE (Bottom Sheet Optik) --- */
@media (max-width: 767px) {
    #cookie-overlay {
        padding: 15px;
    }
    #cookie-banner {
        border-radius: 24px;
        padding: 1.8rem;
    }
    .cookie-buttons {
        flex-direction: column; /* Buttons untereinander auf dem Handy */
    }
}
