/* DigGesV Impulse & Mitteilungen – Karte / Kalender / Gerätearchiv. */
.dgbz-inbox,.dgbz-inbox *{box-sizing:border-box}
.dgbz-inbox{max-width:1200px;margin:0 auto 28px;padding:clamp(18px,3vw,32px);border:1px solid #e7e4df;background:#fffdfa;color:#183452;border-radius:23px;box-shadow:0 8px 24px rgba(24,49,80,.055);font-family:system-ui,-apple-system,"Segoe UI",Roboto,sans-serif}
.dgbz-inbox-heading{display:flex;align-items:start;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-bottom:21px}
.dgbz-inbox .dgbz-eyebrow{font-size:11px;font-weight:800;letter-spacing:.16em;color:#ad7e2a;margin:0 0 8px}
.dgbz-inbox h2{margin:0 0 6px!important;font-size:clamp(23px,2.7vw,32px);line-height:1.2;color:#153250}
.dgbz-inbox-heading p:not(.dgbz-eyebrow){margin:0;color:#5a6c7b;font-size:14px;line-height:1.65}
.dgbz-inbox-count{margin-top:4px;padding:8px 12px;background:#fff1c9;border-radius:50px;color:#243b53;font-size:12px;font-weight:700;white-space:nowrap}
.dgbz-inbox-columns{display:grid;grid-template-columns:minmax(0,1.85fr) minmax(255px,1fr);gap:22px;align-items:start}
.dgbz-inbox-main,.dgbz-inbox-side{min-width:0}
.dgbz-section-head{display:flex;align-items:baseline;justify-content:space-between;gap:14px;margin-bottom:12px}
.dgbz-inbox h3{font-size:clamp(16px,1.8vw,21px);line-height:1.3;margin:0;color:#213953}
.dgbz-section-head span{font-size:13px;color:#687a88}
.dgbz-card-stage{display:grid;grid-template-columns:30px minmax(0,1fr) 30px;gap:6px;align-items:center}
.dgbz-inbox button{display:inline-flex;align-items:center;justify-content:center;padding:9px 13px;border-radius:10px;border:1px solid #cfdae5;background:#f7fafc;color:#244666;cursor:pointer;font:600 13px/1.35 system-ui,-apple-system,"Segoe UI",sans-serif;transition:background-color .12s ease,border-color .12s ease}
.dgbz-inbox button:hover:not(:disabled){background:#eaf2fa;border-color:#a8c1dc}
.dgbz-inbox button:focus-visible,.dgbz-inbox a:focus-visible{outline:3px solid #3974b5;outline-offset:3px}
.dgbz-inbox button:disabled{opacity:.4;cursor:not-allowed}
.dgbz-inbox .dgbz-nav{border:0;background:transparent;box-shadow:none;font-size:30px;padding:6px 2px;min-width:28px;color:#a68146}
.dgbz-inbox .dgbz-nav:hover:not(:disabled){background:#fff3e1}
.dgbz-card-art{width:100%;position:relative;aspect-ratio:16/9;border-radius:15px;overflow:hidden;background:#e8d7ba;box-shadow:0 7px 20px rgba(65,51,30,.13);isolation:isolate}
.dgbz-card-art>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-1}
.dgbz-card-copy{position:absolute;left:6.5%;top:14%;width:64%;height:70%;display:flex;flex-direction:column;justify-content:center;gap:7%;color:#141414;overflow:hidden}
.dgbz-card-copy h4{font-family:Arial,Helvetica,sans-serif;font-size:clamp(13px,2.2vw,32px);font-weight:700;line-height:1.19;margin:0!important;color:#101010;overflow-wrap:anywhere;hyphens:auto}
.dgbz-card-copy p{font-family:Arial,Helvetica,sans-serif;font-size:clamp(10px,1.2vw,17px);line-height:1.4;font-weight:400;margin:0!important;color:#202020;overflow-wrap:anywhere;white-space:pre-line}
.dgbz-card-art.is-empty{background:#f1e9de}
.dgbz-card-art.is-empty .dgbz-card-copy{width:84%;height:75%}
.dgbz-card-footer{position:absolute;left:6.5%;right:27.5%;bottom:4.8%;padding-top:4px;border-top:1px solid #868077;color:#57534f;font:400 clamp(6px,.78vw,11px)/1.2 Arial,Helvetica,sans-serif;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dgbz-card-actions{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0 8px;align-items:center}
.dgbz-card-actions>a{padding:8px 3px;text-decoration:underline;text-underline-offset:3px;font-size:13px;color:#315d85}
.dgbz-card-feedback{display:flex;align-items:center;flex-wrap:wrap;gap:7px;margin:12px 0;color:#4c6276;font-size:13px}
.dgbz-card-feedback button[aria-pressed="true"],#dgbz-favorite[aria-pressed="true"]{background:#fff1cf;border-color:#d9b26e;color:#714b16}
.dgbz-card-caption,.dgbz-calendar-hint{margin:7px 0 0;font-size:12px;line-height:1.5;color:#63758a}
.dgbz-inbox-side{padding:17px;border:1px solid #e7eaf0;border-radius:17px;background:#fbfcfe}
.dgbz-inbox-side h3{font-size:18px;margin-bottom:17px}
.dgbz-month-bar{display:flex;gap:6px;justify-content:space-between;align-items:center;margin-bottom:10px}
.dgbz-month-bar strong{font-size:15px;color:#213953;white-space:nowrap}
.dgbz-month-bar button{padding:5px 10px;font-size:20px;line-height:1}
.dgbz-calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;text-align:center}
.dgbz-weekday{font-size:11px;font-weight:700;color:#697d8e;padding:7px 0}
.dgbz-inbox .dgbz-calendar-day{min-width:0;aspect-ratio:1;border-radius:8px;border:1px solid transparent;background:transparent;padding:0;font-size:12px;font-weight:600;color:#52677c}
.dgbz-inbox .dgbz-calendar-day.has-impulse{background:#fff1d8;color:#5b421e;border-color:#f3d7a5}
.dgbz-inbox .dgbz-calendar-day.has-impulse:hover{background:#fce3b5}
.dgbz-inbox .dgbz-calendar-day.is-today{outline:1px solid #d4a75b;outline-offset:-2px}
.dgbz-inbox .dgbz-calendar-day.selected{background:#1e4771;color:#fff;border-color:#1e4771;opacity:1}
.dgbz-inbox .dgbz-calendar-day:disabled{opacity:.38;cursor:default}
#dgbz-show-latest{margin-top:15px;width:100%}
.dgbz-inbox-list-area{border-top:1px solid #e9e7e2;margin-top:26px;padding-top:22px}
.dgbz-inbox-actions{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}
.dgbz-inbox-status{font-size:13px;line-height:1.5;margin:0 0 12px;color:#66788a}
#dgbz-inbox-items{display:grid;gap:11px}
.dgbz-inbox-item{padding:15px 18px;border:1px solid #e2e8f0;border-radius:13px;background:#fff;overflow-wrap:anywhere}
.dgbz-inbox-item.is-unread{border-left:4px solid #e7b040;background:#fffaf1}
.dgbz-inbox-item.is-read{opacity:.85}
.dgbz-inbox-item-meta{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:6px;font-size:11px;color:#68768a}
.dgbz-inbox-new{padding:3px 9px;border-radius:20px;background:#efc666;color:#31405a;font-size:11px}
.dgbz-inbox-item h4{font-size:15px;line-height:1.35;color:#1e3d5b;margin:0 0 5px}
.dgbz-inbox-item p{font-size:14px;line-height:1.6;color:#324a5f;white-space:pre-wrap;margin:0 0 10px}
.dgbz-inbox-item button{margin:3px 7px 3px 0}
.dgbz-inbox-note{font-size:12px;line-height:1.6;color:#687789;margin:17px 0 0}
.dgbz-inbox-fallback{max-width:1240px;margin:24px auto;padding:0 18px}
a.dg-postfach-bell.dgbz-inbox-bell-connected{position:relative}
a.dg-postfach-bell.dgbz-inbox-bell-connected::after{content:none!important}
a.dg-postfach-bell .dgbz-bell-count{position:absolute;right:-6px;top:-7px;display:flex;justify-content:center;align-items:center;min-width:18px;height:18px;border:2px solid #fff;border-radius:20px;background:#cb3b2b;color:#fff;font:700 10px/1 system-ui,sans-serif;pointer-events:none}
a.dg-postfach-bell .dgbz-bell-count[hidden]{display:none!important}
body.page-id-6370 .dg-postfach-start.dgbz-inbox-active .dg-pf-layout{display:none!important}
.dg-postfach-link .dg-postfach-soon{display:none!important}
@media(max-width:830px){.dgbz-inbox-columns{grid-template-columns:1fr}.dgbz-inbox-side{max-width:450px}.dgbz-card-copy h4{font-size:clamp(13px,3.6vw,32px)}.dgbz-card-copy p{font-size:clamp(10px,2vw,18px)}.dgbz-card-footer{font-size:clamp(6px,1.2vw,10px)}}
@media(max-width:520px){.dgbz-inbox{padding:14px;border-radius:16px}.dgbz-inbox-heading{gap:8px}.dgbz-card-stage{grid-template-columns:20px minmax(0,1fr) 20px;gap:2px}.dgbz-inbox .dgbz-nav{min-width:20px;font-size:22px}.dgbz-card-art{border-radius:9px}.dgbz-card-copy h4{font-size:clamp(11px,3.3vw,16px);line-height:1.17}.dgbz-card-copy p{font-size:clamp(9px,2.2vw,12px)}.dgbz-card-footer{font-size:5.5px}.dgbz-card-actions{gap:6px}.dgbz-inbox .dgbz-card-actions button{font-size:12px;padding:7px 9px}}
@media print{
  @page{size:landscape;margin:5mm}
  body *{visibility:hidden!important}
  #dgbz-card-art,#dgbz-card-art *{visibility:visible!important}
  #dgbz-card-art{position:fixed!important;left:0!important;top:0!important;width:100vw!important;height:auto!important;aspect-ratio:16/9!important;box-shadow:none!important;border:0!important;border-radius:0!important;z-index:999999!important;print-color-adjust:exact;-webkit-print-color-adjust:exact}
}

/* 0.3.2: Die persönliche Sammlung beginnt mit der Nutzung. */
.dgbz-inbox .dgbz-calendar-day:not(.has-impulse):disabled{opacity:.28}
/* Gleiche Daumen und kuehle Pastellfarbwelt wie im Support & Sprachfeedback. */
.dgbz-inbox .dgbz-card-feedback button{background:#edf5fb;border-color:#c9ddec;color:#173953;border-radius:9px;font-weight:650}
.dgbz-inbox .dgbz-card-feedback button:hover:not(:disabled){background:#dcecf9;border-color:#aac8e3}
.dgbz-inbox .dgbz-card-feedback button[aria-pressed="true"]{background:#d5e6f5;border-color:#7ba5c7;color:#153b60;box-shadow:inset 0 0 0 1px #8daec9}

/* Desktop: reduzierter Leerraum unter der festen App-Kopfzeile. */
@media(min-width:901px){
  body.page-id-6370 .dg-postfach-start.dgbz-inbox-active{
    margin-top:-64px!important;
    padding-top:14px!important;
  }
}

/* Nachtmodus der DigGesV-App; originale Karten selbst bleiben unveraendert. */
:is(body[data-tod="nacht"],body[data-theme="dark"],html[data-tod="nacht"] body,html[data-theme="dark"] body)
.dgbz-inbox{
  background:#20314b!important;
  border-color:#425571!important;
  color:#eff4fb!important;
  box-shadow:0 10px 30px rgba(0,0,0,.2);
  color-scheme:dark;
}
:is(body[data-tod="nacht"],body[data-theme="dark"],html[data-tod="nacht"] body,html[data-theme="dark"] body)
.dgbz-inbox :is(h2,h3,.dgbz-month-bar strong,.dgbz-inbox-item h4){color:#f2f6ff!important}
:is(body[data-tod="nacht"],body[data-theme="dark"],html[data-tod="nacht"] body,html[data-theme="dark"] body)
.dgbz-inbox :is(.dgbz-inbox-heading p:not(.dgbz-eyebrow),.dgbz-section-head span,.dgbz-weekday,.dgbz-card-feedback,.dgbz-inbox-status,.dgbz-inbox-note,.dgbz-card-caption,.dgbz-calendar-hint,.dgbz-inbox-item-meta){color:#c9d5e7!important}
:is(body[data-tod="nacht"],body[data-theme="dark"],html[data-tod="nacht"] body,html[data-theme="dark"] body)
.dgbz-inbox :is(.dgbz-inbox-side,.dgbz-inbox-item){background:#192a43!important;border-color:#405776!important;color:#eef3fb!important}
:is(body[data-tod="nacht"],body[data-theme="dark"],html[data-tod="nacht"] body,html[data-theme="dark"] body)
.dgbz-inbox :is(.dgbz-inbox-item p){color:#e0e9f6!important}
:is(body[data-tod="nacht"],body[data-theme="dark"],html[data-tod="nacht"] body,html[data-theme="dark"] body)
.dgbz-inbox :is(button,.dgbz-card-feedback button){background:#2a4363!important;border-color:#58718f!important;color:#f5f7fc!important}
:is(body[data-tod="nacht"],body[data-theme="dark"],html[data-tod="nacht"] body,html[data-theme="dark"] body)
.dgbz-inbox button:hover:not(:disabled){background:#365376!important}
:is(body[data-tod="nacht"],body[data-theme="dark"],html[data-tod="nacht"] body,html[data-theme="dark"] body)
.dgbz-inbox :is(.dgbz-nav){background:transparent!important;color:#f1c57e!important;border:0!important}
:is(body[data-tod="nacht"],body[data-theme="dark"],html[data-tod="nacht"] body,html[data-theme="dark"] body)
.dgbz-inbox :is(.dgbz-calendar-day.has-impulse){background:#334a63!important;border-color:#69809c!important;color:#f6e4c8!important}
:is(body[data-tod="nacht"],body[data-theme="dark"],html[data-tod="nacht"] body,html[data-theme="dark"] body)
.dgbz-inbox :is(.dgbz-calendar-day.selected){background:#dba962!important;border-color:#dba962!important;color:#17253c!important}
:is(body[data-tod="nacht"],body[data-theme="dark"],html[data-tod="nacht"] body,html[data-theme="dark"] body)
.dgbz-inbox :is(.dgbz-inbox-count,.dgbz-inbox-new){background:#b98b43!important;color:#12253c!important}
:is(body[data-tod="nacht"],body[data-theme="dark"],html[data-tod="nacht"] body,html[data-theme="dark"] body)
.dgbz-inbox :is(.dgbz-inbox-list-area){border-top-color:#405776!important}
:is(body[data-tod="nacht"],body[data-theme="dark"],html[data-tod="nacht"] body,html[data-theme="dark"] body)
.dgbz-inbox .dgbz-card-actions>a{color:#abd1fc!important}
/* Das Sandmotiv mit schwarzem Text bleibt ausdruecklich unangetastet. */


/* 0.3.3 – bessere Lesbarkeit, insbesondere bei noch nicht nutzbaren Aktionen.
   Deaktivierte Aktionen bleiben deaktiviert, sind aber klar beschriftet.
   Die Sandkarten und ihre eigene Typografie werden nicht verändert. */
.dgbz-inbox .dgbz-inbox-heading p:not(.dgbz-eyebrow){color:#334d65;font-size:15px}
.dgbz-inbox .dgbz-section-head span{color:#36516b;font-size:14px}
.dgbz-inbox .dgbz-card-feedback{color:#304d66;font-size:14px}
.dgbz-inbox .dgbz-card-caption,
.dgbz-inbox .dgbz-calendar-hint{color:#43586c;font-size:13px;line-height:1.6}
.dgbz-inbox .dgbz-weekday{color:#455e74;font-size:12px}
.dgbz-inbox .dgbz-inbox-status{color:#3a5268;font-size:14px;line-height:1.65}
.dgbz-inbox .dgbz-inbox-note{color:#3c5369;font-size:13px;line-height:1.7}
.dgbz-inbox .dgbz-inbox-item-meta{color:#455b70;font-size:12px}
.dgbz-inbox .dgbz-card-actions>a{font-size:14px;color:#22547b}
.dgbz-inbox .dgbz-inbox-actions button{font-size:14px}
.dgbz-inbox .dgbz-inbox-actions button:disabled{
  opacity:1!important;
  background:#e9eef3!important;
  border-color:#b9c7d5!important;
  color:#4f6277!important;
  cursor:not-allowed;
}
.dgbz-inbox .dgbz-calendar-day:not(.has-impulse):disabled{
  opacity:.65;
  color:#63778b;
}
:is(body[data-tod="nacht"],body[data-theme="dark"],html[data-tod="nacht"] body,html[data-theme="dark"] body)
.dgbz-inbox .dgbz-inbox-actions button:disabled{
  opacity:1!important;
  background:#2c4059!important;
  border-color:#778aa2!important;
  color:#d0dced!important;
}
:is(body[data-tod="nacht"],body[data-theme="dark"],html[data-tod="nacht"] body,html[data-theme="dark"] body)
.dgbz-inbox .dgbz-calendar-day:not(.has-impulse):disabled{
  opacity:.75!important;
  color:#ced9e6!important;
}
:is(body[data-tod="nacht"],body[data-theme="dark"],html[data-tod="nacht"] body,html[data-theme="dark"] body)
.dgbz-inbox :is(.dgbz-inbox-heading p:not(.dgbz-eyebrow),.dgbz-section-head span,.dgbz-weekday,.dgbz-card-feedback,.dgbz-inbox-status,.dgbz-inbox-note,.dgbz-card-caption,.dgbz-calendar-hint,.dgbz-inbox-item-meta){
  color:#e0e8f4!important;
}
:is(body[data-tod="nacht"],body[data-theme="dark"],html[data-tod="nacht"] body,html[data-theme="dark"] body)
.dgbz-inbox .dgbz-card-actions>a{color:#c1dcfb!important}


/* 0.3.5 – ein gemeinsamer Zähler für Tagesimpuls, Glocke und Menü.
   Die bestehende Menüstruktur und die Seitenfarben bleiben unverändert. */
a.dgbz-menu-badge-anchor.dgbz-inbox-bell-connected{position:relative!important}
a.dgbz-menu-badge-anchor .dgbz-menu-count{
  position:absolute;right:2px;top:2px;display:inline-flex;align-items:center;justify-content:center;
  min-width:19px;height:19px;padding:0 4px;border-radius:100px;
  background:#c53632;color:#fff;border:2px solid #fff;
  font:700 10px/1 system-ui,-apple-system,"Segoe UI",sans-serif;
  pointer-events:none;z-index:5;
}
a.dgbz-menu-badge-anchor .dgbz-menu-count[hidden]{display:none!important}
a.dg-postfach-bell .dgbz-bell-count{z-index:5}
:is(body[data-tod="nacht"],body[data-theme="dark"],html[data-tod="nacht"] body,html[data-theme="dark"] body)
:is(a.dgbz-menu-badge-anchor .dgbz-menu-count,a.dg-postfach-bell .dgbz-bell-count){
  background:#e6ad53;color:#182d47;border-color:#223b5c;
}

/* 0.3.6 – die Zahl ist auch in der schmalen, eingeklappten DigGesV-Leiste sichtbar.
   Nicht als <span>: das Sidebar-Theme versteckt beim Einklappen seine Textspans.
   Innerhalb der Icon-Flaeche positionieren, damit nichts abgeschnitten wird. */
#sidebar-menu a.dg-postfach-link.dgbz-menu-badge-anchor{
  position:relative!important;
  overflow:visible!important;
}
#sidebar-menu a.dg-postfach-link b.dgbz-menu-count,
a.dg-postfach-link.dgbz-menu-badge-anchor b.dgbz-menu-count{
  position:absolute!important;
  left:25px!important;
  right:auto!important;
  top:0!important;
  bottom:auto!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-width:17px!important;
  width:auto!important;
  height:17px!important;
  padding:0 3px!important;
  margin:0!important;
  border:2px solid #fff!important;
  border-radius:20px!important;
  background:#c53632!important;
  color:#fff!important;
  font:700 10px/1 system-ui,-apple-system,"Segoe UI",sans-serif!important;
  font-style:normal!important;
  line-height:1!important;
  opacity:1!important;
  visibility:visible!important;
  pointer-events:none!important;
  z-index:50!important;
  box-sizing:border-box!important;
}
#sidebar-menu a.dg-postfach-link b.dgbz-menu-count[hidden],
a.dg-postfach-link.dgbz-menu-badge-anchor b.dgbz-menu-count[hidden]{
  display:none!important;
}
:is(body[data-tod="nacht"],body[data-theme="dark"],html[data-tod="nacht"] body,html[data-theme="dark"] body)
#sidebar-menu a.dg-postfach-link b.dgbz-menu-count:not([hidden]){
  background:#e6ad53!important;
  color:#182d47!important;
  border-color:#223b5c!important;
}
