/* QCI Europa AG – Cookie-Consent UI (nutzt die globalen Farbvariablen der Seite) */

.qcc-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2000;
  background: rgba(255, 255, 255, 0.92);
  border-top: 1px solid var(--border, #c7d7f0);
  backdrop-filter: saturate(200%) blur(24px);
  -webkit-backdrop-filter: saturate(200%) blur(24px);
  font-family: var(--font, -apple-system, BlinkMacSystemFont, sans-serif);
  box-shadow: 0 -8px 40px rgba(0, 80, 200, 0.08);
  animation: qccSlideUp 0.5s ease;
}
@keyframes qccSlideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
.qcc-banner-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.1rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.qcc-banner-text {
  flex: 1;
  min-width: 260px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text2, #6e6e73);
}
.qcc-banner-actions {
  display: flex;
  gap: 0.6rem;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.qcc-inline-link {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--accent, #0066cc);
  text-decoration: underline;
  cursor: pointer;
}

.qcc-btn {
  font-family: var(--font, -apple-system, BlinkMacSystemFont, sans-serif);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 0.6rem 1.15rem;
  border-radius: 980px;
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: opacity 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.qcc-btn--ghost {
  background: transparent;
  border-color: var(--border, #c7d7f0);
  color: var(--text2, #6e6e73);
}
.qcc-btn--ghost:hover { border-color: var(--text2, #6e6e73); color: var(--text, #1d1d1f); }
.qcc-btn--outline {
  background: transparent;
  border-color: var(--accent, #0066cc);
  color: var(--accent, #0066cc);
}
.qcc-btn--outline:hover { background: rgba(0, 102, 204, 0.08); }
.qcc-btn--solid {
  background: var(--accent, #0066cc);
  border-color: var(--accent, #0066cc);
  color: #fff;
}
.qcc-btn--solid:hover { background: #0055ad; border-color: #0055ad; }

.qcc-reopen {
  position: fixed;
  left: 1.2rem;
  bottom: 1.2rem;
  z-index: 1900;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border, #c7d7f0);
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.15rem;
  line-height: 1;
  padding: 0;
  backdrop-filter: saturate(200%) blur(24px);
  -webkit-backdrop-filter: saturate(200%) blur(24px);
  box-shadow: 0 4px 20px rgba(0, 80, 200, 0.12);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.qcc-reopen:hover { border-color: var(--accent, #0066cc); transform: scale(1.06); }

.qcc-overlay {
  position: fixed;
  inset: 0;
  z-index: 2100;
  background: rgba(29, 29, 31, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.qcc-panel {
  width: 100%;
  max-width: 640px;
  max-height: 88vh;
  overflow-y: auto;
  background: #fff;
  border: 1px solid var(--border, #c7d7f0);
  border-radius: 20px;
  color: var(--text, #1d1d1f);
  font-family: var(--font, -apple-system, BlinkMacSystemFont, sans-serif);
  padding: 2rem;
  box-shadow: 0 20px 60px rgba(0, 40, 100, 0.18);
}
.qcc-panel-head h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin: 0 0 0.75rem;
  color: var(--text, #1d1d1f);
}
.qcc-panel-head p {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--text2, #6e6e73);
  margin: 0 0 1.5rem;
}

.qcc-categories {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.75rem;
}
.qcc-cat {
  border: 1px solid var(--border, #c7d7f0);
  border-radius: 12px;
  padding: 0;
  background: var(--bg2, #eff6ff);
}
.qcc-cat summary {
  list-style: none;
  cursor: pointer;
  padding: 0.85rem 1rem;
}
.qcc-cat summary::-webkit-details-marker { display: none; }
.qcc-cat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.qcc-cat-title {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text, #1d1d1f);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.qcc-badge {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--accent, #0066cc);
  background: rgba(0, 102, 204, 0.08);
  border: 1px solid rgba(0, 102, 204, 0.18);
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  text-transform: uppercase;
}
.qcc-cat-body { padding: 0 1rem 1rem; }
.qcc-cat-desc {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text2, #6e6e73);
  margin: 0 0 0.75rem;
}
.qcc-service {
  border-top: 1px solid rgba(0, 80, 200, 0.1);
  padding: 0.75rem 0;
}
.qcc-service:first-child { border-top: none; }
.qcc-service-name { font-size: 13.5px; font-weight: 600; color: var(--text, #1d1d1f); margin-bottom: 0.35rem; }
.qcc-service-meta {
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--text2, #6e6e73);
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.qcc-label { color: var(--accent, #0066cc); }

.qcc-switch {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 21px;
  flex-shrink: 0;
}
.qcc-switch input { opacity: 0; width: 0; height: 0; }
.qcc-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: #c7d7f0;
  border-radius: 999px;
  transition: 0.2s;
}
.qcc-slider::before {
  content: "";
  position: absolute;
  height: 15px;
  width: 15px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  transition: 0.2s;
}
.qcc-switch input:checked + .qcc-slider { background: var(--accent, #0066cc); }
.qcc-switch input:checked + .qcc-slider::before { transform: translateX(17px); }
.qcc-switch input:disabled + .qcc-slider { opacity: 0.5; cursor: not-allowed; }

.qcc-panel-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

@media (max-width: 600px) {
  .qcc-banner-inner { padding: 1rem 1.25rem; flex-direction: column; align-items: stretch; }
  .qcc-banner-actions { width: 100%; }
  .qcc-banner-actions .qcc-btn { flex: 1; }
  .qcc-panel { padding: 1.5rem; border-radius: 16px; }
  .qcc-panel-actions .qcc-btn { flex: 1; }
}
