/* ============================================================
   AV Mediagroup – Cookie Banner Styles v1.0
   ============================================================ */

#av-cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99999;
  background: #fff;
  border-top: 3px solid #1A6EAD;
  box-shadow: 0 -8px 40px rgba(0,0,0,0.15);
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
  font-family: system-ui, -apple-system, sans-serif;
}

#av-cookie-banner.av-cb-visible {
  transform: translateY(0);
}

#av-cookie-banner.av-cb-hiding {
  transform: translateY(100%);
}

.av-cb-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 32px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: start;
}

.av-cb-icon {
  font-size: 2rem;
  line-height: 1;
  padding-top: 4px;
}

.av-cb-content {
  min-width: 0;
}

.av-cb-title {
  font-family: 'Poppins', system-ui, sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #12192C;
  margin: 0 0 8px;
}

.av-cb-text {
  font-size: 0.875rem;
  color: #5A6478;
  line-height: 1.6;
  margin: 0;
}

.av-cb-link {
  color: #1A6EAD;
  text-decoration: underline;
}

/* Einstellungen Panel */
.av-cb-details {
  margin-top: 16px;
  border-top: 1px solid #E2E8F0;
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.av-cb-category {
  background: #F7F9FC;
  border-radius: 10px;
  padding: 12px 16px;
}

.av-cb-cat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.av-cb-cat-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: #12192C;
  cursor: pointer;
}

.av-cb-cat-desc {
  font-size: 0.8rem;
  color: #5A6478;
  line-height: 1.5;
  margin: 0;
}

.av-cb-badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.3px;
}

.av-badge-always {
  background: #E8F4FD;
  color: #1A6EAD;
}

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

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

.av-cb-slider {
  position: absolute;
  inset: 0;
  background: #CBD5E1;
  border-radius: 24px;
  transition: background 0.3s;
}

.av-cb-slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.3s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.av-cb-toggle input:checked + .av-cb-slider {
  background: #1A6EAD;
}

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

/* Buttons */
.av-cb-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
  min-width: 180px;
}

.av-cb-btn {
  padding: 11px 20px;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  white-space: nowrap;
  text-align: center;
}

.av-cb-btn-primary {
  background: #1A6EAD;
  color: #fff;
}

.av-cb-btn-primary:hover {
  background: #0F4C7A;
}

.av-cb-btn-secondary {
  background: #F7F9FC;
  color: #5A6478;
  border: 1px solid #E2E8F0;
}

.av-cb-btn-secondary:hover {
  background: #E2E8F0;
}

.av-cb-btn-settings {
  background: #FFF3E0;
  color: #F07D00;
  border: 1px solid #FFD699;
}

.av-cb-btn-settings:hover {
  background: #FFE0B2;
}

/* Cookie-Einstellungen-Link im Footer */
.av-cookie-prefs-link {
  color: rgba(255,255,255,0.55);
  text-decoration: underline;
  cursor: pointer;
  font-size: inherit;
  background: none;
  border: none;
  padding: 0;
}

.av-cookie-prefs-link:hover {
  color: rgba(255,255,255,0.85);
}

/* Responsive */
@media (max-width: 768px) {
  .av-cb-inner {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 20px 20px;
  }
  .av-cb-icon { display: none; }
  .av-cb-actions {
    flex-direction: row;
    flex-wrap: wrap;
    min-width: unset;
  }
  .av-cb-btn {
    flex: 1;
    min-width: 120px;
  }
}

@media (max-width: 480px) {
  .av-cb-actions { flex-direction: column; }
  .av-cb-btn { width: 100%; }
}
