/* Powerbank24 – Fundament (immer laden)
   Automatisch aus dem Designsystem aufgeteilt. Farben & Masse stehen in core.css. */

/* ==========================================================================
   POWERBANK24 — Designsystem
   --------------------------------------------------------------------------
   Leitbild: der Ausleihschrank selbst. Beleuchtete Faecher, Ladestaende,
   Statusleuchten, Geraetenummern. Die Oberflaeche soll sich anfuehlen wie
   die Hardware an der Wand, nicht wie ein beliebiges Software-Dashboard.

   Grundsaetze
   1  Gruen ist Signal, kein Anstrich. Es markiert Ladung, Freigabe, Erfolg.
   2  Bernstein ist die zweite Stimme: laedt gerade, wartet, Achtung.
   3  Geraetenummern und Messwerte immer in der Mono-Schrift — sie kommen
      aus einer Maschine und sollen auch so aussehen.
   4  Ein auffaelliges Element je Ansicht: die Fachleiste. Alles andere leise.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1  Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Dunkelwerte — kuehles Tannengruen statt Schwarz, damit Flaechen Tiefe haben */
  --pb-night:      #0B0F0B;
  --pb-deep:       #131A13;
  --pb-forest:     #1A221A;
  --pb-moss:       #2A342A;

  /* Signal */
  --pb-lime:       #A5D66B;
  --pb-lime-dim:   #8BC34A;
  --pb-lime-deep:  #5B8C2A;
  --pb-glow:       #C8E6A0;

  /* Zweite Stimme */
  --pb-solar:      #FFB020;
  --pb-solar-dim:  #B87708;
  --pb-red:        #E5484D;
  --pb-red-dim:    #A3161B;

  /* Hell */
  --pb-paper:      #F3F6F1;
  --pb-paper-2:    #E4EBE6;
  --pb-white:      #FFFFFF;
  --pb-ink:        #07140F;
  --pb-muted:      #5C7268;
  --pb-muted-dark: #7E998C;
  --pb-line:       #D7DED3;
  --pb-line-dark:  rgba(200, 230, 160, .14);

  /* Schrift */
  --f-display: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --f-body:    'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-mono:    'IBM Plex Mono', 'SF Mono', Consolas, monospace;

  /* Radien — Hardware ist gefraest, nicht rund gelutscht */
  --r-xs: 4px;
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;

  /* Schatten: tief und gruenstichig, als laege Licht aus dem Schrank darauf */
  --sh-sm: 0 1px 2px rgba(7, 20, 15, .06), 0 2px 8px -4px rgba(7, 20, 15, .10);
  --sh-md: 0 2px 6px rgba(7, 20, 15, .07), 0 12px 28px -12px rgba(7, 20, 15, .22);
  --sh-lg: 0 4px 12px rgba(7, 20, 15, .09), 0 32px 64px -24px rgba(7, 20, 15, .34);

  --ease: cubic-bezier(.22, .61, .36, 1);
  --nav-h: 68px;
}

