/* =========================
   COOKIE CONSENT – FINAL
========================= */

/* ---------- Banner ---------- */

#cc-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  z-index: 9999;
}

.cc-banner__bg {
  width: 100%;
  background: rgba(31, 52, 65, 0.95);
  padding: 20px 0;
}

.cc-banner__inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Titel */
.cc-title {
  display: block;
  font-family: 'Averia Libre', 'Trebuchet MS', sans-serif;
  font-size: 22px;
  color: #F6BC3D;
  margin-bottom: 8px;
}

/* Text */
.cc-text {
  color: #f3efdc;
  margin: 0 0 15px 0;
  line-height: 1.45;
}

.cc-darktext {
  color: rgba(31, 52, 65, 0.95);
  margin: 0 0 15px 0;
  line-height: 1.45;
}

/* Buttons im Banner */
.cc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Buttons ---------- */

#cc-banner button,
#cc-modal button,
#cc-manage-btn {
  display: inline-block;
  padding: 10px 12px;
  margin-top: 10px;
  font-family: 'Averia Libre', 'Trebuchet MS', sans-serif;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.15s ease-in-out;
  color: #fff;
}

/* Akzeptieren + Speichern */
#cc-accept,
#cc-modal-save {
  background-color: #2C8B71;
}

/* Ablehnen */
#cc-reject,
#cc-modal-reject {
  background-color: #BA4C17;
}

/* Hover */
#cc-banner button:hover,
#cc-modal button:hover,
#cc-manage-btn:hover {
  animation: pop 0.3s;
  filter: brightness(1.1);
}

/* Manage Button */
#cc-manage-btn {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 9998;
  background-color: #26566F;
}

#cc-settings {
  background-color: #26566F;
}

/* ---------- Modal ---------- */

#cc-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
}

#cc-modal.is-open {
  display: block;
}

.cc-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.cc-modal__dialog {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 80px auto;
  background: #fff;
  border-radius: 6px;
  padding: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.22);
}

/* Modal Titel */
.cc-modal__dialog h3 {
  font-family: 'Averia Libre', 'Trebuchet MS', sans-serif;
  font-size: 28px;
  color: #26566F;
  margin: 0 0 18px 0;
}

/* ---------- Checkboxen ---------- */

.cc-check {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: start;
  cursor: pointer;
  margin-bottom: 18px;
}

.cc-check input {
  position: absolute;
  opacity: 0;
}

/* Box */
.cc-check__box {
  width: 22px;
  height: 22px;
  border: 2px solid #26566F;
  background: #fff;
  position: relative;
  margin-top: 3px;
}

/* Content */
.cc-check__content {
  display: flex;
  flex-direction: column;
}

.cc-check__content strong {
  font-family: 'Averia Libre', 'Trebuchet MS', sans-serif;
  font-size: 16px;
  color: #26566F;
  line-height: 1.2;
  margin-top: -5px;
}

.cc-check__content small {
  font-size: 13px;
  color: #555;
  line-height: 1.4;
  margin-top: 2px;
}

/* Checked */
.cc-check input:checked + .cc-check__box {
  background: #F6BC3D;
  border-color: #F6BC3D;
}

.cc-check input:checked + .cc-check__box::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 1px;
  width: 6px;
  height: 12px;
  border: solid #1c2a33;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Hover */
.cc-check:hover .cc-check__box {
  border-color: #F6BC3D;
}

/* Fokus */
.cc-check input:focus + .cc-check__box {
  box-shadow: 0 0 0 3px rgba(246, 188, 61, 0.25);
}

/* Modal Buttons */
.cc-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

/* ---------- Mobile ---------- */

@media screen and (max-width: 768px) {
  .cc-title {
    font-size: 20px;
  }

  .cc-actions,
  .cc-modal__actions {
    flex-direction: column;
    align-items: stretch;
  }

  #cc-manage-btn {
    left: 10px;
    bottom: 10px;
  }

  .cc-modal__dialog {
    margin: 20px 10px;
    padding: 18px;
  }
}