/* Mein Garten v2 – klare Seitenhierarchie, echte Gartenansicht und mobile Optimierung */
.q-dashboard-page main[data-garden-project-dashboard]{
  min-height:100vh;
  min-height:100svh;
}
.q-dashboard-page .qmg-ticker-row{
  min-height:44px;
}
.q-dashboard-page .q-dashboard-shell{
  display:flex;
  flex-direction:column;
  min-width:0;
}
.q-dashboard-page .q-dashboard-shell>*{min-width:0}
.q-dashboard-page .q-dashboard-hero{order:10}
.q-dashboard-page .qmg-order-real{order:20}
.q-dashboard-page .qmg-order-parts{order:30}
.q-dashboard-page .qmg-order-shopping{order:40}
.q-dashboard-page .qmg-order-budget{order:50}
.q-dashboard-page .qmg-order-groups{order:60}
.q-dashboard-page .qmg-order-systems{order:70}
.q-dashboard-page .qmg-order-profile{order:80}
.q-dashboard-page .qmg-order-timeline{order:90}
.q-dashboard-page .qmg-order-alerts{order:100}
.q-dashboard-page .qmg-order-backup{order:110}
.q-dashboard-page .qmg-order-final{order:120}
.q-dashboard-page .qmg-order-other{order:85}

/* Die alte Planansicht bleibt im DOM als technische Vorlage für das reale Bild,
   wird auf der Seite selbst aber nicht mehr als zweites Gartenbild gezeigt. */
.q-dashboard-page .qmg-plan-source{display:none!important}

/* Unter dem Echtbild keine zweite Status-/Produktliste mehr. */
.q-dashboard-page .qreal-meta,
.q-dashboard-page .qreal-products,
.q-dashboard-page .qmg-details{display:none!important}
.q-dashboard-page .qreal-card{overflow:hidden}
.q-dashboard-page .qreal-stage{
  width:100%;
  aspect-ratio:16/9;
  min-height:0!important;
  position:relative;
}
.q-dashboard-page .qreal-stage>img{
  position:absolute;
  inset:0;
  width:100%!important;
  height:100%!important;
  min-height:0!important;
  object-fit:cover;
}
.q-dashboard-page .qreal-foot{
  padding:1rem 1.2rem 1.15rem;
  border-top:1px solid rgba(20,72,88,.08);
}
.q-dashboard-page .qreal-actions{align-items:center}

