/* MKS Consent (WordPress-Plugin) – optisch angelehnt an Borlabs Cookie „box-plus“, Position Mitte */
.consent{position:fixed;inset:0;z-index:100000;display:flex;align-items:center;justify-content:center;padding:16px;font-family:inherit;letter-spacing:normal}
.consent[hidden]{display:none}
.consent__backdrop{position:absolute;inset:0;background:rgba(0,0,0,.6)}
.consent__box{position:relative;width:100%;max-width:600px;max-height:calc(100vh - 32px);overflow:auto;padding:24px 28px 18px;border-radius:4px;background:#fff;color:#555;font-size:14px;line-height:1.5;box-shadow:0 4px 30px rgba(0,0,0,.25);animation:consentIn .4s ease-out}
.consent__box:focus{outline:none}
@keyframes consentIn{from{opacity:0;transform:translateY(-30px)}to{opacity:1;transform:none}}
.consent__close{position:absolute;top:8px;right:10px;width:32px;height:32px;padding:0;border:0;border-radius:4px;background:#f7f7f7;color:#555;font-size:22px;line-height:32px;cursor:pointer}
.consent__close:hover{background:#e6e6e6}
.consent__title{margin:0 0 12px;padding:0 0 10px;border-bottom:1px solid #e6e6e6;color:#555;font-family:inherit;font-size:18px;font-weight:600;letter-spacing:normal;line-height:1.4;text-align:center}
.consent__cols{display:grid;grid-template-columns:1.35fr 1fr;gap:20px}
.consent__text p,.consent__intro,.consent-group p,.consent-detail-group > p{margin:0 0 .8em;font-size:12px;line-height:1.55}
.consent__text p:first-child{font-size:13px}
.consent a{color:#2563eb;text-decoration:underline}
.consent__groups{display:flex;flex-direction:column;gap:12px}
.consent-group{padding:0}
.consent-group__name{font-weight:600;color:#333;font-size:13px}
.consent-switch{display:inline-flex;align-items:center;gap:8px;cursor:pointer;user-select:none}
.consent-switch input{position:absolute;opacity:0;width:1px;height:1px}
.consent-switch__ui{position:relative;flex:0 0 auto;width:36px;height:20px;border:1px solid #a72828;border-radius:20px;background:#fff;transition:background .2s,border-color .2s}
.consent-switch__ui::after{content:"";position:absolute;top:2px;left:2px;width:14px;height:14px;border-radius:50%;background:#a72828;transition:transform .2s,background .2s}
.consent-switch input:checked + .consent-switch__ui{border-color:#28a745;background:#28a745}
.consent-switch input:checked + .consent-switch__ui::after{transform:translateX(16px);background:#fff}
.consent-switch input:disabled + .consent-switch__ui{border-color:#e6e6e6;background:#e6e6e6;cursor:not-allowed}
.consent-switch input:disabled + .consent-switch__ui::after{background:#fff}
.consent-switch input:focus-visible + .consent-switch__ui{outline:2px solid #2563eb;outline-offset:2px}
.consent__buttons{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:14px}
.consent-btn{display:block;width:100%;padding:9px 12px;border:0;border-radius:4px;background:#f7f7f7;color:#555;font:inherit;font-size:13px;font-weight:600;line-height:1.3;cursor:pointer;transition:background .2s}
.consent-btn:hover{background:#e6e6e6}
.consent-btn--accept{background:#28a745;color:#fff}
.consent-btn--accept:hover{background:#30c553}
.consent-btn--dark{background:#000;color:#fff}
.consent-btn--dark:hover{background:#262626}
.consent-btn--wide{grid-column:1/-1}
.consent__links{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px;margin:14px 0 0;font-size:11px}
.consent__links a{color:#555}
.consent__status{font-size:12px;color:#28a745;min-height:1em}
.consent-detail-group{margin:0 0 14px;padding:12px;border:1px solid #e6e6e6;border-radius:4px}
.consent-detail-group__head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:6px}
.consent-detail-group h3{margin:0;color:#333;font-family:inherit;font-size:14px;font-weight:600;letter-spacing:normal}
.consent-count{font-weight:400;color:#888}
.consent-switch__state{font-size:12px}
.consent-service{display:flex;align-items:flex-start;gap:8px;margin-top:8px;padding-top:6px;border-top:1px solid #f0f0f0}
.consent-service > .consent-switch{margin-top:8px}
.consent-service details{flex:1;min-width:0}
.consent-service summary{display:flex;align-items:center;gap:8px;padding:8px 0;font-size:13px;font-weight:600;color:#333;cursor:pointer}
.consent-table{width:100%;margin:4px 0 10px;border-collapse:collapse;font-size:12px}
.consent-table th,.consent-table td{padding:5px 6px;border-bottom:1px solid #f0f0f0;text-align:left;vertical-align:top}
.consent-table th{width:35%;font-weight:600;color:#333}
.consent-table--cookies th{width:auto;background:#fafafa}
.consent-table caption{text-align:left;font-weight:600;color:#333;padding:4px 0}
.consent-open{overflow:hidden}
.consent-link{padding:0;border:0;background:none;color:inherit;text-decoration:underline;font:inherit;cursor:pointer}
/* Content-Blocker-Platzhalter */
.consent-blocker{position:relative;display:flex;align-items:center;justify-content:center;min-height:240px;padding:24px;background:#eee;color:#333;text-align:center}
.consent-blocker__ui{max-width:520px;font-size:14px;line-height:1.5}
.consent-blocker__ui .consent-btn{display:inline-block;width:auto;margin:6px}
@media (max-width:600px){
  .consent__box{padding:20px 16px 14px}
  .consent__cols,.consent__buttons{grid-template-columns:1fr}
}

/* Theme-Stile im Dialog neutralisieren */
.consent button{box-shadow:none;transform:none;letter-spacing:normal;text-transform:none}
.consent .consent__title{text-transform:none}
.consent p{margin-top:0}
.consent table{margin:0 0 10px}
.mks-consent-link{cursor:pointer}
