/* Cookie Consent – simplicue CI, Layout angelehnt an klassische Privacy-Banner */
:root {
  --cc-ink: #141b4d;
  --cc-muted: #6e7ba6;
  --cc-line: #e1e7f2;
  --cc-bg: #ffffff;
  --cc-soft: #eef3ff;
  --cc-primary: #6e97f2;
  --cc-primary-dark: #2f3467;
  --cc-focus: #a3b3da;
  --cc-radius: 14px;
  --cc-font: "Inter", "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
}

.cc-root {
  position: fixed;
  z-index: 10000;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  pointer-events: none;
}

.cc-root[hidden] {
  display: none !important;
}

.cc-panel {
  pointer-events: auto;
  width: min(1040px, 100%);
  max-width: 1040px;
  max-height: min(92dvh, 980px);
  overflow: auto;
  margin: 0;
  background: var(--cc-bg);
  color: var(--cc-ink);
  border: 1px solid var(--cc-line);
  border-radius: var(--cc-radius);
  box-shadow: 0 22px 60px -16px rgba(26, 35, 50, 0.4);
  padding: 32px 36px;
  font-family: var(--cc-font);
}

.cc-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(200px, 240px);
  gap: 24px 28px;
  align-items: start;
}

.cc-icon {
  width: 64px;
  height: 64px;
  flex: none;
  color: var(--cc-primary);
}

.cc-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.cc-copy {
  min-width: 0;
}

.cc-title {
  margin: 0 0 12px;
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--cc-ink);
  letter-spacing: -0.015em;
}

.cc-desc {
  margin: 0 0 12px;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--cc-muted);
}

.cc-desc:last-child {
  margin-bottom: 0;
}

.cc-desc a {
  color: var(--cc-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 600;
}

.cc-desc a:hover {
  color: var(--cc-primary-dark);
}

.cc-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-self: center;
}

.cc-actions--row {
  flex-direction: row;
  flex-wrap: wrap;
  margin-top: 20px;
}

.cc-actions--row .cc-btn {
  flex: 1 1 160px;
}

.cc-btn {
  appearance: none;
  margin: 0;
  min-height: 48px;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1.5px solid var(--cc-primary);
  background: var(--cc-bg);
  color: var(--cc-primary);
  font: inherit;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  text-align: center;
  width: 100%;
}

.cc-btn:hover {
  background: var(--cc-soft);
}

.cc-btn:focus-visible {
  outline: 3px solid var(--cc-focus);
  outline-offset: 2px;
}

.cc-layer-settings .cc-title {
  color: var(--cc-primary);
}

.cc-cats {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 8px 0 4px;
  max-height: min(46vh, 420px);
  overflow: auto;
  padding-right: 4px;
}

.cc-cat {
  border: 1px solid var(--cc-line);
  border-radius: 12px;
  padding: 16px 18px;
  background: var(--cc-soft);
}

.cc-cat-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
}

.cc-cat-title {
  min-width: 0;
  flex: 1;
}

.cc-cat-title strong {
  display: block;
  font-size: 1.05rem;
  color: var(--cc-ink);
  margin-bottom: 4px;
}

.cc-cat-title p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--cc-muted);
}

.cc-toggle-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex: none;
}

.cc-obligatorisch {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--cc-primary);
}

.cc-switch {
  position: relative;
  display: inline-flex;
  cursor: pointer;
}

.cc-switch input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.cc-switch-ui {
  width: 48px;
  height: 28px;
  border-radius: 999px;
  background: #c5d0da;
  border: 1px solid var(--cc-line);
  position: relative;
  transition: background 0.15s ease;
}

.cc-switch-ui::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(26, 35, 50, 0.25);
  transition: transform 0.15s ease;
}

.cc-switch input:checked + .cc-switch-ui {
  background: var(--cc-primary);
  border-color: var(--cc-primary);
}

.cc-switch input:checked + .cc-switch-ui::after {
  transform: translateX(20px);
}

.cc-switch input:disabled + .cc-switch-ui {
  opacity: 0.85;
  cursor: not-allowed;
}

.cc-switch input:focus-visible + .cc-switch-ui {
  outline: 3px solid var(--cc-focus);
  outline-offset: 2px;
}

.cc-float {
  position: fixed;
  z-index: 9990;
  left: 12px;
  bottom: 12px;
  appearance: none;
  border: 1px solid var(--cc-line);
  background: var(--cc-bg);
  color: var(--cc-primary);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 4px 16px -8px rgba(26, 35, 50, 0.35);
}

.cc-float:hover {
  background: var(--cc-soft);
}

.cc-float:focus-visible {
  outline: 3px solid var(--cc-focus);
  outline-offset: 2px;
}

@media (max-width: 820px) {
  .cc-main {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .cc-actions {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .cc-actions .cc-btn {
    flex: 1 1 calc(33.333% - 8px);
    min-width: 140px;
  }
}

@media (max-width: 560px) {
  .cc-root {
    padding: 12px;
  }

  .cc-panel {
    padding: 22px 16px 18px;
  }

  .cc-main {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .cc-icon {
    width: 48px;
    height: 48px;
  }

  .cc-actions,
  .cc-actions--row {
    flex-direction: column;
  }

  .cc-actions .cc-btn,
  .cc-actions--row .cc-btn {
    flex: none;
    width: 100%;
    min-height: 50px;
  }

  .cc-cat-head {
    flex-direction: column;
  }

  .cc-toggle-wrap {
    align-items: flex-start;
    flex-direction: row;
    width: 100%;
    justify-content: space-between;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cc-btn,
  .cc-switch-ui,
  .cc-switch-ui::after {
    transition: none;
  }
}
