/*
 * MuKaKa - Desktop-Layout
 *
 * Werte 1:1 aus "MuKaKa Prototyp.dc.html". Die Zahlen sehen krumm aus
 * (13.5px, 16.5px, 11.5px) - das ist Absicht und stammt aus dem Entwurf.
 */

.mk-desktop {
  height: 100vh;
  display: flex;
  overflow: hidden;
}

/* ============================================================
   Seitenleiste
   ============================================================ */

.mk-rail {
  width: 248px;
  flex-shrink: 0;
  background: var(--rail);
  color: var(--rail-text);
  display: flex;
  flex-direction: column;
  padding: 18px 14px;
  transition: width 0.16s ease;
}
.mk-rail--collapsed {
  width: 66px;
}

.mk-rail-head {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 4px 0 18px;
}
.mk-rail-logo {
  width: 38px;
  height: 38px;
  border-radius: 9999px;
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.06);
}
.mk-rail-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mk-rail-title {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.mk-rail-sub {
  font-size: 11.5px;
  color: var(--rail-muted);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.mk-rail-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 10px;
  border-radius: 7px;
  color: var(--rail-muted);
  cursor: pointer;
  width: 100%;
  background: transparent;
  border: 0;
}
.mk-rail-row:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--rail-text);
}
.mk-rail-row svg,
.mk-rail-row .mk-rail-icon {
  flex-shrink: 0;
}
.mk-rail-row span {
  white-space: nowrap;
}

.mk-rail-toggle {
  font-size: 12.5px;
  margin-bottom: 12px;
}

.mk-rail-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mk-rail-nav .mk-rail-row {
  font-size: 14.5px;
  font-weight: 500;
}
/*
 * Doppelt qualifiziert, weil `.mk-rail-nav .mk-rail-row` (0-2-0) sonst die
 * Schriftstaerke der aktiven Zeile ueberschreiben wuerde.
 */
.mk-rail-nav .mk-rail-row--active,
.mk-rail-row--active {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
  cursor: default;
}
.mk-rail-nav .mk-rail-row--active:hover,
.mk-rail-row--active:hover {
  background: var(--accent-soft);
  color: var(--accent);
}
.mk-rail-count {
  margin-left: auto;
  font-size: 12.5px;
  font-weight: 500;
}
.mk-rail-icon {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mk-rail-foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.mk-rail-foot .mk-rail-row {
  font-size: 14px;
}
.mk-rail-user {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 6px;
  border-radius: 7px;
}
.mk-avatar {
  width: 26px;
  height: 26px;
  border-radius: 9999px;
  background: var(--accent);
  color: #16181d;
  font-size: 11.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.mk-rail-username {
  font-size: 13px;
  font-weight: 500;
}
.mk-rail-role {
  font-size: 11.5px;
  color: var(--rail-muted);
}

/* ============================================================
   Hauptbereich und Werkzeugleiste
   ============================================================ */

.mk-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.mk-toolbar {
  border-bottom: 1px solid var(--line);
  background: var(--card);
  padding: 14px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.mk-filter-btn {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--muted);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
}
.mk-filter-btn--on {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}
.mk-filter-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 17px;
  height: 17px;
  padding: 0 5px;
  border-radius: 9999px;
  background: var(--accent);
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mk-search {
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 12px;
  height: 38px;
  width: 340px;
  flex-shrink: 0;
  min-width: 200px;
}
.mk-search svg {
  color: var(--muted);
  flex-shrink: 0;
}
.mk-search input {
  border: 0;
  background: transparent;
  width: 100%;
  font-size: 14px;
  padding: 0;
}
.mk-search-clear {
  cursor: pointer;
  color: var(--muted);
  display: flex;
  background: none;
  border: 0;
}
.mk-search-clear:hover {
  color: var(--ink);
}

.mk-count {
  font-size: 13.5px;
  color: var(--muted);
  white-space: nowrap;
}

.mk-toolbar-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.mk-sort {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  color: var(--muted);
}
.mk-sort select {
  height: 34px;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 7px;
  padding: 0 8px;
  font-size: 13.5px;
  color: var(--ink);
}

.mk-viewtoggle {
  display: flex;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 2px;
  gap: 2px;
}
.mk-viewtoggle button {
  width: 32px;
  height: 30px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: transparent;
  color: var(--muted);
  border: 0;
}
.mk-viewtoggle button[aria-pressed='true'] {
  background: var(--card);
  color: var(--ink);
}

/* ============================================================
   Filterspalte
   ============================================================ */

.mk-body {
  flex: 1;
  display: flex;
  min-height: 0;
  position: relative;
}

.mk-facets {
  width: 244px;
  flex-shrink: 0;
  border-right: 1px solid var(--line);
  overflow-y: auto;
  padding: 18px 16px 40px;
}
.mk-facets-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
}
.mk-facets-reset {
  font-size: 12.5px;
  color: var(--accent);
  cursor: pointer;
  background: none;
  border: 0;
}
.mk-facet-group {
  margin-bottom: 20px;
}
/* Kopf der Kategorie: ein echter Knopf, der die Optionen auf-/zuklappt.
   Fuellt die ganze Breite, damit die gesamte Zeile anklickbar ist. */
.mk-facet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  background: none;
  border: 0;
  padding: 4px 6px;
  margin: 0 0 6px;
  border-radius: 6px;
  cursor: pointer;
  color: inherit;
  text-align: start;
}
.mk-facet-head:hover {
  background: var(--tint);
}
.mk-facet-head:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
/* Zugeklappt gibt es keine Optionen darunter - dann faellt der Abstand weg. */
.mk-facet-group--collapsed .mk-facet-head {
  margin-bottom: 0;
}
.mk-facet-label {
  font-size: 13px;
  font-weight: 600;
}
/* Der Pfeil zeigt nach unten, wenn offen; zugeklappt dreht er nach rechts.
   Die Drehung laeuft weich, damit die Richtung sichtbar "umschlaegt". */
