/* WeGlide-Badges im Stil von soaring.at. Farben und Schrift kommen aus /stil/gemeinsam.css. */
:root {
  --fertig: #3ddc84;
  --teilweise: #ffb300;
  --offen: #6b7783;
}
.werkzeugkopf, main, .fuss { max-width: 60rem; margin: 0 auto; padding: 0 clamp(1rem, 3vw, 2rem); }
.werkzeugkopf { padding-top: 1.5rem; }
.pfad { color: var(--leise); font-size: .9rem; }
h1 { margin: .2rem 0 .9rem; font-size: clamp(1.7rem, 4vw, 2.5rem); }
.suche { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.suche label { color: var(--leise); font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; }
.suche input { width: 9rem; min-height: 44px; padding: 0 .8rem; border: 1px solid var(--rand); border-radius: 8px; background: var(--glas); box-shadow: inset 0 2px 5px #000a; color: var(--text); font: 1.05rem "B612 Mono", monospace; }
.suche input:focus { outline: none; border-color: var(--bernstein); }
button { font: inherit; cursor: pointer; min-height: 44px; padding: 0 1.1rem; border: 1px solid var(--bernstein); border-radius: 8px; background: var(--bernstein); color: #1e252c; font-weight: 700; }
.tipp { margin: .5rem 0 1rem; color: var(--leise); font-size: .9rem; }

.limit { margin: 0 0 1.2rem; padding: .9rem 1rem; border: 1px dashed var(--bernstein); border-radius: 12px; background: #ffb30012; color: var(--text); font-size: .95rem; }
.limit b { display: block; font-size: 1.05rem; margin-bottom: .2rem; color: var(--bernstein); }
.abfragen { display: block; margin-top: .3rem; font-weight: 700; }
.stand button:disabled { opacity: .5; cursor: default; }

.meldung { padding: .8rem 1rem; border-radius: 10px; background: #ff6b6b1f; border: 1px solid #ff6b6b80; }
.meldung.hinweis { background: #ffb3001a; border-color: #ffb30080; }

.uebersicht { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; align-items: center; padding: 1.1rem 1.2rem; border-radius: 14px; border: 1px solid var(--rand);
  background: linear-gradient(165deg, #ffffff1c, transparent 45%, #00000059), url(/stil/bilder/carbon.jpg) 0 0 / 150px; }
.uebersicht h2 { margin: 0; font-size: 1.4rem; text-shadow: 0 1px 3px #000; }
.uebersicht h2 a { color: var(--text); }
.stand { margin: .2rem 0 0; font-size: .875rem; color: #c3ccd3; }
.stand button { margin-left: .5rem; min-height: 32px; padding: 0 .7rem; background: var(--glas); color: var(--text); border-color: var(--rand); font-weight: 400; font-size: .85rem; }
.zahlen { display: flex; gap: .7rem; margin: 0; }
.zahlen div { min-width: 5.5rem; padding: .45rem .7rem; border-radius: 8px; background: var(--glas); box-shadow: inset 0 2px 6px #000c; text-align: right; }
.zahlen dt { font-size: .7rem; color: var(--leise); letter-spacing: .06em; text-transform: uppercase; text-align: left; }
.zahlen dd { margin: 0; font: 700 1.6rem "B612 Mono", monospace; color: var(--bernstein); }

.filter { display: flex; flex-wrap: wrap; gap: .25rem; margin: 1rem 0 .8rem; padding: .2rem; width: max-content; max-width: 100%; background: var(--brett); border: 1px solid var(--rand); border-radius: 10px; }
.filter button { min-height: 36px; padding: 0 .85rem; background: none; border: 0; border-radius: 7px; color: var(--leise); font-weight: 400; }
.filter button[aria-pressed="true"] { background: var(--glas); color: var(--bernstein); }
.filter span { opacity: .7; font-family: "B612 Mono", monospace; }

.liste { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.badge { display: grid; grid-template-columns: 56px 1fr auto; gap: .25rem 1rem; align-items: start; padding: .8rem 1rem; border-radius: 12px; border: 1px solid var(--rand); border-left: 4px solid var(--offen); background: var(--brett); }
.badge.fertig { border-left-color: var(--fertig); }
.badge.teilweise { border-left-color: var(--teilweise); }
.badge img { width: 56px; height: 56px; object-fit: contain; grid-row: span 2; }
.badge.offen img { filter: grayscale(1); opacity: .55; }
.badge h3 { margin: 0; font-size: 1.05rem; }
.badge .stufe { font-weight: 400; color: var(--leise); font-size: .9rem; margin-left: .35rem; }
.beschreibung { margin: .15rem 0 0; color: #d3dadf; }
.beschreibung b { white-space: nowrap; color: var(--text); }

.stufenwerte { display: flex; flex-wrap: wrap; gap: .25rem; margin: .45rem 0 0; padding: 0; list-style: none; font: .78rem "B612 Mono", monospace; }
.stufenwerte li { padding: .05rem .5rem; border-radius: 99px; border: 1px solid var(--rand); background: var(--glas); color: var(--leise); }
.stufenwerte li.erreicht { background: #3ddc8426; color: var(--fertig); border-color: #3ddc8466; }
.stufenwerte li.naechste { border-color: var(--bernstein); color: var(--bernstein); font-weight: 700; }

.fortschritt { margin-top: .5rem; font-size: .85rem; color: var(--leise); }
.fortschritt .bahn { height: 8px; border-radius: 4px; background: var(--glas); box-shadow: inset 0 1px 3px #000; overflow: hidden; margin-top: .25rem; max-width: 22rem; }
.fortschritt .fuellung { height: 100%; background: var(--bernstein); }

.bewertung { text-align: right; font-size: .85rem; white-space: nowrap; grid-row: span 2; color: var(--leise); }
.bewertung div + div { margin-top: .3rem; }
.bewertung .wert { font-weight: 700; font-size: 1rem; color: var(--text); }
.punkte { letter-spacing: 1px; color: var(--bernstein); }
.datum { font-size: .8rem; color: var(--leise); margin-top: .3rem; }

.legende { margin: 1.5rem 0; padding: .9rem 1.1rem; background: var(--brett); border: 1px solid var(--rand); border-radius: 12px; }
.legende summary { cursor: pointer; font-weight: 700; }
.legende ul { list-style: none; padding: 0; }
.legende p { color: #d3dadf; }
.punkt { display: inline-block; width: .9rem; height: .9rem; border-radius: 3px; margin-right: .5rem; vertical-align: -2px; }
.punkt.fertig { background: var(--fertig); }
.punkt.teilweise { background: var(--teilweise); }
.punkt.offen { background: var(--offen); }

.fuss { padding-top: 1rem; padding-bottom: 2rem; color: var(--leise); font-size: .85rem; border-top: 0; display: block; }
.fuss a { color: var(--leise); }

@media (max-width: 600px) {
  .badge { grid-template-columns: 44px 1fr; }
  .badge img { width: 44px; height: 44px; grid-row: auto; }
  .bewertung { grid-column: 2; grid-row: auto; text-align: left; display: flex; flex-wrap: wrap; gap: .2rem 1rem; }
  .bewertung div + div { margin-top: 0; }
  .uebersicht > div:first-child, .zahlen { width: 100%; }
  .zahlen { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
  .zahlen div { min-width: 0; }
}