/* --------------------------------------------------------------------------
   2  Grundlagen
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--pb-ink);
  background: var(--pb-paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -.022em;
  margin: 0 0 .5rem;
  color: var(--pb-night);
}
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); font-weight: 900; letter-spacing: -.035em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.2rem; }

h1 em { font-style: normal; color: var(--pb-lime-dim); position: relative; }
h1 em::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: .08em;
  height: .1em;
  background: var(--pb-lime);
  border-radius: 2px;
  opacity: .35;
}

p { margin: 0 0 1rem; }
a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--pb-lime-dim);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}

::selection { background: var(--pb-lime); color: var(--pb-night); }

img, video { max-width: 100%; height: auto; display: block; }

.pb-mono {
  font-family: var(--f-mono);
  font-size: .92em;
  letter-spacing: -.01em;
  font-variant-numeric: tabular-nums;
}

.pb-link {
  color: var(--pb-lime-dim);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid rgba(34, 161, 94, .3);
  transition: border-color .18s var(--ease), color .18s var(--ease);
}
.pb-link:hover { color: var(--pb-lime-deep); border-bottom-color: var(--pb-lime-dim); }

.pb-eyebrow {
  font-family: var(--f-mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--pb-lime-dim);
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
}
.pb-eyebrow::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--pb-lime);
  box-shadow: 0 0 0 3px rgba(165, 214, 107, .18);
  animation: pb-pulse 2.6s var(--ease) infinite;
}
.pb-section--dark .pb-eyebrow,
.pb-hero .pb-eyebrow { color: var(--pb-glow); }

@keyframes pb-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(165, 214, 107, .18); }
  50%      { box-shadow: 0 0 0 6px rgba(165, 214, 107, .04); }
}

.pb-lead {
  font-size: clamp(1.05rem, 1.9vw, 1.3rem);
  line-height: 1.55;
  color: var(--pb-muted);
  max-width: 56ch;
}
.pb-hero .pb-lead,
.pb-section--dark .pb-lead { color: var(--pb-muted-dark); }

.pb-help { font-size: .8rem; line-height: 1.5; color: var(--pb-muted); margin: .4rem 0 0; }

/* --------------------------------------------------------------------------
   3  SIGNATUR — die Fachleiste
   --------------------------------------------------------------------------
   Bildet den echten Schrank ab: jedes Fach ein Balken, der sich von unten
   fuellt wie eine ladende Zelle. Offene Faecher pulsieren bernsteinfarben.
   Taucht auf Startseite, Automaten-Detail, App und Fehlerseiten wieder auf.
   -------------------------------------------------------------------------- */
.pb-slots {
  display: flex;
  gap: 5px;
  align-items: flex-end;
  padding: 14px;
  background: var(--pb-night);
  border-radius: var(--r-md);
  box-shadow: inset 0 1px 0 rgba(200, 230, 160, .07), var(--sh-md);
  overflow: hidden;
  position: relative;
}
.pb-slots::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 38%, rgba(200, 230, 160, .09) 50%, transparent 62%);
  transform: translateX(-100%);
  animation: pb-sweep 7s var(--ease) infinite;
  pointer-events: none;
}
@keyframes pb-sweep {
  0%, 62% { transform: translateX(-100%); }
  100%    { transform: translateX(100%); }
}

.pb-slot {
  position: relative;
  flex: 1 1 0;
  min-width: 9px;
  height: 76px;
  border-radius: var(--r-xs);
  background: rgba(200, 230, 160, .07);
  box-shadow: inset 0 0 0 1px rgba(200, 230, 160, .10);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.pb-slot__fill {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, var(--pb-lime) 0%, var(--pb-lime-dim) 100%);
  border-radius: 0 0 var(--r-xs) var(--r-xs);
  animation: pb-charge 1.1s var(--ease) both;
  transform-origin: bottom;
}
@keyframes pb-charge { from { transform: scaleY(0); } to { transform: scaleY(1); } }

.pb-slot__pct {
  position: relative;
  font-family: var(--f-mono);
  font-size: .58rem;
  font-weight: 500;
  color: var(--pb-night);
  padding-bottom: 4px;
}
.pb-slot__no {
  position: absolute;
  top: 5px;
  font-family: var(--f-mono);
  font-size: .58rem;
  color: rgba(200, 230, 160, .5);
}

.pb-slot--empty { background: rgba(200, 230, 160, .03); }
.pb-slot--empty .pb-slot__pct { color: var(--pb-muted-dark); }

.pb-slot.is-open {
  box-shadow: inset 0 0 0 1.5px var(--pb-solar), 0 0 18px -2px rgba(255, 176, 32, .55);
  background: rgba(255, 176, 32, .16);
  animation: pb-open 1.05s var(--ease) infinite;
}
@keyframes pb-open {
  0%, 100% { background: rgba(255, 176, 32, .16); }
  50%      { background: rgba(255, 176, 32, .34); }
}
.pb-slot.is-full {
  background: rgba(165, 214, 107, .3);
  box-shadow: inset 0 0 0 1px rgba(165, 214, 107, .5);
}

