.mgd-notification-center{position:relative;display:inline-block}.mgd-notification-center--floating-top-left,.mgd-notification-center--floating-top-right,.mgd-notification-center--floating-bottom-left,.mgd-notification-center--floating-bottom-right{position:fixed;z-index:9999}.mgd-notification-center--floating-top-left{top:1rem;left:1rem}.mgd-notification-center--floating-top-right{top:1rem;right:1rem}.mgd-notification-center--floating-bottom-left{bottom:1rem;left:1rem}.mgd-notification-center--floating-bottom-right{right:1rem;bottom:1rem}.mgd-notification-center__button{position:relative;border:1px solid currentColor;border-radius:50%;background:Canvas;color:CanvasText;inline-size:2.75rem;block-size:2.75rem;cursor:pointer}.mgd-notification-center__count{position:absolute;top:-.35rem;right:-.35rem;min-inline-size:1.25rem;border-radius:1rem;background:#b42318;color:#fff;font-size:.75rem;line-height:1.25rem}.mgd-notification-center__panel{position:absolute;right:0;z-index:2;width:min(22rem,calc(100vw - 2rem));max-height:24rem;overflow:auto;padding:1rem;border:1px solid #777;border-radius:.5rem;background:Canvas;color:CanvasText;box-shadow:0 .5rem 1.5rem #0003}.mgd-notification-center__list{margin:0;padding:0;list-style:none}.mgd-notification-center__list li{display:grid;gap:.25rem;padding:.75rem 0;border-top:1px solid #ddd}.mgd-notification-center__list a{color:inherit;text-decoration:none}.mgd-notification-center__list a:focus-visible,.mgd-notification-center__button:focus-visible{outline:3px solid #005fcc;outline-offset:3px}

.mgd-notification-center [hidden]{display:none!important}
.mgd-notification-center__read-all{min-height:44px;padding:.6rem .9rem;border:1px solid #6c7a91;border-radius:.6rem;background:#edf1f7;color:#172747;cursor:pointer;font:inherit}
.mgd-notification-center__read-all:disabled{opacity:.55;cursor:default}
.mgd-notification-center__status{font-size:.8rem;line-height:1.5}
.mgd-notification-center__list .is-read{opacity:.7}
.mgd-notification-center__item-action{display:block;min-height:36px;border:0;background:transparent;color:inherit;text-align:left;font:inherit;font-weight:700;padding:0;cursor:pointer}
.mgd-notification-center button:focus-visible,.mgd-notification-dialog :focus-visible{outline:3px solid #005fcc;outline-offset:3px}
.mgd-notification-dialog{box-sizing:border-box;width:min(680px,calc(100% - 32px));max-height:calc(100dvh - 32px);padding:0;border:1px solid #c8d0dc;border-radius:18px;background:Canvas;color:CanvasText;overflow:hidden}
.mgd-notification-dialog[open]{display:flex;flex-direction:column}
.mgd-notification-dialog::backdrop{background:#14203b85;backdrop-filter:blur(7px)}
.mgd-notification-dialog header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:20px;border-bottom:1px solid #dce1ec}
.mgd-notification-dialog h2{font-size:1.35rem;line-height:1.3;margin:0}
.mgd-notification-dialog header button{flex:none;width:44px;height:44px;border:1px solid #bcc5d4;border-radius:10px;background:Canvas;color:CanvasText;font-size:26px;cursor:pointer}
.mgd-notification-dialog__body{padding:20px;overflow:auto;overscroll-behavior:contain;line-height:1.7}
.mgd-notification-dialog__body p{white-space:pre-line;margin:0 0 18px}

/* Das Panel bleibt auch bei der voreingestellten unteren Platzierung im Fenster. */
.mgd-notification-center__panel{box-sizing:border-box;max-height:min(30rem,calc(100dvh - 7rem));overscroll-behavior:contain}
.mgd-notification-center--floating-bottom-left .mgd-notification-center__panel,.mgd-notification-center--floating-bottom-right .mgd-notification-center__panel{bottom:calc(100% + .5rem);top:auto}
.mgd-notification-center--floating-top-left .mgd-notification-center__panel,.mgd-notification-center--floating-top-right .mgd-notification-center__panel{top:calc(100% + .5rem)}
.mgd-notification-center--floating-top-left .mgd-notification-center__panel,.mgd-notification-center--floating-bottom-left .mgd-notification-center__panel,.mgd-notification-center--inline .mgd-notification-center__panel{left:0;right:auto}

/* 0.3.0 Kopf, Ausblenden, Alle anzeigen */
.mgd-notification-center__head{display:flex;align-items:center;justify-content:space-between;gap:.75rem;margin-bottom:.25rem}
.mgd-notification-center__status:empty{display:none}
.mgd-notification-center__list li{grid-template-columns:1fr auto;align-items:start;column-gap:.5rem}
.mgd-notification-center__list li>.mgd-notification-center__text,.mgd-notification-center__list li>.mgd-notification-center__meta{grid-column:1/-1}
.mgd-notification-center__text{font-size:.9rem;line-height:1.5}
.mgd-notification-center__meta{font-size:.75rem;opacity:.75}
.mgd-notification-center__hide{inline-size:32px;block-size:32px;border:1px solid transparent;border-radius:8px;background:transparent;color:inherit;font-size:20px;line-height:1;cursor:pointer;opacity:.7}
.mgd-notification-center__hide:hover{opacity:1;border-color:#bcc5d4}
.mgd-notification-center__show-all{display:block;inline-size:100%;min-height:44px;margin-top:.5rem;border:1px solid #6c7a91;border-radius:.6rem;background:transparent;color:inherit;font:inherit;font-weight:700;cursor:pointer}
.mgd-notification-dialog header{align-items:center}
.mgd-notification-dialog h2{flex:1}
.mgd-notification-dialog__read-all{min-height:44px;padding:.5rem .9rem;border:1px solid #6c7a91;border-radius:.6rem;background:#edf1f7;color:#172747;font:inherit;cursor:pointer}
.mgd-notification-dialog__read-all:disabled{opacity:.55;cursor:default}
.mgd-notification-dialog__list{display:grid;gap:.5rem}
.mgd-notification-dialog__item{border:1px solid #dce1ec;border-radius:12px}
.mgd-notification-dialog__item.is-read{opacity:.75}
.mgd-notification-dialog__item summary{display:flex;align-items:baseline;justify-content:space-between;gap:1rem;padding:.85rem 1rem;cursor:pointer;font-weight:700;list-style-position:inside}
.mgd-notification-dialog__item summary small{flex:none;font-weight:400;opacity:.75}
.mgd-notification-dialog__content{padding:0 1rem 1rem;line-height:1.7;overflow-wrap:anywhere}
.mgd-notification-dialog__content a{color:#005fcc;text-decoration:underline}
.mgd-notification-dialog__content p{margin:0 0 .75rem}
.mgd-notification-dialog__actions{display:flex;flex-wrap:wrap;align-items:center;gap:.75rem;margin-top:.5rem}
.mgd-notification-dialog__hide{min-height:40px;padding:.4rem .8rem;border:1px solid #bcc5d4;border-radius:.6rem;background:transparent;color:inherit;font:inherit;cursor:pointer}
@media (max-width:600px){.mgd-notification-dialog header{flex-wrap:wrap}.mgd-notification-dialog h2{flex-basis:calc(100% - 60px)}.mgd-notification-dialog__item summary{flex-direction:column;gap:.25rem}}
.mgd-notification-dialog [hidden]{display:none!important}
.mgd-notification-dialog header .mgd-notification-dialog__read-all{width:auto;height:auto;font-size:.95rem;white-space:nowrap}
/* Ausblenden als Text-Button */
.mgd-notification-center__list li{grid-template-columns:1fr}
.mgd-notification-center__foot{display:flex;align-items:center;justify-content:space-between;gap:.5rem}
.mgd-notification-center__hide{inline-size:auto;block-size:auto;min-height:32px;padding:.25rem .6rem;border:1px solid #bcc5d4;font-size:.8rem;opacity:1}
.mgd-notification-center__hide:hover{border-color:#6c7a91}
/* Gelesene ausblenden */
.mgd-notification-center__head{flex-wrap:wrap}
.mgd-notification-center__tools{display:flex;flex-wrap:wrap;gap:.4rem}
.mgd-notification-center__tools button{min-height:36px;padding:.35rem .65rem;font-size:.8rem}
.mgd-notification-center__hide-read{border:1px solid #6c7a91;border-radius:.6rem;background:transparent;color:inherit;font:inherit;cursor:pointer}
.mgd-notification-center__hide-read:disabled{opacity:.55;cursor:default}
/* SVG Glocke statt Emoji */
.mgd-notification-center__button{display:inline-grid;place-items:center;padding:0}
.mgd-notification-center__icon{width:22px;height:22px;display:block}
/* Akzent blau */
.mgd-notification-center,.mgd-notification-dialog{--mgd-accent:#2563eb;--mgd-accent-hover:#1d4ed8}
.mgd-notification-center__show-all{background:var(--mgd-accent);border-color:var(--mgd-accent);color:#fff}
.mgd-notification-center__show-all:hover{background:var(--mgd-accent-hover)}
.mgd-notification-center__read-all,.mgd-notification-dialog__read-all{background:#e8efff;border-color:var(--mgd-accent);color:#1e3a8a}
.mgd-notification-center__hide-read,.mgd-notification-center__hide:hover,.mgd-notification-dialog__hide:hover{border-color:var(--mgd-accent)}
.mgd-notification-dialog__content a,.mgd-notification-dialog__link{color:var(--mgd-accent)}
.mgd-notification-center__list a:focus-visible,.mgd-notification-center__button:focus-visible,.mgd-notification-center button:focus-visible,.mgd-notification-dialog :focus-visible{outline-color:var(--mgd-accent)}
.mgd-notification-dialog__item[open]{border-color:var(--mgd-accent)}
/* Status im Fenster */
.mgd-notification-dialog .mgd-notification-center__status{margin:0 0 .75rem;font-size:.85rem}
.mgd-notification-center__status:empty{display:none}
