/* Overlay */
#cookie-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.65);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
  z-index: 9998;
}

/* Modal */
#cookie-modal {
  position: fixed;
  top: -100vh;
  left: 50%;
  transform: translateX(-50%);
  width: 95%;
  max-width: 620px;
  opacity: 0;
  pointer-events: none;
  transition: top .45s cubic-bezier(.18,.88,.42,1.1), opacity .3s;
  z-index: 9999;
}

#cookie-overlay.active {
  opacity: 1;
  pointer-events: all;
}

#cookie-modal.active {
  top: 70px;
  opacity: 1;
  pointer-events: all;
}

/* Box */
.cookie-box {
  background: #fff;
  padding: 35px 32px;
  border-radius: 16px;
  border: 1px solid #dce7ff;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
  position: relative;
}

/* Top (Logo + X) */
.cookie-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cookie-logo {
  height: 64px;
  width: auto;
  object-fit: contain;
}

/* Close Button */
.cookie-close {
  background: none;
  border: none;
  font-size: 36px;
  cursor: pointer;
  color: #000;
  line-height: 1;
  margin-top: -8px;
}

/* Title */
.cookie-title {
  font-size: 1.7rem;
  margin: 20px 0 10px 0;
  font-weight: 900;
  color: #0047c7;
}

/* Text */
.cookie-text {
  font-size: .95rem;
  line-height: 1.55;
  color: #333;
  margin-bottom: 15px;
}

.cookie-text a {
  color: #005bff;
}

/* Optionen */
.cookie-option {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid #eee;
  margin-left: 10px; /* mehr nach rechts */
}

.cookie-option input {
  transform: scale(1.3);
  margin-top: 3px;
}

.option-text strong {
  font-size: 1rem;
  color: #000;
}

.option-text p {
  margin: 2px 0 0 0;
  font-size: .87rem;
  color: #555;
}

/* Buttons */
.cookie-buttons {
  margin-top: 25px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cookie-btn {
  display: block;
  width: 100%;
  padding: 14px;
  border-radius: 8px;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  text-align: center;
  transition: background .25s;
}

/* Blau */
.cookie-btn.primary {
  background: #005bff;
  color: #fff;
}
.cookie-btn.primary:hover {
  background: #0042c5;
}

/* Schwarz */
.cookie-btn.secondary {
  background: #000;
  color: #fff;
}
.cookie-btn.secondary:hover {
  background: #222;
}

/* Hellgrauer Button */
.cookie-btn.ghost {
  background: #f2f2f2;
  color: #000;
}
.cookie-btn.ghost:hover {
  background: #e1e1e1;
}

/* Scroll lock */
body.noscroll {
  overflow: hidden;
}


/* NUR Handy */
@media (max-width: 700px) {

  /* Modal mittig */
  #cookie-modal {
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    max-height: 90vh;
    width: 92%;
  }

  /* Inhalt scrollbar machen */
  .cookie-box {
    max-height: 90vh;
    overflow-y: auto;
  }
}