/* Streifzug: Steckbrief, Vermisst, Zaeune (02.10.2026). Nur Tokens aus app.css. */

/* ---------- Portraet im Katzenkopf ---------- */
.ph image { image-rendering: auto; }
.mk.pic svg { filter: drop-shadow(0 4px 7px rgba(0,0,0,.32)); }
.cat-av .ph { width: 52px; height: 58px; }

/* ---------- Vermisst ---------- */
/* Der Rand des Kopfs wird zur Warnfarbe, dazu ein ruhiger Puls: auf der Karte sofort zu finden */
.mk.lost { --c: var(--warn); }
.mk.lost .pulse { background: var(--warn); animation: pulse 2.2s cubic-bezier(.2,.6,.3,1) infinite; }
.mk.lost .pulse + .pulse { animation-delay: 1.1s; }
.cat.is-lost .cat-av { --c: var(--warn); }
.lost-band { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 14px; padding: 11px 14px; border-radius: var(--r-m);
  background: color-mix(in srgb, var(--warn) 13%, transparent); color: var(--ink); font-size: 14px; line-height: 1.4; }
.lost-band strong { color: var(--warn); font-weight: 650; }
.lost-band i, .sb-lost i { flex: none; width: 10px; height: 10px; margin-top: 5px; border-radius: 50%; background: var(--warn);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--warn) 22%, transparent); }
.pill.lost { color: var(--warn); }
.pill.lost .pill-dot { background: var(--warn); animation: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--warn) 25%, transparent); }

/* ---------- Steckbrief-Knopf in der Katzenkarte ---------- */
#cats .cat-id { opacity: 1; display: flex; align-items: center; gap: 6px; }
#cats .cat-id > span { opacity: .8; }
.sb-btn { margin-left: auto; font: 600 13px var(--sans); color: var(--c); padding: 6px 2px 6px 10px; }
.sb-btn:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Steckbrief ---------- */
.sb-card { padding-top: 22px; }
.sb-head { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; margin-bottom: 18px; }
.sb-portrait { width: 92px; height: 104px; display: block; }
.sb-portrait svg { width: 92px; height: 104px; --ring: var(--surface); filter: drop-shadow(0 6px 14px rgba(0,0,0,.18)); }
.sb-portrait b { display: none; }
.sb-portrait > svg:not(.ph) + b { display: block; }
.sb-head h2 { font: 600 34px/1 var(--serif); font-variation-settings: "SOFT" 100, "opsz" 72; letter-spacing: -.015em; margin: 0; }
.sb-sub { margin: 6px 0 0; color: var(--ink-2); font-size: 15px; text-wrap: balance; }
.sb-head .tool { align-self: start; }
.sb-head .tool svg { width: 20px; height: 20px; }
.sb-lost { display: flex; gap: 10px; margin: 0 0 16px; padding: 12px 14px; border-radius: var(--r-m); font-size: 14px; line-height: 1.45;
  background: color-mix(in srgb, var(--warn) 13%, transparent); }
.sb-lost strong { color: var(--warn); }
.sb-facts { margin: 0; display: grid; }
.sb-facts > div { display: grid; grid-template-columns: 112px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); align-items: baseline; }
.sb-facts > div:last-child { border-bottom: 1px solid var(--line); }
.sb-facts dt { color: var(--muted); font-size: 13.5px; }
.sb-facts dd { margin: 0; font-size: 15.5px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.sb-facts dd small { color: var(--muted); font-size: 13px; }
.sb-muted { color: var(--ink-2); }
.sb-chip { font-variant-numeric: tabular-nums; letter-spacing: .04em; font-weight: 500; }
.sb-copy { font: 600 13px var(--sans); color: var(--moss); padding: 2px 0; }
.sb-copy:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 700px) { .sb-card { width: min(460px, 100%); } }

/* ---------- Zaeune ---------- */
.leaflet-tooltip.fence-tip { background: var(--ink); color: var(--surface); border: 0; border-radius: 10px; padding: 7px 10px;
  font: 400 12.5px/1.35 var(--sans); box-shadow: 0 6px 16px rgba(0,0,0,.25); }
.leaflet-tooltip.fence-tip::before { display: none; }
.leaflet-tooltip.fence-tip strong { font-weight: 650; }

@media (prefers-reduced-motion: reduce) { .mk.lost .pulse { animation: none; opacity: .25; transform: scale(1.4); } }
.sb-portrait { position: relative; }
.sb-portrait > svg:not(.ph) + b { position: absolute; left: 0; right: 0; top: 42px; text-align: center; color: #fff; font: 600 34px/1 var(--serif); }
