/* Debit Base v100: Cashflow finalisierte Analyse- und Aktionsschicht */
html.db-v100-cashflow-ready[data-db-v100-cashflow="true"] .page-stack{
  scroll-padding-top:clamp(120px,18vh,180px);
}
html.db-v100-cashflow-ready .db-v100-cashflow-card{
  position:relative;
  overflow:hidden;
}
html.db-v100-cashflow-ready .db-v100-cashflow-command-panel{
  display:grid;
  gap:clamp(1rem,2.2vw,1.35rem);
  border:1px solid color-mix(in srgb,var(--primary) 22%,var(--border));
  background:linear-gradient(145deg,color-mix(in srgb,var(--card) 96%,#fff),color-mix(in srgb,var(--primary-soft) 62%,#fff));
  box-shadow:0 18px 44px color-mix(in srgb,var(--primary) 10%,transparent),inset 0 1px 0 rgba(255,255,255,.92);
}
html.db-v100-cashflow-ready .db-v100-cashflow-command-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:1rem;
  flex-wrap:wrap;
}
html.db-v100-cashflow-ready .db-v100-cashflow-command-head h2{
  margin:0;
  font-size:clamp(1.18rem,2.2vw,1.55rem);
}
html.db-v100-cashflow-ready .db-v100-cashflow-command-head p{
  margin:.35rem 0 0;
  max-width:70ch;
}
html.db-v100-cashflow-ready .db-v100-cashflow-period-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:2.35rem;
  padding:.48rem .78rem;
  border-radius:999px;
  font-weight:800;
  font-size:.82rem;
  color:var(--primary);
  background:color-mix(in srgb,var(--primary-soft) 82%,#fff);
  border:1px solid color-mix(in srgb,var(--primary) 18%,var(--border));
  white-space:normal;
  text-align:center;
}
html.db-v100-cashflow-ready .db-v100-cashflow-actions{
  display:flex;
  flex-wrap:wrap;
  gap:.65rem;
}
html.db-v100-cashflow-ready .db-v100-cashflow-actions button{
  min-height:2.65rem;
  border-radius:999px;
  padding:.68rem 1rem;
  font-weight:850;
  border:1px solid color-mix(in srgb,var(--primary) 18%,var(--border));
  background:color-mix(in srgb,var(--card) 94%,var(--primary-soft));
  color:var(--text);
  box-shadow:0 8px 18px color-mix(in srgb,var(--text) 6%,transparent);
}
html.db-v100-cashflow-ready .db-v100-cashflow-actions button:first-child,
html.db-v100-cashflow-ready .db-v100-cashflow-actions button[data-db-v100-primary="true"]{
  color:#fff;
  background:linear-gradient(135deg,var(--primary),color-mix(in srgb,var(--accent) 72%,var(--primary)));
  border-color:transparent;
}
html.db-v100-cashflow-ready .db-v100-cashflow-actions button:hover{
  transform:translateY(-1px);
}
html.db-v100-cashflow-ready .db-v100-cashflow-fixed-summary{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:.75rem;
}
html.db-v100-cashflow-ready .db-v100-cashflow-fixed-summary article{
  min-width:0;
  padding:.92rem;
  border-radius:1.25rem;
  border:1px solid color-mix(in srgb,var(--primary) 13%,var(--border));
  background:rgba(255,255,255,.78);
}
html.db-v100-cashflow-ready .db-v100-cashflow-fixed-summary span{
  display:block;
  color:var(--muted);
  font-size:.78rem;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.045em;
}
html.db-v100-cashflow-ready .db-v100-cashflow-fixed-summary strong{
  display:block;
  margin-top:.26rem;
  font-size:clamp(1.05rem,2vw,1.32rem);
  overflow-wrap:anywhere;
}
html.db-v100-cashflow-ready .db-v100-cashflow-explain{
  display:grid;
  gap:.45rem;
  padding:.85rem .95rem;
  border-radius:1.15rem;
  background:color-mix(in srgb,var(--primary-soft) 66%,#fff);
  color:var(--muted);
  font-weight:650;
}
html.db-v100-cashflow-ready .db-v100-cashflow-explain strong{
  color:var(--text);
}
html.db-v100-cashflow-ready .cashflow-ladder{
  align-items:stretch;
}
html.db-v100-cashflow-ready .cashflow-ladder article{
  min-width:0;
  word-break:normal;
  overflow-wrap:anywhere;
}
html.db-v100-cashflow-ready .cashflow-metrics .metric-card,
html.db-v100-cashflow-ready .cashflow-metrics > *{
  min-width:0;
}
html.db-v100-cashflow-ready .cashflow-reserve-grid{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
}
html.db-v100-cashflow-ready .db-v100-cashflow-reserve-card .microcopy,
html.db-v100-cashflow-ready .db-v100-cashflow-trend-card .microcopy{
  line-height:1.48;
}
html.db-v100-cashflow-ready .cashflow-category-row{
  cursor:pointer;
  transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease;
  min-height:4.35rem;
}
html.db-v100-cashflow-ready .cashflow-category-row:hover,
html.db-v100-cashflow-ready .cashflow-category-row:focus-visible{
  transform:translateY(-1px);
  border-color:color-mix(in srgb,var(--primary) 26%,var(--border));
  box-shadow:0 14px 28px color-mix(in srgb,var(--primary) 9%,transparent);
  outline:none;
}
html.db-v100-cashflow-ready .cashflow-category-row small,
html.db-v100-cashflow-ready .cashflow-category-row b{
  overflow-wrap:anywhere;
}
html.db-v100-cashflow-ready .db-v100-cashflow-empty-note{
  margin-top:.75rem;
  padding:.8rem .9rem;
  border-radius:1rem;
  background:color-mix(in srgb,var(--primary-soft) 70%,#fff);
  color:var(--muted);
  font-weight:650;
}
html.db-v100-cashflow-ready .db-v100-focus-target{
  scroll-margin-top:clamp(120px,18vh,190px);
}
html.db-v100-cashflow-ready .db-v100-focus-target.db-v100-highlight{
  animation:dbV100CashflowFocus 1.8s ease both;
}
@keyframes dbV100CashflowFocus{
  0%,100%{box-shadow:0 18px 44px color-mix(in srgb,var(--text) 7%,transparent)}
  35%{box-shadow:0 0 0 5px color-mix(in srgb,var(--primary) 18%,transparent),0 22px 52px color-mix(in srgb,var(--primary) 16%,transparent)}
}
@media (min-width:1180px){
  html.db-v100-cashflow-ready[data-db-v100-cashflow="true"] .page-section-sequence>.ordered-section-item:has(.cashflow-ladder),
  html.db-v100-cashflow-ready[data-db-v100-cashflow="true"] .db-v100-cashflow-analysis-card,
  html.db-v100-cashflow-ready[data-db-v100-cashflow="true"] .db-v100-cashflow-command-panel{
    grid-column:1 / -1!important;
  }
}
@media (max-width:760px){
  html.db-v100-cashflow-ready .db-v100-cashflow-command-panel{
    padding:1rem;
    border-radius:1.45rem;
  }
  html.db-v100-cashflow-ready .db-v100-cashflow-command-head{
    display:grid;
  }
  html.db-v100-cashflow-ready .db-v100-cashflow-period-pill{
    justify-self:start;
    max-width:100%;
  }
  html.db-v100-cashflow-ready .db-v100-cashflow-actions{
    display:grid;
    grid-template-columns:1fr;
  }
  html.db-v100-cashflow-ready .db-v100-cashflow-actions button{
    width:100%;
    border-radius:1rem;
  }
  html.db-v100-cashflow-ready .db-v100-cashflow-fixed-summary,
  html.db-v100-cashflow-ready .cashflow-reserve-grid{
    grid-template-columns:1fr!important;
  }
  html.db-v100-cashflow-ready .cashflow-ladder{
    grid-template-columns:1fr!important;
  }
  html.db-v100-cashflow-ready .cashflow-metrics{
    grid-template-columns:1fr!important;
  }
  html.db-v100-cashflow-ready .cashflow-category-row{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:.38rem!important;
    align-items:start!important;
  }
}
@media (max-width:430px){
  html.db-v100-cashflow-ready .db-v100-cashflow-command-panel{
    margin-inline:-.05rem;
  }
  html.db-v100-cashflow-ready .db-v100-cashflow-fixed-summary article{
    padding:.82rem;
  }
}
