/* MP Cookie – Styles. Anpassbar über CSS-Variablen. */
.mpc, .mpc-ph, .mpc * { box-sizing: border-box; }
.mpc, .mpc-ph {
  --mpc-ink: #1E1C1B; --mpc-text: #16181D; --mpc-paper: #F9F8F5; --mpc-white: #fff;
  --mpc-stone: #7C7A77; --mpc-line: #e4e2dd; --mpc-radius: 24px; --mpc-pill: 30px;
  --mpc-font: 'Lato', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-family: var(--mpc-font); color: var(--mpc-text); line-height: 1.6; font-size: 16px;
}
.mpc-h { font-size: 1.25rem; line-height: 1.2; font-weight: 700; margin: 0 0 .5rem; color: var(--mpc-ink); }
.mpc-h3 { font-size: 1rem; font-weight: 700; margin: 0; color: var(--mpc-ink); }
.mpc-p { margin: 0 0 1rem; font-size: .95rem; text-wrap: pretty; }
.mpc-small { margin: .15rem 0 0; font-size: .85rem; color: var(--mpc-stone); }
.mpc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons: Akzeptieren und Ablehnen sind bewusst identisch gestaltet. */
.mpc-btn {
  font: 700 .95rem/1 var(--mpc-font); padding: .85rem 1.3rem; border-radius: var(--mpc-pill);
  border: 2px solid var(--mpc-ink); cursor: pointer; text-align: center; flex: 1 1 auto;
  transition: background .15s, color .15s;
}
.mpc-btn--fill { background: var(--mpc-ink); color: #fff; }
.mpc-btn--fill:hover { background: #000; }
.mpc-btn--line { background: transparent; color: var(--mpc-ink); }
.mpc-btn--line:hover { background: var(--mpc-ink); color: #fff; }
.mpc-btn:focus-visible, .mpc-x:focus-visible, .mpc-revoke:focus-visible, .mpc-sw input:focus-visible + .mpc-sw__t {
  outline: 3px solid #4C8BF5; outline-offset: 2px;
}

/* Banner */
.mpc-banner {
  position: fixed; z-index: 2147483000; left: 20px; bottom: 20px; width: min(440px, calc(100vw - 40px));
  background: var(--mpc-paper); border: 1px solid var(--mpc-line); border-radius: var(--mpc-radius);
  padding: 1.4rem;
}
.mpc-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.mpc-row .mpc-btn { flex: 1 1 40%; }
.mpc-row .mpc-btn:last-child { flex-basis: 100%; }
.mpc-links { margin: .9rem 0 0; font-size: .8rem; color: var(--mpc-stone); }
.mpc-links a { color: var(--mpc-stone); text-decoration: underline; }
.mpc-banner--legal { width: min(440px, calc(100vw - 40px)); opacity: .97; }

/* Einstellungen */
.mpc-modal { position: fixed; z-index: 2147483001; inset: 0; background: rgba(30, 28, 27, .55); display: flex; align-items: center; justify-content: center; padding: 16px; }
.mpc-modal__in { background: var(--mpc-paper); border-radius: var(--mpc-radius); width: min(640px, 100%); max-height: calc(100vh - 32px); display: flex; flex-direction: column; overflow: hidden; }
.mpc-modal__head { display: flex; justify-content: space-between; align-items: center; padding: 1.2rem 1.4rem .4rem; }
.mpc-modal__head .mpc-h { margin: 0; }
.mpc-x { background: none; border: 0; font-size: 1.8rem; line-height: 1; cursor: pointer; color: var(--mpc-ink); padding: .2rem .6rem; border-radius: 12px; }
.mpc-modal__body { padding: .4rem 1.4rem 1rem; overflow-y: auto; }
.mpc-modal__foot { display: flex; flex-wrap: wrap; gap: .5rem; padding: 1rem 1.4rem; border-top: 1px solid var(--mpc-line); background: var(--mpc-paper); }
.mpc-id { margin: 0; padding: 0 1.4rem .4rem; font-size: .75rem; color: var(--mpc-stone); word-break: break-all; }
.mpc-links--foot { padding: 0 1.4rem 1rem; margin: 0; }
.mpc-cat { background: var(--mpc-white); border: 1px solid var(--mpc-line); border-radius: 18px; padding: 1rem 1.1rem; margin-top: .8rem; }
.mpc-cat__head { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; }
.mpc-svc { border-top: 1px solid var(--mpc-line); margin-top: .8rem; padding-top: .6rem; font-size: .92rem; }
.mpc-svc summary { cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-weight: 700; list-style: none; }
.mpc-svc summary::-webkit-details-marker { display: none; }
.mpc-svc summary > span:first-child::after { content: ' ▾'; color: var(--mpc-stone); font-weight: 400; }
.mpc-dl { margin: .6rem 0 0; display: grid; grid-template-columns: 8.5rem 1fr; gap: .25rem .8rem; font-size: .85rem; }
.mpc-dl dt { color: var(--mpc-stone); } .mpc-dl dd { margin: 0; word-break: break-word; }
@media (max-width: 520px) { .mpc-dl { grid-template-columns: 1fr; } .mpc-dl dd { margin-bottom: .4rem; } }

/* Schalter */
.mpc-sw { position: relative; display: inline-block; flex: none; }
.mpc-sw input { position: absolute; z-index: 1; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.mpc-sw__t { display: block; width: 46px; height: 26px; border-radius: 26px; background: #c9c6c0; transition: background .15s; position: relative; }
.mpc-sw__t::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .15s; }
.mpc-sw input:checked + .mpc-sw__t { background: var(--mpc-ink); }
.mpc-sw input:checked + .mpc-sw__t::after { transform: translateX(20px); }
.mpc-sw input:disabled + .mpc-sw__t { opacity: .5; }
.mpc-sw--s .mpc-sw__t { width: 38px; height: 22px; } .mpc-sw--s .mpc-sw__t::after { width: 16px; height: 16px; }
.mpc-sw--s input:checked + .mpc-sw__t::after { transform: translateX(16px); }
.mpc-lock { overflow: hidden; }

/* Widerruf */
.mpc-revoke { position: fixed; z-index: 2147482000; left: 16px; bottom: 16px; background: var(--mpc-paper); color: var(--mpc-ink); border: 1px solid var(--mpc-line); border-radius: var(--mpc-pill); padding: .5rem .9rem; font: 700 .8rem var(--mpc-font); cursor: pointer; }
.mpc-revoke:hover { background: var(--mpc-ink); color: #fff; }

/* Platzhalter für blockierte Inhalte */
.mpc-ph { position: relative; width: 100%; background: var(--mpc-ink); border-radius: 18px; overflow: hidden; display: flex; align-items: center; justify-content: center; color: #fff; }
.mpc-ph--thumb::before { content: ''; position: absolute; inset: -20px; background: var(--mpc-thumb) center/cover; filter: blur(18px) brightness(.55); }
.mpc-ph__box { position: relative; padding: 1.2rem; max-width: 460px; text-align: center; }
.mpc-ph__t { margin: 0 0 .4rem; font-weight: 700; font-size: 1.05rem; }
.mpc-ph__s { margin: 0 0 1rem; font-size: .82rem; opacity: .85; }
.mpc-ph__s a { color: #fff; }
.mpc-ph__b { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }
.mpc-ph .mpc-btn { flex: 0 1 auto; border-color: #fff; }
.mpc-ph .mpc-btn--fill { background: #fff; color: var(--mpc-ink); }
.mpc-ph .mpc-btn--fill:hover { background: #eee; }
.mpc-ph .mpc-btn--line { color: #fff; } .mpc-ph .mpc-btn--line:hover { background: #fff; color: var(--mpc-ink); }
@media (max-width: 480px) { .mpc-banner { left: 10px; bottom: 10px; width: calc(100vw - 20px); } .mpc-ph__box { padding: .8rem; } .mpc-ph__s { display: none; } }
@media (prefers-reduced-motion: reduce) { .mpc * { transition: none !important; } }