.mk-facet-caret {
  display: flex;
  align-items: center;
  color: var(--muted);
  transition: transform 0.18s ease;
}
.mk-facet-caret--collapsed {
  transform: rotate(-90deg);
}
.mk-facet-options {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.mk-facet-opt {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5px 6px;
  border-radius: 6px;
  cursor: pointer;
  background: none;
  border: 0;
  width: 100%;
}
.mk-facet-opt:hover {
  background: var(--tint);
}
.mk-facet-opt-label {
  font-size: 13.5px;
  flex: 1;
  min-width: 0;
  text-align: start;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mk-facet-opt-count {
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* Die zwei Kalenderfelder unter "Eigener Zeitraum". Die Felder selbst
   sind .mk-input, also derselbe Stil wie ueberall - hier steht nur, wie
   sie in der schmalen Filterspalte untereinander stehen. Der linke
   Abstand nimmt die 6px Innenabstand der Zeilen darueber auf, damit
   Beschriftung und Feld an derselben Kante beginnen. */
.mk-facet-dates {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 7px 6px 2px;
}
.mk-facet-date {
  display: flex;
  align-items: center;
  gap: 9px;
}
.mk-facet-date > span {
  font-size: 13px;
  color: var(--muted);
  width: 24px;
  flex-shrink: 0;
}

/* ============================================================
   Liste
   ============================================================ */

.mk-list {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  /* Anker fuer die schwebende .mk-loadnote-Pille (position: absolute). */
  position: relative;
}
.mk-chips {
  padding: 12px 22px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}
.mk-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  border: 0;
}
.mk-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 18px 22px 32px;
}

/* --- Kacheln --- */
.mk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}
.mk-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  text-align: start;
  padding: 0;

  /*
   * KEIN content-visibility hier: zusammen mit contain-intrinsic-size wird die
   * Kachelhoehe festgenagelt und das 4:3-Verhaeltnis des Bildbereichs bricht
   * (gemessen: 322px statt 364px). Originaltreue geht vor. Die Last traegt
   * stattdessen React.memo auf Card - gemessen 14ms pro Menue-Klick bei 2000
   * Objekten. Wenn das spaeter nicht mehr reicht, ist Windowing der Weg, nicht
   * content-visibility.
   */
}
.mk-card:hover,
.mk-card--open {
  border-color: var(--accent);
}
.mk-card-media {
  aspect-ratio: 4 / 3;
  background: var(--tint);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.mk-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.mk-card-media .mk-card-placeholder {
  color: var(--muted);
  opacity: 0.55;
}
.mk-card-badge {
  position: absolute;
  top: 8px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  background: var(--card);
  border-radius: 5px;
  font-size: 11.5px;
  font-weight: 600;
}
.mk-card-badge--cond { left: 8px; }
.mk-card-badge--own  { right: 8px; color: var(--muted); }

.mk-card-body {
  padding: 12px 13px 13px;
}
.mk-card-vendor {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 3px;
}
.mk-card-model {
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: -0.012em;
  line-height: 1.25;
  margin-bottom: 9px;
}
.mk-card-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  color: var(--muted);
}

