/* Powerbank24 – Verleih-App: Tabs, Scan-Knopf, Karte
   Automatisch aus dem Designsystem aufgeteilt. Farben & Masse stehen in core.css. */

.pb-app {
  max-width: 520px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--pb-paper);
  padding-bottom: 78px;
  box-shadow: 0 0 60px -20px rgba(7, 20, 15, .2);
}
.pb-app__head {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .85rem 1rem;
  background: var(--pb-night);
  color: var(--pb-glow);
}

.pb-app__tabs {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 100%;
  max-width: 520px;
  z-index: 40;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--pb-line);
  padding-bottom: env(safe-area-inset-bottom);
}
.pb-app__tabs a {
  display: grid;
  place-items: center;
  gap: 2px;
  padding: .6rem 0 .65rem;
  font-size: .68rem;
  font-weight: 600;
  color: var(--pb-muted);
  text-decoration: none;
  transition: color .16s var(--ease);
}
.pb-app__tabs a i { font-size: 1.2rem; }
.pb-app__tabs a.is-active { color: var(--pb-lime-dim); }

/* Der Scanknopf — bewusst gross, er ist die Hauptgeste in der App */
.pb-app__scan {
  width: 88px; height: 88px;
  place-items: center;
  border-radius: 50%;
  background: var(--pb-night);
  color: var(--pb-lime);
  font-size: 2.1rem;
  text-decoration: none;
  box-shadow: var(--sh-lg);
  position: relative;
  transition: transform .18s var(--ease);
}
.pb-app__scan:hover { transform: scale(1.04); }
.pb-app__scan::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid var(--pb-lime);
  opacity: 0;
  animation: pb-scan 2.4s var(--ease) infinite;
}
@keyframes pb-scan {
  0%   { transform: scale(.9);   opacity: .6; }
  70%  { transform: scale(1.22); opacity: 0; }
  100% { opacity: 0; }
}

.pb-map, #pb-map { height: 320px; border-radius: var(--r-md); overflow: hidden; box-shadow: var(--sh-md); }
/* ============================================================
   VOLLBILD-APP  –  Karte, Bottom-Sheet, Seitenmenü, QR-Knopf
   ============================================================ */
.pb-appbody { margin: 0; overflow: hidden; height: 100vh; background: var(--pb-night); }
#pb-map { position: fixed; inset: 0; height: 100vh; width: 100vw; z-index: 1; background: #e5e7e3; }

/* Kartenpin */
.pb-pin {
  width: 40px; height: 40px; border-radius: 50% 50% 50% 3px;
  transform: rotate(-45deg);
  background: var(--pb-night);
  border: 2px solid var(--pb-lime);
  display: grid; place-items: center;
  box-shadow: 0 6px 14px -4px rgba(0,0,0,.5);
}
.pb-pin span { transform: rotate(45deg); color: var(--pb-lime); font-size: 18px; }
.pb-pin--off { border-color: #9aa; opacity: .8; }
.pb-pin--off span { color: #9aa; }

/* Schwebende Kopfleiste */
.pb-appbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; align-items: center; gap: .6rem;
  padding: calc(env(safe-area-inset-top) + .7rem) .9rem .7rem;
}
.pb-appbar__logo {
  margin: 0 auto;
  background: var(--pb-night); color: #fff;
  font-family: var(--f-display); font-weight: 900; font-size: 1rem; letter-spacing: -.02em;
  padding: .5rem 1rem; border-radius: 999px;
  box-shadow: var(--sh-md);
}
.pb-appbar__logo sup { color: var(--pb-lime); font-size: .6em; }
.pb-fab {
  width: 46px; height: 46px; flex: none;
  border: 0; border-radius: 50%;
  background: var(--pb-night); color: var(--pb-lime);
  font-size: 1.3rem; display: grid; place-items: center;
  box-shadow: var(--sh-md); cursor: pointer;
}
.pb-fab:active { transform: scale(.94); }

/* Untere Leiste + großer Scan-Knopf */
.pb-appfoot {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(env(safe-area-inset-bottom) + 1rem);
  z-index: 20;
  display: flex; align-items: center; gap: .5rem;
  background: var(--pb-night);
  border-radius: 999px;
  padding: .4rem .5rem;
  box-shadow: var(--sh-lg);
}
.pb-appfoot__side {
  display: grid; place-items: center; gap: 1px;
  min-width: 74px; padding: .5rem .3rem;
  border: 0; background: transparent;
  color: var(--pb-glow); text-decoration: none;
  font-size: .72rem; font-weight: 600; cursor: pointer;
}
.pb-appfoot__side i { font-size: 1.2rem; }
.pb-scanbtn {
  display: grid; place-items: center; gap: 1px;
  width: 78px; height: 78px; margin: -22px .2rem 0;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--pb-lime), var(--pb-lime-dim));
  color: var(--pb-night); text-decoration: none;
  font-size: 1.9rem; font-weight: 700;
  box-shadow: 0 8px 22px -6px rgba(90,209,106,.7);
}
.pb-scanbtn span { font-size: .66rem; margin-top: -4px; }
.pb-scanbtn:active { transform: scale(.95); }

