/*--------------------------------------------------------------
# Cookie Consent
--------------------------------------------------------------*/
:root {
  --cc-green: #009444;
  --cc-green-dark: #007a38;
  --cc-gold: #a0843e;
  --cc-ink: #191919;
  --cc-text: #444444;
  --cc-muted: #6b6b6b;
  --cc-line: #e6e6e6;
  --cc-bg: #ffffff;
  --cc-soft: #f4f4f4;
  --cc-radius: 16px;
  --cc-shadow: 0 20px 50px rgba(0, 0, 0, 0.18), 0 4px 12px rgba(0, 0, 0, 0.08);
}

.cc-root, .cc-root * { box-sizing: border-box; }
.cc-root { font-family: "Montserrat", sans-serif; color: var(--cc-text); }
.cc-root [hidden] { display: none !important; }

/* ---------- Banner ---------- */
.cc-banner {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 10000;
  width: calc(100% - 48px);
  max-width: 460px;
  background: var(--cc-bg);
  border-radius: var(--cc-radius);
  box-shadow: var(--cc-shadow);
  border-top: 4px solid var(--cc-green);
  padding: 24px;
  animation: cc-slide-up .45s cubic-bezier(.2, .8, .2, 1);
}

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

.cc-banner__icon {
  flex: 0 0 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 148, 68, 0.1);
  color: var(--cc-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.cc-title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--cc-ink);
  line-height: 1.3;
}

.cc-text {
  margin: 0 0 18px;
  font-size: 13.5px;
  line-height: 1.6;
}

.cc-text a, .cc-links a {
  color: var(--cc-green);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cc-text a:hover, .cc-links a:hover { color: var(--cc-green-dark); }

.cc-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.cc-btn {
  appearance: none;
  border: 2px solid transparent;
  border-radius: 50px;
  padding: 11px 16px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .3px;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .1s;
}
.cc-btn:active { transform: scale(.98); }
.cc-btn:focus-visible,
.cc-link-btn:focus-visible,
.cc-switch input:focus-visible + .cc-switch__track,
.cc-close:focus-visible {
  outline: 3px solid rgba(0, 148, 68, 0.45);
  outline-offset: 2px;
}

/* Akzeptieren und Ablehnen bewusst gleichwertig gestaltet */
.cc-btn--primary { background: var(--cc-green); color: #fff; }
.cc-btn--primary:hover { background: var(--cc-green-dark); }
.cc-btn--secondary { background: var(--cc-ink); color: #fff; }
.cc-btn--secondary:hover { background: #000; }
.cc-btn--ghost { background: transparent; color: var(--cc-ink); border-color: var(--cc-line); }
.cc-btn--ghost:hover { border-color: var(--cc-ink); }

.cc-link-btn {
  grid-column: 1 / -1;
  background: none;
  border: 0;
  padding: 6px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--cc-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.cc-link-btn:hover { color: var(--cc-green); }

.cc-links {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--cc-line);
  font-size: 12px;
  display: flex;
  gap: 16px;
  justify-content: center;
}

/* ---------- Modal ---------- */
.cc-overlay {
  position: fixed;
  inset: 0;
  z-index: 10001;
  background: rgba(17, 17, 17, 0.55);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: cc-fade .25s ease;
}

.cc-modal {
  width: 100%;
  max-width: 620px;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  background: var(--cc-bg);
  border-radius: var(--cc-radius);
  box-shadow: var(--cc-shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: cc-pop .3s cubic-bezier(.2, .8, .2, 1);
}

.cc-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--cc-line);
}

.cc-close {
  flex: 0 0 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: var(--cc-soft);
  color: var(--cc-ink);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cc-close:hover { background: var(--cc-line); }

.cc-modal__body {
  padding: 20px 24px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.cc-modal__foot {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 16px 24px;
  border-top: 1px solid var(--cc-line);
  background: #fafafa;
}

.cc-category {
  border: 1px solid var(--cc-line);
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
}

.cc-category__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
}

.cc-category__title {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
  color: var(--cc-ink);
}

.cc-category__desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
}

.cc-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 20px;
  background: var(--cc-soft);
  color: var(--cc-muted);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .4px;
  text-transform: uppercase;
  vertical-align: middle;
}

.cc-details { border-top: 1px solid var(--cc-line); background: #fcfcfc; }
.cc-details summary {
  cursor: pointer;
  list-style: none;
  padding: 10px 16px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--cc-green);
  user-select: none;
}
.cc-details summary::-webkit-details-marker { display: none; }
.cc-details summary::before {
  content: "›";
  display: inline-block;
  margin-right: 8px;
  transition: transform .2s;
}
.cc-details[open] summary::before { transform: rotate(90deg); }

.cc-service {
  margin: 0 16px 12px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--cc-line);
  border-radius: 10px;
  font-size: 12.5px;
}
.cc-service h5 { margin: 0 0 8px; font-size: 13px; font-weight: 700; color: var(--cc-ink); }
.cc-service dl { margin: 0; display: grid; grid-template-columns: 110px 1fr; gap: 4px 12px; }
.cc-service dt { color: var(--cc-muted); font-weight: 500; }
.cc-service dd { margin: 0; word-break: break-word; }
.cc-service a { color: var(--cc-green); }

/* Toggle */
.cc-switch { position: relative; flex: 0 0 auto; display: inline-flex; cursor: pointer; margin-top: 2px; }
.cc-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cc-switch__track {
  width: 46px;
  height: 26px;
  border-radius: 26px;
  background: #cfcfcf;
  position: relative;
  transition: background-color .2s;
}
.cc-switch__track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
  transition: transform .2s;
}
.cc-switch input:checked + .cc-switch__track { background: var(--cc-green); }
.cc-switch input:checked + .cc-switch__track::after { transform: translateX(20px); }
.cc-switch input:disabled + .cc-switch__track { opacity: .55; cursor: not-allowed; }

.cc-meta { margin: 8px 0 0; font-size: 11.5px; color: var(--cc-muted); }

/* ---------- Platzhalter für blockierte Inhalte ---------- */
.cc-embed { position: relative; width: 100%; }
.cc-embed--block:not(.cc-embed--loaded) { min-height: 380px; }

.cc-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(0, 148, 68, 0.06), rgba(160, 132, 62, 0.08)),
    repeating-linear-gradient(45deg, #f7f7f7 0 12px, #f1f1f1 12px 24px);
  border: 1px solid var(--cc-line);
  border-radius: 12px;
}
.cc-placeholder__inner { max-width: 440px; }
.cc-placeholder__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: #fff;
  color: var(--cc-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .08);
}
.cc-placeholder h4 { font-size: 16px; font-weight: 700; color: var(--cc-ink); margin: 0 0 8px; }
.cc-placeholder p { font-size: 13px; line-height: 1.55; margin: 0 0 16px; }
.cc-placeholder .cc-actions { max-width: 380px; margin: 0 auto; }

/* ---------- Animation ---------- */
@keyframes cc-slide-up { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes cc-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes cc-pop { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .cc-banner, .cc-overlay, .cc-modal { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 575px) {
  .cc-banner { left: 12px; bottom: 12px; width: calc(100% - 24px); padding: 20px; }
  .cc-actions { grid-template-columns: 1fr; }
  .cc-modal__foot { grid-template-columns: 1fr; }
  .cc-modal__head, .cc-modal__body { padding-left: 18px; padding-right: 18px; }
  .cc-service dl { grid-template-columns: 1fr; }
  .cc-service dt { margin-top: 4px; }
  .cc-placeholder { padding: 16px; }
  .cc-placeholder p { font-size: 12px; }
}
