/* Debit Base v49 – einheitliche Startseiten-Header und Menü-Korrekturen. */
:root{
  --db-v49-blue-a:#073c98;
  --db-v49-blue-b:#1677f2;
  --db-v49-blue-c:#8fd0ff;
  --db-v49-border:rgba(94,146,210,.22);
  --db-v49-shadow:0 18px 44px rgba(11,63,153,.10),inset 0 1px 0 rgba(255,255,255,.85);
  --db-v49-menu-gap:12px;
  --db-v49-fixedbar-offset:var(--db-fixedbar-h,58px);
}

/* PC-Breite reparieren: Seiteninhalt nutzt die Arbeitsfläche. */
@media (min-width:981px){
  html.db-v35-page-polished:not(.db-v27-start-active):not(.db-v35-legal-active) .app-shell,
  html.db-v35-page-polished:not(.db-v27-start-active):not(.db-v35-legal-active) .workspace{
    width:min(1500px,calc(100vw - clamp(18px,3vw,44px)))!important;
    max-width:1500px!important;
    margin-inline:auto!important;
  }
  html.db-v35-page-polished:not(.db-v27-start-active):not(.db-v35-legal-active) .page-stack{
    display:grid!important;
    grid-template-columns:repeat(12,minmax(0,1fr))!important;
    gap:clamp(12px,1.35vw,20px)!important;
    width:100%!important;
    align-items:start!important;
  }
  html.db-v35-page-polished .page-stack>.db-v35-page-hero,
  html.db-v35-page-polished .page-stack>.db-v49-route-hero,
  html.db-v35-page-polished .page-stack>.page-section-sequence,
  html.db-v35-page-polished .page-stack>.dashboard-two,
  html.db-v35-page-polished .page-stack>.dashboard-three,
  html.db-v35-page-polished .page-stack>.metric-grid,
  html.db-v35-page-polished .page-stack>.widget-page-toolbar,
  html.db-v35-page-polished .page-stack>.widget-edit-panel,
  html.db-v35-page-polished .page-stack>.fixed-overview-card,
  html.db-v35-page-polished .page-stack>.hero-overview{
    grid-column:1/-1!important;width:100%!important;max-width:none!important;min-width:0!important;
  }
  html.db-v35-page-polished .page-section-sequence{
    display:grid!important;grid-template-columns:repeat(12,minmax(0,1fr))!important;gap:clamp(12px,1.35vw,20px)!important;width:100%!important;max-width:none!important;align-items:start!important;
  }
  html.db-v35-page-polished .page-section-sequence>.ordered-section-item,
  html.db-v35-page-polished .page-section-sequence>*{grid-column:span 6!important;min-width:0!important;width:100%!important;}
  html.db-v35-page-polished .page-section-sequence>.ordered-section-item:has(.hero-overview),
  html.db-v35-page-polished .page-section-sequence>.ordered-section-item:has(.fixed-overview-card),
  html.db-v35-page-polished .page-section-sequence>.ordered-section-item:has(.metric-grid.five),
  html.db-v35-page-polished .page-section-sequence>.ordered-section-item:has(.transaction-list),
  html.db-v35-page-polished .page-section-sequence>.ordered-section-item:has(.week-card-grid),
  html.db-v35-page-polished .page-section-sequence>.ordered-section-item:has(.cashflow-ladder),
  html.db-v35-page-polished .page-section-sequence>.ordered-section-item:has(.cashflow-metrics),
  html.db-v35-page-polished .page-section-sequence>.ordered-section-item:has(.import-export-stack),
  html.db-v35-page-polished .page-section-sequence>.ordered-section-item:has(table),
  html.db-v35-page-polished .page-section-sequence>.ordered-section-item:has(.settings-panel){grid-column:1/-1!important;}
  html.db-v35-page-polished .dashboard-two,
  html.db-v35-page-polished .dashboard-two.dashboard-adaptive-grid{display:grid!important;grid-template-columns:repeat(2,minmax(300px,1fr))!important;gap:clamp(12px,1.35vw,18px)!important;width:100%!important;}
  html.db-v35-page-polished .dashboard-three,
  html.db-v35-page-polished .helper-grid,
  html.db-v35-page-polished .help-grid{display:grid!important;grid-template-columns:repeat(3,minmax(230px,1fr))!important;gap:clamp(12px,1.35vw,18px)!important;width:100%!important;}
  html.db-v35-page-polished .metric-grid.five{grid-template-columns:repeat(5,minmax(0,1fr))!important;}
  html.db-v35-page-polished .metric-grid.four,
  html.db-v35-page-polished .mini-stat-grid,
  html.db-v35-page-polished .delta-grid,
  html.db-v35-page-polished .cashflow-reserve-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;}
  html.db-v35-page-polished[data-db-v35-page="budget"] .page-section-sequence>.ordered-section-item:not(:has(.hero-overview)):not(:has(table)),
  html.db-v35-page-polished[data-db-v35-page="cashflow"] .page-section-sequence>.ordered-section-item:not(:has(.hero-overview)):not(:has(table)){grid-column:span 4!important;}
}
@media (max-width:980px){
  html.db-v35-page-polished:not(.db-v27-start-active):not(.db-v35-legal-active) .page-stack,
  html.db-v35-page-polished .page-section-sequence{display:grid!important;grid-template-columns:1fr!important;width:100%!important;}
  html.db-v35-page-polished .page-stack>*,html.db-v35-page-polished .page-section-sequence>*{grid-column:1/-1!important;width:100%!important;min-width:0!important;}
}

/* Nur Finanzhelfer: volle Zeilenbreite ohne Spaltensystem. */
@media (min-width:981px){
  html.db-v35-page-polished[data-db-v35-page="helpers"] .page-section-sequence{display:grid!important;grid-template-columns:1fr!important;gap:clamp(12px,1.35vw,18px)!important;}
  html.db-v35-page-polished[data-db-v35-page="helpers"] .page-section-sequence>.ordered-section-item,
  html.db-v35-page-polished[data-db-v35-page="helpers"] .page-section-sequence>*{grid-column:1/-1!important;width:100%!important;max-width:none!important;}
  html.db-v35-page-polished[data-db-v35-page="helpers"] .helper-grid,
  html.db-v35-page-polished[data-db-v35-page="helpers"] .help-grid,
  html.db-v35-page-polished[data-db-v35-page="helpers"] .dashboard-three,
  html.db-v35-page-polished[data-db-v35-page="helpers"] .dashboard-two,
  html.db-v35-page-polished[data-db-v35-page="helpers"] .metric-grid,
  html.db-v35-page-polished[data-db-v35-page="helpers"] .mini-stat-grid,
  html.db-v35-page-polished[data-db-v35-page="helpers"] .form-grid,
  html.db-v35-page-polished[data-db-v35-page="helpers"] .filter-grid{display:grid!important;grid-template-columns:1fr!important;width:100%!important;max-width:none!important;}
}

/* V50: Header auf allen Menüseiten exakt im Startseiten-Stil.
   Alte v43/v45/v49-Header werden nicht mehr verwendet. */
html.db-v35-page-polished:not(.db-v27-start-active):not(.db-v35-legal-active) .page-stack>.db-v49-route-hero,
html.db-v35-legal-active .db-v35-legal-hero.db-v49-route-hero{
  grid-column:1/-1!important;
  order:-100!important;
  margin:0 auto clamp(12px,2vw,24px)!important;
  width:min(1580px,calc(100vw - 120px))!important;
  max-width:calc(100vw - 120px)!important;
}
html.db-v35-page-polished .page-stack>.db-v35-page-hero:not(.db-v49-route-hero),
html.db-v35-page-polished .page-stack>.db-v43-page-hero:not(.db-v49-route-hero),
html.db-v35-page-polished .page-stack>.db-v45-page-hero:not(.db-v49-route-hero),
html.db-v35-page-polished .page-stack>.db-v49-startlike-hero:not(.db-v49-route-hero){
  display:none!important;
}
html.db-v35-page-polished .page-stack>.db-v49-route-hero + .db-v49-route-hero{display:none!important;}

