/**
 * ECC Cookie-Consent-Banner Styles v1.0
 * easy custom cable GmbH — Stand: 02.05.2026
 *
 * Dark Theme matching ECC-Branding (Orange #f97316).
 * Alle Klassen mit Prefix `ecc-cb__` um Konflikte mit Site-CSS zu vermeiden.
 */

.ecc-cb__banner,
.ecc-cb__overlay {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  color: #f9fafb;
  box-sizing: border-box;
}
.ecc-cb__banner *,
.ecc-cb__overlay * { box-sizing: border-box; }

/* ============================================================
   BANNER (untere Bildschirmleiste, nicht-modal)
   ============================================================ */
.ecc-cb__banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 99998;
  padding: 18px;
  transform: translateY(100%);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}
.ecc-cb__banner--show { transform: translateY(0); pointer-events: auto; }

.ecc-cb__banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  background: linear-gradient(145deg, #141414 0%, #1a1a1a 100%);
  border: 1px solid #2a2d35;
  border-radius: 18px;
  padding: 22px 26px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 60px rgba(255, 122, 26, 0.12);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
}

.ecc-cb__icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: linear-gradient(145deg, #ff6a00, #d94800);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
  box-shadow: 0 0 32px rgba(255, 106, 0, 0.6);
  animation: ecc-cb__icon-glow 3.6s ease-in-out infinite;
}
@keyframes ecc-cb__icon-glow {
  0%, 100% { box-shadow: 0 0 28px rgba(255, 106, 0, 0.45); }
  50%      { box-shadow: 0 0 38px rgba(255, 106, 0, 0.72); }
}

.ecc-cb__text { min-width: 0; }
.ecc-cb__title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}
.ecc-cb__body {
  font-size: 13px;
  line-height: 1.55;
  color: #cbd5e1;
  margin: 0;
}

