/* MAV Einwilligungsverwaltung – Basic Consent Mode */
:root{--mav-consent-navy:#01123c;--mav-consent-blue:#002068;--mav-consent-rose:#e0c8c8;--mav-consent-sand:#fcfaf9;--mav-consent-text:#26334d}
.consent-lock{overflow:hidden}
.mav-consent-banner[hidden],.mav-consent-dialog[hidden]{display:none!important}
.mav-consent-banner{position:fixed;inset:auto 18px 18px;z-index:9998;display:flex;justify-content:center;pointer-events:none}
.mav-consent-card{width:min(1120px,100%);padding:24px;border:1px solid rgba(0,32,104,.16);border-radius:22px;background:rgba(252,250,249,.98);box-shadow:0 24px 70px rgba(1,18,60,.24);color:var(--mav-consent-text);pointer-events:auto;backdrop-filter:blur(16px)}
.mav-consent-grid{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:28px;align-items:center}
.mav-consent-copy small{display:block;margin-bottom:7px;color:var(--mav-consent-blue);font:700 .68rem/1.4 ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.12em;text-transform:uppercase}
.mav-consent-copy h2{margin:0;color:var(--mav-consent-navy);font:700 clamp(1.35rem,2.3vw,2rem)/1.15 system-ui,-apple-system,"Segoe UI",sans-serif}
.mav-consent-copy p{max-width:72ch;margin:9px 0 0;font:400 .9rem/1.6 system-ui,-apple-system,"Segoe UI",sans-serif}
.mav-consent-copy a{color:var(--mav-consent-blue);text-underline-offset:3px}
.mav-consent-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:9px}
.mav-consent-btn{min-height:44px;padding:0 16px;border:1.5px solid rgba(0,32,104,.25);border-radius:999px;background:#fff;color:var(--mav-consent-blue);font:750 .82rem system-ui,-apple-system,"Segoe UI",sans-serif;cursor:pointer}
.mav-consent-btn:hover{background:#f4eaea}.mav-consent-btn:focus-visible{outline:3px solid rgba(36,71,198,.32);outline-offset:2px}
.mav-consent-btn.primary{border-color:var(--mav-consent-blue);background:var(--mav-consent-blue);color:#fff}.mav-consent-btn.primary:hover{background:#173d91}
.mav-consent-dialog{position:fixed;inset:0;z-index:9999;display:grid;place-items:center;padding:18px;background:rgba(1,18,60,.66);backdrop-filter:blur(5px)}
.mav-consent-modal{width:min(620px,100%);max-height:min(760px,calc(100dvh - 36px));overflow:auto;border-radius:24px;background:#fff;box-shadow:0 30px 100px rgba(1,18,60,.42)}
.mav-consent-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:24px 25px 18px;border-bottom:1px solid rgba(0,32,104,.1)}
.mav-consent-head h2{margin:0;color:var(--mav-consent-navy);font:700 1.55rem/1.2 system-ui,-apple-system,"Segoe UI",sans-serif}.mav-consent-head p{margin:7px 0 0;color:#5d687b;font:400 .86rem/1.55 system-ui,-apple-system,"Segoe UI",sans-serif}
.mav-consent-close{width:42px;height:42px;flex:none;border:1px solid rgba(0,32,104,.18);border-radius:50%;background:#fff;color:var(--mav-consent-blue);font-size:1.4rem;cursor:pointer}
.mav-consent-body{padding:22px 25px}.mav-consent-option{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:18px;padding:18px 0;border-bottom:1px solid rgba(0,32,104,.1)}.mav-consent-option:first-child{padding-top:0}.mav-consent-option:last-child{border-bottom:0}
.mav-consent-option h3{margin:0;color:var(--mav-consent-navy);font:750 1rem system-ui,-apple-system,"Segoe UI",sans-serif}.mav-consent-option p{margin:6px 0 0;color:#5d687b;font:400 .82rem/1.55 system-ui,-apple-system,"Segoe UI",sans-serif}
.mav-consent-status{align-self:start;padding:6px 10px;border-radius:999px;background:#eef7f1;color:#176b3a;font:700 .68rem ui-monospace,SFMono-Regular,Menlo,monospace;text-transform:uppercase}
.mav-consent-switch{position:relative;width:52px;height:30px;align-self:start}.mav-consent-switch input{position:absolute;opacity:0}.mav-consent-switch span{position:absolute;inset:0;border-radius:999px;background:#b7bfca;cursor:pointer;transition:.2s}.mav-consent-switch span:before{content:"";position:absolute;width:22px;height:22px;left:4px;top:4px;border-radius:50%;background:#fff;box-shadow:0 2px 8px rgba(0,0,0,.2);transition:.2s}.mav-consent-switch input:checked+span{background:var(--mav-consent-blue)}.mav-consent-switch input:checked+span:before{transform:translateX(22px)}.mav-consent-switch input:focus-visible+span{outline:3px solid rgba(36,71,198,.32);outline-offset:2px}
.mav-consent-foot{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:9px;padding:18px 25px 24px;border-top:1px solid rgba(0,32,104,.1)}
.footer-consent-link{all:unset;color:inherit;cursor:pointer;text-decoration:none}.footer-consent-link:hover{color:var(--rose-500,#e0c8c8)}.footer-consent-link:focus-visible{outline:2px solid currentColor;outline-offset:3px;border-radius:3px}
@media(max-width:820px){.mav-consent-banner{inset:auto 10px 10px}.mav-consent-card{padding:20px}.mav-consent-grid{grid-template-columns:1fr;gap:18px}.mav-consent-actions{justify-content:stretch}.mav-consent-btn{flex:1}.mav-consent-actions .settings{flex-basis:100%}}
@media(max-width:520px){.mav-consent-actions{display:grid;grid-template-columns:1fr}.mav-consent-btn{width:100%}.mav-consent-head,.mav-consent-body,.mav-consent-foot{padding-left:19px;padding-right:19px}.mav-consent-foot{display:grid}.mav-consent-option{grid-template-columns:minmax(0,1fr) auto}}
@media(prefers-reduced-motion:reduce){.mav-consent-switch span,.mav-consent-switch span:before{transition:none}}
