/* Öffentliche Assets-Seite. Mitwachsend, nie seitwärts scrollend:
   Raster mit minmax(min(…,100%),1fr), Kinder min-width:0. */

body { background: var(--bg); color: var(--ink); font: 15px/1.6 system-ui, sans-serif; }

/* ---------- Kopf ---------- */
.mk-kopf { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 20px; max-width: 1120px; margin: 0 auto; min-width: 0; }
.mk-marke { display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  color: var(--ink); font-weight: 800; letter-spacing: .5px; }
.mk-marke img { display: block; }

/* ---------- Intro ---------- */
.mk-haupt { max-width: 1120px; margin: 0 auto; padding: 18px 20px 48px; min-width: 0; }
.mk-intro { margin-bottom: 6px; padding-bottom: 20px; border-bottom: 1px solid var(--line);
  background:
    radial-gradient(560px 200px at 8% -40%, rgba(255, 255, 255, .05), transparent 70%); }
.mk-intro h1 { margin: 0 0 8px; font-size: clamp(26px, 4vw, 38px); letter-spacing: -.02em; }
.mk-intro p { margin: 0; max-width: 62ch; color: var(--ink-muted); }
.mk-meta { margin-top: 10px !important; font-size: 13px; color: var(--ink-faint);
  display: flex; gap: 14px; flex-wrap: wrap; }
.mk-meta b { color: var(--ink-muted); font-weight: 600; }

/* ---------- Werkzeugleiste: klebt oben, Filter + Suche in einer Reihe ---------- */
.mk-leiste { position: sticky; top: 0; z-index: 5; display: flex; align-items: center;
  gap: 12px; flex-wrap: wrap; min-width: 0; margin: 0 -20px 20px; padding: 12px 20px;
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line); }
@supports not (backdrop-filter: blur(1px)) { .mk-leiste { background: var(--bg); } }

.mk-filter { display: flex; gap: 4px; flex-wrap: wrap; padding: 3px; min-width: 0;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 11px; }
.mk-f { border: 0; border-radius: 8px; background: none; cursor: pointer; font: inherit;
  font-size: 13.5px; font-weight: 600; color: var(--ink-muted); padding: 7px 14px;
  white-space: nowrap; transition: color .12s ease, background .12s ease; }
.mk-f:hover { color: var(--ink); }
.mk-f.is-an { background: var(--surface-3); color: var(--ink);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .3); }
.mk-f .mk-n { margin-left: 6px; font-size: 11.5px; font-weight: 700; color: var(--ink-faint); }
.mk-f.is-an .mk-n { color: var(--ink-muted); }

.mk-treffer { font-size: 13px; margin-left: auto; white-space: nowrap; }
.mk-such-wrap { position: relative; flex: 1 1 220px; min-width: min(220px, 100%);
  max-width: 340px; }
.mk-treffer[hidden] + .mk-such-wrap { margin-left: auto; }
.mk-such-ic { position: absolute; left: 11px; top: 50%; translate: 0 -50%; pointer-events: none;
  display: grid; place-items: center; color: var(--ink-faint); }
.mk-such-ic .icon { width: 15px; height: 15px; }
.mk-suche { width: 100%; padding-left: 34px; }
.mk-suche::-webkit-search-cancel-button { -webkit-appearance: none; }

/* ---------- Gruppen ---------- */
.mk-gruppe { margin: 26px 0; min-width: 0; }
.mk-h { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-muted);
  margin: 0 0 12px; text-transform: uppercase; letter-spacing: .07em; }
.mk-h::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.mk-h .badge { text-transform: none; letter-spacing: 0; }

.mk-grid { display: grid; gap: 14px; min-width: 0;
  grid-template-columns: repeat(auto-fill, minmax(min(230px, 100%), 1fr)); }

/* ---------- Karten ---------- */
.mk-k { margin: 0; display: flex; flex-direction: column; gap: 10px; min-width: 0;
  padding: 10px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; transition: border-color .15s ease, transform .15s ease,
    box-shadow .15s ease; }
.mk-k:hover { border-color: var(--line-strong, var(--ink-faint)); transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .35); }

.mk-bild { position: relative; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden;
  display: grid; place-items: center; min-width: 0; border: 1px solid var(--line);
  background: repeating-conic-gradient(rgba(255, 255, 255, .035) 0% 25%, transparent 0% 50%)
    50% / 16px 16px, var(--surface-2); }
.mk-bild img, .mk-bild video { width: 100%; height: 100%; object-fit: contain;
  transition: transform .25s ease; }
.mk-k:hover .mk-bild img { transform: scale(1.04); }
.mk-bild--audio { background: var(--surface-2); padding: 12px; }
.mk-bild--audio audio { width: 100%; }
.mk-tag { position: absolute; top: 8px; left: 8px; font-size: 10.5px; font-weight: 700;
  letter-spacing: .06em; padding: 3px 7px; border-radius: 6px; color: var(--ink);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  border: 1px solid var(--line); backdrop-filter: blur(4px); }

.mk-txt { display: grid; gap: 2px; min-width: 0; padding: 0 2px; }
.mk-txt strong { font-size: 14px; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; }
.mk-txt .muted { font-size: 12px; }

.mk-akt { display: flex; gap: 8px; }
.mk-akt .btn { flex: 1 1 0; justify-content: center; padding: 7px 10px; font-size: 13px;
  min-width: 0; }
.mk-akt .icon { width: 15px; height: 15px; flex-shrink: 0; }

/* ---------- Lade-Skelett & Leerzustand ---------- */
@keyframes mk-schimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.mk-sk { border: 1px solid var(--line); border-radius: 14px; padding: 10px;
  display: grid; gap: 10px; }
.mk-sk > div { border-radius: 10px;
  background: linear-gradient(100deg, var(--surface-2) 40%, var(--surface-3) 50%, var(--surface-2) 60%)
    0 0 / 200% 100%; animation: mk-schimmer 1.4s linear infinite; }
.mk-sk-bild { aspect-ratio: 16 / 10; }
.mk-sk-zeile { height: 14px; width: 70%; }
.mk-sk-knopf { height: 32px; }

.mk-leer { padding: 56px 20px; text-align: center; display: grid; gap: 10px;
  justify-items: center; border: 1px dashed var(--line); border-radius: 14px; }
.mk-leer .icon { width: 26px; height: 26px; color: var(--ink-faint); }

/* ---------- Fuß ---------- */
.mk-fuss { max-width: 1120px; margin: 0 auto; padding: 22px 20px 34px; color: var(--ink-faint);
  font-size: 13px; border-top: 1px solid var(--line); }
.mk-fuss a { color: inherit; }

@media (max-width: 560px) {
  .mk-such-wrap { max-width: none; flex-basis: 100%; }
  .mk-treffer { order: 3; margin-left: 2px; }
}