/* --- Tabelle --- */
.mk-tablewrap {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.mk-table {
  width: 100%;
  border-collapse: collapse;
}
.mk-table thead tr {
  background: var(--paper);
}
.mk-table th {
  padding: 11px 14px;
  text-align: left;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
}
.mk-table th:hover {
  color: var(--ink);
}
.mk-col-actions {
  width: 44px;
  cursor: default;
}
.mk-table th .mk-arrow {
  margin-left: 5px;
  color: var(--accent);
}
.mk-table tbody tr {
  border-top: 1px solid var(--line);
  cursor: pointer;
}
.mk-table tbody tr:hover {
  background: var(--tint);
}
.mk-table tbody tr.mk-row--open {
  background: var(--tint);
}
.mk-table td {
  padding: 11px 14px;
  font-size: 13.5px;
}
.mk-td-vendor { color: var(--muted); white-space: nowrap; }
.mk-td-model  { font-size: 14px; font-weight: 600; }
.mk-td-serial { font-variant-numeric: tabular-nums; color: var(--muted); }
.mk-td-cond   { white-space: nowrap; font-size: 13px; }
.mk-td-date   { font-variant-numeric: tabular-nums; color: var(--muted); white-space: nowrap; }
.mk-td-menu   { padding: 11px 8px 11px 0; text-align: right; }
.mk-rowmenu {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  background: none;
  border: 0;
  cursor: pointer;
}
.mk-rowmenu:hover {
  background: var(--line);
  color: var(--ink);
}

/* ============================================================
   Detailbereich
   ============================================================ */

.mk-detail {
  width: 520px;
  flex-shrink: 0;
  border-left: 1px solid var(--line);
  background: var(--card);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.mk-detail-head {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.mk-detail-steps {
  display: flex;
  align-items: center;
  gap: 2px;
}
.mk-detail-steps button {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--muted);
  background: none;
  border: 0;
}
.mk-detail-steps button:hover {
  background: var(--tint);
  color: var(--ink);
}
/* Am ersten bzw. letzten Objekt geht es nicht weiter - das muss man sehen,
   bevor man klickt. Gleiche Abschwaechung wie bei .mk-iconbtn[disabled]. */
.mk-detail-steps button[disabled] {
  opacity: 0.3;
  cursor: not-allowed;
}
.mk-detail-steps button[disabled]:hover {
  background: none;
  color: var(--muted);
}
.mk-detail-pos {
  font-size: 13px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.mk-detail-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}
.mk-detail-label-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 32px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  background: none;
}
.mk-detail-label-btn:hover {
  background: var(--tint);
}

.mk-detail-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 18px 40px;
}
.mk-detail-vendor {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.mk-detail-model {
  font-family: 'Instrument Sans', Georgia, serif;
  font-size: 34px;
  /* Modellname, lange Namen brechen um - siehe Zeilenhoehe in app.css. */
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}
.mk-detail-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-size: 13px;
  color: var(--muted);
}
.mk-detail-meta .mk-cond {
  font-size: 13px;
}
.mk-detail-meta .mk-cond-dot {
  width: 7px;
  height: 7px;
}

.mk-hero {
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
  margin-bottom: 18px;
  position: relative;
  background: var(--tint);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mk-hero img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  cursor: zoom-in;
}
.mk-hero-empty {
  color: var(--muted);
  font-size: 13.5px;
}

.mk-section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.mk-fields {
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
  margin-bottom: 20px;
}
.mk-field {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 12px;
  align-items: center;
  padding: 9px 12px;
  border-top: 1px solid var(--line);
  min-height: 44px;
}
.mk-field-label {
  font-size: 13px;
  color: var(--muted);
}
.mk-field-edit {
  display: flex;
  align-items: center;
  gap: 7px;
}
.mk-field-value {
  font-size: 14.5px;
  padding: 5px 8px;
  margin: -5px -8px;
  border-radius: 6px;
  cursor: text;
  display: flex;
  align-items: center;
  /*
   * space-between statt nur gap: bei den Auswahlfeldern druckt das <select>
   * (flex: 1) den Stift von selbst an den rechten Rand. Bei den Textfeldern
   * ist der Wert-Text aber nicht so breit wie die Zeile, darum braucht es
   * hier zusaetzlich space-between - sonst klebt der Stift am Text statt in
   * derselben Spalte wie bei den Auswahlfeldern zu stehen.
   */
  justify-content: space-between;
  gap: 8px;
  background: none;
  border: 0;
  text-align: left;
  width: calc(100% + 16px);
}
.mk-field-value:hover {
  background: var(--tint);
}
.mk-field-value .mk-pencil {
  color: var(--muted);
  opacity: 0.5;
  flex-shrink: 0;
}
.mk-field-value[data-readonly='true'] {
  cursor: default;
}
.mk-field-value[data-readonly='true']:hover {
  background: none;
}
/*
 * Auswahlfelder (Hersteller, Kameratyp, Kiste, Gehoert, Funktionsfaehig):
 * kein Bearbeiten-Zustand mehr, die Zeile ist immer ein echtes <select> -
 * ein Klick oeffnet damit sofort die native Liste. Das Select wird bis auf
 * Schriftart/-farbe zurueckgesetzt, damit es aussieht wie die Textzeilen
 * daneben; der Stift bleibt als Hinweis-Icon daneben stehen.
 */