.pb-slots--light { background: var(--pb-paper-2); box-shadow: inset 0 0 0 1px var(--pb-line); }
.pb-slots--light::after { display: none; }
.pb-slots--light .pb-slot { background: rgba(7, 20, 15, .06); box-shadow: inset 0 0 0 1px rgba(7, 20, 15, .07); }
.pb-slots--light .pb-slot__no { color: var(--pb-muted); }

.pb-cabinet {
  background: linear-gradient(165deg, var(--pb-deep), var(--pb-night));
  border-radius: var(--r-lg);
  padding: 1.15rem;
  box-shadow: var(--sh-lg), inset 0 1px 0 rgba(200, 230, 160, .09);
  color: var(--pb-glow);
}
.pb-cabinet__head {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin-bottom: .9rem;
  font-family: var(--f-mono);
  font-size: .76rem;
  letter-spacing: .06em;
  color: var(--pb-muted-dark);
}
.pb-cabinet__id { color: var(--pb-glow); font-weight: 500; }
.pb-cabinet__foot {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: .9rem;
  padding-top: .8rem;
  border-top: 1px solid var(--pb-line-dark);
  font-family: var(--f-mono);
  font-size: .74rem;
  color: var(--pb-muted-dark);
}

.pb-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--pb-muted); flex: none; }
.pb-dot--on  { background: var(--pb-lime); box-shadow: 0 0 0 3px rgba(165, 214, 107, .18); }
.pb-dot--off { background: var(--pb-red);  box-shadow: 0 0 0 3px rgba(229, 72, 77, .16); }

/* --------------------------------------------------------------------------
   4  Bedienelemente
   -------------------------------------------------------------------------- */
.pb-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .72rem 1.3rem;
  border: 0;
  border-radius: 999px;
  font-family: var(--f-body);
  font-size: .93rem;
  font-weight: 600;
  letter-spacing: -.005em;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .16s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.pb-btn:active { transform: translateY(1px); }
.pb-btn:disabled, .pb-btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }

.pb-btn--primary {
  background: var(--pb-lime);
  color: var(--pb-night);
  box-shadow: 0 2px 4px rgba(7, 20, 15, .1), 0 10px 22px -10px rgba(165, 214, 107, .8);
}
.pb-btn--primary:hover:not(:disabled) {
  background: var(--pb-glow);
  box-shadow: 0 2px 4px rgba(7, 20, 15, .1), 0 14px 30px -10px rgba(165, 214, 107, .95);
}

.pb-btn--dark { background: var(--pb-night); color: var(--pb-glow); box-shadow: var(--sh-sm); }
.pb-btn--dark:hover:not(:disabled) { background: var(--pb-forest); }

.pb-btn--ghost {
  background: transparent;
  color: var(--pb-night);
  box-shadow: inset 0 0 0 1.5px var(--pb-line);
}
.pb-btn--ghost:hover:not(:disabled) { box-shadow: inset 0 0 0 1.5px var(--pb-lime-dim); color: var(--pb-lime-deep); }

.pb-section--dark .pb-btn--ghost,
.pb-hero .pb-btn--ghost,
.pb-app .pb-btn--ghost,
.pb-price .pb-btn--ghost {
  color: var(--pb-glow);
  box-shadow: inset 0 0 0 1.5px var(--pb-line-dark);
}
.pb-section--dark .pb-btn--ghost:hover,
.pb-hero .pb-btn--ghost:hover,
.pb-app .pb-btn--ghost:hover,
.pb-price .pb-btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--pb-lime-dim); color: var(--pb-lime); }

.pb-field { margin-bottom: 1.05rem; }
.pb-field > label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--pb-night);
  margin-bottom: .38rem;
}

