/* Ladeportal hdgroup-eCharge: nur, was ho-base.css nicht hat. Für das Handy
   gebaut (eine Spalte, Navigation unten), auf breiten Bildschirmen zentriert.
   Werte ausschließlich aus den Tokens. */

body { padding-bottom: calc(4.5rem + env(safe-area-inset-bottom, 0px)); }
.site-header { padding-block: var(--ho-space-3); }
.portal-inhalt {
  width: 100%;
  max-width: 640px;
  margin-inline: auto;
  padding: var(--ho-space-4) var(--ho-space-4) var(--ho-space-7);
  display: grid;
  gap: var(--ho-space-5);
}
#ansicht { display: grid; gap: var(--ho-space-5); }
.portal-inhalt h1 { font-size: var(--ho-text-2xl); letter-spacing: var(--ho-tracking-display); line-height: var(--ho-leading-tight); }

/* Navigation unten, wie in einer App */
.portal-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--ho-z-sticky);
  display: grid; grid-template-columns: repeat(5, 1fr);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: var(--ho-surface); border-top: 1px solid var(--ho-border);
}
.portal-nav[hidden] { display: none; }
.portal-nav a {
  display: grid; justify-items: center; gap: 2px; padding: var(--ho-space-2) var(--ho-space-1);
  font-size: var(--ho-text-xs); color: var(--ho-text-dim); text-decoration: none;
}
.portal-nav a[aria-current] { color: var(--ho-link); font-weight: var(--ho-weight-semibold); }

/* Live-Ladung */
.live { display: grid; justify-items: center; gap: var(--ho-space-2); text-align: center; }
.live__wert { font-size: var(--ho-text-4xl); font-weight: var(--ho-weight-display); letter-spacing: var(--ho-tracking-display); line-height: 1; font-variant-numeric: tabular-nums; }
.mini { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--ho-space-2); }
.mini > div { display: grid; padding: var(--ho-space-2) var(--ho-space-3); border: 1px solid var(--ho-border); border-radius: var(--ho-radius-lg); background: var(--ho-card); }
.mini small { font-size: var(--ho-text-xs); color: var(--ho-text-dim); }
.mini b { font-size: var(--ho-text-lg); font-variant-numeric: tabular-nums; }
.kurve { position: relative; height: 90px; }
.kurve svg { position: absolute; inset: 0; width: 100%; height: 100%; }

.liste { display: grid; }
.liste > a, .liste > div {
  display: grid; grid-template-columns: minmax(0, 1fr) max-content; gap: var(--ho-space-1) var(--ho-space-3);
  padding-block: var(--ho-space-3); border-bottom: 1px solid var(--ho-border); color: inherit; text-decoration: none;
}
.liste > :last-child { border-bottom: 0; }
.werte { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: var(--ho-space-2) var(--ho-space-4); }
.werte dt { color: var(--ho-text-dim); }
.werte dd { overflow-wrap: anywhere; }

.code-eingabe { font-family: var(--ho-font-mono); font-size: var(--ho-text-xl); letter-spacing: .3em; text-align: center; }
.qr { justify-self: center; width: 200px; height: 200px; padding: var(--ho-space-2); background: #fff; border-radius: var(--ho-radius-md); }
.geheimnis { font-family: var(--ho-font-mono); overflow-wrap: anywhere; }
.mitte { display: grid; justify-items: center; text-align: center; gap: var(--ho-space-2); }
.mitte img { width: 56px; height: 56px; }
