/* Mitteilungen: Glocke und Mitteilungs-Fenster (mobil Bottom-Sheet wie Statistik, Desktop mittig), Anleitung. Owner: paddock-v52-v7008n1-notifications.js */

.gpb-nt{position:relative;display:flex;align-items:center}
.gpb-nt-bell{position:relative;display:grid;place-items:center;width:40px;height:40px;margin:0;padding:0;border:1px solid transparent;border-radius:999px;background:transparent;color:var(--gpb-ui-text,#f6f8fb);cursor:pointer;-webkit-tap-highlight-color:transparent;transition:background .16s ease,border-color .16s ease}
.gpb-nt-bell svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.gpb-nt-bell:hover,.gpb-nt-bell[aria-expanded="true"]{background:#15191f;border-color:var(--gpb-ui-line,rgba(255,255,255,.09))}
.gpb-nt-bell:focus-visible{outline:2px solid var(--gpb-ui-accent,#f20b17);outline-offset:2px}
.gpb-nt-count{position:absolute;top:-2px;right:-4px;min-width:20px;height:20px;padding:0 5px;border:2px solid var(--gpb-ui-bg,#08090c);border-radius:999px;background:var(--gpb-ui-accent,#f20b17);color:#fff;font-size:12px;font-weight:800;line-height:16px;text-align:center;font-variant-numeric:tabular-nums;box-sizing:border-box;box-shadow:0 2px 6px rgba(0,0,0,.35)}
.gpb-nt-count[hidden]{display:none}

/* Desktop: links neben dem Team-Badge, mit Luft dazwischen. Die Glocke sitzt optisch mittig im Kreis. */
.gpb-nt-desktop{margin-right:-4px}
.gpb-nt-bell svg{transform:translateY(-.5px)}
.gpb-nt-mobile{display:none}

/* Mitteilungs-Fenster: gemeinsames Bottom-Sheet (gpb-msheet). Mobil liefert der Sheet-Owner Form, Griff und
   Runterziehen; hier der Inhalt (Filter, Zeitgruppen als Blöcke, Zeile mit Zeichen, Text und Bild) und die
   mittige Desktop-Variante. Farbe nur für "neu" (Markenrot); Kategorien über Zeichen und Wort. */
.gpb-msheet.is-notifications{--nt-surface:#151a21;--nt-line:rgba(255,255,255,.07);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.gpb-msheet.is-notifications .gpb-msheet-head{display:flex;align-items:center;gap:8px;padding:2px 16px 0 20px}
.gpb-msheet.is-notifications .gpb-msheet-head h2{flex:1;margin:0;font-size:24px;font-weight:800;letter-spacing:-.02em;line-height:1.15}
.gpb-nt-back{display:none;width:36px;height:36px;margin-left:-10px;padding:0;place-items:center;border:0;border-radius:999px;background:none;color:var(--gpb-ui-text,#f6f8fb);cursor:pointer}
.gpb-nt-back svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.gpb-msheet.is-notifications.is-settings .gpb-nt-back{display:grid}
.gpb-msheet.is-notifications.is-settings .gpb-nt-top{display:none}

.gpb-nt-top{flex:none;padding:16px 20px 0}
.gpb-nt-filters{display:grid;grid-template-columns:repeat(4,1fr);gap:4px;padding:4px;border-radius:11px;background:rgba(255,255,255,.05)}
.gpb-nt-filters button{height:32px;padding:0 4px;border:0;border-radius:8px;background:transparent;color:var(--gpb-ui-muted,#8d95a1);font:inherit;font-size:13px;font-weight:600;white-space:nowrap;cursor:pointer;transition:background .16s ease,color .16s ease}
.gpb-nt-filters button:hover{color:var(--gpb-ui-text,#f6f8fb)}
.gpb-nt-filters button.is-active{background:#1f252e;color:var(--gpb-ui-text,#f6f8fb)}
.gpb-nt-tools{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:12px;color:var(--gpb-ui-muted,#8d95a1);font-size:13px}
.gpb-nt-tools [data-gpb-nt-newcount].is-new{color:var(--gpb-ui-text,#f6f8fb);font-weight:600}
.gpb-nt-tools>span:last-child{display:flex;align-items:center;gap:14px}
.gpb-nt-link{padding:4px 0;border:0;background:none;color:var(--gpb-ui-muted,#8d95a1);font:inherit;font-size:13px;cursor:pointer}
.gpb-nt-link:hover{color:var(--gpb-ui-text,#f6f8fb)}
.gpb-nt-link[hidden]{display:none}
.gpb-nt-gear{display:grid;place-items:center;width:36px;height:36px;margin:-8px -8px -8px 0;padding:0;border:0;border-radius:999px;background:none;color:var(--gpb-ui-data,#c9d1dc);cursor:pointer}
.gpb-nt-gear:hover{background:rgba(255,255,255,.08);color:var(--gpb-ui-text,#f6f8fb)}
.gpb-nt-gear svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round}
.gpb-nt-gear:focus-visible{outline:2px solid rgba(242,11,23,.58);outline-offset:2px}
.gpb-nt-filters button:focus-visible,.gpb-nt-link:focus-visible,.gpb-nt-back:focus-visible,.gpb-nt-row:focus-visible,.gpb-nt-setting:focus-visible,.gpb-nt-device:focus-visible,.gpb-nt-more:focus-visible{outline:2px solid rgba(242,11,23,.58);outline-offset:2px}

/* Zeitgruppen als Blöcke */
.gpb-nt-day{margin:20px 4px 8px;color:var(--gpb-ui-muted,#8d95a1);font-size:13px;font-weight:600;letter-spacing:0;text-transform:none}
.gpb-msheet-body>.gpb-nt-day:first-child,.gpb-msheet-body>[data-gpb-nt-list]:first-child>.gpb-nt-day:first-child{margin-top:12px}
.gpb-nt-block{border-radius:16px;background:var(--nt-surface);overflow:hidden}

/* Eine Mitteilung */
.gpb-nt-row{display:grid;grid-template-columns:36px minmax(0,1fr);gap:12px;align-items:center;padding:12px 14px;border-top:1px solid var(--nt-line);color:var(--gpb-ui-text,#f6f8fb);text-decoration:none;-webkit-tap-highlight-color:transparent;transition:background .12s ease}
.gpb-nt-row.has-image{grid-template-columns:36px minmax(0,1fr) 64px}
.gpb-nt-row:first-child{border-top:0}
.gpb-nt-row:hover{background:rgba(255,255,255,.03)}
.gpb-nt-row:active{background:rgba(255,255,255,.06)}
.gpb-nt-icon{align-self:start;display:grid;place-items:center;width:36px;height:36px;border-radius:10px;background:rgba(255,255,255,.07);color:var(--gpb-ui-data,#c9d1dc)}
.gpb-nt-row.is-unread .gpb-nt-icon{color:var(--gpb-ui-text,#f6f8fb)}
.gpb-nt-icon svg,.gpb-nt-legend svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.gpb-nt-icon svg .is-fill,.gpb-nt-legend svg .is-fill{fill:currentColor;stroke:none}
.gpb-nt-text{display:flex;min-width:0;flex-direction:column}
.gpb-nt-text strong{overflow:hidden;color:var(--gpb-ui-data,#c9d1dc);font-size:15px;font-weight:500;line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.gpb-nt-row.is-unread .gpb-nt-text strong{color:var(--gpb-ui-text,#f6f8fb);font-weight:700}
.gpb-nt-text small{margin-top:2px;overflow:hidden;color:var(--gpb-ui-muted,#8d95a1);font-size:13px;line-height:1.35;white-space:nowrap;text-overflow:ellipsis}
.gpb-nt-text small b{color:var(--gpb-ui-data,#c9d1dc);font-weight:600}
.gpb-nt-dot{display:inline-block;width:8px;height:8px;margin:0 7px 1px 0;border-radius:50%;background:var(--gpb-ui-accent,#f20b17);vertical-align:middle}
.gpb-nt-thumb{width:64px;height:48px;overflow:hidden;border-radius:8px;background:#1a1f27}
.gpb-nt-thumb img{display:block;width:100%;height:100%;object-fit:cover;overflow:visible;image-rendering:auto;filter:none;transform:none}
.gpb-nt-row.is-read .gpb-nt-thumb{opacity:.75}
.gpb-nt-more{display:block;width:100%;min-height:44px;margin-top:16px;padding:0 14px;border:0;border-radius:10px;background:rgba(255,255,255,.06);color:var(--gpb-ui-text,#f6f8fb);font:inherit;font-size:14px;font-weight:600;cursor:pointer}
.gpb-nt-more:hover{background:rgba(255,255,255,.1)}
/* "Ältere laden" bleibt auf kleinen Bildschirmen unten sichtbar */
.gpb-msheet.is-notifications .gpb-msheet-body{padding-left:20px;padding-right:20px}
.gpb-nt-morebar{position:sticky;bottom:-20px;margin:0 -20px -20px;padding:12px 20px 20px;background:linear-gradient(to bottom,rgba(15,18,23,0),#0f1217 12px)}
.gpb-nt-morebar .gpb-nt-more{margin-top:0;background:#1b2028}
.gpb-nt-empty{margin:0;padding:28px 8px;color:var(--gpb-ui-muted,#8d95a1);font-size:14px;line-height:1.5;text-align:center}

/* Gerätestatus: rot = blockiert, sonst ruhig */
.gpb-nt-device{display:grid;grid-template-columns:36px minmax(0,1fr) auto;gap:12px;align-items:center;width:100%;margin:12px 0 0;padding:12px 14px;border:0;border-radius:16px;background:var(--nt-surface);color:var(--gpb-ui-text,#f6f8fb);font:inherit;text-align:left;cursor:pointer}
.gpb-nt-device .gpb-nt-text small{white-space:normal}
.gpb-nt-device .gpb-nt-text strong{color:var(--gpb-ui-text,#f6f8fb);font-weight:700}
.gpb-nt-device.is-bad{background:rgba(255,107,116,.1);box-shadow:inset 0 0 0 1px rgba(255,107,116,.35)}
.gpb-nt-device.is-bad .gpb-nt-icon{background:rgba(255,107,116,.14);color:var(--gpb-ui-bad,#ff6b74)}
.gpb-nt-device.is-bad .gpb-nt-text strong{color:var(--gpb-ui-bad,#ff6b74)}
.gpb-nt-chevron{color:var(--gpb-ui-muted,#8d95a1);font-size:24px;line-height:1}

/* Einstellungen */
.gpb-nt-setting{display:grid;grid-template-columns:36px minmax(0,1fr) auto;gap:12px;align-items:center;width:100%;padding:12px 14px;border:0;border-top:1px solid var(--nt-line);background:none;color:var(--gpb-ui-text,#f6f8fb);font:inherit;text-align:left;cursor:pointer;-webkit-tap-highlight-color:transparent}
.gpb-nt-setting:first-child{border-top:0}
.gpb-nt-setting .gpb-nt-text strong{color:var(--gpb-ui-text,#f6f8fb);font-weight:600}
.gpb-nt-setting .gpb-nt-text small{white-space:normal}
.gpb-nt-setting:disabled{cursor:progress}
.gpb-nt-switch{position:relative;flex:none;width:46px;height:28px;border-radius:999px;background:#2a3039;transition:background .2s ease}
.gpb-nt-switch i{position:absolute;top:3px;left:3px;width:22px;height:22px;border-radius:50%;background:#f6f8fb;transition:transform .22s cubic-bezier(.32,.72,0,1)}
.gpb-nt-setting[aria-checked="true"] .gpb-nt-switch{background:var(--gpb-ui-good,#38d996)}
.gpb-nt-setting[aria-checked="true"] .gpb-nt-switch i{transform:translateX(18px)}
.gpb-nt-result{margin:10px 4px 0;font-size:13px;line-height:1.5;color:var(--gpb-ui-muted,#8d95a1)}
.gpb-nt-result.is-good{color:var(--gpb-ui-good,#38d996)}
.gpb-nt-result.is-bad{color:var(--gpb-ui-bad,#ff6b74)}
.gpb-nt-note{margin:10px 4px 0;color:var(--gpb-ui-muted,#8d95a1);font-size:13px;line-height:1.5}
.gpb-nt-cron{display:flex;align-items:center;gap:12px;padding:12px 14px}
.gpb-nt-cron code{flex:1;min-width:0;color:var(--gpb-ui-data,#c9d1dc);font:12px/1.4 ui-monospace,SFMono-Regular,Menlo,monospace;overflow-wrap:anywhere}

/* Anleitung (abgedunkelt, Schritt-Karte, Pfeil) */
html.gpb-nt-tut-open{overflow:hidden}
.gpb-nt-tut{position:fixed;inset:0;z-index:2000;display:flex;align-items:center;justify-content:center;padding:max(24px,env(safe-area-inset-top)) 16px max(24px,env(safe-area-inset-bottom));background:rgba(4,5,7,.78);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);box-sizing:border-box;animation:gpb-nt-fade .2s ease}
.gpb-nt-tut.has-arrow-bottom-center,.gpb-nt-tut.has-arrow-bottom-right{align-items:flex-start;padding-top:max(72px,env(safe-area-inset-top))}
.gpb-nt-tut.has-arrow-top-right,.gpb-nt-tut.has-arrow-top-left,.gpb-nt-tut.has-arrow-top-center{align-items:flex-end;padding-bottom:max(40px,env(safe-area-inset-bottom))}
.gpb-nt-tut-card{position:relative;width:min(380px,100%);padding:18px;border:1px solid var(--gpb-ui-line,rgba(255,255,255,.09));border-radius:14px;background:var(--gpb-ui-panel,#0f1217);box-shadow:0 24px 64px rgba(0,0,0,.6);color:var(--gpb-ui-text,#f6f8fb);box-sizing:border-box;animation:gpb-nt-rise .26s cubic-bezier(.2,.8,.2,1)}
.gpb-nt-tut-card .eyebrow{display:block;color:var(--gpb-ui-muted,#8d95a1);font-size:11px;font-weight:800;letter-spacing:.12em;text-transform:uppercase}
.gpb-nt-tut-card h2{margin:4px 32px 0 0;font-size:19px;font-weight:700;line-height:1.2;letter-spacing:0}
.gpb-nt-tut-card p{margin:12px 0 0;color:var(--gpb-ui-data,#c9d1dc);font-size:14px;line-height:1.5}
.gpb-nt-tut-card .gpb-nt-tut-hint{color:var(--gpb-ui-muted,#8d95a1);font-size:13px}
.gpb-nt-tut-card .gpb-nt-tut-msg{color:var(--gpb-ui-warn,#f6c453);font-size:13px}
.gpb-nt-tut-close{position:absolute;top:10px;right:10px;width:32px;height:32px;padding:0;border:0;border-radius:999px;background:transparent;color:var(--gpb-ui-muted,#8d95a1);font-size:22px;line-height:1;cursor:pointer}
.gpb-nt-tut-close:hover{background:#15191f;color:var(--gpb-ui-text,#f6f8fb)}
.gpb-nt-tut-visual{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:16px}
.gpb-nt-key{display:inline-flex;align-items:center;gap:8px;min-height:40px;padding:6px 12px 6px 8px;border:1px solid var(--gpb-ui-line,rgba(255,255,255,.09));border-radius:10px;background:var(--gpb-ui-surface,#11151b);font-size:13px;font-weight:700}
.gpb-nt-key svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.gpb-nt-key b:empty{display:none}
.gpb-nt-key:has(b:empty){padding:6px 8px}
.gpb-nt-appicon{display:inline-flex;flex-direction:column;align-items:center;gap:6px}
.gpb-nt-appicon img{width:60px;height:60px;border-radius:14px;box-shadow:0 6px 18px rgba(0,0,0,.4)}
.gpb-nt-appicon b{font-size:11px;font-weight:600}
.gpb-nt-tut-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:18px}
.gpb-nt-tut-dots{display:flex;align-items:center;gap:6px}
.gpb-nt-tut-dots i{width:6px;height:6px;border-radius:999px;background:#3a414b;transition:width .2s ease,background .2s ease}
.gpb-nt-tut-dots i.is-active{width:16px;background:var(--gpb-ui-text,#f6f8fb)}
.gpb-nt-tut-actions{display:flex;align-items:center;gap:8px;margin-left:auto}
.gpb-nt-tut-later{padding:9px 6px;border:0;background:transparent;color:var(--gpb-ui-muted,#8d95a1);font:inherit;font-size:13px;font-weight:700;cursor:pointer}
.gpb-nt-tut-later:hover{color:var(--gpb-ui-text,#f6f8fb)}
.gpb-nt-tut-primary{appearance:none;display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:9px 14px;border:1px solid var(--gpb-ui-line-strong,rgba(255,255,255,.10));border-radius:9px;background:#15191f;color:var(--gpb-ui-text,#f6f8fb);font:inherit;font-size:13px;font-weight:800;cursor:pointer;transition:background .16s ease}
.gpb-nt-tut-primary:hover{background:#1b2027}
.gpb-nt-tut-primary:focus-visible{outline:2px solid rgba(242,11,23,.58);outline-offset:2px}
.gpb-nt-tut-arrow{position:fixed;z-index:2001;width:56px;height:56px;color:var(--gpb-ui-accent,#f20b17);pointer-events:none;filter:drop-shadow(0 4px 12px rgba(242,11,23,.35))}
.gpb-nt-tut-arrow svg{width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:4;stroke-linecap:round;stroke-linejoin:round}
.gpb-nt-tut-arrow.is-bottom-center{bottom:max(18px,env(safe-area-inset-bottom));left:calc(50% - 28px);animation:gpb-nt-nudge-down 1.2s ease-in-out infinite}
.gpb-nt-tut-arrow.is-bottom-right{bottom:max(18px,env(safe-area-inset-bottom));right:18px;animation:gpb-nt-nudge-down 1.2s ease-in-out infinite}
.gpb-nt-tut-arrow.is-top-right{top:max(14px,env(safe-area-inset-top));right:18px;transform:rotate(180deg);animation:gpb-nt-nudge-up 1.2s ease-in-out infinite}
.gpb-nt-tut-arrow.is-top-left{top:14px;left:120px;transform:rotate(180deg);animation:gpb-nt-nudge-up 1.2s ease-in-out infinite}
.gpb-nt-tut-arrow.is-top-center{top:14px;left:calc(50% - 28px);transform:rotate(180deg);animation:gpb-nt-nudge-up 1.2s ease-in-out infinite}
@keyframes gpb-nt-fade{from{opacity:0}to{opacity:1}}
@keyframes gpb-nt-rise{from{opacity:0;transform:translateY(12px) scale(.98)}to{opacity:1;transform:none}}
@keyframes gpb-nt-nudge-down{0%,100%{translate:0 0}50%{translate:0 10px}}
@keyframes gpb-nt-nudge-up{0%,100%{translate:0 0}50%{translate:0 -10px}}

/* Führung durch das Fenster: alles abgedunkelt außer der gezeigten Stelle */
.gpb-nt-tour{position:fixed;inset:0;z-index:2000}
.gpb-nt-tour-hole{position:fixed;border-radius:14px;box-shadow:0 0 0 9999px rgba(4,5,7,.78);outline:2px solid rgba(242,11,23,.6);outline-offset:0;transition:all .26s cubic-bezier(.2,.8,.2,1);pointer-events:none}
.gpb-nt-tour-card{position:fixed;left:50%;width:min(380px,calc(100% - 32px));transform:translateX(-50%);animation:none}
.gpb-nt-legend{display:inline-flex;align-items:center;gap:6px;min-height:36px;padding:4px 10px 4px 6px;border:1px solid var(--gpb-ui-line,rgba(255,255,255,.09));border-radius:10px;background:var(--gpb-ui-surface,#11151b);font-size:12px;font-weight:700}

@media(min-width:761px){
  .gpb-msheet-scrim.is-notifications{display:block;position:fixed;inset:0;z-index:1100;background:rgba(0,0,0,.55);opacity:0;transition:opacity .24s ease}
  .gpb-msheet-scrim.is-notifications.is-open{opacity:1}
  .gpb-msheet.is-notifications{display:flex;flex-direction:column;position:fixed;inset:0;z-index:1101;width:min(480px,calc(100vw - 48px));height:fit-content;max-height:calc(100vh - 32px);margin:auto;padding:18px 0 0;border:1px solid rgba(255,255,255,.08);border-radius:20px;background:#0f1217;box-shadow:0 30px 80px rgba(0,0,0,.6);color:var(--gpb-ui-text,#f6f8fb);opacity:0;transform:translateY(14px) scale(.98);transition:transform .3s cubic-bezier(.32,.72,0,1),opacity .2s ease}
  .gpb-msheet.is-notifications.is-open{opacity:1;transform:none}
  .gpb-msheet.is-notifications .gpb-msheet-grab{display:none}
  .gpb-msheet.is-notifications .gpb-msheet-done{border:0;min-height:36px;padding:0 16px;border-radius:999px;background:rgba(255,255,255,.1);color:var(--gpb-ui-text,#f6f8fb);font:inherit;font-size:14px;font-weight:800;cursor:pointer}
  .gpb-msheet.is-notifications .gpb-msheet-done:hover{background:rgba(255,255,255,.16)}
  .gpb-msheet.is-notifications .gpb-msheet-body{overflow-y:auto;overscroll-behavior:contain;padding:0 20px 20px}
}
@media(max-width:760px){
  /* Mitteilungen am Handy: Fenster reicht fast bis ganz nach oben, damit mehr Einträge Platz haben */
  html[data-gpb-polish="1"] .gpb-msheet.is-notifications{height:calc(100dvh - max(12px,env(safe-area-inset-top)));max-height:none}
  html[data-gpb-polish="1"] .gpb-nt-desktop{display:none}
  html[data-gpb-polish="1"] .gpb-nt-mobile{display:block;position:fixed;top:8px;right:56px;z-index:1002;transition:top .28s cubic-bezier(.2,.8,.2,1),opacity .2s ease}
  html[data-gpb-polish="1"].gpb-mh-scrolled .gpb-nt-mobile{top:calc((var(--gpb-mh-bar-h,56px) - 40px) / 2)}
  html[data-gpb-polish="1"].gpb-menu-open .gpb-nt-mobile{opacity:0;pointer-events:none}
  html[data-gpb-polish="1"] .gpb-nt-mobile .gpb-nt-bell{color:var(--gpb-mh-text,#f6f8fb)}
  html[data-gpb-polish="1"] .gpb-nt-mobile .gpb-nt-bell:hover{background:transparent;border-color:transparent}
}
@media(prefers-reduced-motion:reduce){
  .gpb-nt-bell,.gpb-nt-row,.gpb-nt-filters button,.gpb-nt-mobile,.gpb-nt-tut-dots i,.gpb-msheet.is-notifications,.gpb-msheet-scrim.is-notifications,.gpb-nt-tour-hole,.gpb-nt-switch,.gpb-nt-switch i,.gpb-nt-tabs button{transition:none!important}
  .gpb-nt-tut,.gpb-nt-tut-card,.gpb-nt-tut-arrow{animation:none!important}
}