/* Die Seiten-Header bekommen bewusst dieselben Grundwerte wie .db-v27-hero der Startseite. */
.db-v49-route-hero.db-v27-hero{
  position:relative!important;
  min-height:clamp(178px,23vw,280px)!important;
  overflow:hidden!important;
  border:1px solid rgba(255,255,255,.78)!important;
  border-radius:clamp(24px,3vw,38px)!important;
  padding:clamp(18px,3vw,34px)!important;
  background:radial-gradient(circle at 90% 12%,rgba(255,255,255,.55),transparent 20rem),radial-gradient(circle at 10% 0%,rgba(143,208,255,.56),transparent 22rem),linear-gradient(135deg,#073c98 0%,#1677f2 42%,#8fd0ff 100%)!important;
  color:#fff!important;
  box-shadow:0 22px 58px rgba(9,55,123,.16),inset 0 1px 0 rgba(255,255,255,.75)!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  align-items:end!important;
  gap:18px!important;
  isolation:isolate!important;
}
.db-v49-route-hero.db-v27-hero::after{
  content:""!important;
  position:absolute!important;
  inset:auto -8% -38% 32%!important;
  height:78%!important;
  border-radius:999px!important;
  background:rgba(255,255,255,.18)!important;
  filter:blur(18px)!important;
  z-index:-1!important;
}
.db-v49-route-hero .db-v27-hero-brand{
  position:absolute!important;
  top:clamp(12px,2vw,24px)!important;
  left:clamp(14px,2.4vw,30px)!important;
  display:inline-flex!important;
  align-items:center!important;
  gap:10px!important;
  min-width:0!important;
  max-width:min(440px,72%)!important;
  padding:8px 12px!important;
  border:1px solid rgba(255,255,255,.34)!important;
  border-radius:999px!important;
  background:rgba(255,255,255,.16)!important;
  box-shadow:0 12px 28px rgba(0,0,0,.08)!important;
  backdrop-filter:blur(12px)!important;
  -webkit-backdrop-filter:blur(12px)!important;
}
.db-v49-route-hero .db-v27-hero-brand img{width:min(210px,46vw)!important;max-height:44px!important;object-fit:contain!important;}
.db-v49-route-hero .db-v27-hero-brand span{display:inline-flex!important;align-items:center!important;min-height:24px!important;padding:0 9px!important;border-radius:999px!important;background:rgba(255,255,255,.2)!important;font-size:12px!important;font-weight:950!important;letter-spacing:.04em!important;text-transform:uppercase!important;white-space:nowrap!important;color:#fff!important;}
.db-v49-route-hero .db-v27-hero-copy{padding-top:68px!important;max-width:760px!important;display:grid!important;gap:5px!important;align-self:end!important;justify-self:start!important;}
.db-v49-route-hero .db-v27-hero-copy p,.db-v49-route-hero .db-v27-hero-copy small{margin:0!important;color:rgba(255,255,255,.86)!important;font-weight:850!important;}
.db-v49-route-hero .db-v27-hero-copy h1{margin:0!important;font-size:clamp(32px,6vw,64px)!important;line-height:.98!important;letter-spacing:-.05em!important;font-weight:950!important;color:#fff!important;}
.db-v49-route-hero .db-v27-hero-copy strong{font-size:clamp(16px,2vw,24px)!important;line-height:1.25!important;font-weight:950!important;color:#fff!important;}
.db-v49-route-hero .db-v27-hero-bear{align-self:end!important;justify-self:end!important;width:clamp(94px,18vw,230px)!important;max-height:240px!important;height:auto!important;object-fit:contain!important;filter:drop-shadow(0 18px 28px rgba(3,29,72,.25))!important;transform:translate(4%,8%)!important;opacity:1!important;pointer-events:none!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;}
html.db-v35-legal-active .db-v35-legal-hero.db-v49-route-hero .db-v35-legal-brand,
html.db-v35-legal-active .db-v35-legal-hero.db-v49-route-hero .db-v35-legal-copy,
html.db-v35-legal-active .db-v35-legal-hero.db-v49-route-hero .db-v35-legal-bear{display:none!important;}

@media(max-width:760px){
  html.db-v35-page-polished:not(.db-v27-start-active):not(.db-v35-legal-active) .page-stack>.db-v49-route-hero,
  html.db-v35-legal-active .db-v35-legal-hero.db-v49-route-hero{width:100%!important;max-width:100%!important;margin:0 0 clamp(12px,2vw,24px)!important;}
  .db-v49-route-hero.db-v27-hero{min-height:234px!important;grid-template-columns:1fr!important;align-items:end!important;padding:16px!important;border-radius:26px!important;}
  .db-v49-route-hero .db-v27-hero-brand{left:12px!important;right:12px!important;top:12px!important;max-width:none!important;justify-content:space-between!important;}
  .db-v49-route-hero .db-v27-hero-brand img{width:min(190px,56vw)!important;max-height:44px!important;}
  .db-v49-route-hero .db-v27-hero-brand span{font-size:10px!important;padding:0 7px!important;}
  .db-v49-route-hero .db-v27-hero-copy{padding-top:70px!important;padding-right:84px!important;}
  .db-v49-route-hero .db-v27-hero-copy h1{font-size:clamp(31px,10vw,44px)!important;}
  .db-v49-route-hero .db-v27-hero-copy strong{font-size:15px!important;}
  .db-v49-route-hero .db-v27-hero-bear{position:absolute!important;right:-8px!important;bottom:-10px!important;width:118px!important;max-height:none!important;opacity:.98!important;}
}
@media(max-width:390px){.db-v49-route-hero .db-v27-hero-brand span{display:none!important}.db-v49-route-hero .db-v27-hero-copy p{display:none!important}.db-v49-route-hero .db-v27-hero-copy{padding-right:58px!important}}

/* Rechtes Seitenmenü: sichtbar unter der fixierten Leiste mit Abstand. */
html #debitbase-v35-menu-host{position:fixed!important;top:calc(var(--db-v49-fixedbar-offset) + var(--db-v49-menu-gap))!important;right:0!important;bottom:0!important;left:0!important;inset:calc(var(--db-v49-fixedbar-offset) + var(--db-v49-menu-gap)) 0 0 0!important;height:calc(100dvh - var(--db-v49-fixedbar-offset) - var(--db-v49-menu-gap))!important;max-height:calc(100dvh - var(--db-v49-fixedbar-offset) - var(--db-v49-menu-gap))!important;pointer-events:none!important;z-index:2147482500!important;}
html.db-v35-menu-open #debitbase-v35-menu-host{pointer-events:auto!important;}
html #debitbase-v35-menu-host .db-v35-menu-backdrop{position:absolute!important;inset:0!important;top:0!important;height:auto!important;}
html #debitbase-v35-menu-host .db-v35-menu-panel{position:absolute!important;top:0!important;right:calc(env(safe-area-inset-right,0px) + 10px)!important;bottom:calc(env(safe-area-inset-bottom,0px) + 10px)!important;width:min(390px,calc(100vw - 20px))!important;height:auto!important;max-height:none!important;}
#debitbase-v35-menu-host .db-v35-menu-head img{object-fit:contain!important;}
@media(max-width:520px){:root{--db-v49-menu-gap:10px;}html #debitbase-v35-menu-host .db-v35-menu-panel{right:6px!important;bottom:calc(env(safe-area-inset-bottom,0px) + 6px)!important;width:calc(100vw - 12px)!important;}}


/* V50: Mein Bereich ist eine echte Einstellungsseite mit Startseiten-Header statt altem fixiertem weißen Kopf. */
html.db-v7-settings-page-open:not(.db-v7-settings-subpage) .settings-drawer{
  background:linear-gradient(180deg,#eaf6ff 0%,#f7fcff 46%,#eaf6ff 100%)!important;
  padding-top:clamp(12px,2vw,24px)!important;
}
html.db-v7-settings-page-open:not(.db-v7-settings-subpage) .settings-drawer>.db-v52-myarea-hero{
  width:min(1580px,calc(100vw - 120px))!important;
  max-width:calc(100vw - 120px)!important;
  margin:0 auto clamp(12px,2vw,24px)!important;
  flex:0 0 auto!important;
}
html.db-v7-settings-page-open:not(.db-v7-settings-subpage) .settings-drawer>.db-v52-myarea-hero.db-v27-hero{
  position:relative!important;
  min-height:clamp(178px,23vw,280px)!important;
  overflow:hidden!important;
  border:1px solid rgba(255,255,255,.78)!important;
  border-radius:clamp(24px,3vw,38px)!important;
  padding:clamp(18px,3vw,34px)!important;
  background:radial-gradient(circle at 90% 12%,rgba(255,255,255,.55),transparent 20rem),radial-gradient(circle at 10% 0%,rgba(143,208,255,.56),transparent 22rem),linear-gradient(135deg,#073c98 0%,#1677f2 42%,#8fd0ff 100%)!important;
  color:#fff!important;
  box-shadow:0 22px 58px rgba(9,55,123,.16),inset 0 1px 0 rgba(255,255,255,.75)!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  align-items:end!important;
  gap:18px!important;
  isolation:isolate!important;
}
html.db-v7-settings-page-open:not(.db-v7-settings-subpage) .settings-drawer>.db-v52-myarea-hero .db-v27-hero-brand{
  position:absolute!important;top:clamp(12px,2vw,24px)!important;left:clamp(14px,2.4vw,30px)!important;
  display:inline-flex!important;align-items:center!important;gap:10px!important;min-width:0!important;max-width:min(440px,72%)!important;
  padding:8px 12px!important;border:1px solid rgba(255,255,255,.34)!important;border-radius:999px!important;background:rgba(255,255,255,.16)!important;
  box-shadow:0 12px 28px rgba(0,0,0,.08)!important;backdrop-filter:blur(12px)!important;-webkit-backdrop-filter:blur(12px)!important;
}
html.db-v7-settings-page-open:not(.db-v7-settings-subpage) .settings-drawer>.db-v52-myarea-hero .db-v27-hero-brand img{width:min(210px,46vw)!important;max-height:44px!important;object-fit:contain!important;}
html.db-v7-settings-page-open:not(.db-v7-settings-subpage) .settings-drawer>.db-v52-myarea-hero .db-v27-hero-brand span{display:inline-flex!important;align-items:center!important;min-height:24px!important;padding:0 9px!important;border-radius:999px!important;background:rgba(255,255,255,.2)!important;font-size:12px!important;font-weight:950!important;letter-spacing:.04em!important;text-transform:uppercase!important;white-space:nowrap!important;color:#fff!important;}
html.db-v7-settings-page-open:not(.db-v7-settings-subpage) .settings-drawer>.db-v52-myarea-hero .db-v27-hero-copy{padding-top:68px!important;max-width:760px!important;display:grid!important;gap:5px!important;align-self:end!important;justify-self:start!important;}
html.db-v7-settings-page-open:not(.db-v7-settings-subpage) .settings-drawer>.db-v52-myarea-hero .db-v27-hero-copy p,
html.db-v7-settings-page-open:not(.db-v7-settings-subpage) .settings-drawer>.db-v52-myarea-hero .db-v27-hero-copy small{margin:0!important;color:rgba(255,255,255,.86)!important;font-weight:850!important;}
html.db-v7-settings-page-open:not(.db-v7-settings-subpage) .settings-drawer>.db-v52-myarea-hero .db-v27-hero-copy h1{margin:0!important;font-size:clamp(32px,6vw,64px)!important;line-height:.98!important;letter-spacing:-.05em!important;font-weight:950!important;color:#fff!important;}
html.db-v7-settings-page-open:not(.db-v7-settings-subpage) .settings-drawer>.db-v52-myarea-hero .db-v27-hero-copy strong{font-size:clamp(16px,2vw,24px)!important;line-height:1.25!important;font-weight:950!important;color:#fff!important;}
html.db-v7-settings-page-open:not(.db-v7-settings-subpage) .settings-drawer>.db-v52-myarea-hero .db-v27-hero-bear{align-self:end!important;justify-self:end!important;width:clamp(94px,18vw,230px)!important;max-height:240px!important;height:auto!important;object-fit:contain!important;filter:drop-shadow(0 18px 28px rgba(3,29,72,.25))!important;transform:translate(4%,8%)!important;opacity:1!important;pointer-events:none!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;}
html.db-v7-settings-page-open:not(.db-v7-settings-subpage) .settings-drawer-panel .drawer-head,
html.db-v7-settings-page-open:not(.db-v7-settings-subpage) .settings-panel .settings-panel-head{
  display:none!important;position:relative!important;top:auto!important;background:transparent!important;box-shadow:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;
}
html.db-v7-settings-page-open:not(.db-v7-settings-subpage) .settings-panel-backdrop{background:transparent!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;}
html.db-v7-settings-page-open:not(.db-v7-settings-subpage) .settings-panel{border-radius:28px!important;}
@media(max-width:760px){
  html.db-v7-settings-page-open:not(.db-v7-settings-subpage) .settings-drawer{padding-top:12px!important;}
  html.db-v7-settings-page-open:not(.db-v7-settings-subpage) .settings-drawer>.db-v52-myarea-hero{width:100%!important;max-width:100%!important;margin:0 0 clamp(12px,2vw,24px)!important;}
  html.db-v7-settings-page-open:not(.db-v7-settings-subpage) .settings-drawer>.db-v52-myarea-hero.db-v27-hero{min-height:234px!important;grid-template-columns:1fr!important;align-items:end!important;padding:16px!important;border-radius:26px!important;}
  html.db-v7-settings-page-open:not(.db-v7-settings-subpage) .settings-drawer>.db-v52-myarea-hero .db-v27-hero-brand{left:12px!important;right:12px!important;top:12px!important;max-width:none!important;justify-content:space-between!important;}
  html.db-v7-settings-page-open:not(.db-v7-settings-subpage) .settings-drawer>.db-v52-myarea-hero .db-v27-hero-brand img{width:min(190px,56vw)!important;max-height:44px!important;}
  html.db-v7-settings-page-open:not(.db-v7-settings-subpage) .settings-drawer>.db-v52-myarea-hero .db-v27-hero-brand span{font-size:10px!important;padding:0 7px!important;}
  html.db-v7-settings-page-open:not(.db-v7-settings-subpage) .settings-drawer>.db-v52-myarea-hero .db-v27-hero-copy{padding-top:70px!important;padding-right:84px!important;}
  html.db-v7-settings-page-open:not(.db-v7-settings-subpage) .settings-drawer>.db-v52-myarea-hero .db-v27-hero-copy h1{font-size:clamp(31px,10vw,44px)!important;}
  html.db-v7-settings-page-open:not(.db-v7-settings-subpage) .settings-drawer>.db-v52-myarea-hero .db-v27-hero-copy strong{font-size:15px!important;}
  html.db-v7-settings-page-open:not(.db-v7-settings-subpage) .settings-drawer>.db-v52-myarea-hero .db-v27-hero-bear{position:absolute!important;right:-8px!important;bottom:-10px!important;width:118px!important;max-height:none!important;opacity:.98!important;}
}

/* v56 – Header-Logo/Aufschrift verfeinert, ohne Headerhöhe, Form oder Position zu verändern.
   Gilt für Startseite und alle vereinheitlichten Menüseiten. */
.db-v27-hero .db-v27-hero-brand,
.db-v49-route-hero .db-v27-hero-brand,
html.db-v7-settings-page-open:not(.db-v7-settings-subpage) .settings-drawer>.db-v52-myarea-hero .db-v27-hero-brand{
  max-width:min(520px,78%)!important;
  padding:9px 14px!important;
  gap:14px!important;
  background:linear-gradient(135deg,rgba(255,255,255,.22),rgba(255,255,255,.12))!important;
  border-color:rgba(255,255,255,.42)!important;
  box-shadow:0 14px 30px rgba(5,43,115,.13), inset 0 1px 0 rgba(255,255,255,.38)!important;
}
.db-v27-hero .db-v27-hero-brand img,
.db-v49-route-hero .db-v27-hero-brand img,
html.db-v7-settings-page-open:not(.db-v7-settings-subpage) .settings-drawer>.db-v52-myarea-hero .db-v27-hero-brand img{
  width:min(260px,50vw)!important;
  max-height:58px!important;
  object-fit:contain!important;
  filter:drop-shadow(0 2px 5px rgba(255,255,255,.25)) drop-shadow(0 8px 14px rgba(5,35,95,.18))!important;
}
.db-v27-hero .db-v27-hero-brand span,
.db-v49-route-hero .db-v27-hero-brand span,
html.db-v7-settings-page-open:not(.db-v7-settings-subpage) .settings-drawer>.db-v52-myarea-hero .db-v27-hero-brand span{
  min-height:32px!important;
  padding:0 14px!important;
  font-size:clamp(12px,.95vw,14px)!important;
  line-height:1!important;
  letter-spacing:.045em!important;
  background:linear-gradient(180deg,rgba(255,255,255,.28),rgba(255,255,255,.17))!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.36),0 7px 18px rgba(4,44,119,.13)!important;
  text-shadow:0 1px 2px rgba(0,49,126,.20)!important;
}
@media(max-width:760px){
  .db-v27-hero .db-v27-hero-brand,
  .db-v49-route-hero .db-v27-hero-brand,
  html.db-v7-settings-page-open:not(.db-v7-settings-subpage) .settings-drawer>.db-v52-myarea-hero .db-v27-hero-brand{
    max-width:calc(100% - 24px)!important;
    padding:8px 10px!important;
    gap:10px!important;
  }
  .db-v27-hero .db-v27-hero-brand img,
  .db-v49-route-hero .db-v27-hero-brand img,
  html.db-v7-settings-page-open:not(.db-v7-settings-subpage) .settings-drawer>.db-v52-myarea-hero .db-v27-hero-brand img{
    width:min(220px,58vw)!important;
    max-height:52px!important;
  }
  .db-v27-hero .db-v27-hero-brand span,
  .db-v49-route-hero .db-v27-hero-brand span,
  html.db-v7-settings-page-open:not(.db-v7-settings-subpage) .settings-drawer>.db-v52-myarea-hero .db-v27-hero-brand span{
    display:inline-flex!important;
    min-height:30px!important;
    padding:0 10px!important;
    font-size:11.5px!important;
  }
}
@media(max-width:390px){
  .db-v27-hero .db-v27-hero-brand,
  .db-v49-route-hero .db-v27-hero-brand,
  html.db-v7-settings-page-open:not(.db-v7-settings-subpage) .settings-drawer>.db-v52-myarea-hero .db-v27-hero-brand{
    gap:7px!important;
  }
  .db-v27-hero .db-v27-hero-brand img,
  .db-v49-route-hero .db-v27-hero-brand img,
  html.db-v7-settings-page-open:not(.db-v7-settings-subpage) .settings-drawer>.db-v52-myarea-hero .db-v27-hero-brand img{
    width:min(182px,58vw)!important;
    max-height:46px!important;
  }
  .db-v27-hero .db-v27-hero-brand span,
  .db-v49-route-hero .db-v27-hero-brand span,
  html.db-v7-settings-page-open:not(.db-v7-settings-subpage) .settings-drawer>.db-v52-myarea-hero .db-v27-hero-brand span{
    display:inline-flex!important;
    max-width:38vw!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    min-height:28px!important;
    padding:0 8px!important;
    font-size:10px!important;
  }
}

/* v80 – Fixkosten: Zeitraumleiste relativ, danach Abstand und unveränderter einheitlicher Header. */
html.db-v18-fixedcost-page .db-v18-fixedcost-backdrop{
  position:fixed!important;
  inset:var(--db-fixedbar-h) 0 0 0!important;
  overflow:auto!important;
  padding:clamp(12px,1.8vw,22px) 10px calc(env(safe-area-inset-bottom,0px) + 28px)!important;
  background:linear-gradient(180deg,#eaf6ff,#f7fcff 45%,#eaf6ff)!important;
}
html.db-v18-fixedcost-page .db-v18-fixedcost-backdrop .fixkosten-modal{
  width:min(1580px,calc(100vw - 120px))!important;
  max-width:calc(100vw - 120px)!important;
  margin:0 auto!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  overflow:visible!important;
}
html.db-v18-fixedcost-page .fixkosten-modal>#debitbase-v23-period-strip.db-v66-fixcost-local-period{
  position:relative!important;
  inset:auto!important;
  top:auto!important;
  left:auto!important;
  right:auto!important;
  bottom:auto!important;
  z-index:3!important;
  width:100%!important;
  min-height:0!important;
  margin:0 auto clamp(14px,2vw,22px)!important;
  padding:0!important;
  box-sizing:border-box!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  contain:none!important;
}
html.db-v18-fixedcost-page .fixkosten-modal>#debitbase-v23-period-strip.db-v66-fixcost-local-period .db-v23-period-inner{
  width:100%!important;
  max-width:none!important;
  margin:0!important;
}
html.db-v18-fixedcost-page .fixkosten-modal>.modal-head.db-v66-fixkosten-hero{
  grid-column:1/-1!important;
  position:relative!important;
  top:auto!important;
  z-index:2!important;
  margin:0 auto clamp(12px,2vw,24px)!important;
  width:100%!important;
  max-width:100%!important;
  min-height:clamp(178px,23vw,280px)!important;
  overflow:hidden!important;
  border:1px solid rgba(255,255,255,.78)!important;
  border-radius:clamp(24px,3vw,38px)!important;
  padding:clamp(18px,3vw,34px)!important;
  background:radial-gradient(circle at 90% 12%,rgba(255,255,255,.55),transparent 20rem),radial-gradient(circle at 10% 0%,rgba(143,208,255,.56),transparent 22rem),linear-gradient(135deg,#073c98 0%,#1677f2 42%,#8fd0ff 100%)!important;
  color:#fff!important;
  box-shadow:0 22px 58px rgba(9,55,123,.16),inset 0 1px 0 rgba(255,255,255,.75)!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  align-items:end!important;
  gap:18px!important;
  isolation:isolate!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
}
html.db-v18-fixedcost-page .fixkosten-modal>.modal-head.db-v66-fixkosten-hero>.db-v40-fixed-brand,
html.db-v18-fixedcost-page .fixkosten-modal>.modal-head.db-v66-fixkosten-hero>.eyebrow,
html.db-v18-fixedcost-page .fixkosten-modal>.modal-head.db-v66-fixkosten-hero>h1,
html.db-v18-fixedcost-page .fixkosten-modal>.modal-head.db-v66-fixkosten-hero>h2,
html.db-v18-fixedcost-page .fixkosten-modal>.modal-head.db-v66-fixkosten-hero>.icon-pill{
  display:none!important;
}
html.db-v18-fixedcost-page .page-stack>.db-v49-route-hero[data-db-v49-sig*="/Fixkostenuebersicht"]{display:none!important;}
@media(max-width:760px){
  html.db-v18-fixedcost-page .db-v18-fixedcost-backdrop .fixkosten-modal{width:100%!important;max-width:100%!important;}
  html.db-v18-fixedcost-page .fixkosten-modal>#debitbase-v23-period-strip.db-v66-fixcost-local-period{margin-bottom:12px!important;}
  html.db-v18-fixedcost-page .fixkosten-modal>.modal-head.db-v66-fixkosten-hero{min-height:234px!important;grid-template-columns:1fr!important;align-items:end!important;padding:16px!important;border-radius:26px!important;}
}


/* v80 – Fixkosten: Header exakt im Stil der Übersicht. Fixkosten-Zentrale wird separat geladen. */
html.db-v18-fixedcost-page .fixkosten-modal>.modal-head.db-v66-fixkosten-hero{position:relative!important;top:auto!important;z-index:2!important;margin:0 auto clamp(12px,2vw,24px)!important;width:100%!important;max-width:100%!important;min-height:clamp(178px,23vw,280px)!important;overflow:hidden!important;border:1px solid rgba(255,255,255,.78)!important;border-radius:clamp(24px,3vw,38px)!important;padding:clamp(18px,3vw,34px)!important;background:radial-gradient(circle at 90% 12%,rgba(255,255,255,.55),transparent 20rem),radial-gradient(circle at 10% 0%,rgba(143,208,255,.56),transparent 22rem),linear-gradient(135deg,#073c98 0%,#1677f2 42%,#8fd0ff 100%)!important;color:#fff!important;box-shadow:0 22px 58px rgba(9,55,123,.16),inset 0 1px 0 rgba(255,255,255,.75)!important;display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:end!important;gap:18px!important;isolation:isolate!important;}
html.db-v18-fixedcost-page .fixkosten-modal>.modal-head.db-v66-fixkosten-hero .db-v27-hero-brand{position:absolute!important;top:clamp(12px,2vw,24px)!important;left:clamp(14px,2.4vw,30px)!important;display:inline-flex!important;align-items:center!important;gap:14px!important;max-width:min(520px,78%)!important;padding:9px 14px!important;border:1px solid rgba(255,255,255,.42)!important;border-radius:999px!important;background:linear-gradient(135deg,rgba(255,255,255,.22),rgba(255,255,255,.12))!important;box-shadow:0 14px 30px rgba(5,43,115,.13),inset 0 1px 0 rgba(255,255,255,.38)!important;backdrop-filter:blur(12px)!important;-webkit-backdrop-filter:blur(12px)!important;}
html.db-v18-fixedcost-page .fixkosten-modal>.modal-head.db-v66-fixkosten-hero .db-v27-hero-brand img{width:min(260px,50vw)!important;max-height:58px!important;height:auto!important;object-fit:contain!important;}
html.db-v18-fixedcost-page .fixkosten-modal>.modal-head.db-v66-fixkosten-hero .db-v27-hero-brand span{display:inline-flex!important;align-items:center!important;min-height:32px!important;padding:0 14px!important;border-radius:999px!important;background:linear-gradient(180deg,rgba(255,255,255,.28),rgba(255,255,255,.17))!important;font-size:clamp(12px,.95vw,14px)!important;font-weight:950!important;letter-spacing:.045em!important;text-transform:uppercase!important;white-space:nowrap!important;color:#fff!important;}
html.db-v18-fixedcost-page .fixkosten-modal>.modal-head.db-v66-fixkosten-hero .db-v27-hero-copy{padding-top:68px!important;max-width:760px!important;display:grid!important;gap:5px!important;align-self:end!important;justify-self:start!important;}
html.db-v18-fixedcost-page .fixkosten-modal>.modal-head.db-v66-fixkosten-hero .db-v27-hero-copy h1{margin:0!important;font-size:clamp(32px,6vw,64px)!important;line-height:.98!important;letter-spacing:-.05em!important;font-weight:950!important;color:#fff!important;}
html.db-v18-fixedcost-page .fixkosten-modal>.modal-head.db-v66-fixkosten-hero .db-v27-hero-copy strong{font-size:clamp(16px,2vw,24px)!important;line-height:1.25!important;font-weight:950!important;color:#fff!important;}
html.db-v18-fixedcost-page .fixkosten-modal>.modal-head.db-v66-fixkosten-hero .db-v27-hero-bear{align-self:end!important;justify-self:end!important;width:clamp(94px,18vw,230px)!important;max-height:240px!important;height:auto!important;object-fit:contain!important;transform:translate(4%,8%)!important;opacity:1!important;pointer-events:none!important;background:transparent!important;box-shadow:none!important;border-radius:0!important;}
@media(max-width:760px){html.db-v18-fixedcost-page .fixkosten-modal>.modal-head.db-v66-fixkosten-hero{min-height:234px!important;grid-template-columns:1fr!important;align-items:end!important;padding:16px!important;border-radius:26px!important;}html.db-v18-fixedcost-page .fixkosten-modal>.modal-head.db-v66-fixkosten-hero .db-v27-hero-brand{left:12px!important;right:12px!important;top:12px!important;max-width:none!important;justify-content:space-between!important;}html.db-v18-fixedcost-page .fixkosten-modal>.modal-head.db-v66-fixkosten-hero .db-v27-hero-brand img{width:min(190px,56vw)!important;max-height:44px!important;}html.db-v18-fixedcost-page .fixkosten-modal>.modal-head.db-v66-fixkosten-hero .db-v27-hero-brand span{font-size:10px!important;padding:0 7px!important;min-height:30px!important;}html.db-v18-fixedcost-page .fixkosten-modal>.modal-head.db-v66-fixkosten-hero .db-v27-hero-copy{padding-top:70px!important;padding-right:84px!important;}html.db-v18-fixedcost-page .fixkosten-modal>.modal-head.db-v66-fixkosten-hero .db-v27-hero-bear{position:absolute!important;right:-8px!important;bottom:-10px!important;width:118px!important;max-height:none!important;opacity:.98!important;}}


/* Debit Base v88 – Fixkostenübersicht als echte eigene Seite; alte Header/Seitenreste werden ausgeblendet. */
html.db-v18-fixedcost-page body{
  overflow:auto!important;
}

/* Unterliegende normale Seiteninhalte ausblenden, damit Fixkosten nicht unter Finanzübersicht erscheint. */
html.db-v18-fixedcost-page #root .page-stack > .db-v49-route-hero,
html.db-v18-fixedcost-page #root .page-stack > .db-v27-hero,
html.db-v18-fixedcost-page #root .page-stack > .db-v35-page-hero,
html.db-v18-fixedcost-page #root .page-stack > .db-v35-page-header,
html.db-v18-fixedcost-page #root .page-stack > .page-section-sequence,
html.db-v18-fixedcost-page #root .page-stack > .dashboard-grid,
html.db-v18-fixedcost-page #root .page-stack > .dashboard-two,
html.db-v18-fixedcost-page #root .page-stack > .dashboard-three,
html.db-v18-fixedcost-page #root .page-stack > .metric-grid,
html.db-v18-fixedcost-page #root .page-stack > .widget-page-toolbar,
html.db-v18-fixedcost-page #root main > .page-stack,
html.db-v18-fixedcost-page #root main > section:not(.modal-backdrop):not(.db-v18-fixedcost-backdrop){
  display:none!important;
  visibility:hidden!important;
  pointer-events:none!important;
}

/* Das Fixkosten-"Modal" wird zur vollflächigen Seite unter der oberen Menüleiste. */
html.db-v18-fixedcost-page .modal-backdrop.db-v18-fixedcost-backdrop,
html.db-v18-fixedcost-page .db-v18-fixedcost-backdrop{
  position:fixed!important;
  inset:var(--db-fixedbar-h) 0 0 0!important;
  z-index:2147482100!important;
  display:block!important;
  width:100%!important;
  height:auto!important;
  min-height:calc(100dvh - var(--db-fixedbar-h))!important;
  max-height:none!important;
  overflow:auto!important;
  padding:clamp(12px,1.8vw,22px) 10px calc(env(safe-area-inset-bottom,0px) + 28px)!important;
  margin:0!important;
  background:linear-gradient(180deg,#eaf6ff,#f7fcff 45%,#eaf6ff)!important;
  border:0!important;
  box-shadow:none!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
  align-items:stretch!important;
  justify-content:flex-start!important;
}

/* Kein Fenster-Look mehr: transparente volle Seitenbreite. */
html.db-v18-fixedcost-page .db-v18-fixedcost-backdrop .fixkosten-modal,
html.db-v18-fixedcost-page .modal-backdrop.db-v18-fixedcost-backdrop .fixkosten-modal,
html.db-v18-fixedcost-page .fixkosten-modal.db-v18-fixedcost-page-sheet{
  position:relative!important;
  inset:auto!important;
  width:min(1580px,calc(100vw - 120px))!important;
  max-width:calc(100vw - 120px)!important;
  min-height:auto!important;
  max-height:none!important;
  height:auto!important;
  margin:0 auto!important;
  padding:0!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  border-radius:0!important;
  overflow:visible!important;
  transform:none!important;
}

/* Nur ein Fixkosten-Header: alte native Kopfzeilen-Elemente verstecken. */
html.db-v18-fixedcost-page .fixkosten-modal>.modal-head:not(.db-v66-fixkosten-hero):not(.db-v49-route-hero):not(.db-v27-hero),
html.db-v18-fixedcost-page .fixkosten-modal>.modal-head.db-v66-fixkosten-hero>.db-v40-fixed-brand,
html.db-v18-fixedcost-page .fixkosten-modal>.modal-head.db-v66-fixkosten-hero>.eyebrow,
html.db-v18-fixedcost-page .fixkosten-modal>.modal-head.db-v66-fixkosten-hero>h1,
html.db-v18-fixedcost-page .fixkosten-modal>.modal-head.db-v66-fixkosten-hero>h2,
html.db-v18-fixedcost-page .fixkosten-modal>.modal-head.db-v66-fixkosten-hero>.icon-pill,
html.db-v18-fixedcost-page .fixkosten-modal>.modal-head button[aria-label*="Schließen"],
html.db-v18-fixedcost-page .fixkosten-modal>.modal-head button[aria-label*="schließen"]{
  display:none!important;
  visibility:hidden!important;
  pointer-events:none!important;
}

/* Das alte Einstellungs-Seitenleistenmenü wird außerhalb von Mein Bereich nicht mehr sichtbar. */
html:not(.db-v7-settings-page-open) .settings-drawer,
html:not(.db-v7-settings-page-open) .settings-panel-backdrop,
html:not(.db-v7-settings-page-open) .settings-panel{
  display:none!important;
  visibility:hidden!important;
  pointer-events:none!important;
}

/* Mein Bereich darf als Seite erscheinen, nicht als schmale Seitenleiste. */
html.db-v7-settings-page-open .settings-drawer{
  position:fixed!important;
  inset:var(--db-fixedbar-h) 0 0 0!important;
  z-index:2147482050!important;
  width:100%!important;
  max-width:none!important;
  height:auto!important;
  min-height:calc(100dvh - var(--db-fixedbar-h))!important;
  overflow:auto!important;
  background:linear-gradient(180deg,#eaf6ff,#f7fcff 45%,#eaf6ff)!important;
  box-shadow:none!important;
  border:0!important;
}
html.db-v7-settings-page-open .settings-drawer-panel,
html.db-v7-settings-page-open .drawer-panel{
  width:min(1280px,calc(100vw - 44px))!important;
  max-width:1280px!important;
  margin:clamp(12px,1.8vw,22px) auto!important;
  height:auto!important;
  min-height:auto!important;
  max-height:none!important;
  border-radius:28px!important;
  overflow:visible!important;
  box-shadow:0 18px 48px rgba(9,55,123,.10)!important;
}
@media(max-width:760px){
  html.db-v18-fixedcost-page .db-v18-fixedcost-backdrop .fixkosten-modal,
  html.db-v18-fixedcost-page .modal-backdrop.db-v18-fixedcost-backdrop .fixkosten-modal{
    width:100%!important;
    max-width:100%!important;
  }
  html.db-v18-fixedcost-page .modal-backdrop.db-v18-fixedcost-backdrop,
  html.db-v18-fixedcost-page .db-v18-fixedcost-backdrop{
    padding:10px 6px calc(env(safe-area-inset-bottom,0px) + 20px)!important;
  }
  html.db-v7-settings-page-open .settings-drawer-panel,
  html.db-v7-settings-page-open .drawer-panel{
    width:calc(100vw - 14px)!important;
    margin:8px auto!important;
    border-radius:22px!important;
  }
}


/* Debit Base v94 – Übersicht: finale Karten-/Geldwert-Stabilisierung nach der Altlastenbereinigung. */
html.db-v35-page-polished[data-db-v35-page="overview"] .page-section-sequence > .db-v94-overview-primary-item,
html.db-v35-page-polished[data-db-v35-page="overview"] .page-section-sequence > .ordered-section-item:has(.db-v94-overview-primary-card),
html.db-v35-page-polished[data-db-v35-page="overview"] .page-section-sequence > .ordered-section-item:has(.fixed-overview-card),
html.db-v35-page-polished[data-db-v35-page="overview"] .page-section-sequence > .ordered-section-item:has(.hero-overview),
html.db-v35-page-polished[data-db-v35-page="overview"] .page-section-sequence > .ordered-section-item:has(.metric-grid.five){
  grid-column:1/-1!important;
  order:-90!important;
  width:100%!important;
  min-width:0!important;
}
html.db-v35-page-polished[data-db-v35-page="overview"] .fixed-overview-card,
html.db-v35-page-polished[data-db-v35-page="overview"] .hero-overview,
html.db-v35-page-polished[data-db-v35-page="overview"] .db-v94-overview-primary-card{
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  overflow:hidden!important;
}
html.db-v35-page-polished[data-db-v35-page="overview"] .metric-grid.five,
html.db-v35-page-polished[data-db-v35-page="overview"] .fixed-overview-card .metric-grid,
html.db-v35-page-polished[data-db-v35-page="overview"] .hero-overview .metric-grid{
  display:grid!important;
  grid-template-columns:repeat(auto-fit,minmax(min(148px,100%),1fr))!important;
  gap:clamp(10px,1.4vw,16px)!important;
  width:100%!important;
}
html.db-v35-page-polished[data-db-v35-page="overview"] .metric-card{
  min-width:0!important;
  overflow:hidden!important;
  border-radius:18px!important;
}
html.db-v35-page-polished[data-db-v35-page="overview"] .metric-card span,
html.db-v35-page-polished[data-db-v35-page="overview"] .metric-card small{
  overflow-wrap:anywhere!important;
}
html.db-v35-page-polished[data-db-v35-page="overview"] .metric-card strong{
  font-size:clamp(1.05rem,2.4vw,1.65rem)!important;
  line-height:1.08!important;
  overflow-wrap:anywhere!important;
  white-space:normal!important;
}
html.db-v35-page-polished[data-db-v35-page="overview"] .dashboard-action-stack,
html.db-v35-page-polished[data-db-v35-page="overview"] .button-row,
html.db-v35-page-polished[data-db-v35-page="overview"] .transaction-actions{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:10px!important;
  align-items:center!important;
}
html.db-v35-page-polished[data-db-v35-page="overview"] button,
html.db-v35-page-polished[data-db-v35-page="overview"] a[role="button"],
html.db-v35-page-polished[data-db-v35-page="overview"] [data-db-v94-overview-action="true"]{
  min-height:42px;
  touch-action:manipulation;
}
@media(max-width:760px){
  html.db-v35-page-polished[data-db-v35-page="overview"] .metric-grid.five,
  html.db-v35-page-polished[data-db-v35-page="overview"] .fixed-overview-card .metric-grid,
  html.db-v35-page-polished[data-db-v35-page="overview"] .hero-overview .metric-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  html.db-v35-page-polished[data-db-v35-page="overview"] .metric-grid.five > :last-child:nth-child(odd),
  html.db-v35-page-polished[data-db-v35-page="overview"] .fixed-overview-card .metric-grid > :last-child:nth-child(odd),
  html.db-v35-page-polished[data-db-v35-page="overview"] .hero-overview .metric-grid > :last-child:nth-child(odd){
    grid-column:1/-1!important;
  }
  html.db-v35-page-polished[data-db-v35-page="overview"] .dashboard-action-stack > *,
  html.db-v35-page-polished[data-db-v35-page="overview"] .button-row > *{
    flex:1 1 100%!important;
  }
}
@media(max-width:420px){
  html.db-v35-page-polished[data-db-v35-page="overview"] .metric-grid.five,
  html.db-v35-page-polished[data-db-v35-page="overview"] .fixed-overview-card .metric-grid,
  html.db-v35-page-polished[data-db-v35-page="overview"] .hero-overview .metric-grid{
    grid-template-columns:1fr!important;
  }
}

/* Debit Base v96 – Budget: Kernkarte schützen, mobile Budgetkarten und Formularlisten stabilisieren. */
html.db-v35-page-polished[data-db-v35-page="budget"] .page-section-sequence > .ordered-section-item:has(.db-v96-budget-core-card),
html.db-v35-page-polished[data-db-v35-page="budget"] .page-section-sequence > .widget-edit-shell:has(.db-v96-budget-core-card){
  grid-column:1/-1!important;
  order:-96!important;
  width:100%!important;
  min-width:0!important;
}
html.db-v35-page-polished[data-db-v35-page="budget"] .db-v96-budget-core-card{
  position:relative!important;
  overflow:hidden!important;
  border-color:color-mix(in srgb,var(--primary) 34%,var(--border))!important;
  background:
    radial-gradient(circle at 8% 0%,color-mix(in srgb,var(--primary-soft) 70%,transparent),transparent 17rem),
    color-mix(in srgb,var(--card) 92%,var(--primary-soft))!important;
  box-shadow:0 20px 54px rgba(28,101,214,.10)!important;
}
html.db-v35-page-polished[data-db-v35-page="budget"] .db-v96-budget-core-card .card-head h2,
html.db-v35-page-polished[data-db-v35-page="budget"] .db-v96-budget-core-card strong{
  overflow-wrap:anywhere!important;
}
html.db-v35-page-polished[data-db-v35-page="budget"] .db-v96-budget-core-card::after{
  content:"Kernbudget";
  position:absolute;
  right:clamp(14px,2vw,22px);
  top:clamp(14px,2vw,22px);
  padding:.32rem .62rem;
  border-radius:999px;
  border:1px solid color-mix(in srgb,var(--primary) 24%,transparent);
  background:color-mix(in srgb,#fff 84%,var(--primary-soft));
  color:var(--primary);
  font-size:.72rem;
  font-weight:850;
  letter-spacing:.01em;
  pointer-events:none;
}
html.db-v35-page-polished[data-db-v35-page="budget"] .page-section-sequence > .ordered-section-item:has(.savings-goal-form),
html.db-v35-page-polished[data-db-v35-page="budget"] .page-section-sequence > .ordered-section-item:has(.money-pot-form),
html.db-v35-page-polished[data-db-v35-page="budget"] .page-section-sequence > .ordered-section-item:has(.budget-target-form),
html.db-v35-page-polished[data-db-v35-page="budget"] .page-section-sequence > .ordered-section-item:has(.budget-category-grid),
html.db-v35-page-polished[data-db-v35-page="budget"] .page-section-sequence > .ordered-section-item:has(.fixed-instance-list){
  grid-column:span 6!important;
}
html.db-v35-page-polished[data-db-v35-page="budget"] .budget-category-grid{
  display:grid!important;
  grid-template-columns:repeat(auto-fit,minmax(min(240px,100%),1fr))!important;
  gap:clamp(10px,1.3vw,16px)!important;
}
html.db-v35-page-polished[data-db-v35-page="budget"] .budget-category,
html.db-v35-page-polished[data-db-v35-page="budget"] .goal-row,
html.db-v35-page-polished[data-db-v35-page="budget"] .pot-row,
html.db-v35-page-polished[data-db-v35-page="budget"] .budget-target-row,
html.db-v35-page-polished[data-db-v35-page="budget"] .simple-list > div,
html.db-v35-page-polished[data-db-v35-page="budget"] .fixed-instance-list .check-row{
  min-width:0!important;
  overflow:hidden!important;
}
html.db-v35-page-polished[data-db-v35-page="budget"] .budget-category strong,
html.db-v35-page-polished[data-db-v35-page="budget"] .budget-category span,
html.db-v35-page-polished[data-db-v35-page="budget"] .goal-row strong,
html.db-v35-page-polished[data-db-v35-page="budget"] .goal-row span,
html.db-v35-page-polished[data-db-v35-page="budget"] .pot-row strong,
html.db-v35-page-polished[data-db-v35-page="budget"] .pot-row span,
html.db-v35-page-polished[data-db-v35-page="budget"] .budget-target-row strong,
html.db-v35-page-polished[data-db-v35-page="budget"] .budget-target-row span{
  min-width:0!important;
  overflow-wrap:anywhere!important;
  word-break:normal!important;
}
html.db-v35-page-polished[data-db-v35-page="budget"] .budget-category input,
html.db-v35-page-polished[data-db-v35-page="budget"] .form-grid input,
html.db-v35-page-polished[data-db-v35-page="budget"] .form-grid select{
  min-height:44px!important;
}
html.db-v35-page-polished[data-db-v35-page="budget"] .button-row,
html.db-v35-page-polished[data-db-v35-page="budget"] .button-row.compact{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:.55rem!important;
  align-items:center!important;
}
html.db-v35-page-polished[data-db-v35-page="budget"] button,
html.db-v35-page-polished[data-db-v35-page="budget"] .button-row button,
html.db-v35-page-polished[data-db-v35-page="budget"] .budget-category button{
  min-height:42px!important;
  touch-action:manipulation!important;
}
html.db-v35-page-polished[data-db-v35-page="budget"] .week-card-grid{
  grid-template-columns:repeat(auto-fit,minmax(min(132px,100%),1fr))!important;
}
html.db-v35-page-polished[data-db-v35-page="budget"] .week-badge{
  white-space:normal!important;
  text-align:center!important;
  line-height:1.18!important;
}
html.db-v35-page-polished[data-db-v35-page="budget"] .inline-total strong,
html.db-v35-page-polished[data-db-v35-page="budget"] .metric-pill strong{
  overflow-wrap:anywhere!important;
  white-space:normal!important;
}
@media(min-width:1181px){
  html.db-v35-page-polished[data-db-v35-page="budget"] .page-section-sequence{
    grid-template-columns:repeat(12,minmax(0,1fr))!important;
  }
  html.db-v35-page-polished[data-db-v35-page="budget"] .page-section-sequence > .ordered-section-item,
  html.db-v35-page-polished[data-db-v35-page="budget"] .page-section-sequence > .widget-edit-shell{
    grid-column:span 4!important;
  }
}
@media(max-width:900px){
  html.db-v35-page-polished[data-db-v35-page="budget"] .page-section-sequence > *,
  html.db-v35-page-polished[data-db-v35-page="budget"] .page-section-sequence > .ordered-section-item,
  html.db-v35-page-polished[data-db-v35-page="budget"] .page-section-sequence > .widget-edit-shell{
    grid-column:1/-1!important;
    width:100%!important;
  }
  html.db-v35-page-polished[data-db-v35-page="budget"] .db-v96-budget-core-card::after{
    position:static;
    justify-self:start;
    display:inline-flex;
    margin-top:.2rem;
  }
  html.db-v35-page-polished[data-db-v35-page="budget"] .goal-row-head,
  html.db-v35-page-polished[data-db-v35-page="budget"] .budget-target-row,
  html.db-v35-page-polished[data-db-v35-page="budget"] .simple-list > div{
    grid-template-columns:1fr!important;
  }
  html.db-v35-page-polished[data-db-v35-page="budget"] .goal-row-head b,
  html.db-v35-page-polished[data-db-v35-page="budget"] .budget-target-row b{
    justify-self:start!important;
    text-align:left!important;
  }
}
@media(max-width:520px){
  html.db-v35-page-polished[data-db-v35-page="budget"] .budget-category-grid,
  html.db-v35-page-polished[data-db-v35-page="budget"] .form-grid,
  html.db-v35-page-polished[data-db-v35-page="budget"] .form-grid.two,
  html.db-v35-page-polished[data-db-v35-page="budget"] .form-grid.three{
    grid-template-columns:1fr!important;
  }
  html.db-v35-page-polished[data-db-v35-page="budget"] .button-row > *,
  html.db-v35-page-polished[data-db-v35-page="budget"] .button-row.compact > *{
    flex:1 1 100%!important;
  }
}

/* v98 Wochenblick-Cleanup: direkte Wochenrouten, mobile Tabs und sichere Wochenkarten */
body:has(.week-tabs) .week-tabs.db-v98-week-tabs,
.week-tabs.db-v98-week-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(138px, 1fr));
  gap: 10px;
  align-items: stretch;
}
.week-tabs.db-v98-week-tabs button {
  min-height: 64px;
  padding: 10px 12px;
  border-radius: 18px;
  white-space: normal;
  text-align: left;
  cursor: pointer;
  touch-action: manipulation;
}
.week-tabs.db-v98-week-tabs button.active {
  box-shadow: 0 16px 34px rgba(31, 111, 235, .18);
  transform: translateY(-1px);
}
.db-v98-week-tab-label {
  display: flex;
  flex-direction: column;
  gap: 3px;
  line-height: 1.15;
}
.db-v98-week-tab-label strong {
  font-size: .95rem;
  font-weight: 900;
}
.db-v98-week-tab-label small {
  font-size: .76rem;
  opacity: .75;
  font-weight: 700;
}
body:has(.week-tabs) .metric-grid.four .metric-card,
.week-tabs ~ .metric-grid.four .metric-card {
  min-width: 0;
}
body:has(.week-tabs) .metric-card b,
.week-tabs ~ .metric-grid .metric-card b {
  overflow-wrap: anywhere;
}
body:has(.week-tabs) .transaction-row.expense {
  align-items: center;
  gap: 12px;
}
body:has(.week-tabs) .transaction-row.expense > div:nth-child(2) span {
  line-height: 1.35;
  overflow-wrap: anywhere;
}
body:has(.week-tabs) .button-row.compact.row-actions button {
  min-height: 38px;
  min-width: 84px;
}
@media (max-width: 720px) {
  .week-tabs.db-v98-week-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .week-tabs.db-v98-week-tabs button {
    min-height: 68px;
    padding: 9px 10px;
  }
  body:has(.week-tabs) .metric-grid.four,
  .week-tabs ~ .metric-grid.four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  body:has(.week-tabs) .button-row:not(.compact) {
    align-items: stretch;
  }
  body:has(.week-tabs) .button-row:not(.compact) > button,
  body:has(.week-tabs) .button-row:not(.compact) > .soft-pill {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
  body:has(.week-tabs) .transaction-row.expense {
    grid-template-columns: auto minmax(0, 1fr);
  }
  body:has(.week-tabs) .transaction-row.expense > b,
  body:has(.week-tabs) .transaction-row.expense > .row-actions {
    grid-column: 2;
    justify-self: stretch;
  }
  body:has(.week-tabs) .button-row.compact.row-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }
}
@media (max-width: 390px) {
  .week-tabs.db-v98-week-tabs {
    grid-template-columns: 1fr;
  }
  body:has(.week-tabs) .metric-grid.four,
  .week-tabs ~ .metric-grid.four {
    grid-template-columns: 1fr;
  }
}


/* Debit Base v99 - Finanzhelfer finalisiert */
html.db-v35-page-polished[data-db-v35-page="helpers"] .page-section-sequence{gap:1.05rem!important;}
html.db-v35-page-polished[data-db-v35-page="helpers"] .helper-grid{display:grid!important;grid-template-columns:1fr!important;gap:1rem!important;}
html.db-v35-page-polished[data-db-v35-page="helpers"] .helper-card.db-v99-helper-calculator{display:grid!important;gap:.9rem!important;scroll-margin-top:7.5rem!important;}
html.db-v35-page-polished[data-db-v35-page="helpers"] .helper-card.db-v99-helper-focused{outline:3px solid color-mix(in srgb,var(--primary) 24%,transparent)!important;box-shadow:0 18px 44px color-mix(in srgb,var(--primary) 14%,transparent)!important;}
html.db-v35-page-polished[data-db-v35-page="helpers"] .helper-card .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;align-items:end!important;}
html.db-v35-page-polished[data-db-v35-page="helpers"] .helper-result.stacked{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:.6rem!important;align-items:stretch!important;}
html.db-v35-page-polished[data-db-v35-page="helpers"] .helper-result.stacked span,
html.db-v35-page-polished[data-db-v35-page="helpers"] .helper-result.stacked strong{min-width:0!important;border:1px solid color-mix(in srgb,var(--border) 82%,transparent)!important;border-radius:1rem!important;padding:.7rem .8rem!important;background:color-mix(in srgb,var(--card) 88%,var(--primary-soft))!important;overflow-wrap:anywhere!important;}
html.db-v35-page-polished[data-db-v35-page="helpers"] .helper-actions{display:flex!important;flex-wrap:wrap!important;gap:.65rem!important;align-items:center!important;margin-top:.1rem!important;}
html.db-v35-page-polished[data-db-v35-page="helpers"] .helper-actions button{min-height:2.9rem!important;border-radius:999px!important;padding:.72rem 1rem!important;}
html.db-v35-page-polished[data-db-v35-page="helpers"] .helper-actions .primary{box-shadow:0 10px 24px color-mix(in srgb,var(--primary) 18%,transparent)!important;}
@media (max-width:760px){
  html.db-v35-page-polished[data-db-v35-page="helpers"] .helper-card .form-grid{grid-template-columns:1fr!important;}
  html.db-v35-page-polished[data-db-v35-page="helpers"] .helper-result.stacked{grid-template-columns:1fr!important;}
  html.db-v35-page-polished[data-db-v35-page="helpers"] .helper-actions{display:grid!important;grid-template-columns:1fr!important;}
  html.db-v35-page-polished[data-db-v35-page="helpers"] .helper-actions button{width:100%!important;}
}
