@keyframes cookieBarFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.cookie-bar {
  display: flex;
  flex-direction: column;

  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  height: fit-content;
  width: fit-content;
  
  padding: 1rem 1.5rem;
  margin: 0 1rem;
  
  font-size: 1rem;
  text-align: justify;  
  color: rgb(0, 0, 0);
  
  background-color: #797979;
  /*border: 0.1rem solid black;*/
  border-radius: 0.3rem;
  box-shadow: 0 0 3rem rgba(0, 0, 0, 0.5);

  z-index: 1000;

  background-image:
    linear-gradient(rgba(255,255,255,0.85), rgba(255,255,255,0.75)), /* weißer Schleier */
    url('../img/logo.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  
  opacity: 0;
  animation: cookieBarFadeIn 0.7s cubic-bezier(.4,0,.2,1) forwards;
}

.cookie-bar p a {
  color: #0066cc;
  text-decoration: none;
}

.cookie-bar h1 {
    font-size: 1.5rem;
    text-align: left;
}

.cookie-button-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
}

.cookie-button-container a {
  display: inline-block;
  padding: 0.75rem 1rem;
  border-radius: 0.2rem;
  text-decoration: none;
  cursor: pointer;
  font-weight: 600;
  user-select: none;
  text-align: center;
}

/* Button-Farben */
.cookie-consent__accept  {
  background-color: rgb(44, 15, 1);
  color: white;
}

.cookie-consent__decline, .cookie-consent__settings {
  background-color: #797979;
  color: white;
}

/* Tablet (ab 601px) */
@media (min-width: 601px) and (max-width: 1024px) {
  .cookie-bar {
    align-items: center; 
    width: 60vw;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10rem rgba(0, 0, 0, 0.5);
    background-image:
    linear-gradient(rgba(255,255,255,0.85), rgba(255,255,255,0.75)), /* weißer Schleier */
    url('../img/logo.png');
  }

  .cookie-button-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 0.5rem;
    width: 100%; 
    margin-top: 1rem;
  }

}

/* Desktop (ab 1025px) */
@media (min-width: 1025px) {
  .cookie-bar {
    align-items: center; 
    width: 30vw;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .cookie-bar p {
    padding-bottom: 0.5rem;
  }

  .cookie-button-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 0.5rem;
    width: 100%; 
    margin-top: 0.5rem;
  }

}