.pb-input, .pb-select, .pb-textarea {
  width: 100%;
  padding: .68rem .85rem;
  font-family: var(--f-body);
  font-size: .95rem;
  color: var(--pb-ink);
  background: var(--pb-white);
  border: 1.5px solid var(--pb-line);
  border-radius: var(--r-sm);
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.pb-textarea { line-height: 1.55; resize: vertical; }
.pb-input:focus, .pb-select:focus, .pb-textarea:focus {
  outline: none;
  border-color: var(--pb-lime-dim);
  box-shadow: 0 0 0 3px rgba(165, 214, 107, .15);
}
.pb-input::placeholder, .pb-textarea::placeholder { color: var(--pb-muted); opacity: .7; }
.pb-input:disabled, .pb-select:disabled, .pb-textarea:disabled {
  background: var(--pb-paper-2);
  color: var(--pb-muted);
  cursor: not-allowed;
}
.pb-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%235C7268' stroke-width='1.6' d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .85rem center;
  padding-right: 2.2rem;
}

.pb-range {
  width: 100%;
  height: 5px;
  appearance: none;
  background: var(--pb-line);
  border-radius: 3px;
  outline: none;
}
.pb-range::-webkit-slider-thumb {
  appearance: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--pb-lime);
  border: 3px solid var(--pb-white);
  box-shadow: var(--sh-sm);
  cursor: grab;
  transition: transform .14s var(--ease);
}
.pb-range::-webkit-slider-thumb:active { cursor: grabbing; transform: scale(1.12); }
.pb-range::-moz-range-thumb {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--pb-lime);
  border: 3px solid var(--pb-white);
  box-shadow: var(--sh-sm);
  cursor: grab;
}
.pb-price .pb-range { background: rgba(200, 230, 160, .18); }

.pb-oauth {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  width: 100%;
  padding: .78rem 1rem;
  margin-bottom: .6rem;
  font-size: .95rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--pb-ink);
  background: var(--pb-white);
  border-radius: var(--r-sm);
  box-shadow: inset 0 0 0 1.5px var(--pb-line);
  transition: box-shadow .18s var(--ease), transform .14s var(--ease);
}
.pb-oauth:hover { box-shadow: inset 0 0 0 1.5px var(--pb-muted); }
.pb-oauth:active { transform: translateY(1px); }
.pb-oauth--apple { background: var(--pb-ink); color: var(--pb-white); box-shadow: none; }
.pb-oauth--apple:hover { background: #1c2b25; box-shadow: none; }

/* --------------------------------------------------------------------------
   5  Flaechen und Bausteine
   -------------------------------------------------------------------------- */
.pb-card {
  background: var(--pb-white);
  border: 1px solid var(--pb-line);
  border-radius: var(--r-md);
  padding: 1.6rem;
  box-shadow: var(--sh-sm);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}
.pb-card:hover { box-shadow: var(--sh-md); }
.pb-card h3 { margin-bottom: .5rem; }
.pb-card p { color: var(--pb-muted); font-size: .95rem; margin-bottom: 0; }

.pb-card__num {
  font-family: var(--f-mono);
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--pb-lime-dim);
  margin-bottom: .7rem;
  padding-bottom: .55rem;
  border-bottom: 1px solid var(--pb-line);
}

.pb-panel {
  background: var(--pb-white);
  border: 1px solid var(--pb-line);
  border-radius: var(--r-md);
  box-shadow: var(--sh-sm);
  overflow: hidden;
}
.pb-panel__head {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .95rem 1.25rem;
  border-bottom: 1px solid var(--pb-line);
  background: linear-gradient(var(--pb-white), var(--pb-paper));
}
.pb-panel__head h2 { font-size: .95rem; font-weight: 700; letter-spacing: -.005em; margin: 0; }
.pb-panel__body { padding: 1.25rem; }