.mk-field-value--select {
  cursor: pointer;
}
.mk-select-plain {
  flex: 1;
  min-width: 0;
  width: 100%;
  border: 0;
  background: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}
.mk-select-plain::-ms-expand {
  display: none;
}
.mk-select-plain:disabled {
  cursor: default;
  opacity: 1;
  -webkit-text-fill-color: currentColor;
}
.mk-commit {
  height: 32px;
  padding: 0 11px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  cursor: pointer;
  border: 0;
  white-space: nowrap;
}
.mk-cancel {
  height: 32px;
  padding: 0 9px;
  border-radius: 6px;
  font-size: 13px;
  color: var(--muted);
  display: flex;
  align-items: center;
  cursor: pointer;
  background: none;
  border: 0;
}
.mk-cancel:hover {
  background: var(--tint);
}

/* Rechnung */
.mk-invoice {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.mk-invoice-chip {
  width: 38px;
  height: 46px;
  border-radius: 5px;
  background: var(--tint);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--muted);
  flex-shrink: 0;
}
.mk-invoice-name {
  font-size: 14px;
  font-weight: 600;
}
.mk-invoice-meta {
  font-size: 12.5px;
  color: var(--muted);
}
.mk-invoice-open {
  height: 32px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 13.5px;
  display: flex;
  align-items: center;
  cursor: pointer;
  background: none;
}
.mk-invoice-open:hover {
  background: var(--tint);
}
.mk-invoice-empty {
  border: 1px dashed var(--line);
  border-radius: 9px;
  padding: 18px;
  text-align: center;
  margin-bottom: 20px;
}
.mk-invoice-empty-text {
  font-size: 13.5px;
  color: var(--muted);
  margin-bottom: 10px;
}
.mk-invoice-empty--drag {
  border-color: var(--accent);
  background: var(--accent-soft);
}

/* Freitextblöcke */
.mk-text-block {
  margin-bottom: 18px;
}
.mk-text-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 7px;
}
.mk-text-edit-btn {
  width: 24px;
  height: 24px;
  margin: -6px -6px -6px 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  cursor: pointer;
  background: none;
  border: 0;
  color: var(--muted);
  opacity: 0.5;
}
.mk-text-value {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink);
  cursor: text;
  padding: 5px 8px;
  margin: -5px -8px;
  border-radius: 6px;
  background: none;
  border: 0;
  text-align: left;
  width: calc(100% + 16px);
  white-space: pre-wrap;
}
.mk-text-value:hover {
  background: var(--tint);
}
.mk-text-actions {
  display: flex;
  gap: 7px;
  margin-top: 7px;
}
.mk-text-actions .mk-commit,
.mk-text-actions .mk-cancel {
  height: 34px;
  font-size: 13.5px;
}
.mk-text-actions .mk-commit { padding: 0 13px; }
.mk-text-actions .mk-cancel { padding: 0 11px; }

/* ============================================================
   Anpassung an schmale Fenster (wie im Entwurf)
   ============================================================ */

@media (max-width: 1200px) {
  .mk-toolbar {
    flex-wrap: wrap;
    row-gap: 10px;
  }
  .mk-toolbar .mk-search {
    flex: 1 1 220px;
    min-width: 160px;
    width: auto;
  }
  .mk-toolbar .mk-count,
  .mk-toolbar .mk-sort-label {
    display: none;
  }
}

@media (max-width: 1040px) {
  .mk-detail {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 60;
    box-shadow: -18px 0 44px rgba(0, 0, 0, 0.2);
  }
}
