/* Kreiller Cookie-Einwilligung – klar und funktional */
.kcc,
.kcc-ph,
.kcc-reopen {
  --kcc-gold: #ba9a68;
  --kcc-ink: #1d1d1b;
  --kcc-muted: #5f5f5f;
  --kcc-line: #dcdcdc;
  --kcc-bg: #fff;
  --kcc-soft: #f4f4f4;
  font-family: inherit;
  color: var(--kcc-ink);
  box-sizing: border-box;
}

.kcc *,
.kcc-ph * {
  box-sizing: border-box;
}

.kcc[hidden],
.kcc-reopen[hidden],
.kcc [hidden] {
  display: none !important;
}

html.kcc-lock,
html.kcc-lock body {
  overflow: hidden;
}

/* Blockierte iframes nie als leere Fläche zeigen */
iframe[data-kcc-category] {
  display: none;
}

.kcc {
  position: fixed;
  inset: 0;
  z-index: 99990;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.kcc__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(29, 29, 27, .55);
}

.kcc__dialog {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  padding: 28px 28px 20px;
  background: var(--kcc-bg);
  border-top: 4px solid var(--kcc-accent, #2a6bb7);
  box-shadow: 0 24px 64px rgba(0, 0, 0, .25);
  outline: none;
  font-size: 15px;
  line-height: 1.55;
}

/* Leiste unten: kein Overlay, Seite bleibt bedienbar */
.kcc--bar {
  inset: auto 0 0 0;
  padding: 0;
  display: block;
}

.kcc--bar .kcc__backdrop {
  display: none;
}

.kcc--bar .kcc__dialog {
  max-width: none;
  max-height: 70vh;
  padding: 20px max(20px, calc((100vw - 1100px) / 2));
  box-shadow: 0 -8px 32px rgba(0, 0, 0, .15);
}

.kcc__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.kcc__square {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  background: var(--kcc-accent, #2a6bb7);
}

.kcc__title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--kcc-ink);
}

.kcc__text {
  color: var(--kcc-muted);
}

.kcc__text p {
  margin: 0 0 .75em;
}

.kcc__text a,
.kcc__links a {
  color: var(--kcc-accent, #2a6bb7);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.kcc__cats {
  display: grid;
  gap: 8px;
  margin: 16px 0 4px;
}

.kcc__cat {
  padding: 12px 14px;
  background: var(--kcc-soft);
  border-left: 3px solid var(--kcc-line);
}

.kcc__switch {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-weight: 600;
}

.kcc__switch input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.kcc__slider {
  position: relative;
  flex: 0 0 40px;
  width: 40px;
  height: 22px;
  background: #b5b5b5;
  border-radius: 11px;
  transition: background .15s;
}

.kcc__slider::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: transform .15s;
}

.kcc__switch input:checked + .kcc__slider {
  background: var(--kcc-accent, #2a6bb7);
}

.kcc__switch input:checked + .kcc__slider::before {
  transform: translateX(18px);
}

.kcc__switch input:disabled + .kcc__slider {
  opacity: .55;
}

.kcc__switch input:focus-visible + .kcc__slider {
  outline: 2px solid var(--kcc-gold);
  outline-offset: 2px;
}

.kcc__cat-title small {
  font-weight: 400;
  color: var(--kcc-muted);
}

.kcc__cat-desc {
  margin: 6px 0 0 52px;
  font-size: .875em;
  color: var(--kcc-muted);
}

.kcc__cat-desc p {
  margin: 0 0 4px;
}

.kcc__cookies {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .8em;
}

.kcc__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 12px;
}

.kcc__btn {
  flex: 1 1 140px;
  min-height: 44px;
  padding: 10px 14px;
  font: inherit;
  font-size: .9rem;
  font-weight: 600;
  color: var(--kcc-accent, #2a6bb7);
  background: #fff;
  border: 2px solid var(--kcc-accent, #2a6bb7);
  border-radius: 0;
  cursor: pointer;
  transition: background .15s, color .15s;
}

.kcc__btn:hover,
.kcc__btn:focus-visible {
  color: #fff;
  background: var(--kcc-accent, #2a6bb7);
}

.kcc__btn:focus-visible {
  outline: 2px solid var(--kcc-gold);
  outline-offset: 2px;
}

/* Nur wenn „hervorgehoben“ gewählt ist */
.kcc:not(.kcc--equal) .kcc__btn--primary {
  color: #fff;
  background: var(--kcc-accent, #2a6bb7);
}

.kcc__links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin: 0;
  font-size: .8rem;
  color: var(--kcc-muted);
}

.kcc__rev {
  margin-left: auto;
}

/* Einstellungs-Schaltfläche */
.kcc-reopen {
  position: fixed;
  bottom: 16px;
  z-index: 99989;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  color: #fff;
  background: var(--kcc-accent, #2a6bb7);
  border: 0;
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
  cursor: pointer;
}

.kcc-reopen--left {
  left: 16px;
}

.kcc-reopen--right {
  right: 16px;
}

.kcc-reopen:focus-visible {
  outline: 2px solid var(--kcc-gold);
  outline-offset: 3px;
}

/* Platzhalter für blockierte Inhalte */
.kcc-ph {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 200px;
  padding: 20px;
  background: var(--kcc-soft);
  border: 1px solid var(--kcc-line);
  border-left: 4px solid var(--kcc-accent, #2a6bb7);
  font-size: .9rem;
  color: var(--kcc-muted);
}

.kcc-ph p {
  margin: 0;
}

.kcc-ph__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.kcc-ph .kcc__btn {
  flex: 0 1 auto;
}

@media (max-width: 480px) {
  .kcc {
    padding: 0;
    align-items: flex-end;
  }

  .kcc__dialog {
    max-height: 90vh;
    padding: 22px 18px 16px;
  }

  .kcc__btns {
    flex-direction: column;
  }

  .kcc__btn {
    flex: 1 1 auto;
  }

  .kcc__cat-desc {
    margin-left: 0;
  }

  .kcc__rev {
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .kcc__slider,
  .kcc__slider::before,
  .kcc__btn {
    transition: none;
  }
}

@media print {
  .kcc,
  .kcc-reopen {
    display: none !important;
  }
}
