/* ============================================================
   JaJa Consent-Banner Styles
   Im JaJa-Look: warm, freundlich, klare 3-Button-Logik.
   ============================================================ */

.jc-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9000;
  background: #fff;
  border-top: 1px solid #e8e6e0;
  box-shadow: 0 -12px 48px -12px rgba(0,0,0,0.18);
  padding: 22px 24px 26px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  color: #1d1d1f;
  line-height: 1.5;
  font-size: 15px;
  animation: jcSlideUp 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

.jc-banner-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  gap: 24px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.jc-text {
  flex: 1 1 320px;
  min-width: 260px;
}

.jc-title {
  font-family: "Roboto Slab", Georgia, serif;
  font-weight: 700;
  font-size: 18px;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

.jc-text p {
  margin: 0 0 8px;
  font-size: 14px;
  color: #545458;
}

.jc-text a {
  color: #e85f3d;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.jc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.jc-btn {
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 11px 18px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.18s ease, background 0.18s ease;
  min-height: 42px;
  white-space: nowrap;
}
.jc-btn:hover { transform: translateY(-1px); }

.jc-btn-primary {
  background: #1d1d1f;
  color: #fff;
}
.jc-btn-primary:hover {
  background: #ff7a59;
  color: #fff;
}

.jc-btn-secondary {
  background: #fafaf7;
  color: #1d1d1f;
  border-color: #c8c5be;
}
.jc-btn-secondary:hover {
  background: #fff1ec;
  border-color: #ff7a59;
  color: #e85f3d;
}

.jc-btn-link {
  background: transparent;
  color: #545458;
  border: none;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 11px 8px;
}
.jc-btn-link:hover { color: #e85f3d; }

/* Detail-View (nach "Einstellungen"-Klick) */

.jc-detail {
  display: none;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #e8e6e0;
  width: 100%;
}
.jc-detail.is-open { display: block; }

.jc-category {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px dashed #e8e6e0;
}
.jc-category:last-child { border-bottom: none; }

.jc-category-text { flex: 1; }
.jc-category-title {
  font-weight: 600;
  margin: 0 0 4px;
  font-size: 14px;
  color: #1d1d1f;
}
.jc-category-desc {
  font-size: 13px;
  color: #545458;
  margin: 0;
}

.jc-toggle {
  appearance: none;
  -webkit-appearance: none;
  width: 44px;
  height: 24px;
  background: #d6d2c8;
  border: none;
  border-radius: 999px;
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.18s ease;
  margin-top: 4px;
}
.jc-toggle::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.18s ease;
}
.jc-toggle:checked {
  background: #1f9a5c;
}
.jc-toggle:checked::after {
  transform: translateX(20px);
}
.jc-toggle:disabled {
  background: #1f9a5c;
  opacity: 0.5;
  cursor: not-allowed;
}

@keyframes jcSlideUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Mobile */

@media (max-width: 640px) {
  .jc-banner { padding: 18px 18px 22px; }
  .jc-banner-inner { gap: 16px; }
  .jc-actions { width: 100%; }
  .jc-btn { flex: 1 1 100%; }
  .jc-btn-link { flex: 0 0 auto; }
}

@media (prefers-reduced-motion: reduce) {
  .jc-banner { animation: none; }
  .jc-btn:hover { transform: none; }
}