/* Eigene, klar getrennte Einkaufsliste */
.qmg-shopping-section{scroll-margin-top:84px}
.qmg-shopping-card{padding:1rem}
.qmg-shopping-groups{display:grid;gap:1rem}
.qmg-shopping-group{
  border:1px solid rgba(20,72,88,.10);
  border-radius:18px;
  background:#f8fbf9;
  padding:.9rem;
  min-width:0;
}
.qmg-shopping-group__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:.75rem;
  margin-bottom:.7rem;
}
.qmg-shopping-group__head h3{margin:0;color:#173f49;font-size:1rem}
.qmg-shopping-group__head span{font-size:.75rem;font-weight:800;color:#60766b;white-space:nowrap}
.qmg-shopping-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.65rem}
.qmg-product-card{
  display:grid;
  grid-template-columns:76px minmax(0,1fr);
  min-width:0;
  min-height:92px;
  border:1px solid rgba(20,72,88,.10);
  border-radius:15px;
  background:#fff;
  color:inherit;
  text-decoration:none;
  overflow:hidden;
}
a.qmg-product-card:hover{border-color:rgba(47,116,80,.30);box-shadow:0 8px 22px rgba(20,72,88,.07)}
.qmg-product-card__media{background:#f0f4ef;display:grid;place-items:center;min-width:0}
.qmg-product-card__media img{display:block;width:100%;height:92px;object-fit:contain;background:#fff}
.qmg-product-card__placeholder{font-size:1.35rem;font-weight:900;color:#5f7a67}
.qmg-product-card__body{padding:.65rem .7rem;min-width:0;display:flex;flex-direction:column;justify-content:center}
.qmg-product-card__body small{display:block;color:#728188;font-size:.68rem;font-weight:750;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.qmg-product-card__body strong{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;margin:.12rem 0 .35rem;color:#173f49;font-size:.84rem;line-height:1.3}
.qmg-product-card__meta{display:flex;align-items:flex-end;justify-content:space-between;gap:.5rem;color:#6a7d82;font-size:.7rem;min-width:0}
.qmg-product-card__meta span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.qmg-product-card__meta b{color:#315f45;white-space:nowrap;font-size:.76rem}
.qmg-product-more{margin-top:.7rem;border-top:1px solid rgba(20,72,88,.08);padding-top:.65rem}
.qmg-product-more>summary{cursor:pointer;color:#315f45;font-size:.8rem;font-weight:800;list-style:none}
.qmg-product-more>summary::-webkit-details-marker{display:none}
.qmg-product-more>summary:after{content:' +';float:right}
.qmg-product-more[open]>summary:after{content:' −'}
.qmg-product-more .qmg-shopping-grid{margin-top:.65rem}
.qmg-shopping-empty{padding:1rem;border-radius:14px;background:#f7faf8;color:#65797f}
.qmg-shopping-empty strong{display:block;color:#173f49;margin-bottom:.2rem}

/* Mobile Budgettabelle wird zu lesbaren Karten statt horizontalem Scrollen. */
@media(max-width:720px){
  .q-dashboard-page .q-dashboard-shell{width:min(100% - 1rem,1180px)}
  .q-dashboard-page .q-dashboard-section{padding:.7rem 0}
  .q-dashboard-page .q-dashboard-hero{padding:1rem 0 .65rem}
  .q-dashboard-page .q-dashboard-card{border-radius:18px}
  .q-dashboard-page .q-dashboard-hero__grid{gap:.75rem}
  .q-dashboard-page .q-dashboard-hero__main,
  .q-dashboard-page .q-dashboard-hero__side{padding:.9rem}
  .q-dashboard-page .q-dashboard-hero__main h1{font-size:clamp(1.75rem,9vw,2.3rem)}
  .q-dashboard-page .q-dashboard-hero__side{gap:.5rem}
  .q-dashboard-page .q-stat{padding:.72rem;min-width:0}
  .q-dashboard-page .q-stat strong{font-size:1rem;overflow-wrap:anywhere}
  .q-dashboard-page .q-section-title{margin-bottom:.6rem;gap:.45rem}
  .q-dashboard-page .q-section-title h2{font-size:1.28rem;line-height:1.2}
  .q-dashboard-page .q-section-title p{font-size:.86rem;line-height:1.45}

  .q-dashboard-page .qreal-title-row{display:block}
  .q-dashboard-page .qreal-actions{display:grid;grid-template-columns:1fr;margin:.6rem 0 0}
  .q-dashboard-page .qreal-actions .button{width:100%;justify-content:center;text-align:center;white-space:normal}
  .q-dashboard-page .qreal-stage{aspect-ratio:4/3}
  .q-dashboard-page .qreal-overlay{left:.55rem;right:.55rem;bottom:.55rem}
  .q-dashboard-page .qreal-badge{max-width:100%;font-size:.65rem;line-height:1.2}
  .q-dashboard-page .qreal-badge:first-child{display:none}
  .q-dashboard-page .qreal-foot{padding:.8rem;display:block}
  .q-dashboard-page .qreal-foot p{font-size:.7rem}
  .q-dashboard-page .qreal-foot .button{display:block;width:100%;margin-top:.65rem;text-align:center}
  .q-dashboard-page .qreal-fallback{padding:1rem}

  .q-dashboard-page .q-area-cards,
  .q-dashboard-page .qv6-system-grid,
  .q-dashboard-page .qv6-group-grid,
  .qmg-shopping-grid{grid-template-columns:1fr}
  .q-dashboard-page .q-area-card{padding:.9rem}
  .q-dashboard-page .q-area-card__meta{gap:.4rem}
  .q-dashboard-page .q-area-card__meta div{padding:.5rem}
  .q-dashboard-page .q-dashboard-actions{display:grid;grid-template-columns:1fr;width:100%}
  .q-dashboard-page .q-dashboard-actions .button{width:100%;justify-content:center;text-align:center}

  .qmg-shopping-card{padding:.7rem}
  .qmg-shopping-group{padding:.7rem;border-radius:15px}
  .qmg-shopping-group__head{align-items:flex-start}
  .qmg-product-card{grid-template-columns:68px minmax(0,1fr);min-height:84px}
  .qmg-product-card__media img{height:84px}
  .qmg-product-card__body{padding:.55rem .6rem}
  .qmg-product-card__body strong{font-size:.8rem}

  .q-dashboard-page .q-budget-wrap{overflow:visible;padding:0;background:transparent;border:0;box-shadow:none}
  .q-dashboard-page .q-budget-table{min-width:0;width:100%;display:block}
  .q-dashboard-page .q-budget-table thead{display:none}
  .q-dashboard-page .q-budget-table tbody{display:grid;gap:.6rem}
  .q-dashboard-page .q-budget-table tr{display:block;background:#fff;border:1px solid rgba(20,72,88,.10);border-radius:15px;padding:.45rem .7rem;box-shadow:0 7px 18px rgba(20,72,88,.04)}
  .q-dashboard-page .q-budget-table td{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;width:100%;padding:.45rem 0;border-bottom:1px solid rgba(20,72,88,.07);text-align:right;font-size:.78rem}
  .q-dashboard-page .q-budget-table td:last-child{border-bottom:0}
  .q-dashboard-page .q-budget-table td:before{content:attr(data-label);flex:0 0 43%;text-align:left;font-size:.7rem;font-weight:800;color:#718389}
  .q-dashboard-page .q-budget-table td>*{max-width:57%}
  .q-dashboard-page .q-budget-total{background:#edf6ef!important}

  .q-dashboard-page .qv6-segment{grid-template-columns:1fr!important;gap:.45rem}
  .q-dashboard-page .qv6-segment>*{grid-column:1!important;width:100%;min-width:0}
  .q-dashboard-page .qv6-segment>button{width:40px;justify-self:end}
  .q-dashboard-page .qv6-segment-plan{white-space:normal;text-align:center}
  .q-dashboard-page .qv6-group-head{align-items:flex-start;flex-direction:column}
  .q-dashboard-page .qv6-group-head select{width:100%}
  .q-dashboard-page .qv6-system-card__head{align-items:flex-start}
  .q-dashboard-page .qv6-system-card .button{width:100%;text-align:center;justify-content:center}
  .q-dashboard-page .qv6-backup-card{display:grid;grid-template-columns:1fr}
  .q-dashboard-page .qv6-backup-card .button{width:100%;text-align:center;justify-content:center}

  .q-dashboard-page .q-timeline-item{grid-template-columns:34px minmax(0,1fr);padding:.75rem;gap:.6rem}
  .q-dashboard-page .q-timeline-item__nr{width:32px;height:32px}
  .q-dashboard-page .q-alerts{grid-template-columns:1fr}
}

@media(max-width:420px){
  .q-dashboard-page .q-dashboard-shell{width:calc(100% - .75rem)}
  .q-dashboard-page .q-dashboard-hero__side{grid-template-columns:1fr 1fr}
  .q-dashboard-page .q-stat{padding:.62rem}
  .q-dashboard-page .q-stat span{font-size:.68rem}
  .q-dashboard-page .q-stat strong{font-size:.9rem}
  .qmg-product-card{grid-template-columns:62px minmax(0,1fr)}
  .qmg-product-card__media img{height:80px}
  .qmg-product-card__meta{align-items:flex-start;flex-direction:column;gap:.12rem}
  .qmg-product-card__meta b{white-space:normal}
}

@media print{
  .qmg-plan-source{display:none!important}
  .qmg-product-more:not([open])>.qmg-shopping-grid{display:grid!important}
}