.pb-figure {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .62rem 0;
  border-bottom: 1px solid var(--pb-line);
  font-size: .92rem;
}
.pb-figure:last-child { border-bottom: 0; }
.pb-figure > span:first-child { color: var(--pb-muted); }
.pb-figure strong { font-weight: 700; color: var(--pb-night); }

.pb-price {
  background: linear-gradient(165deg, var(--pb-deep), var(--pb-night));
  color: var(--pb-glow);
  border-radius: var(--r-lg);
  padding: 1.8rem;
  box-shadow: var(--sh-lg);
}
.pb-price h1, .pb-price h2, .pb-price h3 { color: var(--pb-white); }
.pb-price p { color: var(--pb-muted-dark); }
.pb-price .pb-figure { border-bottom-color: var(--pb-line-dark); }
.pb-price .pb-figure > span:first-child { color: var(--pb-muted-dark); }
.pb-price .pb-figure strong { color: var(--pb-glow); }
.pb-price .pb-field > label { color: var(--pb-glow); }
.pb-price .pb-help { color: var(--pb-muted-dark); }

.pb-price__big {
  font-family: var(--f-display);
  font-size: clamp(2.6rem, 6vw, 3.8rem);
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: 1;
  color: var(--pb-lime);
  font-variant-numeric: tabular-nums;
}

.pb-kpi {
  background: var(--pb-white);
  border: 1px solid var(--pb-line);
  border-radius: var(--r-md);
  padding: 1.05rem 1.15rem;
  box-shadow: var(--sh-sm);
  height: 100%;
}
.pb-kpi__lbl {
  font-family: var(--f-mono);
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--pb-muted);
  display: block;
  margin-bottom: .4rem;
}
.pb-kpi__val {
  font-family: var(--f-display);
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.1;
  color: var(--pb-night);
  font-variant-numeric: tabular-nums;
  display: block;
}
.pb-kpi__delta {
  font-family: var(--f-mono);
  font-size: .74rem;
  margin-top: .3rem;
  display: inline-block;
  color: var(--pb-muted);
}
.pb-kpi__delta.up   { color: var(--pb-lime-dim); }
.pb-kpi__delta.down { color: var(--pb-red-dim); }

.pb-badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .2rem .6rem;
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .04em;
  white-space: nowrap;
}
.pb-badge--ok      { background: rgba(165, 214, 107, .16); color: #0E5233; }
.pb-badge--warn    { background: rgba(255, 176, 32, .2);  color: #7A4E00; }
.pb-badge--bad     { background: rgba(229, 72, 77, .14);  color: #8E1216; }
.pb-badge--neutral { background: rgba(7, 20, 15, .07);    color: var(--pb-muted); }

.pb-media {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--pb-night);
  box-shadow: var(--sh-lg);
  aspect-ratio: 16 / 10;
}
.pb-media img, .pb-media video { width: 100%; height: 100%; object-fit: cover; }
.pb-media__cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.6rem 1.1rem .85rem;
  font-family: var(--f-mono);
  font-size: .72rem;
  letter-spacing: .04em;
  color: var(--pb-glow);
  background: linear-gradient(transparent, rgba(7, 20, 15, .88));
}

/* Ablauf in Schritten — nummeriert, weil die Reihenfolge wirklich zaehlt */
.pb-steps { counter-reset: pb-step; display: grid; gap: 1.5rem; }
.pb-step { counter-increment: pb-step; display: flex; gap: 1.1rem; align-items: flex-start; }
.pb-step::before {
  content: counter(pb-step, decimal-leading-zero);
  flex: none;
  width: 42px; height: 42px;
  display: grid;
  place-items: center;
  border-radius: var(--r-sm);
  font-family: var(--f-mono);
  font-size: .82rem;
  font-weight: 500;
  color: var(--pb-lime);
  background: var(--pb-night);
  box-shadow: inset 0 0 0 1px rgba(200, 230, 160, .16);
}
.pb-step h3 { font-size: 1.05rem; margin-bottom: .3rem; }
.pb-step p  { color: var(--pb-muted); font-size: .93rem; margin: 0; }

.pb-spark { width: 100%; height: auto; display: block; overflow: visible; }

/* --------------------------------------------------------------------------
   6  Tabellen
   -------------------------------------------------------------------------- */
.pb-table__wrap { overflow-x: auto; border-radius: var(--r-sm); -webkit-overflow-scrolling: touch; }
.pb-table { width: 100%; border-collapse: collapse; font-size: .89rem; }
.pb-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  text-align: left;
  padding: .6rem .75rem;
  font-family: var(--f-mono);
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--pb-muted);
  background: var(--pb-paper);
  border-bottom: 1px solid var(--pb-line);
  white-space: nowrap;
}
.pb-table td { padding: .68rem .75rem; border-bottom: 1px solid var(--pb-line); vertical-align: middle; }
.pb-table tbody tr { transition: background .14s var(--ease); }
.pb-table tbody tr:hover { background: rgba(165, 214, 107, .05); }
.pb-table tbody tr:last-child td { border-bottom: 0; }

