/* ====================================================================
   HG Dashboard Mobile-Overhaul (STAGING) - 05.11.2026
   Scoped auf body.hg-dashboard-chrome, damit der Funnel (#hg-pro-gateway)
   unberuehrt bleibt. Alles Override, keine Funktion angefasst.
   ==================================================================== */

/* ---- P2: dezentes Hellgrau, Navi gleiche Familie, Orange nur Akzent ---- */
body.hg-dashboard-chrome{background:#eef0f3 !important;}
body.hg-dashboard-chrome header.n1-topbar,
body.hg-dashboard-chrome #leiste-embed header.n1-topbar{background:#e9ebef !important;}
body.hg-dashboard-chrome header.n1-topbar .n1-cosmic{background:#e9ebef !important;background-image:linear-gradient(180deg,#eef0f3,#e6e8ed) !important;}
/* warme Creme-Flaechen im Dashboard entwaermen (NUR Dashboard-Inhalt) */
body.hg-dashboard-chrome #ownerDashboard,
body.hg-dashboard-chrome .hg-owner-shell,
body.hg-dashboard-chrome .hg-dash-main{background:transparent !important;}
body.hg-dashboard-chrome .hg-card,
body.hg-dashboard-chrome .hg-mod,
body.hg-dashboard-chrome [class*="hg-owner-card"],
body.hg-dashboard-chrome .hg-panel{background:#ffffff !important;background-image:none !important;}

/* ---- P8: Speichern-Buttons vereinheitlichen (Objektdetails-Stil fuer alle) ---- */
body.hg-dashboard-chrome .hg-btn.hg-btn-primary,
body.hg-dashboard-chrome .hg-mod-btn.hg-mod-btn--primary,
body.hg-dashboard-chrome button.hg-btn-primary{
  background:linear-gradient(135deg,#F2912A 0%,#E05E16 100%) !important;
  color:#fff !important;border:none !important;border-radius:12px !important;
  font-weight:700 !important;font-size:15px !important;padding:13px 22px !important;
  box-shadow:0 8px 20px rgba(224,94,22,.26) !important;letter-spacing:0 !important;min-height:46px !important;
}

/* ---- Grundstueck 'nicht verfuegbar' Modulbox: moderner + glassy (Queue) ---- */
body.hg-dashboard-chrome .hg-mod--na,
body.hg-dashboard-chrome .hg-mod-locked,
body.hg-dashboard-chrome [data-mod-unavailable],
body.hg-dashboard-chrome .hg-mod.is-locked{
  background:rgba(255,255,255,.52) !important;
  -webkit-backdrop-filter:blur(10px) saturate(1.1) !important;backdrop-filter:blur(10px) saturate(1.1) !important;
  border:1px solid rgba(15,23,42,.08) !important;box-shadow:none !important;border-radius:16px !important;}
body.hg-dashboard-chrome .hg-mod--na *,
body.hg-dashboard-chrome .hg-mod-locked *{font-weight:400 !important;}

/* ---- P3 clever/fluid: Methoden-Schritte selbst-anpassend (auto-fit + clamp) ---- */
/* Der Container flows die Schritte automatisch in so viele Spalten, wie passen:
   schmales Handy = 1 Spalte, breiteres Handy/Tablet = 2, Desktop = 2-3. Kein
   fester Breakpoint, nichts bleibt einsam in einer Zeile, Groessen skalieren mit. */
/* 20261106: Nutzerwunsch - die Punkte "Wie die Bewertung berechnet wurde"
   sollen UNTEREINANDER stehen (eine Spalte), nicht nebeneinander. */
body.hg-dashboard-chrome #ownerMethodList{
  display:grid !important;
  grid-template-columns:1fr !important;
  gap:clamp(6px, 1.6vw, 14px) !important;
  align-items:start !important;
}
body.hg-dashboard-chrome #ownerMethodSection .hg-owner-method-step{
  display:flex !important; align-items:flex-start !important; gap:clamp(8px, 2vw, 12px) !important;
}
body.hg-dashboard-chrome #ownerMethodSection .hg-owner-method-step-mark{
  flex:0 0 auto !important;
  width:clamp(22px, 5.5vw, 28px) !important; height:clamp(22px, 5.5vw, 28px) !important; min-width:clamp(22px, 5.5vw, 28px) !important;
  display:inline-flex !important; align-items:center !important; justify-content:center !important;
  font-size:clamp(12px, 3vw, 14px) !important; border-radius:50% !important; margin:0 !important;
}
body.hg-dashboard-chrome #ownerMethodSection .hg-owner-method-step-label{font-size:clamp(13px, 3.4vw, 15px) !important; line-height:1.3 !important;}
body.hg-dashboard-chrome #ownerMethodSection .hg-owner-method-step-text{font-size:clamp(12px, 3vw, 13.5px) !important; line-height:1.35 !important;}

/* ---- P4 Web: Grundstueck-only -> kompakte Box statt voller Breite ---- */
@media (min-width:641px){
  body.hg-dashboard-chrome .hg-owner-lb-strip--land-only{max-width:400px !important;}
  body.hg-dashboard-chrome .hg-owner-lb-strip--land-only .hg-owner-lb-line{gap:28px !important;}
}

/* ---- P3/P4/P5/P6: NUR mobil (Web bleibt Original) ---- */
@media (max-width:640px){
  /* P4: Grundstueck bewertbare Flaeche -> Ueberschrift oben, 3 Werte in EINER Zeile */
  body.hg-dashboard-chrome .hg-owner-lb-strip--land-only .hg-owner-lb-col{display:flex !important;flex-wrap:wrap !important;align-items:stretch !important;gap:0 !important;}
  body.hg-dashboard-chrome .hg-owner-lb-strip--land-only .hg-owner-lb-hd{flex:0 0 100% !important;width:100% !important;margin:0 0 8px !important;}
  body.hg-dashboard-chrome .hg-owner-lb-strip--land-only .hg-owner-lb-line{flex:1 1 0 !important;min-width:0 !important;display:flex !important;flex-direction:column !important;gap:4px !important;padding:6px 6px !important;text-align:center !important;border-left:1px solid rgba(15,23,42,.12) !important;}
  body.hg-dashboard-chrome .hg-owner-lb-strip--land-only .hg-owner-lb-line:first-of-type{border-left:none !important;}
  body.hg-dashboard-chrome .hg-owner-lb-strip--land-only .hg-owner-lb-line > span:first-child{font-size:11px !important;opacity:.62 !important;text-transform:uppercase !important;letter-spacing:.04em !important;font-weight:600 !important;}
  body.hg-dashboard-chrome .hg-owner-lb-strip--land-only .hg-owner-lb-line > span:last-child{font-size:13.5px !important;font-weight:700 !important;white-space:nowrap !important;}
  /* P5/P6: Deep-Stat kompakter + einheitliche Typo */
  body.hg-dashboard-chrome .hg-owner-lb-line{padding:4px 0 !important;font-size:14px !important;line-height:1.3 !important;}
  body.hg-dashboard-chrome .hg-owner-lb-hd{font-size:12px !important;font-weight:700 !important;text-transform:uppercase !important;letter-spacing:.05em !important;opacity:.7 !important;margin-bottom:4px !important;}
}

/* ---- P5/P6 Feinschliff: Faktor-Panel (mobil) ---- */
@media (max-width:640px){
  /* P5: Scope-Ueberschriften Gebaeude/Grundstueck klar abgesetzt */
  body.hg-dashboard-chrome .hg-factor-scope-hd{display:flex !important;align-items:baseline !important;justify-content:space-between !important;margin:12px 0 5px !important;padding:5px 11px 6px !important;border-bottom:1px solid rgba(15,23,42,.12) !important;background:rgba(232,114,32,.05) !important;border-radius:8px 8px 0 0 !important;}
  body.hg-dashboard-chrome .hg-factor-scope-hd-t{font-size:11px !important;font-weight:800 !important;text-transform:uppercase !important;letter-spacing:.05em !important;color:#8a4b14 !important;}
  body.hg-dashboard-chrome .hg-factor-scope-hd-meta{font-size:10px !important;font-weight:600 !important;opacity:.72 !important;}
  /* P5: einheitliche Faktor-Typo */
  body.hg-dashboard-chrome .hg-factor-label{font-size:11px !important;line-height:1.25 !important;}
  body.hg-dashboard-chrome .hg-factor-val{font-size:11.5px !important;font-weight:700 !important;}
  /* P6: Modell-Hebel-Zeile kompakter, weniger Luft zu Zahlen + zu Objektdaten */
  body.hg-dashboard-chrome .hg-factor-row.equiv{margin-top:5px !important;min-height:auto !important;padding-top:8px !important;border-top:1px solid rgba(15,23,42,.1) !important;}
  body.hg-dashboard-chrome .hg-owner-property-sheet{margin-top:8px !important;}
}

/* ---- P7: Profil-Menue als VOLLBILD auf Mobil (kompakter Kopf + Button-Liste) ---- */
@media (max-width:640px){
  body.hg-dashboard-chrome .hg-profil__menue.ist-offen{
    position:fixed !important;inset:0 !important;width:100vw !important;height:100vh !important;height:100dvh !important;
    min-width:0 !important;max-width:none !important;border-radius:0 !important;z-index:3000 !important;
    padding:14px 14px calc(14px + env(safe-area-inset-bottom,0px)) !important;overflow-y:auto !important;
    background:#eef0f3 !important;display:flex !important;flex-direction:column !important;gap:10px !important;box-shadow:none !important;}
  body.hg-dashboard-chrome .hg-profil__menue.ist-offen .hg-profil__kopf{
    background:#fff !important;border-radius:16px !important;padding:16px !important;margin-bottom:4px !important;box-shadow:0 2px 10px rgba(15,23,42,.06) !important;}
  body.hg-dashboard-chrome .hg-profil__eintrag{
    width:100% !important;display:flex !important;align-items:center !important;gap:12px !important;
    padding:16px !important;border-radius:14px !important;background:#fff !important;border:1px solid rgba(15,23,42,.06) !important;
    box-shadow:0 2px 8px rgba(15,23,42,.05) !important;font-size:16px !important;font-weight:600 !important;}
  body.hg-dashboard-chrome .hg-profil__eintrag:active{background:#f3f4f7 !important;}
  body.hg-dashboard-chrome .hg-profil__trenner{display:none !important;}
}

/* ==================================================================
   20261106b - Demo/Dashboard-Feinschliff (Nutzerwuensche)
   ================================================================== */

/* T1: Weicher Uebergang Navileiste -> Hintergrund. Harte Kante weg
   (border/shadow), und die warme Creme-Demo-Leiste (#f5f2ee) wird zu
   einem kuehlen Verlauf, der die Navi-Farbe in den Inhalt ueberleitet
   -> "aus einem Guss", kein abrupter Farbwechsel. */
body.hg-dashboard-chrome header.n1-topbar,
body.hg-dashboard-chrome #leiste-embed header.n1-topbar{
  border-bottom:0 !important;
  box-shadow:none !important;
}
body.hg-dashboard-chrome #hgDemoLeiste.hg-demo-leiste{
  background:linear-gradient(180deg,#eef2f8 0%,#eef2f8 36%,#f4f6fb 100%) !important;
  border-top:0 !important;
  border-bottom:0 !important;
  box-shadow:none !important;
}

/* T2: "So berechnen wir das" immer als unterster, gesammelter Block
   der Wertentwicklung (Reihenfolge fixiert, klar abgesetzt). */
body.hg-dashboard-chrome #ownerDevSection .hg-owner-method-body{
  display:flex !important; flex-direction:column !important;
}
body.hg-dashboard-chrome #ownerDevSection .hg-owner-dev-cols{order:1 !important;}
body.hg-dashboard-chrome #ownerDevSection .hg-owner-dev-info{
  order:9 !important; margin-top:16px !important;
}

/* T3: Keine doppelte Trennlinie ueber "Preisniveau-Einordnung". Die
   Kopfzeile "Einflussfaktoren" behaelt EINE Linie; die Sonderzeile
   setzt direkt darunter an (kein zweiter Strich, kein Schwebe-Abstand). */
body.hg-dashboard-chrome #ownerFactorBars .hg-factor-row.special{
  border-top:0 !important;
  margin-top:0 !important;
  padding-top:11px !important;
}

/* ==================================================================
   20261107 - Mobile-Feinschliff Teil 2 (Nutzerliste 8 Punkte)
   ================================================================== */

/* T8: Hintergrund Silber->Grau, durchgehend hinter die Navileiste,
   dezent. Warme Radials raus; Navi/Leiste transparent, damit der
   Verlauf ununterbrochen hinter Navi und Dashboard liegt. */
body.hg-dashboard-chrome{
  background:linear-gradient(180deg,#eef2f8 0px,#e9edf4 430px,#e8ecf3 100%) !important;
  background-attachment:scroll !important;
}
body.hg-dashboard-chrome header.n1-topbar,
body.hg-dashboard-chrome #leiste-embed header.n1-topbar,
body.hg-dashboard-chrome header.n1-topbar .n1-cosmic,
body.hg-dashboard-chrome #hgDemoLeiste.hg-demo-leiste{
  background:transparent !important;
  background-image:none !important;
  border-top:0 !important;border-bottom:0 !important;box-shadow:none !important;
}

/* T6: Ruhigere, konsistente Typografie (wiederkehrende Rollen vereinheitlicht). */
body.hg-dashboard-chrome .hg-owner-list-title,
body.hg-dashboard-chrome .hg-section-title{
  font-size:17px !important;font-weight:700 !important;letter-spacing:-.01em !important;color:#1f2937 !important;
}
body.hg-dashboard-chrome .hg-owner-method-sub,
body.hg-dashboard-chrome .hg-owner-factor-desc,
body.hg-dashboard-chrome .hg-owner-method-head .hg-owner-method-sub{
  font-size:12.5px !important;font-weight:400 !important;color:#64748b !important;line-height:1.45 !important;
}
body.hg-dashboard-chrome .hg-widget .k,
body.hg-dashboard-chrome .hg-energy-stat .k,
body.hg-dashboard-chrome .hg-mod-stat .k{
  font-size:12px !important;font-weight:700 !important;color:#475569 !important;letter-spacing:0 !important;
}

/* T3: separate "Preisniveau-Einordnung"-Zeile mit blauer Linie entfernen
   (wird per JS in die obere Statbox verschoben, mit i-Popover). */
body.hg-dashboard-chrome #ownerFactorBars .hg-factor-row.special{display:none !important;}
/* eigenes i-Popover fuer die Statbox */
.hg-preis-pop{
  position:absolute;z-index:99999;width:min(300px,calc(100vw - 24px));
  background:#1f2430;color:#f1f3f8;font-size:12.5px;line-height:1.5;
  padding:12px 14px;border-radius:12px;box-shadow:0 16px 44px rgba(0,0,0,.4);
}

/* T4: "Modell-Hebel" als klares Gesamtergebnis hervorheben (kein nackter
   Tabellenwert). */
/* Modell-Hebel: schlichte Ergebniszeile, gleiche Innenabstaende wie die
   uebrigen Faktorzeilen, kompakt, dezentes Pill (keine Box, kein Rand-Kleben). */
body.hg-dashboard-chrome #ownerFactorBars .hg-factor-row.equiv{
  margin-top:4px !important;padding:9px 12px !important;align-items:center !important;
  border:0 !important;border-top:1px solid rgba(15,23,42,.10) !important;
  border-radius:0 !important;background:transparent !important;box-shadow:none !important;
}
body.hg-dashboard-chrome #ownerFactorBars .hg-factor-row.equiv .hg-factor-label{
  color:#2a1b10 !important;font-weight:700 !important;font-size:12px !important;
  -webkit-line-clamp:2 !important;display:-webkit-box !important;
}
body.hg-dashboard-chrome #ownerFactorBars .hg-factor-row.equiv .hg-factor-val{
  background:#fff4e9 !important;color:#c75a12 !important;
  border:1px solid rgba(224,122,0,.35) !important;box-shadow:none !important;
  font-weight:800 !important;font-size:13px !important;min-width:3.25rem !important;
}

