/* =======================================================
 *  MYDECO Cookie Consent Banner - DSGVO-konform
 *  Farbschema: Rose #E1A6AD, Grau #6a6a6a, Weiss #fff
 *  Font: CormorantGaramond (lokal geladen)
 * ======================================================= */

/* ---- Overlay ---- */
#cc-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.55);
  z-index: 99998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

#cc-overlay.cc-visible {
  opacity: 1;
  visibility: visible;
}

/* ---- Banner (bottom bar) ---- */
#cc-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99999;
  background: #fff;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.12);
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: "CormorantGaramond", "Georgia", serif;
}

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

.cc-banner-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 32px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.cc-banner-text {
  flex: 1;
}

.cc-banner-text h3 {
  font-family: "CormorantGaramond", "Georgia", serif;
  font-size: 22px;
  font-weight: 700;
  color: #333;
  margin: 0 0 6px 0;
  line-height: 1.3;
}

.cc-banner-text p {
  font-size: 15px;
  line-height: 1.6;
  color: #6a6a6a;
  margin: 0;
}

.cc-banner-text a {
  color: #E1A6AD;
  text-decoration: underline;
  font-weight: 600;
}

.cc-banner-text a:hover {
  color: #c4858e;
}

.cc-banner-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}

/* ---- Buttons ---- */
.cc-btn {
  font-family: "CormorantGaramond", "Georgia", serif;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  padding: 11px 28px;
  transition: all 0.25s ease;
  white-space: nowrap;
  text-align: center;
  letter-spacing: 0.5px;
  line-height: 1.4;
}

.cc-btn:focus {
  outline: 2px solid #E1A6AD;
  outline-offset: 2px;
}

.cc-btn-primary {
  background: #E1A6AD;
  color: #fff;
}

.cc-btn-primary:hover {
  background: #c4858e;
  transform: scale(0.98);
}

.cc-btn-secondary {
  background: transparent;
  color: #6a6a6a;
  border: 2px solid #d0d0d0;
}

.cc-btn-secondary:hover {
  border-color: #E1A6AD;
  color: #E1A6AD;
}

.cc-btn-link {
  background: transparent;
  color: #999;
  padding: 8px 28px;
  font-size: 14px;
}

.cc-btn-link:hover {
  color: #E1A6AD;
}

/* ---- Settings Modal ---- */
#cc-settings {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.92);
  z-index: 100000;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.2);
  width: 94%;
  max-width: 580px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
  font-family: "CormorantGaramond", "Georgia", serif;
}

#cc-settings.cc-visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.cc-settings-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 28px 16px;
  border-bottom: 1px solid #eee;
}

.cc-settings-header h3 {
  font-family: "CormorantGaramond", "Georgia", serif;
  font-size: 22px;
  font-weight: 700;
  color: #333;
  margin: 0;
}

.cc-close {
  background: none;
  border: none;
  font-size: 28px;
  color: #999;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: color 0.2s ease;
}

.cc-close:hover {
  color: #E1A6AD;
}

.cc-settings-body {
  padding: 8px 28px 16px;
  overflow-y: auto;
  flex: 1;
}

.cc-settings-intro {
  font-size: 15px;
  color: #6a6a6a;
  line-height: 1.6;
  margin: 12px 0 20px;
}

.cc-settings-intro a {
  color: #E1A6AD;
  text-decoration: underline;
}

/* ---- Category ---- */
.cc-category {
  border: 1px solid #eee;
  border-radius: 4px;
  margin-bottom: 12px;
  overflow: hidden;
}

.cc-category-header {
  display: flex;
  align-items: center;
  padding: 14px 18px;
  background: #fafafa;
  gap: 14px;
  cursor: pointer;
  user-select: none;
}

.cc-category-header:hover {
  background: #f5f0f1;
}

.cc-category-name {
  font-size: 17px;
  font-weight: 700;
  color: #333;
  flex: 1;
}

.cc-badge {
  font-size: 12px;
  color: #E1A6AD;
  background: rgba(225, 166, 173, 0.12);
  padding: 3px 10px;
  border-radius: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.cc-category-body {
  padding: 0 18px 14px;
  display: none;
}

.cc-category.cc-open .cc-category-body {
  display: block;
}

.cc-category-desc {
  font-size: 14px;
  color: #6a6a6a;
  line-height: 1.6;
  margin: 10px 0 6px;
}

.cc-category-services {
  font-size: 13px;
  color: #999;
  margin: 4px 0 0;
}

.cc-category-services strong {
  color: #6a6a6a;
}

/* ---- Expand Arrow ---- */
.cc-arrow {
  width: 18px;
  height: 18px;
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.cc-arrow svg {
  display: block;
  width: 100%;
  height: 100%;
}

.cc-category.cc-open .cc-arrow {
  transform: rotate(180deg);
}

/* ---- Toggle Switch ---- */
.cc-toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.cc-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.cc-toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  border-radius: 24px;
  transition: background-color 0.3s ease;
}

.cc-toggle-slider::before {
  content: "";
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.3s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.cc-toggle input:checked + .cc-toggle-slider {
  background-color: #E1A6AD;
}

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

.cc-toggle input:disabled + .cc-toggle-slider {
  background-color: #E1A6AD;
  opacity: 0.6;
  cursor: default;
}

.cc-toggle input:disabled:checked + .cc-toggle-slider::before {
  transform: translateX(20px);
}

.cc-toggle input:focus + .cc-toggle-slider {
  box-shadow: 0 0 0 2px rgba(225, 166, 173, 0.4);
}

/* ---- Settings Footer ---- */
.cc-settings-footer {
  display: flex;
  gap: 10px;
  padding: 16px 28px 22px;
  border-top: 1px solid #eee;
  justify-content: flex-end;
}

/* ---- Footer Cookie-Link ---- */
.cc-footer-link {
  cursor: pointer;
}

/* ---- reCAPTCHA Placeholder ---- */
.cc-recaptcha-notice {
  background: #faf5f6;
  border: 1px solid #E1A6AD;
  border-radius: 4px;
  padding: 14px 18px;
  font-family: "CormorantGaramond", "Georgia", serif;
  font-size: 14px;
  color: #6a6a6a;
  line-height: 1.6;
  margin: 8px 0;
}

.cc-recaptcha-notice a {
  color: #E1A6AD;
  cursor: pointer;
  text-decoration: underline;
  font-weight: 600;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .cc-banner-inner {
    flex-direction: column;
    padding: 22px 20px;
    gap: 18px;
    text-align: center;
  }

  .cc-banner-text h3 {
    font-size: 20px;
  }

  .cc-banner-text p {
    font-size: 14px;
  }

  .cc-banner-actions {
    width: 100%;
  }

  .cc-btn {
    width: 100%;
    font-size: 15px;
    padding: 10px 20px;
  }

  #cc-settings {
    width: 96%;
    max-height: 85vh;
  }

  .cc-settings-header {
    padding: 18px 20px 14px;
  }

  .cc-settings-body {
    padding: 8px 20px 12px;
  }

  .cc-settings-footer {
    padding: 14px 20px 18px;
    flex-direction: column;
  }

  .cc-settings-footer .cc-btn {
    width: 100%;
  }

  .cc-category-header {
    padding: 12px 14px;
  }

}

@media (max-width: 400px) {
  .cc-banner-inner {
    padding: 18px 16px;
  }

  .cc-banner-text h3 {
    font-size: 18px;
  }

  .cc-settings-header h3 {
    font-size: 19px;
  }
}