/* --------------------------------------------------------------------------
   11  Meldungen
   -------------------------------------------------------------------------- */
.pb-flash { margin-bottom: 1rem; }

.alert {
  border: 0;
  border-left: 3px solid var(--pb-muted);
  border-radius: var(--r-sm);
  padding: .8rem 1rem;
  font-size: .92rem;
  margin-bottom: 1rem;
}
.alert-success { background: rgba(165, 214, 107, .12); border-left-color: var(--pb-lime-dim); color: #0E5233; }
.alert-danger  { background: rgba(229, 72, 77, .1);   border-left-color: var(--pb-red);      color: #8E1216; }
.alert-warning { background: rgba(255, 176, 32, .14); border-left-color: var(--pb-solar);    color: #7A4E00; }
.alert-info    { background: rgba(7, 20, 15, .05);    border-left-color: var(--pb-muted);    color: var(--pb-night); }

.pb-maint-banner {
  background: var(--pb-solar);
  color: var(--pb-night);
  padding: .55rem 1rem;
  font-size: .85rem;
  font-weight: 600;
  text-align: center;
}

.pb-toasts {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 200;
  display: grid;
  gap: .5rem;
  max-width: min(360px, calc(100vw - 2rem));
}
.pb-toasts > div {
  background: var(--pb-night);
  color: var(--pb-glow);
  padding: .75rem 1rem;
  border-radius: var(--r-sm);
  font-size: .88rem;
  box-shadow: var(--sh-lg);
  animation: pb-toast-in .3s var(--ease) both;
}
@keyframes pb-toast-in { from { opacity: 0; transform: translateY(10px); } }

/* --------------------------------------------------------------------------
   13  Bewegung beim Scrollen
   -------------------------------------------------------------------------- */
.pb-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}
.pb-reveal.is-in { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   14  Kleinere Bildschirme
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
  .pb-hero__grid { grid-template-columns: 1fr; }
  .pb-side { transform: translateX(-100%); box-shadow: var(--sh-lg); }
  .pb-side.is-open { transform: none; }
  .pb-main { margin-left: 0; }
}

@media (max-width: 767px) {
  .pb-nav__links {
    position: fixed;
    inset: var(--nav-h) 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: .5rem 1rem 1.2rem;
    background: var(--pb-night);
    border-bottom: 1px solid var(--pb-line-dark);
    transform: translateY(-130%);
    transition: transform .28s var(--ease);
  }
  .pb-nav__links.is-open { transform: none; }
  .pb-nav__links a { padding: .7rem 0; border-bottom: 1px solid var(--pb-line-dark); }
  .pb-nav__links a.is-active::after { display: none; }

  .pb-card, .pb-panel__body { padding: 1.15rem; }
  .pb-price { padding: 1.3rem; }
  .pb-content, .pb-top { padding-left: 1rem; padding-right: 1rem; }
  .pb-hero__stats { gap: 1.5rem; }
  .pb-slot { height: 60px; }
  .pb-steps { gap: 1.15rem; }
}

/* --------------------------------------------------------------------------
   15  Ruhigere Darstellung, wenn das Geraet danach fragt
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .pb-reveal { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   16  Druck
   -------------------------------------------------------------------------- */
@media print {
  .pb-nav, .pb-side, .pb-app__tabs, .pb-footer, .pb-toasts, .pb-btn { display: none !important; }
  .pb-main { margin: 0; }
  body { background: #fff; }
  .pb-panel, .pb-card { box-shadow: none; border: 1px solid #ccc; }
}


/* ============================================================
   MOBIL – millimetergenau, kein seitliches Verrutschen
   ============================================================ */

/* Sicherheitsnetz: nie horizontal scrollen. clip (nicht hidden)
   laesst sticky/fixed unangetastet und schneidet nur leere Ueberstaende. */
html, body { overflow-x: clip; max-width: 100%; }

/* Grosse Spaltenabstaende passen auf dem Handy nicht in das Container-
   Polster (12px). Auf kleinen Schirmen daher kleiner – dann sitzt die
   Zeile buendig, ohne Ueberstand. */
@media (max-width: 575.98px) {
  .row.g-5 { --bs-gutter-x: 1.5rem; --bs-gutter-y: 1.5rem; }
  .row.g-4 { --bs-gutter-x: 1rem;   --bs-gutter-y: 1rem;   }
}

/* Lange Woerter, E-Mails und URLs in Fliesstexten umbrechen,
   damit Rechtstexte nicht ueber den Rand laufen. */
.pb-legal, .pb-legal p, .pb-legal li, .pb-legal h1, .pb-legal h2, .pb-legal h3 {
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}
.pb-legal a { word-break: break-all; }
.pb-legal table { display: block; width: 100%; overflow-x: auto; }
.pb-legal img { height: auto; }

/* Medien und eingebettete Inhalte nie breiter als der Schirm */
img, video, iframe, canvas, svg, table { max-width: 100%; }

/* Bilder, die per width-Attribut zu breit sind, einfangen */
.pb-media, .balance-chart canvas { max-width: 100%; }

/* ============================================================
   BLAU -> GRÜN  (Bootstrap-Standardfarben auf Markengrün)
   ============================================================ */
:root {
  --bs-primary: #5AD16A;
  --bs-primary-rgb: 90, 209, 106;
  --bs-link-color: #3FB94F;
  --bs-link-color-rgb: 63, 185, 79;
  --bs-link-hover-color: #2E8B3C;
  --bs-link-hover-color-rgb: 46, 139, 60;
}
a { color: #3FB94F; }
a:hover { color: #2E8B3C; }
.text-primary { color: #3FB94F !important; }
.link-primary { color: #3FB94F !important; }
.btn-primary {
  --bs-btn-bg: #5AD16A; --bs-btn-border-color: #5AD16A;
  --bs-btn-hover-bg: #3FB94F; --bs-btn-hover-border-color: #3FB94F;
  --bs-btn-active-bg: #3FB94F; --bs-btn-active-border-color: #3FB94F;
  --bs-btn-color: #0B0F0B; --bs-btn-hover-color: #0B0F0B; --bs-btn-active-color: #0B0F0B;
}
.btn-outline-primary {
  --bs-btn-color: #3FB94F; --bs-btn-border-color: #5AD16A;
  --bs-btn-hover-bg: #5AD16A; --bs-btn-hover-border-color: #5AD16A; --bs-btn-hover-color: #0B0F0B;
}
.form-check-input:checked { background-color: #5AD16A; border-color: #5AD16A; }
.form-control:focus, .form-select:focus { border-color: #8BE58F; box-shadow: 0 0 0 .25rem rgba(90,209,106,.25); }
.nav-pills .nav-link.active { background-color: #5AD16A; color: #0B0F0B; }