/* Stationsdetail (Bottom-Sheet) */
.pb-sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  background: #fff; color: var(--pb-ink);
  border-radius: 22px 22px 0 0;
  padding: .6rem 1.2rem calc(env(safe-area-inset-bottom) + 1.2rem);
  box-shadow: 0 -10px 40px -12px rgba(0,0,0,.4);
  transform: translateY(110%);
  transition: transform .3s var(--ease);
  max-width: 560px; margin: 0 auto;
}
.pb-sheet.is-open { transform: none; }
.pb-sheet__grip { position: relative; height: 24px; margin: 0 auto .4rem; cursor: grab; touch-action: none; }
.pb-sheet__grip::before { content: ''; position: absolute; top: 9px; left: 50%; transform: translateX(-50%); width: 46px; height: 5px; border-radius: 3px; background: #ccc; }
.pb-sheet__grip:active { cursor: grabbing; }
.pb-sheet.is-expanded { max-height: 90vh; overflow-y: auto; }
.pb-sheet__head { display: flex; align-items: center; }
.pb-sheet__art { font-size: .82rem; color: var(--pb-muted); text-transform: capitalize; }
.pb-sheet__x { margin-left: auto; border: 0; background: #f0f2f0; width: 32px; height: 32px; border-radius: 50%; color: #555; }
.pb-sheet__name { font-size: 1.5rem; margin: .1rem 0 .8rem; color: var(--pb-night); }
.pb-sheet__row { display: flex; gap: .6rem; align-items: flex-start; color: #444; font-size: .95rem; margin-bottom: .5rem; }
.pb-sheet__row i { color: var(--pb-lime-dim); margin-top: .15rem; }
.pb-sheet__box { background: #f4f7f3; border-radius: 16px; padding: 1rem 1.1rem; margin: .8rem 0 1rem; display: grid; gap: .7rem; }
.pb-sheet__stat { display: flex; align-items: center; gap: .6rem; font-size: 1.05rem; font-weight: 700; color: #7c8a7c; }
.pb-sheet__stat.on { color: var(--pb-lime-deep); }
.pb-sheet__stat i { font-size: 1.2rem; }
.pb-sheet__go { width: 100%; justify-content: center; font-size: 1.1rem; padding: .9rem; }

/* Seitenmenü */
.pb-drawer { position: fixed; inset: 0; z-index: 40; pointer-events: none; }
.pb-drawer__backdrop { position: absolute; inset: 0; z-index: 1; background: rgba(0,0,0,.4); opacity: 0; transition: opacity .3s; }
.pb-drawer__panel {
  position: absolute; top: 0; left: 0; bottom: 0; z-index: 2; width: 84%; max-width: 340px;
  background: linear-gradient(160deg, var(--pb-lime), var(--pb-glow) 70%, #eaf6e0);
  padding: calc(env(safe-area-inset-top) + 1.2rem) 1.4rem 1.4rem;
  transform: translateX(-100%); transition: transform .3s var(--ease);
  display: flex; flex-direction: column; overflow-y: auto;
}
.pb-drawer.is-open { pointer-events: auto; }
.pb-drawer.is-open .pb-drawer__backdrop { opacity: 1; }
.pb-drawer.is-open .pb-drawer__panel { transform: none; }
.pb-drawer__close { background: rgba(255,255,255,.5); color: var(--pb-night); margin-bottom: 1rem; }
.pb-drawer__profile { display: flex; align-items: center; gap: .9rem; margin-bottom: 1.6rem; }
.pb-drawer__profile .pb-avatar { width: 64px; height: 64px; margin: 0; font-size: 1.5rem; box-shadow: 0 4px 12px rgba(0,0,0,.2); }
.pb-drawer__name { font-family: var(--f-display); font-weight: 900; font-size: 1.5rem; color: var(--pb-night); line-height: 1.1; }
.pb-drawer__edit { color: rgba(7,20,15,.7); text-decoration: none; font-size: .9rem; }
.pb-drawer__nav { display: flex; flex-direction: column; gap: .2rem; }
.pb-drawer__nav a {
  display: flex; align-items: center; gap: .9rem;
  padding: .7rem .3rem; color: var(--pb-night); text-decoration: none;
  font-size: 1.1rem; font-weight: 600;
}
.pb-drawer__nav a i { font-size: 1.25rem; width: 26px; }
.pb-drawer__sep { height: 1px; background: rgba(7,20,15,.15); margin: .5rem 0; }
.pb-drawer__promo {
  margin-top: auto; display: block;
  background: var(--pb-night); border-radius: 16px; padding: 1rem 1.1rem;
  text-decoration: none;
}
.pb-drawer__promo strong { display: block; color: var(--pb-lime); font-family: var(--f-display); letter-spacing: .04em; margin-bottom: .3rem; }
.pb-drawer__promo span { color: var(--pb-glow); font-size: .88rem; }
.pb-drawer__ver { text-align: center; color: rgba(7,20,15,.55); font-family: var(--f-mono); font-size: .72rem; margin-top: 1rem; }

/* Leaflet-Steuerung ausblenden (eigene Bedienung) */
.leaflet-control-attribution { display: none; }

/* ============================================================
   QR-SCAN-SCREEN
   ============================================================ */
.pb-scanbody { margin: 0; height: 100vh; overflow: hidden; background: #0a0d0a; }
.pb-scan { position: fixed; inset: 0; display: flex; flex-direction: column; align-items: center;
  padding: calc(env(safe-area-inset-top) + 1rem) 1.2rem calc(env(safe-area-inset-bottom) + 2rem); color: #fff; }
.pb-scan__top { width: 100%; display: flex; align-items: center; justify-content: space-between; }
.pb-scan__manual { background: transparent; border: 0; color: #fff; font-size: 1.15rem; font-weight: 600; }
.pb-scan__hint { text-align: center; margin: 1.2rem 0 0; font-size: 1.05rem; max-width: 320px; color: #eef; }
.pb-scan__stage { position: relative; width: 250px; height: 250px; margin: auto; border-radius: 24px; overflow: hidden; background: #15121a; }
.pb-scan__stage video { width: 100%; height: 100%; object-fit: cover; }
.pb-scan__frame { position: absolute; inset: 0; border: 3px solid var(--pb-lime); border-radius: 24px;
  box-shadow: 0 0 0 100vmax rgba(0,0,0,.45); }
.pb-scan__laser { position: absolute; left: 8%; right: 8%; height: 2px; background: var(--pb-lime);
  box-shadow: 0 0 12px 2px var(--pb-lime); animation: pbLaser 2.2s ease-in-out infinite; }
@keyframes pbLaser { 0%,100% { top: 12%; } 50% { top: 86%; } }
.pb-scan__light { margin: auto auto 0; display: grid; justify-items: center; gap: .4rem;
  background: transparent; border: 0; color: #fff; font-size: 1rem; font-weight: 600; }
.pb-scan__light .ico { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: var(--pb-lime); color: var(--pb-night); font-size: 1.5rem; }
.pb-scan__light.is-on .ico { background: #fff; }
.pb-scan__form { width: 100%; max-width: 360px; margin-top: 1rem; display: grid; gap: .6rem;
  background: rgba(255,255,255,.06); padding: 1.1rem; border-radius: 18px; }
.pb-scan__form label { font-size: .85rem; color: #bcd; }
.pb-scan__form input { padding: .85rem 1rem; border-radius: 12px; border: 1px solid rgba(255,255,255,.2);
  background: #0a0d0a; color: #fff; font-size: 1rem; text-align: center; letter-spacing: .05em; }
.pb-scan__err { color: #ff8a8a; font-size: .85rem; margin: 0; }

/* ============================================================
   ONBOARDING-SLIDES
   ============================================================ */
.pb-obbody { margin: 0; height: 100vh; overflow: hidden; background: var(--pb-night); }
.pb-ob { position: fixed; inset: 0; display: flex; flex-direction: column;
  padding: calc(env(safe-area-inset-top) + 1rem) 0 calc(env(safe-area-inset-bottom) + 2rem); color: #fff; }
.pb-ob__top { display: flex; justify-content: flex-end; padding: 0 1.4rem; }
.pb-ob__skip { color: var(--pb-lime); text-decoration: none; font-weight: 700; letter-spacing: .03em; }
.pb-ob__track { flex: 1; display: flex; transition: transform .35s var(--ease); }
.pb-ob__slide { min-width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 1rem 2rem; gap: 1rem; }
.pb-ob__art { width: 150px; height: 150px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(90,209,106,.12); color: var(--pb-lime); font-size: 4rem; margin-bottom: 1rem; }
.pb-ob__slide h1 { font-size: 1.7rem; }
.pb-ob__slide p { color: var(--pb-muted-dark); max-width: 340px; font-size: 1.05rem; }
.pb-ob__dots { display: flex; gap: .5rem; justify-content: center; margin: 1rem 0; }
.pb-ob__dots span { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.25); transition: .3s; }
.pb-ob__dots span.is-active { background: var(--pb-lime); width: 26px; border-radius: 5px; }
.pb-ob__next { margin: 0 1.4rem; justify-content: center; font-size: 1.1rem; padding: .95rem; }

/* ============================================================
   APP-HÜLLE (Unterseiten)  –  moderner Kopf + Navigationsleiste
   ============================================================ */
.pb-shellbody { margin: 0; background: var(--pb-paper); }
.pb-shell { max-width: 560px; margin: 0 auto; min-height: 100vh;
  display: flex; flex-direction: column; background: var(--pb-paper); }

/* Kopf: Zurück · Titel · Scan */
.pb-apptop {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: .6rem;
  padding: calc(env(safe-area-inset-top) + .8rem) 1rem .8rem;
  background: var(--pb-night); color: #fff;
}
.pb-apptop__title { flex: 1; text-align: center; font-family: var(--f-display);
  font-weight: 800; font-size: 1.1rem; }
.pb-apptop__btn {
  width: 42px; height: 42px; flex: none;
  display: grid; place-items: center; border-radius: 50%;
  background: rgba(255,255,255,.1); color: var(--pb-lime);
  font-size: 1.2rem; text-decoration: none;
}
.pb-apptop__btn:active { transform: scale(.94); }

/* Inhalt scrollt, Platz für die untere Leiste */
.pb-shell__main { flex: 1; padding: 1.1rem 1.1rem calc(env(safe-area-inset-bottom) + 96px); }

/* Untere Navigationsleiste – schwebend, mit grünem Mieten-Knopf in der Mitte */
.pb-appnav {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(env(safe-area-inset-bottom) + .5rem);
  z-index: 40; width: min(520px, calc(100% - 1.2rem));
  display: flex; align-items: center; justify-content: space-around;
  background: var(--pb-night); border-radius: 999px;
  padding: .2rem .3rem; box-shadow: var(--sh-lg);
}
.pb-appnav__item {
  flex: 1; display: grid; place-items: center; gap: 0;
  padding: .35rem .15rem; text-decoration: none;
  color: rgba(245,249,245,.65); font-size: .62rem; font-weight: 600;
}
.pb-appnav__item i { font-size: 1.05rem; }
.pb-appnav__item.is-active { color: var(--pb-lime); }
.pb-appnav__item:active { transform: scale(.95); }
.pb-appnav__scan {
  flex: none !important; width: 56px; height: 56px; margin-top: -24px; border-radius: 50%;
  background: linear-gradient(145deg, var(--pb-lime), var(--pb-lime-dim));
  color: var(--pb-night) !important; box-shadow: 0 8px 20px -6px rgba(90,209,106,.7);
  display: flex !important; align-items: center; justify-content: center; flex-direction: column;
  padding: 0 !important;
}
.pb-appnav__scan i { font-size: 1.4rem; }
.pb-appnav__scan span { font-size: .55rem; margin-top: -2px; }

.pb-scan__nocam { color: #ffd27a; font-size: .85rem; text-align: center; max-width: 320px; margin: .8rem auto 0; }


/* Prominentes Automaten-Icon in der Detailkarte */
.pb-sheet__x { position: absolute; top: 1rem; right: 1.1rem; z-index: 2; border: 0; background: #f0f2f0; width: 34px; height: 34px; border-radius: 50%; color: #555; }
.pb-sheet__top { display: flex; align-items: center; gap: 1rem; margin: .2rem 0 .4rem; }
.pb-sheet__preview {
  flex: none; width: 92px; height: 108px;
  background: #f4f7f3; border-radius: 16px;
  overflow: hidden; position: relative;
}
.pb-sheet__preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pb-sheet__titles { min-width: 0; }
.pb-sheet__top .pb-sheet__art { display: block; }
.pb-sheet__top .pb-sheet__name { margin: .15rem 0 0; }


/* Schwebendes Automaten-Typ-Icon ueber der Detailkarte (wie voozaa) */
.pb-sheet__float {
  position: absolute; top: -74px; right: 22px; z-index: 3;
  width: 92px; height: 104px; object-fit: contain;
  filter: drop-shadow(0 10px 16px rgba(0,0,0,.4));
  pointer-events: none;
}
/* Platzhalter, wenn der Host noch kein Bild hat */
.pb-sheet__noimg { position: absolute; inset: 0; display: grid; place-items: center; color: #9aa; font-size: 2rem; }

/* ============================================================
   Hell / Dunkel für die App
   - data-theme="dark": ausdrücklich dunkel
   - ohne data-theme + System dunkel: automatisch dunkel
   ============================================================ */
html[data-theme="dark"] {
  --pb-paper:      #0B0F0B;
  --pb-paper-2:    #0F150F;
  --pb-white:      #131A13;
  --pb-ink:        #E9EFE9;
  --pb-muted:      #93A093;
  --pb-line:       #263026;
}
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) {
    --pb-paper:      #0B0F0B;
    --pb-paper-2:    #0F150F;
    --pb-white:      #131A13;
    --pb-ink:        #E9EFE9;
    --pb-muted:      #93A093;
    --pb-line:       #263026;
  }
}
/* App-Schatten im Dunkeln dezenter */
html[data-theme="dark"] .pb-app { box-shadow: none; }

/* Einstellungs-Bausteine */
.pb-setrow { display: flex; align-items: center; gap: .8rem; padding: .9rem 0; border-bottom: 1px solid var(--pb-line); }
.pb-setrow:last-child { border-bottom: 0; }
.pb-setrow__ico { width: 38px; height: 38px; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; border-radius: 10px; background: var(--pb-paper-2); color: var(--pb-lime); font-size: 1.1rem; }
.pb-setrow__main { flex: 1; min-width: 0; }
.pb-setrow__main b { display: block; font-size: .92rem; }
.pb-setrow__main small { color: var(--pb-muted); font-size: .78rem; }
.pb-setrow__act { flex: 0 0 auto; }

/* Theme-Auswahl (Segmente) */
.pb-themeseg { display: flex; gap: .3rem; background: var(--pb-paper-2); border-radius: 10px; padding: .25rem; }
.pb-themeseg button { flex: 1; border: 0; background: transparent; color: var(--pb-muted); padding: .5rem .3rem; border-radius: 8px; font-size: .8rem; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: .3rem; }
.pb-themeseg button.is-active { background: var(--pb-white); color: var(--pb-ink); box-shadow: 0 1px 3px rgba(0,0,0,.15); }

/* Empfehlungs-Box */
.pb-refbox { background: var(--pb-paper-2); border: 1px dashed var(--pb-lime); border-radius: 12px; padding: 1rem; text-align: center; }
.pb-refcode { font-family: var(--pb-mono, monospace); font-size: 1.5rem; font-weight: 700; letter-spacing: .08em; color: var(--pb-lime); }

/* Karten-Titel in der App */
.pb-card__title { font-size: 1rem; font-weight: 700; margin: 0 0 .8rem; display: flex; align-items: center; gap: .5rem; color: var(--pb-ink); }
.pb-card__title i { color: var(--pb-lime); }

/* Modal/Popup in der App */
.pb-modal { position: fixed; inset: 0; z-index: 1200; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.pb-modal[hidden] { display: none; }
.pb-modal__backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.6); backdrop-filter: blur(3px); }
.pb-modal__box { position: relative; z-index: 1; width: 100%; max-width: 420px; background: var(--pb-white); border: 1px solid var(--pb-line); border-radius: 18px; box-shadow: 0 20px 60px rgba(0,0,0,.5); overflow: hidden; }
.pb-modal__head { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.2rem; border-bottom: 1px solid var(--pb-line); }
.pb-modal__head h2 { margin: 0; font-size: 1.05rem; }
.pb-modal__x { background: transparent; border: 0; color: var(--pb-muted); font-size: 1.1rem; cursor: pointer; padding: .3rem; border-radius: 6px; }
.pb-modal__x:hover { color: var(--pb-ink); }
.pb-modal__body { padding: 1.2rem; }

@keyframes pb-blink { 0%,100% { opacity:1; } 50% { opacity:.3; } }

/* ============================================================
   Dark-Mode-Korrekturen: Texte die --pb-night nutzen muessen
   im Dark-Mode auf --pb-ink (hell) umschalten, sonst unsichtbar.
   ============================================================ */
html[data-theme="dark"] .pb-figure strong,
html[data-theme="dark"] .pb-field > label,
html[data-theme="dark"] .pb-card h3,
html[data-theme="dark"] .pb-card p,
html[data-theme="dark"] .pb-card,
html[data-theme="dark"] .pb-card__num,
html[data-theme="dark"] .alert-info { color: var(--pb-ink); }

html[data-theme="dark"] .pb-figure > span:first-child { color: var(--pb-muted); }
html[data-theme="dark"] .pb-card p { color: var(--pb-muted); }

/* Auch automatisch nach System-Einstellung */
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .pb-figure strong,
  html:not([data-theme="light"]) .pb-field > label,
  html:not([data-theme="light"]) .pb-card h3,
  html:not([data-theme="light"]) .pb-card,
  html:not([data-theme="light"]) .pb-card__num,
  html:not([data-theme="light"]) .alert-info { color: var(--pb-ink); }

  html:not([data-theme="light"]) .pb-figure > span:first-child { color: var(--pb-muted); }
  html:not([data-theme="light"]) .pb-card p { color: var(--pb-muted); }
}

/* Ghost-Buttons in der App: im Dark-Mode helle Schrift */
html[data-theme="dark"] .pb-btn--ghost { color: var(--pb-ink); }
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .pb-btn--ghost { color: var(--pb-ink); }
}

/* Input-Felder im Dark-Mode */
html[data-theme="dark"] .pb-input,
html[data-theme="dark"] .pb-select,
html[data-theme="dark"] .pb-textarea { background: var(--pb-paper-2); color: var(--pb-ink); border-color: var(--pb-line); }
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .pb-input,
  html:not([data-theme="light"]) .pb-select,
  html:not([data-theme="light"]) .pb-textarea { background: var(--pb-paper-2); color: var(--pb-ink); border-color: var(--pb-line); }
}

/* Umfassender Dark-Mode-Fix fuer alle App-Texte */
html[data-theme="dark"] .pb-shell,
html[data-theme="dark"] .pb-shellbody,
html[data-theme="dark"] .pb-app__body,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] .pb-mono,
html[data-theme="dark"] .pb-card .d-flex div,
html[data-theme="dark"] .pb-badge--ok { color: var(--pb-ink); }
html[data-theme="dark"] .pb-badge--ok { background: rgba(90,209,106,.15); color: #a5d66b; }
html[data-theme="dark"] .pb-badge--bad { background: rgba(229,72,77,.15); color: #ff8a8d; }
html[data-theme="dark"] .pb-badge--warn { background: rgba(255,176,32,.15); color: #ffb840; }
html[data-theme="dark"] .pb-badge--neutral { background: rgba(200,230,160,.08); color: var(--pb-muted); }
html[data-theme="dark"] .pb-modal__box { background: var(--pb-white); color: var(--pb-ink); }
html[data-theme="dark"] .pb-modal__head { border-color: var(--pb-line); }
html[data-theme="dark"] .pb-modal__head h2 { color: var(--pb-ink); }

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .pb-shell,
  html:not([data-theme="light"]) .pb-shellbody,
  html:not([data-theme="light"]) .pb-app__body,
  html:not([data-theme="light"]) h2,
  html:not([data-theme="light"]) h3,
  html:not([data-theme="light"]) .pb-mono,
  html:not([data-theme="light"]) .pb-card .d-flex div { color: var(--pb-ink); }
  html:not([data-theme="light"]) .pb-badge--ok { background: rgba(90,209,106,.15); color: #a5d66b; }
  html:not([data-theme="light"]) .pb-badge--bad { background: rgba(229,72,77,.15); color: #ff8a8d; }
  html:not([data-theme="light"]) .pb-badge--warn { background: rgba(255,176,32,.15); color: #ffb840; }
  html:not([data-theme="light"]) .pb-badge--neutral { background: rgba(200,230,160,.08); color: var(--pb-muted); }
  html:not([data-theme="light"]) .pb-modal__box { background: var(--pb-white); color: var(--pb-ink); }
  html:not([data-theme="light"]) .pb-modal__head h2 { color: var(--pb-ink); }
}

/* FAQ-Akkordeon */
.pb-faq { border-bottom: 1px solid var(--pb-line); }
.pb-faq:last-child { border-bottom: 0; }
.pb-faq summary { padding: .8rem 0; font-weight: 600; font-size: .9rem; cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; color: var(--pb-ink); }
.pb-faq summary::after { content: '+'; font-size: 1.2rem; color: var(--pb-muted); transition: transform .2s; }
.pb-faq[open] summary::after { content: '−'; }
.pb-faq summary::-webkit-details-marker { display: none; }
.pb-faq p { font-size: .86rem; color: var(--pb-muted); padding: 0 0 .8rem; margin: 0; line-height: 1.5; }

/* Avatar-Kreis */
.pb-avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--pb-paper-2); border: 2px solid var(--pb-lime); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.pb-avatar img { width: 100%; height: 100%; object-fit: cover; }
.pb-avatar span { font-size: 1.5rem; font-weight: 800; color: var(--pb-lime); }

/* Mieten: Hinweisboxen (Kaution, Testbetrieb, Gutschein) */
.pb-rentinfo { display: flex; gap: .7rem; align-items: flex-start; padding: .75rem .85rem; border-radius: 12px; margin-bottom: .8rem;
  background: color-mix(in srgb, var(--pb-accent, #5AD16A) 9%, transparent); border: 1px solid color-mix(in srgb, var(--pb-accent, #5AD16A) 35%, transparent); }
.pb-rentinfo > i { font-size: 1.25rem; color: var(--pb-accent, #5AD16A); line-height: 1.2; }
.pb-rentinfo > div { display: flex; flex-direction: column; gap: .1rem; font-size: .86rem; }
.pb-rentinfo strong { font-size: .92rem; }
.pb-rentinfo span { opacity: .8; }
.pb-rentinfo--off { background: rgba(255,159,28,.1); border-color: rgba(255,159,28,.4); }
.pb-rentinfo--off > i { color: #ff9f1c; }
.pb-figure--big strong { font-size: 1.25rem; color: var(--pb-accent, #5AD16A); }

/* ===== App: Hilfe & Support ===== */
.pb-supbar { padding: .2rem .2rem .6rem; font-size: .9rem; }
.pb-supitem { display: flex; align-items: center; gap: .6rem; padding: .75rem .2rem; border-top: 1px solid var(--pb-line); color: inherit; text-decoration: none; }
.pb-supitem:first-of-type { border-top: 0; }
.pb-supitem > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pb-supitem strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pb-supitem small { color: var(--pb-muted); font-size: .78rem; }
.pb-supitem > i { color: var(--pb-muted); }
.pb-supcats { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: .4rem; }
.pb-supcats label { margin: 0; cursor: pointer; } .pb-supcats input { position: absolute; opacity: 0; }
.pb-supcats span { display: flex; flex-direction: column; align-items: center; gap: .25rem; padding: .6rem .3rem; border: 1.5px solid var(--pb-line); border-radius: 12px; font-size: .78rem; font-weight: 600; text-align: center; }
.pb-supcats span i { font-size: 1.2rem; color: var(--pb-accent, #5AD16A); }
.pb-supcats input:checked + span { border-color: var(--pb-accent, #5AD16A); background: color-mix(in srgb, var(--pb-accent, #5AD16A) 12%, transparent); }
.pb-chat { display: flex; flex-direction: column; gap: .7rem; margin: 1rem 0; }
.pb-chat__msg { display: flex; flex-direction: column; max-width: 85%; }
.pb-chat__msg.is-me { align-self: flex-end; align-items: flex-end; }
.pb-chat__msg.is-them { align-self: flex-start; }
.pb-chat__bubble { padding: .65rem .85rem; border-radius: 16px; font-size: .92rem; line-height: 1.45; word-break: break-word; }
.is-me .pb-chat__bubble { background: var(--pb-accent, #5AD16A); color: var(--pb-accent-ink, #08140C); border-bottom-right-radius: 4px; }
.is-them .pb-chat__bubble { background: var(--pb-white, #fff); border: 1px solid var(--pb-line); border-bottom-left-radius: 4px; }
html[data-theme="dark"] .is-them .pb-chat__bubble { background: #1a221a; border-color: #263026; }
.pb-chat__msg small { font-size: .72rem; color: var(--pb-muted); margin-top: .2rem; }

/* Banner "Ausleihe laeuft" auf der Karte */
.pb-runbanner { position: absolute; z-index: 600; left: 50%; transform: translateX(-50%); top: calc(env(safe-area-inset-top, 0px) + 74px);
  width: min(460px, calc(100% - 1.4rem)); display: flex; align-items: center; gap: .7rem; padding: .7rem .9rem; border-radius: 16px;
  background: rgba(10, 18, 12, .94); color: #fff; text-decoration: none; box-shadow: 0 14px 30px -12px rgba(0,0,0,.55);
  border: 1px solid rgba(90, 209, 106, .35); backdrop-filter: blur(6px); }
.pb-runbanner:hover { color: #fff; }
.pb-runbanner__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--pb-accent, #5AD16A); flex: 0 0 auto; animation: pb-navdot 1.6s infinite; box-shadow: 0 0 0 0 rgba(90,209,106,.6); }
.pb-runbanner__txt { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.25; }
.pb-runbanner__txt small { opacity: .75; font-size: .76rem; }
.pb-runbanner__time { font: 800 1.05rem/1 var(--f-mono, monospace); color: var(--pb-accent, #5AD16A); }
@keyframes pb-navdot { 0% { box-shadow: 0 0 0 0 rgba(90,209,106,.55); } 70% { box-shadow: 0 0 0 8px rgba(90,209,106,0); } 100% { box-shadow: 0 0 0 0 rgba(90,209,106,0); } }

/* Empfehlungen */
.pb-refinvite { display: flex; gap: .75rem; align-items: center; padding: .85rem 1rem; margin-bottom: .9rem; border-radius: 14px;
  background: color-mix(in srgb, var(--pb-accent, #5AD16A) 12%, transparent); border: 1px solid color-mix(in srgb, var(--pb-accent, #5AD16A) 40%, transparent); }
.pb-refinvite > i { font-size: 1.6rem; color: var(--pb-accent, #5AD16A); }
.pb-refinvite > div { display: flex; flex-direction: column; font-size: .88rem; } .pb-refinvite span { opacity: .8; }
.pb-refstats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin-bottom: .9rem; text-align: center; }
.pb-refstats > div { padding: .6rem .3rem; border-radius: 12px; border: 1px solid var(--pb-line); display: flex; flex-direction: column; }
.pb-refstats strong { font-size: 1.05rem; color: var(--pb-accent, #5AD16A); } .pb-refstats span { font-size: .72rem; color: var(--pb-muted); }

.pb-runbanner__txt strong { color: #fff; } .pb-runbanner__txt small { color: rgba(255,255,255,.75); } .pb-runbanner__txt b { color: #fff; }
.pb-runbanner > i { color: rgba(255,255,255,.6); }
.pb-runbanner[data-state="pending"] .pb-runbanner__dot, .pb-runbanner[data-state="cancelled"] .pb-runbanner__dot { background: #ff9f1c; }
.pb-runbanner__spin, .pb-livespin { width: 20px; height: 20px; border-radius: 50%; border: 3px solid rgba(90,209,106,.25); border-top-color: var(--pb-accent, #5AD16A); animation: pb-spin .8s linear infinite; flex: 0 0 auto; }
.pb-livespin { width: 44px; height: 44px; border-width: 4px; margin: .3rem auto 0; }
@keyframes pb-spin { to { transform: rotate(360deg); } }
[data-live-show][hidden] { display: none !important; }

/* Live-Standort auf der Karte */
.pb-me { position: relative; }
.pb-me__dot { position: absolute; inset: 4px; border-radius: 50%; background: #5AD16A; border: 3px solid #fff; box-shadow: 0 1px 6px rgba(0,0,0,.35); }
.pb-me__pulse { position: absolute; inset: -6px; border-radius: 50%; background: rgba(90,209,106,.35); animation: pb-me-pulse 2s ease-out infinite; }
@keyframes pb-me-pulse { 0% { transform: scale(.5); opacity: .9; } 100% { transform: scale(1.8); opacity: 0; } }
#btnLocate.is-live i { color: var(--pb-accent, #5AD16A); }
#btnLocate.is-follow { background: var(--pb-accent, #5AD16A); } #btnLocate.is-follow i { color: #08140C; }

/* ===== Popups: nie hoeher als der Bildschirm – Inhalt scrollt, Kopf bleibt stehen ===== */
.pb-modal { padding: calc(env(safe-area-inset-top, 0px) + .8rem) .8rem calc(env(safe-area-inset-bottom, 0px) + .8rem); }
.pb-modal__box { display: flex; flex-direction: column; max-height: calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 1.6rem); }
@supports not (height: 100dvh) { .pb-modal__box { max-height: calc(100vh - 1.6rem); } }
.pb-modal__head { flex: 0 0 auto; }
.pb-modal__body { flex: 1 1 auto; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }

/* ===== Stations-Fenster: geschlossen komplett weg, offen ueber der Navigationsleiste ===== */
.pb-sheet { z-index: 45; visibility: hidden; transform: translateY(calc(100% + 40px)); box-shadow: none;
  transition: transform .3s var(--ease), visibility 0s linear .3s, box-shadow .3s; }
.pb-sheet.is-open { visibility: visible; transform: none; box-shadow: 0 -10px 40px -12px rgba(0,0,0,.4); transition: transform .3s var(--ease), visibility 0s, box-shadow .3s; }

/* ===== Seitenmenue in Markenfarben: dunkel mit gruenem Akzent, schmaler ===== */
.pb-drawer__panel { width: 74%; max-width: 288px; padding: calc(env(safe-area-inset-top, 0px) + 1rem) 1.1rem 1.1rem;
  background: linear-gradient(170deg, #0f1a12 0%, #0a120c 100%); border-right: 1px solid rgba(90,209,106,.25); color: #E9EFE9;
  box-shadow: 12px 0 40px -18px rgba(0,0,0,.7); }
.pb-drawer__close { background: rgba(90,209,106,.14); color: var(--pb-accent, #5AD16A); margin-bottom: .8rem; }
.pb-drawer__profile { gap: .7rem; margin-bottom: 1.1rem; padding-bottom: 1rem; border-bottom: 1px solid rgba(255,255,255,.08); }
.pb-drawer__profile .pb-avatar { width: 46px; height: 46px; font-size: 1.1rem; background: var(--pb-accent, #5AD16A); color: #08140C; box-shadow: 0 0 0 3px rgba(90,209,106,.25); }
.pb-drawer__name { font-size: 1.1rem; color: #fff; }
.pb-drawer__edit { color: var(--pb-accent, #5AD16A); font-size: .8rem; }
.pb-drawer__nav { gap: .1rem; }
.pb-drawer__nav a { padding: .55rem .6rem; color: rgba(233,239,233,.88); font-size: .93rem; font-weight: 600; border-radius: 10px; gap: .75rem; }
.pb-drawer__nav a i { font-size: 1.05rem; width: 22px; color: var(--pb-accent, #5AD16A); }
.pb-drawer__nav a:hover, .pb-drawer__nav a:active { background: rgba(90,209,106,.1); color: #fff; }
.pb-drawer__sep { background: rgba(255,255,255,.08); margin: .45rem 0; }
.pb-drawer__promo { background: rgba(90,209,106,.1); border: 1px solid rgba(90,209,106,.3); padding: .85rem .95rem; border-radius: 14px; }
.pb-drawer__promo strong { color: var(--pb-accent, #5AD16A); font-size: .9rem; }
.pb-drawer__promo span { color: rgba(233,239,233,.75); font-size: .8rem; }
.pb-drawer__ver { color: rgba(233,239,233,.4); font-size: .68rem; margin-top: .8rem; }
.pb-drawer__backdrop { background: rgba(0,0,0,.55); backdrop-filter: blur(2px); }

/* Apple-Anmeldung: demnaechst verfuegbar */
.pb-oauth--soon { opacity: .55; cursor: not-allowed; pointer-events: none; position: relative; }
.pb-soon { margin-left: .4rem; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: .12rem .45rem; border-radius: 999px;
  background: rgba(90,209,106,.18); color: var(--pb-accent, #5AD16A); }

/* ===== Zahlungsarten ===== */
.pb-pmrow { display: flex; align-items: center; gap: .7rem; padding: .7rem 0; border-top: 1px solid var(--pb-line); }
.pb-pmrow:first-of-type { border-top: 0; }
.pb-pmrow__ico { width: 40px; height: 40px; border-radius: 12px; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
  background: color-mix(in srgb, var(--pb-accent, #5AD16A) 13%, transparent); color: var(--pb-accent, #5AD16A); }
.pb-pmrow__main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pb-pmrow__main b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .95rem; }
.pb-pmrow__main small { color: var(--pb-muted); font-size: .76rem; }
.pb-pmrow__act { display: flex; gap: .3rem; } .pb-pmrow__act form { margin: 0; }
.pb-pmchoice { display: grid; gap: .4rem; }
.pb-pmchoice label { margin: 0; cursor: pointer; } .pb-pmchoice input { position: absolute; opacity: 0; }
.pb-pmchoice span { display: flex; align-items: center; gap: .6rem; padding: .7rem .85rem; border: 1.5px solid var(--pb-line); border-radius: 12px; font-weight: 600; font-size: .9rem; }
.pb-pmchoice span i { color: var(--pb-accent, #5AD16A); font-size: 1.1rem; }
.pb-pmchoice input:checked + span { border-color: var(--pb-accent, #5AD16A); background: color-mix(in srgb, var(--pb-accent, #5AD16A) 10%, transparent); }
.pb-pmsave { display: flex; gap: .5rem; align-items: center; margin-top: .6rem; font-size: .86rem; cursor: pointer; }
.pb-pmsave[hidden] { display: none; }
/* Anmelde-Knoepfe mit "Demnaechst": Text in einer Zeile, Hinweis rechts */
.pb-oauth--soon { white-space: nowrap; flex-wrap: nowrap; }
.pb-oauth--soon .pb-soon { margin-left: auto; flex: none; }
/* Lesbarkeit & Tippflaechen der App (Pruefung 390 px) */
.pb-appnav__item { font-size: .7rem; }
.pb-appnav__scan span, .pb-scanbtn span { font-size: .68rem; }
.pb-drawer__edit { display: inline-block; padding: .4rem 0; }
a.pb-link:not(p a):not(li a):not(td a):not(small a) { display: inline-block; padding-block: .35rem; }
.pb-card__num { font-size: .72rem; }

/* =====================================================================
   App-Struktur 2.0: Bereiche (Konto, Hilfe) als klar gegliederte Listen
   ===================================================================== */
.pb-hub { padding: 1rem 1rem 1.5rem; }
.pb-hub__h { font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--pb-muted); margin: 1.4rem .3rem .5rem; }
.pb-hub__group { background: var(--pb-white, #fff); border: 1px solid var(--pb-line); border-radius: 16px; overflow: hidden; }
.pb-hub__row { display: flex; align-items: center; gap: .8rem; width: 100%; padding: .8rem .95rem; min-height: 56px; border: 0; background: none; text-align: left;
  color: inherit; text-decoration: none; font: inherit; border-top: 1px solid var(--pb-line); cursor: pointer; }
.pb-hub__row:first-child { border-top: 0; }
.pb-hub__row:active { background: color-mix(in srgb, var(--pb-lime) 8%, transparent); }
.pb-hub__row > .bi-chevron-right { color: var(--pb-muted); font-size: .85rem; }
.pb-hub__row--ctl { cursor: default; }
.pb-hub__ico { width: 36px; height: 36px; flex: none; border-radius: 10px; display: grid; place-items: center; font-size: 1.05rem;
  background: color-mix(in srgb, var(--pb-lime) 14%, transparent); color: var(--pb-lime-ink, #2f8a3c); }
html[data-theme="dark"] .pb-hub__ico { color: var(--pb-lime); }
.pb-hub__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pb-hub__txt b { font-size: .95rem; font-weight: 600; }
.pb-hub__txt small { font-size: .78rem; color: var(--pb-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.pb-hub__profile { display: flex; align-items: center; gap: .85rem; padding: .3rem .2rem .2rem; }
.pb-hub__profile .pb-avatar { width: 56px; height: 56px; margin: 0; flex: none; }
.pb-hub__who { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pb-hub__who b { font-size: 1.15rem; } .pb-hub__who small { color: var(--pb-muted); font-size: .84rem; overflow: hidden; text-overflow: ellipsis; }
.pb-hub__edit { width: 42px; height: 42px; flex: none; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--pb-line); color: inherit; text-decoration: none; }
.pb-hub__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin-top: 1rem; }
.pb-hub__stats > * { display: flex; flex-direction: column; align-items: center; gap: .1rem; padding: .75rem .3rem; border-radius: 14px; border: 1px solid var(--pb-line);
  background: var(--pb-white, #fff); color: inherit; text-decoration: none; font: inherit; cursor: pointer; }
.pb-hub__stats b { font-size: 1.1rem; color: var(--pb-lime-ink, #2f8a3c); } html[data-theme="dark"] .pb-hub__stats b { color: var(--pb-lime); }
.pb-hub__stats small { font-size: .72rem; color: var(--pb-muted); }

.pb-hub__invite, .pb-hub__support { padding: 1rem; }
.pb-hub__invite p, .pb-hub__support p { font-size: .86rem; color: var(--pb-muted); margin: 0 0 .8rem; }
.pb-hub__code { text-align: center; padding: .8rem; border-radius: 12px; border: 1.5px dashed color-mix(in srgb, var(--pb-lime) 60%, transparent); font-size: 1.5rem; font-weight: 800; letter-spacing: .14em; }
.pb-hub__btns { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-top: .7rem; } .pb-hub__btns .pb-btn { justify-content: center; }
.pb-hub__refstats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; margin-top: .8rem; text-align: center; }
.pb-hub__refstats div { display: flex; flex-direction: column; } .pb-hub__refstats b { font-size: 1rem; } .pb-hub__refstats small { font-size: .72rem; color: var(--pb-muted); }
.pb-hub__logout { color: #e5484d !important; border-color: color-mix(in srgb, #e5484d 35%, transparent) !important; }
.pb-hub__ver { text-align: center; font-size: .72rem; color: var(--pb-muted); margin: .8rem 0 0; }

/* Segment-Schalter (Darstellung/Sprache) und Kippschalter */
.pb-seg { display: inline-flex; padding: 3px; border-radius: 10px; background: color-mix(in srgb, var(--pb-ink) 7%, transparent); gap: 2px; margin: 0; }
.pb-seg > button, .pb-seg > a { min-width: 40px; height: 34px; padding: 0 .55rem; border: 0; border-radius: 8px; background: none; color: var(--pb-muted);
  font-weight: 700; font-size: .82rem; display: grid; place-items: center; text-decoration: none; cursor: pointer; }
.pb-seg > .is-on { background: var(--pb-white, #fff); color: var(--pb-ink); box-shadow: 0 1px 3px rgba(0,0,0,.15); }
html[data-theme="dark"] .pb-seg > .is-on { background: #26302a; color: #fff; }
.pb-toggle { position: relative; width: 48px; height: 28px; flex: none; margin: 0; }
.pb-toggle input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; z-index: 1; }
.pb-toggle span { position: absolute; inset: 0; border-radius: 999px; background: color-mix(in srgb, var(--pb-ink) 18%, transparent); transition: background .2s; }
.pb-toggle span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s; }
.pb-toggle input:checked + span { background: var(--pb-lime); } .pb-toggle input:checked + span::after { transform: translateX(20px); }

/* Hilfe */
.pb-hsearch { position: relative; }
.pb-hsearch > i { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--pb-muted); }
.pb-hsearch input { width: 100%; height: 50px; padding: 0 1rem 0 2.6rem; border-radius: 14px; border: 1px solid var(--pb-line); background: var(--pb-white, #fff); color: inherit; font-size: 1rem; outline: none; -webkit-appearance: none; }
.pb-hsearch input:focus { border-color: var(--pb-lime); box-shadow: 0 0 0 3px color-mix(in srgb, var(--pb-lime) 22%, transparent); }
.pb-steps { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.pb-steps__item { position: relative; display: flex; flex-direction: column; gap: .2rem; padding: .85rem; border-radius: 14px; background: var(--pb-white, #fff); border: 1px solid var(--pb-line); }
.pb-steps__item > i { font-size: 1.3rem; color: var(--pb-lime-ink, #2f8a3c); } html[data-theme="dark"] .pb-steps__item > i { color: var(--pb-lime); }
.pb-steps__item b { font-size: .9rem; } .pb-steps__item small { font-size: .76rem; color: var(--pb-muted); line-height: 1.35; }
.pb-steps__no { position: absolute; top: .55rem; right: .65rem; font-size: .7rem; font-weight: 800; color: var(--pb-muted); }
.pb-hfaq__q { border-top: 1px solid var(--pb-line); } .pb-hfaq__q:first-child { border-top: 0; } .pb-hfaq__q[hidden] { display: none; }
.pb-hfaq__q summary { list-style: none; display: flex; align-items: center; gap: .7rem; padding: .9rem .95rem; cursor: pointer; font-weight: 600; font-size: .93rem; }
.pb-hfaq__q summary::-webkit-details-marker { display: none; }
.pb-hfaq__q summary span { flex: 1; } .pb-hfaq__q summary i { color: var(--pb-muted); transition: transform .2s; }
.pb-hfaq__q[open] summary i { transform: rotate(180deg); color: var(--pb-lime); }
.pb-hfaq__q p { padding: 0 .95rem .95rem; margin: 0; font-size: .88rem; color: var(--pb-muted); line-height: 1.55; }
.pb-hfaq__none { padding: 1rem; text-align: center; color: var(--pb-muted); margin: 0; }
[hidden].pb-hide-on-search { display: none; }

/* Karte: Suchfeld oben, Suchliste, einheitliche Leiste */
.pb-appbar--search { gap: .6rem; }
.pb-searchpill { flex: 1; min-width: 0; height: 48px; display: flex; align-items: center; gap: .6rem; padding: 0 .5rem 0 .4rem; border-radius: 999px; border: 0;
  background: var(--pb-white, #fff); color: var(--pb-muted); box-shadow: 0 6px 18px -6px rgba(0,0,0,.35); font: inherit; cursor: pointer; text-align: left; }
.pb-searchpill__logo { width: 36px; height: 36px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--pb-ink, #0b120c); color: var(--pb-lime); }
.pb-searchpill__txt { flex: 1; min-width: 0; font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pb-searchpill > .bi-search { margin-right: .5rem; color: var(--pb-ink); }
html[data-theme="dark"] .pb-searchpill { background: #18201a; color: #9fb09f; } html[data-theme="dark"] .pb-searchpill > .bi-search { color: #fff; }
.pb-search { position: fixed; inset: 0; z-index: 1300; background: var(--pb-bg, #f4f6f3); display: flex; flex-direction: column; padding-top: env(safe-area-inset-top, 0px); }
html[data-theme="dark"] .pb-search { background: #0b120c; }
.pb-search[hidden] { display: none; }
.pb-search__bar { display: flex; gap: .6rem; padding: .8rem 1rem; align-items: center; }
.pb-search__bar input { flex: 1; height: 48px; border-radius: 14px; border: 1px solid var(--pb-line); padding: 0 1rem; font-size: 1rem; background: var(--pb-white, #fff); color: inherit; outline: none; }
.pb-search__bar input:focus { border-color: var(--pb-lime); }
.pb-search__hint { padding: 0 1.2rem .4rem; font-size: .76rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--pb-muted); }
.pb-search__hint[hidden] { display: none; }
.pb-search__list { flex: 1; overflow-y: auto; padding: 0 1rem 2rem; }
.pb-search__item { display: flex; align-items: center; gap: .8rem; width: 100%; padding: .8rem .2rem; border: 0; border-bottom: 1px solid var(--pb-line); background: none; color: inherit; text-align: left; font: inherit; cursor: pointer; }
.pb-search__ico { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--pb-ink) 8%, transparent); color: var(--pb-muted); }
.pb-search__ico.is-ok { background: color-mix(in srgb, var(--pb-lime) 18%, transparent); color: var(--pb-lime-ink, #2f8a3c); }
.pb-search__main { flex: 1; min-width: 0; display: flex; flex-direction: column; } .pb-search__main b { font-size: .95rem; }
.pb-search__main small { font-size: .78rem; color: var(--pb-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pb-search__meta { display: flex; flex-direction: column; align-items: flex-end; } .pb-search__meta b { font-size: 1rem; } .pb-search__meta small { font-size: .72rem; color: var(--pb-muted); }
body.pb-search-open { overflow: hidden; }
.pb-appnav__item { position: relative; }
.pb-appnav__dot { position: absolute; top: .3rem; right: calc(50% - 16px); width: 9px; height: 9px; border-radius: 50%; background: #ff9f1c; box-shadow: 0 0 0 2px var(--pb-ink, #0b120c); }

/* =====================================================================
   Seitenmenue 2.0 – zusaetzlich zur Suche: Menueknopf links auf der Karte
   und auf den Hauptseiten (Ausleihen, Hilfe, Konto). Dunkel mit Gruen.
   ===================================================================== */
.pb-searchpill { padding: 0 1rem; }
.pb-searchpill__ico { color: var(--pb-ink, #0b120c); font-size: 1.05rem; }
html[data-theme="dark"] .pb-searchpill__ico { color: #fff; }
.pb-fab--menu, .pb-apptop__btn { position: relative; }
.pb-fab--menu .pb-appnav__dot, .pb-apptop__btn .pb-appnav__dot { top: 6px; right: 6px; }
button.pb-apptop__btn { border: 0; cursor: pointer; font: inherit; }

.pb-drawer { z-index: 1400; }
.pb-drawer__panel { width: 80%; max-width: 300px; gap: 0; padding: calc(env(safe-area-inset-top, 0px) + .9rem) 1rem calc(env(safe-area-inset-bottom, 0px) + 1rem); }
.pb-drawer__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.pb-drawer__brand { font-family: var(--f-display); font-weight: 900; color: #fff; font-size: 1.05rem; letter-spacing: -.01em; }
.pb-drawer__brand i { color: var(--pb-lime, #A5D66B); }
.pb-drawer__brand sup { color: var(--pb-lime, #A5D66B); font-size: .6em; }
.pb-drawer__x { width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255,255,255,.07); color: #E9EFE9; display: grid; place-items: center; cursor: pointer; }
.pb-drawer__profile { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: inherit; padding: .7rem; margin: 0 0 .7rem; border: 1px solid rgba(255,255,255,.08); border-radius: 14px; background: rgba(255,255,255,.03); }
.pb-drawer__profile > .bi { margin-left: auto; color: rgba(233,239,233,.45); }
.pb-drawer__who { display: flex; flex-direction: column; min-width: 0; }
.pb-drawer__name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pb-drawer__profile .pb-avatar { display: grid; place-items: center; border-radius: 50%; font-weight: 800; flex: none; }
.pb-drawer__run { display: flex; align-items: center; gap: .6rem; margin-bottom: .7rem; padding: .65rem .8rem; border-radius: 12px; background: var(--pb-lime, #A5D66B); color: #07140F; font-weight: 700; font-size: .9rem; text-decoration: none; }
.pb-drawer__run .bi { margin-left: auto; }
.pb-drawer__run .pb-runbanner__dot { background: #07140F; }
.pb-drawer__nav a { display: flex; align-items: center; text-decoration: none; position: relative; }
.pb-drawer__nav a.is-active { background: rgba(165,214,107,.14); color: #fff; }
.pb-drawer__nav a.is-active::before { content: ""; position: absolute; left: -1rem; top: 20%; bottom: 20%; width: 3px; border-radius: 0 3px 3px 0; background: var(--pb-lime, #A5D66B); }
.pb-drawer__badge { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: #ff9f1c; color: #1b1200; font-style: normal; font-size: .72rem; font-weight: 800; display: grid; place-items: center; }
.pb-drawer__lang { display: flex; align-items: center; gap: .35rem; margin: .8rem 0; padding: .3rem .3rem .3rem .7rem; border-radius: 12px; background: rgba(255,255,255,.04); color: rgba(233,239,233,.6); }
.pb-drawer__lang .bi { margin-right: auto; color: var(--pb-lime, #A5D66B); }
.pb-drawer__lang a { padding: .35rem .8rem; border-radius: 9px; color: rgba(233,239,233,.7); text-decoration: none; font-weight: 700; font-size: .82rem; }
.pb-drawer__lang a.is-on { background: var(--pb-lime, #A5D66B); color: #07140F; }
.pb-drawer__promo { display: block; text-decoration: none; margin-top: auto; }
.pb-drawer__promo strong, .pb-drawer__promo span { display: block; }
.pb-drawer__legal { margin-top: .9rem; text-align: center; font-size: .72rem; color: rgba(233,239,233,.35); }
.pb-drawer__legal a { color: rgba(233,239,233,.55); text-decoration: none; }
body.pb-drawer-open { overflow: hidden; }
