/* ============================================
   Cookie Consent Banner — Della Schiava CI
   Farben: #8c6d3f (Gold), #222 (Dunkel), #fff
   Schrift: Nunito (Primary), Old Standard TT (Secondary)
   ============================================ */

/* Banner wrapper — fullscreen overlay + centered content */
.ds-consent-wrap {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.5);
  font-family: 'Nunito', Arial, sans-serif;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

/* Visible state */
.ds-consent-wrap.ds-consent-visible {
  display: flex;
}

/* Banner box — centered, no rounded corners */
.ds-consent-banner {
  background: #222;
  color: rgba(255, 255, 255, 0.85);
  padding: 32px 36px 28px;
  max-width: 680px;
  width: 100%;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.35);
  position: relative;
  z-index: 1;
}

/* Title */
.ds-consent-banner h3 {
  font-family: 'Old Standard TT', Arial, sans-serif;
  font-size: 22px;
  font-weight: 400;
  color: #fff;
  margin: 0 0 12px 0;
  line-height: 1.3;
}

/* Text */
.ds-consent-banner p {
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 20px 0;
  color: rgba(255, 255, 255, 0.7);
}
.ds-consent-banner a {
  color: #fff;
  text-decoration: underline;
}
.ds-consent-banner a:hover {
  color: #fff;
}

/* Button row */
.ds-consent-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

/* Primary button (Alle akzeptieren) */
.ds-consent-btn-accept {
  background: #8c6d3f;
  color: #fff;
  border: none;
  padding: 12px 28px;
  font-size: 14px;
  font-weight: 700;
  font-family: 'Nunito', Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: background 0.2s ease;
}
.ds-consent-btn-accept:hover {
  background: #fff;
  color: #222;
}

/* Secondary button (Nur notwendige) */
.ds-consent-btn-reject {
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 12px 28px;
  font-size: 14px;
  font-weight: 700;
  font-family: 'Nunito', Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.ds-consent-btn-reject:hover {
  border-color: #fff;
  color: #fff;
}

/* Settings link */
.ds-consent-btn-settings {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
  font-family: 'Nunito', Arial, sans-serif;
  cursor: pointer;
  padding: 8px 4px;
  text-decoration: underline;
  margin-left: auto;
}
.ds-consent-btn-settings:hover {
  color: #8c6d3f;
}

/* Settings panel */
.ds-consent-settings {
  display: none;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Category row */
.ds-consent-category {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.ds-consent-category:first-child {
  padding-top: 0;
}
.ds-consent-category:last-child {
  border-bottom: none;
}
.ds-consent-category-info h4 {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 2px 0;
  font-family: 'Nunito', Arial, sans-serif;
}
.ds-consent-category-info p {
  font-size: 12px;
  margin: 0;
  color: rgba(255, 255, 255, 0.5);
}

/* Toggle switch */
.ds-consent-toggle {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
  margin-left: 16px;
}
.ds-consent-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}
.ds-consent-toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  transition: background 0.2s ease;
}
.ds-consent-toggle-slider:before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s ease;
}
.ds-consent-toggle input:checked + .ds-consent-toggle-slider {
  background: #8c6d3f;
}
.ds-consent-toggle input:checked + .ds-consent-toggle-slider:before {
  transform: translateX(20px);
}
.ds-consent-toggle input:disabled + .ds-consent-toggle-slider {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Save button in settings — same style as accept button */
.ds-consent-btn-save {
  background: #8c6d3f;
  color: #fff;
  border: none;
  padding: 12px 28px;
  font-size: 14px;
  font-weight: 700;
  font-family: 'Nunito', Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  margin-top: 14px;
  transition: background 0.2s ease, color 0.2s ease;
}
.ds-consent-btn-save:hover {
  background: #fff;
  color: #222;
}

/* Mobile responsive */
@media (max-width: 600px) {
  .ds-consent-wrap {
    padding: 10px;
  }
  .ds-consent-banner {
    padding: 22px 20px 20px;
  }
  .ds-consent-banner h3 {
    font-size: 19px;
  }
  .ds-consent-buttons {
    flex-direction: column;
  }
  .ds-consent-btn-accept,
  .ds-consent-btn-reject {
    width: 100%;
    text-align: center;
  }
  .ds-consent-btn-settings {
    margin-left: 0;
    text-align: center;
  }
}