/* T2: Wertentwicklung-"So berechnen wir das" raus (wird unten in die
   Methodenkarte integriert, per JS). */
body.hg-dashboard-chrome #ownerDevSection .hg-owner-dev-info{display:none !important;}
body.hg-dashboard-chrome #ownerDevMethodBelow{
  margin:14px 14px 4px !important;padding:15px 16px !important;border-radius:14px !important;
  background:rgba(255,255,255,.6) !important;border:1px solid rgba(15,23,42,.08) !important;
}
body.hg-dashboard-chrome #ownerDevMethodBelow .hg-owner-method-devblock-hd{
  font-size:12px !important;font-weight:800 !important;letter-spacing:.1em !important;
  text-transform:uppercase !important;color:#64748b !important;margin-bottom:9px !important;
}
body.hg-dashboard-chrome #ownerDevMethodBelow p{
  font-size:13px !important;line-height:1.5 !important;color:#475569 !important;margin:0 0 9px !important;
}
body.hg-dashboard-chrome #ownerDevMethodBelow p:last-child{margin-bottom:0 !important;}
body.hg-dashboard-chrome #ownerDevMethodBelow strong{color:#2a1b10 !important;font-weight:700 !important;}

@media (max-width:640px){
  /* T1: Handout - Datenqualitaet nach oben rechts, Wertspanne volle Breite unten. */
  body.hg-dashboard-chrome .hg-owner-headline .hg-owner-grid{grid-template-columns:1fr 1fr !important;}
  body.hg-dashboard-chrome .hg-owner-headline .hg-owner-grid .hg-widget--accent{order:1 !important;}
  body.hg-dashboard-chrome .hg-owner-headline .hg-owner-grid .hg-widget--dq{order:2 !important;}
  body.hg-dashboard-chrome .hg-owner-headline .hg-owner-grid .hg-widget:has(#ownerYield){order:3 !important;}
  body.hg-dashboard-chrome .hg-owner-headline .hg-owner-grid .hg-widget:has(#ownerValueRange){
    order:4 !important;grid-column:1 / -1 !important;
  }

  /* T5: Methodenschritte - Zahl links in dezent getoenter Spalte, vertikale
     Trennlinie, Text rechts; KEIN Schatten an der Zahl. */
  body.hg-dashboard-chrome #ownerMethodSection .hg-owner-method-step{
    display:grid !important;grid-template-columns:52px 1fr !important;gap:0 !important;
    align-items:stretch !important;padding:0 !important;overflow:hidden !important;
  }
  body.hg-dashboard-chrome #ownerMethodSection .hg-owner-method-step-mark{
    width:auto !important;height:auto !important;min-width:0 !important;border-radius:0 !important;
    display:flex !important;align-items:center !important;justify-content:center !important;
    background:rgba(224,122,0,.10) !important;color:#6b3410 !important;
    border-right:1px solid rgba(224,122,0,.28) !important;box-shadow:none !important;
    font-size:19px !important;font-weight:800 !important;margin:0 !important;letter-spacing:0 !important;
  }
  body.hg-dashboard-chrome #ownerMethodSection .hg-owner-method-step>*:last-child{
    padding:11px 13px !important;display:flex !important;flex-direction:column !important;justify-content:center !important;min-width:0 !important;
  }

  /* T7: Finanzen - Bodenwert(gruen)/Gebaeudewert(blau)/AfA(orange, volle Breite),
     harmonisch und klar unterscheidbar. */
  body.hg-dashboard-chrome #ownerDocumentsCard .hg-mod-stats{
    display:grid !important;grid-template-columns:1fr 1fr !important;gap:10px !important;
  }
  body.hg-dashboard-chrome #ownerDocumentsCard .hg-mod-stat{
    border-radius:14px !important;padding:12px 13px !important;border:1px solid rgba(15,23,42,.08) !important;
  }
  body.hg-dashboard-chrome #ownerDocumentsCard .hg-mod-stat:has(#ownerLandValue){
    background:rgba(22,101,52,.06) !important;border-color:rgba(22,101,52,.22) !important;
  }
  body.hg-dashboard-chrome #ownerDocumentsCard .hg-mod-stat:has(#ownerLandValue) .v{color:#166534 !important;}
  body.hg-dashboard-chrome #ownerDocumentsCard .hg-mod-stat:has(#ownerBuildingValue){
    background:rgba(30,64,175,.06) !important;border-color:rgba(30,64,175,.22) !important;
  }
  body.hg-dashboard-chrome #ownerDocumentsCard .hg-mod-stat:has(#ownerBuildingValue) .v{color:#1e40af !important;}
  body.hg-dashboard-chrome #ownerDocumentsCard .hg-mod-stat:has(#ownerAfaBasis){
    grid-column:1 / -1 !important;background:rgba(224,122,0,.07) !important;border-color:rgba(224,122,0,.24) !important;
  }
  body.hg-dashboard-chrome #ownerDocumentsCard .hg-mod-stat:has(#ownerAfaBasis) .v{color:#c75a12 !important;}
  body.hg-dashboard-chrome #ownerDocumentsCard .hg-mod-afa-strip:not(.hidden){
    background:rgba(224,122,0,.06) !important;border:1px solid rgba(224,122,0,.18) !important;border-radius:12px !important;margin-top:10px !important;
  }
  body.hg-dashboard-chrome #ownerDocumentsCard .hg-mod-afa-strip strong{color:#c75a12 !important;}
}

