/* LightMapr - Ratgeber (guide.php): Kartenübersicht, Artikel, Bilder, Zusammensetzung der Bewertung, Blättern.
   Farben und Maße kommen aus app.css (hell/dunkel); geladen nur auf den Ratgeber-Seiten. */

/* ---- Übersicht: Karten je Thema */
.pp-guide .pp-gcards { list-style: none; padding: 0; margin: 12px 0 4px; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.pp-guide .pp-gcard { margin: 0; max-width: none; display: flex; }
.pp-guide .pp-gcard a.pp-gcard-link {
  display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; color: var(--text); text-decoration: none;
  background: var(--panel-solid); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.pp-guide .pp-gcard a.pp-gcard-link:hover { border-color: var(--accent); }
.pp-guide .pp-gcard a.pp-gcard-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pp-guide .pp-gcard-img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: var(--line); }
.pp-guide .pp-gcard-body { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px 12px; }
.pp-guide .pp-gcard-title { font-weight: 650; font-size: 16px; line-height: 1.3; }
.pp-guide .pp-gcard-lead { font-size: 14px; line-height: 1.45; color: var(--muted); }

/* Platzhalter, solange das Vorschaubild fehlt (Verlauf je Gruppe, nur Zierde) */
.pp-guide .pp-gcard-ph { background: linear-gradient(135deg, #46526b, #8aa0c4); }
.pp-guide .pp-gph-sky { background: linear-gradient(135deg, #3a1f4d 0%, #d9503f 62%, #ffd44d 100%); }
.pp-guide .pp-gph-water { background: linear-gradient(135deg, #1d5f7a 0%, #4fc3d6 100%); }
.pp-guide .pp-gph-tools { background: linear-gradient(135deg, #3a4452 0%, #8195ad 100%); }

/* ---- Artikel */
.pp-crumbs { font-size: 14px; color: var(--muted); margin: 0 0 2px; }
.pp-crumbs a { color: var(--accent); }
.pp-guide .pp-gfig { margin: 18px 0 4px; }
.pp-guide .pp-gfig img { display: block; width: 100%; max-width: 100%; height: auto; border-radius: var(--radius); background: var(--line); }
.pp-guide .pp-gfig figcaption { font-size: 14px; line-height: 1.45; color: var(--muted); margin-top: 6px; max-width: 68ch; }

/* ---- Zusammensetzung der Bewertung (Anteile als Balken) */
.pp-guide .pp-comp { list-style: none; padding: 0; margin: 8px 0 4px; }
.pp-guide .pp-comp li { display: grid; grid-template-columns: minmax(7em, 38%) minmax(0, 1fr) 3.4em; align-items: center; gap: 10px; margin: 8px 0; max-width: 68ch; }
.pp-guide .pp-comp-val { text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); font-size: 14px; }
.pp-guide .pp-comp-bar { display: block; width: 100%; height: 12px; border: 0; border-radius: 6px; background: var(--line); -webkit-appearance: none; appearance: none; }
.pp-guide .pp-comp-bar::-webkit-meter-bar { height: 12px; border: 0; border-radius: 6px; background: var(--line); }
.pp-guide .pp-comp-bar::-webkit-meter-optimum-value,
.pp-guide .pp-comp-bar::-webkit-meter-suboptimum-value,
.pp-guide .pp-comp-bar::-webkit-meter-even-less-good-value { border-radius: 6px; background: var(--accent); }
.pp-guide .pp-comp-bar::-moz-meter-bar { border-radius: 6px; background: var(--accent); }
.pp-guide .pp-comp-note { font-size: 14px; line-height: 1.45; color: var(--muted); }

/* ---- Blättern zwischen den Themen */
.pp-gpager { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; margin-top: 36px; padding-top: 16px; border-top: 1px solid var(--line); }
.pp-gpager a {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 6px 14px; box-sizing: border-box;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel-solid); color: var(--accent); text-decoration: none;
}
.pp-gpager a:hover { border-color: var(--accent); }
.pp-gpager .pp-gpager-k { color: var(--muted); font-size: 13px; }
@media (max-width: 520px) {
  .pp-gpager { flex-direction: column; }
  .pp-gpager a { width: 100%; }
  .pp-guide .pp-gcards { grid-template-columns: 1fr; }
  .pp-guide .pp-comp li { grid-template-columns: minmax(0, 1fr) 3.4em; }
  .pp-guide .pp-comp-name { grid-column: 1 / -1; }
  .pp-guide .pp-comp li .pp-comp-bar { grid-column: 1; }
}
