/* ════════════════════════════════════════════════
   505 Cookie Banner — Brand Style
   ════════════════════════════════════════════════ */

.cb-banner, .cb-modal-overlay {
  font-family: 'Inter', -apple-system, sans-serif;
  color: #1a0008;
  box-sizing: border-box;
}
.cb-banner *, .cb-modal-overlay * { box-sizing: border-box; }

/* ─── Banner Card (unten rechts) ────────────────── */
.cb-banner {
  position: fixed;
  bottom: 24px;
  right: 24px;
  max-width: 420px;
  width: calc(100% - 48px);
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 14px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.18), 0 4px 12px rgba(0,0,0,0.06);
  padding: 24px;
  z-index: 9999;
  animation: cbBannerIn 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes cbBannerIn {
  from { transform: translateY(140%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.cb-banner.cb-hide {
  animation: cbBannerOut 0.3s cubic-bezier(0.5, 0, 0.75, 0) forwards;
  pointer-events: none;
}
@keyframes cbBannerOut {
  from { transform: translateY(0);    opacity: 1; }
  to   { transform: translateY(140%); opacity: 0; }
}

.cb-title {
  font-family: 'Sora', sans-serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin: 0 0 8px;
  color: #1a0008;
}
.cb-text {
  font-size: 13.5px;
  line-height: 1.55;
  color: #6b6b6b;
  margin: 0 0 16px;
}
.cb-text a {
  color: #B8253A;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cb-text a:hover { color: #8B1525; }

.cb-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
  line-height: 1;
  text-align: center;
}
.cb-btn--primary {
  background: linear-gradient(135deg, #E04468 0%, #B02038 50%, #8B1525 100%);
  color: #fff;
  box-shadow: 0 4px 16px rgba(184,37,58,0.30);
}
.cb-btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(184,37,58,0.42);
}
.cb-btn--ghost {
  background: #fff;
  color: #1a0008;
  border: 1px solid #d0d0d0;
}
.cb-btn--ghost:hover {
  border-color: #1a0008;
  background: #f7f7f7;
}
.cb-btn--link {
  background: transparent;
  color: #6b6b6b;
  padding: 6px 0;
  font-weight: 500;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cb-btn--link:hover { color: #B8253A; }

/* ─── Modal (Einstellungen) ─────────────────────── */
.cb-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13, 0, 5, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 10000;
}
.cb-modal-overlay.cb-open { display: flex; animation: cbOverlayIn 0.25s ease-out; }
@keyframes cbOverlayIn { from { opacity: 0 } to { opacity: 1 } }

.cb-modal {
  background: #fff;
  border-radius: 16px;
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.3);
  animation: cbModalIn 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes cbModalIn {
  from { transform: translateY(16px) scale(0.98); opacity: 0; }
  to   { transform: translateY(0)    scale(1);    opacity: 1; }
}

.cb-modal-title {
  font-family: 'Sora', sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin: 0 0 6px;
}
.cb-modal-intro {
  font-size: 14px;
  line-height: 1.55;
  color: #6b6b6b;
  margin: 0 0 24px;
}

.cb-category {
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 16px 18px;
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.cb-category-text { flex: 1; }
.cb-category-name {
  font-family: 'Sora', sans-serif;
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 3px;
  letter-spacing: -0.2px;
}
.cb-category-desc {
  font-size: 12.5px;
  line-height: 1.5;
  color: #6b6b6b;
  margin: 0;
}

/* Toggle */
.cb-toggle {
  position: relative;
  width: 40px;
  height: 22px;
  flex-shrink: 0;
  margin-top: 2px;
}
.cb-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}
.cb-toggle-slider {
  position: absolute;
  inset: 0;
  background: #d0d0d0;
  border-radius: 22px;
  cursor: pointer;
  transition: background 0.2s;
}
.cb-toggle-slider::before {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.cb-toggle input:checked + .cb-toggle-slider {
  background: #B8253A;
}
.cb-toggle input:checked + .cb-toggle-slider::before {
  transform: translateX(18px);
}
.cb-toggle input:disabled + .cb-toggle-slider {
  background: #B8253A;
  opacity: 0.5;
  cursor: not-allowed;
}

.cb-modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 22px;
  flex-wrap: wrap;
}
.cb-modal-actions .cb-btn { flex: 1; min-width: 140px; }

/* ─── Mobile ────────────────────────────────────── */
@media (max-width: 640px) {
  .cb-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    max-width: none;
    width: auto;
    padding: 20px;
    border-radius: 12px;
  }
  .cb-title { font-size: 16px; }
  .cb-modal { padding: 24px; border-radius: 12px; }
  .cb-modal-title { font-size: 19px; }
  .cb-modal-actions { flex-direction: column; }
  .cb-modal-actions .cb-btn { width: 100%; }
}