/* ==================================================================
   20261107b - Korrekturen Teil 3 (Nutzerliste 6 Punkte)
   ================================================================== */

/* #1: Hintergrund KONSEQUENT silber (#eef2f8) - Navi, Demoleiste und
   Bewertung eine Einheit. Hohe Spezifitaet gegen die :has()-Basisregel;
   Radials raus. (Zusaetzlich per JS inline-!important abgesichert.) */
html body.hg-dashboard-chrome,
html body.hg-dashboard-chrome:has(#ownerPortalModule):not(.hg-modal-open){
  background:#eef2f8 !important;
  background-image:none !important;
}
body.hg-dashboard-chrome #leiste-embed .n1-topbar{box-shadow:none !important;border-bottom:0 !important;}
body.hg-dashboard-chrome #leiste-embed .n1-topbar,
body.hg-dashboard-chrome #leiste-embed .n1-cosmic{background:#eef2f8 !important;background-image:none !important;}
body.hg-dashboard-chrome #leiste-embed .n1-cosmic__warp,
body.hg-dashboard-chrome #leiste-embed .n1-cosmic__waves,
body.hg-dashboard-chrome #leiste-embed .n1-cosmic__shimmer{display:none !important;}
body.hg-dashboard-chrome #hgDemoLeiste.hg-demo-leiste{
  background:#eef2f8 !important;background-image:none !important;border:0 !important;box-shadow:none !important;
}