.ecc-cb__link {
  color: #ff9e54;
  text-decoration: underline;
  text-decoration-color: rgba(255, 158, 84, 0.4);
  text-underline-offset: 2px;
}
.ecc-cb__link:hover { color: #ffd29a; text-decoration-color: #ffd29a; }

.ecc-cb__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.ecc-cb__btn {
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 11px 20px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
  white-space: nowrap;
}
.ecc-cb__btn:hover { transform: translateY(-1px); }
.ecc-cb__btn:active { transform: translateY(0); }

.ecc-cb__btn--primary {
  background: linear-gradient(120deg, #ff6a00 0%, #ff8a2a 100%);
  color: #050608;
  box-shadow: 0 8px 22px rgba(255, 106, 0, 0.45);
  animation: ecc-cb__btn-pulse 3.2s ease-in-out infinite;
}
.ecc-cb__btn--primary:hover {
  box-shadow: 0 12px 32px rgba(255, 106, 0, 0.6);
  animation: none;
}
@keyframes ecc-cb__btn-pulse {
  0%, 100% { box-shadow: 0 8px 22px rgba(255, 106, 0, 0.40), 0 0 0 0 rgba(255, 106, 0, 0.30); }
  50%      { box-shadow: 0 8px 26px rgba(255, 106, 0, 0.55), 0 0 0 6px rgba(255, 106, 0, 0.10); }
}
@media (prefers-reduced-motion: reduce) {
  .ecc-cb__btn--primary,
  .ecc-cb__icon { animation: none; }
}

.ecc-cb__btn--secondary {
  background: #1f2330;
  color: #f9fafb;
  border: 1px solid #353944;
}
.ecc-cb__btn--secondary:hover {
  background: #262b3a;
  border-color: #4a4f5c;
}

.ecc-cb__btn--ghost {
  background: transparent;
  color: #cbd5e1;
  border: 1px solid #353944;
}
.ecc-cb__btn--ghost:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #f9fafb;
}

/* ============================================================
   MODAL (Settings-Detailansicht)
   ============================================================ */
.ecc-cb__overlay {
  position: fixed; inset: 0;
  z-index: 99999;
  background: rgba(5, 6, 8, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}
.ecc-cb__overlay--show { opacity: 1; pointer-events: auto; }

.ecc-cb__modal {
  width: 100%;
  max-width: 720px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: linear-gradient(145deg, #141414 0%, #1a1a1a 100%);
  border: 1px solid #2a2d35;
  border-radius: 20px;
  padding: 28px 32px;
  box-shadow: 0 50px 120px rgba(0, 0, 0, 0.7), 0 0 80px rgba(255, 122, 26, 0.10);
}

.ecc-cb__modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.ecc-cb__modal-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, #ff6a00, #ff9b3d);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ecc-cb__close {
  background: transparent;
  border: 1px solid #353944;
  color: #cbd5e1;
  width: 36px; height: 36px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.12s ease, color 0.12s ease;
  font-family: inherit;
}
.ecc-cb__close:hover { background: rgba(255, 255, 255, 0.06); color: #f9fafb; }

.ecc-cb__modal-intro {
  font-size: 13.5px;
  line-height: 1.65;
  color: #cbd5e1;
  margin: 14px 0 22px;
}

/* ============================================================
   CATEGORY ROWS
   ============================================================ */
.ecc-cb__cats {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 22px;
}

.ecc-cb__cat {
  border: 1px solid #2a2d35;
  border-radius: 12px;
  padding: 16px 18px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.02), transparent);
}
.ecc-cb__cat--essential { border-color: rgba(16, 185, 129, 0.35); background: linear-gradient(145deg, rgba(16, 185, 129, 0.06), transparent); }
.ecc-cb__cat--functional { border-color: rgba(59, 130, 246, 0.35); background: linear-gradient(145deg, rgba(59, 130, 246, 0.06), transparent); }
.ecc-cb__cat--analytics { border-color: rgba(249, 115, 22, 0.35); background: linear-gradient(145deg, rgba(249, 115, 22, 0.06), transparent); }

.ecc-cb__cat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  gap: 12px;
}
.ecc-cb__cat-title {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.ecc-cb__cat-name {
  font-size: 15px;
  font-weight: 700;
  color: #f9fafb;
}
.ecc-cb__cat-tag {
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 3px 9px;
  border-radius: 999px;
}
.ecc-cb__cat--essential .ecc-cb__cat-tag { background: rgba(16, 185, 129, 0.18); color: #6ee7b7; }
.ecc-cb__cat--functional .ecc-cb__cat-tag { background: rgba(59, 130, 246, 0.18); color: #93c5fd; }
.ecc-cb__cat--analytics .ecc-cb__cat-tag { background: rgba(249, 115, 22, 0.18); color: #ff9e54; }

.ecc-cb__cat-body {
  font-size: 12.5px;
  line-height: 1.6;
  color: #cbd5e1;
  margin: 0 0 8px 0;
}
.ecc-cb__cat-legal {
  font-size: 11px;
  color: #9ca3af;
  font-style: italic;
  padding-top: 6px;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
}

/* TOGGLE */
.ecc-cb__toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}
.ecc-cb__toggle-input {
  opacity: 0;
  width: 0; height: 0;
  position: absolute;
}
.ecc-cb__toggle-slider {
  position: absolute;
  inset: 0;
  background: #353944;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.18s ease;
}
.ecc-cb__toggle-slider::before {
  content: '';
  position: absolute;
  height: 18px; width: 18px;
  left: 3px; top: 3px;
  background: #f9fafb;
  border-radius: 50%;
  transition: transform 0.18s ease;
}
.ecc-cb__toggle-input:checked + .ecc-cb__toggle-slider {
  background: linear-gradient(120deg, #ff6a00, #d94800);
}
.ecc-cb__toggle-input:checked + .ecc-cb__toggle-slider::before {
  transform: translateX(20px);
}
.ecc-cb__toggle-input:disabled + .ecc-cb__toggle-slider {
  cursor: not-allowed;
  opacity: 0.65;
}

/* ============================================================
   MODAL FOOTER
   ============================================================ */
.ecc-cb__modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.ecc-cb__modal-links {
  font-size: 12px;
  color: #9ca3af;
}
.ecc-cb__modal-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 760px) {
  .ecc-cb__banner-inner {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 18px 20px;
  }
  .ecc-cb__icon { width: 40px; height: 40px; font-size: 22px; }
  .ecc-cb__title { font-size: 15px; }
  .ecc-cb__body { font-size: 12.5px; }
  .ecc-cb__actions {
    justify-content: stretch;
  }
  .ecc-cb__btn { flex: 1 1 calc(50% - 5px); padding: 10px 14px; font-size: 12px; }

  .ecc-cb__modal {
    padding: 22px 22px;
    border-radius: 16px;
  }
  .ecc-cb__modal-title { font-size: 18px; }
  .ecc-cb__modal-footer { flex-direction: column; align-items: stretch; }
  .ecc-cb__modal-actions { width: 100%; }
  .ecc-cb__modal-actions .ecc-cb__btn { flex: 1; }
}

@media (max-width: 420px) {
  .ecc-cb__btn { flex: 1 1 100%; }
}
