/* Cookie-Banner — Karte wie HS Gebäudereinigung, Farben der Praxis */

.si-cc[hidden],
.si-cc-settings[hidden],
.si-cc-reopen[hidden] {
  display: none !important;
}

.si-cc {
  position: fixed;
  right: 72px;
  bottom: 16px;
  z-index: 100001;
  width: min(520px, calc(100vw - 96px));
  max-height: min(86vh, 760px);
  overflow: auto;
  display: grid;
  gap: 14px;
  padding: 24px;
  background: var(--surface-page, #fff);
  color: var(--text-body, #575656);
  border: 1px solid var(--border-default, #d5d4d4);
  box-shadow: 0 16px 40px rgba(44, 43, 43, 0.12);
  font-family: var(--font-core, "Config Condensed", "Oswald", system-ui, sans-serif);
  -webkit-font-smoothing: antialiased;
}

.si-cc *,
.si-cc *::before,
.si-cc *::after {
  box-sizing: border-box;
}

.si-cc h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.16;
  color: var(--text-heading, #575656);
}

.si-cc > p {
  margin: 0;
  font-size: 14px;
  font-weight: 450;
  line-height: 1.5;
  color: var(--text-body, #575656);
}

.si-cc-legal a {
  color: var(--text-link, #2581c4);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.si-cc-legal a:hover {
  color: var(--text-link-hover, #195888);
}

.si-cc-settings {
  display: grid;
  gap: 14px;
}

.si-cc-cat {
  display: grid;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle, #e6e5e5);
}

.si-cc-cat:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.si-cc-settings label {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: start;
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--text-heading, #575656);
  cursor: pointer;
}

.si-cc-cat-head strong {
  display: block;
}

.si-cc-services,
.si-cc-services li {
  list-style: none !important;
  margin: 0;
  padding: 0;
}

.si-cc-services {
  padding: 0 0 0 30px;
  display: grid;
  gap: 8px;
}

.si-cc-services li::before,
.si-cc-services li::after {
  content: none !important;
}

.si-cc-services label {
  font-size: 13px;
}

.si-cc-settings input {
  margin: 3px 0 0;
  accent-color: var(--brand, #2581c4);
}

.si-cc-settings input:disabled {
  cursor: not-allowed;
}

.si-cc-settings input:focus-visible {
  outline: 3px solid var(--focus-ring, #4f9ad2);
  outline-offset: 2px;
}

.si-cc-settings strong {
  font-weight: 700;
}

.si-cc-cat-hint,
.si-cc-svc-desc {
  display: block;
  margin-top: 2px;
  font-weight: 450;
  color: var(--gray-600, #6f6e6e);
}

.si-cc-svc-desc {
  font-size: 12px;
  line-height: 1.4;
  color: var(--text-muted, #8d8c8c);
}

.si-cc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.si-cc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 18px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: color 120ms cubic-bezier(0.4, 0, 0.2, 1),
    background-color 120ms cubic-bezier(0.4, 0, 0.2, 1),
    border-color 120ms cubic-bezier(0.4, 0, 0.2, 1);
}

.si-cc-btn:focus-visible {
  outline: 3px solid var(--focus-ring, #4f9ad2);
  outline-offset: 2px;
}

.si-cc-btn:active {
  transform: scale(0.98);
}

.si-cc-btn-solid {
  background: var(--brand, #2581c4);
  color: #fff;
  border-color: var(--brand, #2581c4);
}

.si-cc-btn-solid:hover {
  background: var(--brand-hover, #1f6da6);
  border-color: var(--brand-hover, #1f6da6);
  color: #fff;
}

.si-cc-btn-ghost {
  background: transparent;
  color: var(--gray-800, #3d3c3c);
  border-color: var(--gray-800, #3d3c3c);
}

.si-cc-btn-ghost:hover {
  background: var(--gray-800, #3d3c3c);
  color: #fff;
}

.si-cc-reopen,
.si-cc-footer-link {
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.si-cc-reopen {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 99980;
  font-family: var(--font-core, "Config Condensed", system-ui, sans-serif);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-heading, #575656);
  background: #fff;
  border: 1px solid var(--border-default, #d5d4d4);
  border-radius: 4px;
  padding: 8px 14px;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(44, 43, 43, 0.06);
}

.si-cc-reopen:hover {
  border-color: var(--brand, #2581c4);
  color: var(--brand, #2581c4);
}

.si-cc-footer-link:hover {
  color: var(--text-link, #2581c4);
}

.si-cc-embed {
  position: relative;
  min-height: 280px;
  background: var(--blue-050, #f2f8fd);
}

.si-cc-embed iframe {
  width: 100%;
  min-height: 280px;
  border: 0;
}

.si-cc-embed:not(.is-loaded) iframe {
  visibility: hidden;
  pointer-events: none;
}

.si-cc-embed.is-loaded .si-cc-placeholder {
  display: none;
}

.si-cc-placeholder {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  background:
    linear-gradient(180deg, rgba(242, 248, 253, 0.96), rgba(227, 239, 249, 0.96)),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 12px,
      rgba(37, 129, 196, 0.05) 12px,
      rgba(37, 129, 196, 0.05) 13px
    );
}

.si-cc-placeholder-copy {
  max-width: 420px;
  text-align: center;
}

.si-cc-placeholder-title {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-heading, #575656);
}

.si-cc-placeholder-text {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-muted, #8d8c8c);
}

.si-cc-placeholder-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 22px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  background: var(--brand, #2581c4);
  border: 1px solid var(--brand, #2581c4);
  border-radius: 4px;
  cursor: pointer;
}

.si-cc-placeholder-btn:hover {
  background: var(--brand-hover, #1f6da6);
}

@media (max-width: 720px) {
  .si-cc {
    right: 0;
    left: 0;
    bottom: 0;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .si-cc-btn {
    transition: none;
  }

  .si-cc-btn:active {
    transform: none;
  }
}

::selection {
  background: var(--blue-200, #c2dcf1);
  color: var(--gray-900, #2c2b2b);
}
