/* rechnungen 2026-11-02 Europe/Berlin — „Meine Rechnungen“ (portal) + Ladepark-Kacheln (Startseite) + /park/{id}.
   Uses the premium tokens from theme-premium.css (--p-*). Mobile first. */

/* ---------- Portal sub navigation ---------- */
.cp-nav { display: flex; gap: 6px; padding: 4px; margin: 0 auto 2px; max-width: 44rem; width: 100%;
  background: rgba(255,255,255,.72); border: 1px solid var(--p-line, #E1E7E4); border-radius: 999px; box-shadow: var(--p-shadow-sm); }
.cp-nav a { flex: 1 1 0; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 14px;
  border-radius: 999px; font: 700 .95rem/1.1 var(--f-head, inherit); color: var(--p-muted, #5B6B66); text-decoration: none; white-space: nowrap; }
.cp-nav a svg { width: 18px; height: 18px; flex: none; }
.cp-nav a:hover { color: var(--p-ink, #0C1A17); background: rgba(244,246,245,.9); }
.cp-nav a[aria-current="page"] { background: var(--p-ink, #0C1A17); color: #fff; }
.cp-nav a:focus-visible { outline: none; box-shadow: var(--focus); }

/* ---------- Meine Rechnungen ---------- */
.rx-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.rx-head h1 { font-size: clamp(1.7rem, 7vw, 2.2rem); letter-spacing: -.04em; margin: 0; }
.rx-head p { margin: .35rem 0 0; color: var(--p-muted); }
.rx-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 1rem; }
.rx-stat { background: #F7F9F8; border: 1px solid var(--p-line); border-radius: var(--p-r-sm, 14px); padding: .65rem .75rem; min-width: 0; }
.rx-stat small { display: block; font: 700 .72rem/1.2 var(--f-body); letter-spacing: .05em; text-transform: uppercase; color: var(--p-muted); }
.rx-stat b { display: block; margin-top: .2rem; font: 800 1.05rem/1.2 var(--f-head); color: var(--p-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rx-month { margin: 1.4rem 0 .5rem; display: flex; justify-content: space-between; align-items: baseline; gap: .75rem;
  font: 800 .82rem/1.2 var(--f-body); letter-spacing: .06em; text-transform: uppercase; color: var(--p-muted); }
.rx-month:first-child { margin-top: .25rem; }
.rx-month span { font-weight: 700; letter-spacing: 0; text-transform: none; }
.rx-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rx-item { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; grid-template-areas: "thumb main amount" "act act act";
  gap: 10px 12px; align-items: start; padding: 12px; background: #fff; border: 1px solid var(--p-line); border-radius: var(--p-r-md, 16px);
  box-shadow: var(--p-shadow-sm); }
.rx-thumb { grid-area: thumb; width: 64px; height: 48px; border-radius: 10px; overflow: hidden; background: linear-gradient(135deg, #DDF5EC, #E3EDFE);
  display: grid; place-items: center; color: var(--p-pine); }
.rx-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rx-thumb svg { width: 24px; height: 24px; }
.rx-main { grid-area: main; min-width: 0; }
.rx-when { font: 800 .98rem/1.25 var(--f-head); color: var(--p-ink); }
.rx-where { margin-top: 2px; font-size: .9rem; color: var(--p-ink); overflow-wrap: anywhere; }
.rx-where span { color: var(--p-muted); }
.rx-evse { display: inline-block; margin-top: 4px; font: 500 .8rem/1.3 var(--f-mono); color: var(--p-muted); background: #F4F6F5;
  border-radius: 6px; padding: 1px 6px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rx-meta { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: .86rem; color: var(--p-muted); }
.rx-meta b { color: var(--p-ink); font-weight: 700; }
.rx-amount { grid-area: amount; text-align: right; font: 800 1.12rem/1.2 var(--f-head); color: var(--p-ink); white-space: nowrap; }
.rx-act { grid-area: act; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  padding-top: 10px; border-top: 1px dashed var(--p-line); }
.rx-badge { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 0 11px; border-radius: 999px;
  font: 700 .8rem/1 var(--f-body); white-space: nowrap; }
.rx-badge svg { width: 14px; height: 14px; }
.rx-badge.is-ok { background: var(--p-mint); color: var(--p-ok); }
.rx-badge.is-doc { background: var(--p-sky-bg); color: var(--p-sky-ink); }
.rx-badge.is-wait { background: var(--p-amber-bg); color: #7A4E08; }
.rx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 12px;
  font: 700 .92rem/1 var(--f-head); text-decoration: none; cursor: pointer; border: 1px solid var(--p-line); background: #fff; color: var(--p-ink); }
.rx-btn svg { width: 18px; height: 18px; }
.rx-btn:hover { background: #F8FAF9; border-color: #D3DCD8; }
.rx-btn.is-primary { background: linear-gradient(180deg, var(--p-pine-2), var(--p-pine)); border-color: var(--p-pine); color: #fff; }
.rx-btn.is-primary:hover { filter: brightness(1.06); }
.rx-btn[aria-busy="true"] { opacity: .65; pointer-events: none; }
.rx-btn:focus-visible { outline: none; box-shadow: var(--focus); }
.rx-note { font-size: .86rem; color: var(--p-muted); }
.rx-empty { text-align: center; padding: 2rem 1rem 1.5rem; }
.rx-empty-ico { width: 64px; height: 64px; margin: 0 auto .9rem; border-radius: 20px; display: grid; place-items: center;
  background: var(--p-mint); color: var(--p-pine); }
.rx-empty-ico svg { width: 32px; height: 32px; }
.rx-empty h2 { font-size: 1.2rem; margin: 0 0 .4rem; }
.rx-empty p { color: var(--p-muted); max-width: 30rem; margin: 0 auto 1.1rem; }
.rx-skel { height: 92px; border-radius: var(--p-r-md, 16px); background: linear-gradient(90deg, #EEF2F0 25%, #F7F9F8 50%, #EEF2F0 75%);
  background-size: 200% 100%; animation: rx-sh 1.2s infinite linear; }
@keyframes rx-sh { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .rx-skel { animation: none; } }
.rx-msg { margin-top: .75rem; padding: .7rem .9rem; border-radius: 12px; background: #F4F6F5; font-size: .9rem; }
.rx-msg:empty { display: none; }
@media (min-width: 720px) {
  .rx-item { grid-template-columns: 96px minmax(0, 1fr) auto auto; grid-template-areas: "thumb main amount act"; align-items: center; padding: 14px 16px; gap: 16px; }
  .rx-thumb { width: 96px; height: 72px; border-radius: 12px; }
  .rx-act { border-top: 0; padding-top: 0; flex-direction: column; align-items: flex-end; justify-content: center; min-width: 11.5rem; }
  .rx-stat b { font-size: 1.2rem; }
}
@media (max-width: 380px) { .rx-stats { grid-template-columns: 1fr 1fr; } .rx-stats .rx-stat:last-child { grid-column: 1 / -1; } }

/* ---------- Startseite: Ladepark-Kacheln ---------- */
.park-tiles { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .park-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .park-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.park-tile { position: relative; display: block; height: 100%; border-radius: var(--p-r, 22px); overflow: hidden; background: #fff; text-decoration: none;
  color: var(--p-ink); border: 1px solid var(--p-line); box-shadow: var(--p-shadow); transition: transform .18s ease, box-shadow .18s ease; }
.park-tile:hover { transform: translateY(-2px); box-shadow: 0 1px 2px rgba(12,26,23,.05), 0 18px 48px -14px rgba(12,26,23,.24); }
.park-tile:focus-visible { outline: none; box-shadow: var(--focus); }
.park-tile-media { position: relative; aspect-ratio: 4 / 3; background: linear-gradient(135deg, #DDF5EC, #E3EDFE); overflow: hidden; }
.park-tile-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.park-tile:hover .park-tile-media img { transform: scale(1.03); }
.park-tile-ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--p-pine); }
.park-tile-ph svg { width: 56px; height: 56px; opacity: .7; }
.park-tile-chip { position: absolute; left: 12px; top: 12px; display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 0 11px;
  border-radius: 999px; background: rgba(255,255,255,.92); font: 700 .78rem/1 var(--f-body); color: var(--p-ink); box-shadow: 0 4px 14px -6px rgba(0,0,0,.35); }
.park-tile-chip i { width: 8px; height: 8px; border-radius: 50%; background: #9AA6A2; }
.park-tile-chip.is-free i { background: #15A06B; }
.park-tile-body { padding: 14px 16px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.park-tile-name { font: 800 1.12rem/1.2 var(--f-head); margin: 0; letter-spacing: -.02em; }
.park-tile-place { margin: 3px 0 0; color: var(--p-muted); font-size: .92rem; }
.park-tile-go { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--p-ink); color: #fff; }
.park-tile-go svg { width: 20px; height: 20px; }

/* ---------- /park/{id} ---------- */
.pk-hero { position: relative; border-radius: var(--p-r, 22px); overflow: hidden; background: linear-gradient(135deg, #DDF5EC, #E3EDFE);
  aspect-ratio: 4 / 3; box-shadow: var(--p-shadow); }
@media (min-width: 900px) { .pk-hero { aspect-ratio: 16 / 9; } }
.pk-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pk-grid { display: grid; gap: 18px; margin-top: 18px; }
@media (min-width: 900px) { .pk-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: start; } }
.pk-title { font-size: clamp(1.8rem, 7vw, 2.6rem); letter-spacing: -.04em; margin: .2rem 0 .3rem; }
.pk-addr { font-style: normal; color: var(--p-ink); line-height: 1.5; }
.pk-links { margin-top: .6rem; display: flex; flex-wrap: wrap; gap: 8px; }
.pk-gallery { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.pk-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; display: block; }
.pk-back { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 12px; font-weight: 700; color: var(--p-pine); text-decoration: none; min-height: 44px; }
.pk-404 { text-align: center; padding: 3rem 1rem; }