/* #2: Obere Modul-Bubble "Wie das Ergebnis entsteht" entfernen
   (Abschnitt bleibt weiter unten lesbar). */
body.hg-dashboard-chrome .hg-bew-nav__link[data-ziel="ownerMethodSection"]{display:none !important;}

/* #3: identisches i-Popover (hg-risk-popover-layer) - gleiche Optik + X-Schliessen. */

/* #5: Zahlen der Methodenschritte WEISS auf kraeftigem Orange (guter Kontrast). */
@media (max-width:640px){
  body.hg-dashboard-chrome #ownerMethodSection .hg-owner-method-step-mark{
    background:linear-gradient(160deg,#F0881F,#E05E16) !important;
    color:#ffffff !important;
    border-right:1px solid rgba(176,70,12,.55) !important;
    font-weight:800 !important;
  }

  /* #4: Einflussfaktoren und Objektdaten als ZWEI getrennte Themenbloecke
     (Karten + Abstand), ohne zusaetzliche Trennlinien unter den Koepfen. */
  body.hg-dashboard-chrome #ownerPortalModule .hg-owner-chart-grid{
    display:flex !important;flex-direction:column !important;gap:16px !important;
  }
  body.hg-dashboard-chrome #ownerPortalModule #ownerFactorPanel,
  body.hg-dashboard-chrome #ownerPortalModule .hg-owner-property-sheet.hg-owner-chart-card{
    border:1px solid rgba(15,23,42,.09) !important;border-radius:16px !important;
    background:rgba(255,255,255,.62) !important;overflow:hidden !important;
    padding-bottom:6px !important;
  }
  body.hg-dashboard-chrome #ownerPortalModule .hg-owner-factor-head{
    border-bottom:0 !important;padding:13px 14px 6px !important;
  }
}

