/* CMI – Consent-Banner + Platzhalter für externe Inhalte */

.cmi-consent {
  position: fixed; inset: 0; z-index: 99990;
  display: flex; align-items: flex-end; justify-content: flex-start;
  padding: 20px; background: rgba(36, 36, 36, .42);
  font-family: 'Manrope', system-ui, sans-serif;
}
.cmi-consent__panel {
  width: min(520px, 100%); background: #242424; color: #fff;
  padding: 28px 28px 22px; border-top: 4px solid #9BBE3C;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
  max-height: calc(100vh - 40px); overflow: auto;
}
.cmi-consent__title {
  font-family: 'Fraunces', Georgia, serif; font-weight: 400; font-size: 1.5rem; color: #fff;
  line-height: 1.15; margin: 0 0 12px; letter-spacing: -.01em;
}
.cmi-consent__text { margin-bottom: 20px; font-size: .92rem; line-height: 1.55; color: #d8d8d8; margin: 0 0 20px; }
.cmi-consent__actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.cmi-consent__links { display: flex; gap: 18px; margin-top: 18px; font-size: .8rem; }
.cmi-consent__links a { color: #B2B2B2; text-decoration: none; border-bottom: 1px solid rgba(178, 178, 178, .4); }
.cmi-consent__links a:hover, .cmi-consent__links a:focus-visible { color: #fff; border-color: #fff; }

.cmi-btn {
  font: inherit; font-weight: 600; font-size: .9rem; cursor: pointer;
  padding: 11px 18px; border: 1px solid transparent; border-radius: 2px; line-height: 1;
}
.cmi-btn--primary { background: #9BBE3C; color: #242424; }
.cmi-btn--primary:hover { background: #a9cb4d; }
.cmi-btn--ghost { background: transparent; color: #fff; border-color: #6b6b6b; }
.cmi-btn--ghost:hover { border-color: #fff; }
.cmi-btn--text { background: transparent; color: #B2B2B2; padding-left: 6px; padding-right: 6px; text-decoration: underline; text-underline-offset: 3px; }
.cmi-btn--text:hover { color: #fff; }
.cmi-btn:focus-visible { outline: 2px solid #9BBE3C; outline-offset: 2px; }

/* Kategorien */
.cmi-consent__cats { display: grid; gap: 4px; margin: 4px 0 20px; }
.cmi-cat { display: block; padding: 12px 0; border-bottom: 1px solid #3a3a3a; cursor: pointer; }
.cmi-cat--locked { cursor: default; }
.cmi-cat__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cmi-cat__name { font-weight: 600; font-size: .95rem; color: #fff; }
.cmi-cat__desc { display: block; margin-top: 4px; font-size: .82rem; line-height: 1.5; color: #B2B2B2; }
.cmi-cat__input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cmi-cat__switch {
  flex: 0 0 auto; width: 40px; height: 22px; border-radius: 11px; background: #555; position: relative;
  transition: background .15s;
}
.cmi-cat__switch::after {
  content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%;
  background: #fff; transition: transform .15s;
}
.cmi-cat__input:checked + .cmi-cat__switch { background: #9BBE3C; }
.cmi-cat__input:checked + .cmi-cat__switch::after { transform: translateX(18px); }
.cmi-cat__input:disabled + .cmi-cat__switch { opacity: .55; }
.cmi-cat__input:focus-visible + .cmi-cat__switch { outline: 2px solid #9BBE3C; outline-offset: 2px; }

/* Platzhalter für den LinkedIn-Feed */
.cmi-ph {
  display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between;
  padding: 32px; border: 1px dashed #B2B2B2; background: #f6f6f6; color: #242424;
  font-family: 'Manrope', system-ui, sans-serif;
}
.cmi-ph__body { flex: 1 1 320px; }
.cmi-ph__title { font-family: 'Fraunces', Georgia, serif; font-weight: 400; font-size: 1.35rem; margin: 0 0 8px; color: #242424; }
.cmi-ph__text { margin: 0; font-size: .92rem; line-height: 1.55; color: #555; }
.cmi-ph__text a { color: #242424; }
.cmi-ph__actions { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.cmi-ph__link { font-size: .85rem; color: #555; }

@media (max-width: 600px) {
  .cmi-consent { padding: 0; }
  .cmi-consent__panel { width: 100%; padding: 22px 20px 18px; max-height: 100vh; }
  .cmi-btn { width: 100%; text-align: center; }
  .cmi-btn--text { width: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .cmi-cat__switch, .cmi-cat__switch::after { transition: none; }
}
