/* ========================================
   COOKIE BANNER
   ======================================== */

.cookie-banner {
  position: fixed;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 99999;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;

  max-width: 1100px;
  margin: 0 auto;

  padding: 24px 28px;

  background: #ffffff;
  color: #222222;

  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;

  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.15);

  font-family: Arial, Helvetica, sans-serif;
}

/* Text */

.cookie-banner__text {
  flex: 1;
  min-width: 0;
}

.cookie-banner__text h2 {
  margin: 0 0 8px;

  font-size: 20px;
  line-height: 1.3;
  font-weight: 600;

  color: #222222;
}

.cookie-banner__text p {
  margin: 0 0 8px;

  font-size: 14px;
  line-height: 1.6;

  color: #555555;
}

.cookie-banner__link {
  display: inline-block;

  font-size: 14px;
  line-height: 1.4;

  color: #222222;
  text-decoration: underline;

  transition: opacity 0.2s ease;
}

.cookie-banner__link:hover {
  opacity: 0.65;
}

/* Buttons */

.cookie-banner__actions {
  display: flex;
  align-items: center;
  gap: 10px;

  flex-shrink: 0;
}

.cookie-btn {
  min-height: 44px;
  padding: 10px 18px;

  border-radius: 8px;

  font-family: inherit;
  font-size: 14px;
  font-weight: 600;

  cursor: pointer;

  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    opacity 0.2s ease;
}

/* Nur notwendige */

.cookie-btn--secondary {
  background: transparent;
  color: #333333;

  border: 1px solid #cccccc;
}

.cookie-btn--secondary:hover {
  background: #f5f5f5;
}

/* Alle akzeptieren */

.cookie-btn--primary {
  background: #222222;
  color: #ffffff;

  border: 1px solid #222222;
}

.cookie-btn--primary:hover {
  background: #444444;
  border-color: #444444;
}

/* Focus */

.cookie-btn:focus-visible,
.cookie-banner__link:focus-visible {
  outline: 2px solid #222222;
  outline-offset: 3px;
}

/* ========================================
   TABLET
   ======================================== */

@media (max-width: 800px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;

    gap: 18px;

    left: 16px;
    right: 16px;
    bottom: 16px;

    padding: 22px;
  }

  .cookie-banner__actions {
    width: 100%;
  }

  .cookie-btn {
    flex: 1;
  }
}

/* ========================================
   MOBILE
   ======================================== */

@media (max-width: 500px) {
  .cookie-banner {
    left: 10px;
    right: 10px;
    bottom: 10px;

    padding: 18px;

    border-radius: 12px;
  }

  .cookie-banner__text h2 {
    font-size: 18px;
  }

  .cookie-banner__text p {
    font-size: 13px;
    line-height: 1.5;
  }

  .cookie-banner__link {
    font-size: 13px;
  }

  .cookie-banner__actions {
    flex-direction: column;
    gap: 8px;
  }

  .cookie-btn {
    width: 100%;
    min-height: 46px;
  }
}
