/* consent.css – Cookie-Consent-Banner ab-braeuer.de */

#cookie-consent-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 99999;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}

@media (min-width: 600px) {
  #cookie-consent-overlay {
    align-items: center;
  }
}

#cookie-consent-banner {
  background: #ffffff;
  width: 100%;
  max-width: 480px;
  max-height: 92vh;
  overflow-y: auto;
  border-radius: 6px 6px 0 0;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.25);
  padding: 24px 24px 20px;
  font-family: inherit;
  color: #222;
}

@media (min-width: 600px) {
  #cookie-consent-banner {
    border-radius: 6px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  }
}

.cc-header h2 {
  margin: 0 0 12px;
  font-size: 1.25rem;
  color: #ae0817;
}

.cc-intro {
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0 0 16px;
  color: #444;
}

.cc-category {
  border-top: 1px solid #eee;
  padding: 12px 0;
}

.cc-category-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cc-category-title {
  font-weight: 600;
  font-size: 0.95rem;
}

.cc-category-desc {
  margin: 6px 0 0;
  font-size: 0.82rem;
  color: #666;
  line-height: 1.4;
}

/* Toggle-Switch */
.cc-switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 22px;
  flex-shrink: 0;
}

.cc-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cc-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #ccc;
  transition: 0.2s;
  border-radius: 22px;
}

.cc-slider::before {
  content: '';
  position: absolute;
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: #fff;
  transition: 0.2s;
  border-radius: 50%;
}

.cc-switch input:checked + .cc-slider {
  background-color: #ae0817;
}

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

.cc-switch-disabled .cc-slider {
  cursor: not-allowed;
  opacity: 0.6;
}

/* Buttons */
.cc-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
}

.cc-btn {
  border: none;
  border-radius: 4px;
  padding: 12px 16px;
  font-size: 0.9rem;
  cursor: pointer;
  font-weight: 600;
}

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

.cc-btn-primary:hover {
  background: #8c0612;
}

.cc-btn-secondary {
  background: #f2f2f2;
  color: #222;
}

.cc-btn-secondary:hover {
  background: #e6e6e6;
}

.cc-btn-text {
  background: transparent;
  color: #666;
  font-weight: 400;
  text-decoration: underline;
  padding: 4px 0;
}

.cc-links {
  margin-top: 14px;
  font-size: 0.78rem;
}

.cc-links a {
  color: #ae0817;
  text-decoration: underline;
}

body.cc-open {
  overflow: hidden;
}
