/* Seitenrahmen: Kopf, Seitenleiste (ab 900 px), Leiste unten (darunter) */
.kopf {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 12px;
  min-height: 56px; padding: 8px var(--abstand);
  padding-top: max(8px, env(safe-area-inset-top));
  background: var(--flaeche); border-bottom: 1px solid var(--rand);
}
.marke { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1.1rem; color: var(--text); text-decoration: none; }
.marke svg { width: 26px; height: 26px; color: var(--akzent); }
.kopf-rechts { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.kopf-benutzer { color: var(--text-leise); font-size: 0.9rem; }
.zaehler {
  display: inline-flex; align-items: center; min-height: 36px; padding: 4px 12px;
  border-radius: 999px; background: var(--warnung-hg); color: var(--warnung);
  font-size: 0.875rem; font-weight: 600; text-decoration: none;
}

.rahmen { min-height: calc(100vh - 56px); }
.inhalt {
  width: 100%;
  max-width: 1100px; margin: 0 auto;
  padding: var(--abstand);
  padding-bottom: calc(var(--leiste-hoehe) + 24px + env(safe-area-inset-bottom));
}
.inhalt.offen { max-width: 420px; padding-top: 48px; }

.seitenleiste { display: none; }
.leiste {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: grid; grid-template-columns: repeat(5, 1fr);
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--flaeche); border-top: 1px solid var(--rand);
}
.leiste a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-height: var(--leiste-hoehe); color: var(--text-leise); text-decoration: none; font-size: 0.75rem;
}
.leiste a svg { width: 24px; height: 24px; }
.leiste a[aria-current="page"] { color: var(--akzent); font-weight: 600; }
.leiste a.gross span.kreis {
  display: flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; margin-top: -18px; border-radius: 50%;
  background: var(--akzent); color: var(--akzent-text); box-shadow: var(--schatten);
}

@media (min-width: 900px) {
  .rahmen { display: grid; grid-template-columns: var(--seitenleiste) 1fr; }
  .leiste { display: none; }
  .seitenleiste {
    display: block; position: sticky; top: 56px; align-self: start;
    height: calc(100vh - 56px); overflow-y: auto;
    padding: 12px 8px; border-right: 1px solid var(--rand); background: var(--flaeche);
  }
  .seitenleiste a {
    display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 8px 12px;
    border-radius: var(--radius-klein); color: var(--text); text-decoration: none;
  }
  .seitenleiste a svg { width: 20px; height: 20px; color: var(--text-leise); }
  .seitenleiste a:hover { background: var(--flaeche-2); }
  .seitenleiste a[aria-current="page"] { background: var(--akzent-hell); color: var(--akzent); font-weight: 600; }
  .seitenleiste a[aria-current="page"] svg { color: var(--akzent); }
  .seitenleiste hr { border: 0; border-top: 1px solid var(--rand); margin: 8px 4px; }
  .inhalt { padding: 24px 32px 48px; }
}

.banner {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px;
  padding: 10px var(--abstand); background: var(--warnung-hg); color: var(--warnung); font-weight: 600;
}