/* ==================================================================
   20261107c - Korrekturen Teil 4
   ================================================================== */

/* #2b: EIN durchgehender, dezenter Silber->Grau-Verlauf ueber alle drei
   Bereiche. Der Verlauf liegt auf <html> (viewport-verankert -> scrollt nicht,
   eine zusammenhaengende Flaeche). Body + Wrapper transparent, damit der
   Verlauf ueberall durchscheint. Navi + Demoleiste in der Silber-Spitze
   (#eef2f8) -> nahtlos am Uebergang, NICHT transparent wirkend.
   Zusaetzlich per JS inline-!important abgesichert (Basis-Radials/‐:has schlagen). */
html{
  background:linear-gradient(180deg,#eef2f8 0%,#e7ebf1 52%,#e1e5ec 100%) !important;
  background-attachment:fixed !important;
}
html body.hg-dashboard-chrome,
html body.hg-dashboard-chrome:has(#ownerPortalModule):not(.hg-modal-open){
  background:transparent !important;background-image:none !important;
}
body.hg-dashboard-chrome .hg-page-content,
body.hg-dashboard-chrome #ownerPortalModule,
body.hg-dashboard-chrome .hg-owner-shell,
body.hg-dashboard-chrome .hg-owner-page-content,
body.hg-dashboard-chrome .hg-wrap{background:transparent !important;}
body.hg-dashboard-chrome #leiste-embed .n1-topbar,
body.hg-dashboard-chrome #leiste-embed .n1-cosmic{background:#eef2f8 !important;background-image:none !important;box-shadow:none !important;}
body.hg-dashboard-chrome #hgDemoLeiste.hg-demo-leiste{background:#eef2f8 !important;background-image:none !important;border:0 !important;box-shadow:none !important;}

/* #1b: Modell-Hebel OHNE Box/Rahmen - schlichte, ruhige Ergebniszeile, damit
   keine zweite Linie neben dem Karten-Rahmen entsteht. */
@media (max-width:640px){
  body.hg-dashboard-chrome #ownerFactorBars .hg-factor-row.equiv{
    margin-top:4px !important;padding:9px 12px !important;align-items:center !important;
    border:0 !important;border-top:1px solid rgba(15,23,42,.10) !important;
    border-radius:0 !important;background:transparent !important;box-shadow:none !important;
  }
  body.hg-dashboard-chrome #ownerFactorBars .hg-factor-row.equiv .hg-factor-label{
    color:#2a1b10 !important;font-weight:700 !important;font-size:12px !important;-webkit-line-clamp:2 !important;
  }
  body.hg-dashboard-chrome #ownerFactorBars .hg-factor-row.equiv .hg-factor-val{
    background:#fff4e9 !important;color:#c75a12 !important;border:1px solid rgba(224,122,0,.35) !important;
    font-weight:800 !important;font-size:13px !important;box-shadow:none !important;min-width:3.25rem !important;
  }
}

/* 20261107d: Wertentwicklung-Tabelle "Werte je Jahr" wurde mobil nicht
   angezeigt. Ursache: im einspaltigen Layout (<=820px) kollabiert
   .hg-owner-dev-tablescroll (flex:1 1 0) auf 0, weil der Wrapper keine
   Hoehe vorgibt -> Tabelle auf ~2px geklippt. Fix: feste Scrollhoehe statt
   flex-grow, Wrapper als Block. */
@media (max-width:820px){
  body.hg-dashboard-chrome #ownerDevSection .hg-owner-dev-tablewrap{display:block !important;}
  body.hg-dashboard-chrome #ownerDevSection .hg-owner-dev-tablescroll{
    flex:none !important;min-height:0 !important;max-height:340px !important;overflow:auto !important;
  }
}

/* 20261107e: Web-Version - Demoleiste wieder im Ton der linken Menueleiste
   (#faf7f2, wie vorher). Die Silber-Angleichung gilt nur mobil. */
@media (min-width:821px){
  html body.hg-dashboard-chrome #hgDemoLeiste.hg-demo-leiste{
    background:#faf7f2 !important;background-image:none !important;
    border-bottom:1px solid rgba(15,23,42,.08) !important;
  }
}
