/* ===========================================================================
   Run AB — ruhiger Start ohne Flackern. Der Server setzt <html class="gac-boot" data-modus="easy|experte">;
   bis Menü, Modus und Seite fertig gesetzt sind (gacBootFertig() in index.html), ist nur dieses Lade-Gerüst
   sichtbar — im Layout des richtigen Modus (Seitenleiste, Kopfleiste, Karten; Handy: Tab-Leiste + Neo-Knopf).
   Nur Design-Variablen aus tokens.css (--app-*).
   =========================================================================== */
#gacBoot{display:none}
html.gac-boot body > :not(#gacBoot){visibility:hidden!important}
html.gac-boot body{overflow:hidden}
html.gac-boot #gacBoot{display:grid;grid-template-columns:var(--app-leiste-b) 1fr;position:fixed;inset:0;z-index:2147483000;
  background:var(--app-grund);font-family:var(--app-font)}
#gacBoot .gb-leiste{display:flex;flex-direction:column;gap:2px;background:var(--app-leiste);padding:16px 12px max(16px,env(safe-area-inset-bottom))}
#gacBoot .gb-logo{display:block;height:44px;width:auto;margin:0 8px 14px;align-self:flex-start}
#gacBoot .gb-haupt{display:flex;flex-direction:column;min-width:0;overflow:hidden}
#gacBoot .gb-kopf{display:flex;align-items:center;gap:8px;height:68px;padding:0 var(--app-rand);border-bottom:1px solid var(--app-linie);flex:none}
#gacBoot .gb-inhalt{display:flex;flex-direction:column;gap:20px;padding:36px var(--app-rand) 0;max-width:1180px;width:100%}
#gacBoot .gb-tabs,#gacBoot .gb-fab,#gacBoot .gb-handy-logo{display:none}
/* Bausteine */
#gacBoot i{display:block;font-style:normal;border-radius:var(--app-r-feld);background:var(--n200)}
#gacBoot .gb-leiste i{background:color-mix(in srgb,var(--n0) 9%,transparent)}
#gacBoot .gb-leiste .gb-ni{height:20px;margin:12px 12px;border-radius:6px;width:62%}
#gacBoot .gb-leiste .gb-ni:nth-of-type(2n){width:48%}
#gacBoot .gb-leiste .gb-feld{height:52px;margin-bottom:10px;background:transparent;border:1px solid var(--app-leiste-rand)}
#gacBoot .gb-leiste .gb-neu{height:44px;margin:4px 0 12px;background:transparent;border:1px solid var(--app-leiste-rand)}
#gacBoot .gb-leiste .gb-sec{height:10px;width:46%;margin:22px 12px 6px;border-radius:4px}
#gacBoot .gb-leiste .gb-grow{flex:1;background:none}
#gacBoot .gb-leiste .gb-seg{height:48px;background:transparent;border:1px solid var(--app-leiste-rand)}
#gacBoot .gb-pill{height:34px;width:200px;border-radius:var(--app-r-feld);background:var(--app-hell-2)}
#gacBoot .gb-steuer{height:44px;width:160px;background:var(--app-karte);border:1px solid var(--app-linie)}
#gacBoot .gb-neo{height:44px;width:160px;margin-left:auto;border-radius:var(--app-r-chip);background:var(--app-primary);opacity:.9}
#gacBoot .gb-h1{height:40px;width:min(320px,60%)}
#gacBoot .gb-zeile{display:flex;gap:12px;flex-wrap:wrap}
#gacBoot .gb-zeile i{height:44px;width:240px;background:var(--app-karte);border:1px solid var(--app-linie)}
#gacBoot .gb-karte{height:250px;border-radius:var(--app-r-karte);background:var(--app-karte);border:1px solid var(--app-linie);box-shadow:var(--app-sh)}
#gacBoot .gb-karte.gb-k2{height:300px}
#gacBoot .gb-unter{height:16px;width:min(420px,70%);border-radius:6px}
/* Modus: Experte hat die Steuerleiste oben und eine längere Überschrift; Einfach die Auswahl-Zeile */
html[data-modus="easy"] #gacBoot .gb-steuer,html[data-modus="easy"] #gacBoot .gb-xp{display:none}
html[data-modus="experte"] #gacBoot .gb-ez{display:none}
html[data-modus="experte"] #gacBoot .gb-h1{width:min(640px,80%)}
html:not([data-vorschau]) #gacBoot .gb-pill,html:not([data-vorschau]) #gacBoot .gb-feld{display:none}
/* sanftes Pulsieren (aus bei „weniger Bewegung“) */
@keyframes gbPuls{50%{opacity:.55}}
#gacBoot .gb-haupt i,#gacBoot .gb-leiste .gb-ni,#gacBoot .gb-leiste .gb-sec{animation:gbPuls 1.4s ease-in-out infinite}
#gacBoot .gb-neo{animation:none}
@media (prefers-reduced-motion:reduce){#gacBoot *{animation:none!important}}
/* Handy: keine Seitenleiste, Logo oben, Tab-Leiste unten + runder Neo-Knopf (wie die fertige Ansicht) */
@media (max-width:900px){
  html.gac-boot #gacBoot{grid-template-columns:1fr}
  #gacBoot .gb-leiste{display:none}
  #gacBoot .gb-kopf{height:auto;min-height:68px;padding:10px 16px;border-bottom:0}
  #gacBoot .gb-handy-logo{display:block;height:40px;width:auto}
  #gacBoot .gb-steuer,#gacBoot .gb-neo{display:none}
  #gacBoot .gb-pill{margin-left:auto;width:180px}
  #gacBoot .gb-inhalt{padding:12px 16px 0;gap:16px}
  #gacBoot .gb-zeile{flex-direction:column}
  #gacBoot .gb-zeile i{width:100%}
  html[data-modus="experte"] #gacBoot .gb-xp-handy{display:block;height:48px;width:100%;margin:0 16px;width:calc(100% - 32px);background:var(--app-karte);border:1px solid var(--app-linie)}
  #gacBoot .gb-tabs{display:flex;justify-content:space-around;align-items:center;position:fixed;left:0;right:0;bottom:0;height:58px;
    padding-bottom:env(safe-area-inset-bottom);background:var(--app-karte);border-top:1px solid var(--app-linie)}
  #gacBoot .gb-tabs i{width:44px;height:30px;border-radius:8px}
  #gacBoot .gb-fab{display:block;position:fixed;right:16px;bottom:74px;width:60px;height:60px;border-radius:50%;background:var(--app-primary);opacity:.9}
}
#gacBoot .gb-xp-handy{display:none}

/* Run AB B4: Konto-Power immer 30 Tage — sichtbar beschriftet (beide Modi) */
.l2p-zr{font-size:12px;font-weight:500;color:var(--app-text-3);letter-spacing:0;text-transform:none;margin-left:6px}
.ez-pw-basis{font-size:13px;color:var(--app-text-3);margin:-4px 0 8px}

/* Run AB A1: ältere Layout-Funde der Run-O-Prüfung */
#scoreBar .o-pw-a{display:flex;flex-direction:column;align-self:stretch}               /* Konto-Power: linke Spalte endet bündig mit der rechten */
#scoreBar .o-pw-a > .l2p-pot{margin-top:auto}
.kc-rows > .kc-row-voll{grid-column:1/-1}                               /* Konto-Check: Messung mit Website-Scan über die volle Breite */
.tst-wenig{margin:12px 0 0;padding:12px 16px;border-radius:var(--app-r-feld);background:var(--app-hell-2);
  color:var(--app-text-2);font-size:13px;line-height:1.5}
#histList .empty{padding:12px 16px}                                     /* 4-px-Skala statt 14 px */
@media (max-width:900px){#welcomeBox .welcome{padding:16px}}            /* Begrüßungsbox am Handy */
