/*--------------------------------------------------------------
# Cookie-Consent-Banner – Charity-Hiker e.V.
# Farben & Schriften an assets/css/style.css angelehnt
--------------------------------------------------------------*/
#ch-cookie-overlay {
  position: fixed;
  inset: 0;
  background: rgba(43, 35, 32, 0.55);
  z-index: 200000;
  display: none;
}

#ch-cookie-overlay.ch-visible {
  display: block;
}

#ch-cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200001;
  background: #2b2320;
  color: #f1eeed;
  font-family: "Open Sans", sans-serif;
  padding: 24px;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.25);
  transform: translateY(110%);
  transition: transform 0.5s ease;
}

#ch-cookie-banner.ch-visible {
  transform: translateY(0);
}

.ch-cookie-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
}

.ch-cookie-text {
  flex: 1 1 420px;
}

.ch-cookie-text h3 {
  font-family: "Poppins", sans-serif;
  font-size: 17px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 8px 0;
}

.ch-cookie-text p {
  font-size: 14px;
  line-height: 1.6;
  color: #cfc6c2;
  margin: 0;
}

.ch-cookie-text a {
  color: #f0b71f;
  text-decoration: underline;
}

.ch-cookie-text a:hover {
  color: #ffcc00;
}

.ch-cookie-actions {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ch-btn {
  font-family: "Muli", sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.3px;
  padding: 11px 22px;
  border-radius: 4px;
  cursor: pointer;
  transition: 0.3s;
  border: 2px solid #f0b71f;
  white-space: nowrap;
}

.ch-btn-primary {
  background: #f0b71f;
  color: #2b2320;
}

.ch-btn-primary:hover {
  background: #ffcc00;
  border-color: #ffcc00;
  color: #2b2320;
}

.ch-btn-secondary {
  background: transparent;
  color: #fff;
}

.ch-btn-secondary:hover {
  background: rgba(240, 183, 31, 0.15);
}

.ch-btn-text {
  background: transparent;
  border: none;
  color: #cfc6c2;
  text-decoration: underline;
  padding: 11px 10px;
}

.ch-btn-text:hover {
  color: #f0b71f;
}

/* --- Einstellungen-Panel --- */
#ch-cookie-settings {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.96);
  width: 92%;
  max-width: 620px;
  max-height: 85vh;
  overflow-y: auto;
  background: #fff;
  color: #2b2320;
  border-radius: 8px;
  z-index: 200002;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
  font-family: "Open Sans", sans-serif;
  padding: 0;
  display: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}

#ch-cookie-settings.ch-visible {
  display: block;
  opacity: 1;
}

.ch-settings-header {
  padding: 24px 28px 16px 28px;
  border-bottom: 1px solid #f1eeed;
}

.ch-settings-header h3 {
  font-family: "Poppins", sans-serif;
  font-size: 19px;
  font-weight: 600;
  margin: 0 0 6px 0;
  color: #2b2320;
}

.ch-settings-header p {
  font-size: 14px;
  color: #65534c;
  margin: 0;
  line-height: 1.6;
}

.ch-settings-body {
  padding: 8px 28px;
}

.ch-cookie-category {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid #f1eeed;
}

.ch-cookie-category:last-child {
  border-bottom: none;
}

.ch-cookie-category-text h4 {
  font-family: "Poppins", sans-serif;
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 4px 0;
  color: #2b2320;
}

.ch-cookie-category-text p {
  font-size: 13px;
  color: #90847f;
  margin: 0;
  line-height: 1.6;
}

/* Toggle-Switch */
.ch-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex: 0 0 auto;
  margin-top: 2px;
}

.ch-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.ch-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #ded5d2;
  border-radius: 24px;
  transition: 0.3s;
}

.ch-slider::before {
  content: "";
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  top: 3px;
  background-color: #fff;
  border-radius: 50%;
  transition: 0.3s;
}

.ch-switch input:checked + .ch-slider {
  background-color: #f0b71f;
}

.ch-switch input:checked + .ch-slider::before {
  transform: translateX(20px);
}

.ch-switch input:disabled + .ch-slider {
  background-color: #f0b71f;
  opacity: 0.55;
  cursor: not-allowed;
}

.ch-settings-footer {
  padding: 20px 28px 28px 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.ch-settings-close {
  position: absolute;
  top: 16px;
  right: 16px;
  border: none;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  color: #90847f;
  cursor: pointer;
  padding: 6px;
}

.ch-settings-close:hover {
  color: #2b2320;
}

@media (max-width: 576px) {
  #ch-cookie-banner {
    padding: 18px;
  }

  .ch-cookie-actions {
    width: 100%;
  }

  .ch-btn {
    flex: 1 1 auto;
    text-align: center;
  }
}
