/* Arminius Cookie Consent Banner — passt sich an style.css Design an */

.cc-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.cc-overlay.cc-visible {
  opacity: 1;
  visibility: visible;
}

/* When the banner is shown as a blocking modal we lock the page scroll
   so the user cannot scroll behind the dialog. JS toggles this class. */
body.cc-modal-open {
  overflow: hidden;
}

.cc-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  width: calc(100% - 40px);
  max-width: 720px;
  background: #fff;
  border: 1.5px solid #000;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
  padding: 28px 32px;
  z-index: 9999;
  font-family: Tahoma, Geneva, Verdana, sans-serif;
  color: #000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}
.cc-banner.cc-visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.cc-banner.cc-modal {
  bottom: auto;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.96);
  max-width: 640px;
  padding: 40px 44px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.45);
}
.cc-banner.cc-modal.cc-visible {
  transform: translate(-50%, -50%) scale(1);
}
.cc-banner.cc-modal .cc-title {
  font-size: 1.4rem;
  margin-bottom: 16px;
}
.cc-banner.cc-modal .cc-text {
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.cc-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.cc-text {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #333;
  margin-bottom: 20px;
}
.cc-text a {
  color: #000;
  text-decoration: underline;
}

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

.cc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all 0.2s ease;
  background: none;
  color: inherit;
}
.cc-btn-primary {
  background: #000;
  color: #fff;
}
.cc-btn-primary:hover {
  background: #222;
}
.cc-btn-ghost {
  background: transparent;
  color: #000;
  border-color: #000;
}
.cc-btn-ghost:hover {
  background: #000;
  color: #fff;
}
.cc-btn-text {
  background: transparent;
  color: #555;
  padding: 11px 8px;
}
.cc-btn-text:hover {
  color: #000;
}

.cc-settings {
  display: none;
  margin: 18px 0 22px;
  border-top: 1.5px solid #ccc;
  padding-top: 18px;
}
.cc-banner.cc-settings-open .cc-settings {
  display: block;
}

.cc-category {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid #eee;
}
.cc-category:last-child {
  border-bottom: none;
}
.cc-category-info {
  flex: 1;
  min-width: 0;
}
.cc-category-name {
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 4px;
}
.cc-category-desc {
  font-size: 0.8rem;
  color: #555;
  line-height: 1.5;
}

.cc-toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}
.cc-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}
.cc-toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: #ccc;
  border-radius: 24px;
  transition: 0.2s;
}
.cc-toggle-slider::before {
  content: "";
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: 0.2s;
}
.cc-toggle input:checked + .cc-toggle-slider {
  background: #000;
}
.cc-toggle input:checked + .cc-toggle-slider::before {
  transform: translateX(20px);
}
.cc-toggle input:disabled + .cc-toggle-slider {
  background: #444;
  cursor: not-allowed;
  opacity: 0.7;
}
.cc-toggle input:disabled + .cc-toggle-slider::before {
  background: #ddd;
}

@media (max-width: 640px) {
  .cc-banner {
    padding: 22px 20px;
    bottom: 12px;
    width: calc(100% - 24px);
  }
  .cc-title {
    font-size: 1.05rem;
  }
  .cc-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }
  .cc-btn {
    width: 100%;
  }
  .cc-btn-text {
    order: -1;
  }
}
