/* Cookie-Banner für lamaweb.de – Farben und Schriften wie auf der Website */
.lw-cc {
  --lw-bg: #fafafa;
  --lw-text: #261d4c;
  --lw-primary: #7747d3;
  --lw-primary-soft: #a492d9;
  --lw-on-primary: #fefefe;
  --lw-line: #e3dcf5;

  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99999;
  display: flex;
  justify-content: center;
  padding: 0 16px 16px;
  pointer-events: none;
  font-family: "Wix Madefor Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--lw-text);
}
.lw-cc[hidden] { display: none; }

.lw-cc__box {
  pointer-events: auto;
  box-sizing: border-box;
  width: 100%;
  max-width: 1100px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  padding: 24px 28px;
  background: var(--lw-bg);
  border: 1px solid var(--lw-text);
  border-radius: 24px;
  box-shadow: 0 12px 40px rgba(38, 29, 76, 0.18);
}

.lw-cc__title {
  margin: 0 0 8px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--lw-primary);
}
.lw-cc__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
}
.lw-cc .lw-cc__text a {
  font: inherit;
  color: var(--lw-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.lw-cc .lw-cc__text a:hover { color: var(--lw-text); }

/* Einstellungen */
.lw-cc__details {
  display: grid;
  gap: 0;
  margin-top: 16px;
  border-top: 1px solid var(--lw-line);
}
.lw-cc__details[hidden] { display: none; }

.lw-cc__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--lw-line);
}
.lw-cc__row-title {
  display: block;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 14px;
  font-weight: 600;
}
.lw-cc__row-desc {
  display: block;
  margin-top: 2px;
  font-size: 14px;
  line-height: 1.45;
  opacity: 0.8;
}

/* Schalter */
.lw-cc__switch { position: relative; flex: none; width: 46px; height: 26px; }
.lw-cc__switch input {
  position: absolute; inset: 0; z-index: 1;
  width: 100%; height: 100%; margin: 0;
  opacity: 0; cursor: pointer;
}
.lw-cc__slider {
  position: absolute; inset: 0;
  border-radius: 26px;
  background: #cfc6ea;
  transition: background 0.2s;
}
.lw-cc__slider::before {
  content: "";
  position: absolute; top: 3px; left: 3px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s;
}
.lw-cc__switch input:checked + .lw-cc__slider { background: var(--lw-primary); }
.lw-cc__switch input:checked + .lw-cc__slider::before { transform: translateX(20px); }
.lw-cc__switch input:disabled { cursor: not-allowed; }
.lw-cc__switch input:disabled + .lw-cc__slider { opacity: 0.55; }
.lw-cc__switch input:focus-visible + .lw-cc__slider {
  outline: 3px solid var(--lw-primary-soft);
  outline-offset: 2px;
}

/* Buttons */
.lw-cc__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
}
.lw-cc .lw-cc__btn {
  box-sizing: border-box;
  min-width: 170px;
  padding: 12px 22px;
  border: 1px solid var(--lw-text);
  border-radius: 999px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.lw-cc .lw-cc__btn[hidden] { display: none; }
.lw-cc .lw-cc__btn:focus-visible { outline: 3px solid var(--lw-primary-soft); outline-offset: 2px; }

.lw-cc .lw-cc__btn--ghost { background: transparent; color: var(--lw-text); }
.lw-cc .lw-cc__btn--ghost:hover { background: var(--lw-text); color: var(--lw-on-primary); }

/* „Ablehnen“ und „Alle akzeptieren“ sind bewusst gleich auffällig */
.lw-cc .lw-cc__btn--deny { background: var(--lw-text); color: var(--lw-on-primary); }
.lw-cc .lw-cc__btn--deny:hover { background: #3c2b61; }

.lw-cc .lw-cc__btn--accept { background: var(--lw-primary); border-color: var(--lw-primary); color: var(--lw-on-primary); }
.lw-cc .lw-cc__btn--accept:hover { background: #6538b8; border-color: #6538b8; }

@media (max-width: 640px) {
  .lw-cc { padding: 0 8px 8px; }
  .lw-cc__box { padding: 20px 18px; border-radius: 20px; }
  .lw-cc__actions { flex-direction: column-reverse; }
  .lw-cc .lw-cc__btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .lw-cc__slider, .lw-cc__slider::before, .lw-cc .lw-cc__btn { transition: none; }
}
